Anyone using Arduino board with XBee shield?

I'm using an Arduino Duemilanove board with XBee shield.
When I upload the different examples to the board by USB cable, the same errors come out :

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

Anyone here can help me?

Thanks a lot.

More info? Are you using the 168 or 328 and have you selected the right chip from the board menu?

/me

remove the module before uploading.

Atmega328
i'm sure i choose the right board and port..

My aim is to make the board communicate with computer.

remove the module before uploading.

What he said.

The Xbee is connected to RX/TX pins on the chip. This is interfering with the upload because the data from the FTDI chip also connects to the the same pins.

Another solution would be to remove both jumpers on the Xbee shield that control how the Xbee's serial lines are connected when you want to upload. You didn't say which Xbee shield you have so I assume you have the jumpers.

If you just want the computer to talk directly and only to the Xbee, then you need to set the jumpers in the "USB" position and remove the ATmega chip from it's socket.

Thanks a lot.
but the board is already sealed. we couldn't remove the XBee shield and there's no jumper i think.

Thanks etracer.
I got it.

But do you know how to use the SquidBee to form a wirless sensor network?
Squidbee gateway is the arduino+xbee+xbee pro+usb cable
Squidbee node is the arduino+xbee+xbee pro+sensors

when i connect the gateway with computer via usb cable, squidbee node could transmit data to the gateway via antenna(wirless RF). I saw the sensed data on terminal software(hyperterminal or x-ctu).
The problems is:
i couldn't stop the transmitting? is there a command?
how can i set up the squidbee node's address? because i have more than one node, i want to distingush them

Hello diya,
i'll use Arduino Duemilanove + XBee in a couple weeks.
Did you just connect Tx-Rx of Arduino and XBee and communicated? Because there is the 5V to 3.3V issue. I thought it was needed a tension divider.

About identifying nodes:
-ATMY command sets the node adress. Ex.: ATMY6666 sets the node adress to 6666.
-ATDL command sets the node Destination adress. Ex.: ATDL7777

This way, the node "6666" will only send data to 1(or more) node with "7777" adress. You can set several nodes with 7777 adress, so they all receive the data. You can create many diffenrent setups. Hope this will help you.

To stop transmittion (i'm assuming you're using XBee A/Ds to transmit constantly) I guess you can set the transmitting node to sleep. nut I'm not sure of that.
Another option is to enter command mode by sending '+++' and waiting 1 sec without send anything. Then disable A/Ds.

Hope this can help you

Thanks KBK.

The way to use ATMY etc. command could set up the gateway's address, because the gateway is connected via cable and X-ctu could communicate with the gateway.
But as for the node which is powered by battery and communicate wirlessly, we couldn't use any terminal to set up their address.

quto'm using an Arduino Duemilanove board with XBee shield.
When I upload the different examples to the board by USB cable, the same errors come out :

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

i think the reason is that i don't have Atmega chip.....i only have a board.

I am working with the same board, and i have this problem too.

I bought Arduino+Xbee board last week. When I tried to upload a example, this message appeared:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I saw the recommendations in Arduino website but I can´t solve it.

Some information about my enviroment:
OS: Windows XP
Serial Port: COM3
Board: Arduino Duemilanove + XBee (Squidbee)

I am new in Arduino.I need your help. Thanks!

I am working with the same board, and i have this problem too.

I bought Arduino+Xbee board last week. When I tried to upload a example, this message appeared:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I saw the recommendations in Arduino website but I can´t solve it.

Some information about my enviroment:
OS: Windows XP
Serial Port: COM3
Board: Arduino Duemilanove + XBee (Squidbee)

I am new in Arduino.I need your help. Thanks!

Read some of the earlier replies in this topic.

Hi Crisfuga,
did you buy from libelium company?
what's your experiment about?

As for the problem, I think we don't have the Atmega 168/368 chip on Duemilanove board.
Later I will try to upload some photos about my board.

Hi diya!

yes, It´s a arduino board of Libelium. I´m working in a proyect of sensor network to have a degree in telecomunications. My experiment is about mixed networks, but it could change.

So, have you also bought it from Libelium?

Thanks for your photos, i want to solve this problem as soon as possible.

i want to solve this problem as soon as possible.

second try to give you the answer...

Then read the other posts in this topic (<< it's a link) that tell you how to solve the problem. If you don't want to click on the link, then just scroll up.

Hi etracer, i know what you mean. I tried all you mentioned above, but still failed.
I remove the xbee to try uploading
even remove both jumpers, but still failed uploading..

(unluckily, i lost one jumper when i removed them once and once again.) :frowning:

BTW,how do you identify your atmega chip? i even didn't see it there.
that's why i said i didn't have the chip on the board.

Well I was actually replying to crisfuga who seems to be ignoring the advice.

But if you don't have an ATMega chip installed, then I have 100% confidence that you're not going to be able to upload a sketch. Your image post didn't work so I can't tell you for sure what you have (or don't have).

The chip on a standard Arduino is located as indicated by the yellow box:

I'm pretty sure i don't have that part....

etracer:
under this situation, do you know how to control and program the arduino xbee moduel? how to connect arduino with c++?

Well where did it go? When you buy a Duemilanove it comes with an ATmega168 (or more recently a ATmega328).

Without it it's like taking the CPU out of your computer (and about as useful).

Good thing you can always buy another:

http://www.nkcelectronics.com/arduino-ready-avr-atmega328-microcontrol328.html

The picture you posted shows a XBee module, plugged into a XBee shield which is plugged into the Arduino. So if you want to see if a XTmega chip is installed (and which one), you'll have to remove the XBee shield (by pulling straight up).

of course i did remove the two staff on the arduino.
but no Atmega.