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.
  • S Offline
    S Offline
    sineverba
    Hardware Contributor
    wrote on last edited by sineverba
    #902

    Background: I use signing software on some nodes + whitelisting on a node (of course only PI serial is on the whitelist).

    With current --development branch (I think 2.3.0alpha) I cannot anymore set my previous personalized flags on gateway RPI3.

    In detail, with current master (2.2.0) I can do:

    sudo mysgw --set-soft-hmac-key=F618D4[...]848992B
    sudo mysgw --set-soft-serial-key=26[...]9
    sudo mysgw --set-aes-key=EC7[...]CEB4
    

    WIth development I did see only the --get[...] flags and cannot set anymore. Can you confirm?

    How can I set my previous values for signing?

    AnticimexA 1 Reply Last reply
    0
    • S sineverba

      Background: I use signing software on some nodes + whitelisting on a node (of course only PI serial is on the whitelist).

      With current --development branch (I think 2.3.0alpha) I cannot anymore set my previous personalized flags on gateway RPI3.

      In detail, with current master (2.2.0) I can do:

      sudo mysgw --set-soft-hmac-key=F618D4[...]848992B
      sudo mysgw --set-soft-serial-key=26[...]9
      sudo mysgw --set-aes-key=EC7[...]CEB4
      

      WIth development I did see only the --get[...] flags and cannot set anymore. Can you confirm?

      How can I set my previous values for signing?

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

      @sineverba I believe this change alters how rPi port handles signing related personalisation: https://github.com/mysensors/MySensors/commit/3c0b2727a56907277d4d04c985fd72b14e4a483c

      And, as usual, the documentation is a good place to start ;) https://www.mysensors.org/apidocs-beta/group__MySigninggrpPub.html#MySigninggrphowuse

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

      1 Reply Last reply
      1
      • joaoabsJ Offline
        joaoabsJ Offline
        joaoabs
        wrote on last edited by joaoabs
        #904

        I'm currently compiling the code for connecting the NRF24l01+ directly to the Raspberry PI. Since I'm running the controller (on this case OpenHab) on the same Raspberry PI, would it be recommended the Ethernet or the serial flavor of it?
        In the case of ethernet, can I place the own machine IP (127.0.0.1)? This way, if I need to change the IP address of the PI it wouldn't affect the communication between the controller and the MySensors code, right?
        --my-gateway=ethernet --my-controller-url-address=127.0.0.1

        And by the way, for the signing configuration, it is mentioned in the documentation "Update the gateway config file with the generated keys/valeus", what file is that (name, path)?

        I should be able to re-use the keys I have defined before, right? So I just go to step 2 (no need to generate new keys).
        I'm refering to this link.

        Thanks,

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

          --my-controller-url-address=127.0.0.1 is not needed for ethernet

          1 Reply Last reply
          0
          • joaoabsJ Offline
            joaoabsJ Offline
            joaoabs
            wrote on last edited by joaoabs
            #906

            I found that the configuration file is /etc/mysensors.conf but " The first time you start the gateway the configuration file will be created if it does not already exist.", so that's why I wasn't finding it.

            Anyway, the file states that:
            "Note: The gateway must have been built with signing support to use the options below."

            What flags should I include to have signing support?

            OK, found it: just run ./configure -h and there is a list of options. Leaving it here just for future reference

            gohanG AnticimexA 2 Replies Last reply
            0
            • joaoabsJ joaoabs

              I found that the configuration file is /etc/mysensors.conf but " The first time you start the gateway the configuration file will be created if it does not already exist.", so that's why I wasn't finding it.

              Anyway, the file states that:
              "Note: The gateway must have been built with signing support to use the options below."

              What flags should I include to have signing support?

              OK, found it: just run ./configure -h and there is a list of options. Leaving it here just for future reference

              gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #907

              @joaoabs said in 💬 Building a Raspberry Pi Gateway:

              ust run ./configure -h and there is a list of options. Leaving it here just for future reference

              it is already written in the article

              1 Reply Last reply
              0
              • joaoabsJ joaoabs

                I found that the configuration file is /etc/mysensors.conf but " The first time you start the gateway the configuration file will be created if it does not already exist.", so that's why I wasn't finding it.

                Anyway, the file states that:
                "Note: The gateway must have been built with signing support to use the options below."

                What flags should I include to have signing support?

                OK, found it: just run ./configure -h and there is a list of options. Leaving it here just for future reference

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

                @joaoabs
                Release: https://www.mysensors.org/apidocs/group__RaspberryPiGateway.html
                Beta/development: https://www.mysensors.org/apidocs-beta/group__RaspberryPiGateway.html

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

                1 Reply Last reply
                1
                • joaoabsJ Offline
                  joaoabsJ Offline
                  joaoabs
                  wrote on last edited by
                  #909

                  Thanks for the replies.

                  I've changed the PI from a PI1 to a PI3 and was able to make it working with signing. Its running smoothly, I guess the GW is chosen :).

                  I'll now focus on the nodes, specially the SenseBender micros that are 2xAA battery powered and are consuming ~3% bat per day, but that will be for another post...

                  Thanks!
                  Joaoabs

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    Damian
                    wrote on last edited by
                    #910

                    Hi, is there any way to check the current gateway operating parameters? My purpose is to check the radio channel and power level set before compilation but I would be glad if I could check other configurable parameters. I looked at Makefile.inc and found some flags set, but not the information I was looking for (does it mean that the default values are set)? Debug logs neither provide these informations.

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

                      What radio are you using?

                      D 1 Reply Last reply
                      0
                      • gohanG gohan

                        What radio are you using?

                        D Offline
                        D Offline
                        Damian
                        wrote on last edited by
                        #912

                        @gohan nrf24, one deployment pa+lna version with external antenna and the other standard with build-in "zig-zag" antenna.

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

                          I always set gw to max power if the radio is shielded

                          D 1 Reply Last reply
                          0
                          • joaoabsJ Offline
                            joaoabsJ Offline
                            joaoabs
                            wrote on last edited by joaoabs
                            #914

                            Hi,

                            Is it normal to have frequently these errors in the RPI GW?

                            May 11 00:43:54 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.
                            May 11 00:43:54 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.
                            May 11 00:43:56 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.
                            May 11 00:43:56 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.
                            May 11 00:43:58 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.
                            May 11 00:43:58 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.
                            May 11 00:44:00 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.
                            May 11 00:44:00 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.
                            

                            Thanks

                            1 Reply Last reply
                            0
                            • gohanG gohan

                              I always set gw to max power if the radio is shielded

                              D Offline
                              D Offline
                              Damian
                              wrote on last edited by
                              #915

                              @gohan Well, that is not an answer to my question apparently :) I suppose that max power lever is the default setting according to the configure script's help.

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

                                also look for a channel outside the WiFi range

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  kberck3
                                  wrote on last edited by
                                  #917

                                  Openhab2 on pi3b+ using nrf24 radios and mqtt. I can follow the wiring diagram, but the commands are a bit confusing and seem to jump around randomly. Do I put all the --my-blah-blah together after the ./configure to build a file? Should I do development version? Do the nfr improvements go together with everything else?

                                  gohanG 1 Reply Last reply
                                  0
                                  • K kberck3

                                    Openhab2 on pi3b+ using nrf24 radios and mqtt. I can follow the wiring diagram, but the commands are a bit confusing and seem to jump around randomly. Do I put all the --my-blah-blah together after the ./configure to build a file? Should I do development version? Do the nfr improvements go together with everything else?

                                    gohanG Offline
                                    gohanG Offline
                                    gohan
                                    Mod
                                    wrote on last edited by
                                    #918

                                    @kberck3 said in 💬 Building a Raspberry Pi Gateway:

                                    Do I put all the --my-blah-blah together after the ./configure to build a file?

                                    From the article "Note: All options must be added to the same line, after ./configure"

                                    Leave the development version for now, the stable works fine.

                                    mfalkviddM 1 Reply Last reply
                                    1
                                    • gohanG gohan

                                      @kberck3 said in 💬 Building a Raspberry Pi Gateway:

                                      Do I put all the --my-blah-blah together after the ./configure to build a file?

                                      From the article "Note: All options must be added to the same line, after ./configure"

                                      Leave the development version for now, the stable works fine.

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

                                      @gohan to be fair, I added that note this morning so kberck3 might not have seen it :-)

                                      1 Reply Last reply
                                      2
                                      • K Offline
                                        K Offline
                                        kberck3
                                        wrote on last edited by
                                        #920

                                        Appreciate the reply mfalkvidd and gohan! Service is running, will report back if I run into other issues.

                                        1 Reply Last reply
                                        2
                                        • Mark SwiftM Offline
                                          Mark SwiftM Offline
                                          Mark Swift
                                          wrote on last edited by
                                          #921

                                          Hi Guys,

                                          Is anyone here using the Pi with OTA updates? I'm finding them painfully slow (1-2 stream messages every few seconds). It's taking 1 hour per OTA update compared with 2-3 minutes when using the Arduino gateway!

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


                                          12

                                          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