Periodic I/O Sampling; Detect Digital I/O Changes; General Purpose Flash Memory - Digi XBee 868LP User Manual

Rf modules
Hide thumbs Also See for XBee 868LP:
Table of Contents

Advertisement

Advanced application features
Example
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.
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. For more information about setting sleep modes, see

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.
Enabling edge detection forces an immediate sample of all monitored digital I/O lines if any digital I/O
lines change state.

General Purpose Flash Memory

XBee 868LP RF Modules provide 119 512-byte blocks of flash memory that an application can read and
write to. This memory provides a non-volatile data storage area that an application uses for many
purposes. Some common uses of this data storage include:
XBee 868LP RF Modules User Guide
Sample AT response
[Digital input states: DIO 3, 10 high, DIO 2, 11 low]
[Analog input: ADIO 0 = 0x3D0]
[Analog input: ADIO 1 =0x120]
General Purpose Flash Memory
Sleep
modes.
94

Advertisement

Table of Contents
loading

Table of Contents