Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. MYSBootloader 1.3.0-beta.3

MYSBootloader 1.3.0-beta.3

Scheduled Pinned Locked Moved Development
182 Posts 44 Posters 59.4k Views 42 Watching
  • 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.
  • mfalkviddM mfalkvidd

    @jolo yes, MYSbootlader supports only ota. No serial.

    I have updated the ota page to mention the lack of serial.

    G Offline
    G Offline
    gonzalonal
    wrote on last edited by
    #101

    @mfalkvidd actually looking at the code of mysbootloder, it does support STK500 protocol. I haven't test if it really works...maybe it doesn't.

    mfalkviddM 1 Reply Last reply
    0
    • G gonzalonal

      @mfalkvidd actually looking at the code of mysbootloder, it does support STK500 protocol. I haven't test if it really works...maybe it doesn't.

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #102

      @gonzalonal it did not a while ago according to this, but that might have changed. Maybe @tekka can shed a light?

      1 Reply Last reply
      0
      • tekkaT Offline
        tekkaT Offline
        tekka
        Admin
        wrote on last edited by
        #103

        @mfalkvidd The most recent MYSBootloader supports OTA and serial uploads via STK500, see here: https://github.com/mysensors/MySensorsBootloaderRF24/tree/development

        mfalkviddM 1 Reply Last reply
        0
        • tekkaT tekka

          @mfalkvidd The most recent MYSBootloader supports OTA and serial uploads via STK500, see here: https://github.com/mysensors/MySensorsBootloaderRF24/tree/development

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #104

          @tekka thanks.
          I did look there, but didn't find anything that I understood was related to serial. I also looked at the list of commit messages but none of them mentions anything about added support.

          Anyway, thanks for clarifying. I'll update the ota page again.

          1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #105

            Does that work for both nrf24 and rfm69?

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jolo
              wrote on last edited by jolo
              #106

              Many thanks for help - today I made it work :) Here are my steps that worked for me:

              • I used MYSController 1.0.0 beta, took bootloader MYSBootloaderV13pre.hex and uploaded to Arduino Mini Pro with AVRDUDESS and USBasp programmer
              • then uploaded serial gateway sketch to another Mini Pro
              • attached nR24L01+ radios to both
              • connected MYSController, configured serial connection and all just started to work
              • then uploaded simple DHT sketch, edited csv file in MYSController and selected it for OTA FW update

              After less than minute new FW was already at the node and it started to send data. I am very happy :) I played with Arduino projects for several years, but this stuff you have made is absolutely amazing! Now time for some real nodes - first one will be stepper controller for telescope focuser.

              0_1501268069710_mysboot.jpg
              0_1501268078807_mysboot2.jpg

              astrojolo.com

              1 Reply Last reply
              3
              • J Offline
                J Offline
                jolo
                wrote on last edited by
                #107

                It still works fine - however I have one more question, maybe stupid :) About RF channels. I use nR24L01+ radios at default channel 76, however for final solution I would like to switch to some higher freq. Does precompiled bootlader work only at this default channel 76? So if I would like to switch to channel 101 I need to compile bootloader with this setting? Or there is some magic behind that makes it work some other way?

                astrojolo.com

                tekkaT 1 Reply Last reply
                0
                • J jolo

                  It still works fine - however I have one more question, maybe stupid :) About RF channels. I use nR24L01+ radios at default channel 76, however for final solution I would like to switch to some higher freq. Does precompiled bootlader work only at this default channel 76? So if I would like to switch to channel 101 I need to compile bootloader with this setting? Or there is some magic behind that makes it work some other way?

                  tekkaT Offline
                  tekkaT Offline
                  tekka
                  Admin
                  wrote on last edited by
                  #108

                  @jolo Glad to hear that :) re RF24 channel: yes, you need to change and recompile the bootloader for different communication settings. See here: https://github.com/mysensors/MySensorsBootloaderRF24/blob/development/MYSBootloader.c#L45-L51

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    moskovskiy82
                    wrote on last edited by
                    #109

                    Really want to try FOTA with MYSBoatloader but a little bit confused. First - do i have to burn the fuses (i'm using a chinese arduino mini pro 16Mhz) or can simply download MYSBootloader_16MHz.hex from dev brach and i'm good to go?

                    Another thing - i'm using an MQTT gateway attached to RPi3. Don't really want to change the gateway type - so is there a way to do OTA update? I have a spare UNO which i can connect to a notebook.

                    1 Reply Last reply
                    0
                    • gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #110

                      It was mentioned in a previous thread that mycontroller can do fota also through mqtt

                      M 1 Reply Last reply
                      0
                      • gohanG gohan

                        It was mentioned in a previous thread that mycontroller can do fota also through mqtt

                        M Offline
                        M Offline
                        moskovskiy82
                        wrote on last edited by moskovskiy82
                        #111

                        @gohan Excellent. Searched through the thread but couldn't find any mentions how it can be done via mqtt What about the fuses?

                        1 Reply Last reply
                        0
                        • gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #112

                          Just try using mycontroller, the procedure should be the same as the ethernet gateway

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            moskovskiy82
                            wrote on last edited by
                            #113

                            Yes thank you for the tip! Mycontroller works.
                            For Mini Pro - no fuses are needed. Just download the hex - rename and flash.
                            What about the nano?
                            Looking at boards.txt i see only two difeerences

                            Nano
                            nano.menu.cpu.atmega328.bootloader.low_fuses=0xFF
                            nano.menu.cpu.atmega328.bootloader.extended_fuses=0xFD

                            Mys
                            proMYSBL.bootloader.low_fuses=0xF7
                            proMYSBL.bootloader.extended_fuses=0x06

                            But at the same time PRO mini is same as nano... So can also flash straight away?

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              moskovskiy82
                              wrote on last edited by
                              #114

                              Nano also doesn't need any fuses. So everything works. Except to begin the flash procedure i have to unplug and plug the node. Is this intended behaviour? Otherwise i only see in MQTT one line of code and no response from node

                              1 Reply Last reply
                              0
                              • gohanG Offline
                                gohanG Offline
                                gohan
                                Mod
                                wrote on last edited by
                                #115

                                Is the node doing any kind of sleep?

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  moskovskiy82
                                  wrote on last edited by
                                  #116

                                  No it's powered off mains so no sleep functions added

                                  1 Reply Last reply
                                  0
                                  • gohanG Offline
                                    gohanG Offline
                                    gohan
                                    Mod
                                    wrote on last edited by
                                    #117

                                    I think you have to issue a reboot node from the mycontroller or myscontroller to have the OTA start

                                    M 1 Reply Last reply
                                    0
                                    • gohanG gohan

                                      I think you have to issue a reboot node from the mycontroller or myscontroller to have the OTA start

                                      M Offline
                                      M Offline
                                      moskovskiy82
                                      wrote on last edited by
                                      #118

                                      @gohan So is it first reboot. Or start flashing - reboot?

                                      J 1 Reply Last reply
                                      0
                                      • gohanG Offline
                                        gohanG Offline
                                        gohan
                                        Mod
                                        wrote on last edited by
                                        #119

                                        You assign firmware to upload to node and then you send a reboot, if I remember correctly

                                        1 Reply Last reply
                                        1
                                        • M moskovskiy82

                                          @gohan So is it first reboot. Or start flashing - reboot?

                                          J Offline
                                          J Offline
                                          jkandasa
                                          Plugin Developer
                                          wrote on last edited by
                                          #120

                                          @moskovskiy82 If you use MyController, Yes, you should assign the firmware for the node and send reboot.

                                          M 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          7

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular