Loss of a usb camera after a while

Hello,

When I plug the camera in the USB port on the Jetson TX2 dev board, I lost the camera after a while.

The problem does not appear when the camera is plug through a USB powered HUB.

I try this to add “usbcore.autosuspend=-1” to /boot/extlinux/extlinux.conf:
TIMEOUT 30
DEFAULT primary

MENU TITLE p2771-0000 eMMC boot options

LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 usbcore.autosuspend=-1

But it does not work.

Could you help ?

jb.tristant,

Could you still see this device in lsusb?

Yes,

Bus 002 Device 006: ID 1409:3240 IDS Imaging Development Systems GmbH
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

You mentioned the hub in previous comment. Please share more detail of how you connect your device.

Which usecase could reproduce the issue? Do you directly connect usb camera to tx2? Or it is through a hub?

When I directly connect the camera to the TX2 Dev Board. The camera failed after 10 to 30 min.

When I connect the camera through an powered USB Hub and the Hub to the TX2 Dev Board, it works (many hours).

jb.tristant,

Thanks for info. could you also share the dmesg with us? The dmesg may show the disconnection info.

Dongle Host Driver, version 1.201.82 (r)
               Compiled in drivers/net/wireless/bcmdhd on Mar  1 2018 at 20:46:20
[    8.371313] wl_android_wifi_on in
[    8.371315] wifi_platform_set_power = 1
[    8.598862] usb 1-2: new high-speed USB device number 2 using xhci-tegra
[    8.644662] mmc1: queuing unknown CIS tuple 0x80 (5 bytes)
[    8.655396] usb 2-1: new SuperSpeed USB device number 2 using xhci-tegra
[    8.668892] tegra-pcie 10003000.pcie-controller: link 0 down, retrying
[    8.675779] usb 2-1: feature bit otg_vbus_off set
[    8.675783] usb 2-1: New USB device found, idVendor=05e3, idProduct=0617
[    8.675786] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.675788] usb 2-1: Product: USB3.0 Hub
[    8.675790] usb 2-1: Manufacturer: GenesysLogic
[    8.676376] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[    8.680750] hub 2-1:1.0: USB hub found
[    8.681143] hub 2-1:1.0: 4 ports detected
[    8.726897] tegra-pcie 10003000.pcie-controller: link 0 down, ignoring
[    8.747415] usb 1-2: feature bit otg_vbus_off set
[    8.751945] sdhci-tegra 3440000.sdhci: Tuning already done, restoring the best tap value : 21
[    8.752627] F1 signature read @0x18000000=0x17214354
[    8.756981] F1 signature OK, socitype:0x1 chip:0x4354 rev:0x1 pkg:0x2
[    8.757654] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[    8.785026] usb 1-2: New USB device found, idVendor=05e3, idProduct=0610
[    8.792743] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.800866] usb 1-2: Product: USB2.0 Hub
[    8.806023] usb 1-2: Manufacturer: GenesysLogic
[    8.813593] hub 1-2:1.0: USB hub found
[    8.819793] hub 1-2:1.0: 4 ports detected
[    8.889300] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[    8.940988] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[    8.948428] Enabling wake69
[    8.954118] wifi_platform_get_mac_addr
[    8.955381] usb 2-1.3: new SuperSpeed USB device number 3 using xhci-tegra
[    8.969203] Firmware up: op_mode=0x0002, MAC=00:04:4b:8d:76:8c
[    8.972266] usb 2-1.3: New USB device found, idVendor=1409, idProduct=3240
[    8.972269] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.972271] usb 2-1.3: Product: USB 3.0 Camera
[    8.972273] usb 2-1.3: Manufacturer: Camera Manufacturer
[    9.010277] dhd_preinit_ioctls pspretend_threshold for HostAPD failed  -23
[    9.026692] Firmware version = wl0: Dec 12 2017 15:09:35 version 7.35.221.34 (r679642) FWID 01-e35dbe99
[    9.041059] dhd_interworking_enable: failed to set WNM info, ret=-23
[    9.048764] tegra_sysfs_on
[    9.104020] CFG80211-ERROR) wl_cfg80211_del_station : Disconnect STA : ff:ff:ff:ff:ff:ff scb_val.val 3
[    9.115560] usb 1-2.1: new low-speed USB device number 3 using xhci-tegra
[    9.127037] dhd_ndo_add_ip: ndo ip addr add failed, retcode = -23
[    9.134491] dhd_inet6_work_handler: Adding host ip for NDO failed -23
[    9.142237] CFG80211-ERROR) wl_cfg80211_set_channel : netdev_ifidx(5), chan_type(1) target channel(1) 
[    9.143788] CFG80211-ERROR) wl_cfg80211_parse_ies : No WPSIE in beacon 
[    9.143791] CFG80211-ERROR) wl_cfg80211_parse_ies : No WPSIE in beacon 
[    9.152880] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[    9.182720] _dhd_wlfc_mac_entry_update():1733, entry(32)
[    9.220049] usb 1-2.1: New USB device found, idVendor=046d, idProduct=c31c
[    9.228155] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.237718] usb 1-2.1: Product: USB Keyboard
[    9.243114] usb 1-2.1: Manufacturer: Logitech
[    9.248880] usb 1-2.1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[    9.260495] usb 1-2.1: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[    9.265936] input: Logitech USB Keyboard as /devices/3530000.xhci/usb1/1-2/1-2.1/1-2.1:1.0/0003:046D:C31C.0001/input/input4
[    9.290915] l4tbr0: port 2(usb1) entered disabled state
[    9.314156] gk20a 17000000.gp10b: railgate is disabled.
[    9.319223] hid-generic 0003:046D:C31C.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-3530000.xhci-2.1/input0
[    9.326258] input: Logitech USB Keyboard as /devices/3530000.xhci/usb1/1-2/1-2.1/1-2.1:1.1/0003:046D:C31C.0002/input/input5
[    9.347977] tegradc 15210000.nvdisplay: blank - powerdown
[    9.379029] hid-generic 0003:046D:C31C.0002: input,hidraw1: USB HID v1.10 Device [Logitech USB Keyboard] on usb-3530000.xhci-2.1/input1
[    9.416795] IPVS: Creating netns size=1424 id=1
[    9.478855] usb 1-2.2: new low-speed USB device number 4 using xhci-tegra
[    9.517010] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.525882] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.552924] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[    9.554032] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.580059] usb 1-2.2: New USB device found, idVendor=046d, idProduct=c040
[    9.587100] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.599168] usb 1-2.2: Product: USB-PS/2 Optical Mouse
[    9.614378] usb 1-2.2: Manufacturer: Logitech
[    9.619808] usb 1-2.2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[    9.642409] input: Logitech USB-PS/2 Optical Mouse as /devices/3530000.xhci/usb1/1-2/1-2.2/1-2.2:1.0/0003:046D:C040.0003/input/input6
[    9.654807] hid-generic 0003:046D:C040.0003: input,hidraw2: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-3530000.xhci-2.2/input0
[    9.743162] CPU1: shutdown
[    9.745881] psci: CPU1 killed.
[    9.786930] CPU2: shutdown
[    9.794852] psci: CPU2 killed.
[    9.877102] cfg80211: World regulatory domain updated:
[    9.882456] cfg80211:  DFS Master region: unset
[    9.882933] usb 2-1.3: USB disconnect, device number 3
[    9.894200] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    9.904579] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    9.914373] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    9.923872] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    9.932048] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    9.944270] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    9.953838] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    9.962922] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    9.974288] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   10.010159] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[   10.018809] tegra-pcie 10003000.pcie-controller: link 2 down, ignoring
[   10.025468] tegra-pcie 10003000.pcie-controller: PCIE: no end points detected
[   10.033008] tegra-pcie 10003000.pcie-controller: PCIE: Disable power rails
[   10.147413] usb 2-1.3: new SuperSpeed USB device number 4 using xhci-tegra
[   10.168126] usb 2-1.3: New USB device found, idVendor=1409, idProduct=3240
[   10.175055] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   10.182416] usb 2-1.3: Product: USB 3.0 Camera
[   10.186910] usb 2-1.3: Manufacturer: Camera Manufacturer
[   10.193016] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[   10.972090] fuse init (API version 7.23)
[   12.410380] eqos 2490000.ether_qos eth0: Link is Up - 1Gbps/Full - flow control off
[   12.419402] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.429423] IPVS: Creating netns size=1424 id=2
[   14.132787] IPVS: Creating netns size=1424 id=3
[   96.248003] tegradc 15210000.nvdisplay: blank - powerdown
[   96.254498] tegradc 15210000.nvdisplay: hdmi: plugged
[   96.263210] tegradc 15210000.nvdisplay: blank - powerdown
[   96.403417] tegradc 15210000.nvdisplay: blank - powerdown
[   96.408941] tegradc 15210000.nvdisplay: unblank
[   96.408962] PD DISP0 index2 UP
[   96.410028] PD DISP1 index3 UP
[   96.410147] PD DISP2 index4 UP
[   96.412093] Parent Clock set for DC plld2
[   96.416805] tegradc 15210000.nvdisplay: hdmi: pclk:148500K, set prod-setting:prod_c_150M
[   97.456583] tegradc 15210000.nvdisplay: unblank
[  360.095844] CFG80211-ERROR) wl_cfg80211_change_station : WLC_SCB_AUTHORIZE sta_flags_mask not set 
[ 2796.750774] usb 2-1.3: USB disconnect, device number 4
[ 2796.759542] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 2803.459599] usb 1-2: USB disconnect, device number 2
[ 2803.464971] usb 1-2.1: USB disconnect, device number 3
[ 2803.586780] usb 1-2.2: USB disconnect, device number 4
[ 2803.767329] usb 2-1: USB disconnect, device number 2
[ 2803.775844] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 2805.097908] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
[ 2805.105107] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
[ 2818.210593] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 4
[ 2818.217772] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_INC_SSPI_CLOCK request
[ 2818.471346] usb 2-1: new SuperSpeed USB device number 5 using xhci-tegra
[ 2818.492956] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 2818.499759] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2818.507016] usb 2-1: Product: USB 3.0 Camera
[ 2818.511529] usb 2-1: Manufacturer: Camera Manufacturer
[ 2819.782781] usb 2-1: USB disconnect, device number 5
[ 2820.027368] usb 2-1: new SuperSpeed USB device number 6 using xhci-tegra
[ 2820.049391] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 2820.056300] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2820.063739] usb 2-1: Product: USB 3.0 Camera
[ 2820.068172] usb 2-1: Manufacturer: Camera Manufacturer
[ 2820.075536] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 3916.908378] QThread[1587]: unhandled level 2 translation fault (11) at 0x00000050, esr 0x92000006
[ 3916.917442] pgd = ffffffc1e1ba4000
[ 3916.920882] [00000050] *pgd=0000000261643003, *pud=0000000261643003, *pmd=0000000000000000

[ 3916.930774] CPU: 3 PID: 1587 Comm: QThread Not tainted 4.4.38-tegra #1
[ 3916.937307] Hardware name: quill (DT)
[ 3916.940981] task: ffffffc1e4823200 ti: ffffffc1e2430000 task.ti: ffffffc1e2430000
[ 3916.948460] PC is at 0x7f877b6a90
[ 3916.951767] LR is at 0x7f875952c4
[ 3916.955090] pc : [<0000007f877b6a90>] lr : [<0000007f875952c4>] pstate: 80000000
[ 3916.962489] sp : 0000007f850a65c0
[ 3916.965809] x29: 0000007f850a65e0 x28: 0000000000000000 
[ 3916.971142] x27: 000000000000000d x26: 0000007f80119370 
[ 3916.976482] x25: 0000000000000000 x24: 0000007f8812e2d0 
[ 3916.981810] x23: 0000000000000000 x22: 0000007f80119420 
[ 3916.987143] x21: 000000000000001d x20: 000000000000001d 
[ 3916.992479] x19: 0000000000000000 x18: 0000000000000a03 
[ 3916.997808] x17: 0000007f877b6a80 x16: 0000007f875d9090 
[ 3917.003140] x15: 001dcd6500000000 x14: 0000000000000000 
[ 3917.008474] x13: 0000000000000000 x12: 0000007fffffffff 
[ 3917.013802] x11: 00000000ffffffd0 x10: 0000007f850a6b50 
[ 3917.019130] x9 : 0000000000004cb0 x8 : 0101010101010101 
[ 3917.024467] x7 : 20657a696c616974 x6 : 0000000000000000 
[ 3917.029799] x5 : 0000007f850a6568 x4 : 0000000000000050 
[ 3917.035131] x3 : 0000007f80077e20 x2 : 0000007f87594d68 
[ 3917.040465] x1 : 0000007f875952b8 x0 : 0000000000000050 

[ 3917.047282] Library at 0x7f877b6a90: 0x7f87740000 /lib/aarch64-linux-gnu/libc-2.23.so
[ 3917.055112] Library at 0x7f875952c4: 0x7f874bd000 /usr/lib/aarch64-linux-gnu/libgstreamer-1.0.so.0.803.0
[ 3917.064582] vdso base = 0x7f8816b000
[ 3990.372608] usb 2-1: USB disconnect, device number 6
[ 3990.379161] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 3991.709496] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
[ 3991.716579] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
[ 3993.592333] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 4
[ 3993.599367] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_INC_SSPI_CLOCK request
[ 3993.852759] usb 2-1: new SuperSpeed USB device number 7 using xhci-tegra
[ 3993.873786] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 3993.880565] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3993.887864] usb 2-1: Product: USB 3.0 Camera
[ 3993.892275] usb 2-1: Manufacturer: Camera Manufacturer
[ 3995.124298] usb 2-1: USB disconnect, device number 7
[ 3995.368780] usb 2-1: new SuperSpeed USB device number 8 using xhci-tegra
[ 3995.390034] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 3995.396819] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3995.404101] usb 2-1: Product: USB 3.0 Camera
[ 3995.408540] usb 2-1: Manufacturer: Camera Manufacturer
[ 3995.414805] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 4620.102805] usb 2-1: USB disconnect, device number 8
[ 4620.108924] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 4621.435207] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
[ 4621.442252] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
[ 4622.209221] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 4
[ 4622.216305] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_INC_SSPI_CLOCK request
[ 4622.471374] usb 2-1: new SuperSpeed USB device number 9 using xhci-tegra
[ 4622.492966] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 4622.499802] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4622.507211] usb 2-1: Product: USB 3.0 Camera
[ 4622.511634] usb 2-1: Manufacturer: Camera Manufacturer
[ 4623.774775] usb 2-1: USB disconnect, device number 9
[ 4624.019373] usb 2-1: new SuperSpeed USB device number 10 using xhci-tegra
[ 4624.041437] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 4624.048246] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4624.055736] usb 2-1: Product: USB 3.0 Camera
[ 4624.060211] usb 2-1: Manufacturer: Camera Manufacturer
[ 4624.067870] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 6446.377998] usb 2-1: USB disconnect, device number 10
[ 6446.384176] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 6447.710927] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
[ 6447.717959] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
[ 6450.684216] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 4
[ 6450.691385] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_INC_SSPI_CLOCK request
[ 6450.946532] usb 2-1: new SuperSpeed USB device number 11 using xhci-tegra
[ 6450.968088] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 6450.975103] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 6450.982414] usb 2-1: Product: USB 3.0 Camera
[ 6450.986838] usb 2-1: Manufacturer: Camera Manufacturer
[ 6452.261925] usb 2-1: USB disconnect, device number 11
[ 6452.506565] usb 2-1: new SuperSpeed USB device number 12 using xhci-tegra
[ 6452.528535] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 6452.535342] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 6452.542820] usb 2-1: Product: USB 3.0 Camera
[ 6452.547254] usb 2-1: Manufacturer: Camera Manufacturer
[ 6452.554598] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6

The device is still connected until I unplug it:

[ 7905.465303] usb 2-1: USB disconnect, device number 12

This is me

[ 6450.986838] usb 2-1: Manufacturer: Camera Manufacturer
[ 6452.261925] usb 2-1: USB disconnect, device number 11
[ 6452.506565] usb 2-1: new SuperSpeed USB device number 12 using xhci-tegra
[ 6452.528535] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 6452.535342] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 6452.542820] usb 2-1: Product: USB 3.0 Camera
[ 6452.547254] usb 2-1: Manufacturer: Camera Manufacturer
[ 6452.554598] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 7905.465303] usb 2-1: USB disconnect, device number 12
[ 7905.473689] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[ 7906.799397] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
[ 7906.806554] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
[ 7908.008170] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 4
[ 7908.015320] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_INC_SSPI_CLOCK request
[ 7908.269927] usb 2-1: new SuperSpeed USB device number 13 using xhci-tegra
[ 7908.291467] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 7908.298331] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7908.305582] usb 2-1: Product: USB 3.0 Camera
[ 7908.310121] usb 2-1: Manufacturer: Camera Manufacturer
[ 7909.581241] usb 2-1: USB disconnect, device number 13
[ 7909.825963] usb 2-1: new SuperSpeed USB device number 14 using xhci-tegra
[ 7909.848273] usb 2-1: New USB device found, idVendor=1409, idProduct=3240
[ 7909.855093] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7909.862873] usb 2-1: Product: USB 3.0 Camera
[ 7909.867469] usb 2-1: Manufacturer: Camera Manufacturer
[ 7909.875067] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6

jb.tristant,

Sorry that this is still confusing and I cannot tell which part is the one that USB device is gone. Could you point out which time stamp is it?

Do below log all indicate your usb disconnection error?

[ 2819.782781] usb 2-1: USB disconnect, device number 5
[ 3990.372608] usb 2-1: USB disconnect, device number 6
[ 3995.124298] usb 2-1: USB disconnect, device number 7

So the device in “lsusb” still exists while there is continuous disconnection log. Is it correct?

Yes, it is the same device.
The device is unavailable from the daemon that manage it and I get an end of stream in GStreamer. But it is still connected to the board and I see it with lsusb.
The USB disconnect appear in the log when I unplug it, not when the camera is unavailable.

What is strange is that the camera is running (from yesterday 15h to now - today 9h) when it’s plug though the HUB…

The power consumption of the camera is 300mAh.

jb.tristant,

The USB disconnect appear in the log when I unplug it, not when the camera is unavailable.
-> It means there is no log when camera is gone. Is it correct?

We just tried one usb camera, but cannot reproduce your issue (camera is still working after idle time > 30 min).

According to your comment, I need to confirm the usecase again.
Case1:
You keep running streaming and the streaming just goes down suddenly

Case2:
You did nothing for this camera and tx. Came back after 10-30 min and it cannot launch the gst pipeline anymore.

Which one is the correct usecase?

The USB disconnect appear in the log when I unplug it, not when the camera is unavailable.
-> It means there is no log when camera is gone. Is it correct?
-> -> Yes

We just tried one usb camera, but cannot reproduce your issue (camera is still working after idle time > 30 min).

According to your comment, I need to confirm the usecase again.
Case1:
You keep running streaming and the streaming just goes down suddenly
-> -> Yes, and it cannot launch the gst pipeline anymore

Case2:
You did nothing for this camera and tx. Came back after 10-30 min and it cannot launch the gst pipeline anymore.

Finally, I upgraded the kit to Jetpack R28.2, the driver from IDS Camera and streaming running for the night. So it’s good. Thanks for your help.