Home > electronics > XBee Dropping Bytes – My Solution

XBee Dropping Bytes – My Solution

Hey guys a quick post here.

Since the first time I used XBees (2 years back?) I noticed that they were dropping bytes. This is quite annoying as it disturbs the normal flow of your device. What I did fixed it for good and I never had a single bit dropped from XBees ever again, and let me tell you I sent many thousands bytes so far 🙂

Anyway, what you need to do is really simple. You need to assign a destination to your transmission. You do that by first  entering the command mode (when using the AT firmware). To do that you need to enter the “command sequence character” three times in a row i.e. for the default settings enter “+++” (without the quotes) to the terminal. The XBee should reply with “OK” and you have a short period of time to enter an AT command. Next you need to send the destination XBee by entering “ATDN<DESTINATION ADDRESS HERE>”. And that’s it 🙂

Let’s do an example. You have two XBees, one is called BASE and the other one is called HELI. Oh make sure you name your XBees by changing the Node Identifier in the settings. If HELI wants to talk to BASE it will

  1. Enter “+++”
  2. Wait for “OK”
  3. Enter ATDNBASE

Now you can send as much data as you want and you wont loose a byte. This is so simple. Do the opposite i.e. BASE->HELI and you will have a pretty good two way communication.

Let me know if you need any help

Related Posts:

Categories: electronics Tags:
  1. Alain
    January 26th, 2014 at 02:07 | #1

    I use two xbee pro 900 . One Under Arduino UNo and the oher on Arduino Due.

    I use the arduino serial interface to ‘talk’ to the Xbee (jumper on arduino xbee shield to XBee) and use serial.println() command in arduino.

    I loss data during transmission ?

    All communication at 9600 baud

    Can I use X-CTU software to adjust the power of the X-Bee 900 pro and get better performance of the XBee ?

  1. March 3rd, 2015 at 04:25 | #1