This project has moved. For the latest updates, please go here.
1

Closed

XBee crash when checksum error

description

I was dealing with this problem a little time and finally found the source. In XBee.cs class, private void ReceiveData() method, private MemoryStream _readBuffer didn't discart fake frames when checksum error. The thread still received data and drove _readBuffer "outofmemory".
 
I have solved checking length and checksum separately, with new GetLenth() and Checksum() methods, and some corrections in do{} while block.
 
Find attached the new XBee.cs for testing

file attachments

Closed Jun 8, 2011 at 4:28 PM by jcsaez
Duplicated

comments