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.

BQ27441-G1: Calibration Question

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

Tool/software:

I am using a battery with the Fuel Gauge BQ27441-G1. I have programmed the learning cycle and programmed the data into the registers by writing through the i2c write and read command.

The problem is when i connect a new battery, it detects the current capacity as the full capacity and the full capacity increases as the current capacity increase, this is happening for the first charge cycle.

The quick question here are:

1. Do we need to give a charge / discharge cycle to the device in the production before the product is shipped to the customer ?

2. The firmware write the i2c command to the registers, does they have to be loaded once only or loading them again will cause conflict (in terms of the firmware development) ? 

  • Hello, 

    I have a couple of follow up questions for you as well. 

    • How was the chemID for this matched? It is important to ensure that the chemID you are using is a good match for the cells that you are using in order to achieve good accuracy. 
    • How was the learning cycle completed (can you provide me with the gg file)? 

    To answer your questions: 

    1. This should not be necessary assuming you have the gauge configured correctly. 
    2. The FW should only have to be written once, although this is a ROM gauge, so every time the gauge is power cycled or restarted you will need to reprogram the golden image onto the gauge (whenever the gauge restarts or is power cycled, the parameters return to their default configuration).

    Regards, 

    Robert. 

  • Here is the file.

  • ;--------------------------------------------------------
    ;Verify Existing Firmware Version
    ;--------------------------------------------------------
    W: AA 00 01 00
    C: AA 00 21 04
    W: AA 00 02 00
    C: AA 00 09 01
    ;--------------------------------------------------------
    ;SET_CFGUPDATE
    ;--------------------------------------------------------
    W: AA 00 13 00
    X: 1100
    ;--------------------------------------------------------
    ;Data Block
    ;--------------------------------------------------------
    W: AA 3E 02 00
    W: AA 40 02 26 00 00 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 A5
    X: 10
    W: AA 3E 02 00
    C: AA 60 A5
    W: AA 3E 24 00
    W: AA 40 00 19 28 63 5F FF 62 00 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 69
    X: 10
    W: AA 3E 24 00
    C: AA 60 69
    W: AA 3E 30 00
    W: AA 40 0E 10 FD FF 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 AD
    X: 10
    W: AA 3E 30 00
    C: AA 60 AD
    W: AA 3E 31 00
    W: AA 40 0A 0F 02 05 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 AD
    X: 10
    W: AA 3E 31 00
    C: AA 60 AD
    W: AA 3E 40 00
    W: AA 40 25 F8 0F 48 00 14 04 00 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 6A
    X: 10
    W: AA 3E 40 00
    C: AA 60 6A
    W: AA 3E 44 00
    W: AA 40 05 00 32 01 C2 14 14 00 03 08 98 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 39
    X: 10
    W: AA 3E 44 00
    C: AA 60 39
    W: AA 3E 50 00
    W: AA 40 02 BC 01 2C 00 1E 00 C8 C8 14 08 00 3C 0E 10 00 0A 46 05 14 05 0F 03 20 00 64 46 50 0A 01 90 00
    W: AA 60 BB
    X: 10
    W: AA 3E 50 00
    C: AA 60 BB
    W: AA 3E 50 01
    W: AA 40 64 19 DC 5C 60 00 7D 00 04 03 19 25 0F 14 0A 78 60 28 01 F4 00 00 00 00 00 00 43 80 04 01 14 00
    W: AA 60 2A
    X: 10
    W: AA 3E 50 01
    C: AA 60 2A
    W: AA 3E 50 02
    W: AA 40 0B 0B B8 01 2C 0A 01 0A 00 00 00 C8 00 64 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 C1
    X: 10
    W: AA 3E 50 02
    C: AA 60 C1
    W: AA 3E 51 00
    W: AA 40 00 A7 00 64 00 FA 00 3C 3C 01 B3 B3 01 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 8A
    X: 10
    W: AA 3E 51 00
    C: AA 60 8A
    W: AA 3E 52 00
    W: AA 40 40 00 00 00 00 81 0E DB 0E A8 05 3C 13 60 05 3C 0C 80 00 C8 00 32 00 14 03 E8 01 00 64 10 04 00
    W: AA 60 AC
    X: 10
    W: AA 3E 52 00
    C: AA 60 AC
    W: AA 3E 52 01
    W: AA 40 0A 10 5E FF CE FF CE 00 01 02 BC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 2E
    X: 10
    W: AA 3E 52 01
    C: AA 60 2E
    W: AA 3E 59 00
    W: AA 40 00 66 00 66 00 63 00 6B 00 48 00 3B 00 3E 00 3F 00 35 00 2F 00 3C 00 46 00 8C 01 71 02 4C 00 00
    W: AA 60 33
    X: 10
    W: AA 3E 59 00
    C: AA 60 33
    W: AA 3E 70 00
    W: AA 40 80 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 FF
    X: 10
    W: AA 3E 70 00
    C: AA 60 FF
    ;--------------------------------------------------------
    ;Exit CFGUPDATE
    ;--------------------------------------------------------
    W: AA 00 00 00
    W: AA 00 42 00
    X: 2000

  • Hello, 

    Please update this thread with the answers to my questions. 

    Regards, 

    Robert. 

    • How was the chemID for this matched? It is important to ensure that the chemID you are using is a good match for the cells that you are using in order to achieve good accuracy. 
      It is the same Li-Polymer battery and as per the documented details, it should work. ID = 128.

    • How was the learning cycle completed (can you provide me with the gg file)? 
      Yes, the learning cycle was completed using the BQ studio software and golden image is obtained and integrated in the code.

      The above is the code file.
  • Hello Aqeel, 

    Please provide me with the gg file in the .csv format. 

    Regards, 

    Robert. 

  • Fuel Gauge Learning Cycle Data.xlsx

    Hi Robert, 

    Find the data as requested.

    Regard, 

    Aqeel.

  • Hello, 

    I do not believe this is the correct file. In bqStudio you can export the gg file and it exports in a .csv format. 

    Regards, 

    Robert. 

  • Hi Robert, 

    Can you just have a look at the data, I am able to write it to the gauge already.

    As per https://www.ti.com/lit/an/slua771/slua771.pdf?ts=1721809975479&ref_url=https%253A%252F%252Fwww.google.com%252F

    Page 5, the data format appears to be identical.

    If there  is any way to pass you the file via email ?

  • ;--------------------------------------------------------
    ;Verify Existing Firmware Version
    ;--------------------------------------------------------
    W: AA 00 01 00
    C: AA 00 21 04
    W: AA 00 02 00
    C: AA 00 09 01
    ;--------------------------------------------------------
    ;SET_CFGUPDATE
    ;--------------------------------------------------------
    W: AA 00 13 00
    X: 1100
    ;--------------------------------------------------------
    ;Data Block
    ;--------------------------------------------------------
    W: AA 3E 02 00
    W: AA 40 02 26 00 00 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 A5
    X: 10
    W: AA 3E 02 00
    C: AA 60 A5
    W: AA 3E 24 00
    W: AA 40 00 19 28 63 5F FF 62 00 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 69
    X: 10
    W: AA 3E 24 00
    C: AA 60 69
    W: AA 3E 30 00
    W: AA 40 0E 10 FD FF 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 AD
    X: 10
    W: AA 3E 30 00
    C: AA 60 AD
    W: AA 3E 31 00
    W: AA 40 0A 0F 02 05 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 AD
    X: 10
    W: AA 3E 31 00
    C: AA 60 AD
    W: AA 3E 40 00
    W: AA 40 25 F8 0F 48 00 14 04 00 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 6A
    X: 10
    W: AA 3E 40 00
    C: AA 60 6A
    W: AA 3E 44 00
    W: AA 40 05 00 32 01 C2 14 14 00 03 08 98 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 39
    X: 10
    W: AA 3E 44 00
    C: AA 60 39
    W: AA 3E 50 00
    W: AA 40 02 BC 01 2C 00 1E 00 C8 C8 14 08 00 3C 0E 10 00 0A 46 05 14 05 0F 03 20 00 64 46 50 0A 01 90 00
    W: AA 60 BB
    X: 10
    W: AA 3E 50 00
    C: AA 60 BB
    W: AA 3E 50 01
    W: AA 40 64 19 DC 5C 60 00 7D 00 04 03 19 25 0F 14 0A 78 60 28 01 F4 00 00 00 00 00 00 43 80 04 01 14 00
    W: AA 60 2A
    X: 10
    W: AA 3E 50 01
    C: AA 60 2A
    W: AA 3E 50 02
    W: AA 40 0B 0B B8 01 2C 0A 01 0A 00 00 00 C8 00 64 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 C1
    X: 10
    W: AA 3E 50 02
    C: AA 60 C1
    W: AA 3E 51 00
    W: AA 40 00 A7 00 64 00 FA 00 3C 3C 01 B3 B3 01 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 8A
    X: 10
    W: AA 3E 51 00
    C: AA 60 8A
    W: AA 3E 52 00
    W: AA 40 40 00 00 00 00 81 0E DB 0E A8 05 3C 13 60 05 3C 0C 80 00 C8 00 32 00 14 03 E8 01 00 64 10 04 00
    W: AA 60 AC
    X: 10
    W: AA 3E 52 00
    C: AA 60 AC
    W: AA 3E 52 01
    W: AA 40 0A 10 5E FF CE FF CE 00 01 02 BC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 2E
    X: 10
    W: AA 3E 52 01
    C: AA 60 2E
    W: AA 3E 59 00
    W: AA 40 00 66 00 66 00 63 00 6B 00 48 00 3B 00 3E 00 3F 00 35 00 2F 00 3C 00 46 00 8C 01 71 02 4C 00 00
    W: AA 60 33
    X: 10
    W: AA 3E 59 00
    C: AA 60 33
    W: AA 3E 70 00
    W: AA 40 80 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 FF
    X: 10
    W: AA 3E 70 00
    C: AA 60 FF
    ;--------------------------------------------------------
    ;Exit CFGUPDATE
    ;--------------------------------------------------------
    W: AA 00 00 00
    W: AA 00 42 00
    X: 2000
    

    I changed the file into .txt

    The original name is bq27441G1A.gm.fs 

    Original extension: .gm.fs

  • Hello, 

    To obtain the gg file please follow the following procedure: 

    • Power the gauge, connect to the EV2400, then open bqStudio. 
    • Navigate to the "Data Memory" tab. 
    • Click "Export" and choose the file location. 

    You should then obtain a file with the extension ".gg.csv". This file will have all of the gauge configuration laid out in a way in which it is easier to read. 

    Regards, 

    Robert. 

  • Hi Robert, 

    I will share the requested file in a day or two.

  • Hello, 

    Please update this thread when you have the requested file. 

    Thanks, 

    Robert.

  • Cycle_4_Data_Parameters.gg.csv

    Hi Robert, 

    Attached is the required excel file.

  • Hello, 

    I do not see any issue with your configuration. Did you mention how you determined the chemID for the gauge is a good match for the cells you are using? 

    Regards, 

    Robert. 

  • Hi,

    https://www.ti.com/product/BQ27441-G1

    The above are the specs and it is as per the battery parameter.

  • Hi,

    The product folder contains the specs for the device, you are correct.

    Can you explain what your concerns are?

    Regards,

    Diego

  • i was having problem in performing the learning cycle due to the wrong firmware on the EV2400. downgrading it 0.18 works fine and i have manged to finish the leaning cycle multiple times.

    Also I am expected to use the parameters from the gg.csv and import them into the code, it will work fine, right ?

  • Hello, 

    You can export the golden image and import this onto the gauges. 

    Regards, 

    Robert. 

  • Hi, 

    Regarding the golden image, how you suggest, should i export the image and write to the i2c command via firmware or set gg.csv parameters into the code ?

  • Hello, 

    You can export the golden image using bqstudio. In terms of setting the parameters, you can program the golden image onto the gauges to program your parameters. Please see this FAQ for how to interpret the I2C commands in the golden image. 

    Regards, 

    Robert.