0

Since the ESP8266 can self program on Wifi, can we use it to program Arduino too with the binary sent via Wifi? My Arduino is connected with Reset + RX + TX pins and shared power. Has this been already done?

1 Answer 1

0

If you use Linux, you can use a simple Telnet to Serial sketch in esp8266 to upload with avrdude to Uno over esp8266. Only on Linux can avrdude use telnet to do a serial upload.

For upload from IDE on any OS there is JeeLabs ESP Link firmware for the esp8266.

6
  • plenty of ways on other os to patch things so arduino looks to be connected over serial as far as avrdude is concerned- for example com0com makes virtual serial ports... Commented Mar 17, 2022 at 23:24
  • @Abel, did you test it? Commented Mar 18, 2022 at 5:52
  • haven't done it for avrdude yet, but i did have the need to do something similar for a serial user interface program to connect to a stream that had to be encapsulated by ssh first. Commented Mar 18, 2022 at 11:54
  • tested with pi in the middle (avrdude-com0com-customExe-pi-customProgram-uno). gotchas found: bootloader baud, and stable re-entry to bootloader. no reason to believe any other program attempting this over serial would behave differently. i implemented re-entry via usb port poweroff and poweron via rpi uhubctl, but it might be possible with hardware (reset pin), a modified bootloader, or crashing? the main on command (casting 0 to a function pointer and calling it). Commented Mar 20, 2022 at 13:43
  • 1
    i didnt use your sketch or telnet. Just wanted to prove you are not limited to avrdude linux to get the job done- for me avrdude thought it was talking over serial and uploaded just fine. Can make a connection between avrdude and the nets with other programs. Commented Mar 20, 2022 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.