XBee radios

From HeepyWiki
Jump to navigation Jump to search

XBee XSC

This is a higher power 900 MHz ISM band radio. Real life urban (San Francisco) range is 5 or 6 blocks with rubber duckies.

For the cyclic sleep thing to work you have to set up the other node as well:

atsm0
atst10
atlh29
atht29

In fact you don't really need the lh and ht settings on the remote node, just the SM6 setting, because its peer will never be asleep, and thus never needs a long initializer sent at all.

the barrier to getting really low energy use is that you apparently can't set the ST parameter (how long to stay awake for before dropping into sleep mode) to less than 0x10 times 100ms, which is 1.6 seconds during which it draws 48mA!

Unfortunately, when in cyclic sleep mode you can ONLY enter sleep by idling, as it ignores the sleep pin. :(

Xbee XB24

2.4GHz band, lower power radios. God these things are annoying.

Remote device side:

ATID3332	// PAN id, the default
ATMY01		// my source address
ATDL02		// my destination address
ATSM4		// cyclic sleep mode
ATSP190		// 4 second sleep cycle
ATST1770	// stay awake for 6 sec once awake

Master device side:

ATCE1		// I'm the "coordinator"
ATID3332
ATMY02
ATDL01
ATSM0		// not in sleep mode.
ATSP190
ATST1770