Develop hybrid device Android + Arduino. Brains in Android by Arduino - as usual. The USB connection using a ready-made library usb-serial-for-android. In General, the transmission of data here and there no problems.
How would using this link to upload sketches in Arduino? It is necessary to update the firmware of ready-made devices without any actions from the user.
Know that there is a project like the Arduino IDE for Android. So to upload sketches from Android to Arduino via USB it is possible in practice.
Question - how do I make my bike and implement it in your Android app?
Where to read, what to watch?
As I understand it, I first have to send a reset signal on the Arduino by USB, and then try to send sketchy. That's exactly how it should be done, what is the Protocol for the data, as it does, for example, avrdude itself?
Here, he found something similar in the answer
Avrdude Arduino bootloader using stitches (sewn into the microcontroller) using STK500 Protocol to upload the new sketches. Here is the documentation.
Apparently, using this Protocol can upload the sketch to Arduino from Android...
And here's the STK500 Java...
Read the old bootloader for AVR. There are thousands of implementations thereof.
>As I understand it, I first have to send a reset signal to the Arduino via USB, and then try >to send sketchy. That's exactly how it should be done, what is the Protocol for the data, as it does, >for example, avrdude itself?
Maybe something I do not stay about Arduino, because they can be thousands of modifications, but avrdude cannot directly reprogram the microcontroller. Although if you are used to USB FT3232 crystals (like in older versions of Arduino FT232 was), then perhaps programming using the SPI interface. If you know a way to get avrdude to flash the Arduino, this document may be useful to you: http://www.atmel.com/Images/doc0943.pdf
Although to read this one too http://www.atmel.com/Images/doc1644.pdf