MySensors2 connection issue



  • Hi,

    I have issue with establish connection between sensor and gw. I used code from examples plus below definition to enable full log. Both sensor and gw are build on arduino nano (but I also tried uno) and I use 10uF capacitor for both.

    Bellow I attached log from gw and sensor. I assuming that problem is with sensor, but not 100% sure

    Any suggestion welcome what I can or what I've doing wrong.

    #define MY_DEBUG
    #define MY_DEBUG_VERBOSE_RF24
    #define MY_RADIO_NRF24
    #define MY_NODE_ID 1
    
    #define MY_RF24_PA_LEVEL RF24_PA_LOW
    #define MY_RF24_DATARATE RF24_1MBPS
    

    So this is log from gw.

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;RF24:write register, reg=0, value=14
    0;255;3;0;9;RF24:write register, reg=3, value=3
    0;255;3;0;9;RF24:write register, reg=4, value=95
    0;255;3;0;9;RF24:write register, reg=5, value=76
    0;255;3;0;9;RF24:write register, reg=6, value=35
    0;255;3;0;9;RF24:read register, reg=6, value=35
    0;255;3;0;9;RF24:read register, reg=5, value=76
    0;255;3;0;9;RF24:write register, reg=16, value=115
    0;255;3;0;9;RF24:write register, reg=29, value=6
    0;255;3;0;9;RF24:write register, reg=2, value=2
    0;255;3;0;9;RF24:write register, reg=1, value=0
    0;255;3;0;9;RF24:write register, reg=28, value=3
    0;255;3;0;9;RF24:flushRX
    0;255;3;0;9;RF24:flushTX
    0;255;3;0;9;RF24:write register, reg=7, value=112
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;RF24:write register, reg=2, value=3
    0;255;3;0;9;RF24:write register, reg=1, value=1
    0;255;3;0;9;RF24:start listening
    0;255;3;0;9;RF24:write register, reg=0, value=15
    0;255;3;0;9;RF24:write register, reg=10, value=0
    0;255;3;0;9;TSM:READY
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    0;255;3;0;9;RF24:read register, reg=6, value=35
    0;255;3;0;9;RF24:read register, reg=5, value=76
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;RF24:read register, reg=6, value=35
    0;255;3;0;9;RF24:read register, reg=5, value=76
    0;255;3;0;9;TSP:SANCHK:OK
    

    and from sensor

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    RF24:write register, reg=0, value=14
    RF24:write register, reg=3, value=3
    RF24:write register, reg=4, value=95
    RF24:write register, reg=5, value=76
    RF24:write register, reg=6, value=3
    RF24:read register, reg=6, value=3
    RF24:read register, reg=5, value=76
    RF24:write register, reg=16, value=115
    RF24:write register, reg=29, value=6
    RF24:write register, reg=2, value=2
    RF24:write register, reg=1, value=0
    RF24:write register, reg=28, value=3
    RF24:flushRX
    RF24:flushTX
    RF24:write register, reg=7, value=112
    TSM:RADIO:OK
    RF24:write register, reg=2, value=3
    RF24:write register, reg=1, value=1
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=1
    TSP:ASSIGNID:OK (ID=1)
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=1
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=1
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=1
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=1
    TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    RF24:write register, reg=0, value=12
    RF24:power down
    

 

264
Online

7.8k
Users

8.7k
Topics

93.0k
Posts