USB camera with interface board not working

Hello everyone.

I have a Jetson Orin NX and a Tamron 1080p camera connected to the this board that also has a UART-TTL USB Adapter connected so that we can get a serial COM port and send VISCA commands to it. That all works, but I have an issue with generating the preview of the camera when it is connected to the board.

Connection to the camera alone works great with 1080p 30fps, but we need to board for the VISCA commands and that additional boost of 30fps as the target is 1080p 60fps. The board requires a VISCA command to be sent in order for this to be achieved, to put the camera in Dual LVDS mode. I am sending that command and the reply is successful and acknowledged, but even setting Dual or Single mode, none of the pipelines with GStreamer or other software show the camera preview whatsoever.

qv4l2 opens a window with green color only. The simple GStreamer pipeline that works for other cameras, such as:

gst-launch-1.0 v4l2src device=/dev/video4 ! 'video/x-raw, width=1920, height=1080' ! xvimagesink -e opens a window with black screen.

Here is an output of v4l2-ctl --list-devices:

NVIDIA Tegra Video Input Device (platform:tegra-camrtc-ca):
	/dev/media0

Active Silicon Harrier T3010-2: (usb-3610000.xhci-1):
	/dev/video4
	/dev/video5
	/dev/media3

GuideCamera (usb-3610000.xhci-3.1.1.3.1):
	/dev/video0
	/dev/video1
	/dev/media1

USB 4K HD Camera: USB 4K HD Cam (usb-3610000.xhci-3.1.1.3.4):
	/dev/video2
	/dev/video3
	/dev/media2

The device is being discovered in dmesg as well:

[  840.382719] usb 2-1: new SuperSpeed Gen 1 USB device number 3 using tegra-xusb
[  840.406683] usb 2-1: New USB device found, idVendor=0403, idProduct=602a, bcdDevice= 0.01
[  840.406691] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=7
[  840.406694] usb 2-1: Product: Active Silicon Harrier T3010-2
[  840.406697] usb 2-1: Manufacturer: Active Silicon
[  840.406699] usb 2-1: SerialNumber: C-1727520461-TNMP3010-2
[  840.410091] uvcvideo: Found UVC 1.10 device Active Silicon Harrier T3010-2 (0403:602a)

Not sure if this is a UVC issue or some other driver issue, but any help would be highly appreciated.

Thanks in advance.

Hi,
Please run the command and share the prints for reference:

$ v4l2-ctl --list-formats-ext -d /dev/video4

Would like to know the camera supports which formats.

Hi DaneLLL,

Thank you for a response.

Here is an output:

ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'YUYV' (YUYV 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.017s (60.000 fps)
			Interval: Discrete 0.020s (50.000 fps)
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.017s (60.000 fps)
			Interval: Discrete 0.020s (50.000 fps)

I have tried all resolutions and fps caps in the pipeline, but none of them seem to work.

Edit: I have noticed that when I put the DIP switch 1-7 to ON alongside SW1-5 and SW1-6 (which are used to enable J3: TTL VISCA), I get the output of the camera to do 1280x720 50fps which works good and get the preview of 1080p 25fps, but that lags a lot, it’s more like 5fps.

Is this still an issue to support? Any result can be shared?

@kayccc

I still have an issue of getting the 1080p 60fps stream, if anyone has any ideas I would appreciate it.

I feel like it is a v4l2srcthat puts the camera in single LVDS mode whenever it runs thus not allowing me the 1080p 60fps that the camera requires or that the v4l2src needs some adjustments to make sure it is in dual-LVDS mode.

Hi,
Please try

$ gst-launch-1.0 -v v4l2src device=/dev/video4 ! video/x-raw,format=YUY2,width=1920,height=1080,framerate=30/1 ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0

And check frame rate. If driver is ready, it should be running in 60fps.

FYR:

Jetson AGX Orin FAQ
Q: I have a USB camera. How can I launch it on AGX Orin?

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