Some error about USB camera And OV5693 on TX2

Hello there,I had some problems when I tried to open a camera on TX2. I can’t find my USB camera in /dev list. When I pluged in/out the USB camera there is nothing changed. But I can see the USB device in the lsusb.
Bus 002 Device 003: ID 2ba2:4d55
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 17ef:6019 Lenovo
Bus 001 Device 003: ID 17ef:608c Lenovo
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ID 2ba2:4d55 is my cam.I tried others USB camera and none of them can be recognized. All the USB camera producer claimed their product obey the UVC protocol. And I tried to use the camera with lib that producer offered, the camera works fine.I have no idea how to deal with it.

Another problem is I can’t open OV5693 by its vid . It’s OK when I use cv2.VideoCapture("nvarguscamerasrc … to open it. But when I made it cv2.VideoCapture(0) it shows up
[ WARN:0] global /usr/opencv_cuda/opencv-4.5.3/modules/videoio/src/cap_gstreamer.cpp (2057) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global /usr/opencv_cuda/opencv-4.5.3/modules/videoio/src/cap_gstreamer.cpp (1034) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /usr/opencv_cuda/opencv-4.5.3/modules/videoio/src/cap_gstreamer.cpp (597) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created.

I wonder if I had a way to open a camera by its vid?
Thanks for your help.

I can’t help with the second half of your question, but if you monitor “dmesg --follow”, and then plug in the camera, what shows up in the logs? Also, what do you see from:
sudo lsusb -vvv -d '2ba2:4d55'

When I run “ dmesg --follow ” the logs shows messages as blow with my camera on.
[ 906.775793] usb 2-1.1: new SuperSpeed USB device number 3 using tegra-xusb
[ 906.800870] usb 2-1.1: device descriptor read/8, error -71
[ 906.911040] usb 2-1.1: new SuperSpeed USB device number 3 using tegra-xusb
[ 906.936828] usb 2-1.1: device descriptor read/8, error -71
[ 907.379131] usb 2-1.1: new SuperSpeed USB device number 4 using tegra-xusb
[ 907.400201] usb 2-1.1: New USB device found, idVendor=2ba2, idProduct=4d55
[ 907.400208] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=10
[ 907.400213] usb 2-1.1: Product: MER-131-210U3M NIR
[ 907.400217] usb 2-1.1: Manufacturer: Daheng Imavision
[ 907.400221] usb 2-1.1: SerialNumber: TA0170050027

And when I plugged my camera the logs got three line more.

[ 1183.934768] usb 2-1.1: USB disconnect, device number 4
[ 1184.134400] usb 2-1: usb_suspend_both: status 0
[ 1184.134549] usb usb2: usb_suspend_both: status 0

And that’s what i got from sudo lsusb -vvv -d ‘2ba2:4d55’.
Bus 002 Device 004: ID 2ba2:4d55
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 ?
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 9
idVendor 0x2ba2
idProduct 0x4d55
bcdDevice 0.00
iManufacturer 1 Daheng Imavision
iProduct 2 MER-131-210U3M NIR
iSerial 10 TA0170050027
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 116
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 224mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 3
bFunctionClass 239 Miscellaneous Device
bFunctionSubClass 5 USB3 Vision
bFunctionProtocol 0
iFunction 3 USB3 Vision Device
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 239 Miscellaneous Device
bInterfaceSubClass 5 USB3 Vision
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 14 24 01 00 00 01 00 00 00 01 00 04 05 06 07 08 09 0a 0b 08
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 239 Miscellaneous Device
bInterfaceSubClass 5 USB3 Vision
bInterfaceProtocol 1
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 239 Miscellaneous Device
bInterfaceSubClass 5 USB3 Vision
bInterfaceProtocol 2
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 15
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 22
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000c
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 3
Lowest fully-functional device speed is SuperSpeed (5Gbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 2047 micro seconds
Device Status: 0x000c
(Bus Powered)
U1 Enabled
U2 Enabled

Thanks anyway.

Please use nvarguscamerasrc for CSI Bayer sensor. Suppose v4l2src don’t support RAW sensor capture pipeline.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.