Digi International Inc XBEEPRO2 Manual Do Utilizador

Página de 155
XBee®/XBee‐PRO® ZB RF Modules 
© 2011 Digi International, Inc.
     119
Over-the-Air Firmware Update Status
Frame Type: 0xA0
The Over-the-Air Firmware Update Status frame provides a status indication of a firmware update transmission 
attempt. If a query command (0x01 0x51) is sent to a target with a 64-bit address of 0x0013A200 40522BAA 
through an updater with 64-bit address 0x0013A200403E0750 and 16-bit address 0x0000, the following is the 
expected response.
If a query request returns a 0x15 (NACK) status, the target is likely waiting for a firmware update image. If no 
messages are sent to it for about 75 seconds, the target will timeout and accept new query messages.
If a query returns a 0x51 (QUERY) status, then the target's bootloader is not active and will not respond to 
query messages.
A
P
I
 
P
a
c
k
e
t
Frame Fields
Offset Example
Description
Start Delimiter
0 0x7E
Length
MSB 1 0x00
Number of bytes between the length and the checksum
LSB 2 0x16
Frame-specific Data 
Frame Type
3 0xA0
64-bit Source
(remote) Address
MSB 4 0x00
The address of the remote radio returning this response.
5 0x13
6 0xA2
7 0x00
8 0x40
9 0x3E
10 0x07
LSB 11 0x50
16-bit Destination 
Address
 12 0x00
16-bit address of the updater device
 13 0x00
Receive Options
14 0x01
0x01 - Packet Acknowledged. 
0x02 - Packet was a broadcast.
Bootloader Message 
Type
15 0x52
0x06 - ACK
0x15 - NACK
0x40 - No Mac ACK 
0x51 - Query (received if the bootloader is not active on 
the target)
0x52 - Query Response
Block Number
16 0x00
Block number used in the update request. Set to 0 if not 
applicable.
64-bit Target Address
17 0x00
64-bit Address of remote device that is being updated 
(target).
18 0x13
19 0xA2
20 0x00
21 0x40
22 0x52
23 0x2B
24 0xAA
Checksum
25 0x66
0xFF - the 8 bit sum of bytes from offset 3 to this byte.