How to check USB Bandwidth

Hi,

I connected 2 USB cameras via a USB Hub, I want to check USB-bandwidth consumption in TX2.

Is there any way to monitor USB-Bandwidth consumption ?

Regards
Antony

Hi AntoShan001,

For USB performance test, we’re using iozone utility to do test.

$ sudo apt-get update
$ sudo apt-get install iozone3

Hi Carolyuu,

Thank you for the information.

I connected two camera and a bar-code reader on a USB hub to TX2. I got “Select timeout”.

I did little-bit of google search and it seems to be related to USB bandwidth issue.

How can i use ‘iozone3’ to monitor the bandwidth consumption.

Is there any way-around to solve this issue ?

Thanks

Hi AntoShan001,

The “iozone3” is performance tool.
If you want to test USB bandwidth, you can reference below tool:
https://askubuntu.com/questions/252163/how-to-monitor-usb-webcam-bandwidth-usage

What’s your question now? plug-in two usb camera via usb hub not working?

Hi Carolyuu,

Sorry for making the question unclear.

Two USB cameras via USB-hub working fine, but once in while, i receive “Select Timeout”. When i reboot the problem resolve itself.

Could not figure out why this is occurring occurring.

What would be a good solution to this ?

Regards
Antony

hello AntoShan001,

may I know which JetPack release you’re working with?
suggest you gather full kernel messages while issue reproduce and share to us for checking.

$ dmesg > klog.txt

tegra_release R28; Ubuntu 16.04

This is my Output for dmesg

[  322.405769] usb 1-1.1: new high-speed USB device number 5 using xhci-tegra
[  322.652930] usb 1-1.1: New USB device found, idVendor=04f2, idProduct=a14b
[  322.659915] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  322.667328] usb 1-1.1: Product: FULL HD 5MP Webcam
[  322.672303] usb 1-1.1: Manufacturer: Sunplus IT Co 
[  322.677255] usb 1-1.1: SerialNumber: 20111124
[  323.009707] usb 1-1.2: new high-speed USB device number 6 using xhci-tegra
[  323.260738] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=a14b
[  323.267682] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  323.275275] usb 1-1.2: Product: FULL HD 5MP Webcam
[  323.280134] usb 1-1.2: Manufacturer: Sunplus IT Co 
[  323.285036] usb 1-1.2: SerialNumber: 20111124
[  323.499007] uvcvideo: Found UVC 1.00 device FULL HD 5MP Webcam (04f2:a14b)
[  323.573978] input: FULL HD 5MP Webcam as /devices/3530000.xhci/usb1/1-1/1-1.1/1-1.1:1.0/input/input7
[  323.586015] uvcvideo: Found UVC 1.00 device FULL HD 5MP Webcam (04f2:a14b)
[  323.660040] input: FULL HD 5MP Webcam as /devices/3530000.xhci/usb1/1-1/1-1.2/1-1.2:1.0/input/input8
[  323.673984] usbcore: registered new interface driver uvcvideo
[  323.680077] USB Video Class driver (1.1.1)
[  323.796133] usbcore: registered new interface driver snd-usb-audio
[  378.169718] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[  380.168127] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[  524.730373] tegradc 15210000.nvdisplay: blank - powerdown
[  524.794678] PD DISP2 index4 DOWN
[  524.794776] PD DISP1 index3 DOWN
[  524.794857] PD DISP0 index2 DOWN
[  527.935375] tegradc 15210000.nvdisplay: hdmi: unplugged
[  527.940659] tegradc 15210000.nvdisplay: blank - powerdown
[  527.946153] tegradc 15210000.nvdisplay: unblank
[  527.950720] tegradc 15210000.nvdisplay: unblank
[  528.167827] tegradc 15210000.nvdisplay: blank - powerdown
[  528.173290] tegradc 15210000.nvdisplay: hdmi: plugged
[  528.182129] tegradc 15210000.nvdisplay: blank - powerdown
[  528.187558] tegradc 15210000.nvdisplay: unblank
[  528.187571] PD DISP0 index2 UP
[  528.188633] PD DISP1 index3 UP
[  528.188716] PD DISP2 index4 UP
[  528.190153] Parent Clock set for DC plld2
[  528.191593] tegradc 15210000.nvdisplay: hdmi: pclk:148500K, set prod-setting:prod_c_150M
[  529.233389] tegradc 15210000.nvdisplay: unblank
[  529.394197] tegradc 15210000.nvdisplay: blank - powerdown
[  529.463476] PD DISP2 index4 DOWN
[  529.463586] PD DISP1 index3 DOWN
[  529.463681] PD DISP0 index2 DOWN
[  529.480688] tegradc 15210000.nvdisplay: unblank
[  529.480730] PD DISP0 index2 UP
[  529.481802] PD DISP1 index3 UP
[  529.481892] PD DISP2 index4 UP
[  529.483578] Parent Clock set for DC plld2
[  529.485177] tegradc 15210000.nvdisplay: hdmi: pclk:148500K, set prod-setting:prod_c_150M
[  529.545057] tegradc 15210000.nvdisplay: unblank
[  682.355978] tegradc 15210000.nvdisplay: unblank
[  682.363093] tegradc 15210000.nvdisplay: blank - powerdown
[  682.423592] PD DISP2 index4 DOWN
[  682.423685] PD DISP1 index3 DOWN
[  682.423761] PD DISP0 index2 DOWN
[  682.442333] tegradc 15210000.nvdisplay: unblank
[  682.442346] PD DISP0 index2 UP
[  682.443288] PD DISP1 index3 UP
[  682.443385] PD DISP2 index4 UP
[  682.445602] Parent Clock set for DC plld2
[  682.447254] tegradc 15210000.nvdisplay: hdmi: pclk:148500K, set prod-setting:prod_c_150M
[  682.507216] tegradc 15210000.nvdisplay: unblank
[  699.424191] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[  699.445663] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
[  704.924774] usb 1-1.1: USB disconnect, device number 5
[  706.460243] usb 1-1.2: USB disconnect, device number 6

Two cameras are; Chicony Electronica Co. Letd 04f2:a14b

Seems like the problem occurs when the TX2 goes to sleep and after around 10min, when i log-back in I can see the “Select timeout”

hello AntoShan001,

it’ll turn-off several power rails when enter deep sleep mode.
please also check the developer guide, Power Management for Jetson TX2 Series Devices.

please narrow down the issue to gather more details,
what’s the scenario that you could working with these usb-camera successfully.
could you please have confirmation that these usb-camera devices still workable by hot-plug again?
thanks

Hi JerryChang,

I set the “Turn screen off” to “Never” after that the “Select timeout” occurs once in while, I could not reproduce it.

I have not tried the hot-plug but I rebooting the system Fixes the issue.

I tried restarted the UVC driver, still now help.