I am trying to check the Temp for the Hailo it need to check like temp1 and temp2 and based on that it needs to give me the avg result based on that it needs to give me the graph
Hey @surya_yelamanchili,
You can check your Hailo device temperature using the HailoRT API. The device has two internal temperature sensors (ts0 and ts1) that return values in Celsius. Just grab those readings, calculate the average, and you’re good to go for plotting.
Getting the Temperature Data
If you’re using Python:
The get_chip_temperature() method makes this pretty straightforward:
# Assuming you've got your device object set up
temp_info = device.get_chip_temperature()
temp1 = temp_info.ts0_temperature
temp2 = temp_info.ts1_temperature
avg_temp = (temp1 + temp2) / 2
print(f"Temp1: {temp1}°C, Temp2: {temp2}°C, Average: {avg_temp}°C")
From there, just collect readings over time and use matplotlib (or whatever you prefer) to visualize it. Here’s the reference if you want to dig into the implementation.
If you’re working in C/C++:
You’ll use:
hailo_status hailo_get_chip_temperature(hailo_device device, hailo_chip_temperature_info_t *temp_info);
The hailo_chip_temperature_info_t struct gives you both sensor temps as floats, plus a sample count. Same deal—average them however you need. API docs here.
The struct looks like this:
typedef struct {
float32_t ts0_temperature;
float32_t ts1_temperature;
uint16_t sample_count;
} hailo_chip_temperature_info_t;