I have had an ongoing problem with the xBee’s for some time. It goes something like this:
Setup:
xBee ZNet 2.5 in API mode using sleep’s.
Problem:
Periodically (aren’t they always the worst!) the xBee would not perform some of the functions that I asked it to. For example, it did not like sending AT commands after a reset, sometimes it would miss vital transmit requests.
Solution:
When using sleep mode, some nasty characters are left in the xBee’s buffer when coming in/out of sleep mode. This would cause the next command to not function properly. To fix, always transmit a “\n” (I.e. line feed) before you transmit a command. Eg. somewhere just before you transmit your data from the UART, stick a your_tx_routine(”\n”) in.
Post a Comment