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.

BQ34Z100-G1: I2C communication to Beaglebone Black

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

Good afternoon,

My company had been trying to get the current reading off the BQ34Z100-G1 to use in a customer interface.  We have the I2C set up and communicating with out program on the Beaglebone.  We are pulling the temperature measurement as well, but that is reporting as is should. 

The problem we are having with the current measurement is that when we look at BQStudio, the current is reporting correctly on both the 0xA and 0x10 registers. When we look at those registers with the Beaglebone, we are seeing the correct current when the unit is charging, but on any discharge we are seeing a reading of 50-64A.  The current reading is scaled through the calibration procedure since our discharge can be up to 60A, but it is reporting correct to the scaled value in BQStudio.  I have tried a few different discharges to see what the BQ34Z100-G1 chip will report, and the lower the actual current on the discharge, the higher the reported current that we see (14A discharge reports 64A on the Beaglebone, but BQStudio reports ~3500mA).  We also tried using the 0x0018 register to read the current, but the same issue is present. 

We know that the BQ34Z100-G1 can only read values of up to +32767 mA, which is why we have the calibration scaling done.  Do the registers shown on BQStudio not report the same if they are requested through another source? 

  • Hi,

    Unfortunately, I have never seen this issue before.

    So, to clarify when you discharge at 14A, BQstudio + EV2400 reads 3500mA, and you mcu reads 64A from the gauge?

    What FW version are you using?

    Can you share your .gg file so I can view your scaling factors?

    Regards,

    Evan

  • Hi Evan,

    That is correct, the 14A load was showing as ~64A when reported through the Beaglebone.

    We are using firmware version 0100_0_16 of the -G1 chip, but as I was writing this reply the person that we have doing our code figured out what the issue was.  When he wrote the code for requesting the data from the chip, he didn't see in the TRM that there should have been a window for the gauge to prepare the data.  Not sure why that was affecting only the discharge readings, but it is working now once he changed that.