![Digi S6B User Manual Download Page 157](http://html.mh-extra.com/html/digi/s6b/s6b_user-manual_2496668157.webp)
AT commands
I/O settings commands
XBee Wi-Fi RF Module User Guide
157
Default
N/A
IR (I/O Sample Rate)
Set or read the I/O sample rate to enable periodic sampling.
To enable periodic sampling, set
IR
to a non-zero value, and enable the analog or digital I/O
functionality of at least one device pin (see
D0 (DIO0/AD0/ CB Configuration)
The sample rate is measured in milliseconds.
WARNING!
If you set
IR
to 1 or 2, the device will not keep up and many samples will be
lost.
Parameter range
0 - 0xFFFF (x 1 ms)
Default
0
IC (Digital Change Detection)
Set or read the digital I/O pins to monitor for changes in the I/O state.
IC
works with the individual pin configuration commands (
D0
-
D9
,
P0
-
P2
) . If you enable a pin as a
digital I/O, you can use the
IC
command to force an immediate I/O sample transmission when the DIO
state changes. IC is a bitmask that you can use to enable or disable edge detection on individual
channels.
Set unused bits to 0.
Parameter range
0 - 0xFFFF
Default
0
IF (Sample from Sleep Rate)
Set or read the number of sleep cycles that must elapse between periodic I/O samples. This allows
the firmware to take I/O samples only during some wake cycles. During those cycles, the firmware
takes I/O samples at the rate specified by
IR
.
Parameter range
1 - 0xFF (1 gives you a sample every sleep cycle)
Default
1