HiRel/CanSat/Slave XBee
(→CanSat modules) |
(→AT commands) |
||
Line 67: | Line 67: | ||
= AT commands = | = AT commands = | ||
− | The communication can be configured via [http:// | + | 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]] |
Revision as of 13:34, 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.
Connection
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