http://www.ladyada.net/make/xbee/arduino.html
but I am having some problems.
I established the 19200 kbps connection between two modems, they see and talk to each other (checked with two serial consoles) but I've been having problems with arduino wireless programming.
Although reset works and programming starts and seems to proceed ok, it always ends with an error from avrdude. The errors I've been getting look like these:
Code: Select all
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: failed to write flash memory, rc=-4
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I checked the transmission and it is ok, no interference. Checked it by tansmitting keyboard strokes from hyperterminal to x-ctu terminal over the two xbees, I didn't notice any errors. Exactly what I typed appeared on the other side.
The modems (regular Xbees with blue SMT antennas on adafruit's xbee adapters, one on ftdi 3.3v cable, the other connected to arduino) are some 50 cm apart and set to 4-HIGHEST power level.
The resp values (here: 0x64 0x51) seem to be the data the program that's already in arduino is meant to send over the air. It looks like avr dude having finished programming waits for some kind of confirmation from arduino, but never receives it since reset seems to occur too early and instead of bootloader acknowledgement avrdude gets response from the programmed app.
I tried with reset cap of 100n and 1100n, which seems to make a little difference, if any.
Any ideas?