Digi International Inc XBEEPRO2 Manuel D’Utilisation

Page de 155
XBee®/XBee‐PRO® ZB RF Modules 
© 2011 Digi International, Inc.
     25
Firmware Updates
Wired Updates
A user can update their application using the bootloader in a wired configuration with the following 
steps…
a.  Plug XBee programmable module into a suitable serial port on a PC.
b.  Open a hyperterminal (or similar dumb terminal application) session with 9600 baud, no parity, 
and 8 data bits with one stop bit.
c.  Hit Enter to display the bootloader menu.
d.  Hit the "F" key to initiate a wired firmware update.
e.  A series of "C" characters Will be displayed within the hyperterminal window.  At this point, 
select the "transfer->send file" menu item.  Select the desired flat binary output file.  (The file 
should start at 0x8400 not 0x0000). 
f.  Select "Xmodem" as the protocol.
g.  Click "Send" on the "Send File" dialog.  The file will be downloaded to the XBee Programmable 
module.  Upon a successful update, the bootloader will jump to the newly loaded application.
Over-The-Air updates
A user can update their application using the bootloader in an "over-the-air" configuration with the 
following steps…(This procedure assumes that the bootloader is running and not the application. The 
EM250 baud rate must be set to 9600 baud.  The bootloader only operates at 9600 baud.  The 
application must be programmed with some way to support returning to the bootloader in order to 
support Over the Air (OTA) updates without local intervention.) 
a.  The XBee module sending the file OTA (Host module) should be set up with a series 2 Xbee 
module with transparent mode firmware.
b.  The XBee Programmable module receiving the update (remote module) is configured with API 
firmware.
c.  Open a hyperterminal session to the host module with 9600 baud, no parity, no hardwareflow 
control, 8 data bits and 1 stop bit.  
d.Enter 3 pluses "+++" to place the EM250 in command mode.
e.  Set the Host Module destination address  to the target module’s 64 bit address that the host 
module will update (ATDH aabbccdd, ATDL eeffgghh, ATCN, where aabbccddeeffgghh is the hexa-
decimal 64 bit address of the target module).
f.  Hit Enter and the bootloader command menu will be displayed from the remote module. (Note 
that the option "B" doesn't exist for OTA)
g.  Hit the "F" key to cause the remote module to request the new firmware file over-the-air.
h.  The host module will begin receiving "C" characters indicating that the remote module is 
requesting an Xmodem CRC transfer. Using XCTU or another terminal program, Select "XMODEM" 
file transfer.  Select the Binary file to upload/transfer. Click Send to start the transfer.  At the con-
clusion of a successful transfer, the bootloader will jump to the newly loaded application.  
Output File configuration
BKGD Programming
P&E Micro provides a background debug tool that allows flashing applications on the MC9S08QE parts 
through their background debug mode port.  By default, the Codewarrior tool produces an "ABS" 
output file for use in programming parts through the background debug interface.  The programmable 
XBee from the factory has the BKGD debugging capability disabled.  In order to debug, a bootloader 
with the debug interface enabled needs to be loaded on the secondary processor or a stand-alone app 
needs to be loaded.