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. Announcements
  3. MySensors 1.5.2 Released

MySensors 1.5.2 Released

Scheduled Pinned Locked Moved Announcements
35 Posts 6 Posters 14.6k Views 4 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.
  • A Offline
    A Offline
    Anticimex
    Contest Winner
    wrote on last edited by
    #1

    We are happy to announce a maintenance release of MySensors library to 1.5.2!

    This version is backward compatible with 1.5.1 and contain security related bugfixes and stabilizations:

    • Backport of bugfix (#259) in repeaters when forwarding signed messages
    • Prevent SecureActuator from accepting ACKs as commands
    • Make sure nodes not supporting signing informs gateway
    • Fixes addressing bug in _doSign bitfield
    • Stabilizes Jenkins

    It is recommended that you update all your nodes and gateways if you use message signing.

    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

    1 Reply Last reply
    6
    • N Offline
      N Offline
      n3ro
      wrote on last edited by
      #2

      yeah!

      is it possible to update the gateway via shell?

      pimatic + MySensors + Homeduino + z-way
      https://github.com/n3roGit/MySensors_n3ro

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anticimex
        Contest Winner
        wrote on last edited by
        #3

        How do you mean 'via shell'? Using avrdude it is possible to flash the built hex file via a shell yes. But I don't know the exact arguments for that.

        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

        N 1 Reply Last reply
        0
        • A Anticimex

          How do you mean 'via shell'? Using avrdude it is possible to flash the built hex file via a shell yes. But I don't know the exact arguments for that.

          N Offline
          N Offline
          n3ro
          wrote on last edited by
          #4

          @Anticimex like homeduino with:

          sudo apt-get install arduino-core avr-libc avrdude binutils-avr gcc-avr libconfig-yaml-perl libftdi1 libyaml-perl screen python-serial
          git clone --recursive https://github.com/pimatic/homeduino.git
          make upload
          

          pimatic + MySensors + Homeduino + z-way
          https://github.com/n3roGit/MySensors_n3ro

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Anticimex
            Contest Winner
            wrote on last edited by
            #5

            Well, that is up to you. It depends on the HW you have used for your GW. The library is just software and how you choose to download that SW to your HW is entirely up to you :) This is a SW release, so you can flash it exactly as you flashed it before, or in a new way if you prefer that. But the method of flashing is totally decoupled from the contents of release 1.5.2.
            And when it comes to OTA updates, there are no changes in this release compared to 1.5.1 so you can expect the same featureset with respect to OTA functionality.

            Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

            1 Reply Last reply
            1
            • K Offline
              K Offline
              korttoma
              Hero Member
              wrote on last edited by korttoma
              #6

              How can I do the following on this Library version?

              #define MY_NODE_ID 12
              #define RF24_CE_PIN		4	
              #define RF24_CS_PIN		10	
              #define RF24_PA_LEVEL	RF24_PA_MAX
              
              MyTransportNRF24 transport(RF24_CE_PIN, RF24_CS_PIN, RF24_PA_LEVEL);
              
              MySensor (transport);
              
              
              void setup()
              {             gw.begin(NULL, MY_NODE_ID);
              

              Cant seem to wrap my head around this. btw, I'm using Codebender.

              • Tomas
              1 Reply Last reply
              0
              • A Offline
                A Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #7

                There is no difference in how you write your sketch in 1.5.2 compared to 1.5.1. So I am not sure I understand your question.

                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  korttoma
                  Hero Member
                  wrote on last edited by
                  #8

                  Whell a sketch used to compile just fine using 1.5 but now I get:

                  In file included from (sketch file) MultiTemp.ino:39:
                  (personal library file) MySensors/MySensor.h:158:70: error: unknown type name 'MyHwDriver'
                  MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                  ^
                  (sketch file) MultiTemp.ino:71:10: error: redefinition of 'transport' with a different type: 'MySensor' vs 'MyTransportNRF24'
                  MySensor(transport);
                  ^
                  (sketch file) MultiTemp.ino:69:18: note: previous definition is here
                  MyTransportNRF24 transport(RF24_CE_PIN, RF24_CS_PIN, RF24_PA_LEVEL);

                  • Tomas
                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Anticimex
                    Contest Winner
                    wrote on last edited by
                    #9

                    If you skipped on 1.5.1 and went from 1.5 to 1.5.2 I think @hek needs to fill you (and me) in on what changes has been made.

                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      korttoma
                      Hero Member
                      wrote on last edited by
                      #10

                      Btw, I just upload the MySensor folder from the library as a .zip to codebender. Do I need anything outside this folder?

                      • Tomas
                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Anticimex
                        Contest Winner
                        wrote on last edited by
                        #11

                        I don't think so. Perhaps it helps to re-download the image. Which link did you use? The zip link to 1.5.2 is here.

                        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                        1 Reply Last reply
                        0
                        • H Offline
                          H Offline
                          hek
                          Admin
                          wrote on last edited by
                          #12

                          Github is the best place. I have a vague memory of routing problems fixed in 1.5.1.
                          https://github.com/mysensors/Arduino/releases

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            korttoma
                            Hero Member
                            wrote on last edited by korttoma
                            #13

                            Tried to get the Lib again but it does not seem to be any different:

                            Trying to compile the sketch (coodiebender.something/sketch:213307) unchanged results in this:

                            In file included from (sketch file) MultiTemp.ino:35:
                            (personal library file) MySensors/MySensor.h:158:70: error: unknown type name 'MyHwDriver'
                                    MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                                                                                                        ^
                            (sketch file) MultiTemp.ino:63:10: error: no matching constructor for initialization of 'MySensor'
                            MySensor gw(transport);
                            

                            So I remove the "gw" but it stil complains:

                            (personal library file) MySensors/MySensor.h:158:70: error: unknown type name 'MyHwDriver'
                                    MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                                                                                                        ^
                            (sketch file) MultiTemp.ino:63:11: error: redefinition of 'transport' with a different type: 'MySensor' vs 'MyTransportNRF24'
                            MySensor (transport);
                            

                            I'm just not doing it right that is all, but how should it be done?

                            • Tomas
                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              Anticimex
                              Contest Winner
                              wrote on last edited by
                              #14

                              Have you looked at one of the existing examples as a reference? For example the DallasTemperatureSensor.ino

                              Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                korttoma
                                Hero Member
                                wrote on last edited by
                                #15

                                The examples do not include a transport definition

                                • Tomas
                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  korttoma
                                  Hero Member
                                  wrote on last edited by korttoma
                                  #16

                                  Is there "SOMETHING" missing like this??

                                  MySensor gw(transport, SOMETHING);
                                  
                                  candidate constructor not viable: requires 2 arguments, but 1 was provided
                                          MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                                  

                                  How do I define "MyHwDriver"??

                                  • Tomas
                                  H 1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    Anticimex
                                    Contest Winner
                                    wrote on last edited by Anticimex
                                    #17

                                    Have a look at this example

                                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                    1 Reply Last reply
                                    0
                                    • K Offline
                                      K Offline
                                      korttoma
                                      Hero Member
                                      wrote on last edited by korttoma
                                      #18

                                      Thanks for the example @Anticimex now I know how but it is stil not working when using codebender.

                                      (personal library file) MySensors/MySensor.h:158:70: error: unknown type name 'MyHwDriver'
                                              MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                                                                                                                  ^
                                      (sketch file) MultiTemp.ino:66:1: error: unknown type name 'MyHwATMega328'
                                      MyHwATMega328 hw; // Select AtMega328 hardware profile
                                      

                                      I tested now with Arduino IDE 1.6.5 and my sketch compiles just fine.

                                      • Tomas
                                      1 Reply Last reply
                                      0
                                      • A Offline
                                        A Offline
                                        Anticimex
                                        Contest Winner
                                        wrote on last edited by
                                        #19

                                        Sorry, I am not very familiar with codebender. It looks to me that the library you try to build with is very out if date if it lacks those hw definitions. I don't know how the library ends up at codebender. Perhaps @hek has some communication with them to support it.

                                        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                        1 Reply Last reply
                                        0
                                        • C Offline
                                          C Offline
                                          carlierd
                                          wrote on last edited by
                                          #20

                                          Hello,

                                          I tried to compile with 1.5.2 and got these errors:

                                          
                                          
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp: In member function 'boolean MySensor::sendRoute(MyMessage&)':
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:27:25: error: '_doSign' was not declared in this scope
                                           #define DO_SIGN(node) (~_doSign[node>>3]&(1<<(node%8)))
                                                                   ^
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:356:6: note: in expansion of macro 'DO_SIGN'
                                            if (DO_SIGN(message.destination) && message.sender == nc.nodeId && !mGetAck(message) && mGetLength(message) &&
                                                ^
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp: In member function 'boolean MySensor::process()':
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:28:25: error: '_doSign' was not declared in this scope
                                           #define SET_SIGN(node) (_doSign[node>>3]&=~(1<<(node%8)))
                                                                   ^
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:670:6: note: in expansion of macro 'SET_SIGN'
                                                SET_SIGN(msg.sender);
                                                ^
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:29:27: error: '_doSign' was not declared in this scope
                                           #define CLEAR_SIGN(node) (_doSign[node>>3]|=(1<<(node%8)))
                                                                     ^
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:673:6: note: in expansion of macro 'CLEAR_SIGN'
                                                CLEAR_SIGN(msg.sender);
                                                ^
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:27:25: error: '_doSign' was not declared in this scope
                                           #define DO_SIGN(node) (~_doSign[node>>3]&(1<<(node%8)))
                                                                   ^
                                          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:682:40: note: in expansion of macro 'DO_SIGN'
                                                if (signer.requestSignatures() && DO_SIGN(msg.sender))
                                                                                  ^
                                          Erreur lors de la compilation.
                                          

                                          No compilation issue with 1.5. And everything is working perfectly.

                                          David.

                                          A 1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          16

                                          Online

                                          12.0k

                                          Users

                                          11.2k

                                          Topics

                                          113.4k

                                          Posts


                                          Copyright 2025 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