I am wanting to read the CPU temperature on each core, not sure how to do it in a node app.
Hi @tcapoli,
To get the CPU temperature on iMX7, you can do something like this, as reported in Temperature Sensor (Linux):
cat /sys/devices/virtual/thermal/thermal_zone0/temp
But, to do that in a container you must map the /sys partition to your container.
Similarly as what you can do for the Debian Developer Tools for Torizon:
# docker run -it --rm -v /sys:/sys -v /dev:/dev torizon/arm32v7-debian-shell:2
Please try that and let me know if it worked.
Best regards,
André Curvello
thanks but thermal is not there on that path you mentioned
/sys/devices/virtual/
colibri-imx7-emmc-06674366:~$ cat /sys/devices/virtual/
bdi/ block/ graphics/ mem/ misc/ net/ pps/ sound/ tty/ vc/ vtconsole/ workqueue/
Hi @tcapoli,
We have identified that there is really an issue with reading the temperature of the iMX7 on BSP 5, which, in turn, TorizonCore 5 is based on.
We are already working on it.
Best regards,
André Curvello
Hi @tcapoli,
The issue was fixed in the latest nightly builds.
Can you test that to be sure at your side, please?
Best regards,
André Curvello