Digi International Inc XBEEPRO2 Manual Do Utilizador

Página de 155
XBee®/XBee‐PRO® ZB RF Modules 
© 2011 Digi International, Inc.
     108
Remote AT Command Request
Frame Type: 0x17 
Used to query or set module parameters on a remote device. For parameter changes on the remote device to 
take effect, changes must be applied, either by setting the apply changes options bit, or by sending an AC 
command to the remote.
Example: Send a remote command to change the broadcast hops register on a remote device to 
1 (broadcasts go to 1-hop neighbors only), and apply changes so the new configuration value 
immediately takes effect. In this example, the 64-bit address of the remote is 0x0013A200 
40401122, and the destination 16-bit address is unknown.
Frame Fields
Offset Example
Description
A
P
I
 
P
a
c
k
e
t
Start Delimiter
0 0x7E
Length
MSB 1 0x00
Number of bytes between the length and the checksum
LSB 2 0x10
Frame-specific Data  Frame Type
3 0x17
Frame ID
4 0x01
Identifies the UART data frame for the host to correlate 
with a subsequent ACK (acknowledgement). If set to 0, 
no response is sent.
64-bit Destination
Address
MSB 5 0x00
Set to the 64-bit address of the destination device. The 
following addresses are also supported:
0x0000000000000000 - Reserved 64-bit address for the 
coordinator
0x000000000000FFFF - Broadcast address
6 0x13
7 0xA2
8 0x00
9 0x40
10 0x40
11 0x11
LSB 12 0x22
16-bit Destination
Network Address
MSB 13 0xFF
Set to the 16-bit address of the destination device, if 
known. Set to 0xFFFE if the address is unknown, or if 
sending a broadcast.
LSB 14 0xFE
Remote Command 
Options
15 0x02 (apply 
changes)
Bitfield to enable various remote command options. 
Supported values include:
0x01 - Disable ACK
0x02 - Apply changes on remote. (If
not set, AC command must be sent
before changes will take effect.)
0x40 - Use the extended transmission timeout for this 
destination.
Setting the extended timeout bit causes the stack to set 
the extended transmission timeout for the destination 
address (see chapter 4).
All unused and unsupported bits must be set to 0.
AT Command
16 0x42 (B)
Name of the
command
17 0x48 (H)
Command Parameter
18 0x01
If present, indicates the requested
parameter value to set the given
register. If no characters present,
the register is queried.
Checksum
19 0xF5
0xFF - the 8 bit sum of bytes from offset 3 to this byte.