SparkFun Forums 

Where electronics enthusiasts find answers.

All things pertaining to wireless and RF links
By rich101
#186000
I have 2 xbee Series 2 Pro boards. One is an End Device and the other is a Coordinator with the destination address set to the End Device.

I am using AT mode.

If I write a program to send 6 byte messages from the End Device to the Coordinator, as fast a possible (no delays) @ 9600 baud, I get lost data.

I added the code to check the status of CTS and as expected CTS was going high to flow control the data.

So I added a check for this in my test program.

It now stops sending whenever CTS goes high and starts up again immediately when it goes low.

However I am still losing data.

Is there a reason for this?

The data loss is always a few bytes after transmission has been restarted when CTS goes low.

Does CTS going low really happen when the buffer has room for more data? The manual says it should have 34 bytes free space when CTS goes low and 17 bytes free when it goes high.

Anyone managed to get data across xbee without data losses?