Hi Team,
I am working on bq27441-G2 fuel gauge and have the below queries.
1) I am unable to update the checksum for the subclass discharge.
2) I am able to update the checksum for the state subclass.
below is my sequence of updating block data values.
1) unseal the device
2) enter config mode
3) Confirm CFGUPDATE mode by polling Flags() register until bit 4 is set
4) write 0x00 to 0x61 //enable block data
5) write 0x52 to datablockclass 0x3e// for state subclass
6) wirte 0x00 to 0x3f
7) read old check sum
8) read old design capacity, design energy, tapper volt, and terminal volt.
9) calculate temp_checksum
temp_checksum = (255 - old_crc - old_values ) % 256
10) write new values
11) calculate new checksum
new_checksum = 255 - (( temp_checksum + new_values) % 256)
Now again following the same steps from 4 - 11 for discharge and opconfig subclass.
but not able to write new check_sum
do I need to perform seal and unseal between two checksums? or need to do soft-reset?
I am able to update design capacity but not able to update discharge and opconfig values.
Please Help