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.
  • R ricorico94

    @mfalkvidd : thanks a lot ! I had searched for such version history and couldn't find it.
    Indeed it seems introduction of the switches for log files was introduced in February, so I should probably update my install.

    Precisely, talking about upgrade process: I read in previous posts that we should uninstall/unregister the install/service. WHat would be commands to do so ? Should it be:

    sudo systemctl disable mysgw.service
    

    and executed before anything else ? So upgrade process would be:

    sudo systemctl disable mysgw.service
    make
    sudo make install
    sudo systemctl enable mysgw.service
    

    (and maybe test the gateway before the "systemctl enable..")
    Is there anyfile to remove manually ? or any other command to apply before or after ?

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

    @ricorico94 to update your install run:

    sudo make install
    sudo systemctl restart mysgw.service
    
    1 Reply Last reply
    2
    • R Offline
      R Offline
      ricorico94
      wrote on last edited by
      #948

      Thank you for the clarification !

      1 Reply Last reply
      1
      • alowhumA Offline
        alowhumA Offline
        alowhum
        Plugin Developer
        wrote on last edited by alowhum
        #949

        @anticimex said in 💬 Building a Raspberry Pi Gateway:

        https://www.mysensors.org/apidocs/group__RaspberryPiGateway.html

        @Anticimex Thanks, but a documentation page (which I have checked before) is not the same as an easy to use guide for beginners.

        In my ideal world it would be this:

        1. Add the MY_SIMPLE_PASSWORD line to your Arduino sketch.
        2. Compile the gateway with --MY_SIMPLE_PASSWORD="yabadabad000!"
        3. Done
        AnticimexA 1 Reply Last reply
        0
        • alowhumA alowhum

          @anticimex said in 💬 Building a Raspberry Pi Gateway:

          https://www.mysensors.org/apidocs/group__RaspberryPiGateway.html

          @Anticimex Thanks, but a documentation page (which I have checked before) is not the same as an easy to use guide for beginners.

          In my ideal world it would be this:

          1. Add the MY_SIMPLE_PASSWORD line to your Arduino sketch.
          2. Compile the gateway with --MY_SIMPLE_PASSWORD="yabadabad000!"
          3. Done
          AnticimexA Offline
          AnticimexA Offline
          Anticimex
          Contest Winner
          wrote on last edited by
          #950

          @alowhum it is not easy to have simple guides tailored for specific usecases when there are so many options.
          Those tend to not follow implementation and our documentation is made to live with the implementation to ensure it is always up to date. Maintaining a simple guide for every conceivable use case is simply not feasible. The signing and security documentation does have a step by step guide for setting up security.

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

          1 Reply Last reply
          0
          • alowhumA Offline
            alowhumA Offline
            alowhum
            Plugin Developer
            wrote on last edited by
            #951

            @Anticimex: I understand, but:

            • Currently even the outline of the steps eludes me. Seeing the steps for usecase #14 or #385 would already help me understand the scope, and to see what ballpark of difficulty it's in. It's easier to mod a guide when there is something to go on.
            • Secondly, there must be a common use case? The defaults that MySensors uses already suggests a lot of these: a Raspberry Pi with the default settings of the software (ethernet), with the nRF24 radio.
            AnticimexA 1 Reply Last reply
            0
            • alowhumA alowhum

              @Anticimex: I understand, but:

              • Currently even the outline of the steps eludes me. Seeing the steps for usecase #14 or #385 would already help me understand the scope, and to see what ballpark of difficulty it's in. It's easier to mod a guide when there is something to go on.
              • Secondly, there must be a common use case? The defaults that MySensors uses already suggests a lot of these: a Raspberry Pi with the default settings of the software (ethernet), with the nRF24 radio.
              AnticimexA Offline
              AnticimexA Offline
              Anticimex
              Contest Winner
              wrote on last edited by
              #952

              @alowhum ok, well first of all, I don't have a rPi setup to test on, secondly I don't have time to look into that (this) environment.
              But, this is a open source project so anyone is free to contribute with both code and documentation (which in our case lives in the same repositories) so if there are guides missing enyone is welcome to contribute with experiences and guides to help others out.
              It is just important to understand that the guides need to be maintained in order to remain valid.
              I don't mind guides at all. But it makes little sense for me to write guides for an environment which I am not familiar with nor can test on.

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

              1 Reply Last reply
              1
              • alowhumA Offline
                alowhumA Offline
                alowhum
                Plugin Developer
                wrote on last edited by
                #953

                @Anticimex: Sure, that's totally understandable. There are other people on the forum :-) Can anyone help me and @pepson out?

                And it is exactly my goal to create a more elaborate guide after someone points out the basic steps.

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  John Oliva
                  wrote on last edited by
                  #954

                  I have designed a 3D printable enclosure for this and the design/STL files are available here: https://www.thingiverse.com/thing:3072244

                  1 Reply Last reply
                  1
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #955

                    @John-Oliva, nice! Added it to the MySensors collection:
                    https://www.thingiverse.com/mysensors/collections/mysensors

                    1 Reply Last reply
                    1
                    • ? A Former User

                      Hello, it seems I found the problem: Complete newbie thing: :beginner:
                      sudo ./bin/mysgw -h worked, but /usr/local/bin/mysgw didn't
                      I just gave the right to the folder, and now it's working.
                      Thanks for taking time to help beginners !

                      cadetC Offline
                      cadetC Offline
                      cadet
                      wrote on last edited by
                      #956

                      @korleone HI
                      I have same error
                      Can you write that rigth do you ser to folder ?
                      Andrey

                      cadetC 1 Reply Last reply
                      0
                      • cadetC cadet

                        @korleone HI
                        I have same error
                        Can you write that rigth do you ser to folder ?
                        Andrey

                        cadetC Offline
                        cadetC Offline
                        cadet
                        wrote on last edited by
                        #957

                        @cadet I just remove /usr/local/bin/mysgw and compile again
                        And I have one question - why is it happened?
                        MysGW work fine about 3 months.

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

                          what problem did you have?

                          cadetC 1 Reply Last reply
                          0
                          • gohanG gohan

                            what problem did you have?

                            cadetC Offline
                            cadetC Offline
                            cadet
                            wrote on last edited by
                            #959

                            @gohan mysgw: ERROR accept: Bad file descriptor - today morning

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

                              I get that when another instance of the process is already running

                              cadetC 1 Reply Last reply
                              0
                              • gohanG gohan

                                I get that when another instance of the process is already running

                                cadetC Offline
                                cadetC Offline
                                cadet
                                wrote on last edited by
                                #961

                                @gohan I was try to find it with ps -ef, but nothing found. Reload RPI.
                                @korleone was write about this
                                "Hello, it seems I found the problem: Complete newbie thing: 🔰
                                sudo ./bin/mysgw -h worked, but /usr/local/bin/mysgw didn't
                                I just gave the right to the folder, and now it's working."

                                But what right hi gave ?

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

                                  sudo ./bin/mysgw -h could work, it only depends in which folder you are running the command from

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    mvader
                                    wrote on last edited by
                                    #963

                                    FYI looks like on the 2.3.1 beta the transport has been changed to rf24 instead of nrf24

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      magjef29
                                      wrote on last edited by
                                      #964

                                      Is the rasberry pi serving as a gateway and a server in this project? Or do you have to have a separate pi to host something like openhab and another pi for your gateway?

                                      mfalkviddM 1 Reply Last reply
                                      0
                                      • M magjef29

                                        Is the rasberry pi serving as a gateway and a server in this project? Or do you have to have a separate pi to host something like openhab and another pi for your gateway?

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

                                        Hi @magjef29, welcome to the MySensors forum!

                                        You can run your controller(s) on the same Raspberry Pi.

                                        Depending on what tou mean by ”server”, the gateway can be a server, but the gateway is not a controller.

                                        If you haven’t already, see the getting started guide for information about the different parts.

                                        1 Reply Last reply
                                        0
                                        • А Offline
                                          А Offline
                                          Артем ТИхонович
                                          wrote on last edited by
                                          #966

                                          Hi! Does anybody test Cubieboard as Gateway? I have a cubieboard runing archlinux with spi enabled in kernel. How i define pins for nrf24 gateway connection? Or i need to make big changes in code to star work with different bord than Rpi?
                                          Best regards

                                          1 Reply Last reply
                                          0
                                          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
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular