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.4 Released

MySensors 1.4 Released

Scheduled Pinned Locked Moved Announcements
72 Posts 19 Posters 28.8k Views 2 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.
  • clippermiamiC clippermiami

    @hek Congratulations to you and to everyone involved in making this transition. Thanks for everything you have done for us.

    Is it safe to assume that all of the code examples are now Lib 1.4 based? As I recall previous discussion said the Lib 1.4 change has to be applied to the Gateway and Sensors all together?

    hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #21

    @clippermiami said:

    Is it safe to assume that all of the code examples are now Lib 1.4 based? As I recall previous discussion said the Lib 1.4 change has to be applied to the Gateway and Sensors all together?

    Yes, everything on main site is now 1.4.

    1 Reply Last reply
    0
    • epierreE Offline
      epierreE Offline
      epierre
      Hero Member
      wrote on last edited by
      #22

      Hello,

      I am a bit puzzled by the documentation online as I try to upgrade my home made controller/gateway.

      Before we had a description of the radio signal as 5 fields, now it is 6 and even reading the lua code for Vera I've not seen the new field being used. (apart for making it not backward compatible, not a big issue for me)

      Also some new capacities are here, but they lack documentation (at least for me), where can I have a look to see the expected behavior on both side ? (sensor and controller/gateway)?

      And to finish, what is the ack behavior on the radio, meaning that before I observed that the sendVariable needed to be requested 2 to 3 times to have it correctly received by the node, is there an automatic retry from the node as before ? (I suspect not from the simpler and clever new method...).

      As a positive note, I've moved all my sketches to 1.4 (time bounced watermeter was the hardest) and run a parallel gateway till all is "stable", so far so good !

      hekH 1 Reply Last reply
      0
      • epierreE epierre

        Hello,

        I am a bit puzzled by the documentation online as I try to upgrade my home made controller/gateway.

        Before we had a description of the radio signal as 5 fields, now it is 6 and even reading the lua code for Vera I've not seen the new field being used. (apart for making it not backward compatible, not a big issue for me)

        Also some new capacities are here, but they lack documentation (at least for me), where can I have a look to see the expected behavior on both side ? (sensor and controller/gateway)?

        And to finish, what is the ack behavior on the radio, meaning that before I observed that the sendVariable needed to be requested 2 to 3 times to have it correctly received by the node, is there an automatic retry from the node as before ? (I suspect not from the simpler and clever new method...).

        As a positive note, I've moved all my sketches to 1.4 (time bounced watermeter was the hardest) and run a parallel gateway till all is "stable", so far so good !

        hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #23

        @epierre said:

        Before we had a description of the radio signal as 5 fields, now it is 6 and even reading the lua code for Vera I've not seen the new field being used. (apart for making it not backward compatible, not a big issue for me)

        No, the (incoming) ack status is currently not used by the Vera plugin. For outgoing messages to actuators it is always enabled.

        Also some new capacities are here, but they lack documentation (at least for me), where can I have a look to see the expected behavior on both side ? (sensor and controller/gateway)?

        Yes, agree. This could be documented better.

        And to finish, what is the ack behavior on the radio, meaning that before I observed that the sendVariable needed to be requested 2 to 3 times to have it correctly received by the node, is there an automatic retry from the node as before ? (I suspect not from the simpler and clever new method...).

        No, the (blocking) automatic retry has been removed. If I would need retry functionality it would probably look something like this:

        https://codebender.cc/sketch:46971

        epierreE 2 Replies Last reply
        0
        • hekH hek

          @epierre said:

          Before we had a description of the radio signal as 5 fields, now it is 6 and even reading the lua code for Vera I've not seen the new field being used. (apart for making it not backward compatible, not a big issue for me)

          No, the (incoming) ack status is currently not used by the Vera plugin. For outgoing messages to actuators it is always enabled.

          Also some new capacities are here, but they lack documentation (at least for me), where can I have a look to see the expected behavior on both side ? (sensor and controller/gateway)?

          Yes, agree. This could be documented better.

          And to finish, what is the ack behavior on the radio, meaning that before I observed that the sendVariable needed to be requested 2 to 3 times to have it correctly received by the node, is there an automatic retry from the node as before ? (I suspect not from the simpler and clever new method...).

          No, the (blocking) automatic retry has been removed. If I would need retry functionality it would probably look something like this:

          https://codebender.cc/sketch:46971

          epierreE Offline
          epierreE Offline
          epierre
          Hero Member
          wrote on last edited by epierre
          #24

          @hek sorry, I've editied the post, the android template makes me write like a blind man...

          @hek said:

          No, the (incoming) ack status is currently not used by the Vera plugin. For outgoing messages to actuators it is always enabled.

          except for INTERNAL as it seems, is there a reason ?

          Also some new capacities are here, but they lack documentation (at least for me), where can I have a look to see the expected behavior on both side ? (sensor and controller/gateway)?

          Yes, agree. This could be documented better.

          In the Vera LUA I only see TIME as a new event, right ?

          And to finish, what is the ack behavior on the radio, meaning that before I observed that the sendVariable needed to be requested 2 to 3 times to have it correctly received by the node, is there an automatic retry from the node as before ? (I suspect not from the simpler and clever new method...).

          No, the (blocking) automatic retry has been removed. If I would need retry functionality it would probably look something like this:

          given the limited write cycle, I guess I wouldn't want to use the EEPROM for storing states. But if my watermeter starts but cannot get the reference volume, that would mean a mess if that persist, could the sensor loop on startup to get the data, but anyway manage reading the status of the sensor ?

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #25

            @epierre said:

            except for INTERNAL as it seems.

            Yes, true.

            In the LA I only see time as new, right ?

            :question:

            could the sensor soop on startup to get the data, but anyway manage reading the status of the sensor ?

            :question:

            epierreE 1 Reply Last reply
            0
            • RJ_MakeR Offline
              RJ_MakeR Offline
              RJ_Make
              Hero Member
              wrote on last edited by
              #26

              Should I upgrade to the final..... currently using (1.4b1 (18848a2))? If so what is the proper way of doing so?

              RJ_Make

              hekH 1 Reply Last reply
              0
              • RJ_MakeR RJ_Make

                Should I upgrade to the final..... currently using (1.4b1 (18848a2))? If so what is the proper way of doing so?

                hekH Offline
                hekH Offline
                hek
                Admin
                wrote on last edited by
                #27

                @ServiceXp

                It depends on when you last updated. There hasn't been any radical library improvements the last few weeks. Just more examples.

                Just download the latest and re-build/upload to sensors and gateway.

                RJ_MakeR 1 Reply Last reply
                0
                • hekH hek

                  @ServiceXp

                  It depends on when you last updated. There hasn't been any radical library improvements the last few weeks. Just more examples.

                  Just download the latest and re-build/upload to sensors and gateway.

                  RJ_MakeR Offline
                  RJ_MakeR Offline
                  RJ_Make
                  Hero Member
                  wrote on last edited by
                  #28

                  @hek
                  Will do, Thanks

                  RJ_Make

                  1 Reply Last reply
                  0
                  • hekH hek

                    @epierre said:

                    except for INTERNAL as it seems.

                    Yes, true.

                    In the LA I only see time as new, right ?

                    :question:

                    could the sensor soop on startup to get the data, but anyway manage reading the status of the sensor ?

                    :question:

                    epierreE Offline
                    epierreE Offline
                    epierre
                    Hero Member
                    wrote on last edited by
                    #29

                    @hek I corrected the post above... still the android template problem when posting...

                    1 Reply Last reply
                    0
                    • hekH Offline
                      hekH Offline
                      hek
                      Admin
                      wrote on last edited by
                      #30

                      @epierre said:

                      In the Vera LUA I only see TIME as a new event, right ?

                      TIME was present already in 1.3 (https://github.com/mysensors/Vera/compare/1.3...master)

                      given the limited write cycle, I guess I wouldn't want to use the EEPROM for storing states. But if my watermeter starts but cannot get the reference volume, that would mean a mess if that persist, could the sensor loop on startup to get the data, but anyway manage reading the status of the sensor ?

                      Guess you could implement it with some inspiration from my example above where you instead keep requesting watermeter level until you get a response. Meanwhile you can save watermeter values and add it to the grand total when response comes in.

                      1 Reply Last reply
                      0
                      • hekH hek

                        @epierre said:

                        Before we had a description of the radio signal as 5 fields, now it is 6 and even reading the lua code for Vera I've not seen the new field being used. (apart for making it not backward compatible, not a big issue for me)

                        No, the (incoming) ack status is currently not used by the Vera plugin. For outgoing messages to actuators it is always enabled.

                        Also some new capacities are here, but they lack documentation (at least for me), where can I have a look to see the expected behavior on both side ? (sensor and controller/gateway)?

                        Yes, agree. This could be documented better.

                        And to finish, what is the ack behavior on the radio, meaning that before I observed that the sendVariable needed to be requested 2 to 3 times to have it correctly received by the node, is there an automatic retry from the node as before ? (I suspect not from the simpler and clever new method...).

                        No, the (blocking) automatic retry has been removed. If I would need retry functionality it would probably look something like this:

                        https://codebender.cc/sketch:46971

                        epierreE Offline
                        epierreE Offline
                        epierre
                        Hero Member
                        wrote on last edited by
                        #31

                        @hek In what case should I use the ack ?

                        hekH 1 Reply Last reply
                        0
                        • epierreE epierre

                          @hek In what case should I use the ack ?

                          hekH Offline
                          hekH Offline
                          hek
                          Admin
                          wrote on last edited by
                          #32

                          @epierre

                          If you really want to make sure your sensor data has reached the gateway (or the other way around).

                          In the vera plugin the state isn't changed until ack comes back from actuator. So user get instant feedback if there is some problem in communication (=nothing updates in GUI).

                          BulldogLowellB 1 Reply Last reply
                          0
                          • hekH hek

                            @epierre

                            If you really want to make sure your sensor data has reached the gateway (or the other way around).

                            In the vera plugin the state isn't changed until ack comes back from actuator. So user get instant feedback if there is some problem in communication (=nothing updates in GUI).

                            BulldogLowellB Offline
                            BulldogLowellB Offline
                            BulldogLowell
                            Contest Winner
                            wrote on last edited by
                            #33

                            @hek

                            Congratulations

                            1 Reply Last reply
                            0
                            • hekH Offline
                              hekH Offline
                              hek
                              Admin
                              wrote on last edited by hek
                              #34

                              ###1.4 update 1 released

                              NOTE: This release does not require you to update all nodes . Nothing has changed in protocols.

                              • All outgoing messages from gateway included a newline character. This has now been fixed.
                              • The msg.getByte() wrongfully used atoi() conversion if payload was of string type.
                              • The getByte-bug caused problems when receiving Metric/Imperial settings from controller.
                              • A new sleep-method added to allow wake-up on both external interrupts.
                              • A new example BinarySwitchSleepSensor showing the new sleep function (thanks @Anticimex).
                              • Library code (RF24) reduced by 624 bytes (thanks @Damme)
                              • Many people has reported powering problems when using amplified version of the NRF-chip on their gateway. The Arduino Nanos 3v3 output does not seem to be sufficient for PA_MAX. The radio needs to be feeded separately with a stable 3v3 to work. Defaulting gateway PA-level to LOW now and if you are using a vanilla radio on gateway you can switch back to MAX in your MyConfig.h.
                              RJ_MakeR T 2 Replies Last reply
                              0
                              • epierreE Offline
                                epierreE Offline
                                epierre
                                Hero Member
                                wrote on last edited by
                                #35
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mikeones
                                  wrote on last edited by
                                  #36

                                  @hek I am having an issue assigning a node ID since the last update. I have cleared the eprom in one of my nodes and I am trying to assign a node id of 1 via the serial monitor on the GW. I am sending "255;255;3;0;4;1" in response to the node ID request of "255;255;3;0;3;".

                                  This is the console log from the node with debug enabled.

                                  send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
                                  read: 0-0-255 s=255,c=3,t=8,pt=1,l=1:0
                                  new parent=0, d=1
                                  req node id
                                  send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                                  read: 0-0-255 s=255,c=3,t=4,pt=0,l=1:1
                                  id=49
                                  sensor started, id 49
                                  send: 49-49-0-0 s=255,c=0,t=17,pt=0,l=3,st=ok:1.4
                                  send: 49-49-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
                                  

                                  Here is the console log from the GW.

                                  0;0;3;0;14;Gateway startup complete.
                                  255;255;3;0;3;
                                  49;255;0;0;17;1.4
                                  49;255;3;0;6;0
                                  

                                  What I don't understand is why the node would get assigned ID "49" when I sent "1" as the new node ID. Should the node get an ID of "1" or "49" for the command below?

                                  255;255;3;0;4;1
                                  
                                  hekH 1 Reply Last reply
                                  0
                                  • M mikeones

                                    @hek I am having an issue assigning a node ID since the last update. I have cleared the eprom in one of my nodes and I am trying to assign a node id of 1 via the serial monitor on the GW. I am sending "255;255;3;0;4;1" in response to the node ID request of "255;255;3;0;3;".

                                    This is the console log from the node with debug enabled.

                                    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
                                    read: 0-0-255 s=255,c=3,t=8,pt=1,l=1:0
                                    new parent=0, d=1
                                    req node id
                                    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                                    read: 0-0-255 s=255,c=3,t=4,pt=0,l=1:1
                                    id=49
                                    sensor started, id 49
                                    send: 49-49-0-0 s=255,c=0,t=17,pt=0,l=3,st=ok:1.4
                                    send: 49-49-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
                                    

                                    Here is the console log from the GW.

                                    0;0;3;0;14;Gateway startup complete.
                                    255;255;3;0;3;
                                    49;255;0;0;17;1.4
                                    49;255;3;0;6;0
                                    

                                    What I don't understand is why the node would get assigned ID "49" when I sent "1" as the new node ID. Should the node get an ID of "1" or "49" for the command below?

                                    255;255;3;0;4;1
                                    
                                    hekH Offline
                                    hekH Offline
                                    hek
                                    Admin
                                    wrote on last edited by
                                    #37

                                    @mikeones

                                    Darn, yes, you are so right. The getByte fix affected the node-id functionality. Please update again (MySensor.cpp) and report back.

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      mikeones
                                      wrote on last edited by mikeones
                                      #38

                                      @hek After updating, I have tested this via the serial monitor and it seems ok.

                                      send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
                                      read: 0-0-255 s=255,c=3,t=4,pt=0,l=1:1
                                      id=1
                                      

                                      When I send this string via a (ago) controller, the node sets an id of 0 again. Do you see any issue with this string format?

                                      255;255;3;0;4;1
                                      

                                      Serial monitor output. Does "l=0:" indicate there was an issue with the payload?

                                      send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
                                      read: 0-0-255 s=255,c=3,t=4,pt=0,l=0:
                                      id=0
                                      
                                      hekH 1 Reply Last reply
                                      0
                                      • M mikeones

                                        @hek After updating, I have tested this via the serial monitor and it seems ok.

                                        send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
                                        read: 0-0-255 s=255,c=3,t=4,pt=0,l=1:1
                                        id=1
                                        

                                        When I send this string via a (ago) controller, the node sets an id of 0 again. Do you see any issue with this string format?

                                        255;255;3;0;4;1
                                        

                                        Serial monitor output. Does "l=0:" indicate there was an issue with the payload?

                                        send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
                                        read: 0-0-255 s=255,c=3,t=4,pt=0,l=0:
                                        id=0
                                        
                                        hekH Offline
                                        hekH Offline
                                        hek
                                        Admin
                                        wrote on last edited by
                                        #39

                                        @mikeones

                                        Hmm. I wonder which control characters Argcontrol sends ( \n and/or \r ). It could be that Vera sends both. I'll have to check when I get home.

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          mikeones
                                          wrote on last edited by
                                          #40

                                          @hek

                                          It appears sending "255;255;3;0;4;1\r\n" fixes my issue.

                                          send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
                                          read: 0-0-255 s=255,c=3,t=4,pt=0,l=1:1
                                          id=1
                                          sensor started, id 1
                                          
                                          hekH 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          14

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          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