USB3.0 camera stability issue

Hello.
I’m trying to fix a stability issue with a USB3.0 camera (Sony FCB-EV9500L + Aivion TL6035 converter) connected to a Jetson Xavier NX 16GB (version 35.1.0).
The camera can work in Windows OS for several days without problems, but when I connect it to the Jetson, the stream in the Cheese application can stop after 30 minutes, and sometimes after 5 minutes, sometimes after 8 hours.
The camera is powered from an external source. The camera is recognized in the system correctly.

Bus 002 Device 006: ID 04b4:01fc Cypress Semiconductor Corp.

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 10000M
    |__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 10000M
        |__ Port 4: Dev 6, If 0, Class=Video, Driver=uvcvideo, 5000M
        |__ Port 4: Dev 6, If 1, Class=Video, Driver=uvcvideo, 5000M
        |__ Port 4: Dev 6, If 2, Class=Communications, Driver=cdc_acm, 5000M
        |__ Port 4: Dev 6, If 3, Class=CDC Data, Driver=cdc_acm, 5000M

I can’t figure out what’s wrong. Here’s what I already did:

  • I spoke with the tech support of the camera converter (Aivion).
  • I connected the camera through different usb cables + external power supply.
  • I put the camera and the Jetson in a shielded case.
  • I tried different camera modes (720p 25fps and 1080p 25fps).
  • I ran Jetson at maximum frequency and on 6 cores.
  • I set /sys/module/usbcore/parameters/usbfs_memory_mb to 512.
  • I set /sys/module/usbcore/parameters/autosuspend to -1.
  • I rebuilt the uvсvideo module with the values from the theme currupted frames from AR1820 USB camera - #9 by Nfeng

As a result, the Cheese app still freezes and the stream stops after a while. Can run minutes or hours. Here are the logs I managed to record.

The first version of the logs
[131182.621288] uvcvideo: uvc_v4l2_poll
[131182.621532] uvcvideo: uvc_v4l2_poll
[131182.622815] uvcvideo: frame 949303 stats: 0/254/254 packets, 0/0/254 pts (!early initial), 0/254 scr, last pts/stc/sof 0/0/0
[131182.661484] uvcvideo: Frame complete (EOF found).
[131182.670881] uvcvideo: frame 949304 stats: 0/254/254 packets, 0/0/254 pts (!early initial), 0/254 scr, last pts/stc/sof 0/0/0
[131182.679039] uvcvideo: uvc_v4l2_poll
[131182.679768] uvcvideo: uvc_v4l2_poll
[131182.751962] uvcvideo: frame 949305 stats: 0/249/249 packets, 0/0/249 pts (!early initial), 0/249 scr, last pts/stc/sof 0/0/0
[131182.757300] uvcvideo: Frame complete (FID bit toggled).
[131182.757456] uvcvideo: frame 949306 stats: 0/1/1 packets, 0/0/1 pts (!early initial), 0/1 scr, last pts/stc/sof 0/0/0

The stream stops at this point. Cheese app hangs. No new logs next.

The second version of the logs
[ 9118.207022] uvcvideo: uvc_v4l2_poll
[ 9118.207046] uvcvideo: uvc_v4l2_poll
[ 9118.233023] uvcvideo: frame 102 stats: 0/0/254 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[ 9118.243566] uvcvideo: Frame complete (EOF found).
[ 9118.243582] uvcvideo: uvc_v4l2_poll
[ 9118.243613] uvcvideo: uvc_v4l2_poll
[ 9118.273054] uvcvideo: frame 103 stats: 0/0/254 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[ 9118.283533] uvcvideo: Frame complete (EOF found).
[ 9118.283547] uvcvideo: uvc_v4l2_poll
[ 9118.283560] uvcvideo: uvc_v4l2_poll
[ 9118.313057] uvcvideo: frame 104 stats: 0/0/254 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0

The stream stops at this point. Cheese app hangs. No new logs next.

Hi,
We have later release Jetpack 5.1.1(r35.3.1). Would suggest upgrade to latest version and give it a try.

Thank you. I will try and report the results.

I tried the latest release, but unfortunately the camera is still unstable.

I am using the same camera with a different board (USB HDMI camera interface board | Product) and I am experiencing some issues as well.

We are using the seeed studio J202 carrier board.

In my case I see in the dmesg that the USB hub disconnects:

[ 3223.843536] usb 2-3: USB disconnect, device number 2
[ 3223.843554] usb 2-3.1: USB disconnect, device number 4
[ 3223.886805] usb 2-3.4: USB disconnect, device number 3
[ 3224.175993] usb 2-3: new SuperSpeedPlus Gen 2 USB device number 5 using tegra-xusb
[ 3224.225136] usb 2-3: New USB device found, idVendor=2109, idProduct=0822, bcdDevice= 7.f3
[ 3224.225149] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3224.225158] usb 2-3: Product: USB3.1 Hub
[ 3224.225166] usb 2-3: Manufacturer: VIA Labs, Inc.
[ 3224.225174] usb 2-3: SerialNumber: 000000001
[ 3224.229536] hub 2-3:1.0: USB hub found
[ 3224.230006] hub 2-3:1.0: 4 ports detected
[ 3224.899822] usb 2-3.1: new SuperSpeed Gen 1 USB device number 6 using tegra-xusb
[ 3224.920338] usb 2-3.1: LPM exit latency is zeroed, disabling LPM.
[ 3224.921186] usb 2-3.1: New USB device found, idVendor=04b4, idProduct=f9f9, bcdDevice= 0.17
[ 3224.921197] usb 2-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3224.921207] usb 2-3.1: Product: GuideCamera
[ 3224.921214] usb 2-3.1: Manufacturer: Cypress
[ 3224.930868] uvcvideo: Unknown video format e436eb7b-524f-11ce-9f53-0020af0ba770
[ 3224.930923] uvcvideo: Found UVC 1.00 device GuideCamera (04b4:f9f9)
[ 3224.991719] input: GuideCamera as /devices/platform/3610000.xhci/usb2/2-3/2-3.1/2-3.1:1.0/input/input6
[ 3224.992757] cdc_acm 2-3.1:1.2: ttyACM0: USB ACM device
[ 3225.075769] usb 2-3.4: new SuperSpeed Gen 1 USB device number 7 using tegra-xusb
[ 3225.096837] usb 2-3.4: New USB device found, idVendor=0403, idProduct=602a, bcdDevice= 0.01
[ 3225.096851] usb 2-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=7

Also I’ve been able to run the camera for multiple days on windows and desktop x86_64 linux.
I don’t know if my issue is related to yours or not.

Do you have devkit to try if issue still presented? Thanks

I am using SeeedStudio reComputer J2022.

Can issue repro on general USB camera? not with Aivion TL6035 converter?

I connected another UVC camera (higher resolution and higher frame rate). The camera works without problems for days on the Jetson.
Aivion TL6035 + Sony camera works for days in Windows OS, but does not work on Jetson for 30 minutes…

This could be the cause, not sure any driver related issue there.

The first thing I did was contact Aivion tech support. They said that I have the latest revision of the board with the latest firmware, many people use this board and there were no problems. Perhaps no one connected such a kit to the Jetson Xavier NX. I do not even know. I have two kits (Sony FCB-EV9500L + Aivion TL6035 converter + Jetson Xavier NX), both don’t work well. I am inclined that this is a problem with Aivion TL6035, but tech support did not help me in any way.

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