I need a small program that can calculate the checksum from user input.
Unfortunately, all I know about the checksum is that it contains all the data in the packet.
I tried to find on the net an example of no luck.
I know if I have a line: 41,4D, 02,41,21,04,02,02,00,00,00,00,00,00,00,00,00,00,00,00, 00,00 , 00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00
This should result in a 6A checksum.
Hope someone can help me. If anyone has an example written in Python 3, it may also work for me
source
share