Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Raspberry Pi Ethernet Gateway

Raspberry Pi Ethernet Gateway

Scheduled Pinned Locked Moved Development
20 Posts 13 Posters 15.7k Views 10 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nneeooN Offline
    nneeooN Offline
    nneeoo
    wrote on last edited by
    #10

    There are example gateways for Raspberry Pi in the MySensors Raspberry repo on github. You can easily modify e.g. the serial gateway and instead of creating pseudo terminal you would create a network socket and write/read data to/from the socket. ;-)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TMRh20Projects
      wrote on last edited by
      #11

      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

      L 1 Reply Last reply
      0
      • T TMRh20Projects

        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

        L Offline
        L Offline
        lollotek
        wrote on last edited by lollotek
        #12

        @TMRh20Projects

        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.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TMRh20Projects
          wrote on last edited by
          #13

          @lollotek Yup, ask away.

          1 Reply Last reply
          0
          • OitzuO Offline
            OitzuO Offline
            Oitzu
            wrote on last edited by
            #14

            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.

            1 Reply Last reply
            1
            • GertSandersG Offline
              GertSandersG Offline
              GertSanders
              Hardware Contributor
              wrote on last edited by GertSanders
              #15

              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.

              H 1 Reply Last reply
              0
              • GertSandersG GertSanders

                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.

                H Offline
                H Offline
                hyla
                wrote on last edited by
                #16

                @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

                GertSandersG 1 Reply Last reply
                0
                • H hyla

                  @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

                  GertSandersG Offline
                  GertSandersG Offline
                  GertSanders
                  Hardware Contributor
                  wrote on last edited by
                  #17

                  @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.

                  172pilot1 1 Reply Last reply
                  1
                  • GertSandersG GertSanders

                    @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.

                    172pilot1 Offline
                    172pilot1 Offline
                    172pilot
                    wrote on last edited by
                    #18

                    @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..

                    GertSandersG 1 Reply Last reply
                    0
                    • 172pilot1 172pilot

                      @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..

                      GertSandersG Offline
                      GertSandersG Offline
                      GertSanders
                      Hardware Contributor
                      wrote on last edited by GertSanders
                      #19

                      @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.

                      172pilot1 1 Reply Last reply
                      0
                      • GertSandersG GertSanders

                        @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.

                        172pilot1 Offline
                        172pilot1 Offline
                        172pilot
                        wrote on last edited by
                        #20

                        @GertSanders

                        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..." :-)

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        8

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.0k

                        Posts


                        Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • MySensors
                        • OpenHardware.io
                        • Categories
                        • Recent
                        • Tags
                        • Popular