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: Enabling Lifetime logging must occur in unsealed mode?

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

Hello;

I can find no reference in the TRM stating that enabling Lifetime logging is only available while in unsealed mode. However, I note that bqStudio indicates as much when I hover over the IT_ENABLE command button.  Which is correct?

  • Hi Jeff,

    It is correct that it can only be enabled when unsealed. The LT Update Time parameter used to enable it is accessible when unsealed only as described below (page 26 of the TRM):

    The logging settings such as Temperature Resolution, Voltage Resolution, Current Resolution, and Update Time can be configured only in UNSEALED mode by writing to the Lifetime Resolution Subclass (SubclassID = 66) of the data flash.

    Regards,

    Antonio

  • Thanks Antonio!  But it's still not clear, because the comment that you referenced is for updating the threshold values, not the actual lifetime values....I was testing this by using studio to reset the lifetime values logged by the gauge, and found that only when unsealed did the gauge take the IT_ENABLE command, just like studio says when hovering over the command button...

    Let me know if I've misunderstood this...(always a good bet ;-D)

  • Hi Jeff,

    Yes, even though it is a threshold value, the LTUpdateTime being set to a non-zero value is what enables LT data logging. From page 25:

    The Lifetime Data Logging can be started by setting the IT_ENABLE bit and setting the LTUpdate Time register to a non-zero value.

    If it is already enabled and you need to reset the values, you can do it as shown below:

    The Life Time Data Logging of one or more parameters can be reset or restarted by writing new default (or starting) values to the corresponding data flash registers through sealed or unsealed access as described below. However, when using unsealed access, new values will only take effect after device reset.

    The logged data can be accessed as RW in UNSEALED mode from the Lifetime Data Subclass (Subclass ID = 59) of data flash. Lifetime data may be accessed (RW) when sealed using a process identical Manufacturer Info Block B. The DataFlashBlock command code is 4. Note only the first 32 bytes of lifetime data (not resolution parameters) can be RW when sealed. See Section 2.2.33.2 for sealed access. The logging settings such as Temperature Resolution, Voltage Resolution, Current Resolution, and Update Time can be configured only in UNSEALED mode by writing to the Lifetime Resolution Subclass (SubclassID = 66) of the data flash.

    Please let me know if you have any questions.

    Regards,

    Antonio