This project has moved and is read-only. For the latest updates, please go here.


XBee crash when checksum error


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 Apr 28, 2012 at 8:05 PM by jcsaez


hellokitty9999 wrote Feb 9, 2012 at 6:24 AM

Hi, may I know how this program works?

wrote Apr 28, 2012 at 8:05 PM

Resuelto con el conjunto de cambios 76819.

wrote Feb 14, 2013 at 8:10 PM

wrote May 16, 2013 at 9:49 AM