# Can an XBee be programmed with an XBee Shield

I have an XBee and an XBee Arduino shield.

Can I program my XBee through my Arduino Twenty-Ten and an XBee shield?

Can I do anything with just one XBee?

## 3 Answers

Recommend you get yourself one of these. It's well worth the price and will save you a lot of headaches. Programming can get complex, if you're doing it manually instead of using X-CTU. Since you really only have to do it once, it's much easier to tweak the settings in X-CTU and not bother with the programming code within your application.

About the only thing you can really do with a single XBee is learn about it: fiddle with the settings and whatnot. When you've learned all you can, you'll have to buy another one. :)

• One Explorer dongle amd 1 more XBee to come. Thanks for your help. – Busted Duck Jan 12 '11 at 22:55

The XBee is a ZigBee module with a serial interface. It is designed to act as a radio communication peripheral for a microcontroller or PC.

The program code inside of the module cannot (without specialised tools) be modified, instead, you're limited to the commands listed in the user guide.

The XBee can be controlled either via your Arduino or with a PC and serial port.

A single unit is not very useful, unless you have access to other ZigBee devices.

• No, you can program in custom firmware; see section 8.5 of the manual. The XBee modules actually have some GPIO and A/D functionality on them. However, I think you're pretty much on your own when it comes to putting together this firmware. – Kevin Vermeer Jan 12 '11 at 0:35
• for firmware help, TI would be the resource to check out focus.ti.com/analog/docs/… – jsolarski Jan 12 '11 at 2:23
• @jsolarski so far as I know, the chip in Digi's XBee is a Freescale part running Ember ZNet, not TI – Toby Jaffey Jan 12 '11 at 7:50
• My mistake i thought the Xbee's had CCxxxx chips in them not ember. – jsolarski Jan 12 '11 at 10:56

What I did is to put your Wireless shield in USB mode and then plug the Arduino Reset on the GND like that :

Then you can configure your XBEE with picocom or X-CTU

Edit

Much more simpler, just upload this to the arduino board :

void setup() {}
void loop() {}


Then set your Wireless switch on USB and that's it !

• Unfortunately I was not able to get XCTU to recognize the Xbee (through the Xbee Shield) by uploading that code to the board. But your first solution worked perfectly for me! Just had to connect Reset and Ground on the Arduino and start the discovery process on XCTU. Thanks! – KrispyDonuts Oct 24 '15 at 19:20