www.RFM.com
Technical s1.678.684.2000
Page 57 of 82
© 2010-2012 by RF Monolithics, Inc.
E-mail:
DNT90 Integration Guide - 05/10/12
7.5.2 Configuration Messages
In this example, the remote with MAC address 0x123456 is configured by the base (MAC address
0x000000) to generate
RxEvent
messages every 10 seconds. To do this, the
IoReportInterval
in the re-
mote is set to 10 seconds and the
periodic report timer
bit in the
IoReportTrigger
parameter is set ON.
The
IoReportInterval
and the
IoReportTrigger
parameters are loaded using
SetRemoteRegister
com-
mands. The command to set the
IoReportInterval
to 10 seconds is:
SOP
Length
PktType
Lo MAC
MAC
Hi MAC
Reg
Bank
Size
Lo Val
Val
Val
Hi Val
0xFB 0x0B 0x07
0x56 0x34 0x12 0x1C 0x06
0x04 0x10 0x27 0x00 0x00
The
IoReportInterval
parameter starts in location 0x1C of Bank 6. The report interval scaling is
1 ms/count, so a 10 second report interval is 10,000 units or 0x00002710 (Little-Endian format 10 27 00
00). The
IoReportInterval
parameter is updated and
SetRemoteRegisterReply
is returned:
SOP
Length
PktType
Status
Lo MAC
MAC
Hi MAC
RSSI
0xFB 0x06 0x17 0x00 0x00 0x00 0x00 0xB2
The command to set the
periodic report timer
bit in
IoReportTrigger
is:
SOP
Length
PktType
Lo Mac
MAC
Hi MAC
Reg
Bank
Size
Val
0xFB 0x08 0x07 0x56 0x34 0x12 0x1B
0x06
0x01
0x10
The
IoReportTrigger
parameter is in location 0x1B of Bank 6. The
periodic report timer
bit in
IoReport-
Trigger
is located in bit position four (00010000b) or 0x10. The
IoReportTrigger
parameter is updated and
SetRemoteRegisterReply
is returned:
SOP
Length
PktType
Status
Lo MAC
MAC
Hi MAC
RSSI
0xFB 0x06 0x17 0x00 0x00 0x00 0x00
0xB4
7.5.3 Sensor Message
In this example, the base host requests an ADC1 reading from a remote using the
GetRemoteRegister
command, type 0x06. The MAC address of the remote is 0x123456. The current ADC1 measurement
parameter is read starting at register location 0x15 and Bank 5. The ADC reading spans two bytes. The
protocol formatting for this command is:
SOP
Length
PktType
Lo Mac
MAC
Hi MAC
Reg
Bank
Size
0xFB 0x07 0x06 0x56 0x34 0x12 0x15 0x05 0x02
Note the remote MAC address is entered in Little-Endian byte order, 56 34 12.
The ADC reading is returned in a
GetRemoteRegisterReply
message:
SOP
Length
PktType
Status
Lo MAC
MAC
Hi MAC
RSSI
Reg
Bank
Size
Lo Val
Hi Val
0xFB 0x0B 0x16 0x00 0x00 0x00 0x00 0xB7 0x1C 0x06 0x02 0x7B
0x08
Substantial information is returned in the message. The last two byes of the message give the ADC read-
ing in Little-Endian format, 7B 08. The ADC reading is thus 0x087B (2171). The RSSI value is the byte