sipeed / MaixCDK

C/C++ development kit for Sipeed Maix ecosystem boards
https://wiki.sipeed.com/maixcdk/
Other
56 stars 14 forks source link

Communication failure with an external camera #15

Closed ahmed123-sys closed 1 month ago

ahmed123-sys commented 4 months 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 4 months 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 4 months 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 4 months 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 3 months 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 3 months ago

I used this one image

Neutree commented 1 month ago

close this issue, if remain have problem, add new one or reopen