This is a Fio and XBee configuration. There’s no problem wirelessly uploading and executing programs. I then have a program constantly monitors and reads the XBee receive buffer for information sent by other XBees. The program ran correctly. Here is the problem: uploading programs always failed and returned “avrdude: stk500_getsync(): not in sync: resp=0x49.”
I suspected that the uploading program is sent to the Fio via the XBee’s receive buffer and that the running program interfered with the uploading program via constantly reading the XBee receive buffer.
To test the theory, I created a minimal size program (doing nothing) and successfully got it uploaded after many tries. Once successfully uploading this small program, uploading other programs were solidly successful. This phenomena repeated very time. Though it is only a speculation of the source of the problem, it must have something to do with the particular program (the one constantly reading the XBee receive buffer) running in the Fio, Any thought, suggestions, solution, or help?