-2
\$\begingroup\$

I have implemented an IoT ATMEL AVR Programmer based on protocol stk500, and I successfully connect with it wirelessly and program any ATMEL AVR Programmer through Arduino IDE, My Question is: I need for example the set of commands that are sent from AVRDUDE to my programmer that programs ATMEL AVR ATmega8.

I'm trying to send command from an Android device to program that microcontroller wirelessly.

Thanks,,,,

\$\endgroup\$
  • \$\begingroup\$ I think that if you implemented the protocol, you may be able to find the list of commands. ladyada.net/learn/avr/avrdude.html this is a good start. But it work from PC to avrdude, where the driver would send the commands through the USB to the programmer. How to make a wireless driver is up to you. You may need to rewrite the Avrdude probably... \$\endgroup\$ – thexeno Jul 18 '18 at 13:02
  • \$\begingroup\$ ww1.microchip.com/downloads/en/AppNotes/doc2591.pdf \$\endgroup\$ – Ignacio Vazquez-Abrams Jul 18 '18 at 13:33
  • \$\begingroup\$ Can you use the Arduino IDE? Under File:Preferences turn on Verbose outputs. Then duplicate the messages going from the PC to your programmer, have them come from your Android. \$\endgroup\$ – CrossRoads Jul 18 '18 at 16:21
0
\$\begingroup\$

Documentation on avrdude internal specifics is lacking. Your best bet may be porting the source code (link). However, I would not attempt to port it to Android, it would be quite a lot of work. Instead, cross-compile it to the microcontroller on the programmer (if it's running some Linux OS this should be easy enough), and send from Android only the command-line options.

How to make avrdude recognize the device it is on as the actual programmer itself may be difficult, though achievable with some file piping or symbolic linking. If needs must, you could consider using a secondary micro just to run avrdude.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.