Difference between revisions of "XBee configuration"

From PaparazziUAV
Jump to navigation Jump to search
Line 1: Line 1:
Paparazzi supports the following modem protocols:
Paparazzi supports the following modem protocols:
* Standard transparent serial (pprz) - this is compatible with all modems and can be used to connect the autopilot directly to a PC for testing without a modem.
* Standard transparent serial (pprz) - this is compatible with all modems and can be used to connect the autopilot directly to a PC for testing without a modem.
* Digi (formerly Maxstream) API protocol (xbee) - compatible with all Digi modems including the 9XTend and Zigbee. This protocol enables hardware addressing, allowing multiple aircraft to be managed from a single ground modem.
* Digi (formerly Maxstream) API protocol (xbee) - compatible with all Digi modems including the 9XTend and Zigbee. This protocol enables hardware addressing through API mode, allowing multiple aircraft to be managed from a single ground modem.
<br/>
<br/>


== Installation ==
== Installation ==
The simples way to configure the XBee modems is to use the [http://www.digi.com/support/kbase/kbaseresultdetl.jsp?kb=125 X-CTU] software from Digi. It runs under Windows or under Wine
The simples way to configure the XBee modems is to use the [http://www.digi.com/support/kbase/kbaseresultdetl.jsp?kb=125 X-CTU] software from Digi. It runs under Windows or under Wine.


== Configuring XBee AT mode (for pprz protocol) ==
== Configuring XBee AT mode (for pprz protocol) ==
This is the recommended way to start.
This is the recommended way to start. With this firmware the modems basically act as a serial link replacement and don't do any mesh networking.
<br/>
<br/>
Basic approach:
Basic approach:
Line 19: Line 19:
# Then write the firmware to the module.
# Then write the firmware to the module.


=== XBee Pro ZB 2.4GHZ ===
== XBee Pro ZB (AT command set) ==
==== Flashing the airborne module ====
This 2.4GHz modem uses ZigBee PRO Feature Set and is compatible with devices from other vendors using the ZigBee PRO Feature Set.
 
=== Flashing the airborne module ===
# Connect your XBee, start X-CTU, click READ
# Connect your XBee, start X-CTU, click READ
# Select the function set ZIGBEE END DEVICE AT (or ZIGBEE ROUTER AT).
# Select the function set '''ZIGBEE END DEVICE AT''' (or ZIGBEE ROUTER AT).
# Set the PAN ID to any number, must be the same as the pan id of the coordinator (Ground Station).
# Set the PAN ID to any number, must be the same as the pan id of the coordinator (Ground Station).
# Set the Node Identifier (NI) to your aircraft name or any other appropriate name.
# Set the Node Identifier (NI) to your aircraft name or any other appropriate name.
# Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly. At a higher baudrate setting, transmission can only be done in one direction.
# Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly.
# Then write the firmware to the module.
# Then write the firmware to the module.


==== Flashing the ground station module ====
=== Flashing the ground station module ===
# Connect your XBee, start X-CTU, click READ
# Connect your XBee, start X-CTU, click READ
# Select the function set ZIGBEE COORDINATOR AT.
# Select the function set '''ZIGBEE COORDINATOR AT'''.
# Set the PAN ID to any number, must be the same as the pan id of the end device (aircraft).
# Set the PAN ID to any number, must be the same as the pan id of the end device (aircraft).
# Set the Node Identifier (NI) to PPRZ_GROUND or any other appropriate name.
# Set the Node Identifier (NI) to PPRZ_GROUND or any other appropriate name.
# Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly. At a higher baudrate setting, transmission can only be done in one direction.
# Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly.
# Then write the firmware to the module.
# Then write the firmware to the module.


an interesting link : [http://pixhawk.ethz.ch/tutorials/how_to_configure_xbee] (maybe in the future we do not need this link any more and they link to us)


=== XBee Pro ZNet 2.5 2.4GHZ ===
== XBee Pro ZNet 2.5 (AT command set) ==
You can upgrade these to XBee Pro ZB.
These are legacy modems and not recommended/sold by Digi anymore.
It is recommended to upgrade these to XBee Pro ZB with the [ftp://ftp1.digi.com/support/images/ZNet%202.5%20to%20ZB%20Conversion%20Kit.zip ZNet 2.5 to ZB Conversion Kit] from Digi.
<br/>
If you want to use ZNet 2.5 feature set nevertheless, here is how to configure it:
 
=== Flashing the airborne module ===
# Connect your XBee, start X-CTU, click READ
# Select the function set '''ZNET 2.5 ROUTER/END DEVICE AT'''.
# Set the PAN ID to any number, must be the same as the pan id of the coordinator (Ground Station).
# Set the Node Identifier (NI) to your aircraft name or any other appropriate name.
# Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly.
# Then write the firmware to the module.
 
=== Flashing the ground station module ===
# Connect your XBee, start X-CTU, click READ
# Select the function set '''ZNET 2.5 COORDINATOR DEVICE AT'''.
# Set the Destination Address Low (DL) to FFFF.
# Set the PAN ID to any number, must be the same as the pan id of the end device (aircraft).
# Set the Node Identifier (NI) to PPRZ_GROUND or any other appropriate name.
# Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly.
# Then write the firmware to the module.


=== XBee Pro 802.15.4 2.4GHZ ===
see also : [http://pixhawk.ethz.ch/tutorials/how_to_configure_xbee PixHawk HowTo configure XBee]
== XBee Pro 802.15.4 (AT command set) ==


=== XBee Pro 900 MHZ ===
== XBee Pro 900 MHZ ==
=== XBee Pro XSC 900 MHZ ===
== XBee Pro XSC (900MHZ) ==


== Configuring XBee API mode (xbee protocol) ==
== Configuring XBee API mode (xbee protocol) ==

Revision as of 06:12, 11 August 2010

Paparazzi supports the following modem protocols:

  • Standard transparent serial (pprz) - this is compatible with all modems and can be used to connect the autopilot directly to a PC for testing without a modem.
  • Digi (formerly Maxstream) API protocol (xbee) - compatible with all Digi modems including the 9XTend and Zigbee. This protocol enables hardware addressing through API mode, allowing multiple aircraft to be managed from a single ground modem.


Installation

The simples way to configure the XBee modems is to use the X-CTU software from Digi. It runs under Windows or under Wine.

Configuring XBee AT mode (for pprz protocol)

This is the recommended way to start. With this firmware the modems basically act as a serial link replacement and don't do any mesh networking.
Basic approach:

  1. Connect your XBee, e.g. via a USB XBee Explorer.
  2. Start the X-CTU programm and go to the modem configuration.
  3. Click on READ
  4. Select the appropriate function set with AT command set.
  5. set PAN ID, etc... depending on which XBee you use
  6. Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly. At a higher baudrate setting, transmission can only be done in one direction.
  7. Then write the firmware to the module.

XBee Pro ZB (AT command set)

This 2.4GHz modem uses ZigBee PRO Feature Set and is compatible with devices from other vendors using the ZigBee PRO Feature Set.

Flashing the airborne module

  1. Connect your XBee, start X-CTU, click READ
  2. Select the function set ZIGBEE END DEVICE AT (or ZIGBEE ROUTER AT).
  3. Set the PAN ID to any number, must be the same as the pan id of the coordinator (Ground Station).
  4. Set the Node Identifier (NI) to your aircraft name or any other appropriate name.
  5. Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly.
  6. Then write the firmware to the module.

Flashing the ground station module

  1. Connect your XBee, start X-CTU, click READ
  2. Select the function set ZIGBEE COORDINATOR AT.
  3. Set the PAN ID to any number, must be the same as the pan id of the end device (aircraft).
  4. Set the Node Identifier (NI) to PPRZ_GROUND or any other appropriate name.
  5. Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly.
  6. Then write the firmware to the module.


XBee Pro ZNet 2.5 (AT command set)

These are legacy modems and not recommended/sold by Digi anymore. It is recommended to upgrade these to XBee Pro ZB with the ZNet 2.5 to ZB Conversion Kit from Digi.
If you want to use ZNet 2.5 feature set nevertheless, here is how to configure it:

Flashing the airborne module

  1. Connect your XBee, start X-CTU, click READ
  2. Select the function set ZNET 2.5 ROUTER/END DEVICE AT.
  3. Set the PAN ID to any number, must be the same as the pan id of the coordinator (Ground Station).
  4. Set the Node Identifier (NI) to your aircraft name or any other appropriate name.
  5. Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly.
  6. Then write the firmware to the module.

Flashing the ground station module

  1. Connect your XBee, start X-CTU, click READ
  2. Select the function set ZNET 2.5 COORDINATOR DEVICE AT.
  3. Set the Destination Address Low (DL) to FFFF.
  4. Set the PAN ID to any number, must be the same as the pan id of the end device (aircraft).
  5. Set the Node Identifier (NI) to PPRZ_GROUND or any other appropriate name.
  6. Set the baudrate you want to use. 57600 is the maximum baudrate setting for bidirectional transfers to work correctly.
  7. Then write the firmware to the module.

see also : PixHawk HowTo configure XBee

XBee Pro 802.15.4 (AT command set)

XBee Pro 900 MHZ

XBee Pro XSC (900MHZ)

Configuring XBee API mode (xbee protocol)