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. NodeManager
  4. NodeManager: plugin for a rapid development of battery-powered sensors

NodeManager: plugin for a rapid development of battery-powered sensors

Scheduled Pinned Locked Moved NodeManager
223 Posts 23 Posters 73.0k Views 26 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.
  • U user2684

    @mar.conte ok, this looks better, the node is presenting correctly and I see the sensor triggering continuously. You still have a lot of radio failures while sending but this is another story and it is not related to the issue but keep in mind you are losing a few messages.
    Now, if I look at the digital read of the pin waking up the board (V=):

    SWITCH I=1 P=3 V=1
    

    This is HIGH so the board correctly wakes up. Since the signal apparently stays high, the board goes in and out of sleep so looks like an expected behavior. The are a couple of functions available to prevent this (setTriggerTime() and setDebounce()) but before giving direction I'd ask you to measure the voltage at pin 3 with a multimeter because it looks like the motion sensor goes HIGH and stay HIGH for a long time. If we know this timeframe, we can adjust the settings accordingly. Btw you should have the same behavior with the example sketch at https://www.mysensors.org/build/motion.
    Thanks

    mar.conteM Offline
    mar.conteM Offline
    mar.conte
    wrote on last edited by mar.conte
    #96

    @user2684
    Solved
    I solved it by putting settriggertime (5000) setdebounce (50); also solved the supply problems because if power is ftdi with the sensor was always high, with batteries the pir is stable and works well
    thanks for the support

    0_1492372761834_IMG_3804.JPG

    This is my reprap printed house for my project

    M.C.

    U 1 Reply Last reply
    0
    • mar.conteM mar.conte

      @user2684
      Solved
      I solved it by putting settriggertime (5000) setdebounce (50); also solved the supply problems because if power is ftdi with the sensor was always high, with batteries the pir is stable and works well
      thanks for the support

      0_1492372761834_IMG_3804.JPG

      This is my reprap printed house for my project

      U Offline
      U Offline
      user2684
      Contest Winner
      wrote on last edited by
      #97

      @mar.conte great to hear it is working now! For anybody else interested in these parameters, setDebounce() will set a debounce interval, e.g. the value of the input is checked after the interval from the wakeup so to avoid false positives, while seTriggerTime() ignore any input after the pir has triggered to avoid the sensor to trigger continuously. Btw, very nice and clean packaging!

      T 1 Reply Last reply
      0
      • mar.conteM Offline
        mar.conteM Offline
        mar.conte
        wrote on last edited by
        #98

        I have a problem, my node is in sleep for 60 minutes and hourly reads the battery voltage but when you wake the pir is high and in addition to the high volts sends me even then the controller sends me a pir pir movement false; how can I avoid it?

        M.C.

        U 1 Reply Last reply
        0
        • JonnyDev13J Offline
          JonnyDev13J Offline
          JonnyDev13
          wrote on last edited by
          #99

          Can I suggest updated sourceforge to say that the code has been moved to github, and leaving little else there? That way it's easier to update everything in the same place. I was browsing on sourceforge for a while and wondering "Why isn't this on github instead?" It wasn't even until I came back and started skimming this thread that I realized it was moved to github.

          U 1 Reply Last reply
          1
          • mar.conteM mar.conte

            I have a problem, my node is in sleep for 60 minutes and hourly reads the battery voltage but when you wake the pir is high and in addition to the high volts sends me even then the controller sends me a pir pir movement false; how can I avoid it?

            U Offline
            U Offline
            user2684
            Contest Winner
            wrote on last edited by
            #100

            @mar.conte said in NodeManager: plugin for a rapid development of battery-powered sensors:

            I have a problem, my node is in sleep for 60 minutes and hourly reads the battery voltage but when you wake the pir is high and in addition to the high volts sends me even then the controller sends me a pir pir movement false; how can I avoid it?

            So you are saying when the node wakes up not from the pir interrupt at the end of the sleeping cycle to report battery level, is it also reporting a V_TRIPPED with payload 0? Thanks

            mar.conteM 1 Reply Last reply
            0
            • JonnyDev13J JonnyDev13

              Can I suggest updated sourceforge to say that the code has been moved to github, and leaving little else there? That way it's easier to update everything in the same place. I was browsing on sourceforge for a while and wondering "Why isn't this on github instead?" It wasn't even until I came back and started skimming this thread that I realized it was moved to github.

              U Offline
              U Offline
              user2684
              Contest Winner
              wrote on last edited by
              #101

              @JonnyDev13 said in NodeManager: plugin for a rapid development of battery-powered sensors:

              Can I suggest updated sourceforge to say that the code has been moved to github

              Good advice thanks! I've changed the website link on Sourceforge as well as added a note in the description and redirected the "Support" link.

              JonnyDev13J 1 Reply Last reply
              0
              • U user2684

                @mar.conte said in NodeManager: plugin for a rapid development of battery-powered sensors:

                I have a problem, my node is in sleep for 60 minutes and hourly reads the battery voltage but when you wake the pir is high and in addition to the high volts sends me even then the controller sends me a pir pir movement false; how can I avoid it?

                So you are saying when the node wakes up not from the pir interrupt at the end of the sleeping cycle to report battery level, is it also reporting a V_TRIPPED with payload 0? Thanks

                mar.conteM Offline
                mar.conteM Offline
                mar.conte
                wrote on last edited by
                #102

                @user2684
                Yes of course but payload =1 pir movimento detect

                M.C.

                1 Reply Last reply
                0
                • gohanG Offline
                  gohanG Offline
                  gohan
                  Mod
                  wrote on last edited by
                  #103

                  What's the problem if it reports no motion?

                  mar.conteM 1 Reply Last reply
                  0
                  • U user2684

                    @JonnyDev13 said in NodeManager: plugin for a rapid development of battery-powered sensors:

                    Can I suggest updated sourceforge to say that the code has been moved to github

                    Good advice thanks! I've changed the website link on Sourceforge as well as added a note in the description and redirected the "Support" link.

                    JonnyDev13J Offline
                    JonnyDev13J Offline
                    JonnyDev13
                    wrote on last edited by
                    #104

                    @user2684 Looks great!

                    1 Reply Last reply
                    0
                    • gohanG gohan

                      What's the problem if it reports no motion?

                      mar.conteM Offline
                      mar.conteM Offline
                      mar.conte
                      wrote on last edited by
                      #105

                      @gohan
                      The problem is that motion report whenever sleep goes to wake to send me the battery status every 60 minutes ,then every 60 minutes sends me battery status and motion pir

                      M.C.

                      1 Reply Last reply
                      0
                      • gohanG Offline
                        gohanG Offline
                        gohan
                        Mod
                        wrote on last edited by
                        #106

                        Ok, but is it causing any problem?

                        mar.conteM 1 Reply Last reply
                        0
                        • gohanG gohan

                          Ok, but is it causing any problem?

                          mar.conteM Offline
                          mar.conteM Offline
                          mar.conte
                          wrote on last edited by
                          #107

                          @gohan
                          Definitely, if I put a pir sensor to monitor a security access I will never know if I had an intrusion if I have a false alarm

                          M.C.

                          1 Reply Last reply
                          0
                          • gohanG Offline
                            gohanG Offline
                            gohan
                            Mod
                            wrote on last edited by
                            #108

                            if it reports "no motion" it is not a false alarm. The important thing is it must report when there is "motion"

                            U 1 Reply Last reply
                            0
                            • gohanG gohan

                              if it reports "no motion" it is not a false alarm. The important thing is it must report when there is "motion"

                              U Offline
                              U Offline
                              user2684
                              Contest Winner
                              wrote on last edited by
                              #109

                              @gohan said in NodeManager: plugin for a rapid development of battery-powered sensors:

                              if it reports "no motion" it is not a false alarm. The important thing is it must report when there is "motion"

                              Agree with what @gohan says. But I'll look into this anyway @mar-conte, reporting no motion when waking up should not happen even if it is a minor issue (https://github.com/mysensors/NodeManager/issues/71). What should not happen at all is reporting motion (payload 1) but as far as I've understood this is the case.
                              Thanks

                              mar.conteM 1 Reply Last reply
                              0
                              • U user2684

                                @gohan said in NodeManager: plugin for a rapid development of battery-powered sensors:

                                if it reports "no motion" it is not a false alarm. The important thing is it must report when there is "motion"

                                Agree with what @gohan says. But I'll look into this anyway @mar-conte, reporting no motion when waking up should not happen even if it is a minor issue (https://github.com/mysensors/NodeManager/issues/71). What should not happen at all is reporting motion (payload 1) but as far as I've understood this is the case.
                                Thanks

                                mar.conteM Offline
                                mar.conteM Offline
                                mar.conte
                                wrote on last edited by
                                #110

                                @user2684
                                So with version 1.5 do I solve my problem too?

                                M.C.

                                U 1 Reply Last reply
                                0
                                • mar.conteM Offline
                                  mar.conteM Offline
                                  mar.conte
                                  wrote on last edited by mar.conte
                                  #111

                                  I noticed that the battery report if set to one hour does not happen every hour ...

                                  M.C.

                                  U 1 Reply Last reply
                                  0
                                  • mar.conteM mar.conte

                                    @user2684
                                    So with version 1.5 do I solve my problem too?

                                    U Offline
                                    U Offline
                                    user2684
                                    Contest Winner
                                    wrote on last edited by
                                    #112

                                    @mar.conte said in NodeManager: plugin for a rapid development of battery-powered sensors:

                                    So with version 1.5 do I solve my problem too?

                                    I'll look into it by then. Feel free to follow the github issue to see how it will evolve. Thanks!

                                    1 Reply Last reply
                                    0
                                    • mar.conteM mar.conte

                                      I noticed that the battery report if set to one hour does not happen every hour ...

                                      U Offline
                                      U Offline
                                      user2684
                                      Contest Winner
                                      wrote on last edited by
                                      #113

                                      @mar.conte said in NodeManager: plugin for a rapid development of battery-powered sensors:

                                      I noticed that the battery report if set to one hour does not happen every hour ...

                                      More details please :-) Does not happen at all, it is not regular, happens every other hour, etc. what is the case?
                                      Thanks!

                                      mar.conteM 1 Reply Last reply
                                      0
                                      • U user2684

                                        @mar.conte said in NodeManager: plugin for a rapid development of battery-powered sensors:

                                        I noticed that the battery report if set to one hour does not happen every hour ...

                                        More details please :-) Does not happen at all, it is not regular, happens every other hour, etc. what is the case?
                                        Thanks!

                                        mar.conteM Offline
                                        mar.conteM Offline
                                        mar.conte
                                        wrote on last edited by
                                        #114

                                        @user2684
                                        It happens even if i put 6 hours or every 3 hours so in the specified hours it is not regular the report sometimes jumps some report

                                        M.C.

                                        U 1 Reply Last reply
                                        0
                                        • mar.conteM mar.conte

                                          @user2684
                                          It happens even if i put 6 hours or every 3 hours so in the specified hours it is not regular the report sometimes jumps some report

                                          U Offline
                                          U Offline
                                          user2684
                                          Contest Winner
                                          wrote on last edited by
                                          #115

                                          @mar.conte said in NodeManager: plugin for a rapid development of battery-powered sensors:

                                          It happens even if i put 6 hours or every 3 hours so in the specified hours it is not regular the report sometimes jumps some report

                                          Ok, I'd probably need both MySensors and NodeManagers's logs to troubleshoot this, just to ensure there is no failure in sending out the messages as I've seen in the other logs you have previously shared.

                                          Thanks!

                                          mar.conteM 1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          9

                                          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