I'm developing an ESP32(Arduino) interface to communicate to a Fingerprint Device. But I have no idea about the checksum. I found documentation for the Fingerprint device as below.
For example, some of the data packets are followed:
Here, the checksum of the corresponding command packets are. 06 01, F7 02, FA 02, F8 03, FA 02, F9 03
My question is How can I calculate the checksum for a new data packet in Arduino/ C++, for example:
the data packet is:
AA 55 04 01 04 00 00 00 F4 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ??
What will be the Process?
Thank you!

