Open goetzvr opened 2 years ago
@goetzvr I saw that you are working on this feature in your senseBox-bike-Arduino/OTA branch.
Well in principle it works. (See https://github.com/goetzvr/senseBox-bike-Arduino/blob/OTA/README.md#upload-via-overtheair-ota)
However, I do not like the current versioning scheme which is a simple increment counter. One other issue might be to provide a simple http-Server to serve the files.
One potential TODO could be to provide a
I'm a bit tired of opening the Box every time I want to upload a new Firmware. So I started to implement a OverTheAir Update wich looks for a new firmware version and a corresponding version of my BIKE.CFG.
The data is loaded from an Webserver, port and path combination like http://raspberrypi:8575/ota/sensBoxBIke/. It then should try to find a
<sensebox-id>-Vx.bin
and<sensebox-id>-Vx.cfg
. The CFG goes on the SD card, the BIN into InternalStorage the device should the load the new Firmware and restart. The Version x is to be maintained in the sketch, the update process looks for x+1.This could also be helpful for mass deployment / update.
I would send an PR, once I'm done.