XBee® Wi-Fi RF Modules
© 2013 Digi International, Inc. 51
module will sleep anyway. When it awakens from this state, then it will start the SA
timer again to seek to establish association.
Under normal conditions, SA is used for a time out for the first association following
reset and ST is used for short wake cycles thereafter. To conserve battery power, SA
should be long enough for association and ST should be as short as possible for the
application.
Sampling Data Using Sleep Modes
Data can be sampled when waking from any sleep mode by enabling an ADC or digital
input and setting IR appropriately with respect to ST to obtain the desired number of
samples.
Sample Rate (ATIR)
If multiple samples are wanted during the wake period then IR can be used. This will
provide (ST/IR+1) samples. Each sample will be sent separately.
Wake Host
Wake host parameter (ATWH) delays UART and sample data from being initiated until
the timer has expired. This allows the host to wake up before receiving data or a sensor
to power up before an I/O sample is taken.
Digital outputs and special function outputs such as ON_SLEEP and CTS are not affected
by WH. This is to allow these signals to be used to wake up devices.
Note that for deep sleep, both WH must be expired and the module must be associated
before I/O samples are taken.