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 pre-release & MYSController 1.0.0beta

MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

Scheduled Pinned Locked Moved Development
otamyscontrollermysbootloader
198 Posts 53 Posters 85.1k Views 58 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.
  • abmantisA abmantis

    @Anduril Haven't tried serial yet. The old bootloader seemed indeed a bit faster. I also noticed that if I touch pin 10 with my finger, it gets really fast! It just sends the packages continuously without stoping. As soon as I stop touching pin 10, it pauses.

    The gw and the node were like 1 meter, so it is not a distance problem. Also tried moving them closer and apart.

    yd kimY Offline
    yd kimY Offline
    yd kim
    wrote on last edited by
    #135

    @abmantis Interesting. Can you let me know a little bit further detail?
    You mean Arduino pro mini pin 10? That pin is connected to CSN on NRF24L01.
    I'm keen to find the issue why it get slow.. It took 20-30minutes to upload new firmware....

    abmantisA 1 Reply Last reply
    0
    • yd kimY yd kim

      @abmantis Interesting. Can you let me know a little bit further detail?
      You mean Arduino pro mini pin 10? That pin is connected to CSN on NRF24L01.
      I'm keen to find the issue why it get slow.. It took 20-30minutes to upload new firmware....

      abmantisA Offline
      abmantisA Offline
      abmantis
      wrote on last edited by abmantis
      #136

      @yd-kim Yes, just touch Arduino's pin 10. Dunno if it is a particularity with this Arduino or radio. It updates the node in about 20 seconds!

      1 Reply Last reply
      0
      • tekkaT tekka

        @Mickey Ok, I see, this is something related to the internal checksum, need to adjust that. In short: the bootloader doesn't hand over to the sketch

        J Offline
        J Offline
        Jan Hicl
        wrote on last edited by Jan Hicl
        #137

        Hi @tekka, I'm having the very same issue as @Mickey so I just wanted to ask if there is any workaround to that or if happen to make the adjustment to the bootloader. Thanks a lot! Original comment

        tekkaT 1 Reply Last reply
        0
        • J Jan Hicl

          Hi @tekka, I'm having the very same issue as @Mickey so I just wanted to ask if there is any workaround to that or if happen to make the adjustment to the bootloader. Thanks a lot! Original comment

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

          @Jan-Hicl This has been fixed - did you try the most recent version from github?

          J 1 Reply Last reply
          0
          • tekkaT tekka

            @Jan-Hicl This has been fixed - did you try the most recent version from github?

            J Offline
            J Offline
            Jan Hicl
            wrote on last edited by
            #139

            Hi @tekka and thanks for getting back to me! I tried the latest version however with no success. The node that I update is still marked as "Booting" even though I upload Blink.hex. Strangely enough, the led is blinking as it's supposed to blink and if I request presentation the node replies with correct sketch name but then it goes back to Booting. I'm using Arduino IDE 1.8.1, AVRdude v6.1 and MYScontroller v1.0.0 beta (build 3314). I'm using Arduino mini pro, 3V3, 8MHz. I have 5 different nodes but all of them with the same behavior so it does not seem as an HW issue.

            Here is my log from the upload of Blink.hex: http://pastebin.com/9grgHb27 Would you have any idea how could I fix that? Thanks!

            tekkaT 1 Reply Last reply
            0
            • J Jan Hicl

              Hi @tekka and thanks for getting back to me! I tried the latest version however with no success. The node that I update is still marked as "Booting" even though I upload Blink.hex. Strangely enough, the led is blinking as it's supposed to blink and if I request presentation the node replies with correct sketch name but then it goes back to Booting. I'm using Arduino IDE 1.8.1, AVRdude v6.1 and MYScontroller v1.0.0 beta (build 3314). I'm using Arduino mini pro, 3V3, 8MHz. I have 5 different nodes but all of them with the same behavior so it does not seem as an HW issue.

              Here is my log from the upload of Blink.hex: http://pastebin.com/9grgHb27 Would you have any idea how could I fix that? Thanks!

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

              @Jan-Hicl The blink sketch is somewhat special - it only blinks the built-in LED until the watchdog kicks in and resets the node. What happens if you upload one of your sketches? Please post the full debug log + source. Thanks

              1 Reply Last reply
              0
              • yd kimY Offline
                yd kimY Offline
                yd kim
                wrote on last edited by
                #141

                I did success with MySBootloader 1.3 beta 3 (https://github.com/mysensors/MySensorsBootloaderRF24 )
                It works both arduino and OTA firmware upgrade however it takes longer to boot up (means switch to firmware) about 3-5seconds.
                I'm using MYSensors 2.1.0 and MYController (http://www.mycontroller.org) on arduino pro mini 8Mhz 3.3V.

                How many sensor you try at the same time?
                From memory When I do firmware update for 3-4 sensors, I have to change "Tx message processing delay" to 300ms.
                If it's shorter than 300ms, keep rebooting some stage.

                I didn't use MYScontroller but probably it has similar setting.

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  Jan Hicl
                  wrote on last edited by
                  #142

                  Thanks @tekka for a prompt response!

                  I tried to upload https://github.com/mysensors/MySensors/blob/master/examples/AirQualitySensor/AirQualitySensor.ino
                  here is the log: http://pastebin.com/Tc5vhEnF
                  You can see that the node is successfully running with TimeReporter but AirQualitySensor cannot make it from booting. However, this is happening even with highly modified AirQualitySensor sketch or some of my custom sketches. In the log, you can also see that if I request presentation of that node it replies with correct sketch name.

                  Please let me know if you need some more info. Thanks in advance!

                  tekkaT 1 Reply Last reply
                  0
                  • J Jan Hicl

                    Thanks @tekka for a prompt response!

                    I tried to upload https://github.com/mysensors/MySensors/blob/master/examples/AirQualitySensor/AirQualitySensor.ino
                    here is the log: http://pastebin.com/Tc5vhEnF
                    You can see that the node is successfully running with TimeReporter but AirQualitySensor cannot make it from booting. However, this is happening even with highly modified AirQualitySensor sketch or some of my custom sketches. In the log, you can also see that if I request presentation of that node it replies with correct sketch name.

                    Please let me know if you need some more info. Thanks in advance!

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

                    @Jan-Hicl Please also post the full debug log of the node (running AirQualitySensor).

                    J 1 Reply Last reply
                    0
                    • tekkaT tekka

                      @Jan-Hicl Please also post the full debug log of the node (running AirQualitySensor).

                      J Offline
                      J Offline
                      Jan Hicl
                      wrote on last edited by
                      #144

                      @tekka here is the AirQualitySensor node log: http://pastebin.com/XWfFCbUx

                      tekkaT 1 Reply Last reply
                      0
                      • J Jan Hicl

                        @tekka here is the AirQualitySensor node log: http://pastebin.com/XWfFCbUx

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

                        @Jan-Hicl The GW and node logs are inconsistent: your GW log shows a rebooting node 1 - the node log shows a running node trying to establish the uplink. Do you have logs from GW and node taken simultaneously?

                        J 1 Reply Last reply
                        0
                        • tekkaT tekka

                          @Jan-Hicl The GW and node logs are inconsistent: your GW log shows a rebooting node 1 - the node log shows a running node trying to establish the uplink. Do you have logs from GW and node taken simultaneously?

                          J Offline
                          J Offline
                          Jan Hicl
                          wrote on last edited by
                          #146

                          Sorry @tekka, should've sent this in the first post. Here is AirQuality sensor node log: http://pastebin.com/9MVtfRNV
                          Here is gateway log: http://pastebin.com/QNpmBz4m
                          Both of them logged simultaneously. Node Id I'm updating is 1. In the log you can again see that TimeReporter is working well before the flashing. Please let me know if there is anything I can provide you with in order to solve this... Thanks!

                          1 Reply Last reply
                          0
                          • Nicolas CharrierN Offline
                            Nicolas CharrierN Offline
                            Nicolas Charrier
                            wrote on last edited by
                            #147

                            Hello
                            I succed to program booloader but y can not add my sketch to arduino with serial or USB line.
                            Is is activated by default?
                            Thanks.

                            ahmedadelhosniA 1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              Jan Hicl
                              wrote on last edited by
                              #148

                              Hi @tekka any update what could be wrong with the upload? Any advice on a workaround? Thanks!

                              tekkaT 1 Reply Last reply
                              0
                              • J Jan Hicl

                                Hi @tekka any update what could be wrong with the upload? Any advice on a workaround? Thanks!

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

                                @Jan-Hicl The upload via bootloader is ok (the sketch is running - based on your debug log) - so no issue here.
                                However, you may have some issues with the CPU frequency (wrong board selected when compiling?) - there are scrambled chars in the debug output:

                                Starting óensor (RNNNA-, 2.0.0)
                                TSM:INIT
                                TSM:RADIO:OK
                                TSP:ASSIGNID:OK (ID=1)
                                TSM:FPAR
                                TSP:MSG:ÓEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                TSP:MSG:READ 0-0-1 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                                TSP:MSG:FPAR RES (IÄ=0, dist=0)
                                TSP:MSG:PAR OK (ÉD=0, dist=1)
                                TSM:FPAR:OK
                                TSM:ID
                                TSM:CHKID:OË (ID=1)
                                TSM:UPL
                                TSP:PING:SEND (dest=0)
                                TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
                                TSP:CHKUPL:FAIL (hops=255)
                                !TSM:UPL:FAIÌ
                                TSM:FPAR
                                TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                TSP:MSG:READ 2-2-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                TSP:MSG:BC
                                TSP:MSG:ÒEAD 0-0-1 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                                ÔSP:MSG:FPAR RES (ID=0, dist=0)
                                TSP:MSG:PAR OK (ID=0, diót=1)
                                TSM:ÆPAR:OK
                                
                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  Samuel235
                                  Hardware Contributor
                                  wrote on last edited by Samuel235
                                  #150

                                  How do we go about compiling this for 8MHz crystal (Internal and External), i'm sure this has already been asked but I can't seem to search through this post very efficiently... Sorry if it has been covered already, just a link back or something would probably suit me if it has been :)

                                  MySensors 2.1.1
                                  Controller - OpenHAB (Virtual Machine)
                                  Gateway - Arduino Mega MQTT Gateway W5100

                                  1 Reply Last reply
                                  0
                                  • R Offline
                                    R Offline
                                    romeo01
                                    wrote on last edited by romeo01
                                    #151

                                    Nice job, the last bootloader seems to run in good conditions.

                                    I use MySensors 2.2.0 beta, MYSController 1.0.0 (3314) and the last version MYSbootloader 1.3.0-beta.4 (https://github.com/mysensors/MySensorsBootloaderRF24)

                                    Update, flash, firmware via OTA is ok.

                                    But 1 problem occurs when a node reboot.
                                    I tried to isolate the problem, so I think that's arround the presentation request.

                                    When I click on "request presentation", I got it

                                    http://hpics.li/93e8861

                                    and below the debug output (via serial) of the node

                                    70437 TSF:MSG:READ,0-0-1,s=0,c=3,t=19,pt=0,l=1,sg=0:0
                                    70445 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
                                    70453 TSF:MSG:READ,0-0-1,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
                                    70460 TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.2.0-beta
                                    70469 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
                                    70497 TSF:MSG:READ,0-0-1,s=255,c=3,t=6,pt=0,l=1,sg=0:M
                                    70504 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=11,pt=0,l=8,sg=0,ft=0,st=OK:OTA Test
                                    70512 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=12,pt=0,l=1,sg=0,ft=0,st=OK:1
                                    70521 TSF:MSG:SEND,1-1-0-0,s=1,c=0,t=3,pt=0,l=8,sg=0,ft=0,st=OK:Sensor 1
                                    

                                    Maybe a bug or where is the mistake ?

                                    Thanks in advance foryour help

                                    Edit: After a couple of test, the problem is related to the gateway with MySensor Library version 2.2.0 beta.
                                    All nodes (2.1.1 & 2.2.0 libs) from my network present the same error.
                                    Probably a vartype unexpected by the Gateway (2.2.0 lib).

                                    The serial Gateway (2.1.1) is ok

                                    1 Reply Last reply
                                    1
                                    • Nicolas CharrierN Nicolas Charrier

                                      Hello
                                      I succed to program booloader but y can not add my sketch to arduino with serial or USB line.
                                      Is is activated by default?
                                      Thanks.

                                      ahmedadelhosniA Offline
                                      ahmedadelhosniA Offline
                                      ahmedadelhosni
                                      wrote on last edited by
                                      #152

                                      @Nicolas-Charrier
                                      Hello @tekka , I have the same problem.

                                      I am trying to set up my Serial Gateway. I flashed the OTA bootloader but how can I upload the Gateway sketch through Serial ?

                                      I tried to use the MySysController but the node is not presented so that I can flash new firware with the Gateway sketch. It only worked when I flashed normal Optiboot bootloader and then flashed the Serial Gateway sketch through Serial, then I connected the Gateway to the Controller and the presentation worked well. Thus I now have a Gateway which I can flash other nodes with through OTA.

                                      Is there another way to flash a gateway sketch other than this ?

                                      Thanks.

                                      tekkaT 1 Reply Last reply
                                      0
                                      • ahmedadelhosniA ahmedadelhosni

                                        @Nicolas-Charrier
                                        Hello @tekka , I have the same problem.

                                        I am trying to set up my Serial Gateway. I flashed the OTA bootloader but how can I upload the Gateway sketch through Serial ?

                                        I tried to use the MySysController but the node is not presented so that I can flash new firware with the Gateway sketch. It only worked when I flashed normal Optiboot bootloader and then flashed the Serial Gateway sketch through Serial, then I connected the Gateway to the Controller and the presentation worked well. Thus I now have a Gateway which I can flash other nodes with through OTA.

                                        Is there another way to flash a gateway sketch other than this ?

                                        Thanks.

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

                                        @ahmedadelhosni Why would you want to flash MYSBootloader on your GW? OTA FW update capabilities only make sense on sensor nodes...

                                        ahmedadelhosniA 1 Reply Last reply
                                        0
                                        • tekkaT tekka

                                          @ahmedadelhosni Why would you want to flash MYSBootloader on your GW? OTA FW update capabilities only make sense on sensor nodes...

                                          ahmedadelhosniA Offline
                                          ahmedadelhosniA Offline
                                          ahmedadelhosni
                                          wrote on last edited by
                                          #154

                                          @tekka I just thought that if I flashed a bootloader on a new hardware IC then I can decide whether to flash GW or sensor node when connected to the serial computer.

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


                                          15

                                          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