sipeed / MaixCDK

C/C++ development kit for Sipeed Maix ecosystem boards
Other
45 stars 13 forks source link

Communication failure with an external camera #15

Open ahmed123-sys opened 1 month ago

ahmed123-sys commented 1 month ago

I have a camera that works with the usb protocol. I've added this external camera to your device using a USB-C to USB-C cable, but when I run lsusb, I can't find the camera! Is there a solution to this problem?

Neutree commented 1 month ago

by default usb is device mode, not support external device, if you want to use usb as host mode, change /boot/usb.dev name to /boot/usb.host and reboot

ahmed123-sys commented 1 month ago

I changed the mode to host mode and tested two cameras. These cameras communicate successfully in nvidia jetson nano but with your hardware I can see that the second camera is not communicating because when I run lsusb I can't find it. For more information, the first camera is a webcam and the second is a TOF camera from opnous. Is there a suggestion for this problem?

ahmed123-sys commented 1 month ago

by default usb is device mode, not support external device, if you want to use usb as host mode, change /boot/usb.dev name to /boot/usb.host and reboot

I changed the mode to host mode and tested two cameras. These cameras communicate successfully in nvidia jetson nano but with your hardware I can see that the second camera is not communicating because when I run lsusb I can't find it. For more information, the first camera is a webcam and the second is a TOF camera from opnous. Is there a suggestion for this problem?

is there any update for this problem!!

Neutree commented 4 weeks ago

I tried, I can use USB camera by set /boot/usb.dev to /boot/usb.host and reboot, plug in USB camera and use lsusb will show up the camera, and then we can use opencv to read it

Neutree commented 4 weeks ago

I used this one image