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.
  • hekH hek

    @Yveaux

    Sounds good. Go for it!

    YveauxY Offline
    YveauxY Offline
    Yveaux
    Mod
    wrote on last edited by Yveaux
    #52

    @hek I'm also a bit puzzled by the RF24::enableAckPayload() and RF24::writeAckPayload() calls in the library, just like @Zeph .
    If I disable them the findParentNode() call only seems to emit a single message (which I can understand, as auto-ack is disabled for broadcasts), while 16 will be emit when the calls are enabled.
    Looks like auto-ack doesn't get disabled for broadcasts in this case.

    A sending nRF24 will immediately & automatically **switch to listen to the destination node's ID **after it has sent its message. Reason for this is that the nRF24 packet format only contains a destination node address and no source. The receiving node has no idea where the message came from and does not know who to send the ack to. Therefore it just sends the ack to its own node address, which the transmitting node happens to listen to.

    I tested only with a single sensor sending to a non-existent parent, but I can imagine that when auto-acks are enabled for broadcasts the s**t will definately hit the fan when there are many nodes within close proximity!

    http://yveaux.blogspot.nl

    hekH 1 Reply Last reply
    0
    • YveauxY Yveaux

      @hek said:

      I can't explain why linker includes things from MyGateway.cpp when compiling sensor examples.

      Compiler & linker seem to be configured correctly in 1.5.7 (see hardware\arduino\avr\patform.txt)
      Did you have a look at the map-file? What exactly is included from the MyGateway.cpp file?

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

      @Yveaux

      Ok, I'll download 1.5.7 and test again. Can't find any map-file anywhere in the build directory.

      YveauxY 1 Reply Last reply
      0
      • hekH hek

        @Yveaux

        Ok, I'll download 1.5.7 and test again. Can't find any map-file anywhere in the build directory.

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by
        #54

        @hek said:

        Can't find any map-file anywhere in the build directory.

        I think Arduino does not enable it by default. You either have to add generation to the build-parameters in platform.txt, or generate it afterwards .

        http://yveaux.blogspot.nl

        1 Reply Last reply
        0
        • YveauxY Yveaux

          @hek I'm also a bit puzzled by the RF24::enableAckPayload() and RF24::writeAckPayload() calls in the library, just like @Zeph .
          If I disable them the findParentNode() call only seems to emit a single message (which I can understand, as auto-ack is disabled for broadcasts), while 16 will be emit when the calls are enabled.
          Looks like auto-ack doesn't get disabled for broadcasts in this case.

          A sending nRF24 will immediately & automatically **switch to listen to the destination node's ID **after it has sent its message. Reason for this is that the nRF24 packet format only contains a destination node address and no source. The receiving node has no idea where the message came from and does not know who to send the ack to. Therefore it just sends the ack to its own node address, which the transmitting node happens to listen to.

          I tested only with a single sensor sending to a non-existent parent, but I can imagine that when auto-acks are enabled for broadcasts the s**t will definately hit the fan when there are many nodes within close proximity!

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

          @Yveaux said:

          If I disable them the findParentNode() call only seems to emit a single message (which I can understand, as auto-ack is disabled for broadcasts), while 16 will be emit when the calls are enabled.
          Looks like auto-ack doesn't get disabled for broadcasts in this case.

          Ok, 16! Hmm..not good.
          Could you perhaps do some more verifications with removed ackPayload/writeAckPayload while sniffing to see that everything works as expected with the whole findParent?
          Would be a nice addition to get this removed while you refactor findParent.

          YveauxY 1 Reply Last reply
          0
          • hekH hek

            @Yveaux said:

            If I disable them the findParentNode() call only seems to emit a single message (which I can understand, as auto-ack is disabled for broadcasts), while 16 will be emit when the calls are enabled.
            Looks like auto-ack doesn't get disabled for broadcasts in this case.

            Ok, 16! Hmm..not good.
            Could you perhaps do some more verifications with removed ackPayload/writeAckPayload while sniffing to see that everything works as expected with the whole findParent?
            Would be a nice addition to get this removed while you refactor findParent.

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #56

            @hek first need to rebuild the mysensors setup. Everything is Radiohead now....

            http://yveaux.blogspot.nl

            hekH 1 Reply Last reply
            0
            • YveauxY Yveaux

              @hek first need to rebuild the mysensors setup. Everything is Radiohead now....

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

              @Yveaux said:

              Everything is Radiohead now

              :O

              You sniffing is really helpful finding bugs and quirks in the radios bwt!

              YveauxY 1 Reply Last reply
              0
              • hekH hek

                @Yveaux said:

                Everything is Radiohead now

                :O

                You sniffing is really helpful finding bugs and quirks in the radios bwt!

                YveauxY Offline
                YveauxY Offline
                Yveaux
                Mod
                wrote on last edited by
                #58

                @hek yeah I know. I can't think of developing any networking stack without knowing what's really going on...
                Why don't you build one yourself ? ;-)

                http://yveaux.blogspot.nl

                hekH 1 Reply Last reply
                0
                • YveauxY Yveaux

                  @hek yeah I know. I can't think of developing any networking stack without knowing what's really going on...
                  Why don't you build one yourself ? ;-)

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

                  @Yveaux

                  I would really love to, but unfortunately I don't have any computer to lobotomize with windos.

                  YveauxY 1 Reply Last reply
                  0
                  • hekH hek

                    @Yveaux

                    I would really love to, but unfortunately I don't have any computer to lobotomize with windos.

                    YveauxY Offline
                    YveauxY Offline
                    Yveaux
                    Mod
                    wrote on last edited by
                    #60

                    @hek maybe run it in a virtual machine?
                    I should have written the serial-wireshark bridge in a more portable way...

                    http://yveaux.blogspot.nl

                    1 Reply Last reply
                    0
                    • hekH hek

                      @ServiceXp
                      Think I found the config problem. No wonder it didn't work. Please download and try again.

                      @mikeones
                      You should now be able to omit carriage return now.
                      The fail you're seeing is for the inter-node-ack.
                      Just verified requesting time from controller and it seems to work fine here (using the example sketch).

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

                      @hek said:> @ServiceXp

                      Think I found the config problem. No wonder it didn't work. Please download and try again.

                      Updated, and now it works! Thanks!!

                      RJ_Make

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

                        I spoke too soon...

                        I'm going crazy trying to find out why my sensors with DS18B20 keep locking up.... Today I had to clear and re-upload a sketch to a locked up sensor and it would not convert to F.. Severals hours later, still would not convert..

                        RJ_Make

                        hekH 1 Reply Last reply
                        0
                        • RJ_MakeR RJ_Make

                          I spoke too soon...

                          I'm going crazy trying to find out why my sensors with DS18B20 keep locking up.... Today I had to clear and re-upload a sketch to a locked up sensor and it would not convert to F.. Severals hours later, still would not convert..

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

                          @ServiceXp

                          You could test some other ds18b20 library and add a capacitor on the powerline to the temp-sensors.

                          RJ_MakeR 1 Reply Last reply
                          0
                          • hekH hek

                            @ServiceXp

                            You could test some other ds18b20 library and add a capacitor on the powerline to the temp-sensors.

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

                            @hek said:> @ServiceXp

                            You could test some other ds18b20 library and add a capacitor on the powerline to the temp-sensors.

                            I now believe it's related to the DS18D20 sensor. The same sensor locked up again when I got home, and interestingly enough they locked up @ -7.0 F. both times.

                            1. I power cycled sensor, (Still Locked Up)
                            2. Pushed sensor reset button. (Still Locked Up)
                            3. I removed from freezer, warmed sensor; power cycled sensor again (Still Locked Up)
                            4. Disconnected the DS18D20 from sensor and what do you know I was able to get it to recover.

                            So either this is just a freak of coincidence or the DS18D20 is some how locking up the Arduino in my environment. I installed a .47uF cap between the sensors VCC and GND wires, so we shall see.

                            Here is the serial output of the sensor:

                            2014-09-09_19-45-13.png

                            RJ_Make

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

                              Locked up again this morning @ 7:37am with a temp of -0.1. So a .47uF cap isn't the answer....

                              RJ_Make

                              1 Reply Last reply
                              0
                              • hekH hek

                                ###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.
                                T Offline
                                T Offline
                                TroyF
                                wrote on last edited by
                                #66

                                @hek Can you help me to understand how to get the update, and what parts are updated? I followed the download link to the library and installed the files. I then updated my gateway but I didn't see any version number change and I'm still having trouble with temperature readings coming through in Imperial units rather than metric.

                                Thanks, and keep up the great work!

                                Troy.

                                hekH 1 Reply Last reply
                                0
                                • T TroyF

                                  @hek Can you help me to understand how to get the update, and what parts are updated? I followed the download link to the library and installed the files. I then updated my gateway but I didn't see any version number change and I'm still having trouble with temperature readings coming through in Imperial units rather than metric.

                                  Thanks, and keep up the great work!

                                  Troy.

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

                                  @TroyF

                                  You followed the download link for 1.4 on the main site?

                                  T 1 Reply Last reply
                                  0
                                  • hekH hek

                                    @TroyF

                                    You followed the download link for 1.4 on the main site?

                                    T Offline
                                    T Offline
                                    TroyF
                                    wrote on last edited by
                                    #68

                                    @hek said:

                                    @TroyF

                                    You followed the download link for 1.4 on the main site?

                                    Hi Hek,

                                    Yeah from the main page, I went to the Download page and then hit the Download button under the 1.4 Latest Release section. The readme file in the archive says 1.4, but I'm looking for 1.4 Update 1 which has the fixes for the imperial vs. metric units with temperature sensors. I rebuilt my gateway with the code anyway but no change. Am I missing something?

                                    Thanks,
                                    Troy.

                                    hekH 1 Reply Last reply
                                    0
                                    • T TroyF

                                      @hek said:

                                      @TroyF

                                      You followed the download link for 1.4 on the main site?

                                      Hi Hek,

                                      Yeah from the main page, I went to the Download page and then hit the Download button under the 1.4 Latest Release section. The readme file in the archive says 1.4, but I'm looking for 1.4 Update 1 which has the fixes for the imperial vs. metric units with temperature sensors. I rebuilt my gateway with the code anyway but no change. Am I missing something?

                                      Thanks,
                                      Troy.

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

                                      @TroyF

                                      Then you're using the latest 1.4 version.

                                      You'll have to look at the debug prints on the sensor to see what is happening and determine if there's communication problem. I suspect that your sensors messages can reach the gateway but not the other way around (sometimes).

                                      T 1 Reply Last reply
                                      0
                                      • hekH hek

                                        @TroyF

                                        Then you're using the latest 1.4 version.

                                        You'll have to look at the debug prints on the sensor to see what is happening and determine if there's communication problem. I suspect that your sensors messages can reach the gateway but not the other way around (sometimes).

                                        T Offline
                                        T Offline
                                        TroyF
                                        wrote on last edited by
                                        #70

                                        @hek I did some testing and it appeared to be a sync issue. First I looked at the gateway and the debug messages showed Imperial units which matched the Vera UI. Then I unplugged the temp. sensor from power and plugged it into my laptop and it was reporting Metric units in the debug, and then Vera started showing Metric. So I unplugged the sensor from my laptop, plugged it back into it's original location and the units switched back to Imperial. Finally I just rebooted the gateway and the sensor and now Metric is working.

                                        Anyway, thanks for your help!

                                        T.

                                        NuubiN 1 Reply Last reply
                                        0
                                        • T TroyF

                                          @hek I did some testing and it appeared to be a sync issue. First I looked at the gateway and the debug messages showed Imperial units which matched the Vera UI. Then I unplugged the temp. sensor from power and plugged it into my laptop and it was reporting Metric units in the debug, and then Vera started showing Metric. So I unplugged the sensor from my laptop, plugged it back into it's original location and the units switched back to Imperial. Finally I just rebooted the gateway and the sensor and now Metric is working.

                                          Anyway, thanks for your help!

                                          T.

                                          NuubiN Offline
                                          NuubiN Offline
                                          Nuubi
                                          wrote on last edited by
                                          #71

                                          @TroyF I've noticed that plugging/unplugging a sensor quite often changes the units between Metric and Imperial. Wonder why?

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


                                          5

                                          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