<?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 Re: Zero values of temperature received using C/C++ API v1 on Linux. in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Zero-values-of-temperature-received-using-C-C-API-v1-on-Linux/m-p/636965#M765</link>
    <description>&lt;P&gt;Hi @MaxShtaba &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try inserting the following code on one of the examples as we did in python. I was able to get a successful temperature reading. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;float* data;
unsigned int dataLength;

retCode = mvncGetDeviceOption(deviceHandle, MVNC_THERMAL_STATS, &amp;amp;data, &amp;amp;dataLength);
if (retCode == MVNC_OK){
   printf("Device Temperature: %f\n", data[0]);
}
&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Jesus</description>
    <pubDate>Thu, 07 Mar 2019 07:16:20 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2019-03-07T07:16:20Z</dc:date>
    <item>
      <title>Zero values of temperature received using C/C++ API v1 on Linux.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Zero-values-of-temperature-received-using-C-C-API-v1-on-Linux/m-p/636964#M764</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I am trying to receive temperature using C/C++ APIv1 on Linux.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added mvncGetDeviceOption function in run.cpp file of GoogLeNet example next to the mvncGetResult function. To make similar example as you adviced with python example in this ticket:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ncsforum.movidius.com/discussion/1574/receiving-mvnc-no-data-on-mvncgetdeviceoption-mvnc-thermal-stats#latest"&gt;https://ncsforum.movidius.com/discussion/1574/receiving-mvnc-no-data-on-mvncgetdeviceoption-mvnc-thermal-stats#latest&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no more MVNC_NO_DATA error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;But I only receive two values in my array and both are zero values. I filled array with an initial values and first two values changed to 0.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run python example it returns one value about 40 degrees, thats fine. But why do I receive zeroes in CPP modification of the same example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, the main goal of this research is to launch C/C++ API v1 library in Linux first and then get temperature on "Windows" using it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;So, this question would not be interested if you may help with another ticket about temperature in Windows:&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;A href="https://ncsforum.movidius.com/discussion/comment/4625#Comment_4625"&gt;https://ncsforum.movidius.com/discussion/comment/4625#Comment_4625&lt;/A&gt;</description>
      <pubDate>Thu, 28 Feb 2019 17:49:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Zero-values-of-temperature-received-using-C-C-API-v1-on-Linux/m-p/636964#M764</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2019-02-28T17:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Zero values of temperature received using C/C++ API v1 on Linux.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Zero-values-of-temperature-received-using-C-C-API-v1-on-Linux/m-p/636965#M765</link>
      <description>&lt;P&gt;Hi @MaxShtaba &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try inserting the following code on one of the examples as we did in python. I was able to get a successful temperature reading. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;float* data;
unsigned int dataLength;

retCode = mvncGetDeviceOption(deviceHandle, MVNC_THERMAL_STATS, &amp;amp;data, &amp;amp;dataLength);
if (retCode == MVNC_OK){
   printf("Device Temperature: %f\n", data[0]);
}
&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Jesus</description>
      <pubDate>Thu, 07 Mar 2019 07:16:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Zero-values-of-temperature-received-using-C-C-API-v1-on-Linux/m-p/636965#M765</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2019-03-07T07:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Zero values of temperature received using C/C++ API v1 on Linux.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Zero-values-of-temperature-received-using-C-C-API-v1-on-Linux/m-p/636966#M766</link>
      <description>&lt;P&gt;Hi, @Jesus_at_Intel &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thank you for your answer, but I didn't try that. I solved the problem with another approach.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;  &lt;P&gt;I succeeded to create the mixed c++ project, using the source code of APIv1 for Windows and APIv2 for Linux and now we are able to receive the temperature on Windows. Unfortunately, the Movidius firmware for APIv2, that I am using does not support Stick v2 and is not compatible with OpenVino's firmware. But we can use it now for a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 19:06:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Zero-values-of-temperature-received-using-C-C-API-v1-on-Linux/m-p/636966#M766</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2019-03-27T19:06:17Z</dc:date>
    </item>
  </channel>
</rss>

