Last week I built a mysensors network, with just a serial gateway and a sensor node but since then I'm having an issue that I just can't figure out why it's happening:
Every few hours (randomly between 1 and 12hours), I lose communication between the node and the gateway. When this happens, I have to reset the sensor node and communications get back to normal.
I've soldered a capacitor directly on both nrf24l01+'s, between 3v3 an Gnd - this effectively improved communications but didn't solve the problem. I tried a separate 3v3 power supply on the sensor node just for nrf24l01. Also didn't help.
Can this be caused by software, like memory leaks on the sensor code? Recently I left a serial monitor open on the sensor node just to catch the moment. Here it is:
send: 1-1-0-0 s=13,c=1,t=0,pt=7,l=5,sg=0,st=ok:29.8
send: 1-1-0-0 s=11,c=1,t=1,pt=7,l=5,sg=0,st=ok:99.9
read: 0-0-1 s=14,c=2,t=2,pt=0,l=1,sg=0:1
send: 1-1-0-0 s=14,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
read: 0-0-1 s=16,c=2,t=2,pt=0,l=1,sg=0:1
send: 1-1-0-0 s=16,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
read: 0-0-1 s=15,c=1,t=2,pt=0,l=1,sg=0:0
send: 1-1-0-0 s=15,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
send: 1-1-0-0 s=15,c=1,t=2,pt=2,l=2,sg=0,st=fail:0
send: 1-1-0-0 s=12,c=1,t=0,pt=7,l=5,sg=0,st=ok:18.3
send: 1-1-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,st=ok:62.1
send: 1-1-0-0 s=13,c=1,t=0,pt=7,l=5,sg=0,st=ok:29.8
send: 1-1-0-0 s=11,c=1,t=1,pt=7,l=5,sg=0,st=ok:99.9
read: 0-0-1 s=16,c=1,t=2,pt=0,l=1,sg=0:0
send: 1-1-0-0 s=16,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
send: 1-1-0-0 s=16,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
send: 1-1-0-0 s=12,c=1,t=0,pt=7,l=5,sg=0,st=fail:18.3
send: 1-1-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,st=fail:62.0
send: 1-1-0-0 s=13,c=1,t=0,pt=7,l=5,sg=0,st=fail:29.8
send: 1-1-0-0 s=11,c=1,t=1,pt=7,l=5,sg=0,st=fail:99.9
send: 1-1-0-0 s=12,c=1,t=0,pt=7,l=5,sg=0,st=fail:18.4
send: 1-1-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,st=fail:62.1
(..) <-- *all the remaining lines have sends with st=fail and no more read events occur*