Shop OBEX P1 Docs P2 Docs Learn Events
recovery of bricked xbee — Parallax Forums

recovery of bricked xbee

Tracy AllenTracy Allen Posts: 6,656
edited 2012-06-06 10:29 in Accessories
This is just a collection of links to information about how to recover an xbee that is not working and also is not recognized by X-CTU despite following all the standard procedures. You can find different takes on this by typing "bricked xbee" into Google, but the source is the knowledgebase on the Digi Web site.

How do I recover my XBee adapter?
http://www.digi.com/support/kbase/kbaseresultdetl?id=3196
1. Take the module out of the interface board
2. Connect the interface board to the computer
3. Open X-CTU make sure Baud Rate is set to 9600
4. Go to "Modem Configuration"
5. Put a check in the "Always update firmware" box
6. Select proper modem from drop down menu
7. Select proper function set and firmware version from drop down menu
8. Click on the "Write" button. After a few seconds of trying to read the modem, you will get an Info box that says Action Needed. At this point, CAREFULLY insert the module into the interface board
9. You may get the info box again a short while after, just use the reset button on the interface board.

The Parallax or Sparkfun USB adapter boards do have the necessary connections, except for the reset line. You have to improvise a button for that. There is a similar procedure to use if you have one of the RS232 adapters or development boards, simpler really, because you set up the conditions above before plugging in the power to the XBee. Then when the message appears, plug in the power. It may take several attempts. I do think the board needs to support the DTR and maybe also the RTS flow control lines. Not sure about reset. There is way too much hocus pocus surrounding this, because what happens during the bootloader process is not well documented, and neither are the causes that lead to an xbee becoming bricked. I have not had it happen very often, but when it did, the above procedure has usually worked. (barring cases that involved release of smoke!) Digi tech support 866-765-9885. They do answer and they are very helpful.

If that doesn't work, there is a more intensive procedure:
How to get into bootloader mode manually from terminal.
http://www.digi.com/support/kbase/kbaseresultdetl?id=3203
bootloader mode involves conditions of pins at reset
DTR asserted (low)
RTS deasserted (high, usually has pullup)
Din = BREAK (extended start condition, low)
Type: <$18> B <$19>
Terminal will return the bootloader message.


Other links.

Digi page for xctu
www.digi.com/xctu
How to update firmware: (pdf)
(current version from 2011 has important revisions for sleep pin latency)
802.15.4 1xEC

knowledgebase -- lots of great info
Main firmware info page for 802.15.4 XBee and XBee Pro
http://www.digi.com/support/productdetail?pid=3257&type=firmware

.

Comments

  • W9GFOW9GFO Posts: 4,010
    edited 2012-05-27 22:43
    I'll have to look but think I recovered a bricked XBee by a hardware reset - shorting a couple pins together.
  • Tracy AllenTracy Allen Posts: 6,656
    edited 2012-05-28 10:23
    Rich, if you recall what you did, I'd like to catalog it.

    Things can happen to the normal settings that make an XBee seem bricked, most notably a corrupted or otherwise unknown baud rate. With only the 7 standard baud rates to contend with, it is possible to run through them all and look for a response. However the XBee also supports non-standard baud rates. For example, ATBD 80 selects a rate of 128. Not impossible to run through them, but is it necessary? Does X-CTU know a side door?

    For field installations it would be desirable to have a foolproof procedure for setting the XBee back to its factory default settings, equivalent to the ATRE command. But first it has to be able to accept commands.

    Corruption of the actual firmware, as apart from settings, is a separate issue.
  • W9GFOW9GFO Posts: 4,010
    edited 2012-05-28 11:18
    This post from the SparkFun forum sounds like what I did;
    You can totally solve this in seconds. Just write the new firmware with X-CTU. It'll fail, and you'll get a dialog box asking you to reset the board. The sparkfun breakoutboard doesn't seem to pull out the ~RESET signal, but it's on pin 5. Just get a little jumper wire and short pin 5 on the module to pin 10 (pin 1 is the upper left, with the angled side up, pin 10 is the lower left) for a few seconds. When you let go, flashing will continue.

    The difference is that the way I remember it, after shorting the pins it was back at it's factory settings. I don't recall having to continue to flash. I could be remembering wrong...
  • Tracy AllenTracy Allen Posts: 6,656
    edited 2012-05-29 09:29
    My goal with this is to figure out a procedure to use while the XBee is attached to the propeller at a (remote) field site. It will be great if the propeller can do the recovery, whether it be and easy way to recover to a state of factory defaults, or even to reload the firmware from an SD card.

    The motivation comes from a device in place in Mexico that would not respond to anything I tried with Prop firmware sent via email, but it was fixed easily after I sent a Parallax USB interface board #32400 and a copy of X-CTU via courier. It is an isolated incident, but it is one of those nagging things.
  • davejamesdavejames Posts: 4,045
    edited 2012-06-01 09:24
    ...I had to look up "bricked" in the Urban Dictionary.

    :innocent:
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-06-06 10:29
    Thanks, Tracy! This thread comes at an opportune time. I just tried to program my XBee for standalone operation using X-CTU and bricked it. 'Still dunno what I did wrong, but at least I have your 9-step path to recovery. It worked for me without requiring a reset button.

    -Phil
Sign In or Register to comment.