# Error updating radio firmware- Xbee S2

**URL:** <https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523>\
**Category:** XBee & XBee Gateway\
**Tags:** firmware, s2, xctu, xbee\
**Created:** [July 11, 2017, 2:09pm UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523 "2017-07-11T14:09:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![priiot](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@priiot](https://forums.digi.com/u/priiot)\
**Post date:** [July 11, 2017, 2:09pm UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/1 "2017-07-11T14:09:46Z")

</div>

Hello Everyone,  
I am using xbee s2 with product family of xb24C & function set Zigbee TH Reg. I am unable to upgrade the firmware of XBEE.  
I am successfully able to work in transparent mode. But When I try to work in API mode, I always get an error of Xbee firmware upgrade? I am not able to find the reasoning why it is happening only with API mode?

The problem is, when I click on Test/query, It shows me an error of Unable to communicate with this com Port.  
I tried to unseat the Xbee before clicking write parameter & place the xbee again during reset window pop-up, then I found an error of mismatch baud rate between PC and modem, but I checked the PC baud rate and modem baud rate, both are same. I don’t know where I am lacking in my testing process. I tried many solution from this forum but nothing worked for me ☹

When I try Xbee Recovery in new XCTU version 6.3, I get an error of “could not program the radio module”.

I am not able to find the reasoning and solution for this. Please suggest me a good approach.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [July 11, 2017, 2:22pm UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/2 "2017-07-11T14:22:15Z")

</div>

What is the full part number for the module you are working with? That part number is on the white label on the shield side of the module. It also begins with an XB or XBP24 number.

Also how are you trying to put this module in API mode? What steps do you take?

---

<div class="post-metadata">

**Author:** ![priiot](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@priiot](https://forums.digi.com/u/priiot)\
**Post date:** [July 12, 2017, 4:09pm UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/3 "2017-07-12T16:09:49Z")

</div>

Thank you for your response 🙂  
My Xbee Part no. is XB24CZ7WIT-004-revF

For API mode:  
Coordinator Side:  
PAN ID- 1234  
Coordinator Enable  
NI node Identifier - Cordinator  
DH - 0  
DL- FFFF  
AP API Enable- API enabled [1]

On Router side:  
PAN ID- 1234  
JV channel verification- Enable  
AP API Enable API enabled [1]  
D3- Digital Input

As I wanted to read the status of D3 on the coordinator side.  
At first time, everything worked well and I was able to read the status of D3 pin on coordinator side. then suddenly, When I again discover these 2 modules in XCTU, Coordinator xbee is discovered successfully but router xbee is not discovered & it shows me above mentioned error.  
Did I do something wrong?  
Please guide me. 🙂  
Regards

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [July 12, 2017, 4:26pm UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/4 "2017-07-12T16:26:10Z")

</div>

Sounds like you are discovering the radio as a Sub or child of the Coordinator which is physically connected.

---

<div class="post-metadata">

**Author:** ![priiot](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@priiot](https://forums.digi.com/u/priiot)\
**Post date:** [July 18, 2017, 9:30am UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/5 "2017-07-18T09:30:35Z")

</div>

Yea! I am discovering the radio module as a router which is acting as a child for the coordinator. What am I doing wrong in this manner? How can I recover my module?  
Please help  
Thanks for your support 🙂

---

<div class="post-metadata">

**Author:** ![priiot](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@priiot](https://forums.digi.com/u/priiot)\
**Post date:** [July 18, 2017, 9:30am UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/6 "2017-07-18T09:30:15Z")

</div>

Hi,  
I have solved the issue. The issue was with PC and modem baud rate. I tried it with different PC and successfully able to upgrade the firmware.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [July 18, 2017, 11:40am UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/7 "2017-07-18T11:40:55Z")

</div>

is this issue now resolved or are you still having issues?

---

<div class="post-metadata">

**Author:** ![priiot](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@priiot](https://forums.digi.com/u/priiot)\
**Post date:** [July 19, 2017, 10:14am UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/8 "2017-07-19T10:14:32Z")

</div>

Hi,  
Thanks for the concern. 🙂 I have resolved the issue. The issue was with baud rate difference. I tried to update the xbee firmware with different PC and it worked for me.But somehow I am still in the dilemma that now I am using my XBee with my same PC (the PC with I had the problem of baud rate difference) & now it is working fine with this PC. How is it working? I mean now xbee and PC baud rate do not differ? And one issue is when my xbee is entering in API mode, sometime it looses the firmware. I wanted to know the reason, why this is happening?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [July 19, 2017, 1:50pm UTC](https://forums.digi.com/t/error-updating-radio-firmware-xbee-s2/18523/9 "2017-07-19T13:50:31Z")

</div>

You must be issuing the proper commands to put it in AT command mode, or you are sending remote AT commands over the air, or you are holding DI low on power up putting it into command mode.
