Nagy, >I'm working on a project to upload an application code to an arduino board >over the internet. I'm using an arduino uno with an ethernet shield. I want to >write a bootloader which works like a tcp client it gets the new code from a >remote server and puts it in the program memory.
Sounds like an entirely smart thing to do. >So from anywhere I can upload code to my board using a simple http request to >the main server and it will compile and forward the hex file to my board(The >server and the board are in different location). The problem is that I have to >interrupt the current program somehow via the internet, when I want to send >the code, and make a controller reset. >In the avrdude what kind of interrupts are used to do this, how does it works >on the serial port? for instance in this case: avrdude -v -v -v -v >-patmega328p -carduino -P\\.\COM5 -b115200 -D >-Uflash:w:$(ProjectDir)/Debug/$(ItemFileName).hex:i I'm not sure but I believe a couple of things are true, and might help. a. There is some, not tested support for opening a TCP connection via avrdude. So if it can open a TCP socket it should be able to talk to your boot loader. b. If it were me, I'd look for a a gpio or some such on the ethernet shield that indicates that a TCP Connection is opened, use that to vector to the boot loader. I have no idea what the ethernet shield is like. I have a project that uses a Roving Networks (now microchip) RN-131 Wifi Module to upload data to a server. It has some GPIO's that indicate the TCP connection status. Matt _______________________________________________ avrdude-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avrdude-dev
