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.

BQ27542-G1: problem about reading StateofCharge()0X2C and RemainingCapacity()0x10

Part Number: BQ27542-G1
Other Parts Discussed in Thread: BQSTUDIO, BQ27426, EV2400

Hi team,

custoemr use BQ27542-G1, they can read DEVICE_TYPE=0x542, VOLTAGE:3929 and Temperature() correctly, but failed to read StateofCharge()0X2C and RemainingCapacity()0x10, the read data of two device are 0 or 1.

any other register need to confige here?  and could you help provide driver code?

thank you

  • Hi Betty,

    Reading RemainingCapacity() or StateOfCharge() is not different from reading Voltage().  The only difference is the command code. 

    I would suggest your customer use the bqStudio to check the correct readings and also they use the Advanced Comm tab to see if they can get the same results via i2c directly.

    Andy 

  • Hi,Andy:

           I don't have a EVM at present, our  board has been pashed, can we use the bqStudio

    I would like to  know which registers need to be configured during BQ27542-G1 initialization。

    This is the data I read through IIC:

    [START]====DEVICE_TYPE=1346, count=1==========

    REMAINING_CAPACITY=1==========

    FullChargeCapacity(=505==========

    Gauge IC correction start!!!

    SkyGetBattery|Read RemainingCapacity:1

     

    SkyGetBattery|VOLTAGE:4005

     

    SkyGetBattery|RemainingCapacity():1

     

    SkyGetBattery|FullChargeCapacity():505

     

    SkyGetBattery|TEMPERATURE():3009

  • This is the data I read through IIC ,the RemainingCapacity()0x10 and  read StateofCharge()0X2C  data is 1.

    [START]====DEVICE_TYPE=1346, count=1==========

    REMAINING_CAPACITY=1==========

    FullChargeCapacity(=505==========

    Gauge IC correction start!!!

    SkyGetBattery|Read RemainingCapacity:1

     

    SkyGetBattery|VOLTAGE:4005

     

    SkyGetBattery|RemainingCapacity():1

     

    SkyGetBattery|FullChargeCapacity():505

     

    SkyGetBattery|TEMPERATURE():3009

  • Please refer to gauge communications app note.

    Also, make sure you have ran a learning cycle on the gauge first prior to looking at SOC vs voltage.

  • I can now read temperature (),Voltage() and DEVICE_TYPE,  without any other register configuration and initialization,Is this OK?But when I read remainingcapacity ()andStateofCharge(),the these data are always 1 and there is no change 。Do I have to run a learning cycle?or  I need configure registers 。I used bq27426 before, which can read data directly。

  • BQ27542 is a flash-based gauge. In order to get accurate state of charge readings, you need to program it with a proper chemistry id and also perform a learning cycle.  I would suggest you get an EVM and EV2400, and also usebqSutido, which is the only tool that can program the chemistry id.