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.

BQ27320: Settings Gauge

Part Number: BQ27320
Other Parts Discussed in Thread: BQSTUDIO

I am using the Ev Board to monitor the current from a Battery. When I edit the settings for the Gauge in BQStudio they don't upload to the Board. How do I upgrade the new settings to the Gauge? The calibration is doing it correctly but when I modify the settings they do not appear to change in the Registers Window.

How can I design a graph for power consumption and voltage drop over time? Is it possible to get a fast refresh measurement? 

When I have my preferred configuration, how can I export it to other Boards with the gauge assembled? Can I generate some header file so my microcontroller uploads it automatically?

Thank you.

  • Hello G,

    Can you share more information about "When I edit the settings for the Gauge in BQStudio they don't upload to the Board". Assuming you are using bqStudio Data Memory tab, does it throw an error or show any messages on the status bar?

  • No errors or messages. I am able to change the configuration and then Write the changes to the Device but no messages appear. When I go back to the Registers tab the configuration seems to not have changed at all.

    Thank you.

  • The writes are to be performed on "Data memory" tab. Did you mean "Data memory" instead of "Registers"?

  • Yes, I write the settings at the Data Memory tab. But in the registers menu I can see which settings are configured in the Gauge, such as battery capacity for example. When I apply the settings at the Data Memory and go back to the Registers, those settings seem to not have changed at all.

    Thank you.

  • Some of the setting require a reset to take effect. And battery capacity is a computed value. It will not change immediately due to writing data memory. Only the initial value comes from data memory

  • How do I reset the thing? What is the "initial value"? How can I write my true battery capacity into the Gauge?

    I also asked more questions:

    -How can I design a graph for power consumption and voltage drop over time?

    -Is it possible to get a fast refresh measurement? 

    -When I have my preferred configuration, how can I export it to other Boards with the gauge assembled?

    -Can I generate some header file so my microcontroller uploads it automatically?

    • Use the reset command : TRM section 2.1.25 RESET: 0x0041
    • Initial Battery capacity info is in section 1.1.10 Initial Battery Capacity at Device Reset
    • Use bqStudio Registers tab to log voltage, current and then you can graph it in any external program like Excel
    • bqStudio preferences allow adjusting the refresh rate for Registers logging. Use caution though. Reading too frequently results in the gauge being busy responding to communication and may result in depriving it of time to perform simulations. We recommend using the default refresh rate
    • The preferred configuration is saved as "Flashstream files". This feature is available in golden image tab of bqStudio. This file can be uploaded by the microcontroller