HiRel/CanSat/Slave XBee
(→Connection) |
|||
(11 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
{|class=wikitable | {|class=wikitable | ||
|- | |- | ||
− | ! Type || CanSat Slave XBee|| Schematic || | + | ! Type || CanSat Slave XBee|| Schematic || Description |
|- | |- | ||
− | | V1.0 || [[ | + | | V1.0 || [[File:CanSat_Slave_XBEE.jpg|200px|CanSat Slave XBee V1.0]] || [[Media:P-CAD EDA - CanSat Slave XBee schematic.pdf|CanSat Slave XBee v1.0 Schematic PDF]] || XBP24BZ7UIT-004 |
|- | |- | ||
|} | |} | ||
− | |||
The [[HiRel/CanSat|CanSat]] RF communication is done with the help of an | The [[HiRel/CanSat|CanSat]] RF communication is done with the help of an | ||
[http://www.digi.com/products/model?mid=3588 XBee-PRO ZB S2B module w/ U.Fl antenna connector]. | [http://www.digi.com/products/model?mid=3588 XBee-PRO ZB S2B module w/ U.Fl antenna connector]. | ||
+ | |||
+ | = Board connectors = | ||
The connection to the module is done through following pins: | The connection to the module is done through following pins: | ||
Line 22: | Line 23: | ||
| data_out || b4 || out || serial link TxD | | data_out || b4 || out || serial link TxD | ||
|- | |- | ||
− | | | + | | reset_n || b6 || in || reset_n |
|- | |- | ||
| sleep_rq || b8 || in || sleep control | | sleep_rq || b8 || in || sleep control | ||
Line 32: | Line 33: | ||
| dio || t5 || inout || digital I/O | | dio || t5 || inout || digital I/O | ||
|- | |- | ||
− | | | + | | sleep_n || t7 || out || sleep indicator |
|} | |} | ||
+ | = Setup = | ||
+ | |||
+ | An XBee module can work in API mode, providing a complete ZigBee network, or as a simple AT modem. | ||
+ | In order to communicate between different modules, a common PAN identifier must be set. | ||
+ | The [[Media:Xbee-product-manual.pdf|XBee product manual]] gives the setup information. | ||
+ | |||
+ | The module can be configured via a serial or [http://ftp1.digi.com/support/documentation/xbibudev_referenceguide.pdf USB programmer board] | ||
+ | with the [http://www.digi.com/products/wireless-wired-embedded-solutions/zigbee-rf-modules/xctu XCTU] application. | ||
+ | |||
+ | == Coordinator == | ||
+ | |||
+ | The XBee module on the CanSat connects to a PC via a [http://en.wikipedia.org/wiki/ZigBee#Device_types_and_operating_modes ZigBee Coordinator] (ZC). | ||
+ | |||
+ | The coordinator is configured as an API ZC. | ||
+ | |||
+ | == CanSat modules == | ||
+ | |||
+ | The XBee module on the CanSat is configured as a [http://en.wikipedia.org/wiki/ZigBee#Device_types_and_operating_modes ZigBee Router] (ZR). | ||
+ | |||
+ | The modules are configured as AT ZRs. | ||
+ | |||
+ | They all have a distinctive MAC address, starting with the <code>0013A2</code> Organizationally Unique Identifier (OUI). | ||
+ | The further <code>0040B8</code> are identical on the devices we have acquired and the last 4 hex digits are written on the board. | ||
+ | This address will be used by the ZC to connect to the module. | ||
+ | |||
+ | The serial port setup is: | ||
+ | * 115200 baud | ||
+ | * 8 bit, no parity | ||
+ | |||
+ | = AT commands = | ||
+ | |||
+ | The communication can be configured via [http://examples.digi.com/wp-content/uploads/2012/07/XBee_ZB_ZigBee_AT_Commands.pdf AT commands]. | ||
+ | AT mode is entered after a <code>+++</code> input. | ||
+ | The following example shows a terminal connexion to an XBee device in AT mode: | ||
+ | +++OK | ||
+ | ATSH | ||
+ | 13A200 | ||
+ | ATSL | ||
+ | 40B8CEEA | ||
[[Category:Master]] [[Category:HiRel]] [[Category:CanSat]] | [[Category:Master]] [[Category:HiRel]] [[Category:CanSat]] |
Latest revision as of 13:37, 29 May 2015
|
Type | CanSat Slave XBee | Schematic | Description |
---|---|---|---|
V1.0 | CanSat Slave XBee v1.0 Schematic PDF | XBP24BZ7UIT-004 |
The CanSat RF communication is done with the help of an XBee-PRO ZB S2B module w/ U.Fl antenna connector.
Board connectors
The connection to the module is done through following pins:
name | pin | dir | description |
---|---|---|---|
data_in | b2 | in | serial link RxD |
data_out | b4 | out | serial link TxD |
reset_n | b6 | in | reset_n |
sleep_rq | b8 | in | sleep control |
RSSI_PWM | t1 | out | radio signal strength indication |
associate | t3 | out | association indication |
dio | t5 | inout | digital I/O |
sleep_n | t7 | out | sleep indicator |
Setup
An XBee module can work in API mode, providing a complete ZigBee network, or as a simple AT modem. In order to communicate between different modules, a common PAN identifier must be set. The XBee product manual gives the setup information.
The module can be configured via a serial or USB programmer board with the XCTU application.
Coordinator
The XBee module on the CanSat connects to a PC via a ZigBee Coordinator (ZC).
The coordinator is configured as an API ZC.
CanSat modules
The XBee module on the CanSat is configured as a ZigBee Router (ZR).
The modules are configured as AT ZRs.
They all have a distinctive MAC address, starting with the 0013A2
Organizationally Unique Identifier (OUI).
The further 0040B8
are identical on the devices we have acquired and the last 4 hex digits are written on the board.
This address will be used by the ZC to connect to the module.
The serial port setup is:
- 115200 baud
- 8 bit, no parity
AT commands
The communication can be configured via AT commands.
AT mode is entered after a +++
input.
The following example shows a terminal connexion to an XBee device in AT mode:
+++OK ATSH 13A200 ATSL 40B8CEEA