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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #89

    What adapter were you using?

    S 1 Reply Last reply
    0
    • gohanG gohan

      What adapter were you using?

      S Offline
      S Offline
      slt1
      wrote on last edited by
      #90

      @gohan The manufacturer on the bottom of the board says robotdyn.com - lookinf at their website this is the exact one : http://robotdyn.com/catalog/adaptors/socket_adapter_for_nrf24l01_with_regulator_3_3v/

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

        that is missing the decoupling capacitor. Did you solder one yourself?

        S 1 Reply Last reply
        0
        • gohanG gohan

          that is missing the decoupling capacitor. Did you solder one yourself?

          S Offline
          S Offline
          slt1
          wrote on last edited by
          #92

          @gohan I soldered a 4.7uF tantulum capacitor directly onto the nrf24L01. Didn't help !

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

            did you try a bigger one like 47uF? Or maybe that voltage regulator is just rubbish :)

            S 1 Reply Last reply
            0
            • Mark SwiftM Offline
              Mark SwiftM Offline
              Mark Swift
              wrote on last edited by
              #94

              I use these adaptor boards, I presumed they worked okay, what is missing @gohan, are the capacitors present on other adapter boards do you know? BTW the robotdyn stuff seems very well made but I've actually found their NRF's to perform very poorly.

              1 Reply Last reply
              0
              • gohanG gohan

                did you try a bigger one like 47uF? Or maybe that voltage regulator is just rubbish :)

                S Offline
                S Offline
                slt1
                wrote on last edited by
                #95

                @gohan The regulator is an AMS1117 on the one I got here. I will try them again as they are useful for prototyping. It was working fine for a regular sensor sending updates, but got into the issues when using OTA and trying to get some decent speed of updates going. I also thought perhaps it was a dud unit - so i tried a few others and all gave same results. So perhaps a bigger capacitor will do the trick.

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

                  I got some adapters on gearbest (there is only one model available) and they have also caps and so far they are working, but haven't stressed them much because my nrf modules are rubbish and I am waiting for some new ones

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

                    This is my first post in this forum - so hello everyone! And many kudos for all developers and contributors.
                    I am on my way of building distributed sensors and actuators system for astroimagers, and would love to have OTA firmware update possibility. I use nR24L01 radio and each node will be based on Atmega328 working at internal 8MHz and 3V, and have two questions:

                    • which bootlader hex should I write?
                    • does MYSbootloader support programming via serial? I tried several hex files with several fuses combinations and never succeeded to program Atmega328P via serial :(

                    astrojolo.com

                    mfalkviddM 1 Reply Last reply
                    0
                    • J jolo

                      This is my first post in this forum - so hello everyone! And many kudos for all developers and contributors.
                      I am on my way of building distributed sensors and actuators system for astroimagers, and would love to have OTA firmware update possibility. I use nR24L01 radio and each node will be based on Atmega328 working at internal 8MHz and 3V, and have two questions:

                      • which bootlader hex should I write?
                      • does MYSbootloader support programming via serial? I tried several hex files with several fuses combinations and never succeeded to program Atmega328P via serial :(
                      mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #98

                      Welcome @jolo !

                      All you need should be available at https://www.mysensors.org/about/ota
                      If it isn't, feel free to ask away :)

                      Sounds like a cool project. Can you share more details?

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

                        Ok, what I've done so far according to https://www.mysensors.org/about/ota:

                        • connected USBasp to Arduino Pro Mini and set fuses to 16MHz external oscillator (using AVRDUDESS)
                        • then tried to upload MYSbootlader using Arduino IDE (versions 1.6.11 and 1.8.1) but it failed with some "cannot set sck period"
                        • so I uploaded bootloader with AVRDUDESS
                          Question is - at this stage should I be able to program Arduino Pro Mini with serial programmer, or now it can be done only using OTA? Because I am not able to do it with serial programmer and Arduino IDE.
                          Burning bootloader with AVRDUDESS works fine because I changed it many times from original to MYSbootlader, also programming Arduino with precompiled sketch works fine.
                          I will describe my project little bit later, when I will have more nodes working :) Currently I am on stepper motor controller node.

                        astrojolo.com

                        mfalkviddM 1 Reply Last reply
                        0
                        • J jolo

                          Ok, what I've done so far according to https://www.mysensors.org/about/ota:

                          • connected USBasp to Arduino Pro Mini and set fuses to 16MHz external oscillator (using AVRDUDESS)
                          • then tried to upload MYSbootlader using Arduino IDE (versions 1.6.11 and 1.8.1) but it failed with some "cannot set sck period"
                          • so I uploaded bootloader with AVRDUDESS
                            Question is - at this stage should I be able to program Arduino Pro Mini with serial programmer, or now it can be done only using OTA? Because I am not able to do it with serial programmer and Arduino IDE.
                            Burning bootloader with AVRDUDESS works fine because I changed it many times from original to MYSbootlader, also programming Arduino with precompiled sketch works fine.
                            I will describe my project little bit later, when I will have more nodes working :) Currently I am on stepper motor controller node.
                          mfalkviddM Offline
                          mfalkviddM Offline
                          mfalkvidd
                          Mod
                          wrote on last edited by mfalkvidd
                          #100

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

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

                          G 1 Reply Last reply
                          0
                          • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          27

                                          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