SLUAAQ0 March   2025 BQ27Z558 , BQ27Z561 , BQ27Z561-R1 , BQ27Z561-R2 , BQ27Z746 , BQ27Z758 , BQ28Z610 , BQ28Z610-R1 , BQ34Z100-G1 , BQ34Z100-R2 , BQ4050 , BQ40Z50 , BQ40Z50-R1 , BQ40Z50-R2 , BQ40Z80 , BQ41Z50 , BQ41Z90

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Generating a Key File with BQKEYPACKAGER
    1. 1.1 SHA1 Process
      1. 1.1.1 How to Calculate SHA1 Key
    2. 1.2 SHA256 Process
    3. 1.3 ECC Process
  5. 2Programming a Key Into the Fuel Gauge With BQKEYPROGRAMMER
  6. 3Programming Keys in Production
  7. 4Summary
  8. 5References

Programming a Key Into the Fuel Gauge With BQKEYPROGRAMMER

BQKEYPROGRAMMER programs the packaged information from the bqKey file supplied by an OEM into the secure one time programmable memory in a supported gauge. This tool requires a working EV2x00 communications adapter with drivers and a compatible gauge connected to the communication port of the adapter.

Step 1: Connect the EV2x00 to the computer.

Step 2: Connect the target gauge to the EV2x00 via the correct communication port for the device(SMBus,I2C,HDQ).

Step 3: Install and open BQKEYPROGRAMMER.

Step 4: Click Select File and select the .bqk file.

Step 5: Enter the password, in this example the password is "example12345678".

Step 6: Click Load File, if the comment appears in the comment box, then the file is successfully loaded.

Step 7: Programming is one time only and can not be reversed. Click Program Key, If the key is successfully programmed, then a green box needs to appear stating Key Programmed and verified Passed as shown in Figure 2-1.

 BQKEYPROGRAMMER
                    Example Figure 2-1 BQKEYPROGRAMMER Example
Note: BQKEYPROGRAMMER programs the one time programmable memory. If communication is lost or the incorrect bqKey file is used, the device is not useable for authentication. Check the comments in the bqKey file to make sure the correct file is selected. Make sure the programmer is finished before disconnecting communications and power. A complete power on reset is needed after programming to lock memory.

One way to test if your authentication successfully works is to use BQSTUDIO.

Step 1: Install and open BQSTUDIO.

Step 2: Open the Authentication tab.

Step 3: In the Gauge Authentication by Host box, input the Key then click Load Gauge Key.

Step 4: Click Generate Random Challenge then Authenticate Gauge.

If a green check mark appears, then you have successfully verified authentication functionality on the gauge.

 BQSTUDIO Key Verification
                    Example Figure 2-2 BQSTUDIO Key Verification Example