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

    Yeah, the bootloader works well with the v2.0 release.
    The major issue it has currently is that sometimes it takes quite a long time to flash a sketch. It seems that when the wireless connection is not perfect, it stops for 2 or 3 seconds multiple times. Like, send 10 packages, stop 3 seconds, send 5 packages, stop again.

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

    @abmantis

    I have same problem. Did you solve the problem?

    abmantisA 1 Reply Last reply
    0
    • yd kimY yd kim

      @abmantis

      I have same problem. Did you solve the problem?

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

      @yd-kim What problem?

      yd kimY 1 Reply Last reply
      0
      • abmantisA abmantis

        @yd-kim What problem?

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

        @abmantis
        You did post following 2months ago and I have same problem too.
        If you solve the problem, please share it.

        Yeah, the bootloader works well with the v2.0 release.
        The major issue it has currently is that sometimes it takes quite a long time to flash a sketch. It seems that when the wireless connection is not perfect, it stops for 2 or 3 seconds multiple times. Like, send 10 packages, stop 3 seconds, send 5 packages, stop again.

        Thanks.

        abmantisA 1 Reply Last reply
        0
        • yd kimY yd kim

          @abmantis
          You did post following 2months ago and I have same problem too.
          If you solve the problem, please share it.

          Yeah, the bootloader works well with the v2.0 release.
          The major issue it has currently is that sometimes it takes quite a long time to flash a sketch. It seems that when the wireless connection is not perfect, it stops for 2 or 3 seconds multiple times. Like, send 10 packages, stop 3 seconds, send 5 packages, stop again.

          Thanks.

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

          @yd-kim Ah that! Nope, unfortunately it stills takes a long time to flash. We probably need an updated bootloader.

          1 Reply Last reply
          0
          • AndurilA Offline
            AndurilA Offline
            Anduril
            wrote on last edited by
            #127

            @abmantis DO you have the serial upload working? I never got it working and gave up some day. I am using the old bootloader which is uploading ota much faster than the new. Maybe you can also test and confirm this?

            yd kimY abmantisA 2 Replies Last reply
            0
            • AndurilA Anduril

              @abmantis DO you have the serial upload working? I never got it working and gave up some day. I am using the old bootloader which is uploading ota much faster than the new. Maybe you can also test and confirm this?

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

              @Anduril
              I did some thest.
              1.3Pre.hex in 1.0.0Beta : it works with serial upload but take too long time(about an hour) to use OTA or fail.
              1.1 (?) which is in 0.1.2 folder : it takes about 10 minutes and works well but doesn't work with Serial upload which is normal way to upload firmware in Arduino.
              Thank you for all help.

              dpressleD 1 Reply Last reply
              0
              • yd kimY yd kim

                @Anduril
                I did some thest.
                1.3Pre.hex in 1.0.0Beta : it works with serial upload but take too long time(about an hour) to use OTA or fail.
                1.1 (?) which is in 0.1.2 folder : it takes about 10 minutes and works well but doesn't work with Serial upload which is normal way to upload firmware in Arduino.
                Thank you for all help.

                dpressleD Offline
                dpressleD Offline
                dpressle
                wrote on last edited by
                #129

                @yd-kim said:

                1.3Pre.hex in 1.0.0Beta : it works with serial upload

                i couldn't get the 1.3pre work with serial upload, its interesting to see you could.

                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

                  M Offline
                  M Offline
                  Mickey
                  wrote on last edited by
                  #130

                  @tekka said:

                  @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

                  Has this adjusted already?

                  1 Reply Last reply
                  0
                  • tekkaT tekka

                    @Lorenzo not finalized, need to revise the stk500 code

                    kalinaK Offline
                    kalinaK Offline
                    kalina
                    Hardware Contributor
                    wrote on last edited by kalina
                    #131

                    Hi @tekka, can you help me?
                    I want to start exchanging between my MDMSGate device and MYSController via Ethernet. But I don't use Ethernet Shield W5100 in my MDMSGate, I use microcontroller PIC18F67J60 instead. I have uploaded to the PIC18F67J60 firmware which converts TCP/IP packets to serial and conversely.
                    0_1474892376023_Ethernet_gateway.jpg
                    In atmega328P I use the serial gateway sketch. So, I can't connect MYSController to my MDMSGate. Can you explain me, how MYSController exchanges with gateway generally? In an exchange through CP2102 (as a serial gateway mode) everything works well.

                    1 Reply Last reply
                    0
                    • kk02067K Offline
                      kk02067K Offline
                      kk02067
                      wrote on last edited by
                      #132

                      In the "firmware_config.csv" file, on the first line it says:

                      Type,Name,Version,File,Comments
                      

                      I know that it is there to explain how to add new lines to the file.
                      But I don't know what "Type" is used for.
                      The two examples have the numbers 10 and 20. I added a 30 and it seems to work but I would like to know what it's for.

                      Thanks

                      1 Reply Last reply
                      0
                      • AndurilA Anduril

                        @abmantis DO you have the serial upload working? I never got it working and gave up some day. I am using the old bootloader which is uploading ota much faster than the new. Maybe you can also test and confirm this?

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

                        @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.

                        LorenzoL yd kimY 2 Replies Last reply
                        0
                        • 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.

                          LorenzoL Offline
                          LorenzoL Offline
                          Lorenzo
                          wrote on last edited by
                          #134
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          16

                                          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