XBee radios (also known as ZigBee radios) are generally not recommended over the SiK Radio and RFD900 Radio. Still there may be some situations where only an XBee can be used so these high-level instructions could be helpful.
Where to Buy¶
XBee radios are available from Sparkfun and many other robotics stores globally. Generally you will need two XBee radiios (one for the ground station and one for the vehicle) along with two different adapter boards. One with a USB connection for the ground station computer and another with a serial connection which can be connected to the autopilot as shown above.
Click on the diagram at the top of this page to see the individual wire connections that must be made between the autopilot and Xbee module. Note that in the diagram above only 4 wires are connected (GND, 5V, Transmit, Receiver). The CTS and RTS (Ready-to-send) pins are left unconnected because although connecting them should improve the data rate during the creation of this wiki page we were unable to successfully connect.
With the CTS and RTS pins disconnected the BRD_SER1_RTSCTS (if using Telem1) or BRD_SER2_RTSCTS (if using Telem2) should be set to zero (after making the change the autopilot will need to be restarted).
The X-CTU application can be used to configure the XBee modules. In particular they should be set to transmit at 57600 baud.
The following parameters can be set in the XCTU application. In addition, it has a track record of use in XBee ZB（S2C）. Example of xbee setting parameters.(if. PC’s MAC:0013A2004567EFGH , Pixhawk’s xbee MAC:0013A2004567WXYZ)
|PC’s xbee||Pixhawk’s xbee|
|Networking||ID=1234,SC=7FFF,SD=3,ZS=0,NJ=FF,NW=0,JV=, JN=,CE=,DO=0,DC=0||ID=1234,SC=7FFF,SD=3,ZS=0,NJ=FF,NW=0,JV=, JN=,CE=,DO=0,DC=0|
|Addressing||DH=13A200,DL=4567WXYZ,NI=xbeepc,NH=30,BH=0, AR=FF,DD=A0000,NT=3C,NO=0,CR=3||DH=13A200,DL=4567EFGH,NI=xbeehawk,NH=30,BH=0, AR=FF,DD=A0000,NT=3C,NO=0,CR=3|
|RF Interfacing||PL=Highest,PM=Boost Mode Enabled||PL=Highest,PM=Boost Mode Enabled|
|Serial Interfacing||BD=57600,NB=,SB,RO=3,D6=, D7=,AP=Transparent mode,AO=Native||BD=57600,NB=,SB,RO=3,D6=, D7=,AP=Transparent mode,AO=Native|
|AT Command Options||CT=64,GT=3E8,CC=2B||CT=64,GT=3E8,CC=2B|
|Sleep Modes||SP=20,SN=1,SM=No Sleep(Router), ST=1388,SO=0,WH=0,PO=0||SP=20,SN=1,SM=No Sleep(Router), ST=1388,SO=0,WH=0,PO=0|
|I/O Setting||D0=Commissioning Button,D1=,D2=, D3=,D4=,D5=Associated indicator, D8=Sleep_Rq,D9=Awake/Asleep indicator, P0=RSSI PWM Output,P1=,P2=, P3=DOUT,P4=DIN,PR=1FBF,PD=1FFF,LT=0, RP=28||D0=Commissioning Button,D1=,D2=, D3=,D4=,D5=Associated indicator, D8=Sleep_Rq,D9=Awake/Asleep indicator, P0=RSSI PWM Output,P1=,P2=, P3=DOUT,P4=DIN,PR=1FBF,PD=1FFF,LT=0, RP=28|
Connecting to the Ground Station¶
If you’re using a USB adapter, simply connect it via a USB cable as shown:
If you’re using an XtreamBee adapter on the ground side, connect it to a FTDI cable as shown below and plug that into your USB port. The adapter should also be in Master mode.
Once properly configured you should be able to connect to the vehicle from the ground station (i.e. Mission Planner) by selecting the appropriate COM port for the XBee and selecting the baud rate of 57600. If the connection is successful but the download of parameter stalls please see the notes above re CTS and RTS.