Home/Support/Support Forum/Corupted packets from xbee

Corupted packets from xbee

0 votes
I am reading my xbee900 s3b via SPI but the response packet I get is not correct, the start byte is 7F rather than 7E.
I tried taking the data and changing the start byte and checksum, on a rx indicator packet (0x90) and found it seems to be a valid packet but most bytes are nearly right, just a few bits off for example the source address should be
00 13 A2 00 40 A6 6E D8 but is
00 10 A0 00 40 A7 6F D8
and the text I sent should be
41 42 43 44 but was
40 40 40 47

waveform[url]
asked Mar 4, 2015 in DigiMesh Proprietary Mesh Networking by mrkaras New to the Community (2 points)
retagged Mar 4, 2015 by mrkaras

Please log in or register to answer this question.

3 Answers

0 votes
Either your data rate is off or your code used to read the data from the module is off.
answered Mar 5, 2015 by mvut Veteran of the Digi Community (11,302 points)
0 votes
how could the data rate be off, it is controlled by the SPI clock? and I could see from the waveform that the data was not as expected, no software reading involved just a scope.

Anyway, I did find my problem, I were accidently raising CS after each byte, now that my code properly keeps it low till all the bytes are clocked in it works fine. thanks anyway.
answered Mar 5, 2015 by mrkaras New to the Community (2 points)
0 votes
changing the start byte and checksum, on a rx indicator packet (0x90) and found it seems to be a valid packet but most bytes are nearly right, just a few bits off for example the source address should be


______________
Arslan1
answered Mar 7, 2015 by HumTum New to the Community (1 point)
...