Periodic I/O Sampling; Detect Digital I/O Changes - Digi XLR PRO User Manual

Radio frequency (rf) module
Hide thumbs Also See for XLR PRO:
Table of Contents

Advertisement

Advanced application features
Example
0x01
0x0C0C
0x03
0x0408
0x03D0
0x0124

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. Use the IR command to set the periodic sample rate.
To disable periodic sampling, set IR to 0.
n
For all other IR values, the firmware samples data when IR milliseconds elapse and the sample
n
data transmits to a remote device.
The DH and DL commands determine the destination address of the I/O samples.
Only devices with API operating mode enabled send I/O data samples out their serial interface.
Devices that are in Transparent mode (AP = 0) discard the I/O data samples they receive. You must
configure at least one pin as a digital or ADC input to generate sample data.
A device with sleep enabled transmits periodic I/O samples at the IR rate until the ST time expires and
the device can resume sleeping.

Detect digital I/O changes

You can configure devices to transmit a data sample immediately whenever a monitored digital I/O
pin changes state. The IC command is a bitmask that you use to set which digital I/O lines to 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 in one of the monitored digital I/O lines using edge detection.
The figure below shows how I/O change detection can work with periodic sampling. 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 IR samples, the bottom graph shows a combination of IR samples and IC (Change
Detect). In the top graph, the humps indicate that the sample was not taken at that exact moment
and needed to wait for the next IR sample period.
XLR PRO Radio Frequency (RF) Module User Guide
Sample AT response
[1 sample set]
[Digital Inputs: DIO 2, 3, 10, 11 enabled]
[Analog Inputs: A/D 0, 1 enabled]
[Digital input states: DIO 3, 10 high, DIO 2, 11 low]
[Analog input: ADIO 0 = 0x3D0]
[Analog input: ADIO 1 =0x120]
Monitor I/O lines
108

Advertisement

Table of Contents
loading

Table of Contents