XBee/XBeePRO"燨EM燫F燤odules??02.15.4?爒1.xAx燵2007.05.031]
2007燤axStream,營(yíng)nc.
牋牋?4
Chapter??燫F燤odule燙onfiguration
IO (Digital Output Level) Command
<I/O Settings> The IO command is used to set
digital output levels. This allows DIO lines setup
as outputs to be changed through Command
Mode.
IR (Sample Rate) Command
<I/O Settings> The IR command is used to set/
read the sample rate. When set, the module will
sample all enabled DIO/ADC lines at a specified
interval. This command allows periodic reads of
the ADC and DIO lines in a non-Sleep Mode
setup.
Example: When IR = 0x0A, the sample rate is 10
ms (or 100 Hz).
IS (Force Sample) Command
<I/O Settings> The IS command is used to force
a read of all enabled DIO/ADC lines. The data is
returned through the UART.
When operating in Transparent Mode (AP=0), the
data is retuned in the following format:
All bytes are converted to ASCII:
number of samples
channel mask
DIO data (If DIO lines are enabled
ADC channel Data <-This will repeat for every enabled ADC channel
(end of data noted by extra )
When operating in API mode (AP > 0), the command will immediately return an OK response.
The data will follow in the normal API format for DIO data.
IT (Samples before TX) Command
<I/O Settings> The IT command is used to set/
read the number of DIO and ADC samples to col-
lect before transmitting data.
One ADC sample is considered complete when all
enabled ADC channels have been read. The mod-
ule can buffer up to 93 Bytes of sample data.
Since the module uses a 10-bit A/D converter, each sample uses two Bytes. This leads to a maxi-
mum buffer size of 46 samples or IT=0x2E.
When Sleep Modes are enabled and IR (Sample Rate) is set, the module will remain awake until IT
samples have been collected.
AT Command: ATIO
Parameter Range: 8-bit bitmap
(where each bit represents the level of an I/O
line that is setup as an output.)
Minimum Firmware Version Required: v1.xA0
AT Command: ATIR
Parameter Range: 0 - 0xFFFF [x 1 msec]
(cannot guarantee 1 ms timing when IT=1)
Default Parameter Value:0
Related Command: IT (Samples before TX)
Minimum Firmware Version Required: v1.xA0
AT Command: ATIS
Parameter Range: 1 - 0xFF
Default Parameter Value:1
Minimum Firmware Version Required: v1.xA0
AT Command: ATIT
Parameter Range: 1 - 0xFF
Default Parameter Value:1
Minimum Firmware Version Required: v1.xA0