www.RFM.com
Technical s1.678.684.2000
Page 42 of 96
©2009-2010 by RF Monolithics, Inc.
E-mail:
DNT900 - 08/16/10
Status codes for error conditions
Additional fields
0xE0 = Protocol error - invalid message type
none
0xE1
=
Protocol
error
-
invalid
argument
none
0xE2
=
Protocol
error
-
general
error
none
0xE3
=
Protocol
error
-
parser
timeout
none
0xE4 = Protocol error - register is read-only
none
0xE8
=
UART
receive
buffer
overflow none
0xE9
=
UART
receive
overrun
none
0xEA
=
UART
framing
error
none
0xEE
=
hardware
error
none
Range = Range measurement of joining radio (1 byte). Each count equals 0.29 miles.
BootSelect = Code indicating whether to do a normal reset or a reset to the bootloader (1 byte)
(0 = normal reset, 1 = reset to serial bootloader)
PermitStatus = Permission for new node to join, 0x00 = denied, 0x01 = permitted (1 byte)
BackoffTime = Time that a node will avoid trying to join a network, in seconds (2 bytes)
(0xFFFF = back off until reset or power cycled)
4.1.3 /CFG Select Pin
A falling edge on the /CFG pin is the equivalent of the EnterProtocolMode command. A rising edge on the
/CFG pin is the equivalent to sending the ExitProtocolMode command. The input to the /CFG pin is de-
bounced to make it compatible with a mechanical switch or jumper.
4.1.4 Flow Control
There are two flow control signals between the radio and the host, /HOST_RTS and /HOST_CTS. See
Section 2.12 for flow control details.
4.1.5 Protocol Mode Data Message Example
In this example, ASCII text Hello World is sent from the base to a remote using a TxData command. The
MAC address of the remote is 0x000102. The protocol formatting for the host message is:
0xFB
0x0F 0x05 0x02 0x01 0x00 0x48 0x65 0x6C 0x6C 0x6F 0x20 0x57 0x6F 0x72 0x6C 0x64
There are 15 bytes following the length byte, so the length byte is set to 0x0F. Note that the 0x000102
MAC address is entered in Little-Endian byte order 0x02 0x01 0x00.
When an ACK to this message is received from the remote, the base outputs a TxDataReply message to
its host:
0xFB 0x06 0x15 0x00 0x02 0x01 0x00 0xC4
The 0x00 TxStatus byte value indicates the ACK reception from the remote. The RSSI value of the re-
ceived ACK is 0xC4 (-60 dBm).
If the remote is in protocol mode, the message is output in the following format:
0xFB
0x10
0x26 0x02 0x01 0x00 0xC4 0x48 0x65 0x6C 0x6C 0x6F 0x20 0x57 0x6F 0x72 0x6C 0x64
The message is output as an 0x26 event. Note that the RSSI value 0xC4 is inserted between the re-
mote’s MAC address and the Hello World user data.