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. Announcements
  3. 💬 Selecting a Gateway

💬 Selecting a Gateway

Scheduled Pinned Locked Moved Announcements
8 Posts 6 Posters 2.2k Views 6 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by hek
    #1

    This thread contains comments for the article "Selecting a Gateway" posted on MySensors.org.

    1 Reply Last reply
    0
    • LaMB95L Offline
      LaMB95L Offline
      LaMB95
      wrote on last edited by
      #2

      I am confused.

      If I am sending data from an Arduino to a RPi3 using NRF24L01+.
      Won't the Arduino be a sensor node?
      If so, does that make the rpi3 the recieving node which is also acting like a gateway to a controller (OpenHab)?

      Does anyone know how to set up the raspberry to collect this sensor data?
      Or do I have to add an arduino to it for collecting this data?

      K 1 Reply Last reply
      0
      • LaMB95L LaMB95

        I am confused.

        If I am sending data from an Arduino to a RPi3 using NRF24L01+.
        Won't the Arduino be a sensor node?
        If so, does that make the rpi3 the recieving node which is also acting like a gateway to a controller (OpenHab)?

        Does anyone know how to set up the raspberry to collect this sensor data?
        Or do I have to add an arduino to it for collecting this data?

        K Offline
        K Offline
        kimot
        wrote on last edited by
        #3

        @LaMB95
        Arduino sends data like sensor node and Raspberry works like gateway.

        https://www.mysensors.org/build/raspberry

        or this:

        https://www.domoticz.com/forum/viewtopic.php?t=14365

        1 Reply Last reply
        0
        • tombstoneT Offline
          tombstoneT Offline
          tombstone
          wrote on last edited by
          #4

          can't I use my PC as a gateway for now???

          1 Reply Last reply
          0
          • R Offline
            R Offline
            ricorico94
            wrote on last edited by
            #5

            Hi,
            Reading again various pages to try solving a problem, I noticed this statement (in the raspberry pi gateway):
            "To set the gateway as a client that connects to a controller, use:"
            What does it mean ? what is the difference between a client or not ? I saw nothing in the "getting started pages" or in "selecting gateways" explaining that.

            br,
            Ricorico94

            mfalkviddM 1 Reply Last reply
            0
            • R ricorico94

              Hi,
              Reading again various pages to try solving a problem, I noticed this statement (in the raspberry pi gateway):
              "To set the gateway as a client that connects to a controller, use:"
              What does it mean ? what is the difference between a client or not ? I saw nothing in the "getting started pages" or in "selecting gateways" explaining that.

              br,
              Ricorico94

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              @ricorico94 when the gateway is client, the gateway connects to the controller. So the gateway needs to know the ip address and port of the controller.

              When the gateway is server, the controller connects to the gateway. The controller needs to know the ip address of the gateway.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                ricorico94
                wrote on last edited by
                #7

                Thank you for this explanation. So I guess in my case, I have the gtw as server since I had to fil in Domoticz the IP address of the gtw (even though it was 127.0.. as local IP).
                Is there any difference of behavior between the 2 settings ? Like if the Mysensor gtw is in server mode, it means that multiple controllers could connect to it and receive the sensors flux ?
                I tried to find some documentation on that but no success so far. It's more for my own curiosity at this stage. ;-)

                mfalkviddM 1 Reply Last reply
                1
                • R ricorico94

                  Thank you for this explanation. So I guess in my case, I have the gtw as server since I had to fil in Domoticz the IP address of the gtw (even though it was 127.0.. as local IP).
                  Is there any difference of behavior between the 2 settings ? Like if the Mysensor gtw is in server mode, it means that multiple controllers could connect to it and receive the sensors flux ?
                  I tried to find some documentation on that but no success so far. It's more for my own curiosity at this stage. ;-)

                  mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by mfalkvidd
                  #8

                  @ricorico94 you’re correct.

                  When the gateway is in server mode, multiple controllers can connect to the gateway if MY_GATEWAY_MAX_CLIENTS is defined to something larger than the default value of 1.

                  However, things can become very confused if multiple controllers respond to the same message.

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


                  18

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.1k

                  Posts


                  Copyright 2025 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