USB camera stop working after a while hardware\software problem?

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
david1234
Posts: 61
Joined: Wed Jun 26, 2019 12:24 pm

USB camera stop working after a while hardware\software problem?

Post by david1234 » Thu Feb 27, 2020 3:25 pm

Hello ,
I'm using zonminder with only 1 usb camera connect to my pi
after 2 days it stop working
this is hte pi syslog

Code: Select all

Feb 21 13:30:52 raspberrypi kernel: [260863.221689] usb 1-1.1.2: new high-speed USB device number 13 using dwc_otg
Feb 21 13:30:52 raspberrypi kernel: [260863.378345] usb 1-1.1.2: New USB device found, idVendor=0ac8, idProduct=3500, bcdDevice=10.07
Feb 21 13:30:52 raspberrypi kernel: [260863.378353] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 21 13:30:52 raspberrypi kernel: [260863.378358] usb 1-1.1.2: Product: A4 TECH HD PC Camera
Feb 21 13:30:52 raspberrypi kernel: [260863.378362] usb 1-1.1.2: Manufacturer: A4 TECH
Feb 21 13:30:52 raspberrypi kernel: [260863.378366] usb 1-1.1.2: SerialNumber: MI1320_SOC
Feb 21 13:30:52 raspberrypi kernel: [260863.379335] uvcvideo: Found UVC 1.00 device A4 TECH HD PC Camera (0ac8:3500)
Feb 21 13:30:52 raspberrypi kernel: [260863.382258] uvcvideo 1-1.1.2:1.0: Entity type for entity Processing 2 was not initialized!
Feb 21 13:30:52 raspberrypi kernel: [260863.382268] uvcvideo 1-1.1.2:1.0: Entity type for entity Camera 1 was not initialized!
Feb 21 13:30:52 raspberrypi kernel: [260863.382274] uvcvideo 1-1.1.2:1.0: Entity type for entity Extension 4 was not initialized!
Feb 21 13:30:52 raspberrypi kernel: [260863.382458] input: A4 TECH HD PC Camera: A4 TECH H as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/input/input5
Feb 21 13:30:57 raspberrypi mtp-probe: checking bus 1, device 13: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Feb 21 13:30:57 raspberrypi mtp-probe: bus: 1, device: 13 was not an MTP device
Feb 21 13:30:57 raspberrypi systemd-udevd[18577]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
Feb 21 13:30:58 raspberrypi kernel: [260869.341841] Under-voltage detected! (0x00050005)
Feb 21 13:31:04 raspberrypi kernel: [260875.581869] Voltage normalised (0x00000000)

and this is the zonminder logs
Capture.PNG
Capture.PNG (46.37 KiB) Viewed 3804 times
after reboot the pi - it start to work again for 1 day ~
is it a camera problem and need to replace it?

Thanks,

mikb
Posts: 463
Joined: Mon Mar 25, 2013 12:34 pm

Re: USB camera stop working after a while hardware\software problem?

Post by mikb » Thu Feb 27, 2020 4:45 pm

First problem :- You are using a Raspberry Pi with an inadequate power supply, which will cause you all sorts of odd behaviour, crashes, data corruption, problems with plugging in USB devices ...

Code: Select all

 Under-voltage detected! 
That aside, when you plug in the USB camera and it works, you have a "/dev/video0" device, yes? Good.

When the USB camera has stopped, do you still have a "/dev/video0" device, or has it moved to "/dev/video1" -- a sign that it disconnected and reconnected leaving the old one hanging around. This can happen with USB memsticks too (they can creep along a letter when they glitch, and become e.g. /dev/sdc when you expected /dev/sdb ...)

ls /dev/video*

next time it fails and see if it moved ...

david1234
Posts: 61
Joined: Wed Jun 26, 2019 12:24 pm

Re: USB camera stop working after a while hardware\software problem?

Post by david1234 » Sun Mar 01, 2020 6:31 am

after pi reboot , it's works 4-5 hours
then stop working

I run the command and this is what I get:

Code: Select all

pi@raspberrypi:~ $ ls /dev/video*
/dev/video0  /dev/video1  /dev/video10  /dev/video11  /dev/video12
but while running lsub I get this:

Code: Select all

pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 0ac8:3500 Z-Star Microelectronics Corp.
Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
when I run
fswebcam image.jpg
I get an image using video0(I can see the mage in my files and the image is good)

Code: Select all

 fswebcam test.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 352x288.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Writing JPEG image to 'test.jpg'.
so what does it mean?
it's seems that the camera is working ,

and what can I do ?

Thanks ,

mikb
Posts: 463
Joined: Mon Mar 25, 2013 12:34 pm

Re: USB camera stop working after a while hardware\software problem?

Post by mikb » Sun Mar 01, 2020 6:05 pm

"/dev/video0 /dev/video1 /dev/video10 /dev/video11 /dev/video12"

So did you run that command when ZoneMinder was NOT WORKING? (Apparently refusing to capture from /dev/video0 as per your original screenshot?)

That's a lot of video input devices. But 10,11,12 are because of https://www.raspberrypi.org/forums/view ... 3#p1527503, so you can ignore them. So you have two possible video devices there.

Do you have the raspberry PI camera attached to the board, and is that /dev/video0 or /dev/video1?

I still wonder if the camera is "going away", which is why the capturing at 27fps turns to ... "I've heard nothing for 7 seconds" -- because /dev/video0 (the device you've selected) has disconnected and reconnected as /dev/video1 or even higher numbers, as it happens more than once, leaving behind broken non-working stale "/dev/videos" ...

ZM will cope with cameras disconnecting (and will reconnect to them), but if they come back up as a different /dev/videoX number (or reboot and pick a new IP address for network cameras) then it doesn't stand much chance of recovery.

david1234
Posts: 61
Joined: Wed Jun 26, 2019 12:24 pm

Re: USB camera stop working after a while hardware\software problem?

Post by david1234 » Tue Mar 03, 2020 1:34 pm

the zonmidner is running
and also the USB camera function is "Enable , Monitor - but it's in red (like it's not connected).

I have only the USB camera connected , no other video device is connected to the Pi.

I havve try to cahnge the source to video1\10\12 - nothing

but (as you can see in the previos post) when I run the fswebcam it's working and capture the image using video0.

after reboot the pi it's working on video0 for ~ 4 hours.

this was a fresh installation on zonminder (I have nothing else running on the PI )

what else it could be ?

Thanks ,

frankscott
Posts: 1
Joined: Tue Mar 17, 2020 4:17 am

Re: USB camera stop working after a while hardware\software problem?

Post by frankscott » Tue Mar 17, 2020 4:19 am

I tried the pi reboot and it works as normal for 4-5 hours then stop working.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests