Temperature Reading with Intel® Movidius™ Neural Compute SDK

Documentation

Troubleshooting

000032987

04/15/2019

Below, you'll find sample code for reading the temperature on the Intel® Movidius™ Neural Compute Stick using the Intel® Movidius™ Neural Compute SDK (Intel® Movidius™ NCSDK) v1 and v2.

Using the Intel® Movidius™ NCSDK v1:
Insert the following code to one of the python examples included with the NCSDK.

float* data;
unsigned int dataLength;
retCode = mvncGetDeviceOption(deviceHandle, MVNC_THERMAL_STATS, &data, &dataLength);
if (retCode == MVNC_OK){
   printf("Device Temperature: %f\n", data[0]);
}

Using the Intel® Movidius™ NCSDK v2:
An inference to the device is required prior to reading the temperature using the Intel® Movidius™ NCSDK v2. Insert the following code to one of the python examples after the inference is completed.

thermal_stats = device.GetDeviceOption(mvnc.DeviceOption.THERMAL_STATS)
print("Device Temperature: ", thermal_stats)