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
P

patrikr76

@patrikr76
About
Posts
8
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 💬 Power Meter Pulse Sensor
    P patrikr76

    @mfalkvidd , you are absolutely right. Let me clarify.
    I am using the example code that is under build and power meter pulse sensor, updated may 1st, 2018.
    Running it with "sleep mode = false" it works fine with both usb and battery power, just drains the battery quite fast.
    Setting it to "sleep mode = true" it doesn't work either on usb or battery power.

    Here's how the serial monitor looks for the startup phase with sleep mode as true.

    23:21:24.219 ->  __  __       ____
    23:21:24.219 -> |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
    23:21:24.219 -> | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
    23:21:24.219 -> | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
    23:21:24.219 -> |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
    23:21:24.219 ->         |___/                      2.3.0
    23:21:24.219 -> 
    23:21:24.219 -> 16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.3.0
    23:21:24.254 -> 25 TSM:INIT
    23:21:24.254 -> 26 TSF:WUR:MS=0
    23:21:24.254 -> 33 TSM:INIT:TSP OK
    23:21:24.254 -> 35 TSF:SID:OK,ID=2
    23:21:24.254 -> 37 TSM:FPAR
    73 TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    201 TSF:MSG:READ,0-0-2,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    23:21:24.428 -> 205 TSF:MSG:FPAR OK,ID=0,D=1
    2080 TSM:FPAR:OK
    23:21:26.306 -> 2081 TSM:ID
    23:21:26.306 -> 2082 TSM:ID:OK
    23:21:26.306 -> 2084 TSM:UPL
    23:21:26.306 -> 2087 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    23:21:26.306 -> 2095 TSF:MSG:READ,0-0-2,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    23:21:26.306 -> 2100 TSF:MSG:PONG RECV,HP=1
    23:21:26.306 -> 2103 TSM:UPL:OK
    23:21:26.306 -> 2104 TSM:READY:ID=2,PAR=0,DIS=1
    23:21:26.306 -> 2109 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    23:21:26.341 -> 2118 TSF:MSG:READ,0-0-2,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    23:21:26.341 -> 2125 TSF:MSG:SEND,2-2-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.0
    23:21:26.341 -> 2134 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2203 TSF:MSG:READ,0-0-2,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    23:21:26.410 -> 2210 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=11,pt=0,l=12,sg=0,ft=0,st=OK:Energy Meter
    23:21:26.445 -> 2220 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0
    23:21:26.445 -> 2228 TSF:MSG:SEND,2-2-0-0,s=1,c=0,t=13,pt=0,l=0,sg=0,ft=0,st=OK:
    23:21:26.445 -> 2234 MCO:REG:REQ
    23:21:26.445 -> 2237 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2252 TSF:MSG:READ,0-0-2,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    23:21:26.480 -> 2257 MCO:PIM:NODE REG=1
    23:21:26.480 -> 2259 MCO:BGN:STP
    23:21:26.480 -> 2263 TSF:MSG:SEND,2-2-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    23:21:26.480 -> 2269 MCO:BGN:INIT OK,TSP=1
    23:21:26.480 -> 2272 MCO:SLP:MS=20000,SMS=0,I1=255,M1=255,I2=255,M2=255
    23:21:26.480 -> 2277 TSF:TDI:TSL
    

    As far as i can see it seems fine and also shows up in myscontroller.

    And here is an example how it looks after 20 seconds sleep.

    2414 MCO:SLP:WUP=-1
    23:26:36.346 -> 2416 TSF:TRI:TSB
    23:26:36.346 -> 2418 MCO:SLP:MS=20000,SMS=0,I1=255,M1=255,I2=255,M2=255
    23:26:36.346 -> 2423 TSF:TDI:TSL
    

    I don't see any connection attempts with my gateway, or shouldn't there by any if the sensor is not triggered?

    Here i can show how it looks when tricking the sensor with the ir on the mouse.

    2456 MCO:SLP:WUP=-1
    23:27:48.785 -> 2458 TSF:TRI:TSB
    23:27:48.785 -> 2460 MCO:SLP:MS=20000,SMS=0,I1=255,M1=255,I2=255,M2=255
    23:27:48.785 -> 2465 TSF:TDI:TSL
    2467 MCO:SLP:WUP=-1
    23:27:48.924 -> 2468 TSF:TRI:TSB
    23:27:48.959 -> 2470 MCO:SLP:MS=20000,SMS=0,I1=255,M1=255,I2=255,M2=255
    23:27:48.959 -> 2476 TSF:TDI:TSL
    2478 MCO:SLP:WUP=-1
    23:27:49.098 -> 2480 TSF:TRI:TSB
    23:27:49.098 -> 2481 MCO:SLP:MS=20000,SMS=0,I1=255,M1=255,I2=255,M2=255
    23:27:49.098 -> 2486 TSF:TDI:TSL
    2488 MCO:SLP:WUP=-1
    23:27:49.235 -> 2490 TSF:TRI:TSB
    23:27:49.235 -> 2492 MCO:SLP:MS=20000,SMS=0,I1=255,M1=255,I2=255,M2=255
    23:27:49.270 -> 2497 TSF:TDI:TSL
    2498 MCO:SLP:WUP=-1
    23:27:49.408 -> 2500 TSF:TRI:TSB
    23:27:49.408 -> 2502 MCO:SLP:MS=20000,SMS=0,I1=255,M1=255,I2=255,M2=255
    23:27:49.408 -> 2507 TSF:TDI:TSL
    2509 MCO:SLP:WUP=-1
    23:27:49.546 -> 2510 TSF:TRI:TSB
    23:27:49.546 -> 2512 MCO:SLP:MS=20000,SMS=0,I1=255,M1=255,I2=255,M2=255
    23:27:49.546 -> 2518 TSF:TDI:TSL
    

    Interrupt is triggered and it wakes up, but nothing is sent to the gateway.

    Have i missed something?

    Announcements
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular