tobof / openhab-addons

The next-generation open Home Automation Bus (openHAB)
Eclipse Public License 2.0
39 stars 30 forks source link

Support for Firmware OTA update #96

Open Adesin-fr opened 6 years ago

Adesin-fr commented 6 years ago

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

It would be nice if we could implement this feature !

andreacioni commented 6 years ago

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.

Adesin-fr commented 6 years ago

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)

andreacioni commented 6 years ago

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?

Adesin-fr commented 6 years ago

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.

andreacioni commented 6 years ago

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.

guillebot commented 5 years ago

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).