Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Error when switching from ncs1 to ncs2 Ubuntu 16.04

Ravichandran__Sangat
1,074 Views

Hello Everyone,

I bought both intel ncs1 and ncs2 for my image classificator app. I used both the sticks on windows 10 with openvino toolkit with latest version. It works fine. Also when I use ncs1 on my Ubuntu 16.04 it works fine as well. But when I unplug ncs1 and plug my ncs2 in Ubuntu, it doesn't work. When I try to infer, I get the following error.

E: [ncAPI] [    646005] ncDeviceOpen:799    Failed connection to device (1.1-ma2480) with error 5
Segmentation fault (core dumped)

Could anyone please help?

0 Kudos
15 Replies
Shubha_R_Intel
Employee
1,074 Views

Dear Sangathamilan, so did you run inference on either the NCS1 or NCS2 ? Or did you merely plug them in and then out ?

Please post your reply here. And thanks for using OpenVino !

Shubha

 

0 Kudos
Ravichandran__Sangat
1,074 Views

Hello Shuba,

Thanks for the reply. I created the IR with model optimizer and tried to run inference with the classification python sample. I ran it with NCS1 first. It works as expected. Then i plug out NCS1 and plug in NCS2 and run the sample again. But I get the error mentioned in the question.

Best,

Sangathamilan

0 Kudos
Shubha_R_Intel
Employee
1,074 Views

Dear  Raichandran, Sangathamilan:

No doubt this is odd. If I can reproduce it ( I will try and reproduce it today on Ubuntu 16.04 ) I will file a bug. 

Thanks for using OpenVino !

Shubha

 

0 Kudos
Ravichandran__Sangat
1,074 Views

Thank you. I would wait for further updates then.

Best,

Sangathamilan Ravichandran

0 Kudos
Dmitry_K_Intel3
Employee
1,074 Views

Have you tried to run the sample with NCS2 only? In example, just after reboot of Ubuntu?

 

Could you paste a content of /etc/udev/rules.d/97-myriad-usbboot.rules ?

0 Kudos
Ravichandran__Sangat
1,074 Views

Hello Kurtaev,

Thanks for the reply. Yes I have tried running it only on NCS2 after reboot. Please find the content of  etc/udev/rules.d/97-myriad-usbboot.rules

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="tty", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"

Thanks,

Sanga

0 Kudos
Dmitry_K_Intel3
Employee
1,074 Views

Yes I have tried running it only on NCS2 after reboot

 

This way it works or not?

 

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="tty", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"

 

The content looks incorrect. There is no 2485 product ID which corresponds to MyriadX. Which version of OpenVINO is used?

0 Kudos
Ravichandran__Sangat
1,074 Views

Hello Kurtaev,

No it doesnn't work still. And I am using openvino version 2019.1.094

 

Best,

Sanga

0 Kudos
Chen__Boyuan1
Beginner
1,074 Views

Shubha R. (Intel) wrote:

Dear  Raichandran, Sangathamilan:

No doubt this is odd. If I can reproduce it ( I will try and reproduce it today on Ubuntu 16.04 ) I will file a bug. 

Thanks for using OpenVino !

Shubha

 

 

I can confirm this bug. Platform is Ubuntu 16.04, latest OpenVINO 2019. My code works fine on OpenCL16 but on NCS2 it gives exactly the same error as here

0 Kudos
Ravichandran__Sangat
1,074 Views

Hello,

Could anyone kindly update me on this issue?

Best regards,

Sanga

0 Kudos
Dmitry_K_Intel3
Employee
1,074 Views

Please show us the content of your's /etc/udev/rules.d/97-myriad-usbboot.rules one more time.

Also check an output from lsusb. Is there a device with 03e7:2485 ids?

0 Kudos
Ravichandran__Sangat
1,074 Views

Hello Kurtaev,

Please find the content from the rules once again below.

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="tty", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"

 

And yes there is a device with id 03e7:2485 in the lsusb command (given below are the list of devices)

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 5986:112d Acer, Inc
Bus 001 Device 003: ID 046d:c05b Logitech, Inc. M-U0004 810-001317 [B110 Optical USB Mouse]
Bus 001 Device 006: ID 8087:0a2b Intel Corp.
Bus 001 Device 005: ID 1c7a:0603 LighTuning Technology Inc.
Bus 001 Device 002: ID 03e7:2485  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

Best,

Sanga

0 Kudos
Dmitry_K_Intel3
Employee
1,074 Views

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="tty", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"

 

As I already mentioned above, this is incorrect content. Should be the following one:

 

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"

 

(with 2485 idProduct in the last line)

 

Please modify it manually or by script. See https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux.html#additional-NCS-steps.

0 Kudos
Ravichandran__Sangat
1,074 Views

Hello Kurtaev,

Thanks a lot for the help. Both the sticks are working perfectly alright now. Changing the rules file as suggested helped to fix.

Best regards,

Sanga

0 Kudos
Janikowski__Damian
1,074 Views

Hello,

I've got exactly the same problem:

I'm trying to run openvino example with NCS2 on Ubuntu 16.04 and I have an error:
E: [ncAPI] [    576964] ncDeviceOpen:799    Failed connection to device (1.2-ma2480) with error 5
I have the newest version of openvino 2019.1.133, device ID 03e7:2485 is visible in lsusb.

My 97-myriad-usbbooot.rules file is following:

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"

Could you please help me solve this problem?

0 Kudos
Reply