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.