# Yet another fight against my RFM69

• There must be something I constantly do wrong since looks like I'm one of the few dealing always with similar issues I have a sleeping sensor waking up every minute and wait some commands from the controller. It used to work ok but at a certain point it stopped executing my orders. I could see it reporting awake and sleeping but no more activating the attached relay as instructed. I initially thought was due to the distance so I took it close the gw and the issue was still there. I had a look at the logs and there were a lot of re-transmission and during those my remote command was lost (which makes sense). For completeness, I'm testing the new RFM69 driver with the latest patch @tekka put together but I don't think this is related. Here are the logs:

``````0 MCO:BGN:INIT NODE,CP=RPNNA---,VER=2.2.0-beta
49 MCO:BGN:BFR
REG I=1 P=6 P=3 T=2
REG I=2 P=7 P=3 T=2
NodeManager v1.5-dev5
INT1 M=255
INT2 M=255
458 TSM:INIT
475 TSF:WUR:MS=0
491 RFM69:INIT
507 RFM69:INIT:PIN,CS=10,IQP=2,IQN=0
557 RFM69:PTX:LEVEL=20 dBm
589 TSM:INIT:TSP OK
622 TSM:INIT:STATID=6
638 TSF:SID:OK,ID=6
655 TSM:FPAR
671 RFM69:SWR:SEND,TO=255,RETRY=0
720 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
1589 TSF:MSG:FPAR OK,ID=0,D=1
2818 TSM:FPAR:OK
2834 TSM:ID
2850 TSM:ID:OK
2867 TSM:UPL
2883 RFM69:SWR:SEND,TO=0,RETRY=0
4145 !RFM69:SWR:NACK
4161 RFM69:SWR:SEND,TO=0,RETRY=1
4423 !RFM69:SWR:NACK
4440 RFM69:SWR:SEND,TO=0,RETRY=2
4702 !RFM69:SWR:NACK
4718 RFM69:SWR:SEND,TO=0,RETRY=3
4980 !RFM69:SWR:NACK
4997 RFM69:SWR:SEND,TO=0,RETRY=4
5259 !RFM69:SWR:NACK
5275 RFM69:SWR:SEND,TO=0,RETRY=5
5537 !RFM69:SWR:NACK
5554 !TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
5750 TSF:MSG:PONG RECV,HP=1
5783 TSM:UPL:OK
5832 RFM69:SWR:SEND,TO=0,RETRY=0
5980 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
7061 RFM69:SWR:SEND,TO=0,RETRY=0
7241 TSF:MSG:SEND,6-6-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.2.0-beta
7340 RFM69:SWR:SEND,TO=0,RETRY=0
7471 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
8585 RFM69:SWR:SEND,TO=0,RETRY=0
8847 !RFM69:SWR:NACK
8863 RFM69:SWR:SEND,TO=0,RETRY=1
9011 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=11,pt=0,l=20,sg=0,ft=0,st=OK:IrrigationController
9125 RFM69:SWR:SEND,TO=0,RETRY=0
9306 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.2
PRES I=200, T=23
9404 RFM69:SWR:SEND,TO=0,RETRY=0
9666 !RFM69:SWR:NACK
9682 RFM69:SWR:SEND,TO=0,RETRY=1
9945 !RFM69:SWR:NACK
9961 RFM69:SWR:SEND,TO=0,RETRY=2
10223 !RFM69:SWR:NACK
10240 RFM69:SWR:SEND,TO=0,RETRY=3
10502 !RFM69:SWR:NACK
10518 RFM69:SWR:SEND,TO=0,RETRY=4
10764 TSF:MSG:SEND,6-6-0-0,s=200,c=0,t=23,pt=0,l=0,sg=0,ft=0,st=OK:
PRES I=201, T=30
10846 RFM69:SWR:SEND,TO=0,RETRY=0
11108 !RFM69:SWR:NACK
11124 RFM69:SWR:SEND,TO=0,RETRY=1
11354 TSF:MSG:SEND,6-6-0-0,s=201,c=0,t=30,pt=0,l=0,sg=0,ft=0,st=OK:
BATT V=3.67 P=33
SEND D=0 I=201 C=0 T=38 S= I=0 F=3.67
11468 !MCO:SND:NODE NOT REG
11534 RFM69:SWR:SEND,TO=0,RETRY=0
11796 !RFM69:SWR:NACK
11812 RFM69:SWR:SEND,TO=0,RETRY=1
12075 !RFM69:SWR:NACK
12091 RFM69:SWR:SEND,TO=0,RETRY=2
12386 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=OK:33
PRES I=1 T=3
12468 RFM69:SWR:SEND,TO=0,RETRY=0
12746 !RFM69:SWR:NACK
12763 RFM69:SWR:SEND,TO=0,RETRY=1
13025 !RFM69:SWR:NACK
13041 RFM69:SWR:SEND,TO=0,RETRY=2
13205 TSF:MSG:SEND,6-6-0-0,s=1,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
PRES I=2 T=3
13287 RFM69:SWR:SEND,TO=0,RETRY=0
13434 TSF:MSG:SEND,6-6-0-0,s=2,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=OK:

13516 MCO:REG:REQ
13533 RFM69:SWR:SEND,TO=0,RETRY=0
13680 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
14778 MCO:PIM:NODE REG=1
14811 MCO:BGN:STP
MY I=6 M=1
14827 MCO:BGN:INIT OK,TSP=1

SLEEP 60s

14876 MCO:SLP:MS=60000,SMS=1,I1=255,M1=255,I2=255,M2=255
14942 RFM69:SWR:SEND,TO=0,RETRY=0
15204 !RFM69:SWR:NACK
15220 RFM69:SWR:SEND,TO=0,RETRY=1
15384 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=32,pt=5,l=4,sg=0,ft=0,st=OK:1000
16482 TSF:TDI:TSL
16498 RFM69:RSL
16515 MCO:SLP:WUP=-1
16547 TSF:TRI:TSB
16564 RFM69:RSB
16580 RFM69:SWR:SEND,TO=0,RETRY=0
16842 !RFM69:SWR:NACK
16859 RFM69:SWR:SEND,TO=0,RETRY=1
17055 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=33,pt=5,l=4,sg=0,ft=0,st=OK:60000
AWAKE

SLEEP 60s

17137 MCO:SLP:MS=60000,SMS=1,I1=255,M1=255,I2=255,M2=255
17219 RFM69:SWR:SEND,TO=0,RETRY=0
17481 !RFM69:SWR:NACK
17498 RFM69:SWR:SEND,TO=0,RETRY=1
17760 !RFM69:SWR:NACK
17776 RFM69:SWR:SEND,TO=0,RETRY=2
18038 !RFM69:SWR:NACK
18055 RFM69:SWR:SEND,TO=0,RETRY=3
18317 !RFM69:SWR:NACK
18333 RFM69:SWR:SEND,TO=0,RETRY=4
18595 !RFM69:SWR:NACK
18612 RFM69:SWR:SEND,TO=0,RETRY=5
18874 !RFM69:SWR:NACK
18890 !TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=32,pt=5,l=4,sg=0,ft=0,st=NACK:1000
RECV S=0 I=2 C=2 T=2 P=1
DOUT I=2 P=7 V=1 P=50
SEND D=0 I=2 C=0 T=2 S= I=1 F=0.00
21495 RFM69:SWR:SEND,TO=0,RETRY=0
21643 TSF:MSG:SEND,6-6-0-0,s=2,c=1,t=2,pt=2,l=2,sg=0,ft=1,st=OK:1
21708 TSF:TDI:TSL
21741 RFM69:RSL
21757 MCO:SLP:WUP=-1
21790 TSF:TRI:TSB
21807 RFM69:RSB
21823 RFM69:SWR:SEND,TO=0,RETRY=0
22020 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=33,pt=5,l=4,sg=0,ft=0,st=OK:60000
AWAKE

SLEEP 60s

22118 MCO:SLP:MS=60000,SMS=1,I1=255,M1=255,I2=255,M2=255
22200 RFM69:SWR:SEND,TO=0,RETRY=0
22446 !RFM69:SWR:NACK
22462 RFM69:SWR:SEND,TO=0,RETRY=1
22724 !RFM69:SWR:NACK
22740 RFM69:SWR:SEND,TO=0,RETRY=2
23003 !RFM69:SWR:NACK
23019 RFM69:SWR:SEND,TO=0,RETRY=3
23281 !RFM69:SWR:NACK
23298 RFM69:SWR:SEND,TO=0,RETRY=4
23560 !RFM69:SWR:NACK
23576 RFM69:SWR:SEND,TO=0,RETRY=5
23838 !RFM69:SWR:NACK
23855 !TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=32,pt=5,l=4,sg=0,ft=0,st=NACK:1000
RECV S=0 I=1 C=2 T=2 P=1
DOUT I=1 P=6 V=1 P=50
SEND D=0 I=1 C=0 T=2 S= I=1 F=0.00
26492 RFM69:SWR:SEND,TO=0,RETRY=0
26640 TSF:MSG:SEND,6-6-0-0,s=1,c=1,t=2,pt=2,l=2,sg=0,ft=1,st=OK:1
26722 TSF:TDI:TSL
26738 RFM69:RSL
26755 MCO:SLP:WUP=-1
26787 TSF:TRI:TSB
26804 RFM69:RSB
26836 RFM69:SWR:SEND,TO=0,RETRY=0
27049 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=33,pt=5,l=4,sg=0,ft=0,st=OK:60000
AWAKE

SLEEP 60s

27131 MCO:SLP:MS=60000,SMS=1,I1=255,M1=255,I2=255,M2=255
27213 RFM69:SWR:SEND,TO=0,RETRY=0
27475 !RFM69:SWR:NACK
27492 RFM69:SWR:SEND,TO=0,RETRY=1
27754 !RFM69:SWR:NACK
27770 RFM69:SWR:SEND,TO=0,RETRY=2
28033 !RFM69:SWR:NACK
28049 RFM69:SWR:SEND,TO=0,RETRY=3
28327 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=32,pt=5,l=4,sg=0,ft=0,st=OK:1000
29409 TSF:TDI:TSL
29425 RFM69:RSL
29442 MCO:SLP:WUP=-1
29474 TSF:TRI:TSB
29491 RFM69:RSB
29507 RFM69:SWR:SEND,TO=0,RETRY=0
29802 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=33,pt=5,l=4,sg=0,ft=0,st=OK:60000
AWAKE

SLEEP 60s

29900 MCO:SLP:MS=60000,SMS=1,I1=255,M1=255,I2=255,M2=255
29966 RFM69:SWR:SEND,TO=0,RETRY=0
30228 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=32,pt=5,l=4,sg=0,ft=0,st=OK:1000
31326 TSF:TDI:TSL
31342 RFM69:RSL
``````

First of all why getting a NACK with an excellent RSSI of 30 is strange. But now it comes the weird part. I restarted the gw, and the sensor was back again working fine....for a few minutes, then the same bad behavior was there again. I restarted the sensor a few times and always the same problem but finally after another reboot it was still ok (and consistently ok). Which tells me...well nothing to me Bad wiring? Or since I have a 50v/10uF capacitor between the radio vcc and gnd, it is not charging fast enough and "cuts" out the power?

• Hi.

• what's your GW setup? (mcu, and gateway mode)
• what's your node hardware, especially mcu, do you change clocks during sketch, and which one do you use, which RFM69 variant too (high power or not) ?
• how are relays connected to your node (could be some noise too..)

• @scalz sorry I always forget to add all the relevant information The hw is a serial gw (pro mini 3.3v attached to a Rpi usb port), the node is another 3.3v pro mini powered by AA batteries. Both running at 1Mhz (which with the new driver is working fine provided all the nodes are running at the same speed) and I'm using tekka's https://github.com/tekka007/MySensors/tree/RFM69_Update which is initializing both the gw and the node at max power and since then I had no more range issues. Btw the logs above have been take with ATC disabled but I had similar logs with it enabled. The relay is connected to an arduino's pin and powered independently.

I must say I have another three nodes running without a problem with a similar configuration since a few weeks now. Since the last reboot also this one is running perfectly once again. I remember I had a similar issue with another node, same configuration, after a few times I plugged in and out again and again it stared running fine and it is doing so since then. Like if it starts in a good shape, it will continue to do so, if it doesn't, oh then begins the troubles • Just a quick update after 24 hours. I don't see anymore re-transmissions (no more duplicated messages on the gateway) and the relay is always triggering. Once again, if it starts in a good shape, everything goes well. But sooner or later I need to identify the real issue Cannot be software since the sketch is the same, cannot be hardware I think since the hw is the same, cannot be the distance since yesterday the behavior was the same, when both far away or very close to the gw. Maybe when I move it around I somehow touch something not very well connected but this does not explain how it could happen with another node and only with a RFM69. Who knows • @user2684
no clue on my side.. we could also imagine for instance:

• different "environment" parameters influencing RF
• a little bit different antenna (i'm exagerating a bit i think), or difference in assembly
• collision..
• different mcu or radio quality
• how much remaining memory do you have after compilation
• i know 10uF should be enough, but i generally use this for nrf, and add a bit more in case for rfm69 as it uses more power (but that depends on the power supply i use too).

I almost already know your reply to this Some points are maybe irrelevant for your case, these are just there for ref. I'm like you, i don't trust in mystical issues • @scalz thanks, well, nothing is irrelevant, when not working there must be at least one of your points above which I'm not considering enough Now it is still working well, checking in every minute without a single duplicated message in the controller even if far away from the gw and the remote relay triggering when requested. I should probably do a better job in replicating the issue to at least limit the possible causes...I'll report back in the future with better data I hope Thanks!

1

2

10

20

23

15

20

8
{"ft_lang_label":"__label__en","ft_lang_prob":0.72224283,"math_prob":0.97655064,"size":12060,"snap":"2021-31-2021-39","text_gpt3_token_len":5429,"char_repetition_ratio":0.25821167,"word_repetition_ratio":0.013333334,"special_character_ratio":0.43192372,"punctuation_ratio":0.2632391,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9599348,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-17T23:32:28Z\",\"WARC-Record-ID\":\"<urn:uuid:6f8045cf-ca2c-47ec-9eea-174c0ba3fab3>\",\"Content-Length\":\"164029\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c9339afc-5e24-4c7a-ae27-f1c07ccb24da>\",\"WARC-Concurrent-To\":\"<urn:uuid:ee5c83ec-e935-4430-ac66-c88a01f5a6b8>\",\"WARC-IP-Address\":\"185.92.221.81\",\"WARC-Target-URI\":\"https://forum.mysensors.org/topic/6953/yet-another-fight-against-my-rfm69\",\"WARC-Payload-Digest\":\"sha1:V5VEXMU44DUKUSZYHAZJGSSBA3LT7BTX\",\"WARC-Block-Digest\":\"sha1:AJUHOXQ6HZVJW4256HMPFR3V47TTVOW3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780055808.78_warc_CC-MAIN-20210917212307-20210918002307-00168.warc.gz\"}"}