# XBee Pro 900 XSC Wireless Programming

**URL:** <https://community.sparkfun.com/t/xbee-pro-900-xsc-wireless-programming/24567>\
**Category:** Arduino\
**Created:** [July 7, 2012, 2:27am UTC](https://community.sparkfun.com/t/xbee-pro-900-xsc-wireless-programming/24567 "2012-07-07T02:27:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![slide](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@slide](https://community.sparkfun.com/u/slide)\
**Post date:** [July 7, 2012, 2:27am UTC](https://community.sparkfun.com/t/xbee-pro-900-xsc-wireless-programming/24567/1 "2012-07-07T02:27:37Z")

</div>

Could anyone help me in getting a set of XBee Pro 900 XSC modules to program an Arduino mega 2560?

I’m not sure of a way to get the mega to reset properly. I started looking at this [[LadyAda tutorial](http://www.ladyada.net/make/xbee/arduino.html) that uses series 1 XBees and apparently propagates the RTS signal by using one of its DIO lines on each device. However, this module does not have any DIO.

Does anyone have any ideas on how to get the arduino to reset?]([Xbee Adapter - wireless Arduino programming](http://www.ladyada.net/make/xbee/arduino.html))

---

<div class="post-metadata">

**Author:** ![Joeisi](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@Joeisi](https://community.sparkfun.com/u/Joeisi)\
**Post date:** [July 7, 2012, 3:17am UTC](https://community.sparkfun.com/t/xbee-pro-900-xsc-wireless-programming/24567/2 "2012-07-07T03:17:22Z")

</div>

Since it has no DIO, there is no direct way. You may be able to tap into D03, which is active when receiving data, therefore able to reset the arduino on demand. Maybe…

---

<div class="post-metadata">

**Author:** ![slide](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@slide](https://community.sparkfun.com/u/slide)\
**Post date:** [July 7, 2012, 5:35am UTC](https://community.sparkfun.com/t/xbee-pro-900-xsc-wireless-programming/24567/3 "2012-07-07T05:35:30Z")

</div>

Yea but then it wouldn’t be useful for wireless communications either.

Perhaps I could send a signal to the mega to reset itself and incorporate that into the arduino programming sequence.

---

<div class="post-metadata">

**Author:** ![slide](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@slide](https://community.sparkfun.com/u/slide)\
**Post date:** [July 7, 2012, 6:32am UTC](https://community.sparkfun.com/t/xbee-pro-900-xsc-wireless-programming/24567/4 "2012-07-07T06:32:18Z")

</div>

I did manage to setup my software to listen for “!CMD:RESET” and then reset itself using the following code which seems to work well. However now I need to figure out how to get ardunio or avrdude to send that before starting the upload.

```auto
void(* resetFunc) (void) = 0; //declare reset function @ address 0

```
