Hi Sirs,
We have use TMP102, we to read temperature register the value is 40250(digital) = 0x9D3A
How to transfer back temp degree?
Seems driver return value unit is milliCelsius, is that correct?
Like
40250 mC = 40.25 degree?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Sirs,
We have use TMP102, we to read temperature register the value is 40250(digital) = 0x9D3A
How to transfer back temp degree?
Seems driver return value unit is milliCelsius, is that correct?
Like
40250 mC = 40.25 degree?
Hi Sirs,
Please refer our reply as bellow
We use SoC vendor’s native SDK with existing TMP102 driver which you can find in the below URL:
https://elixir.free-electrons.com/linux/v3.9.11/source/drivers/hwmon/tmp102.c
I just read device attribute temp1_input from the sysfs after driver installed.
By the way, could you provide TI official TMP102 driver example for our reference?
Thanks!!
Hi Shu-Cheng,
This driver is provided with the Linux Kernel, and was created by the Open Source Community. TI does not support this driver. TI does not offer a TI-official Linux Kernel driver for TMP102.
That said, if you look at the source code that you linked, there are comments which note that the temperature result is converted to milicelsius.
For anyone else looking for a TMP102 driver, please see the Arduino example on the TMP102 product landing page. http://www.ti.com/product/TMP102/toolssoftware
Thanks,
Ren