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

FOTA tutorial?

Scheduled Pinned Locked Moved Getting Started
9 Posts 3 Posters 1.5k 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 24 Jan 2019, 15:57

    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 J 2 Replies Last reply 24 Jan 2019, 16:03 Reply Quote 0
    • G Offline
      guille @aliasjim
      last edited by 24 Jan 2019, 16:03

      @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 24 Jan 2019, 16:06 Reply Quote 1
      • G Offline
        guille @guille
        last edited by 24 Jan 2019, 16:06

        @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
        • J Offline
          jkandasa @aliasjim
          last edited by 24 Jan 2019, 16:08

          @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 24 Jan 2019, 16:30

            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 24 Jan 2019, 22:52 Reply Quote 0
            • G Offline
              guille @aliasjim
              last edited by 24 Jan 2019, 22:52

              @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 24 Jan 2019, 23:07 Reply Quote 0
              • A Offline
                aliasjim @guille
                last edited by 24 Jan 2019, 23:07

                @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 25 Jan 2019, 12:35

                  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 25 Jan 2019, 18:13 Reply Quote 2
                  • G Offline
                    guille @aliasjim
                    last edited by 25 Jan 2019, 18:13

                    @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
                    4 out of 9
                    • First post
                      4/9
                      Last post

                    0

                    Online

                    618

                    Users

                    531

                    Topics

                    3.4k

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