- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are trying to interface The Neural Compute Stick 2 . The NCS2 is attached on PC1(running Ubuntu 18.04) and the device is accecced on PC2 (Ubuntu 18.04) via USB-IP, but it fails during test.
the USBIP attach is OK and I can see the USB device through lsusb.
Here is the output I have during the test:
root:~# usbip attach -r 192.168.70.104 -b 1-6
[ 1210.275716] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(3)
[ 1210.275758] vhci_hcd vhci_hcd.0: devid(196635) speed(3) speed_str(high-speed)
root:~# ./security_barrier_camera_demo -d MYRIAD -d_va MYRIAD -d_lpr MYRIAD -i car_1.bmp -m ./vehicle-license-plate-detection-barrier-0106.xml -m_lpr ./license-plate-recognition-barrier-0001.xml -m_va ./vehicle-attributes-recognition-barrier-0039.xml
[ INFO ] InferenceEngine: 0xffffba9bd038
[ INFO ] Files were added: 1
[ INFO ] car_1.bmp
[ INFO ] Loading device MYRIAD
MYRIAD
myriadPlugin version ......... 2.1
Build ........... custom_HEAD_ac65ea30fd90ec04bcf9a3c326f846d8f86f516d
[ INFO ] Loading detection model to the MYRIAD plugin
[ 258.496862] vhci_hcd: connection closed
[ 258.496978] vhci_hcd: stop threads
[ 258.497247] vhci_hcd: release socket
[ 258.497870] vhci_hcd: disconnect device
[ 258.501591] usb 1-1: USB disconnect, device number 2
^C
After that, the device is no more visible on lsusb.
and in the logs of the host computer :
sami@optiplex-9020:~/$ tail /var/log/kern.log -n20
Oct 14 15:09:49 optiplex-9020 kernel: [2613623.394398] usb 1-6: Product: Movidius MyriadX
Oct 14 15:09:49 optiplex-9020 kernel: [2613623.394398] usb 1-6: Manufacturer: Movidius Ltd.
Oct 14 15:09:49 optiplex-9020 kernel: [2613623.394399] usb 1-6: SerialNumber: 03e72485
Oct 14 15:10:54 optiplex-9020 kernel: [2613688.658199] usbip-host 1-6: usbip-host: register new device (bus 1 dev 65)
Oct 14 15:11:13 optiplex-9020 kernel: [2613707.555820] usbip-host 1-6: stub up
Oct 14 15:13:04 optiplex-9020 kernel: [2613818.595311] usbip-host 1-6: USB disconnect, device number 65
Oct 14 15:13:04 optiplex-9020 kernel: [2613818.595649] usbip-host 1-6: recv a header, 0
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.926207] usb 2-6: new SuperSpeed Gen 1 USB device number 20 using xhci_hcd
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946679] usb 2-6: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946680] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946681] usb 2-6: Product: VSC Loopback Device
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946682] usb 2-6: Manufacturer: Intel Corporation
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946682] usb 2-6: SerialNumber: 41440410012419BC00
Oct 14 15:13:16 optiplex-9020 kernel: [2613830.673528] usb 2-6: USB disconnect, device number 20
Oct 14 15:13:17 optiplex-9020 kernel: [2613830.878668] usb 1-6: new high-speed USB device number 66 using xhci_hcd
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027143] usb 1-6: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027145] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027146] usb 1-6: Product: Movidius MyriadX
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027146] usb 1-6: Manufacturer: Movidius Ltd.
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027147] usb 1-6: SerialNumber: 03e72485
sami@optiplex-9020:~/$ tail /var/log/syslog -n50
Oct 14 15:09:49 optiplex-9020 upowerd[2398]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6
Oct 14 15:10:54 optiplex-9020 upowerd[2398]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6
Oct 14 15:10:54 optiplex-9020 upowerd[2398]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6
Oct 14 15:10:54 optiplex-9020 kernel: [2613688.658199] usbip-host 1-6: usbip-host: register new device (bus 1 dev 65)
Oct 14 15:11:13 optiplex-9020 kernel: [2613707.555820] usbip-host 1-6: stub up
Oct 14 15:13:04 optiplex-9020 upowerd[2398]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6
Oct 14 15:13:04 optiplex-9020 kernel: [2613818.595311] usbip-host 1-6: USB disconnect, device number 65
Oct 14 15:13:04 optiplex-9020 kernel: [2613818.595649] usbip-host 1-6: recv a header, 0
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.926207] usb 2-6: new SuperSpeed Gen 1 USB device number 20 using xhci_hcd
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946679] usb 2-6: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946680] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946681] usb 2-6: Product: VSC Loopback Device
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946682] usb 2-6: Manufacturer: Intel Corporation
Oct 14 15:13:05 optiplex-9020 kernel: [2613818.946682] usb 2-6: SerialNumber: 41440410012419BC00
Oct 14 15:13:05 optiplex-9020 mtp-probe: checking bus 2, device 20: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6"
Oct 14 15:13:05 optiplex-9020 mtp-probe: bus: 2, device: 20 was not an MTP device
Oct 14 15:13:05 optiplex-9020 upowerd[2398]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6
Oct 14 15:13:16 optiplex-9020 kernel: [2613830.673528] usb 2-6: USB disconnect, device number 20
Oct 14 15:13:16 optiplex-9020 upowerd[2398]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6
Oct 14 15:13:17 optiplex-9020 kernel: [2613830.878668] usb 1-6: new high-speed USB device number 66 using xhci_hcd
Oct 14 15:13:17 optiplex-9020 mtp-probe: checking bus 1, device 66: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6"
Oct 14 15:13:17 optiplex-9020 mtp-probe: bus: 1, device: 66 was not an MTP device
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027143] usb 1-6: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027145] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027146] usb 1-6: Product: Movidius MyriadX
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027146] usb 1-6: Manufacturer: Movidius Ltd.
Oct 14 15:13:17 optiplex-9020 kernel: [2613831.027147] usb 1-6: SerialNumber: 03e72485
Oct 14 15:13:17 optiplex-9020 upowerd[2398]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sami,
Thank you for reaching out to us. We are currently investigating this issue and will get back to you soon. If possible, could you share additional information regarding:
- CPU devices used to run this demo
- OpenVINO version used on the system
Regards,
Adli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please find the response below:
1) We ran the demo on i.MX8
2) Openvino Build ac65ea30fd90ec04bcf9a3c326f846d8f86f516d
I also tried the MyriadX directly plugged into the Ubuntu 18.04 Linux machine and ran the demo_security_barrier_camera demo.
The demo ran successfully.
But I found that the USB device is disconnecting and connecting two times even on the Linux machine.
Below is the dmesg log:
Initial log on Linux machine
----------------------------
[ 2497.728145] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[ 2497.877103] usb 1-2: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
[ 2497.877114] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2497.877120] usb 1-2: Product: Movidius MyriadX
[ 2497.877125] usb 1-2: Manufacturer: Movidius Ltd.
[ 2497.877130] usb 1-2: SerialNumber: 03e72485
While demo_security_barrier_camera demo is running on Linux machine
--------------------------------------
[ 2545.311779] usb 1-2: USB disconnect, device number 4
[ 2545.731931] usb 1-2: new high-speed USB device number 5 using xhci_hcd
[ 2545.880649] usb 1-2: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
[ 2545.880651] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2545.880653] usb 1-2: Product: VSC Loopback Device
[ 2545.880655] usb 1-2: Manufacturer: Intel Corporation
[ 2545.880657] usb 1-2: SerialNumber: 3044FC1071D1C4BA00
[ 2554.480743] usb 1-2: USB disconnect, device number 5
[ 2554.795951] usb 1-2: new high-speed USB device number 6 using xhci_hcd
[ 2554.944482] usb 1-2: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
[ 2554.944485] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2554.944487] usb 1-2: Product: Movidius MyriadX
[ 2554.944489] usb 1-2: Manufacturer: Movidius Ltd.
[ 2554.944491] usb 1-2: SerialNumber: 03e72485
We found that this USB re-enumeration is the root cause of disconnect in the USBIP. If the device is not stable on the host side then the USBIP client-server connection also disconnects. Is there any workaround or fix to avoid this USB re-enumeration while the demo is running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sami,
Sorry for the delay. I don't think it is possible to avoid such USB re-enumeration as you mentioned in the latest reply. This occurs by design and cannot be changed. Therefore, the USBIP usage would be unworkable due to this NCS2 behavior.
Regards,
Adli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sami,
This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.
Regards,
Adli
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page