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.

BQ28Z610: Customer having trouble with Authentication and seal unseal or gauge

Part Number: BQ28Z610

Hi Support team

My Customer is having difficulties with the gauge. Here is the transcript of our email exchange. Involves some coding, can you point me to a document or supply some sample code to enable access?

Transcript:

Do you have a document that shows the message sequence for unseal/authenticating the battery? Can you share the source code to unseal/authenticate the battery?

I have only received 16 byte authentication code from our battery engineer. I don’t have “Unseal” or “Full Access” keys.

The battery status shows it is sealed and authentication is active

I sent the user guide

She replied with

Yes, I have seen that document. But it is a bit confusing:

 

Here is my command/message flow:

  1. Send

tx_cmd[0] =  0x3E;//

tx_cmd[1] =  0x00;//

tx_cmd[2] =  0x00;//

  1. Send

tx_cmd[0] =  0x40;//

tx_cmd[1 to 20] = 160-bit random number

  1. Send

tx_cmd[0] = 0x60;//MACDataSum

tx_cmd[1] = 0x60;//Calculated checksum only for random number (0x40 not included)

  1. Send

tx_cmd[0] = 0x61;//MACDataLen

                tx_cmd[1] = random_number_len(20) + 1;//length

 

(I also tried, write the checksum+len at 0x60.)

 

Then, I read

  1. tx_cmd[0] = 0x40;//MACData
  2. tx_cmd[i++] = 0x61;//MACDataLen
  3. tx_cmd[i++] = 0x60;//MACDataSum

 

Then She asked me this question

I am trying to learn about a parameter that  cannot be accessed by unauthorized users/apps.

So we can read it to identify unauthorized battery.

 

There is a LifeTimedataFlush that cannot  be written in SEALED mode but read condition is unknown.

 

Also, I see “Data Flash Table” in section 14.1 but it is not clear how it can be accessed.

 

Can you advise what parameter(s) in gas gauge can be configured to be configured and read by Customer Name but blocked and cannot be accessed by non-Customer Name users/apps?

 Regards

Jeff Coletti

  • Hi Jeff,

    Once sealed the df cannot be accessed by anyone except the system. The bq28z610 does provide authentication, so in response to a challenge it will issue a response to authenticate itself. The keys for authentication can br programmed during production. This was you can prevent unauthorized usage. Unfortunately we don't have authentication code that we provide the customers. We only have the user guide as you mentioned.