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.

Linux/BQ27441-G1: temperature isse

Part Number: BQ27441-G1

Tool/software: Linux

Hello

We are using the bq27441 fuel gauge (yocto linux OS)

When reading the temperature using sysfs interface we see values ranging from ~350 to ~450.

How are we supposed to translate these values into celcius degrees?

In the datasheet it says that the value is in 0.1K - this makes no sense with the values we are reading.

Could you please assist?

Thanks,

Tamar

  • Hi Tamar,

    Are you reading 2 bytes 0x02 and 0x03? What is OpConfig [TEMPS] bit set to?

    Temperature(): 0x02 and 0x03
    This read- and write-word function returns an unsigned integer value of the temperature in units of 0.1°K
    measured by the fuel gauge. If OpConfig [TEMPS] bit = 0 (default), a read command will return the
    internal temperature sensor value and a write command will be ignored. If OpConfig [TEMPS] bit = 1, a
    write command sets the temperature to be used for gauging calculations while a read command returns to
    the temperature previously written.