rakeshpatil1983 / xbee-api

Automatically exported from code.google.com/p/xbee-api
GNU General Public License v3.0
0 stars 0 forks source link

Checksum computation #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Retrieve an actual packet.
2. Compute its checksum using Checksum object
3. Compare result with checksum in the frame

What is the expected output? What do you see instead?

The two results should be equal, and the verify method should return true.

Please provide any additional information below.

Using the full following frame 
7e.00.11.10.01.00.13.a2.00.40.56.48.7e.ff.fe.05.00.f2.00.2a.bf

We have a checksum: 0xBF

Using the Checksum object provided in the api: 
computed checksum is base10=191,base16=0xbf,base2=10111111

But then the verify method returns false.

Original issue reported on code.google.com by ferre.ad...@gmail.com on 16 Apr 2013 at 12:14