Raspberry Pi Ethernet Gateway
-
-
Just to toss my $0.02 in, there are some big advantages to running the nrf24l01 modules directly on the RPi.
The radios themselves have three 32-byte FIFO buffers, and can receive data without any interaction from the RPi. It also has vast amounts of memory and processing power compared to Arduino, so can handle much more complex tasks, and manage data more efficiently.
IMHO the RPi + RF24 is very stable and robust at this point, and is beginning to support a number of Linux platforms directly via spidev and mraa
-
Just to toss my $0.02 in, there are some big advantages to running the nrf24l01 modules directly on the RPi.
The radios themselves have three 32-byte FIFO buffers, and can receive data without any interaction from the RPi. It also has vast amounts of memory and processing power compared to Arduino, so can handle much more complex tasks, and manage data more efficiently.
IMHO the RPi + RF24 is very stable and robust at this point, and is beginning to support a number of Linux platforms directly via spidev and mraa
I can ask you some suggestion how use rf24 with RPi? I want to use nodejsController bipassing the arduino gateway, and make an RPi controller\gateway.
-
@lollotek Yup, ask away.
-
https://github.com/marceloaqno/Arduino
Have a look at this fork. It isn't up to date to the mysensors library yet but the Ethernet gateway is a great and stable improvement, that supports interrupts.
Just make sure to install the current rf24 library first. -
For the past 4 months I have been using an RPI2 with a NRF24 directly connected on the GPIO. My controller is Domoticz and the RPI2 also runs the Mysensors serialgateway software for Raspberry Pi. Domoticz sees this as a serial gateway.
I have RPI2's connected via ethernet and another via wifi to my networks.
Very happy with both setups, so I made my little interface board available via the openhardware.io forum.
-
For the past 4 months I have been using an RPI2 with a NRF24 directly connected on the GPIO. My controller is Domoticz and the RPI2 also runs the Mysensors serialgateway software for Raspberry Pi. Domoticz sees this as a serial gateway.
I have RPI2's connected via ethernet and another via wifi to my networks.
Very happy with both setups, so I made my little interface board available via the openhardware.io forum.
@GertSanders Let me see if I got that right:
You are using the Raspi as the controller for Domoticz and instead of adding a standard serial gateway You add the nrf24 module to the Raspi directly. True?
If true that's close, but not close enough to what I need: I'd like to use the Raspi as an Ethernet Gateway that is detected
as such by Domoticz. Can that be done with Your project or can one adapt Your stuff for that?Thanks,
Christoph -
@GertSanders Let me see if I got that right:
You are using the Raspi as the controller for Domoticz and instead of adding a standard serial gateway You add the nrf24 module to the Raspi directly. True?
If true that's close, but not close enough to what I need: I'd like to use the Raspi as an Ethernet Gateway that is detected
as such by Domoticz. Can that be done with Your project or can one adapt Your stuff for that?Thanks,
Christoph@hyla
I am using my Raspi's with an NRF24l01 connected to the GPIO via a small board I made.
If you want to use the raspberry purely as a gateway, where do you plan to run your controller ?
Also, using a raspberry as a gateway only would be a waste of processing and electrial power, since there is an ethernet gateway based on Arduino possible, which takes less electrical power and is just as capable and more stable. -
@hyla
I am using my Raspi's with an NRF24l01 connected to the GPIO via a small board I made.
If you want to use the raspberry purely as a gateway, where do you plan to run your controller ?
Also, using a raspberry as a gateway only would be a waste of processing and electrial power, since there is an ethernet gateway based on Arduino possible, which takes less electrical power and is just as capable and more stable.@GertSanders said:
using a raspberry as a gateway only would be a waste of processing and electrial power, since there is an ethernet gateway based on Arduino possible, which takes less electrical power and is just as capable and more stable.
It's only a waste of power if there's not already an RPi there doing other jobs.. One reason I came here today looking for RPi gateway code is that I already have a pi sitting where I want to put a MySensors ethernet gateway, and I thought I could do without another arduino, power, etc..
-
@GertSanders said:
using a raspberry as a gateway only would be a waste of processing and electrial power, since there is an ethernet gateway based on Arduino possible, which takes less electrical power and is just as capable and more stable.
It's only a waste of power if there's not already an RPi there doing other jobs.. One reason I came here today looking for RPi gateway code is that I already have a pi sitting where I want to put a MySensors ethernet gateway, and I thought I could do without another arduino, power, etc..
@172pilot
I think you misunderstood my reaction. If the controller software is running on something else then an RPi, then what is the point of a second RPi running solely as a gateway ?
I combine bout functions in 1 RPi and I'm quite happy with it.
If my controller was installed on my NAS, then I would use an arduino based ethernet gateway, not an RPi with a nrf24 or rf69 as a gateway. -
@172pilot
I think you misunderstood my reaction. If the controller software is running on something else then an RPi, then what is the point of a second RPi running solely as a gateway ?
I combine bout functions in 1 RPi and I'm quite happy with it.
If my controller was installed on my NAS, then I would use an arduino based ethernet gateway, not an RPi with a nrf24 or rf69 as a gateway.Yep.. misunderstood.., I thought you were basically saying "why would you use a pi instead of an arduino when the arduino uses less power, etc..." :-)