💬 FOTA (Wireless Programming)
-
Is it possible to do FOTA from my raspberry pi (serial gateway + domoticz)?
As it is now I move the gateway from the rpi to a windows pc running MYSController. It would be nice to avoid this step.
@arraWX you can create a Ethernet gateway in raspberry pi and connect MYScontroller to you raspberry pi gateway.
See instructions to create raspberrypi ethernet gateway on https://www.mysensors.org/build/raspberry
From there you can perform FOTA in MYScontroller. -
@arraWX you can create a Ethernet gateway in raspberry pi and connect MYScontroller to you raspberry pi gateway.
See instructions to create raspberrypi ethernet gateway on https://www.mysensors.org/build/raspberry
From there you can perform FOTA in MYScontroller.@Viciousman Thank you!
How do I create a Ethernet gateway?
Will I have to build this: https://www.mysensors.org/build/ethernet_gateway
or
Will I have to do some kind of configuration on the rpi and continue using my serial gateway?
-
@Viciousman Thank you!
How do I create a Ethernet gateway?
Will I have to build this: https://www.mysensors.org/build/ethernet_gateway
or
Will I have to do some kind of configuration on the rpi and continue using my serial gateway?
@arraWX I find more simple to simply connect nrf24 to raspberry pi as instructed in https://www.mysensors.org/build/raspberry
But you can also build the Ethernet gateway with W5100. -
Dear all!
I have an mysensors ethernet gateway and nodes with nrf24 . I have an openhab2 controller. Could i use the above solution to program my nodes over the air through my current gateway? So i write my sketch on windows arduino and send it through my gateway to the node? Or i have to connect my computer direct to nodes over air?
-
You can use myscontroller to connect to the ethernet gateway and assign the firmware to upload for each node
-
You can use myscontroller to connect to the ethernet gateway and assign the firmware to upload for each node
-
Myscontroller works only as ethernet. Mycontroller should also work with mqtt gateway but I'm not sure about serial.
@gohan Ook! Are you talking about installing MysController on Raspberrypi (I think not)? If you are going to run it on Windows and connect to Raspi Ethernet gateway remotely then using the the same option we can remotely connect to a serially connected gateway on Raspberrypi (using a USB port) from MysController running on Windows.
Are there steps somewhere to install MysController on Raspi [some Windows pre-installer running on Debian Linux]? I remember reading some Mysensors posts here a couple of years back(!!!), but cant seem to locate it now...
-
@scalz do you have any specific reason why you use avrdudes to burn the fuses and burn bootloader separately, instead of using some board definitions matching the bootloader and using the burn bootloader method for Arduino interface ? I think that method is far more user intuitive for the average MySensors user ?
-
Using FOTA in myscontroller works only occasionally for me. Sometimes it works fine. But most often I get the following messages and nothing more happens.

The node is a sensebender micro. Gateway is rpi ethernet.
Has anyone experienced something similar? Anyone knows how to solve the problem?
EDIT: Problem solved. Reading this post I now understand that in order to get new fw into the node one has to update the sketch, refresh the repo in MysController and assign it the node.
-
Once I managed to burn the sensbender micro bootloader to the pro mini, how do I connect the external flash? Just connect it to pins D10 to D13? Is this the correct way of managing the fota in the sketch before the sleep?
@gohan I recently had some problems with fota and the sensebender sketch you refer to. In this thread @tekka suggested me to enable smart sleep. I used
smartSleep(MEASURE_INTERVAL);It seems that the smartSleep function has a "built in" MY_SMART_SLEEP_WAIT_DURATION_MS (which defaults to 500 ms). This makes the OTA_WAIT_PERIOD in the sensebender sketch redundant. I deleted it from the sketch.
FOTA now works successfully with my sensebender boards.
-
Hi guys! I burned mysbootloader but now rs485 doesn't work.. It's normal situation ? A would like to know if is possible to remote upload firmware via rs485 instead of radio. Thanks! Luca