<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NCS Device in Use in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/NCS-Device-in-Use/m-p/1176436#M17354</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use NCS in multiple ROS nodes and was wondering if there is any way to check via OpenVino if NCS device is already in use. Thanks.&lt;/P&gt;&lt;P&gt;Umer&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 21:14:45 GMT</pubDate>
    <dc:creator>Rasheed__Umer</dc:creator>
    <dc:date>2019-03-26T21:14:45Z</dc:date>
    <item>
      <title>NCS Device in Use</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/NCS-Device-in-Use/m-p/1176436#M17354</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use NCS in multiple ROS nodes and was wondering if there is any way to check via OpenVino if NCS device is already in use. Thanks.&lt;/P&gt;&lt;P&gt;Umer&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 21:14:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/NCS-Device-in-Use/m-p/1176436#M17354</guid>
      <dc:creator>Rasheed__Umer</dc:creator>
      <dc:date>2019-03-26T21:14:45Z</dc:date>
    </item>
    <item>
      <title>Currently OpenVINO API does</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/NCS-Device-in-Use/m-p/1176437#M17355</link>
      <description>&lt;P&gt;Currently OpenVINO API does not provide any kind of query capabilities with respect to backend devices. However you can do it if you have access to Xlink API via ncsdk &lt;A href="https://github.com/movidius/ncsdk" target="_blank"&gt;https://github.com/movidius/ncsdk&lt;/A&gt;. For example you might use XLinkGetDeviceName() function and further do parsing of returned device&amp;nbsp;name, or just parsing lsusb output. Booted device, has a different VID-PID pair, than unbooted one, and if device is booted there is a high chance that is is being used, in some cases device also might be stalled.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;    for (int i = 0; ; i++) {
        char name[256];
        auto err = XLinkGetDeviceName(i, name, sizeof(name), 0);
        if (err != X_LINK_SUCCESS) {
            break;
        }
        name[sizeof(name)-1] = 0;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::string device = name;
        auto pos = device.find("-");
        if (pos != string::npos &amp;amp;&amp;amp; pos + 1 != device.size()) {
            cout&amp;lt;&amp;lt;"unbooted: " &amp;lt;&amp;lt; device.substr(pos + 1) &amp;lt;&amp;lt; "\n";
        } else {
            cout&amp;lt;&amp;lt;"booted\n";
        }
    }&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 22:25:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/NCS-Device-in-Use/m-p/1176437#M17355</guid>
      <dc:creator>Eugene_S_Intel</dc:creator>
      <dc:date>2019-03-27T22:25:52Z</dc:date>
    </item>
  </channel>
</rss>

