
API Operation
Frame descriptions
XBee/XBee-PRO® S2C ZigBee® RF Module
186
XBee Sensor Read Indicator - 0x94
Description
When the device receives a sensor sample (from a Digi 1-wire sensor adapter), it is sent out the serial
port using this message type (when
AO
=0).
Format
The following table provides the contents of the frame. For details on frame structure, see
Frame data fields
Offset Description
Frame type
3
0x94
64-bit source
address
4-11
MSB first, LSB last. The sender's 64-bit address.
16-bit Source
network address
12-13
MSB first, LSB last. The sender's 16-bit address.
Receive options
14
0x01 = Packet acknowledged
0x02 = Packet is a broadcast packet
1-Wire Sensors
15
0x01 = A/D Sensor Read
0x02 = Temperature Sensor Read
0x60 = Water present (module CD pin low)
A/D Values
16
Indicates a two-byte value for each of four A/D sensors (A, B, C, D).
Set to 0xFFFFFFFFFFFFFFFF if no A/Ds are found.
17
18
19
20
21
22
23
Temperature Read
24
Indicates the two-byte value read from a digital thermometer if
present. Set to 0xFFFF if not found.
25
Example
Suppose a device receives a 1-wire sensor sample from a device with a 64-bit address of 0x0013A200
40522BAA and a 16-bit address of 0xDD6C. If the sensor sample comes from a 1-wire humidity sensor,
the API frame could look like this (if AO=0):
For convenience, let's label the A/D and temperature readings as AD0, AD1, AD2, AD3, and T. Using the
data in this example: