nuggetz
Posts: 8
Joined: Sat May 14, 2016 6:43 pm

Network freeze with USB camera

Fri Jun 02, 2017 8:04 pm

I have a logitech C920 connected to a RP3. Installed latest Raspbian image with all updates and when I follow the many tutorials online to get motion to run. As soon as I attach the camera I lose wifi. If I unplug it then I'm able to ssh to my pi again. Is there a known issue or perhaps good instructions for configuring this combo? Logitech C920 and pi3?

Here's what dmsg and motion.log have.

Code: Select all

cap.driver: "uvcvideo"
cap.card: "HD Pro Webcam C920"
cap.bus_info: "usb-3f980000.usb-1.2"
cap.capabilities=0x84200001
------------------------
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_get_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_get_capability: - STREAMING
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_select_input: name = "Camera 1", type 0x00000002, status 00000000
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_select_input: - CAMERA
[1:ml1] [WRN] [VID] [Jun 02 19:23:40] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format: Config palette index 17 (YU12) doesn't work.
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format: Supported palettes:
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format: (0) YUYV (YUYV 4:2:2)
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format: 0 - YUYV 4:2:2 (compressed : 0) (0x56595559)
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format: (1) H264 (H.264)
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format: 1 - H.264 (compressed : 1) (0x34363248)
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format: (2) MJPG (Motion-JPEG)
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format: 2 - Motion-JPEG (compressed : 1) (0x47504a4d)
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_set_pix_format Selected palette YUYV
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_do_set_pix_format: Testing palette YUYV (640x480)
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_do_set_pix_format: Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000008
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls:       "Brightness", default -8193, current 128
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,255
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls:       "Contrast", default 57343, current 128
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,255
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls:       "Saturation", default 57343, current 128
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls: found control 0x00980918, "Power Line Frequency", range 0,2
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls:       "Power Line Frequency", default 2, current 2
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls: found control 0x00980913, "Gain", range 0,255
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] v4l2_scan_controls:       "Gain", default 57343, current 0
[1:ml1] [NTC] [VID] [Jun 02 19:23:40] vid_v4lx_start: Using V4L2
[1:ml1] [NTC] [EVT] [Jun 02 19:23:40] event_new_video Source FPS 30
[1:ml1] [NTC] [ALL] [Jun 02 19:23:40] motion_detected: Motion detected - starting event 1
[1:ml1] [ERR] [VID] [Jun 02 19:55:08] v4l2_next: VIDIOC_QBUF: No such device
[1:ml1] [ERR] [ALL] [Jun 02 19:55:08] motion_loop: Video device fatal error - Closing video device
[1:ml1] [NTC] [VID] [Jun 02 19:55:08] vid_close: Closing video device /dev/video0
[code]
[/code]


dmesg

Code: Select all

[   20.905108] usb 1-1: new high-speed USB device number 8 using dwc_otg
[   20.905266] Indeed it is in host mode hprt0 = 00001101
[   21.137246] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[   21.137261] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   21.138175] hub 1-1:1.0: USB hub found
[   21.138272] hub 1-1:1.0: 5 ports detected
[   21.455080] usb 1-1.1: new high-speed USB device number 9 using dwc_otg
[   21.585306] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[   21.585322] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   21.588336] smsc95xx v1.0.5
[   21.678971] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:75:7a:35
[   22.857449] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   22.857937] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   36.386771] random: crng init done

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2393
Joined: Thu Jul 11, 2013 2:37 pm

Re: Network freeze with USB camera

Fri Jun 02, 2017 9:10 pm

After your wifi drops and you have to unplug the webcam, what is the output of the command vcgencmd get_throttled?
Rockets are loud.
https://astro-pi.org

nuggetz
Posts: 8
Joined: Sat May 14, 2016 6:43 pm

Re: Network freeze with USB camera

Fri Jun 02, 2017 9:15 pm

pi@raspberrypi:~ $ vcgencmd get_throttled
throttled=0x50005

Return to “Troubleshooting”