• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    FOTA tutorial?

    scheduled pinned locked moved Getting Started
    9 posts 3 posters 1.9k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • A offline
      aliasjim
      global: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 topic:replies-to-this-post, 2 last-reply-time reply quote 0
      • G offline
        guille @aliasjim
        global: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 one-reply-to-this-post last-reply-time reply quote 1
        • G offline
          guille @guille
          global: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.

          one-reply-to-this-post last-reply-time reply quote 1
          • jkandasaJ offline
            jkandasa @aliasjim
            global:last-edited-by,

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

            Search firmware in the doc

            one-reply-to-this-post last-reply-time reply quote 0
            • A offline
              aliasjim
              global: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 one-reply-to-this-post last-reply-time reply quote 0
              • G offline
                guille @aliasjim
                global: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 one-reply-to-this-post last-reply-time reply quote 0
                • A offline
                  aliasjim @guille
                  global: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

                  one-reply-to-this-post last-reply-time reply quote 0
                  • A offline
                    aliasjim
                    global: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 one-reply-to-this-post last-reply-time reply quote 2
                    • G offline
                      guille @aliasjim
                      global: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.

                      one-reply-to-this-post last-reply-time reply quote 1
                      • first-post
                        last-post

                      0

                      online

                      644

                      users

                      532

                      topics

                      3.4k

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