Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node and Gateway lose communications #349

Closed
joaoubaldo opened this issue Jan 15, 2016 · 1 comment
Closed

Node and Gateway lose communications #349

joaoubaldo opened this issue Jan 15, 2016 · 1 comment

Comments

@joaoubaldo
Copy link

@joaoubaldo joaoubaldo commented Jan 15, 2016

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*

Any suggestions?

@joaoubaldo

This comment has been minimized.

Copy link
Author

@joaoubaldo joaoubaldo commented Jan 18, 2016

I've stopped using radio for now since the combination NRF24+MySensors isn't reliable.

If anyone else has the same issue with MySensors+NRF24L01+ and can take the limitations, it is possible to build a local gw + node without radio - look at development branch. Working flawlessly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.