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 999.2k 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.
  • MasMatM MasMat

    @gohan I did, I will post it (but it appears to send normally). But the only things I changed was:

    1. Rpi configure added: --my-signing=password --my-signing-password=ZZZZZZ
    2. In the nodes code: #define MY_SIGNING_SIMPLE_PASSWD = "ZZZZZZ"
    A Offline
    A Offline
    Anticimex
    Contest Winner
    wrote on last edited by
    #872

    @masmat check that the version you are using (release or beta) match your use of the simple flags, as they differ at the moment.

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

    MasMatM 1 Reply Last reply
    0
    • A Anticimex

      @masmat check that the version you are using (release or beta) match your use of the simple flags, as they differ at the moment.

      MasMatM Offline
      MasMatM Offline
      MasMat
      wrote on last edited by MasMat
      #873

      @anticimex Both Arduino IDE is 2.2 and Rpi is compiled with 2.2 stable.
      I'm seeing !TSF:MSG:SIGN FAIL in the serial monitor so something is not compatible... I will try making password >8 characters next (currently 6).

      I will also add those parameters to see if that makes a difference before reuploading arduino code

      A 1 Reply Last reply
      0
      • MasMatM MasMat

        @anticimex Both Arduino IDE is 2.2 and Rpi is compiled with 2.2 stable.
        I'm seeing !TSF:MSG:SIGN FAIL in the serial monitor so something is not compatible... I will try making password >8 characters next (currently 6).

        I will also add those parameters to see if that makes a difference before reuploading arduino code

        A Offline
        A Offline
        Anticimex
        Contest Winner
        wrote on last edited by Anticimex
        #874

        @masmat if you add the signing debug flag and use the log parser on the homepage it should become clear what the problem is. You can also use the troubleshooting guide in the signing documentation.

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

        1 Reply Last reply
        0
        • MasMatM Offline
          MasMatM Offline
          MasMat
          wrote on last edited by
          #875

          @anticimex This is what's happening in the gw:

          TSF:MSG:READ,36-192-15,s=69,c=0,t=81,pt=1,l=21,sg=0:221
          !TSF:MSG:LEN,16!=28
          TSF:MSG:READ,75-68-77,s=48,c=1,t=110,pt=1,l=25,sg=1:249
          !TSF:MSG:LEN,16!=32

          The parser didn't really help much: more baffled than before....and I came away from the troubleshooting guide feeling really stupid :)

          A 1 Reply Last reply
          0
          • MasMatM MasMat

            @anticimex This is what's happening in the gw:

            TSF:MSG:READ,36-192-15,s=69,c=0,t=81,pt=1,l=21,sg=0:221
            !TSF:MSG:LEN,16!=28
            TSF:MSG:READ,75-68-77,s=48,c=1,t=110,pt=1,l=25,sg=1:249
            !TSF:MSG:LEN,16!=32

            The parser didn't really help much: more baffled than before....and I came away from the troubleshooting guide feeling really stupid :)

            A Offline
            A Offline
            Anticimex
            Contest Winner
            wrote on last edited by
            #876

            @masmat looks to me that your gateway is not set up for signing

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

            gohanG 1 Reply Last reply
            0
            • A Anticimex

              @masmat looks to me that your gateway is not set up for signing

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

              @anticimex I think he didn't use all the parameters for the configure, right?

              A MasMatM 2 Replies Last reply
              0
              • gohanG gohan

                @anticimex I think he didn't use all the parameters for the configure, right?

                A Offline
                A Offline
                Anticimex
                Contest Winner
                wrote on last edited by
                #878

                @gohan the simple flags should not need more args, but I don't use a rPi as gw so I honestly am not sure exactly the args to use. The beta documentation has clear instructions for rPi signing, but those are specifically for beta branch and probably don't map exactly to the release yet.

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

                1 Reply Last reply
                0
                • gohanG gohan

                  @anticimex I think he didn't use all the parameters for the configure, right?

                  MasMatM Offline
                  MasMatM Offline
                  MasMat
                  wrote on last edited by MasMat
                  #879

                  @gohan The whole configure-line:

                  sudo ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-signing=software --my-signing-request-signatures --my-signing-weak_security --my-signing-debug --my-signing=password --my-signing-password=ZZZZZZ --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-user=XXXX --my-mqtt-password=YYYYY --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18
                  

                  If anyone can tell what's missing or if there's a typo?

                  A 2 Replies Last reply
                  0
                  • MasMatM MasMat

                    @gohan The whole configure-line:

                    sudo ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-signing=software --my-signing-request-signatures --my-signing-weak_security --my-signing-debug --my-signing=password --my-signing-password=ZZZZZZ --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-user=XXXX --my-mqtt-password=YYYYY --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18
                    

                    If anyone can tell what's missing or if there's a typo?

                    A Offline
                    A Offline
                    Anticimex
                    Contest Winner
                    wrote on last edited by
                    #880

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

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

                    1 Reply Last reply
                    0
                    • MasMatM MasMat

                      @gohan The whole configure-line:

                      sudo ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-signing=software --my-signing-request-signatures --my-signing-weak_security --my-signing-debug --my-signing=password --my-signing-password=ZZZZZZ --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-user=XXXX --my-mqtt-password=YYYYY --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18
                      

                      If anyone can tell what's missing or if there's a typo?

                      A Offline
                      A Offline
                      Anticimex
                      Contest Winner
                      wrote on last edited by Anticimex
                      #881

                      @masmat you have redundant flags. The password option require no other signing flags. Only if you select software as signing backend you need other options (and none of the simple flags)

                      And remember that if you use software signing and not password signing, you need to personalize the GW and/or node.

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

                      MasMatM 1 Reply Last reply
                      0
                      • A Anticimex

                        @masmat you have redundant flags. The password option require no other signing flags. Only if you select software as signing backend you need other options (and none of the simple flags)

                        And remember that if you use software signing and not password signing, you need to personalize the GW and/or node.

                        MasMatM Offline
                        MasMatM Offline
                        MasMat
                        wrote on last edited by MasMat
                        #882

                        @anticimex I thought so too, but I'm grasping at straws to get the signing to work.
                        To clarify, is the following enough for simple signing: --my-signing-debug --my-signing=password --my-signing-password=ZZZZZZ

                        And the arduino code #define MY_SIGNING_SIMPLE_PASSWD = "ZZZZZZ"
                        Any difference where it's placed in the code? Anything else to check for?

                        A 1 Reply Last reply
                        0
                        • MasMatM MasMat

                          @anticimex I thought so too, but I'm grasping at straws to get the signing to work.
                          To clarify, is the following enough for simple signing: --my-signing-debug --my-signing=password --my-signing-password=ZZZZZZ

                          And the arduino code #define MY_SIGNING_SIMPLE_PASSWD = "ZZZZZZ"
                          Any difference where it's placed in the code? Anything else to check for?

                          A Offline
                          A Offline
                          Anticimex
                          Contest Winner
                          wrote on last edited by
                          #883

                          @masmat it needs to be defined prior to the inclusion of mysensors.h. That should be it. (on the arduino node that is).

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

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

                            While on the subject: what would be the flags needed for setting the gateway to only use the simple encryption but not the (simple) signing feature?

                            I looked in the documentation and the node commands aren't mirrored for the gateway. I was hoping for something like:

                            --MY_SIGNING_SIMPLE_PASSWD=flowerpot77
                            --MY_ENCRYPTION_SIMPLE_PASSWD=spiderman41

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

                              It's actually not needed since you can still set signing as optional on gateway

                              1 Reply Last reply
                              0
                              • alowhumA alowhum

                                While on the subject: what would be the flags needed for setting the gateway to only use the simple encryption but not the (simple) signing feature?

                                I looked in the documentation and the node commands aren't mirrored for the gateway. I was hoping for something like:

                                --MY_SIGNING_SIMPLE_PASSWD=flowerpot77
                                --MY_ENCRYPTION_SIMPLE_PASSWD=spiderman41

                                A Offline
                                A Offline
                                Anticimex
                                Contest Winner
                                wrote on last edited by Anticimex
                                #886

                                @alowhum that feature is still only available for beta and is documented here: https://www.mysensors.org/apidocs-beta/group__SecuritySettingGrpPub.html

                                EDIT: not yet for rPi

                                Pull requests are welcome. I don't have time for this at the moment.

                                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 alowhum
                                  #887

                                  Right. So is this correct?

                                  NODES (arduino nano)
                                  On all my nodes I will update them to have this code at the top:

                                  #define MY_ENCRYPTION_SIMPLE_PASSWD spiderman41 // unfortunately Nano hardware doesn't really have enough memory for signing.
                                  #define MY_RF24_CHANNEL 100 // in EU the default channel 76 overlaps with wifi.
                                  #define MY_RF24_DATARATE RF24_1MBPS // slower datarate makes the network more stable?

                                  GATEWAY (Raspberry Pi Zero W)
                                  On my gateway I will use this configure code:

                                  --my-security-password=spiderman41
                                  --my-rf24-encryption-enabled
                                  --my-signing-weak_security
                                  --my-rf24-channel=100
                                  --extra-cxxflags="-DMY_RF24_DATARATE=(RF24_1MBPS)"

                                  A 1 Reply Last reply
                                  0
                                  • alowhumA alowhum

                                    Right. So is this correct?

                                    NODES (arduino nano)
                                    On all my nodes I will update them to have this code at the top:

                                    #define MY_ENCRYPTION_SIMPLE_PASSWD spiderman41 // unfortunately Nano hardware doesn't really have enough memory for signing.
                                    #define MY_RF24_CHANNEL 100 // in EU the default channel 76 overlaps with wifi.
                                    #define MY_RF24_DATARATE RF24_1MBPS // slower datarate makes the network more stable?

                                    GATEWAY (Raspberry Pi Zero W)
                                    On my gateway I will use this configure code:

                                    --my-security-password=spiderman41
                                    --my-rf24-encryption-enabled
                                    --my-signing-weak_security
                                    --my-rf24-channel=100
                                    --extra-cxxflags="-DMY_RF24_DATARATE=(RF24_1MBPS)"

                                    A Offline
                                    A Offline
                                    Anticimex
                                    Contest Winner
                                    wrote on last edited by
                                    #888

                                    @alowhum you will need to enable weak security as well as that will enable both signing and encryption with signature requirements from all nodes on the gw

                                    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 alowhum
                                      #889

                                      @Anticimex thanks!

                                      as that will enable both signing and encryption with signature requirements from all nodes on the gw
                                      But I don't want signing? Or do you mean that it will remove that requirement?

                                      I only need to set that on the gateway, right?
                                      I've also added a slower datarate, thinking that will also create a more stable connection. I am in a busy urban environment with lots of RF noise. Is that smart?

                                      A 1 Reply Last reply
                                      0
                                      • alowhumA alowhum

                                        @Anticimex thanks!

                                        as that will enable both signing and encryption with signature requirements from all nodes on the gw
                                        But I don't want signing? Or do you mean that it will remove that requirement?

                                        I only need to set that on the gateway, right?
                                        I've also added a slower datarate, thinking that will also create a more stable connection. I am in a busy urban environment with lots of RF noise. Is that smart?

                                        A Offline
                                        A Offline
                                        Anticimex
                                        Contest Winner
                                        wrote on last edited by
                                        #890

                                        @alowhum I thought you did not want signing: "but not the (simple) signing feature?"

                                        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 alowhum
                                          #891

                                          Yes, I don't want signing. But what you wrote said that it wil ENABLE signing. Check your sentence. Probably a typo, but I wanted to make sure :-)

                                          A 1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          18

                                          Online

                                          12.0k

                                          Users

                                          11.2k

                                          Topics

                                          113.4k

                                          Posts


                                          Copyright 2025 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