checksum1 and checksum0 are just the two bytes making up the 16-bit short integer. you take a 16-bit integer initialized to 0 and then add the value of each byte in the packet to calculate the checksum.
the received checksum consists of two bytes which you have to combine to a 16-bit integer.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Thank you very much for your patronage. We are experiencing production and shipment delays due to the coronavirus infection that is currently occurring. We apologize for any inconvenience this may cause. We will work hard to deliver the product as soon as possible. Dismiss