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:
- Send
tx_cmd[0] = 0x3E;//
tx_cmd[1] = 0x00;//
tx_cmd[2] = 0x00;//
- Send
tx_cmd[0] = 0x40;//
tx_cmd[1 to 20] = 160-bit random number
- Send
tx_cmd[0] = 0x60;//MACDataSum
tx_cmd[1] = 0x60;//Calculated checksum only for random number (0x40 not included)
- 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
- tx_cmd[0] = 0x40;//MACData
- tx_cmd[i++] = 0x61;//MACDataLen
- 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