FOTA tutorial?
-
Hello
I just (finaly) managed to get my node flashed with the MYSbootloader. Is there a tutorial somewhere on how to use MYController to do OTA updates? I have looked around but can't really find anything.
I tried to load my HEX file under utilities=>firmwares but i cant choose anything for type or version and i cant save the file. Can anyone give me some direction? Thanks
-
-
You can add versions, like "1.0", and type "whatever node type you like".
-
Then add firmware. Upload your .hex
-
On the specific node, go to EDIT and assign this firmware.
-
Reboot. By hand or by command.
If you use MQTT you can watch as the new fw is uploading.
-
-
@guille One thing that took me a while to learn, when in the future you want to upgrade the firmware, there is no need to create a new version. Just edit the same firmware, upload the new .hex, and it will detect that it is new.
-
@aliasjim We have outdated document, but still it has some support for firmware.
Search
firmware
in the doc -
Thanks you guys for the quick response. Does anyone happen to know why my node freezes with mysbootloader flashed to it?
-
@aliasjim Is it the correct bootloader? I mean check the clock frecuency 8/16MHz, internal vs external resonator/xtal. Also check the fuses, are you using avrdudess to burn the bootloader? I had way better results with it than with arduino ide.
-
@guille Hello, i used this tutorial to flash the bootloader : https://youtu.be/zjAdDY2JjBk (last part is about the mysbootloader). This could allso be the problem, i believe the arduino pro mini uses a 8MHz cristal but i can only choose from 16MHz cristal or (i think internal) 8/16MHz internal oscillator. If im right i have to recompile the bootloader for 8MHz cristal or addapt the fuses to use internal 8MHz oscillator. I burned the bootloader using arduino ide like in the video. To flash with avrdudess i just input the path to the hex file under flash and write the bootloader?
Thanks for the help
-
I got the bootloader up and running now. got a bootloader compiled for the right RFchannel and 8MHz Xtal. Thanks for all the help
-
@aliasjim That's great!
Just for the record, I compiled all the bootloaders here:
https://github.com/guillebot/MYSensors-Bootloaders
all the channels, for 1, 8 and 16MHz.