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.1k 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.
  • Richard van der PlasR Offline
    Richard van der PlasR Offline
    Richard van der Plas
    wrote on last edited by
    #450

    excellent, will the cpu utilisation be much higher that with a usb connected gw ?

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

      No, it uses very few cpu

      1 Reply Last reply
      0
      • manulM Offline
        manulM Offline
        manul
        wrote on last edited by
        #452

        @Richard van der Plas: I strongly recommend to use MQTT instead of Ethernet gateway, as it is a standard way for 2 processes to communicate, and platform-agnostic.
        HASS comes with an embed MQTT broker taht works out of the box.
        Plus:

        • you can easily mock either your sensors network or your controller
        • it does support secure communication
        • you can add other clients to observe the event, e.g. to log what is coming from/what is sent to the gateway
        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #453

          I suggested ethernet because it's easier to setup and configure, mqtt is the next step.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pettib
            wrote on last edited by
            #454

            Hi
            I also have problem to get the NRF24L01+ chip to work with the RPi3.

            I find that the masterbranch don't recognize the board as RPi3 and sets SoC and Type as unknown.
            But if i take development branch it´s detecting RPi3 and seems to work correct.

            This is result from development Branch configure:
            [SECTION] Detecting target machine.
            [OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=armv7l.
            [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.

            This is result from Master Branch configure:
            [SECTION] Detecting target machine.
            [OK] machine detected: SoC=unknown, Type=unknown, CPU=armv7l.
            [SECTION] Checking GPIO Sysfs.
            [OK] /sys/class/gpio/export found
            [SECTION] Detecting SPI driver.
            [OK] SPI driver detected:SPIDEV.
            [SECTION] Detecting init system.
            [OK] init system detected: systemd.
            [SECTION] Saving configuration.
            [SECTION] Cleaning previous builds.
            [OK] Finished.

            This is the result from cat /proc/cpuinfo:

            Hardware : BCM2835
            Revision : a02082

            //Peter

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

              That's odd, I have the 2.1.1 compiled on mine rpi 3

              M 1 Reply Last reply
              0
              • gohanG gohan

                That's odd, I have the 2.1.1 compiled on mine rpi 3

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

                @pettib @gohan There have been some changes in /proc/cpuinfo in newer versions of kernels which leads to a wrong detection.
                The problem was fix in #827 and will be available in the master branch in the next mysensor release.

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

                  I'm using dietpi and I compiled it like 2 weeks ago..

                  1 Reply Last reply
                  0
                  • Richard van der PlasR Richard van der Plas

                    How will this work with HASS running on the same pi ?

                    Fat FlyF Offline
                    Fat FlyF Offline
                    Fat Fly
                    wrote on last edited by
                    #458

                    @Richard-van-der-Plas what is this: HASS ?

                    1 Reply Last reply
                    0
                    • Richard van der PlasR Offline
                      Richard van der PlasR Offline
                      Richard van der Plas
                      wrote on last edited by
                      #459

                      Ok, i am standig on a crossroad it seems, i have to build a new gateway but i am also interested in the MQTT option, this is between mysensors & HomeASSistant i presume? i have some ESP's lying around unused, but i have 0 knowledge of mqtt (i dont think my hass has it running by default)

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

                        Just go with ethernet first that is easier, get used to it then take your time to learn MQTT. Of course MQTT is more advanced has authentication and encryption but it adds complexity to initial setup.

                        1 Reply Last reply
                        0
                        • Richard van der PlasR Offline
                          Richard van der PlasR Offline
                          Richard van der Plas
                          wrote on last edited by
                          #461

                          Damn, just connected as in manual, but gives an error : mysgw: !TSM:INIT:TSP FAIL
                          Double checked the GPIO pins (except 15 cannot find that one) but seems ok

                          1 Reply Last reply
                          0
                          • Richard van der PlasR Offline
                            Richard van der PlasR Offline
                            Richard van der Plas
                            wrote on last edited by
                            #462

                            NM, used GPIO numbers instead of Pin numbers RTFM :)

                            1 Reply Last reply
                            1
                            • ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by A Former User
                              #463

                              I always have a mysgw: accept: Bad file descriptor error when I launch a new ./bin/mysgw -d Exact problem is the following:

                              mysgw: bind: Address already in use
                              mysgw: Failed to bind!
                              

                              And I always need to kill the process first. Is this normal ? (I'm in LAN GW)

                              Thanks!

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

                                If you already installed mysgw as service to start at boot, it is normal that you can not run another process in debug mode and it conflicts

                                1 Reply Last reply
                                0
                                • ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on last edited by
                                  #465

                                  @gohan said in 💬 Building a Raspberry Pi Gateway:

                                  lready installed mysgw as service to start at boot, it is normal that you can not run another process in debug mode and it conflicts

                                  Oh, Ok. Thanks.
                                  Another thing is that when i close PuTTY, the gateway doesn't retrieve anymore the data...

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

                                    You need to install it as service so it always runs in background

                                    1 Reply Last reply
                                    0
                                    • ? Offline
                                      ? Offline
                                      A Former User
                                      wrote on last edited by
                                      #467

                                      Is it this process :

                                      1421 ?        Rs    40:25 /usr/local/bin/mysgw
                                      

                                      Seems it runs for 40 minutes, but no the gateway sees no data...

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

                                        what gateway did you compile? What option in ./configure did you use?

                                        1 Reply Last reply
                                        0
                                        • ? Offline
                                          ? Offline
                                          A Former User
                                          wrote on last edited by A Former User
                                          #469

                                          First of all : thanks for helping !

                                          I compiled an Ethernet gateway
                                          The options are the following:

                                          ./configure --my-gateway=ethernet --my-port=5003 --my-rf24-irq-pin=15 --my-transport=nrf24
                                          

                                          The only way I make the GW working is through the debug mode (by switching off the service process)

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


                                          16

                                          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