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.

BQ40Z50-R2: I2C/SMBUS, Turning off auto refresh when not using BQ Studio

Part Number: BQ40Z50-R2
Other Parts Discussed in Thread: BQSTUDIO

I had an issue where auto refresh would reply a MAC command for chem ID with the MAC Operation Status. This was resolved in QB stutio by turning off Auto refresh. However this does not help me when I use a standalone program to execute the Learning Cycle. Is there an I12C/SMBUS command to send that would turn off auto refresh from my program ?

  • Hi William,

    When the stand alone program is being used, is the MAC address being written to with the register information before the read is called? There also needs to be at least 100ms between the write and read.

    Regards,

    Anthony Baldino

  • Yes, I am writing 0x44 0x06 0x00, wait 100 ms then reading from 0x44 which I then interpret as "Len, Command [1], Command[0], Data[0 - n]"

    When I first connect with BQ Studio and turn off "Auto Refresh" I get the correct response (Chem ID). So I need to turn off "Auto refresh" from my program.

  • Hi William,

    The auto refresh is a function that is implemented by bqstudio, where the registers are constantly being read and updated to the GUI. This is not a function of the gauge itself, to where I believe there is something in your code for the stand alone host that is causing this refresh. We can take a look at the code you would like.

    Regards,

    Anthony Baldino