Page 1 of 1

usb摄像头连接失败

Posted: 2025-09-28 6:16
by lszz
我使用Luckfox Pico Ultra连接usb 摄像头,直接把摄像头连接到板子的usb a口,终端输出

Code: Select all

[root@luckfox root]# [  197.083773] usb 1-1: new high-speed USB device number 6 using xhci-hcd
[  197.233785] usb 1-1: device descriptor read/64, error -71
[  197.503782] usb 1-1: device descriptor read/64, error -71
[  197.773766] usb 1-1: new high-speed USB device number 7 using xhci-hcd
[  197.923793] usb 1-1: device descriptor read/64, error -71
[  198.193788] usb 1-1: device descriptor read/64, error -71
[  198.313920] usb usb1-port1: attempt power cycle
[  198.783771] usb 1-1: new high-speed USB device number 8 using xhci-hcd
[  198.783895] usb 1-1: Device not responding to setup address.
[  199.003809] usb 1-1: Device not responding to setup address.
[  199.223766] usb 1-1: device not accepting address 8, error -71
[  199.373779] usb 1-1: new high-speed USB device number 9 using xhci-hcd
[  199.373904] usb 1-1: Device not responding to setup address.
[  199.593816] usb 1-1: Device not responding to setup address.
[  199.813759] usb 1-1: device not accepting address 9, error -71
[  199.813989] usb usb1-port1: unable to enumerate USB device
使用usb hub连接板子的usb a口,终端输出

Code: Select all

[root@luckfox root]# [  864.013783] usb 1-1: new high-speed USB device number 11 using xhci-hcd
[  864.258085] hub 1-1:1.0: USB hub found
[  864.258627] hub 1-1:1.0: 4 ports detected
等到识别出usb hub后,再把摄像头连接到usb hub上,终端输出

Code: Select all

[root@luckfox root]# [  932.723798] usb 1-1.2: new high-speed USB device number 12 using xhci-hcd
[  932.918027] uvcvideo: Found UVC 1.10 device Camera (0525:a4a6)
[  932.927553] input: Camera: UVC Camera as /devices/platform/usbdrd/ffb00000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.0/input/input1
[  932.939111] udevd[897]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video21': No such file or directory
[  932.964529] udevd[899]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video22': No such file or directory
为什么需要加个usb hub才能识别到摄像头?

我在板子上并联了两个220uf的电容,用功耗分析仪抓取了板子的电压跌落也没有发现异常
Snipaste_2025-09-28_14-11-20.png

Re: usb摄像头连接失败

Posted: 2025-09-30 6:59
by Crocodile
您好 从日志上看UVC被识别到插入但是枚举设备的时候失败的,除了电源问题可能就是信号干扰问题了,UVC是高速设备受干扰的影响比较大,有可能是HUB额外的抗干扰措施起了作用