openhab-addons icon indicating copy to clipboard operation
openhab-addons copied to clipboard

Support for Firmware OTA update

Open Adesin-fr opened this issue 7 years ago • 6 comments

MySensors allows the user to update the firmware of a node over the air.

It would be nice if we could implement this feature !

Adesin-fr avatar Sep 21 '17 13:09 Adesin-fr

I was thinking about it last year! Yes, I agree with you, this feature would be fantastic. Unfortunately, I realized it is not easy to implement. We could keep this issue open as a reminder. In my free time I'll try to have a look at MySensors OTA documentation.

andreacioni avatar Sep 21 '17 14:09 andreacioni

I've read pretty much the OTA documentation and we can discuss it if you want to work together on it. I thinks it's pretty easy (at least outside openhab)

Adesin-fr avatar Sep 21 '17 14:09 Adesin-fr

Wonderful! Sure, we can work together, I have some developing experience with openhab bindings. However, I must read something about OTA on my own. Can you suggest me anything to read on this argument?

andreacioni avatar Sep 21 '17 16:09 andreacioni

Yes of course : First, the MYSBootloader part, which a bit explains how the stuff works : https://github.com/mysensors/MySensorsBootloaderRF24 Especially the MySensorsBootloader.h which does all the work.

Then, the mysensorsController sample, a big script in JS which also demonstrate how do OTA works : https://github.com/mysensors/MySensorsSampleController/blob/master/NodeJsController.js You will see how the packets are sent to the slave device bootloader.

Adesin-fr avatar Sep 21 '17 16:09 Adesin-fr

Thanks for the hints! NodeJsController.js is very plenty of information. Now I've to setup some node and install on it the MS bootloader in order to do some basic tests.

andreacioni avatar Sep 22 '17 23:09 andreacioni

Hey guys. Any idea about this?

I think that using mqtt as I am, it would be easier to make a simple script to answer the FOTA requests outside OpenHAB.

What do you think?

It would resolve OTA for all the controllers (via MQTT).

guillebot avatar Jan 18 '19 21:01 guillebot