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.
The PEC calculation includes everything in the packet. For a Read Word, the following is included in the checksum:
0x16
Command Code
0x17
Data LSB
Data MSB
For example, if your command code is 0x0D (Relative State of Charge) and your data is 0x0010, then the value you will compute the checksum on is 0x160D171000. This would result in a checksum of 0x64.
You can use the calculator at the following link to check your results. This calculator uses the same method that is in the gauge.