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.5k 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.
  • 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
                  • S sineverba

                    @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 Offline
                    AnticimexA Offline
                    Anticimex
                    Contest Winner
                    wrote on last edited by
                    #516

                    @sineverba I am not sure I understand what you want. You want to enable signing? There is extensive documentation on how to enable that. As for what to pass to the configure command on a rPi I am unsure of the exact naming but I am pretty sure the names are very similar to the #define:s the signing documentation describes.

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

                    S 1 Reply Last reply
                    0
                    • AnticimexA Anticimex

                      @sineverba I am not sure I understand what you want. You want to enable signing? There is extensive documentation on how to enable that. As for what to pass to the configure command on a rPi I am unsure of the exact naming but I am pretty sure the names are very similar to the #define:s the signing documentation describes.

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

                      @Anticimex Yes, the doc is ... maybe ... too extensive :)

                      By the way, I would signing. So I need to do on both? Gateway/Raspberry and Arduino?

                      Thank you

                      AnticimexA 1 Reply Last reply
                      0
                      • S sineverba

                        @Anticimex Yes, the doc is ... maybe ... too extensive :)

                        By the way, I would signing. So I need to do on both? Gateway/Raspberry and Arduino?

                        Thank you

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

                        @sineverba I am not sure I understand how it can be too excessive? It sounds like it is inadequate since you still have questions. :)
                        Of course you have to enable signing on both node and gateway. You also need to personalize the services with a hmac key. This is described. Please read the docs carefully. And if they are unclear, please provide a link to the documentation you have read, so I can verify you read the correct one.

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

                        S 1 Reply Last reply
                        0
                        • AnticimexA Anticimex

                          @sineverba I am not sure I understand how it can be too excessive? It sounds like it is inadequate since you still have questions. :)
                          Of course you have to enable signing on both node and gateway. You also need to personalize the services with a hmac key. This is described. Please read the docs carefully. And if they are unclear, please provide a link to the documentation you have read, so I can verify you read the correct one.

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

                          @Anticimex
                          I'm talking about this: https://www.mysensors.org/about/signing

                          Seems to me that probably need to be more clear your hint: you have to enable signing on both node and gateway.

                          I hope that soon I will can test on my network :)

                          Thank you for the moment :)

                          AnticimexA 1 Reply Last reply
                          0
                          • S sineverba

                            @Anticimex
                            I'm talking about this: https://www.mysensors.org/about/signing

                            Seems to me that probably need to be more clear your hint: you have to enable signing on both node and gateway.

                            I hope that soon I will can test on my network :)

                            Thank you for the moment :)

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

                            @sineverba yes, well that is for the official release so so far so good. I assume you also run the official version of the library and not the beta version, right?
                            For details on rPi configuration, perhaps @marceloaqno can provide some assistance but you will find all information needed on that page for configuring signing on your nodes.

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

                            S 1 Reply Last reply
                            0
                            • AnticimexA Anticimex

                              @sineverba yes, well that is for the official release so so far so good. I assume you also run the official version of the library and not the beta version, right?
                              For details on rPi configuration, perhaps @marceloaqno can provide some assistance but you will find all information needed on that page for configuring signing on your nodes.

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

                              @Anticimex On Raspberry PI V1 I can work only with branch development. With master the radio / serial doesn't work

                              AnticimexA 1 Reply Last reply
                              0
                              • S sineverba

                                @Anticimex On Raspberry PI V1 I can work only with branch development. With master the radio / serial doesn't work

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

                                @sineverba then please use this documentation instead.

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

                                S 1 Reply Last reply
                                0
                                • AnticimexA Anticimex

                                  @sineverba then please use this documentation instead.

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

                                  @Anticimex thank you but... it is not the same?

                                  AnticimexA 1 Reply Last reply
                                  0
                                  • S sineverba

                                    @Anticimex thank you but... it is not the same?

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

                                    @sineverba no, it isn't. There are newer features on beta branch. A third simplified option for signing exist (and if you have a hard time figuring out signing I highly recommend you use it).

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

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

                                      Raspberry PI V1 Model B (2 USB ports, no wifi, 26 GPIO).

                                      RASPBIAN JESSIE LITE v 2017-04-10-raspbian-jessie-lite.

                                      Some day ago I did compile the gateway only with development branch, using this:

                                      ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                      

                                      And all works fantastic.

                                      Today I did try a new fresh installation for a friend, same PI, and same commands and routine from zero:

                                      1. Logged with PI
                                      2. Changed Password
                                      3. Activate SSH
                                      4. Activate SPI
                                      5. Expand Filesystem
                                      6. Changed timezone

                                      launched

                                      ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                      

                                      No error on output, rebooted many times, gateways locked. See the screen:

                                      alt text

                                      With current setup (that works perfect), if I reconfigure to use Led TX/RX/Err, I get same lock.

                                      I have SD and a copy of it, but I would setup another one from zero.... and I cannot.

                                      Thank you

                                      S 1 Reply Last reply
                                      0
                                      • S sineverba

                                        Raspberry PI V1 Model B (2 USB ports, no wifi, 26 GPIO).

                                        RASPBIAN JESSIE LITE v 2017-04-10-raspbian-jessie-lite.

                                        Some day ago I did compile the gateway only with development branch, using this:

                                        ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                        

                                        And all works fantastic.

                                        Today I did try a new fresh installation for a friend, same PI, and same commands and routine from zero:

                                        1. Logged with PI
                                        2. Changed Password
                                        3. Activate SSH
                                        4. Activate SPI
                                        5. Expand Filesystem
                                        6. Changed timezone

                                        launched

                                        ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                        

                                        No error on output, rebooted many times, gateways locked. See the screen:

                                        alt text

                                        With current setup (that works perfect), if I reconfigure to use Led TX/RX/Err, I get same lock.

                                        I have SD and a copy of it, but I would setup another one from zero.... and I cannot.

                                        Thank you

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

                                        I don't want give up!

                                        I did download last RASPBIAN version (2017-06-21).
                                        Gitted from development branch...

                                        alt text

                                        My question is.... is it a problem of my PI? Too old? Need to buy the V3?

                                        I don't understand why some time ./configure works (and entire system with domoticz works without problem!!!) and other time no!

                                        @sineverba said in 💬 Building a Raspberry Pi Gateway:

                                        Raspberry PI V1 Model B (2 USB ports, no wifi, 26 GPIO).

                                        RASPBIAN JESSIE LITE v 2017-04-10-raspbian-jessie-lite.

                                        Some day ago I did compile the gateway only with development branch, using this:

                                        ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                        

                                        And all works fantastic.

                                        Today I did try a new fresh installation for a friend, same PI, and same commands and routine from zero:

                                        1. Logged with PI
                                        2. Changed Password
                                        3. Activate SSH
                                        4. Activate SPI
                                        5. Expand Filesystem
                                        6. Changed timezone

                                        launched

                                        ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                        

                                        No error on output, rebooted many times, gateways locked. See the screen:

                                        alt text

                                        With current setup (that works perfect), if I reconfigure to use Led TX/RX/Err, I get same lock.

                                        I have SD and a copy of it, but I would setup another one from zero.... and I cannot.

                                        Thank you

                                        S 1 Reply Last reply
                                        0
                                        • S sineverba

                                          I don't want give up!

                                          I did download last RASPBIAN version (2017-06-21).
                                          Gitted from development branch...

                                          alt text

                                          My question is.... is it a problem of my PI? Too old? Need to buy the V3?

                                          I don't understand why some time ./configure works (and entire system with domoticz works without problem!!!) and other time no!

                                          @sineverba said in 💬 Building a Raspberry Pi Gateway:

                                          Raspberry PI V1 Model B (2 USB ports, no wifi, 26 GPIO).

                                          RASPBIAN JESSIE LITE v 2017-04-10-raspbian-jessie-lite.

                                          Some day ago I did compile the gateway only with development branch, using this:

                                          ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                          

                                          And all works fantastic.

                                          Today I did try a new fresh installation for a friend, same PI, and same commands and routine from zero:

                                          1. Logged with PI
                                          2. Changed Password
                                          3. Activate SSH
                                          4. Activate SPI
                                          5. Expand Filesystem
                                          6. Changed timezone

                                          launched

                                          ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                          

                                          No error on output, rebooted many times, gateways locked. See the screen:

                                          alt text

                                          With current setup (that works perfect), if I reconfigure to use Led TX/RX/Err, I get same lock.

                                          I have SD and a copy of it, but I would setup another one from zero.... and I cannot.

                                          Thank you

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

                                          Hi to all!
                                          I did another test, on a new SD with Raspbian Lite 2017-06-21.

                                          It doesn't work. Hangs on protocol version.

                                          But... I did note this, after ./configure

                                          Master branch

                                          [SECTION] Detecting target machine.
                                            [OK] machine detected: SoC=unknown, Type=unknown, CPU=armv6l.
                                          [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.
                                          

                                          Development branch

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

                                          I'm going crazy :(

                                          @sineverba said in 💬 Building a Raspberry Pi Gateway:

                                          I don't want give up!

                                          I did download last RASPBIAN version (2017-06-21).
                                          Gitted from development branch...

                                          alt text

                                          My question is.... is it a problem of my PI? Too old? Need to buy the V3?

                                          I don't understand why some time ./configure works (and entire system with domoticz works without problem!!!) and other time no!

                                          @sineverba said in 💬 Building a Raspberry Pi Gateway:

                                          Raspberry PI V1 Model B (2 USB ports, no wifi, 26 GPIO).

                                          RASPBIAN JESSIE LITE v 2017-04-10-raspbian-jessie-lite.

                                          Some day ago I did compile the gateway only with development branch, using this:

                                          ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                          

                                          And all works fantastic.

                                          Today I did try a new fresh installation for a friend, same PI, and same commands and routine from zero:

                                          1. Logged with PI
                                          2. Changed Password
                                          3. Activate SSH
                                          4. Activate SPI
                                          5. Expand Filesystem
                                          6. Changed timezone

                                          launched

                                          ./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
                                          

                                          No error on output, rebooted many times, gateways locked. See the screen:

                                          alt text

                                          With current setup (that works perfect), if I reconfigure to use Led TX/RX/Err, I get same lock.

                                          I have SD and a copy of it, but I would setup another one from zero.... and I cannot.

                                          Thank you

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


                                          19

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          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