Periodic I/O Sampling; Source; Destination; Digital I/O Change Detection - Digi XBee 3 ZigBee User Manual

Rf module
Table of Contents

Advertisement

I/O support
Output
01
0C 0C
03
04 08
03 D0
01 24
50

Periodic I/O sampling

Periodic sampling allows a device to take an I/O sample and transmit it to a remote device at a
periodic rate.

Source

Use
IR (I/O Sample Rate)
To disable periodic sampling, set IR to 0.
n
For all other IR values, the device samples data when IR milliseconds elapse and transmits the
n
sampled data to the destination address.
The DH (Destination Address High) and DL (Destination Address
destination address of the I/O samples. You must configure at least one pin as a
input
on the sending node to generate sample data.

Destination

If the receiving device is operating in
serial port. Devices that are in
unless you enable line passing.

Digital I/O change detection

You can configure devices to transmit a data sample immediately whenever a monitored digital I/O
pin changes state.
monitor for a state change. If you set one or more bits in IC, the device transmits an I/O sample as
soon it observes a state change on the monitored digital I/O line(s) using edge detection.
Change detection is only applicable to
output (4 or 5).
The figure below shows how I/O change detection can work in combination with
sampling
to improve sampling accuracy. In the figure, the gray dashed lines with a dot on top
represent samples taken from the monitored DIO line. The top graph shows only periodic IR samples,
Digi XBee® 3 Zigbee® RF Module
Field
Description
One sample set
Digital channel mask, indicates which digital lines are sampled
(0x0C0C = 0000 1100 0000 1100b = DIO2, 3, 10, 11)
Analog channel mask, indicates which analog lines are sampled
I/O sample
(0x03 = 0000 0011b = AD0, 1)
data
Digital sample data that corresponds with the digital channel mask
0x0408 = 0000 0100 0000 1000b = DIO3 and DIO10 are high, DIO2
and DIO11 are low
Analog sample data for AD0
Analog sample data for AD1
Checksum
Can safely be discarded on received frames
to set the periodic sample rate for enabled I/O lines.
API operating mode
Transparent operating mode
IC (Digital Change Detection)
digital I/O pins
Low) commands determine the
the
I/O data sample
discard the I/O data samples they receive
is a bitmask that determines which digital I/O lines to
that are configured as digital input (3) or digital
Periodic I/O sampling
digital I/O
or
ADC
is emitted out of the
Periodic I/O
174

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee 3 ZigBee and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents