Skip to content
  • 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. 💬 Building a Raspberry Pi Gateway
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

💬 Building a Raspberry Pi Gateway

Scheduled Pinned Locked Moved Announcements
1.1k Posts 173 Posters 422.5k Views 131 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.
  • P pete1450

    @marceloaqno Well that fixed the connection issue. Now I'm just back to square one where pressing start doesn't do anything. Why do I not need to specify my controllers ip? That is the ip for my veralite. Whats the use case for that option.

    M Offline
    M Offline
    marceloaqno
    Code Contributor
    wrote on last edited by
    #329

    @pete1450
    I can't help you with this, I've never used the Vera controller. You need to search in the Vera settings where you set this option. If Vera supports being a server and opening a port for the gateway to connect, then you use the --my-controller-ip-address option.

    1 Reply Last reply
    1
    • M Offline
      M Offline
      Michael Curtis
      wrote on last edited by
      #330

      Does anyone know if the Raspberry implementation have a UserPassword option for ./configure MQTT

      M 1 Reply Last reply
      0
      • M Michael Curtis

        Does anyone know if the Raspberry implementation have a UserPassword option for ./configure MQTT

        M Offline
        M Offline
        Michael Curtis
        wrote on last edited by
        #331

        @Michael-Curtis Nevermind, I fixed it.... you ned to add :

        --my-mqtt-password=<PASS>   MQTT password
        --my-mqtt-client-id=<ID>    MQTT client id.
        

        Under "cat"

        And for the actual options under "opt do"

        --my-mqtt-user=*)
            CPPFLAGS="-DMY_MQTT_USER=\\\"${optarg}\\\" $CPPFLAGS"
            ;;
        --my-mqtt-password=*)
            CPPFLAGS="-DMY_MQTT_PASSWORD=\\\"${optarg}\\\" $CPPFLAGS"
            ;;
        

        then just add those option flags to the ./configure and run make

        1 Reply Last reply
        0
        • Roberto Mo CaR Offline
          Roberto Mo CaR Offline
          Roberto Mo Ca
          wrote on last edited by
          #332

          what means "5VReg -> 3.3V" in raspberry? can connect directly to 3.3V or if requied connecto to 5V with regulator to obtain 3.3v?

          M 1 Reply Last reply
          0
          • M Offline
            M Offline
            macvictor
            wrote on last edited by
            #333

            Hi :) Does anybody know how to use MY_SIGNING_NODE_WHITELISTING in gateway raspbery pi? Where I must create/edit white list with my nodes?

            M 1 Reply Last reply
            0
            • OliverDogO Offline
              OliverDogO Offline
              OliverDog
              wrote on last edited by
              #334

              first sorry about the basics question but I think many people have the same questions and can't find the answers:
              After connecting the radio (including IRQ on 15pin) and the info LEDs to the GPIO, how to config it?

              1. Do I need to configure all the info on the same command, or can I send the command "./configure --" many times for different configs?
              2. Do I need to configure it as a MQTT gateway?
              3. Where did the 127.0.0.1 IP come from?
              4. Does MQTT use internet connection?
              5. Why do you talk about Serial Gateway here, once we have a specific type for it? this type is about using GPIO only, isn't it? That is confusing!!!
              M 1 Reply Last reply
              0
              • OliverDogO Offline
                OliverDogO Offline
                OliverDog
                wrote on last edited by
                #335

                trying to config on a Home Assistant Rpi.
                Sorry again for the newbie questions...!!!

                1 Reply Last reply
                0
                • Erik TammingaE Offline
                  Erik TammingaE Offline
                  Erik Tamminga
                  wrote on last edited by
                  #336

                  Hi,
                  Can I use pin 18 (GPIO 24) on my RPi3 for IRQ usage? Should I?
                  If I compile with --my-rf24-irq-pin=18, no date is received when the gateway starts.
                  I Cannot use pin 15 because that pin is covered by my Z-wave.me board.
                  Regards,
                  Erik

                  M 1 Reply Last reply
                  0
                  • Roberto Mo CaR Roberto Mo Ca

                    what means "5VReg -> 3.3V" in raspberry? can connect directly to 3.3V or if requied connecto to 5V with regulator to obtain 3.3v?

                    M Offline
                    M Offline
                    marceloaqno
                    Code Contributor
                    wrote on last edited by
                    #337

                    @Roberto-Mo-Ca If you are using the nrf24 PA/LNA version you need to use a 5V->3.3V regulator otherwise you can connect to the 3.3v pin.

                    S 1 Reply Last reply
                    1
                    • M macvictor

                      Hi :) Does anybody know how to use MY_SIGNING_NODE_WHITELISTING in gateway raspbery pi? Where I must create/edit white list with my nodes?

                      M Offline
                      M Offline
                      marceloaqno
                      Code Contributor
                      wrote on last edited by marceloaqno
                      #338

                      @macvictor For the MY_SIGNING_NODE_WHITELISTING, you can uncomment and edit it in MyConfig.h or add it to the examples/mysgw.cpp.

                      1 Reply Last reply
                      0
                      • OliverDogO OliverDog

                        first sorry about the basics question but I think many people have the same questions and can't find the answers:
                        After connecting the radio (including IRQ on 15pin) and the info LEDs to the GPIO, how to config it?

                        1. Do I need to configure all the info on the same command, or can I send the command "./configure --" many times for different configs?
                        2. Do I need to configure it as a MQTT gateway?
                        3. Where did the 127.0.0.1 IP come from?
                        4. Does MQTT use internet connection?
                        5. Why do you talk about Serial Gateway here, once we have a specific type for it? this type is about using GPIO only, isn't it? That is confusing!!!
                        M Offline
                        M Offline
                        marceloaqno
                        Code Contributor
                        wrote on last edited by
                        #339

                        @OliverDog

                        You execute ./configure once with all your options to set your gateway.

                        You need to decide what type of gateway you want to build: ethernet, serial or mqtt:
                        https://www.mysensors.org/build/select_gateway

                        Take a look at the link and let me know if you still have any questions.

                        1 Reply Last reply
                        0
                        • OliverDogO Offline
                          OliverDogO Offline
                          OliverDog
                          wrote on last edited by
                          #340

                          thaks @marceloaqno but I was wondering there was a new type of gateway named Raspberry Gateway, were we could connect the radio directly on the GPIO and config it locally, without internet, because of that I also would like to know if MQTT uses internet connection.
                          I actually use a serial gateway connected to Pi USG and it works without internet...
                          I just want to have only one device...
                          Thanks

                          M 1 Reply Last reply
                          0
                          • OliverDogO OliverDog

                            thaks @marceloaqno but I was wondering there was a new type of gateway named Raspberry Gateway, were we could connect the radio directly on the GPIO and config it locally, without internet, because of that I also would like to know if MQTT uses internet connection.
                            I actually use a serial gateway connected to Pi USG and it works without internet...
                            I just want to have only one device...
                            Thanks

                            M Offline
                            M Offline
                            marceloaqno
                            Code Contributor
                            wrote on last edited by
                            #341

                            @OliverDog You can configure the RPi to be any of the 3 types: ethernet, serial or mqtt, with the nrf24 attached to it.

                            OliverDogO 1 Reply Last reply
                            0
                            • M marceloaqno

                              @OliverDog You can configure the RPi to be any of the 3 types: ethernet, serial or mqtt, with the nrf24 attached to it.

                              OliverDogO Offline
                              OliverDogO Offline
                              OliverDog
                              wrote on last edited by
                              #342

                              @marceloaqno WOWWW
                              now I understood... but I think this is not clear on the build steps...
                              I choose a Serial Gateway, but on that lines, they say:
                              "If for some reason you can't use the GPIO pins of the Raspberry Pi, you could connect the radio to a arduino with the GatewaySerial sketch and feed the pi through a serial port:"

                              So I assumed the serial gateway is the same I already use...
                              So, where do I get directions to config a serial gateway with the radio attached to the GPIO?

                              Thanks

                              M 1 Reply Last reply
                              0
                              • OliverDogO OliverDog

                                @marceloaqno WOWWW
                                now I understood... but I think this is not clear on the build steps...
                                I choose a Serial Gateway, but on that lines, they say:
                                "If for some reason you can't use the GPIO pins of the Raspberry Pi, you could connect the radio to a arduino with the GatewaySerial sketch and feed the pi through a serial port:"

                                So I assumed the serial gateway is the same I already use...
                                So, where do I get directions to config a serial gateway with the radio attached to the GPIO?

                                Thanks

                                M Offline
                                M Offline
                                marceloaqno
                                Code Contributor
                                wrote on last edited by
                                #343

                                @OliverDog Which controller are you using(or are planning to use)?

                                OliverDogO 1 Reply Last reply
                                0
                                • Erik TammingaE Erik Tamminga

                                  Hi,
                                  Can I use pin 18 (GPIO 24) on my RPi3 for IRQ usage? Should I?
                                  If I compile with --my-rf24-irq-pin=18, no date is received when the gateway starts.
                                  I Cannot use pin 15 because that pin is covered by my Z-wave.me board.
                                  Regards,
                                  Erik

                                  M Offline
                                  M Offline
                                  marceloaqno
                                  Code Contributor
                                  wrote on last edited by
                                  #344

                                  @Erik-Tamminga Some pins may have some restrictions, I couldn't find any good info about that. Try using another pin (GPIO 25).

                                  1 Reply Last reply
                                  0
                                  • M marceloaqno

                                    @OliverDog Which controller are you using(or are planning to use)?

                                    OliverDogO Offline
                                    OliverDogO Offline
                                    OliverDog
                                    wrote on last edited by
                                    #345

                                    @marceloaqno I already use Home Assistant with a Serial Gateway connected on pi USB.

                                    M 1 Reply Last reply
                                    0
                                    • OliverDogO OliverDog

                                      @marceloaqno I already use Home Assistant with a Serial Gateway connected on pi USB.

                                      M Offline
                                      M Offline
                                      marceloaqno
                                      Code Contributor
                                      wrote on last edited by
                                      #346

                                      @OliverDog Home Assistant supports ethernet gateways, I recommend you go with that.

                                      ./configure --my-gateway=ethernet --my-transport=nrf24
                                      

                                      (The default settings is to use ethernet and nrf24, so you could omit them)

                                      and add to it any of your custom options.

                                      1 Reply Last reply
                                      0
                                      • MadhiasM Offline
                                        MadhiasM Offline
                                        Madhias
                                        wrote on last edited by Madhias
                                        #347

                                        I have a question regarding the --my-serial-groupname option: since I start the gateway under an user account with sudo, the gateway device ([EDIT] symlink) will be created with ownership root:root. Shouldn't it be created with root:dialout (as I chose dialout as group in my case)?

                                        [DELETED]

                                        M 1 Reply Last reply
                                        1
                                        • MadhiasM Madhias

                                          I have a question regarding the --my-serial-groupname option: since I start the gateway under an user account with sudo, the gateway device ([EDIT] symlink) will be created with ownership root:root. Shouldn't it be created with root:dialout (as I chose dialout as group in my case)?

                                          [DELETED]

                                          M Offline
                                          M Offline
                                          marceloaqno
                                          Code Contributor
                                          wrote on last edited by
                                          #348

                                          @Madhias /dev/pts/2 it's the one who holds the specified group ownership

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


                                          14

                                          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
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular