• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    FOTA tutorial?

    Scheduled Pinned Locked Moved Getting Started
    9 Posts 3 Posters 1.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      aliasjim
      last edited by

      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

      G jkandasaJ 2 Replies Last reply Reply Quote 0
      • G Offline
        guille @aliasjim
        last edited by

        @aliasjim

        1. You can add versions, like "1.0", and type "whatever node type you like".

        2. Then add firmware. Upload your .hex

        3. On the specific node, go to EDIT and assign this firmware.

        4. Reboot. By hand or by command.

        If you use MQTT you can watch as the new fw is uploading.

        G 1 Reply Last reply Reply Quote 1
        • G Offline
          guille @guille
          last edited by

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

          1 Reply Last reply Reply Quote 1
          • jkandasaJ Offline
            jkandasa @aliasjim
            last edited by

            @aliasjim We have outdated document, but still it has some support for firmware.

            Search firmware in the doc

            1 Reply Last reply Reply Quote 0
            • A Offline
              aliasjim
              last edited by

              Thanks you guys for the quick response. Does anyone happen to know why my node freezes with mysbootloader flashed to it?

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                guille @aliasjim
                last edited by

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

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  aliasjim @guille
                  last edited by

                  @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

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    aliasjim
                    last edited by

                    I got the bootloader up and running now. got a bootloader compiled for the right RFchannel and 8MHz Xtal. Thanks for all the help

                    G 1 Reply Last reply Reply Quote 2
                    • G Offline
                      guille @aliasjim
                      last edited by

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

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post

                      0

                      Online

                      587

                      Users

                      529

                      Topics

                      3.4k

                      Posts
                      Copyright © 2015-2025 MyController.org | Contributors | Localization