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 72.9k 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.
  • mar.conteM mar.conte

    @user2684
    it's ok this code?

    NodeManager nodeManager;
    SensorSwitch swiTch(1,3);
    // before
    void before() {
      // setup the serial port baud rate
      Serial.begin(MY_BAUD_RATE);  
      /*
       * Register below your sensors
      */
    swiTch.setMode(0);
    swiTch.setInitial(0);
    swiTch.setTriggerTime(4000);
      nodeManager.setSleep(SLEEP,60,MINUTES); 
      nodeManager.registerSensor(SENSOR_MOTION,3);```
    U Offline
    U Offline
    user2684
    Contest Winner
    wrote on last edited by
    #79

    @mar.conte sorry I'm not sure I have understood what you want to achieve. Do you have a motion sensor which is HIGH by default and when triggers goes LOW? Is this what you need?
    Thanks

    mar.conteM 1 Reply Last reply
    0
    • U user2684

      @mar.conte sorry I'm not sure I have understood what you want to achieve. Do you have a motion sensor which is HIGH by default and when triggers goes LOW? Is this what you need?
      Thanks

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

      @user2684

      Hello, I have a simple pir hcr501 that normally does not send output to pin 3 (so low) but when there is movement becomes HIGH, then my CPU goes to sleep for 60 minutes; the hardware is well configured because this setup I used it with the official mysensors sketches for pir motion; I do not understand why the domoticz controller is always the pir HIGH and does not go into sleep the MCU, thanks

      M.C.

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

        @user2684

        Hello, I have a simple pir hcr501 that normally does not send output to pin 3 (so low) but when there is movement becomes HIGH, then my CPU goes to sleep for 60 minutes; the hardware is well configured because this setup I used it with the official mysensors sketches for pir motion; I do not understand why the domoticz controller is always the pir HIGH and does not go into sleep the MCU, thanks

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

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

        Hello, I have a simple pir hcr501 that normally does not send output to pin 3 (so low) but when there is movement becomes HIGH

        Ok, so you don't need any customization in NodeManager since this is meeting the default behavior (LOW by default and triggering on HIGH), sorry for the wrong advice. Let's have a look at the sensor's logs then to see why the node is waking up continuously.

        Thanks!

        mar.conteM 1 Reply Last reply
        0
        • U user2684

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

          Hello, I have a simple pir hcr501 that normally does not send output to pin 3 (so low) but when there is movement becomes HIGH

          Ok, so you don't need any customization in NodeManager since this is meeting the default behavior (LOW by default and triggering on HIGH), sorry for the wrong advice. Let's have a look at the sensor's logs then to see why the node is waking up continuously.

          Thanks!

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

          @user2684
          @gohan

          node

          0 MCO:BGN:INIT NODE,CP=RRNNA--,VER=2.1.1
          40 MCO:BGN:BFR
          REG I=1 P=3 P=6 T=0
          NodeManager v1.4
          INT1 M=255
          INT2 M=255
          59 TSM:INIT
          135 TSF:WUR:MS=0
          155 TSM:INIT:TSP OK
          176 TSM:INIT:STATID=100
          202 TSF:SID:OK,ID=100
          225 TSM:FPAR
          370 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
          2244 TSF:MSG:READ,0-0-100,s=255,c=3,t=8,pt=1,l=1,sg=0:0
          2301 TSF:MSG:FPAR OK,ID=0,D=1
          2447 TSM:FPAR:OK
          2463 TSM:ID
          2478 TSM:ID:OK
          2492 TSM:UPL
          2639 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
          3678 TSF:MSG:READ,0-0-100,s=255,c=3,t=25,pt=1,l=1,sg=0:1
          3737 TSF:MSG:PONG RECV,HP=1
          3768 TSM:UPL:OK
          3784 TSM:READY:ID=100,PAR=0,DIS=1
          3883 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
          4003 TSF:MSG:READ,0-0-100,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
          4202 !TSF:MSG:SEND,100-100-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=NACK:2.1.1
          4415 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=NACK:0
          6733 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=11,pt=0,l=19,sg=0,ft=2,st=NACK:NodeManagerTemplate
          6928 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=3,st=OK:1.0
          RADIO OK
          PRES I=200, T=23
          7137 !TSF:MSG:SEND,100-100-0-0,s=200,c=0,t=23,pt=0,l=0,sg=0,ft=0,st=NACK:
          PRES I=201, T=30
          7321 TSF:MSG:SEND,100-100-0-0,s=201,c=0,t=30,pt=0,l=0,sg=0,ft=1,st=OK:
          BATT V=3.25 P=93
          SEND D=0 I=201 C=0 T=38 S= I=0 F=3.25
          7469 !MCO:SND:NODE NOT REG
          7587 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:93
          PRES I=1 T=6
          7794 !TSF:MSG:SEND,100-100-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=NACK:
          READY
          
          7868 MCO:REG:REQ
          7933 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=OK:2
          9019 TSF:MSG:READ,0-0-100,s=255,c=3,t=27,pt=1,l=1,sg=0:1
          9078 MCO:PIM:NODE REG=1
          9105 MCO:BGN:STP
          MY I=100 M=1
          9123 MCO:BGN:INIT OK,TSP=1
          THER I=1 V=354.00 T=40.05
           M=1
          SEND D=0 I=1 C=0 T=0 S= N=0 F=40.05
          9224 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:40.05
          SLEEP 3600s
          
          9316 MCO:SLP:MS=3600000,SMS=1,I1=255,M1=255,I2=255,M2=255
          9527 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=NACK:287
          9607 TSF:MSG:READ,0-0-100,s=255,c=3,t=27,pt=1,l=1,sg=0:1
          9666 !TSF:MSG:LEN,0!=8
          10108 MCO:SLP:TPD```
          
          
          

          Gateway

          0;255;3;0;9;TSF:MSG:READ,100-100-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSF:MSG:BC
          0;255;3;0;9;TSF:MSG:FPAR REQ,ID=100
          0;255;3;0;9;TSF:PNG:SEND,TO=0
          0;255;3;0;9;TSF:CKU:OK
          0;255;3;0;9;TSF:MSG:GWL OK
          0;255;3;0;9;TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
          0;255;3;0;9;TSF:MSG:PINGED,ID=100,HP=1
          0;255;3;0;9;TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
          0;255;3;0;9;TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1
          0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/255/0/0/17
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=11,pt=0,l=19,sg=0:NodeManagerTemplate
          0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/255/3/0/11
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=200,c=0,t=23,pt=0,l=0,sg=0:
          0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/200/0/0/23
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=0,pt=1,l=1,sg=0:85
          0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/255/3/0/0
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
          0;255;3;0;9;TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=1,c=1,t=0,pt=7,l=5,sg=0:36.72
          0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/1/1/0/0
          0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=22,pt=5,l=4,sg=0:286
          0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/255/3/0/22
          0;255;3;0;9;Message arrived on topic: domoticz/out/MyMQTT/0/0/3/0/18
          0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/0/255/3/0/22
          

          0_1491753073560_domoticz_screen.jpg

          M.C.

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

            @user2684
            @gohan

            node

            0 MCO:BGN:INIT NODE,CP=RRNNA--,VER=2.1.1
            40 MCO:BGN:BFR
            REG I=1 P=3 P=6 T=0
            NodeManager v1.4
            INT1 M=255
            INT2 M=255
            59 TSM:INIT
            135 TSF:WUR:MS=0
            155 TSM:INIT:TSP OK
            176 TSM:INIT:STATID=100
            202 TSF:SID:OK,ID=100
            225 TSM:FPAR
            370 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
            2244 TSF:MSG:READ,0-0-100,s=255,c=3,t=8,pt=1,l=1,sg=0:0
            2301 TSF:MSG:FPAR OK,ID=0,D=1
            2447 TSM:FPAR:OK
            2463 TSM:ID
            2478 TSM:ID:OK
            2492 TSM:UPL
            2639 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
            3678 TSF:MSG:READ,0-0-100,s=255,c=3,t=25,pt=1,l=1,sg=0:1
            3737 TSF:MSG:PONG RECV,HP=1
            3768 TSM:UPL:OK
            3784 TSM:READY:ID=100,PAR=0,DIS=1
            3883 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
            4003 TSF:MSG:READ,0-0-100,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
            4202 !TSF:MSG:SEND,100-100-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=NACK:2.1.1
            4415 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=NACK:0
            6733 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=11,pt=0,l=19,sg=0,ft=2,st=NACK:NodeManagerTemplate
            6928 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=3,st=OK:1.0
            RADIO OK
            PRES I=200, T=23
            7137 !TSF:MSG:SEND,100-100-0-0,s=200,c=0,t=23,pt=0,l=0,sg=0,ft=0,st=NACK:
            PRES I=201, T=30
            7321 TSF:MSG:SEND,100-100-0-0,s=201,c=0,t=30,pt=0,l=0,sg=0,ft=1,st=OK:
            BATT V=3.25 P=93
            SEND D=0 I=201 C=0 T=38 S= I=0 F=3.25
            7469 !MCO:SND:NODE NOT REG
            7587 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:93
            PRES I=1 T=6
            7794 !TSF:MSG:SEND,100-100-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=NACK:
            READY
            
            7868 MCO:REG:REQ
            7933 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=OK:2
            9019 TSF:MSG:READ,0-0-100,s=255,c=3,t=27,pt=1,l=1,sg=0:1
            9078 MCO:PIM:NODE REG=1
            9105 MCO:BGN:STP
            MY I=100 M=1
            9123 MCO:BGN:INIT OK,TSP=1
            THER I=1 V=354.00 T=40.05
             M=1
            SEND D=0 I=1 C=0 T=0 S= N=0 F=40.05
            9224 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:40.05
            SLEEP 3600s
            
            9316 MCO:SLP:MS=3600000,SMS=1,I1=255,M1=255,I2=255,M2=255
            9527 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=NACK:287
            9607 TSF:MSG:READ,0-0-100,s=255,c=3,t=27,pt=1,l=1,sg=0:1
            9666 !TSF:MSG:LEN,0!=8
            10108 MCO:SLP:TPD```
            
            
            

            Gateway

            0;255;3;0;9;TSF:MSG:READ,100-100-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
            0;255;3;0;9;TSF:MSG:BC
            0;255;3;0;9;TSF:MSG:FPAR REQ,ID=100
            0;255;3;0;9;TSF:PNG:SEND,TO=0
            0;255;3;0;9;TSF:CKU:OK
            0;255;3;0;9;TSF:MSG:GWL OK
            0;255;3;0;9;TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
            0;255;3;0;9;TSF:MSG:PINGED,ID=100,HP=1
            0;255;3;0;9;TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
            0;255;3;0;9;TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1
            0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/255/0/0/17
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=11,pt=0,l=19,sg=0:NodeManagerTemplate
            0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/255/3/0/11
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=200,c=0,t=23,pt=0,l=0,sg=0:
            0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/200/0/0/23
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=0,pt=1,l=1,sg=0:85
            0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/255/3/0/0
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
            0;255;3;0;9;TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=1,c=1,t=0,pt=7,l=5,sg=0:36.72
            0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/1/1/0/0
            0;255;3;0;9;TSF:MSG:READ,100-100-0,s=255,c=3,t=22,pt=5,l=4,sg=0:286
            0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/100/255/3/0/22
            0;255;3;0;9;Message arrived on topic: domoticz/out/MyMQTT/0/0/3/0/18
            0;255;3;0;9;Sending message on topic: domoticz/in/MyMQTT/0/255/3/0/22
            

            0_1491753073560_domoticz_screen.jpg

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

            @mar.conte there is something strange with this node. First of all the node is still presenting the temperature and not the motion sensor. Then I see a lot of failures during transmit but also while receiving (!TSF:MSG:LEN,0!=8). Are you sure you don't have something like two nodes with the same id?

            mar.conteM 1 Reply Last reply
            0
            • U user2684

              @mar.conte there is something strange with this node. First of all the node is still presenting the temperature and not the motion sensor. Then I see a lot of failures during transmit but also while receiving (!TSF:MSG:LEN,0!=8). Are you sure you don't have something like two nodes with the same id?

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

              @user2684
              hi, I noticed that the zero node has a child called S_Arduino_Repeater with an id equal to 255 child node, called 100 S_Arduino_Node, what do you recommend?
              smotion now appears I had mistakenly entered analog 0 on a wire that went to +Power

              M.C.

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

                @user2684
                hi, I noticed that the zero node has a child called S_Arduino_Repeater with an id equal to 255 child node, called 100 S_Arduino_Node, what do you recommend?
                smotion now appears I had mistakenly entered analog 0 on a wire that went to +Power

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

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

                I noticed that the zero node has a child called S_Arduino_Repeater with an id equal to 255 child node, called 100 S_Arduino_Node

                The node 0 is the gateway which presents itself as S_ARDUINO_REPEATER, the child id 255 is the broadcast address, the node id 100 is instead you node. This is all correct (with or without NodeManager). Glad to hear the motion sensor is now showing up. Is it still trigger continuously?
                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 zero node has a child called S_Arduino_Repeater with an id equal to 255 child node, called 100 S_Arduino_Node

                  The node 0 is the gateway which presents itself as S_ARDUINO_REPEATER, the child id 255 is the broadcast address, the node id 100 is instead you node. This is all correct (with or without NodeManager). Glad to hear the motion sensor is now showing up. Is it still trigger continuously?
                  Thanks

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

                  @user2684
                  Yes trig again!!!

                  M.C.

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

                    @user2684
                    Yes trig again!!!

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

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

                    Yes trig again!!!

                    Ok, if triggers continuously, please share the logs of the node now that has been fixed so we can have a look.
                    Thanks!

                    mar.conteM 1 Reply Last reply
                    0
                    • U user2684

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

                      Yes trig again!!!

                      Ok, if triggers continuously, please share the logs of the node now that has been fixed so we can have a look.
                      Thanks!

                      mar.conteM Offline
                      mar.conteM Offline
                      mar.conte
                      wrote on last edited by gohan
                      #88

                      @user2684
                      Hi,

                      NODE OUTPUT

                      0 MCO:BGN:INIT NODE,CP=RRNNA--,VER=2.1.1
                      40 MCO:BGN:BFR
                      REG I=1 P=3 P=1 T=16
                      NodeManager v1.4
                      INT1 M=3
                      INT2 M=255
                      59 TSM:INIT
                      135 TSF:WUR:MS=0
                      153 TSM:INIT:TSP OK
                      176 TSM:INIT:STATID=100
                      200 TSF:SID:OK,ID=100
                      223 TSM:FPAR
                      368 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                      641 TSF:MSG:READ,0-0-100,s=255,c=3,t=8,pt=1,l=1,sg=0:0
                      698 TSF:MSG:FPAR OK,ID=0,D=1
                      2445 TSM:FPAR:OK
                      2461 TSM:ID
                      2476 TSM:ID:OK
                      2490 TSM:UPL
                      2512 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
                      2633 TSF:MSG:READ,0-0-100,s=255,c=3,t=25,pt=1,l=1,sg=0:1
                      2693 TSF:MSG:PONG RECV,HP=1
                      2721 TSM:UPL:OK
                      2738 TSM:READY:ID=100,PAR=0,DIS=1
                      2785 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
                      2904 TSF:MSG:READ,0-0-100,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
                      3018 TSF:MSG:SEND,100-100-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
                      3229 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=NACK:0
                      5316 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=11,pt=0,l=19,sg=0,ft=1,st=OK:NodeManagerTemplate
                      5541 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=NACK:1.0
                      RADIO OK
                      PRES I=200, T=23
                      5715 TSF:MSG:SEND,100-100-0-0,s=200,c=0,t=23,pt=0,l=0,sg=0,ft=1,st=OK:
                      PRES I=201, T=30
                      5922 !TSF:MSG:SEND,100-100-0-0,s=201,c=0,t=30,pt=0,l=0,sg=0,ft=0,st=NACK:
                      BATT V=3.21 P=86
                      SEND D=0 I=201 C=0 T=38 S= I=0 F=3.21
                      6072 !MCO:SND:NODE NOT REG
                      6164 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=1,st=OK:86
                      PRES I=1 T=1
                      6371 !TSF:MSG:SEND,100-100-0-0,s=1,c=0,t=1,pt=0,l=0,sg=0,ft=0,st=NACK:
                      READY
                      
                      6445 MCO:REG:REQ
                      6531 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=OK:2
                      6619 TSF:MSG:READ,0-0-100,s=255,c=3,t=27,pt=1,l=1,sg=0:1
                      6678 MCO:PIM:NODE REG=1
                      6705 MCO:BGN:STP
                      MY I=100 M=1
                      6723 MCO:BGN:INIT OK,TSP=1
                      SWITCH I=1 P=3 V=1
                      SEND D=0 I=1 C=0 T=16 S= N=1 F=0.00
                      6817 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1
                      SLEEP 3600s
                      
                      6897 MCO:SLP:MS=3600000,SMS=1,I1=1,M1=3,I2=255,M2=255
                      7104 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=NACK:264
                      7684 MCO:SLP:TPD
                      7700 MCO:SLP:WUP=1
                      WAKE P=3, M=3
                      AWAKE
                      SWITCH I=1 P=3 V=1
                      SEND D=0 I=1 C=1 T=16 S= N=1 F=0.00
                      7786 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=OK:1
                      SLEEP 3600s
                      
                      7876 MCO:SLP:MS=3600000,SMS=1,I1=1,M1=3,I2=255,M2=255
                      8087 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=NACK:1243
                      8667 MCO:SLP:TPD
                      8683 MCO:SLP:WUP=1
                      WAKE P=3, M=3
                      AWAKE
                      SWITCH I=1 P=3 V=1
                      SEND D=0 I=1 C=1 T=16 S= N=1 F=0 
                      8757 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=OK:1
                      SLEEP 3600s
                      
                      8859 MCO:SLP:MS=3600000,SMS=1,I1=1,M1=3,I2=255,M2=255
                      8982 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=OK:2226
                      9562 MCO:SLP:TPD
                      9578 MCO:SLP:WUP=1
                      WAKE P=3, M=3
                      AWAKE
                      SWITCH I=1 P=3 V=1
                      SEND D=0 I=1 C=1 T=16 S= N=1 F=0.00
                      9621 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1
                      SLEEP 3600s
                      
                      9754 MCO:SLP:MS=3600000,SMS=1,I1=1,M1=3,I2=255,M2=255
                      9961 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=NACK:3121
                      10541 MCO:SLP:TPD
                      

                      Tanks

                      M.C.

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

                        @user2684
                        Hi,

                        NODE OUTPUT

                        0 MCO:BGN:INIT NODE,CP=RRNNA--,VER=2.1.1
                        40 MCO:BGN:BFR
                        REG I=1 P=3 P=1 T=16
                        NodeManager v1.4
                        INT1 M=3
                        INT2 M=255
                        59 TSM:INIT
                        135 TSF:WUR:MS=0
                        153 TSM:INIT:TSP OK
                        176 TSM:INIT:STATID=100
                        200 TSF:SID:OK,ID=100
                        223 TSM:FPAR
                        368 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                        641 TSF:MSG:READ,0-0-100,s=255,c=3,t=8,pt=1,l=1,sg=0:0
                        698 TSF:MSG:FPAR OK,ID=0,D=1
                        2445 TSM:FPAR:OK
                        2461 TSM:ID
                        2476 TSM:ID:OK
                        2490 TSM:UPL
                        2512 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
                        2633 TSF:MSG:READ,0-0-100,s=255,c=3,t=25,pt=1,l=1,sg=0:1
                        2693 TSF:MSG:PONG RECV,HP=1
                        2721 TSM:UPL:OK
                        2738 TSM:READY:ID=100,PAR=0,DIS=1
                        2785 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
                        2904 TSF:MSG:READ,0-0-100,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
                        3018 TSF:MSG:SEND,100-100-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
                        3229 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=NACK:0
                        5316 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=11,pt=0,l=19,sg=0,ft=1,st=OK:NodeManagerTemplate
                        5541 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=NACK:1.0
                        RADIO OK
                        PRES I=200, T=23
                        5715 TSF:MSG:SEND,100-100-0-0,s=200,c=0,t=23,pt=0,l=0,sg=0,ft=1,st=OK:
                        PRES I=201, T=30
                        5922 !TSF:MSG:SEND,100-100-0-0,s=201,c=0,t=30,pt=0,l=0,sg=0,ft=0,st=NACK:
                        BATT V=3.21 P=86
                        SEND D=0 I=201 C=0 T=38 S= I=0 F=3.21
                        6072 !MCO:SND:NODE NOT REG
                        6164 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=1,st=OK:86
                        PRES I=1 T=1
                        6371 !TSF:MSG:SEND,100-100-0-0,s=1,c=0,t=1,pt=0,l=0,sg=0,ft=0,st=NACK:
                        READY
                        
                        6445 MCO:REG:REQ
                        6531 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=OK:2
                        6619 TSF:MSG:READ,0-0-100,s=255,c=3,t=27,pt=1,l=1,sg=0:1
                        6678 MCO:PIM:NODE REG=1
                        6705 MCO:BGN:STP
                        MY I=100 M=1
                        6723 MCO:BGN:INIT OK,TSP=1
                        SWITCH I=1 P=3 V=1
                        SEND D=0 I=1 C=0 T=16 S= N=1 F=0.00
                        6817 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1
                        SLEEP 3600s
                        
                        6897 MCO:SLP:MS=3600000,SMS=1,I1=1,M1=3,I2=255,M2=255
                        7104 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=NACK:264
                        7684 MCO:SLP:TPD
                        7700 MCO:SLP:WUP=1
                        WAKE P=3, M=3
                        AWAKE
                        SWITCH I=1 P=3 V=1
                        SEND D=0 I=1 C=1 T=16 S= N=1 F=0.00
                        7786 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=OK:1
                        SLEEP 3600s
                        
                        7876 MCO:SLP:MS=3600000,SMS=1,I1=1,M1=3,I2=255,M2=255
                        8087 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=NACK:1243
                        8667 MCO:SLP:TPD
                        8683 MCO:SLP:WUP=1
                        WAKE P=3, M=3
                        AWAKE
                        SWITCH I=1 P=3 V=1
                        SEND D=0 I=1 C=1 T=16 S= N=1 F=0 
                        8757 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=OK:1
                        SLEEP 3600s
                        
                        8859 MCO:SLP:MS=3600000,SMS=1,I1=1,M1=3,I2=255,M2=255
                        8982 TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=OK:2226
                        9562 MCO:SLP:TPD
                        9578 MCO:SLP:WUP=1
                        WAKE P=3, M=3
                        AWAKE
                        SWITCH I=1 P=3 V=1
                        SEND D=0 I=1 C=1 T=16 S= N=1 F=0.00
                        9621 TSF:MSG:SEND,100-100-0-0,s=1,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1
                        SLEEP 3600s
                        
                        9754 MCO:SLP:MS=3600000,SMS=1,I1=1,M1=3,I2=255,M2=255
                        9961 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=NACK:3121
                        10541 MCO:SLP:TPD
                        

                        Tanks

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

                        @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 2 Replies Last reply
                        0
                        • 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
                          #90

                          @user2684
                          ok, I will check first the voltage of the pir and even the power of the MCU, it seems to me that the rfm69 module does not communicate with each other (node-gateway), it seems strange because with the sketch of links that you suggested it all works well ! thanks anyway I'll do my tests and let you know soon ...

                          M.C.

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

                            I wanted to know what are the connections to monitor the batteries of my sensor, do I connect the battery V+ to the analog pin A0?

                            M.C.

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

                              I wanted to know what are the connections to monitor the batteries of my sensor, do I connect the battery V+ to the analog pin A0?

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

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

                              I wanted to know what are the connections to monitor the batteries of my sensor, do I connect the battery V+ to the analog pin A0?

                              If you are connecting the arduino directly to the battery (e.g. no step-up-down), then you don't need any connection since NodeManager is able to sense and measure the input vcc (and according to my measures it is very accurate). In case instead you need to use the method here https://www.mysensors.org/build/battery, you need the following:

                              nodeManager.setBatteryInternalVcc(false);
                              nodeManager.setBatteryPin(A0);
                              

                              You can even customize the default 0.003363075 voltage per bit with setBatteryVoltsPerBit()

                              mar.conteM 1 Reply Last reply
                              0
                              • U user2684

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

                                I wanted to know what are the connections to monitor the batteries of my sensor, do I connect the battery V+ to the analog pin A0?

                                If you are connecting the arduino directly to the battery (e.g. no step-up-down), then you don't need any connection since NodeManager is able to sense and measure the input vcc (and according to my measures it is very accurate). In case instead you need to use the method here https://www.mysensors.org/build/battery, you need the following:

                                nodeManager.setBatteryInternalVcc(false);
                                nodeManager.setBatteryPin(A0);
                                

                                You can even customize the default 0.003363075 voltage per bit with setBatteryVoltsPerBit()

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

                                @user2684

                                THEN MY NODE WILL BE CONNECTED TO A BATTERY 3.6 VOLT AA 2600 MAH, SO I DO NOT RIGHT CONNECTIONS? BUT I HAVE TO CHANGE OTHER PARAMETERS TO BEING 3.6?
                                TANKS

                                M.C.

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

                                  @user2684

                                  THEN MY NODE WILL BE CONNECTED TO A BATTERY 3.6 VOLT AA 2600 MAH, SO I DO NOT RIGHT CONNECTIONS? BUT I HAVE TO CHANGE OTHER PARAMETERS TO BEING 3.6?
                                  TANKS

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

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

                                  THEN MY NODE WILL BE CONNECTED TO A BATTERY 3.6 VOLT AA 2600 MAH, SO I DO NOT RIGHT CONNECTIONS? BUT I HAVE TO CHANGE OTHER PARAMETERS TO BEING 3.6?
                                  TANKS

                                  If directly connected to the battery you don't need any other connection. To set minimum and maximum voltage to have an accurate battery percentage level calculated you need to use e.g.:

                                  nodeManager.setBatteryMin(2.7);
                                  nodeManager.setBatteryMax(3.6);
                                  

                                  So the percentage will be calculated between the two values.

                                  mar.conteM 1 Reply Last reply
                                  0
                                  • U user2684

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

                                    THEN MY NODE WILL BE CONNECTED TO A BATTERY 3.6 VOLT AA 2600 MAH, SO I DO NOT RIGHT CONNECTIONS? BUT I HAVE TO CHANGE OTHER PARAMETERS TO BEING 3.6?
                                    TANKS

                                    If directly connected to the battery you don't need any other connection. To set minimum and maximum voltage to have an accurate battery percentage level calculated you need to use e.g.:

                                    nodeManager.setBatteryMin(2.7);
                                    nodeManager.setBatteryMax(3.6);
                                    

                                    So the percentage will be calculated between the two values.

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

                                    @user2684

                                    Much easy INFINITE THANKS AND CONGRATULATIONS

                                    M.C.

                                    1 Reply Last reply
                                    1
                                    • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          15

                                          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