Corupted packets from xbee

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

[url=http://img42.com/vn92B]waveform

Either your data rate is off or your code used to read the data from the module is off.

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.

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