Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 11 Next »

Xbee is a radio module based on the Zigbee protocol that we use for our telemetry system. A comparison between all the models is found on Sparkfun and on the Xbee website

Specs and Documentation

Mini-USB Adapters: 

https://www.parallax.com/product/32400

XBee-Pro 900 XSC S3B (XBP9B-0DPST-001)

XBee-PRO S1 802.15.4 extended-range module w/ RPSMA connector (XBP24-ASI-001)

Antennas:

  • Smaller ground antenna (for testing):
  • Larger Antenna (on plane)
    • Dont know model, or gain, or even if its a 900Mhz 

Which Xbee To Use

During development, its ok to use the 2.4Ghz xbee. During flight tests its extremely important to use the S3B 900Mhz modules, as the 2.4Ghz will interfere with the DJI light bridge connection. In addition the 900Mhz modules provide a longer range (should be at least 10km).

Shortened Datasheets

The Xbee documentation is pretty long, however if you're just trying to understand the communication structure, the following two datasheets should provide most of the information you'll need. The first file describes the AT commands the module uses. The AT commands are used to configure each module, and it is what software like XCTU uses. The second file describes the API packet structure that the PicPilot sends to the Xbee's for various functionalities (like sending a TX packet, getting RSSI, etc).

Configuring the Modules with XCTU

The best way to configure the Xbee modules is with XCTU, which is a GUI made by Digi.

After downloading the software, the module you're configuring needs to be plugged in to an Xbee mini-USB adapter. You cannot

use the Xbee breakout used for the Picpilot to configure the modules from your PC, unless you configure remote AT commands, which it too complicated to describe.


All of the modules should be configured to connect via UART at 115200 baud/s, 8N1 (1 stop bit, no parity). If this doesn't work initially, try re-plugging in the usb adapter from your PC. Note that by default the modules come pre-configured to connect at 9600baud/s, so if the Xbee was just bought, use that.

Serial Settings

The important settings here are the Baud Rate which must be set to 115200 to work with the PicPilot, the stop bit and parity settings.

In addition, Api Enable should be set to 1 (API Mode without escapes), and the Api Options should be set to 0 (NOT explicit Rx indicator).

This is all required for proper communication with the PicPilot. The other fields are not relevant.

Addressing Settings

The important parameters here are the Transmit Options which should be set to 0x40 for Point to Point/Multipoint (we're not doing Repeater or DigiMesh). In addition the Cluster ID should be set to 0x11.

You may also wish to set a device friendly Node Identifier name, such as 'Plane' or 'GC' to tell apart the nodes when someone else connects to them.

The Destination Address fields are configured on the PicPilot, and are not important for the Xbee connected to the aircraft.

MAC/Physical Layer Settings

The important settings here are the Preamble ID and Network ID. For two nodes to communicate with each other, these id's must match. The other important property is the TX Power Level, which should be set to 4 (Highest at 24dBm) for maximum range. Note that by default, the channel mask is set to disable channel 19 (recommended by Digi).

Network Settings

Important setting here is the Routing/Messaging Mode, which should be set to 2 (Non-routing module). Because we're only transmitting between two nodes, we don't care about the repeating functionality of the module, and this will configure the module to not propogate broadcasts or act as a repeater.


  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.