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

Pavel Polititsky

@Pavel Polititsky
About
Posts
24
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 💬 Building a wired RS485 sensor network
    P Pavel Polititsky

    I just trying to work with examples but my node always transmitting some piece of shit from hardware serial:

     
     __  __       ____
    |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
    | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
    | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
    |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
            |___/                      2.3.0
    
    16 MCO:BGN:INIT NODE,CP=RSNNA---,VER=2.3.0
    25 TSM:INIT
    26 TSF:WUR:MS=0
    28 TSM:INIT:TSP OK
    29 TSF:SID:OK,ID=5
    31 TSM:FPAR
    ⸮X⸮⸮w34 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2041 !TSM:FPAR:NO REPLY
    2043 TSM:FPAR
    ⸮X⸮⸮w2045 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4054 !TSM:FPAR:NO REPLY
    4056 TSM:FPAR
    ⸮X⸮⸮w4058 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6066 !TSM:FPAR:NO REPLY
    6068 TSM:FPAR
    ⸮X⸮⸮w6070 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8078 !TSM:FPAR:FAIL
    8079 TSM:FAIL:CNT=1
    8081 TSM:FAIL:DIS
    8083 TSF:TDI:TSL
    

    From software serial too

    ⸮X⸮⸮w
    ⸮X⸮⸮w
    ⸮X⸮⸮w
    ⸮X⸮⸮w
    

    Consequently the gateway can't find any device.
    I have tried also with RS485 with different baudrate. Finally I just connect my USB TTL directly to ouput pins, but always same result.
    How to fix it?

    Announcements

  • 💬 Door, Window and Push-button Sensor
    P Pavel Polititsky

    @nca78 oke, undestood
    Problem stiil not resolved. I want to send message again to the gateway if NACK but dont know how to do it.

    send(msg.set(value == HIGH), true); 
    

    in this case i have additional ack log in the serial debug, nothing more

    Announcements

  • 💬 Door, Window and Push-button Sensor
    P Pavel Polititsky

    @gohan how you know?
    Id 21 from range 0..255. Are you sure that is limit?

    Same with any different IDs, I tried sending message 3 times, this guarantees delivery of payload, but it using too much power

    Now I use power supply with 1117

    But my other nodes powered by CR2032 with boost 0.8-3.3V dc/dc with inductor coil on the NRF24 supply pin without any troubles

    Announcements

  • 💬 Door, Window and Push-button Sensor
    P Pavel Polititsky

    @gohan the default sketch with debounce library works better, but now i see my primary problem.
    Occasionally I have an ACK errors

    4231 TSF:MSG:SEND,21-21-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0
    4239 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    4245 TSF:TDI:TSL
    4247 MCO:SLP:WUP=0
    4249 TSF:TRI:TSB
    4290 !TSF:MSG:SEND,21-21-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=NACK:1
    4298 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    4302 TSF:TDI:TSL
    4304 MCO:SLP:WUP=0
    4306 TSF:TRI:TSB
    4313 TSF:MSG:SEND,21-21-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=OK:0
    4321 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    

    I tried to icrease the time ack on my controller - it does not help
    Ithink that I need to ckeck ack state on the node and send the message again, but have no idea how to do

    Announcements

  • 💬 Door, Window and Push-button Sensor
    P Pavel Polititsky

    I was build a new button node with new arduino (8mhz) and new nrf24, then update to 2.3.0 gateway and all other devices
    But now have a worse result than before

    16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.3.0
    26 TSM:INIT
    28 TSF:WUR:MS=0
    34 TSM:INIT:TSP OK
    36 TSF:SID:OK,ID=11
    38 TSM:FPAR
    75 TSF:MSG:SEND,11-11-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    403 TSF:MSG:READ,0-0-11,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    409 TSF:MSG:FPAR OK,ID=0,D=1
    2084 TSM:FPAR:OK
    2084 TSM:ID
    2086 TSM:ID:OK
    2088 TSM:UPL
    2093 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2099 TSF:MSG:READ,0-0-11,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2105 TSF:MSG:PONG RECV,HP=1
    2109 TSM:UPL:OK
    2111 TSM:READY:ID=11,PAR=0,DIS=1
    2129 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2138 TSF:MSG:READ,0-0-11,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2168 TSF:MSG:SEND,11-11-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.0
    2179 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2187 TSF:MSG:READ,0-0-11,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    2220 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:Door button
    2230 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.5
    2240 TSF:MSG:SEND,11-11-0-0,s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
    2246 MCO:REG:REQ
    2252 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2260 TSF:MSG:READ,0-0-11,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    2267 MCO:PIM:NODE REG=1
    2269 MCO:BGN:STP
    2271 MCO:BGN:INIT OK,TSP=1
    2275 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    2279 TSF:TDI:TSL
    2281 MCO:SLP:WUP=-1
    2283 TSF:TRI:TSB
    2287 TSF:MSG:SEND,11-11-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:0
    2295 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    2299 TSF:TDI:TSL
    

    the pressing button twice

    30343 MCO:SLP:WUP=0
    30345 TSF:TRI:TSB
    30347 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    30353 TSF:TDI:TSL
    30355 MCO:SLP:WUP=-1
    30357 TSF:TRI:TSB
    32043 !TSF:MSG:SEND,11-11-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=3,st=NACK:1
    32049 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    32055 TSF:TDI:TSL
    32057 MCO:SLP:WUP=0
    32059 TSF:TRI:TSB
    32061 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    32067 TSF:TDI:TSL
    32069 MCO:SLP:WUP=-1
    32071 TSF:TRI:TSB
    32073 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    32079 TSF:TDI:TSL
    32081 MCO:SLP:WUP=0
    32083 TSF:TRI:TSB
    32086 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    32092 TSF:TDI:TSL
    32094 MCO:SLP:WUP=-1
    32096 TSF:TRI:TSB
    33779 !TSF:MSG:SEND,11-11-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=4,st=NACK:0
    33787 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    33794 TSF:TDI:TSL
    

    But no incoming messages at the gateway. Only several random messages coming to controller from one hundred button clicks
    Sometimes after fast series of clicks I get this:

    23179 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23183 !MCO:SLP:TNR
    23185 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23191 !MCO:SLP:TNR
    23218 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23222 !MCO:SLP:TNR
    23224 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23230 !MCO:SLP:TNR
    23257 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23261 !MCO:SLP:TNR
    23263 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23269 !MCO:SLP:TNR
    23296 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23300 !MCO:SLP:TNR
    23302 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23308 !MCO:SLP:TNR
    23336 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23341 !MCO:SLP:TNR
    23343 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23349 !MCO:SLP:TNR
    23377 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23382 !MCO:SLP:TNR
    23384 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23390 !MCO:SLP:TNR
    23418 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23422 !MCO:SLP:TNR
    23425 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23431 !MCO:SLP:TNR
    23459 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23463 !MCO:SLP:TNR
    23465 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23472 !MCO:SLP:TNR
    23500 !TSF:SND:TNR
    23502 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23506 !MCO:SLP:TNR
    23508 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23515 !MCO:SLP:TNR
    23543 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23547 !MCO:SLP:TNR
    23549 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23556 !MCO:SLP:TNR
    23584 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23588 !MCO:SLP:TNR
    23590 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23597 !MCO:SLP:TNR
    23625 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23629 !MCO:SLP:TNR
    23631 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23638 !MCO:SLP:TNR
    23666 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23670 !MCO:SLP:TNR
    23672 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23678 !MCO:SLP:TNR
    23707 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23711 !MCO:SLP:TNR
    23713 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23719 !MCO:SLP:TNR
    23746 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23750 !MCO:SLP:TNR
    23752 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23758 !MCO:SLP:TNR
    23785 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23789 !MCO:SLP:TNR
    23791 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23797 !MCO:SLP:TNR
    23824 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23828 !MCO:SLP:TNR
    23830 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23836 !MCO:SLP:TNR
    23863 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23867 !MCO:SLP:TNR
    23869 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23875 !MCO:SLP:TNR
    23902 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23906 !MCO:SLP:TNR
    23908 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23914 !MCO:SLP:TNR
    23941 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23945 !MCO:SLP:TNR
    23947 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23953 !MCO:SLP:TNR
    23980 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    23984 !MCO:SLP:TNR
    23986 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    23992 !MCO:SLP:TNR
    24014 TSF:MSG:READ,0-0-11,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    24020 TSF:MSG:FPAR OK,ID=0,D=1
    24025 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24029 !MCO:SLP:TNR
    24031 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24037 !MCO:SLP:TNR
    24064 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24068 !MCO:SLP:TNR
    24070 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24076 !MCO:SLP:TNR
    24104 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24109 !MCO:SLP:TNR
    24111 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24117 !MCO:SLP:TNR
    24145 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24150 !MCO:SLP:TNR
    24152 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24158 !MCO:SLP:TNR
    24186 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24190 !MCO:SLP:TNR
    24193 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24199 !MCO:SLP:TNR
    24227 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24231 !MCO:SLP:TNR
    24233 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24240 !MCO:SLP:TNR
    24268 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24272 !MCO:SLP:TNR
    24274 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24281 !MCO:SLP:TNR
    24309 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24313 !MCO:SLP:TNR
    24315 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24322 !MCO:SLP:TNR
    24350 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24354 !MCO:SLP:TNR
    24356 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24363 !MCO:SLP:TNR
    24391 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24395 !MCO:SLP:TNR
    24397 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24403 !MCO:SLP:TNR
    24432 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24436 !MCO:SLP:TNR
    24438 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24444 !MCO:SLP:TNR
    24471 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24475 !MCO:SLP:TNR
    24477 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24483 !MCO:SLP:TNR
    24510 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24514 !MCO:SLP:TNR
    24516 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24522 !MCO:SLP:TNR
    24549 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24553 !MCO:SLP:TNR
    24555 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24561 !MCO:SLP:TNR
    24588 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24592 !MCO:SLP:TNR
    24594 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24600 !MCO:SLP:TNR
    24627 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24631 !MCO:SLP:TNR
    24633 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24639 !MCO:SLP:TNR
    24666 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24670 !MCO:SLP:TNR
    24672 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24678 !MCO:SLP:TNR
    24705 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24709 !MCO:SLP:TNR
    24711 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24717 !MCO:SLP:TNR
    24745 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24750 !MCO:SLP:TNR
    24752 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24758 !MCO:SLP:TNR
    24786 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24791 !MCO:SLP:TNR
    24793 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24799 !MCO:SLP:TNR
    24827 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24832 !MCO:SLP:TNR
    24834 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24840 !MCO:SLP:TNR
    24868 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24872 !MCO:SLP:TNR
    24875 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24881 !MCO:SLP:TNR
    24909 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24913 !MCO:SLP:TNR
    24915 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24922 !MCO:SLP:TNR
    24950 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24954 !MCO:SLP:TNR
    24956 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
    24963 !MCO:SLP:TNR
    24991 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
    24995 !MCO:SLP:TNR
    24997 MCO:SLP:MS=25,
    

    Then it continue works as before

    Actually I have problems only with fu@ing button, most simplest device. Several month I can't to start use it.
    All other devices are working properly even on 2.3.0 ver. :stuck_out_tongue_winking_eye:

    Announcements

  • 💬 Door, Window and Push-button Sensor
    P Pavel Polititsky

    @gohan already done but not possible to see anything
    Every line was shifted to the right side and finally no space left.
    I use minicom app for monitoring serial port

    ,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
                                                                       ,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=0;255;3;0;9;3726496 TSF:MSG:READ0:0
                                                                                                                                          1;3;1;0;16;0
                                                                                                                                                      ,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=0;255;3;0;9;3727488 TSF:MSG:READ0:0
                                                                                                                                                                                                                         1;3;1;0;16;0
                                                                                                                                                                                                                                     ,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=0;255;3;0;9;3728475 TSF:MSG:READ0:0
                                                                                                                                                                                                                                                                                                        1;3;1;0;16;0
                                                                                                                                                                                                                                                                                                                    ,1-1-0,s=3,c1
                                                                                                                                                                                                                                                                                                                                1
                                                                                                                                                                                                                                                                                                                                0
                                                                                                                                                                                                                                                                                                                                0
                                                                                                                                                                                                                                                                                                                                1
                                                                                                                                                                                                                                                                                                                                1
                                                                                                                                                                                                                                                                                                                                1
                                                                                                                                                                                                                                                                                                                                1
                                                                                                                                                                                                                                                                                                                                =
    
    

    Actually i need to make 100-1000 clicks to catch a fail moment
    Here is working fine

    Announcements

  • 💬 Door, Window and Push-button Sensor
    P Pavel Polititsky

    @gohan I cant to set correct speed for the serial port because used 1mhz@int osc
    I tried all options...

    Announcements

  • 💬 Door, Window and Push-button Sensor
    P Pavel Polititsky

    I have some troubles with this device.
    Sometimes it does not respond to the first click, sometimes it remains switched on after first click until second click

    When I press the button once - I see the LED on my gateway blinks always 3 times
    1 RX TX
    2 RX ERR
    3 RX ERR

    Device powered with CR2032 and running on 1Mhz@1.8V (internal clock)
    Button input pulled to GND with resistor 47K and waking up if VCC connected through the button
    Also have a 10uF tantal capacitor on power supply pins +several 0,1uF ceramic capacitors

    Actually I dont know how to debug/log my gateway messages on Linux

    Node code:

    
    
    // Enable debug prints to serial monitor
    //#define MY_DEBUG
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_NRF5_ESB
    //#define MY_RADIO_RFM69
    //#define MY_RADIO_RFM95
    #define MY_RF24_PA_LEVEL RF24_PA_HIGH
    
    #include <MySensors.h>
    
    #define SKETCH_NAME "Door button"
    #define SKETCH_MAJOR_VER "1"
    #define SKETCH_MINOR_VER "0"
    
    #define PRIMARY_CHILD_ID 3
    #define PRIMARY_BUTTON_PIN 2   // Arduino Digital I/O pin for button/reed switch
    //#define BATTERY_SENSE_PIN A6  // select the input pin for the battery sense point
    int oldBatteryPcnt = 0;
    
    // Change to V_LIGHT if you use S_LIGHT in presentation below
    MyMessage msg(PRIMARY_CHILD_ID, V_TRIPPED);
    
    void setup()
    {
      // Setup the buttons
      pinMode(PRIMARY_BUTTON_PIN, INPUT);
      //	pinMode(SECONDARY_BUTTON_PIN, INPUT_PULLUP);
    
    }
    
    void presentation()
    {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER);
      present(PRIMARY_CHILD_ID, S_DOOR);
    }
    
    // Loop will iterate on changes on the BUTTON_PINs
    void loop()
    {
      uint8_t value;
      static uint8_t sentValue = 2;
    
      // Short delay to allow buttons to properly settle
      sleep(5);
    
      value = digitalRead(PRIMARY_BUTTON_PIN);
    
      if (value != sentValue) {
        // Value has changed from last transmission, send the updated value
        send(msg.set(value == HIGH));
        sentValue = value;
      }
    
      // Sleep until something happens with the sensor
      sleep(PRIMARY_BUTTON_PIN - 2, CHANGE, 0);
    }
    

    Serial data, one line = one button click

    4;3;1;0;16;0
    4;3;1;0;16;1
    4;3;1;0;16;0
    4;3;1;0;16;0
    4;3;1;0;16;0
    4;3;1;0;16;1
    4;3;1;0;16;1
    4;3;1;0;16;0
    4;3;1;0;16;0
    4;3;1;0;16;0
    4;3;1;0;16;0
    4;3;1;0;16;1
    4;3;1;0;16;1
    4;3;1;0;16;1
    4;3;1;0;16;1
    4;3;1;0;16;1
    4;3;1;0;16;0
    4;3;1;0;16;0
    4;3;1;0;16;0
    4;3;1;0;16;1
    4;3;1;0;16;0
    4;3;1;0;16;1
    
    Announcements

  • Mysensors orange Pi SPI gateway
    P Pavel Polititsky

    @gohan 10uF ceramic does not help

    Troubleshooting

  • Mysensors orange Pi SPI gateway
    P Pavel Polititsky

    @gohan of course I have capacitor connected 100uF (even 1000uF)
    I will try aftermorrow because my esp shield in my office
    Anyway its not a solution, only for testing...

    Without IRQ I have
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7

    Troubleshooting

  • Mysensors orange Pi SPI gateway
    P Pavel Polititsky

    @gohan Now Ive changed my hardware to SPI according with this guide
    I have connected my NRF24 module (already checked on arduino) through SPI0 iface but something goes wrong again

    root@orangepipcplus:/MySensors#  ./bin/mysgw -d
    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0
    mysgw: Serial port /dev/ttyUSB020 (115200 baud) created
    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,0-0-0,s=0,c=0,t=0,pt=0,l=0,sg=0:
    mysgw: !TSF:MSG:LEN,0!=7
    mysgw: TSF:MSG:READ,14-14-0,s=0,c=0,t=14,pt=0,l=1,sg=1:
    mysgw: !TSF:MSG:LEN,14!=32
    mysgw: TSF:MSG:READ,14-14-0,s=0,c=0,t=14,pt=0,l=1,sg=1:
    mysgw: !TSF:MSG:LEN,0!=32
    

    NRF24 link looks like working properly but next I see
    infinite messages LEN,0! that going very fast

    root@orangepipcplus:/MySensors# ./configure --spi-spidev-device=/dev/spidev0.0 --my-transport=nrf24 --my-rf24-ce-pin=6 
    --my-rf24-cs-pin=10 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020 --my-rf24-irq-pin=5
    [SECTION] Detecting target machine.
      [OK] machine detected: SoC=unknown, Type=unknown, CPU=armv7l.
    [SECTION] Checking GPIO Sysfs.
      [OK] /sys/class/gpio/export found
    [SECTION] Detecting SPI driver.
      [OK] SPI driver detected:SPIDEV.
    [SECTION] Detecting init system.
      [OK] init system detected: systemd.
    [SECTION] Saving configuration.
    [SECTION] Cleaning previous builds.
    [OK] Finished.
    

    alt text
    Sure I know that GPIO H2 and H3 are different
    When I connecting IRQ wire - log has been ended at mysgw: MCO:BGN:INIT OK,TSP=1 and nothing more
    I have tried to change CE/CS pins numbers to wrong but log still the same. As if gpio not working

    Troubleshooting

  • 💬 Air Humidity Sensor - DHT
    P Pavel Polititsky

    In a serial debug of the sensor module
    It write something like "Failed to read data humidity (temperature)
    Also no send any data to gateway

    Without getMinimumSamplingPeriod I've receiving hum & temp through gateway

    Announcements

  • 💬 Air Humidity Sensor - DHT
    P Pavel Polititsky

    If I use this string in a code "sleep(dht.getMinimumSamplingPeriod());" DHT22 (AM2320) always read NaN
    else DHT22 working, but never sleeping
    What im doing wrong?

    Announcements

  • [SOLVED] NRF24 can not sleep
    P Pavel Polititsky

    @maghac Im using mastech MY65 and I can measure ~0.1uA minimal current with some error

    Development

  • [SOLVED] NRF24 can not sleep
    P Pavel Polititsky

    @mfalkvidd :astonished: Another module just fu...g works. Great thx!

    Development

  • [SOLVED] NRF24 can not sleep
    P Pavel Polititsky

    @mfalkvidd it's possible... :smirk:
    But in this case I want to know exactly how much consumes original module with any example... Then I will try to replace several modules.

    Development
  • Login

  • Don't have an account? Register

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