@Boots33 Thanks for advice! I will definitely get some extra non amplified nrf modules and think about having a separate power supply for my radio.
Posts made by Nikita
-
RE: Unstable radio connection.
-
RE: Unstable radio connection.
@Boots33 Thanks for such a detailed answer!
I power my radio from the arduino unfortunately. Also I don't have other radio modules to test my project with. The distance between the node and the gateway is about 3m so it shouldn't be a problem. I covered my radios with foil to lower the interference. None of that really helped.
There was one thing that actually worked. I have a sensor connected to the gateway that reads the temperature and sends it to itself. I use a serial-gateway to feed the data to the openhab installed on my pc. Once I disconnected this sensors from the gateway (so there is only one sensor total, on the node) everything worked fine I assume there was an interference with gateway's own messages. I thought that it was possible to have sensors connected to gateway but when I do so the connection becomes unstable.
P.S. I also installed 47uF capacitor to the gateway, just in case. -
Unstable radio connection.
I've been trying to set the connection for a good while already but I keep facing multiple problems. I use 10uF caps instead of 4,7uF recommended. I also use nRF24L01+PA+LNa version. I assign a static node id to both the gateway (I have a sensor connected) and to the node.
Here is the log
72816 TSM:FAIL:RE-INIT 72818 TSM:INIT 72825 TSM:INIT:TSP OK 72827 TSM:INIT:STATID=7 72829 TSF:SID:OK,ID=7 72832 TSM:FPAR 72868 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 74876 !TSM:FPAR:NO REPLY 74878 TSM:FPAR 74915 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 76922 !TSM:FPAR:NO REPLY 76924 TSM:FPAR 76960 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 78968 !TSM:FPAR:NO REPLY 78970 TSM:FPAR 79006 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 81014 !TSM:FPAR:FAIL 81015 TSM:FAIL:CNT=5 81017 TSM:FAIL:PDT 91020 TSM:FAIL:RE-INIT 91022 TSM:INIT 91029 TSM:INIT:TSP OK 91031 TSM:INIT:STATID=7 91033 TSF:SID:OK,ID=7 91035 TSM:FPAR 91072 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 93079 !TSM:FPAR:NO REPLY 93081 TSM:FPAR 93117 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 95125 !TSM:FPAR:NO REPLY 95127 TSM:FPAR 95163 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 97171 !TSM:FPAR:NO REPLY 97173 TSM:FPAR 97209 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 99217 !TSM:FPAR:FAIL 99218 TSM:FAIL:CNT=6 99220 TSM:FAIL:PDT 109223 TSM:FAIL:RE-INIT 109225 TSM:INIT 109233 TSM:INIT:TSP OK 109235 TSM:INIT:STATID=7 109237 TSF:SID:OK,ID=7 109240 TSM:FPAR 109276 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 109739 TSF:MSG:READ,0-0-7,s=255,c=3,t=8,pt=1,l=1,sg=0:0 109744 TSF:MSG:FPAR OK,ID=0,D=1 110668 TSF:MSG:READ,0-0-7,s=255,c=3,t=8,pt=1,l=1,sg=0:0 111284 TSM:FPAR:OK 111285 TSM:ID 111287 TSM:ID:OK 111288 TSM:UPL 111292 TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1 111503 TSF:MSG:READ,0-0-7,s=255,c=3,t=8,pt=1,l=1,sg=0:0 111508 !TSF:MSG:FPAR INACTIVE 111520 TSF:MSG:READ,0-0-7,s=255,c=3,t=25,pt=1,l=1,sg=0:1 111525 TSF:MSG:PONG RECV,HP=1 111528 TSM:UPL:OK 111531 TSM:READY:ID=7,PAR=0,DIS=1 111535 TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100 113544 TSF:MSG:SEND,7-7-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.1.0-beta 113552 TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0 Send Sketch Info: 115598 !TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=11,pt=0,l=10,sg=0,ft=0,st=NACK:RADIOTEST 115642 !TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=12,pt=0,l=2,sg=0,ft=1,st=NACK:v1 RADIOTEST v1 Get Config: Metric Presenting Nodes ________________ S_TEMP 116691 !TSF:MSG:SEND,7-7-0-0,s=1,c=0,t=6,pt=0,l=16,sg=0,ft=2,st=NACK:House Temperarue ________________ 116750 MCO:REG:REQ 116788 !TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=3,st=NACK:2 118830 !TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=4,st=NACK:2 120871 !TSF:MSG:SEND,7-7-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=5,st=NACK:2 120879 !TSM:READY:UPL FAIL,SNP 120882 TSM:FPAR 120918 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=6,st=OK: 122880 !TSF:SND:TNR 122926 !TSM:FPAR:NO REPLY 122928 TSM:FPAR 122964 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 126882 !TSM:FPAR:NO REPLY 126884 TSM:FPAR 126921 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 128928 !TSM:FPAR:NO REPLY 128930 TSM:FPAR 128967 TSF:MSG:SEND,7-7-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 130974 !TSM:FPAR:FAIL 130976 TSM:FAIL:CNT=1 130978 TSM:FAIL:PDT 140981 TSM:FAIL:RE-INIT
Some times I do have a connection but it usually doesn't last for a long time. Here is my gateway log:
0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.0-beta 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;0;0;18;2.1.0-beta 0;2;0;0;6; 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.1.0-beta 0;2;0;0;6; 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1 Temperature is: 28.06 0;2;1;0;0;28.06 0;255;3;0;9;TSF:MSG:READ,7-7-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=7 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-7-7,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.0-beta 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;0;0;18;2.1.0-beta 0;2;0;0;6; 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.1.0-beta 0;2;0;0;6; 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1 Temperature is: 28.13 0;2;1;0;0;28.13
Any help would be appreciated!
-
RE: [Solved] receive() function not working
@npiot There are three dots near the "reply" and "quote" buttons. Go there and find "edit" tool. Then simply modify the title and press "Submit".
-
RE: [SOLVED] TSP:CHKUPL:FAIL and TSM:FPAR:FAIL
Fixed by switching 4.7uF capacitors with 10uF capacitors.
-
[SOLVED] TSP:CHKUPL:FAIL and TSM:FPAR:FAIL
Unable to connect the node to my gateway.
I use "MockMySensors" sketch with these additional lines#define MY_NODE_ID 17 #define MY_PARENT_NODE_ID 0 #define MY_PARENT_NODE_IS_STATIC
I also use "GatewaySerial" sketch for my gateway.
Here is what I get in debugTSM:PDT TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=17) TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 17-17-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 TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=17) TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSP:MSG:READ 0-0-17 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:FPAR (PPAR FOUND) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=17) TSM:UPL TSP:PING:SEND (dest=0) !TSP:MSG:SEND 17-17-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1 TSP:CHKUPL:FAIL (hops=255) !TSM:UPL:FAIL TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSP:MSG:READ 0-0-17 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:FPAR (PPAR FOUND) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=17) TSM:UPL TSP:PING:SEND (dest=0) !TSP:MSG:SEND 17-17-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1 TSP:CHKUPL:FAIL (hops=255) !TSM:UPL:FAIL TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSP:MSG:READ 0-0-17 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:FPAR (PPAR FOUND) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=17) TSM:UPL TSP:PING:SEND (dest=0) !TSP:MSG:SEND 17-17-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=fail:1 TSP:CHKUPL:FAIL (hops=255) !TSM:UPL:FAIL TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 17-17-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0) 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSM:RADIO:OK 0;255;3;0;9;TSM:GW MODE 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```