nrf24l01 connected to RPi2 as GW

Post Reply
alexsh1
Posts: 275
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi
Domoticz version: v3.8975
Location: United Kingdom
Contact:

nrf24l01 connected to RPi2 as GW

Post by alexsh1 » Monday 09 November 2015 21:51

Hello,


Does anyone use nrf24l01 connected directly to RPi2 as the gateway?
I have a strange problem. From time to time, all nodes stop reporting to the gateway at the same time. I understand this is not a problem of a node, but a problem with the gateway. Not sure where to look. Rebooting the nodes does not help, I have to reboot the RPi2 to make it work.


See the meter graph below. The circled areas is when there was no signal reception. The same goes for the temperature.

I am using MySensors 1.4 lib - this is the newest for the RPi2 unfortunately.

Any thoughts?
Attachments
Screenshot (4).png
Screenshot (4).png (241.63 KiB) Viewed 3278 times

User avatar
sincze
Posts: 978
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by sincze » Monday 09 November 2015 22:27

I don't know what the 'nrf24l01' does actually ;)
Seems like a nice cheap chip. What do you use it for?
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

alexsh1
Posts: 275
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by alexsh1 » Tuesday 10 November 2015 0:40

sincze wrote:I don't know what the 'nrf24l01' does actually ;)
Seems like a nice cheap chip. What do you use it for?
nrf24l01 is a low energy transceiver board.
Basically, it is my MySensors Gateway (as well as used to switch on/off some relays and Mi-Light bulbs)

https://github.com/mysensors/Raspberry
http://forum.mysensors.org/topic/1151/t ... connection

User avatar
gizmocuz
Posts: 8688
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by gizmocuz » Saturday 21 November 2015 16:04

i had (have) this problem as well.
thats why i build a queue system in the latest domoticz beta that sends the messages.
But it does not seem to make a difference.....

I am using a sketch that requests a lot of data from domoticz (via V_CUSTOM, see the form post about my lcd sketch)
After some time, the communication stops

I now build an Ethernet gateway, and going to test if this keeps 'alive'
Quality outlives Quantity!

alexsh1
Posts: 275
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by alexsh1 » Monday 23 November 2015 12:12

gizmocuz wrote:i had (have) this problem as well.
thats why i build a queue system in the latest domoticz beta that sends the messages.
But it does not seem to make a difference.....

I am using a sketch that requests a lot of data from domoticz (via V_CUSTOM, see the form post about my lcd sketch)
After some time, the communication stops

I now build an Ethernet gateway, and going to test if this keeps 'alive'
Thanks for confirm it Rob!
The problem is that I spent a lot of time on this and somehow I feel that due to MS version 1.4 (already behind 1.5 stable and 1.6 development) there may be some bugs left. I am not sure this would be supported in the future either.

This is the reason I decided to move on to the ethernet gateway - this runs flawlessly. Unfortunately, this means now that I have to buy an internet switch as all ports on my router are taken. Having 'keep alive' would be great. I like the way Domoticz is logging a serial gateway if it is disconnected.

MattLittle
Posts: 23
Joined: Wednesday 10 February 2016 23:06
Target OS: Linux
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by MattLittle » Friday 28 July 2017 7:29

Hi guys I am having this problem too with a RPi2. Only a reboot will help.
I am using latest dev branch for MYS + DOM.
I have a watchdog script that runs every five minutes on the PI to check if wfi connection drops (pings the router, if no reply, reboot).
I got the script 'from the net' and dont really understand writing pi/linux bash scripts.
Is there a way to write a script that will do the same thing for the radio module/nrf?

Thanks,
Matt

Toyman
Posts: 35
Joined: Wednesday 31 August 2016 16:17
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by Toyman » Wednesday 04 October 2017 15:56

MattLittle wrote:
Friday 28 July 2017 7:29
I got the script 'from the net' and dont really understand writing pi/linux bash scripts.
Is there a way to write a script that will do the same thing for the radio module/nrf?

Thanks,
Matt
you mean rebooting just the GW instead of rebooting the whole Pi? In this case, you have to include a relay and switch off\on power to the gateway via GPIO by a running a simple script.
It's VERY easy to do.

Toyman
Posts: 35
Joined: Wednesday 31 August 2016 16:17
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by Toyman » Wednesday 04 October 2017 15:57

actually, MOSFET is more than enough

MattLittle
Posts: 23
Joined: Wednesday 10 February 2016 23:06
Target OS: Linux
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by MattLittle » Thursday 12 October 2017 20:39

Thanks guys, worked it out in the end. Set the NRF to low power and the thing stopped going offline.
Cheers for your help.

gian72
Posts: 1
Joined: Monday 11 September 2017 12:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by gian72 » Saturday 25 November 2017 14:16

MattLittle wrote:Thanks guys, worked it out in the end. Set the NRF to low power and the thing stopped going offline.
Cheers for your help.
Hi mattLittle. How did you manage to put the bed low power on rPI? I've the same problems...
Thanks Gianluca

Inviato dal mio KIW-L21 utilizzando Tapatalk


Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests