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. ๐Ÿ’ฌ Building a Raspberry Pi Gateway

๐Ÿ’ฌ Building a Raspberry Pi Gateway

Scheduled Pinned Locked Moved Announcements
1.1k Posts 173 Posters 423.0k 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.
  • Q Offline
    Q Offline
    qkzk
    wrote on last edited by
    #496

    I tried the voltage shifter since I read : (*): If you are using the nrf24 PA/LNA version you need to use a 5V->3.3V regulator because the Raspberry Pi 3.3V can't supply enough power.
    Since I don't know the version...

    I had no success with an arduino USB gateway but I'll try again.

    I thought the controller-ip-adress=192.168.0.50 parameter was usefull otherwise the gateway would have to look guess where the controler is. I may have got everything wrong about who is initiating the dialogue. From what I read in home automation logs it's the controller who is looking for the gateway...

    I'll try the 2.2.0 version.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qkzk
      wrote on last edited by
      #497

      I managed to connect everything but not the way I would have prefered.
      Controler : Home assistant on debian server
      Gateway : arduino Uno connected to debian server trough usb serial
      Sensor : binary sensor (reed switch) on arduino mini.

      I'm still trying to figure what's wrong with what I posted earlier.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qkzk
        wrote on last edited by
        #498

        WOW ! It works :) thanks @gohan :)
        I removed the voltage shifter, added an 1ยตF capacitor and downloaded developpement libraries.
        Also, I cleaned the configuration parameters : ./configure --my-transport=nrf24 --my-gateway=ethernet
        It finally works as expected (sensor, gw on rpi3, controler on debian server) and I can ditch the uno (well, I'll find him another use).
        Thanks again for the wonderfull work, it's been fun :)

        1 Reply Last reply
        1
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #499

          Voltage regulator is strongly suggested when you are going to have the gw sending out messages and also a bigger capacitor will help

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Andy Pethan
            wrote on last edited by
            #500

            I'm trying to understand the need for a separate Gateway if the Ras Pi is the host of the controller. Is it possible to use OpenHab on the Pi AND have the RF transceiver connected to that same Pi and skip the ethernet adapter w/ Arduinos? Or, if you have to use ethernet, could you use localhost as the IP? Or is there a technical reason why that wouldn't work (or would work, but in a totally different way)? Thank you.

            rozpruwaczR 1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #501

              Did you read the article?

              1 Reply Last reply
              1
              • A Andy Pethan

                I'm trying to understand the need for a separate Gateway if the Ras Pi is the host of the controller. Is it possible to use OpenHab on the Pi AND have the RF transceiver connected to that same Pi and skip the ethernet adapter w/ Arduinos? Or, if you have to use ethernet, could you use localhost as the IP? Or is there a technical reason why that wouldn't work (or would work, but in a totally different way)? Thank you.

                rozpruwaczR Offline
                rozpruwaczR Offline
                rozpruwacz
                wrote on last edited by
                #502

                @Andy-Pethan there is no need, where You read that ? I have a raspi with openhab and mqtt gw on single board. works very well.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Andy Pethan
                  wrote on last edited by
                  #503

                  @gohan @rozpruwacz After reading a couple times it still wasn't clear that everything could run on one device (single Ras Pi), though that seemed like the intuitive answer. Thank you for confirming as I buy up parts.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Andy Pethan
                    wrote on last edited by
                    #504

                    I figured out my problem -- I had the image and concept of this tutorial (http://www.instructables.com/id/Uber-Home-Automation-w-Arduino-Pi/) one tab over and never noticed at 3am that I mentally blended the articles. Sorry, everyone.

                    1 Reply Last reply
                    1
                    • gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #505

                      In fact I was wondering what in the article wasn't clear.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sineverba
                        Hardware Contributor
                        wrote on last edited by
                        #506

                        Going crazy here.
                        I did get success with MySensors and first Arduino node on a fresh Raspbian (last image) and branch development. All ok!

                        Now I want re-do on other SD (same Pi, same WIring, same Radio). I did put "old" sd on a secure location and re-start from scratch.

                        I did compile with:

                        ./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                        

                        and answer is:

                        [SECTION] Detecting target machine.
                          [OK] machine detected: SoC=BCM2835, Type=rpi1, CPU=armv6l.
                        [SECTION] Detecting SPI driver.
                          [OK] SPI driver detected:BCM.
                        [SECTION] Detecting init system.
                          [OK] init system detected: systemd.
                        [SECTION] Saving configuration.
                        [SECTION] Cleaning previous builds.
                        [OK] Finished.
                        

                        Make ends with no error.

                        The debug

                        sudo ./bin/mysgw โ€“d
                        

                        locks here:

                        mysgw: Starting gateway...
                        mysgw: Protocol version - 2.2.0-beta
                        

                        And no other lines.

                        I Repeat, same PI, same Radio, same wiring. If I try other SD, all goes ok and I can use it on domoticz.

                        Thank you

                        S 1 Reply Last reply
                        0
                        • S sineverba

                          Going crazy here.
                          I did get success with MySensors and first Arduino node on a fresh Raspbian (last image) and branch development. All ok!

                          Now I want re-do on other SD (same Pi, same WIring, same Radio). I did put "old" sd on a secure location and re-start from scratch.

                          I did compile with:

                          ./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                          

                          and answer is:

                          [SECTION] Detecting target machine.
                            [OK] machine detected: SoC=BCM2835, Type=rpi1, CPU=armv6l.
                          [SECTION] Detecting SPI driver.
                            [OK] SPI driver detected:BCM.
                          [SECTION] Detecting init system.
                            [OK] init system detected: systemd.
                          [SECTION] Saving configuration.
                          [SECTION] Cleaning previous builds.
                          [OK] Finished.
                          

                          Make ends with no error.

                          The debug

                          sudo ./bin/mysgw โ€“d
                          

                          locks here:

                          mysgw: Starting gateway...
                          mysgw: Protocol version - 2.2.0-beta
                          

                          And no other lines.

                          I Repeat, same PI, same Radio, same wiring. If I try other SD, all goes ok and I can use it on domoticz.

                          Thank you

                          S Offline
                          S Offline
                          sineverba
                          Hardware Contributor
                          wrote on last edited by
                          #507

                          @sineverba

                          @sineverba said in ๐Ÿ’ฌ Building a Raspberry Pi Gateway:

                          Going crazy here.
                          I did get success with MySensors and first Arduino node on a fresh Raspbian (last image) and branch development. All ok!

                          Now I want re-do on other SD (same Pi, same WIring, same Radio). I did put "old" sd on a secure location and re-start from scratch.

                          I did compile with:

                          ./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                          

                          and answer is:

                          [SECTION] Detecting target machine.
                            [OK] machine detected: SoC=BCM2835, Type=rpi1, CPU=armv6l.
                          [SECTION] Detecting SPI driver.
                            [OK] SPI driver detected:BCM.
                          [SECTION] Detecting init system.
                            [OK] init system detected: systemd.
                          [SECTION] Saving configuration.
                          [SECTION] Cleaning previous builds.
                          [OK] Finished.
                          

                          Make ends with no error.

                          The debug

                          sudo ./bin/mysgw โ€“d
                          

                          locks here:

                          mysgw: Starting gateway...
                          mysgw: Protocol version - 2.2.0-beta
                          

                          And no other lines.

                          I Repeat, same PI, same Radio, same wiring. If I try other SD, all goes ok and I can use it on domoticz.

                          Thank you

                          OK, re-re-done on fresh install and all went ok.

                          I think that problem was when I deleted the PI default user and created another one.

                          I did follow the gordon guide: https://gordonlesti.com/change-default-users-on-raspberry-pi/

                          Probably a permission issues changing or not changing root?

                          Thank you

                          1 Reply Last reply
                          1
                          • L Offline
                            L Offline
                            lassivv
                            wrote on last edited by lassivv
                            #508

                            Hi all

                            Hope someone can help MySensors noob :) I try to do Raspberry pi 3 gateway with nrf24 module.

                            Hardware:
                            Raspberry pi 3
                            nrf24 module
                            3.3v 0.5A regulator.
                            status leds (3pcs)
                            Domoticz Beta

                            I start with this instructions:
                            https://www.mysensors.org/build/raspberry#improving-throughput-for-nrf24

                            commands what i use:
                            git clone https://github.com/mysensors/MySensors.git --branch master
                            cd MySensors
                            ./configure --my-transport=nrf24
                            ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway (try ttyUSBMySensorsGateway too, but now help)
                            ./configure --my-transport=nrf24 --my-rf24-irq-pin=15
                            ./configure --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18

                            make
                            sudo ./bin/mysgw -d

                            After that i get error what is same to that instruction site:
                            http://i.imgur.com/jpiaMdC.png

                            I douple check wiring that seems to be all right. I think Linux console tell wrong wiring, if wiring is problem? But anyway i douple checked that wiring.

                            Hope someone can help me with this problem.

                            I try many times different settings, dont know do i need delete some old files or can i try again and again do configure and give "make" command.

                            mfalkviddM 1 Reply Last reply
                            0
                            • L lassivv

                              Hi all

                              Hope someone can help MySensors noob :) I try to do Raspberry pi 3 gateway with nrf24 module.

                              Hardware:
                              Raspberry pi 3
                              nrf24 module
                              3.3v 0.5A regulator.
                              status leds (3pcs)
                              Domoticz Beta

                              I start with this instructions:
                              https://www.mysensors.org/build/raspberry#improving-throughput-for-nrf24

                              commands what i use:
                              git clone https://github.com/mysensors/MySensors.git --branch master
                              cd MySensors
                              ./configure --my-transport=nrf24
                              ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway (try ttyUSBMySensorsGateway too, but now help)
                              ./configure --my-transport=nrf24 --my-rf24-irq-pin=15
                              ./configure --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18

                              make
                              sudo ./bin/mysgw -d

                              After that i get error what is same to that instruction site:
                              http://i.imgur.com/jpiaMdC.png

                              I douple check wiring that seems to be all right. I think Linux console tell wrong wiring, if wiring is problem? But anyway i douple checked that wiring.

                              Hope someone can help me with this problem.

                              I try many times different settings, dont know do i need delete some old files or can i try again and again do configure and give "make" command.

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

                              @lassivv please don't post the same question in multiple places. Posting in multiple places will result in people trying to help you in one place, even after the problem has been solved in the other place. That is a waste of people's time.

                              Anyone trying to help @lassivv please post in https://forum.mysensors.org/topic/7050/multi-node-project-mysensors-noob-raspberry-gateway-problem

                              1 Reply Last reply
                              0
                              • L Offline
                                L Offline
                                lassivv
                                wrote on last edited by
                                #510

                                Sorry see this topic after i post my own topic, thinks this is better topic to my problems. But i continue my own topic.

                                1 Reply Last reply
                                1
                                • S Offline
                                  S Offline
                                  sineverba
                                  Hardware Contributor
                                  wrote on last edited by
                                  #511

                                  I have a couple of nodes + PI working without issues from a couple of days.
                                  Now, I would add encryption / signing / security etc to protect traffic between Arduinos and PI.
                                  Could you please help me posting right configuration to add to the

                                  ./configure

                                  command?

                                  Thank you very much!

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

                                    Why do Tx and Rx Leds blink every 5 to 6 seconds?

                                    Is it about communication between RPi and Gateway?

                                    Is there a way to disable it and keep blinks only with nodes communication?

                                    OliverDogO 1 Reply Last reply
                                    0
                                    • S sineverba

                                      I have a couple of nodes + PI working without issues from a couple of days.
                                      Now, I would add encryption / signing / security etc to protect traffic between Arduinos and PI.
                                      Could you please help me posting right configuration to add to the

                                      ./configure

                                      command?

                                      Thank you very much!

                                      S Offline
                                      S Offline
                                      sineverba
                                      Hardware Contributor
                                      wrote on last edited by
                                      #513

                                      @sineverba said in ๐Ÿ’ฌ Building a Raspberry Pi Gateway:

                                      I have a couple of nodes + PI working without issues from a couple of days.
                                      Now, I would add encryption / signing / security etc to protect traffic between Arduinos and PI.
                                      Could you please help me posting right configuration to add to the

                                      ./configure

                                      command?

                                      Thank you very much!

                                      Sorry..... I would UP! this :)

                                      AnticimexA 1 Reply Last reply
                                      0
                                      • S sineverba

                                        @sineverba said in ๐Ÿ’ฌ Building a Raspberry Pi Gateway:

                                        I have a couple of nodes + PI working without issues from a couple of days.
                                        Now, I would add encryption / signing / security etc to protect traffic between Arduinos and PI.
                                        Could you please help me posting right configuration to add to the

                                        ./configure

                                        command?

                                        Thank you very much!

                                        Sorry..... I would UP! this :)

                                        AnticimexA Offline
                                        AnticimexA Offline
                                        Anticimex
                                        Contest Winner
                                        wrote on last edited by
                                        #514

                                        @sineverba is there not a --help argument to get a list of settings?

                                        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                        S 1 Reply Last reply
                                        0
                                        • AnticimexA Anticimex

                                          @sineverba is there not a --help argument to get a list of settings?

                                          S Offline
                                          S Offline
                                          sineverba
                                          Hardware Contributor
                                          wrote on last edited by
                                          #515

                                          @Anticimex sure... Bit I did read also the guide and .... I did noto understand very well whats I need to activate (if need) on gateway and on Arduinos to block, for example, the persone that live on third floor to play with my heater ..... :-) thank you in advance

                                          PS security only software, no other hardware implied / want use

                                          Thank you!

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