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.
  • 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
                • K Offline
                  K Offline
                  ksya
                  wrote on last edited by
                  #155

                  I see that after compiling I get to choose between sketch.ino.hex and sketch.ino.with_bootloader.hex
                  Is it possible to update the bootloader OTA by using this hex file instead? Which is the best bootloader available now, because my nodes are now on 1.3pre (from topic start).

                  1 Reply Last reply
                  0
                  • I Offline
                    I Offline
                    itbeyond
                    wrote on last edited by
                    #156

                    How does GW mode actually work - I have been trying to relay a connection to Vera but not matter what combination I am trying I cannot understand how the GW mode operates?

                    1 Reply Last reply
                    0
                    • petewillP Offline
                      petewillP Offline
                      petewill
                      Admin
                      wrote on last edited by
                      #157

                      @itbeyond Have you opened up your firewall so the Vera can communicate with the computer running MYSController?
                      Here is how I have MYSContoller configured...
                      First, connect MYSController to your existing gateway (if you are using Ethernet
                      you only want one device to connect so don't have your Vera connected at the same time)
                      0_1510582509499_upload-28bab7f1-4863-41bc-a749-179cb82ecf6c
                      Once you do that you need to choose a port in the settings:
                      0_1510582093482_upload-14ac4c29-1501-49ea-b0c5-d7503a02b769

                      Then you press Connect (to connect to the actual Ethernet or Serial gateway).
                      Once connected turn on GW Mode (mine is grayed out because I'm not at home connected to my gateway):
                      0_1510582137860_upload-dd16413a-ef4c-4c1f-9dd9-7377f5090ed5
                      In your Vera you would obviously want to connect to the IP address of the computer running MYSController
                      0_1510582624549_upload-5296052c-b9b0-446b-b089-259b375d11e9

                      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

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

                        I have problems connecting a serial NRF24 gateway to MYSController b3314. After some minutes working properly, no more messages seem to get received by MYSController. If I disconnect and connect again (button, not USB), it works for about the same time until it stops again.
                        I put a second USB2serial in parallel and connected a terminal program (hterm). The terminal programm continuously receives messages, even when MYSController stops receiving. So it's no gateway issue.
                        I tried several different USB2serial adapter with MYSController - no difference.
                        Any idea how to get MYSController to work continuously ?

                        tekkaT 1 Reply Last reply
                        0
                        • petewillP petewill

                          @itbeyond Have you opened up your firewall so the Vera can communicate with the computer running MYSController?
                          Here is how I have MYSContoller configured...
                          First, connect MYSController to your existing gateway (if you are using Ethernet
                          you only want one device to connect so don't have your Vera connected at the same time)
                          0_1510582509499_upload-28bab7f1-4863-41bc-a749-179cb82ecf6c
                          Once you do that you need to choose a port in the settings:
                          0_1510582093482_upload-14ac4c29-1501-49ea-b0c5-d7503a02b769

                          Then you press Connect (to connect to the actual Ethernet or Serial gateway).
                          Once connected turn on GW Mode (mine is grayed out because I'm not at home connected to my gateway):
                          0_1510582137860_upload-dd16413a-ef4c-4c1f-9dd9-7377f5090ed5
                          In your Vera you would obviously want to connect to the IP address of the computer running MYSController
                          0_1510582624549_upload-5296052c-b9b0-446b-b089-259b375d11e9

                          I Offline
                          I Offline
                          itbeyond
                          wrote on last edited by
                          #159

                          @petewill - Thanks of course Windows Firewall - how many times does one have to forget about that little gem. One other quick question I created a new post in controllers for a MYSBootloader issue - should I add it to this post or leave it where I posted it? I cannot get one node to accept firmware (wonder if signing is a problem however it should not be).

                          petewillP 1 Reply Last reply
                          0
                          • I itbeyond

                            @petewill - Thanks of course Windows Firewall - how many times does one have to forget about that little gem. One other quick question I created a new post in controllers for a MYSBootloader issue - should I add it to this post or leave it where I posted it? I cannot get one node to accept firmware (wonder if signing is a problem however it should not be).

                            petewillP Offline
                            petewillP Offline
                            petewill
                            Admin
                            wrote on last edited by
                            #160

                            @itbeyond I responded in the other thread.

                            My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                            1 Reply Last reply
                            1
                            • karlheinz2000K karlheinz2000

                              I have problems connecting a serial NRF24 gateway to MYSController b3314. After some minutes working properly, no more messages seem to get received by MYSController. If I disconnect and connect again (button, not USB), it works for about the same time until it stops again.
                              I put a second USB2serial in parallel and connected a terminal program (hterm). The terminal programm continuously receives messages, even when MYSController stops receiving. So it's no gateway issue.
                              I tried several different USB2serial adapter with MYSController - no difference.
                              Any idea how to get MYSController to work continuously ?

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

                              @karlheinz2000 Sounds like an issue with your GW - what happens if you connect to your GW via the Arduino serial terminal - does it behave the same?

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

                                @tekka I did this already. GW connected to MYSController and to terminal program in parallel via 2 USB2serial adapters. MYSController stops logging, but terminal keeps logging MSGs. So I expect no GW issue. I tried 3 different USB serial adapters with no difference.
                                0_1510862025401_Unbenannt.PNG

                                tekkaT 1 Reply Last reply
                                0
                                • karlheinz2000K karlheinz2000

                                  @tekka I did this already. GW connected to MYSController and to terminal program in parallel via 2 USB2serial adapters. MYSController stops logging, but terminal keeps logging MSGs. So I expect no GW issue. I tried 3 different USB serial adapters with no difference.
                                  0_1510862025401_Unbenannt.PNG

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

                                  @karlheinz2000 Try with the latest build (MYSController 1.0.0beta build 3316) - MYSController will inform you about an available update.

                                  M 1 Reply Last reply
                                  0
                                  • tekkaT tekka

                                    @karlheinz2000 Try with the latest build (MYSController 1.0.0beta build 3316) - MYSController will inform you about an available update.

                                    M Offline
                                    M Offline
                                    manutremo
                                    wrote on last edited by
                                    #164

                                    @tekka Where can that be downloaded? All the links I find lead to a 404...

                                    tekkaT 1 Reply Last reply
                                    0
                                    • M manutremo

                                      @tekka Where can that be downloaded? All the links I find lead to a 404...

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

                                      @manutremo see above, you will get notified when running MYSController

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        manutremo
                                        wrote on last edited by
                                        #166

                                        Done, nice job, I see the new message types have been added, probably other enhancements under the hood? thanks!

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

                                          @tekka it's been some time since I flashed the bootloader, I notice I currently have a lot of different hex files (which I believe I compiled myself), do I no longer need different files for different speeds, i.e 16 / 8 /1Mhz?

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


                                          18

                                          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