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.

BQ40Z80: automating configuration

Part Number: BQ40Z80
Other Parts Discussed in Thread: BQSTUDIO, EV2400

I'm using Battery Management Studio to flash and calibrate a lot of battery packs with an integrated BQ40Z80.
Can you provide a clear overview of how others do this?

A few questions:

Currently I'm flashing a .srec file using the Battery Management Studio GUI, as well as calibrating voltage, temperature, current. I have a lot of batteries to flash and would like to automate this.

I'm not finding a command line tool or API to program this specific device, though they exist for other similar TI devices.

1) There is a command line tool called ProgBQFS, will that work for this task? ProgBQFS seems to want a .fs file, but what I have is a .srec file. Is there a way to convert between the two, or can I use ProgBQFS with .srec files?

2) Are there any products available to automate the setup of these BQ40Z80 devices? 

3) Is there any sample code I could use to interface with the BQ40Z80 device using a microcontroller, over the SMBus? 

Any information relevant to automating the flashing of these devices, beyond the collection of PDFs already available could help, thanks!

  • Hey Josh,

    Today is a holiday and no one is in office. We will get back to you next week.

    Regards,
    Nick Richards

  • Hi Josh,

    1) There is a command line tool called ProgBQFS, will that work for this task? ProgBQFS seems to want a .fs file, but what I have is a .srec file. Is there a way to convert between the two, or can I use ProgBQFS with .srec files?

    The .srec file and .bq.fs files contain the same information, however are just in different formats. The .bq.fs can be pulled from the gauge by going in bqStudio to Firmware, Browse, and changing the file format seen below.

    The main difference is that if the .srec is being used for the programming, bqStudio must be used. If the bq.fs is being used, it can be programmed using a different host controller.

    The calibration values can be contained in the programmed .srec/.bq.fs, however we recommend that calibration be done to 20 individual gauges, then averaging the created parameters if this is being done for production. This allows for calibration to not having to be done on each and every gauge when in production.

    Regarding the ProgBQFS, can you please share the link to this so we can take a look? 

    2) Are there any products available to automate the setup of these BQ40Z80 devices?

    For production, an option if programming the gauge using the .srec file using the adapter below. This allows for faster programming than the EV2400.

    https://www.ti.com/tool/MKST-3P-ALT-EV2300 

    3) Is there any sample code I could use to interface with the BQ40Z80 device using a microcontroller, over the SMBus? 

    The Gauge Communication document below should offer sample code of how to interface with a microcontroller with the bq40z80.

    https://www.ti.com/lit/pdf/slua801 

    Regards,

    Anthony Baldino