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. Troubleshooting
  3. Reliability again

Reliability again

Scheduled Pinned Locked Moved Troubleshooting
19 Posts 6 Posters 5.1k 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

    @jocke4u said:

    Should be mentioned that ALL other sensors stopped working when doing this change.

    This is strange. @Yveaux could this be related to bugfix you've done in development? Sound like all sensors picks up the parent or id request response.

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

    @hek I didn't fix that (yet) as we didn't agree on the solution yet ;-)
    Let's finish that discussion then and fix this bug :facepunch:

    http://yveaux.blogspot.nl

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JeJ
      wrote on last edited by
      #7

      I had a similar problem.
      When the sensor node doesn't receive kWh from the gateway it "spams" the radio network with the kWh request. (Value 24)
      In my case all of the other senors also lost communication.
      If i set "boolean pcReceived = true;" it works.

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

        @JeJ
        Yes, thats it! A bug in the PulseSensor code.
        I will check in an updated version during the evening (CET). lastSend must be updated in loop().

         .....
         } else if (sendTime && !pcReceived) {
            // No count received. Try requesting it again
           gw.request(CHILD_ID, V_VAR1);
           lastSend=now;
         }
        .....
        
        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #9

          Fix for this has been checked into master now.

          jocke4uJ 1 Reply Last reply
          0
          • T Offline
            T Offline
            tbully
            wrote on last edited by
            #10

            Thanks guys. Nice catch. I also had this problem with the water version.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tbully
              wrote on last edited by
              #11

              Can someone explain how to call gw.begin(); in a sensor to adjust the power level?

              I read the troubleshooting page but it wasn't clear how the parameters would look.

              When calling the function, do you have to call all the parameters or just the power level?

              gw.begin(RF24_PA_LOW); ?

              Is it the same for a gateway?

              1 Reply Last reply
              0
              • blaceyB Offline
                blaceyB Offline
                blacey
                Admin
                wrote on last edited by
                #12

                The best place to set the power level is in MyConfig.h. You can set the channel, gateway power level and sensor power level. See https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/MyConfig.h

                jocke4uJ 1 Reply Last reply
                1
                • T Offline
                  T Offline
                  tbully
                  wrote on last edited by
                  #13

                  Thanks @blacey . I was trying to configure it per sensor without having to remember to go in to the library each time.

                  This works fine, though.

                  1 Reply Last reply
                  0
                  • hekH hek

                    Fix for this has been checked into master now.

                    jocke4uJ Offline
                    jocke4uJ Offline
                    jocke4u
                    wrote on last edited by
                    #14

                    @hek
                    Thanks for the fix.
                    I have implemented it but still the gateway hangs when sending the requested KWH value to the sensor. Doesn't it have any timeout etc?

                    I have also implemented the fix + lowered PA. Still not working.

                    1 Reply Last reply
                    0
                    • blaceyB blacey

                      The best place to set the power level is in MyConfig.h. You can set the channel, gateway power level and sensor power level. See https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/MyConfig.h

                      jocke4uJ Offline
                      jocke4uJ Offline
                      jocke4u
                      wrote on last edited by
                      #15

                      @blacey said:

                      The best place to set the power level is in MyConfig.h.

                      I am not sure if I agree if you have different sensors with different hardware (as I have) since changing MyConfig.h will change it globally.

                      @tbully
                      I have used this code:

                      gw.begin(incomingMessage, AUTO, false, AUTO, RF24_PA_LOW);
                      

                      Since the PA parameter is the fourth one, you need to set the ones before (but go with defaults for the ones after)

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

                        @jocke4u said:

                        I have implemented it but still the gateway hangs when sending the requested KWH value to the sensor.

                        Strange. Is the sensor still "spamming" the gateway?

                        jocke4uJ 1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          tbully
                          wrote on last edited by
                          #17

                          The fix certainly fixed the random "spamming" issue for me. I was tearing my hair out on that one.

                          I have not had the hang yet but have only been running my water sensors (pulse, just like the power) for 4-5 days.

                          1 Reply Last reply
                          0
                          • hekH hek

                            @jocke4u said:

                            I have implemented it but still the gateway hangs when sending the requested KWH value to the sensor.

                            Strange. Is the sensor still "spamming" the gateway?

                            jocke4uJ Offline
                            jocke4uJ Offline
                            jocke4u
                            wrote on last edited by
                            #18

                            @hek said:

                            Strange. Is the sensor still "spamming" the gateway?

                            Damn, I made the fix but because of a stupid reason I uploaded the old version :(
                            I have now loaded a limited software with only EnergyPulseMeter, it partly works but I get too many "fail" when sending (even though many reaches GW).
                            As next step I think I need to connect an external 5V power supply and AMS1117 to feed the radio and hopefully get better reliability in transmits.
                            I guess no extra capacitor is needed due to 800mA max current?

                            1 Reply Last reply
                            0
                            • jocke4uJ jocke4u

                              @blacey said:

                              The best place to set the power level is in MyConfig.h.

                              I am not sure if I agree if you have different sensors with different hardware (as I have) since changing MyConfig.h will change it globally.

                              @tbully
                              I have used this code:

                              gw.begin(incomingMessage, AUTO, false, AUTO, RF24_PA_LOW);
                              

                              Since the PA parameter is the fourth one, you need to set the ones before (but go with defaults for the ones after)

                              blaceyB Offline
                              blaceyB Offline
                              blacey
                              Admin
                              wrote on last edited by blacey
                              #19

                              @jocke4u said:

                              I have used this code:

                              gw.begin(incomingMessage, AUTO, false, AUTO, RF24_PA_LOW);

                              Since the PA parameter is the fourth one, you need to set the ones before (but go with defaults for the ones after)

                              Yes, the MySensors configuration design is to set the unified configuration parameters in MyConfig.h to ensure common sensor configs (.e.g. channel) across sensors but then override on a per-sensor basis as needed.

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


                              11

                              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