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.3pre2 testing

MYSBootloader 1.3pre2 testing

Scheduled Pinned Locked Moved Development
otamyscontrollermysbootloader
73 Posts 25 Posters 30.6k Views 31 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.
  • TetnobicT Tetnobic

    @tekka Thanks for your response
    What are the sign of MYSBootloader in GW log ?
    Can I also see any sign of MYSBootloader in Node Log ?

    I remove OTA firmware features, I now have :

    Starting sensor (RNNNA-, 2.0.0)
    

    but same problem, after receive reboot message I have a "StartiStartiStartiStartiS...." loop :(:(

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

    @Tetnobic No, you won't see anything in the node log - but in the GW log you should see somehting like:

    
    1;255;4;0;0;64000200C803948D0105
    
    TetnobicT 1 Reply Last reply
    0
    • tekkaT tekka

      @Tetnobic No, you won't see anything in the node log - but in the GW log you should see somehting like:

      
      1;255;4;0;0;64000200C803948D0105
      
      TetnobicT Offline
      TetnobicT Offline
      Tetnobic
      wrote on last edited by
      #52

      @tekka Hi, I found my mistake ! You were absolutely right when you said there is no sign of MYSBootloader in my GW log...
      But now I know why :) :
      I use an USBasp Programmer with Arduino IDE for upload my bootloader and my sketch..., and I mistakenly thought that when I upload bootloader then sketch, it keep bootloader.....but NOT, it overwrite bootloader :(
      I fix it by uploading the xxx.with_bootloader.hex file generated by Arduino IDE when compile.

      Sorry for the inconvenience and thank you for your help

      AndurilA 1 Reply Last reply
      1
      • TetnobicT Tetnobic

        @tekka Hi, I found my mistake ! You were absolutely right when you said there is no sign of MYSBootloader in my GW log...
        But now I know why :) :
        I use an USBasp Programmer with Arduino IDE for upload my bootloader and my sketch..., and I mistakenly thought that when I upload bootloader then sketch, it keep bootloader.....but NOT, it overwrite bootloader :(
        I fix it by uploading the xxx.with_bootloader.hex file generated by Arduino IDE when compile.

        Sorry for the inconvenience and thank you for your help

        AndurilA Offline
        AndurilA Offline
        Anduril
        wrote on last edited by
        #53

        @Tetnobic can this be done within the IDE? I have some nodes where I have to upload with ISP and thought to still have the bootloader, but this explains why OTA didn't work afterwards...

        TetnobicT 1 Reply Last reply
        0
        • AndurilA Anduril

          @Tetnobic can this be done within the IDE? I have some nodes where I have to upload with ISP and thought to still have the bootloader, but this explains why OTA didn't work afterwards...

          TetnobicT Offline
          TetnobicT Offline
          Tetnobic
          wrote on last edited by
          #54

          @Anduril I think you can do this without Arduino IDE...
          but how compile you code for generate sketch+bootloader ( the xxx.with_bootloader.hex file) in command line I don't know....
          For upload this file on my ATMega, I use avrdude, the same command line that ardunio IDE use, but change the .hex file...

          1 Reply Last reply
          0
          • TigroenotT Offline
            TigroenotT Offline
            Tigroenot
            wrote on last edited by
            #55

            Tried this bootloader.
            Have two nodes 8MHz internal, two nodes 1MHz. All run beautifully, the OTA firmware update around a minute with binaryButton sketch. But the node startup is around 7-8 seconds. And no problems uploading the sketch via serial.
            I use an UNO as an ASP to burn the bootloader and a simple USB_TTL FTDI converter to upload sketches.

            1 Reply Last reply
            0
            • jerseyguy1996J Offline
              jerseyguy1996J Offline
              jerseyguy1996
              wrote on last edited by
              #56

              This may be a stupid question, but I'm using the mysgateway on a Raspberry Pi as my controller which is described here:

              Building a Raspberry Pi Gateway

              The Raspberry pi runs headless and I do everything through ssh. Is there any way to use MYSBootloader using the mysgateway and initiating the OTA update using the command line?

              RedferneR 1 Reply Last reply
              0
              • RedferneR Offline
                RedferneR Offline
                Redferne
                wrote on last edited by
                #57

                Shall we all join hands and give a warm applause to @tekka for his work and pray that he'll find the time to give us a lovely christmas present. The MYSBootloader 1.3+ pushed to github 😃

                pkuP 1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jacikaas
                  wrote on last edited by
                  #58
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • RedferneR Redferne

                    Shall we all join hands and give a warm applause to @tekka for his work and pray that he'll find the time to give us a lovely christmas present. The MYSBootloader 1.3+ pushed to github 😃

                    pkuP Offline
                    pkuP Offline
                    pku
                    wrote on last edited by
                    #59

                    @tekka pleeeease.... :pray:

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

                      It's been asked that the source is uploaded multiple times over the last year +, I guess it will not happen anytime soon... :disappointed:

                      1 Reply Last reply
                      0
                      • jerseyguy1996J jerseyguy1996

                        This may be a stupid question, but I'm using the mysgateway on a Raspberry Pi as my controller which is described here:

                        Building a Raspberry Pi Gateway

                        The Raspberry pi runs headless and I do everything through ssh. Is there any way to use MYSBootloader using the mysgateway and initiating the OTA update using the command line?

                        RedferneR Offline
                        RedferneR Offline
                        Redferne
                        wrote on last edited by
                        #61

                        @jerseyguy1996

                        You'll need a Controller to update the firmware in the nodes. I'm using MyController.org running on a RPI3 with a MySensors serial Gateway. Works great!

                        1 Reply Last reply
                        0
                        • karlheinz2000K Offline
                          karlheinz2000K Offline
                          karlheinz2000
                          wrote on last edited by
                          #62

                          For all who have problems with serial (debug) output using MYSBootloader:
                          When you burn the 8MHz bootloader, it sets avr fuses to internal 8MHz RC oscillator. This has high tolerance. The serial baudrate was only 108000baud in my case and Arduino IDE did not work.
                          Setting the fuse to use the external quartz/resonator lead to 111000baud, which was close enough to 115200, to get arduino IDE to read serial data.

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            tlustoch
                            wrote on last edited by
                            #63

                            Please, can you provide source code? I need to configure radio pins (default MySensors CE and CS pins 9 and 10 are PWM so I need to connect the radio in other way). Thanks a lot!

                            1 Reply Last reply
                            0
                            • TigroenotT Offline
                              TigroenotT Offline
                              Tigroenot
                              wrote on last edited by
                              #64

                              Please help to debug:
                              0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0-beta
                              4 TSM:INIT
                              4 TSF:WUR:MS=0
                              12 !TSM:INIT:TSP FAIL
                              14 TSM:FAIL:CNT=1
                              16 TSM:FAIL:PDT

                              LorenzoL 1 Reply Last reply
                              0
                              • TigroenotT Tigroenot

                                Please help to debug:
                                0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0-beta
                                4 TSM:INIT
                                4 TSF:WUR:MS=0
                                12 !TSM:INIT:TSP FAIL
                                14 TSM:FAIL:CNT=1
                                16 TSM:FAIL:PDT

                                LorenzoL Offline
                                LorenzoL Offline
                                Lorenzo
                                wrote on last edited by
                                #65

                                @Tigroenot Hi,

                                TSM Transmission
                                TSP Transport
                                PDT Power Down

                                !TSM:INIT:TSP FAIL Error during Transport initialization (Radio)
                                TSM:FAILURE Error on Transmition (of course, you have a radio error)
                                TSM:FAILURE:PDT Radio in Power Down (due to the error)

                                Check your radio cabling. If all ok add a capacitor on radio power pins

                                1 Reply Last reply
                                0
                                • TigroenotT Offline
                                  TigroenotT Offline
                                  Tigroenot
                                  wrote on last edited by
                                  #66

                                  The radio is not wired, it's directly soldered as a chip. I use MySensors Stable Node by @Koresh, but the nrf chips I got from China are probably counterfeit or don't work at all :)

                                  1 Reply Last reply
                                  0
                                  • karlheinz2000K Offline
                                    karlheinz2000K Offline
                                    karlheinz2000
                                    wrote on last edited by
                                    #67

                                    After flasing a node with ISP (bootloader+sketch) the node will not start since the eeprom is emty (forgot to enable eeprom safe). Node needs to get a ID from controller, even if ID is defined in the sketch. After receiving a ID from controller the node starts and uses the ID from sketch.
                                    Any solution to overcome this?

                                    mfalkviddM 1 Reply Last reply
                                    0
                                    • karlheinz2000K karlheinz2000

                                      After flasing a node with ISP (bootloader+sketch) the node will not start since the eeprom is emty (forgot to enable eeprom safe). Node needs to get a ID from controller, even if ID is defined in the sketch. After receiving a ID from controller the node starts and uses the ID from sketch.
                                      Any solution to overcome this?

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

                                      @karlheinz2000 that should not happen. Starting from empty eeprom is normal, that's what all nodes do the first time.

                                      Could you post debug output of the node and the gateway when it fails to use the defined id?
                                      Just to check: the id was defined before including MySensors.h right?

                                      1 Reply Last reply
                                      0
                                      • karlheinz2000K Offline
                                        karlheinz2000K Offline
                                        karlheinz2000
                                        wrote on last edited by
                                        #69

                                        Attached the log file from MYSC. After activating AUTO ID the node starts. No other GW active.
                                        No serial output during this time.
                                        Node ID is defined before including .h.

                                        Node is flashed via ISP (Dragon) with "...with_bootloader.hex".

                                        0_1483653188071_MySensors_20170105-223345.log

                                        tekkaT 1 Reply Last reply
                                        0
                                        • karlheinz2000K karlheinz2000

                                          Attached the log file from MYSC. After activating AUTO ID the node starts. No other GW active.
                                          No serial output during this time.
                                          Node ID is defined before including .h.

                                          Node is flashed via ISP (Dragon) with "...with_bootloader.hex".

                                          0_1483653188071_MySensors_20170105-223345.log

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

                                          @karlheinz2000 I'm not sure I understand you correctly:
                                          With a cleared EEPROM, the bootloader will not know any ID defined in the sketch. Instead, the bootloader will fetch a new ID from the controller and store it in EEPROM. Once the sketch starts it will either overtake this newly assigned ID (if MY_NODE_ID == AUTO) or overwrite and use a static ID (if MY_NODE_ID != AUTO) from now on. Does this answer your question?

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


                                          10

                                          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