Xbee
m |
|||
(20 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
This page has random bits and bobs about the XBee... | This page has random bits and bobs about the XBee... | ||
<h2>See Also</h2> | <h2>See Also</h2> | ||
− | [http://attie.co.uk/file/XBee-Manual-Cx.pdf | + | [http://attie.co.uk/file/XBee-Manual-Cx.pdf XBee manual]<br> |
[[xbee default|XBee default configurations]] | [[xbee default|XBee default configurations]] | ||
+ | |||
+ | <h2>Antenna Gain</h2> | ||
+ | Chip antenna has a gain of about -1.5dBi<br> | ||
+ | Integrated whip has a gain of about 1.5dBi | ||
<h2>Useful AT Commands</h2> | <h2>Useful AT Commands</h2> | ||
− | <h3>BD</h3> | + | <h3>BD - baud rate</h3> |
{| | {| | ||
! !! bps | ! !! bps | ||
|- | |- | ||
|0 || 1200 | |0 || 1200 | ||
+ | |- | ||
|1 || 2400 | |1 || 2400 | ||
+ | |- | ||
|2 || 4800 | |2 || 4800 | ||
− | |3 | + | |- |
+ | |<font color="#F00">3</font> || 9600 | ||
+ | |- | ||
|4 || 19200 | |4 || 19200 | ||
+ | |- | ||
|5 || 38400 | |5 || 38400 | ||
+ | |- | ||
|6 || 57600 | |6 || 57600 | ||
+ | |- | ||
|7 || 115200 | |7 || 115200 | ||
|} | |} | ||
+ | |||
+ | <h3>CH - channel</h3> | ||
+ | default: <font color="#F00">0x0C</font> | ||
+ | {| | ||
+ | |XBee || 0x0B - 0x1A | ||
+ | |- | ||
+ | |XBee Pro || 0x0C - 0x17 | ||
+ | |} | ||
+ | |||
+ | <h3>Dn - IO</h3> | ||
+ | {| | ||
+ | ! !! 0-4 !! 5 !! 6 !! 7 !! 8 | ||
+ | |- | ||
+ | |0 || <font color="#F00">disabled</font> || disabled || <font color="#F00">disabled</font> || disabled || <font color="#F00">disabled</font> | ||
+ | |- | ||
+ | |1 || n/a || <font color="#F00">Associated</font> || RTS || <font color="#F00">CTS</font> || n/a | ||
+ | |- | ||
+ | |2 || ADC || ADC || n/a || n/a || n/a | ||
+ | |- | ||
+ | |3 || DI || DI || DI || DI || DI | ||
+ | |- | ||
+ | |4 || DO low || DO low || DO low || DO low || n/a | ||
+ | |- | ||
+ | |5 || DO high || DO high || DO high || DO high || n/a | ||
+ | |} | ||
+ | |||
+ | <h3>Tn - IO timeout</h3> | ||
+ | default: <font color="#F00">0xFF</font><br> | ||
+ | range: 0x0 - 0xFF [x 100msec]<br> | ||
+ | for I/O passing only | ||
+ | |||
+ | <h3>SH & SL - source address</h3> | ||
+ | |||
+ | <h3>DH & DL - destination address</h3> | ||
+ | default: <font color="#F00">0x00</font><br> | ||
+ | range: 0x00 - 0xFFFF FFFF | ||
+ | |||
+ | <h3>DN - destination node</h3> | ||
+ | tries to set DH & DL to the address of the node name specified | ||
+ | |||
+ | <h3>FR - firmware reset</h3> | ||
+ | |||
+ | <h3>IA - I/O address</h3> | ||
+ | this address is permitted to pass its IO pins to this modules IO pins<br> | ||
+ | default: <font color="#F00">0xFFFF FFFF</font><br> | ||
+ | set to 0xFFFF FFFF to deny all changes<br> | ||
+ | set to 0xFFFF to accept all changes | ||
+ | |||
+ | <h3>IC - I/O detect</h3> | ||
+ | default: <font color="#F00">0xFFFF FFFF</font> (disabled)<br> | ||
+ | bitfield, when the pin changes a sample will be taken and send | ||
+ | |||
+ | <h3>IR - sample rate</h3> | ||
+ | default: <font color="#F00">0x0</font><br> | ||
+ | range: 0x0 - 0xFFFF [x 1msec] | ||
+ | |||
+ | <h3>IT - samples before TX</h3> | ||
+ | default: <font color="#F00">0x1</font><br> | ||
+ | range: 0x0 - 0xFF | ||
+ | |||
+ | <h3>IS - force sample</h3> | ||
+ | |||
+ | <h3>IU - I/O UART output enable</h3> | ||
+ | default: <font color="#F00">0x1</font> | ||
+ | |||
+ | <h3>ND - node discover</h3> | ||
+ | returns a list of nodes and their address | ||
+ | |||
+ | <h3>NI - node identifier</h3> | ||
+ | sets the node's name | ||
+ | |||
+ | <h3>AP - api mode</h3> | ||
+ | <code>0x00</code> - off<br> | ||
+ | <code>0x01</code> - api mode 1<br> | ||
+ | <code>0x02</code> - api mode 2 (used for libxbee) | ||
+ | |||
+ | <h3>RE - restore defaults</h3> | ||
+ | don't forget to use with WR | ||
+ | |||
+ | <h3>WR - write changes</h3> |
Latest revision as of 02:28, 22 April 2010
This page has random bits and bobs about the XBee...
See Also
XBee manual
XBee default configurations
Antenna Gain
Chip antenna has a gain of about -1.5dBi
Integrated whip has a gain of about 1.5dBi
Useful AT Commands
BD - baud rate
bps | |
---|---|
0 | 1200 |
1 | 2400 |
2 | 4800 |
3 | 9600 |
4 | 19200 |
5 | 38400 |
6 | 57600 |
7 | 115200 |
CH - channel
default: 0x0C
XBee | 0x0B - 0x1A |
XBee Pro | 0x0C - 0x17 |
Dn - IO
0-4 | 5 | 6 | 7 | 8 | |
---|---|---|---|---|---|
0 | disabled | disabled | disabled | disabled | disabled |
1 | n/a | Associated | RTS | CTS | n/a |
2 | ADC | ADC | n/a | n/a | n/a |
3 | DI | DI | DI | DI | DI |
4 | DO low | DO low | DO low | DO low | n/a |
5 | DO high | DO high | DO high | DO high | n/a |
Tn - IO timeout
default: 0xFF
range: 0x0 - 0xFF [x 100msec]
for I/O passing only
SH & SL - source address
DH & DL - destination address
default: 0x00
range: 0x00 - 0xFFFF FFFF
DN - destination node
tries to set DH & DL to the address of the node name specified
FR - firmware reset
IA - I/O address
this address is permitted to pass its IO pins to this modules IO pins
default: 0xFFFF FFFF
set to 0xFFFF FFFF to deny all changes
set to 0xFFFF to accept all changes
IC - I/O detect
default: 0xFFFF FFFF (disabled)
bitfield, when the pin changes a sample will be taken and send
IR - sample rate
default: 0x0
range: 0x0 - 0xFFFF [x 1msec]
IT - samples before TX
default: 0x1
range: 0x0 - 0xFF
IS - force sample
IU - I/O UART output enable
default: 0x1
ND - node discover
returns a list of nodes and their address
NI - node identifier
sets the node's name
AP - api mode
0x00
- off
0x01
- api mode 1
0x02
- api mode 2 (used for libxbee)
RE - restore defaults
don't forget to use with WR