Serial Monitor with ESP-8266 OTA Port

Hi,

I think many developers would find it handy to be able to still be able to run the serial monitor when an OTA ethernet address is selected for the 'port'.

At present, when you are working on a sketch which your are uploading via OTA, every time you do an update and need to rum the Monitor, you have to change the port back to a physical comms port, then remember to switch it back to the OTA address before your next update.

When you select an ESP-8266 board, the tools menu has several additional options (clock freq etc). What I'd suggest is replacing the 'port' property selection with two properties "Upload Port" and "Monitor Port", with 'Monitor Port' defaulting to the same value as 'Update Port', except when an OTA address is selected for 'Update Port', in which case 'Monitor Port' initially defaults to the last serial port used, which you can change if required.

This feature would enhance productivity by allowing repeated [code change -> update -> debug] cycles to be performed without having to constantly change to port back and forth between the OTA address and the comms port.

Thanks,

Paul

1 Like

you can use any Terminal application to monitor the serial port.

1 Like

I used OTA once and then shifted to a more global solution.

Move a step away from OTA and use HTTP.update.

you can then either locally serve up the bin files or put them on a server.

it is a joy to see 50 esp's updating at the same time.

Hv.

1 Like

Hiddenvision:
I used OTA once and then shifted to a more global solution.

Move a step away from OTA and use HTTP.update.

you can then either locally serve up the bin files or put them on a server.

it is a joy to see 50 esp's updating at the same time.

Hv.

How did you do it? Any information?

1 Like

gfunay:
How did you do it? Any information?

https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html

1 Like

Great link J,

https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html

Seems like it has far more info than before.

A great little addon for the IDE would be a simple port 80 web/file server.

I wrote a VB program years ago to serve up webpages (simple-server) and used that loads of times to do firmware updates, As well as a little bit of PHP on a real web server to do the same.

I also do all the spiffs file storage updates via http and that is just so much faster than writing the complete data folder each time a files is changed.

Happy to make the programs and example update code available if needed.

1 Like