sensebox / senseBox-bike-Arduino

Repository which holds the Arduino Sketch for the senseBox:bike
MIT License
2 stars 2 forks source link

OverTheAir Update #10

Open goetzvr opened 2 years ago

goetzvr commented 2 years ago

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.

johnjohndoe commented 2 years ago

@goetzvr I saw that you are working on this feature in your senseBox-bike-Arduino/OTA branch.

goetzvr commented 2 years ago

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 .cfg file for the local WLAN setttings.