Other Parts Discussed in Thread: BQSTUDIO
Hi team,
I am trying to access the design capacity for the fuel gauge BQ34Z100. I tried to access the data flash block using commands in BQSTUDIO after unsealing the device. I can access it but I cannot change the value as per my cell. I have a 120V battery pack and capacity for a a single cell is 4200mAh and BQSTUDIO by default shows a value of 0x49, which has to be changed to 4200 (decimal).
I tried passing the following commands but cannot change the value.
0x00 to 0x61
0x30 to 0x3e
0x00 to 0x3f
read 32 bytes from 0x40 = 00 64 01 b0 00 0a 0e 10 f6 fe 0c 00 31 00 00 00 01 00 01 03 84 03 e8 15 18 fe 70 5a 10 68 10 68
reading 2 bytes from 0x3c gives = e8 03; which I think is the default value of 1000 (decimal) or 03 e8 (hex)
Further writing the following commands to the gauge :
0x00 to 0x61
0x30 to 0x3e
0x00 to 0x3f
writing 32 bytes to 0x40 = 00 64 01 b0 00 0a 0e 10 f6 fe 0c 00 31 00 00 00 01 00 01 03 84 10 68 15 18 fe 70 5a 10 68 10 68......[adding all these 32 bytes gives 0x754; therefore checksum is 0xAB, yellow denotes changed bytes]
0xAB to 0x60
0x00 to 0x61
0x30 to 0x3e
0x00 to 0x3f
reading 32 bytes from 0x40 = no change in value of design capacity "03 e8" in the 32 byte block data.
Do let me know what command is actually getting wrong here such that I am not able to change the design capacity value.
Thanks.