nrf24l01 connected to RPi2 as GW

Moderator: leecollings

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

nrf24l01 connected to RPi2 as GW

Post by alexsh1 »

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 5242 times
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by sincze »

I don't know what the 'nrf24l01' does actually ;)
Seems like a nice cheap chip. What do you use it for?
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by alexsh1 »

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: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by gizmocuz »

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: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by alexsh1 »

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: 14
Joined: Wednesday 10 February 2016 22:06
Target OS: Linux
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by MattLittle »

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: 23
Joined: Wednesday 31 August 2016 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by Toyman »

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: 23
Joined: Wednesday 31 August 2016 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by Toyman »

actually, MOSFET is more than enough
MattLittle
Posts: 14
Joined: Wednesday 10 February 2016 22:06
Target OS: Linux
Domoticz version:
Contact:

Re: nrf24l01 connected to RPi2 as GW

Post by MattLittle »

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: 9
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 »

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 1 guest