Not working serial gateway connecting sensor

  • Hello,

    I'am new to the mysensors-concept and have some arduino nano's, NRF24L01+ and some sensors.
    On the gateway arduino I compiled an uploaded
    The NRF24L01+ is connected like told in I double checked by wathcing the video and matching my colors on the ribbon wire, so faulty connection is ensured.
    The arduino is connected to my pc with a 4 port external powered usb hub. I think the arduino has enough power. Also put the capacitor (47 uF) between Vcc and Gnd of the NRF24lL01+.

    The serial monitor does show activiteitbut no connection.

    The sensor arduino I compiled and uploaded with a sensor sketch. I tried with and without the sensor to connect to the gateway but this does not work.

    Any suggestions?

  • Mod

    @thuurke HI there, and welcome to the forum!
    Could you post debug logs from both the gateway and sensor(s) so we can help diagnose the problem?

  • Serialgateway log

    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,REL=255,VER=2.3.1
    0;255;3;0;9;5 TSM:INIT
    0;255;3;0;9;7 TSF:WUR:MS=0
    0;255;3;0;9;14 TSM:INIT:TSP OK
    0;255;3;0;9;17 TSM:INIT:GW MODE
    0;255;3;0;9;20 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;24 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;3;0;9;28 MCO:BGN:STP
    0;255;3;0;9;34 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;37 TSM:READY:NWD REQ
    0;255;3;0;9;76 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    0;255;3;0;9;751 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;757 TSF:MSG:BC
    0;255;3;0;9;759 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;763 TSF:CKU:OK,FCTRL
    0;255;3;0;9;766 TSF:MSG:GWL OK
    0;255;3;0;9;1574 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;2763 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;2769 TSF:MSG:BC
    0;255;3;0;9;2772 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;2776 TSF:CKU:OK,FCTRL
    0;255;3;0;9;2779 TSF:MSG:GWL OK
    0;255;3;0;9;3552 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;4776 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;4783 TSF:MSG:BC
    0;255;3;0;9;4785 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;4789 TSF:CKU:OK,FCTRL
    0;255;3;0;9;4792 TSF:MSG:GWL OK
    0;255;3;0;9;5529 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;6790 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;6796 TSF:MSG:BC
    0;255;3;0;9;6799 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;6802 TSF:CKU:OK,FCTRL
    0;255;3;0;9;6805 TSF:MSG:GWL OK
    0;255;3;0;9;7508 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;8438 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;8444 TSF:MSG:BC
    0;255;3;0;9;8446 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;8451 TSF:CKU:OK,FCTRL
    0;255;3;0;9;8454 TSF:MSG:GWL OK
    0;255;3;0;9;8758 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;10451 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;10458 TSF:MSG:BC
    0;255;3;0;9;10461 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;10465 TSF:CKU:OK,FCTRL
    0;255;3;0;9;10468 TSF:MSG:GWL OK
    0;255;3;0;9;10737 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;12464 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;12471 TSF:MSG:BC
    0;255;3;0;9;12473 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;12477 TSF:CKU:OK,FCTRL
    0;255;3;0;9;12480 TSF:MSG:GWL OK

    Distancesensor log (without the distence sensor connected)

    16 MCO:BGN:INIT NODE,CP=RNNNA---,REL=255,VER=2.3.1
    26 TSM:INIT
    27 TSF:WUR:MS=0
    35 TSM:FPAR
    37 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2049 TSM:FPAR
    2051 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4061 TSM:FPAR
    4063 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6073 TSM:FPAR
    6075 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8083 !TSM:FPAR:FAIL
    8084 TSM:FAIL:CNT=1
    8086 TSM:FAIL:DIS
    8088 TSF:TDI:TSL
    18091 TSM:FAIL:RE-INIT
    18093 TSM:INIT
    18099 TSM:INIT:TSP OK
    18101 TSM:FPAR
    18104 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    20111 !TSM:FPAR:NO REPLY
    20113 TSM:FPAR
    20115 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    22123 !TSM:FPAR:NO REPLY
    22125 TSM:FPAR
    22127 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:

  • It looks like your sensor is not getting a proper id. There are quite a number of things that coiuld be causing this. Is your gateway connected to a controller?

  • Mod

    The log parser can be used to make it easier to read the log.
    Gateway link
    Node link

    The gateway log shows that the gateway sees the find parent request sent by the node, and sends a response.
    The node log shows that the node doesn't see the response.

    What is the distance between the gateway and the node? It needs to be at least 1 meter / 3ft, otherwise the signal can be too strong.

    Do you have a capacitor on both the nf24l01+?