fg71
I got a idea what if there was a option in OpenPLC to include ArduinoOTA.
In other words the first time a user download plc program to Arduino board with WiFi or Enthernet over
a serial connection. Next time the user download the same/updated plc program or different plc program we could do it over the air (OTA).
 
This approach could be useful if we like to download plc program from distance.
 
I have tested this in Arduino IDE with Nano Esp32 and the download speed is much faster compare to serial.
 
So how would this work, custom library are used to enable this functionality the same way modbus tcp is working for specific board. Before we download the plc program to the Arduino board we include some extra headers and specific code that make this functionality possible. And if we have not remove this feature or overwrite it in the flash it will be enabled
next time we download plc program to Arduino board. Its only the first download we most connect the board to serial communication. And if we include this functionality over and over we will be able to do over the air download of plc program.
 
I believe this is possible.
 
I do know that OpenPLC Editor use arduino-cli to upload a firmware to the bootloader.
There is a tool from Arduino that could do the same thing over OTA.
 
What do you think, Thiago and others ??
Reply 1 0
Reply