Hello everyone,
Something strange is happening to my Xbees. I have one coordinator, plugged on the PC, and one end device linked to the UART of a microcontroller. All of the UARTs are configured to run at 115200 b/s as the baud rate.
I am using the API mode, and my operation is quite simple : my microcontroller sends an API frame (TX request) to the end device Xbee once every 5 ms. The RF Data of the API frame is 20 bytes long, so count 20 bytes + 5 bytes + checksum byte = 26 bytes total frame lenght.
So I’m running my application, and it goes fine in the beginning. But after a (random, more or less) while, the communication stops, and the only way I found out to get it working again is to unplug the Xbee (end device) from its base and to plug it back in : then the transmission starts again, and crashes inevitably a certain time after…
What I’ve tried to avoid this : take back the UARTs’ speed to 57600. At that rate, I haven’t had any problems. Fine, but I have to make it work at 115200, for certain reasons.
I’ve tried to reduce the lenght of the data in my frames. It helps : It does not seem to crash under 10 bytes of RF Data for example (or maybe it would take much more time, dunno).
I’ve tried to introduce micro delays between the UART Tx routines, but it didn’t help that much.
And eventually I’ve wired the CTS/ RTS hardware flow control system, but it didn’t help much either.
So I’m really out of ideas by now, although I am quite new to Xbees…
So if you have any suggestions, debug plans, ideas, if you have ever experienced such problems or if there is a known issue at that level (?!), please, please let me know!
Any help would be really appreciated!
Regards,
Kom.