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 422.6k 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 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
                          • gohanG Offline
                            gohanG Offline
                            gohan
                            Mod
                            wrote on last edited by
                            #528

                            Try DIETPI instead of raspian and see if it changes

                            S 1 Reply Last reply
                            0
                            • gohanG gohan

                              Try DIETPI instead of raspian and see if it changes

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

                              @gohan
                              I can and I will try, of sure. But, why do you think that something will change? My hardware is too old?

                              1 Reply Last reply
                              1
                              • skywatchS Offline
                                skywatchS Offline
                                skywatch
                                wrote on last edited by
                                #530

                                Can you look and see what power supply you are using and also tell us what you have connected to the pi?
                                Do you have a volt meter and know how to use it?

                                S 1 Reply Last reply
                                0
                                • skywatchS skywatch

                                  Can you look and see what power supply you are using and also tell us what you have connected to the pi?
                                  Do you have a volt meter and know how to use it?

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

                                  @skywatch
                                  For a moment, I did hope that your was final solution.

                                  By the way, I have HDMI attached (but TV is off) and a hub usb (with nothing attached).

                                  I did try 7 sd cards.

                                  I did try also Samsung charger (ETA U90EWE) and a powerbank, both 5v/2a

                                  I have a cheap multimeter and I have basic knolewdge. What do you want I measure?

                                  The radio is firmed soldered on an header array and linked with jumpers:

                                  alt text

                                  No caps 'cause the nodes and gw can transmit without problem on over 15 meters on my home :)

                                  Exact configuration with a 7-days-old installation works very well. If I try to replicate, with every combination (last raspi/previous raspi/master/development) sometimes works, I re-flash and doesn't work anymore.

                                  I'm not crazy, I would to be sure that in every moment I can replicate totally the configuration from scratch and... I want understand whats the problem!

                                  PS The config that works very well, If I try to reconfigure to use the LEDS, after configure hangs on same, same step of debug. Luckily, I use rpi-clone before every single edit on my so-precious configuration.

                                  PPS If someone wants, I could torrent my SD configured.... :(

                                  1 Reply Last reply
                                  0
                                  • skywatchS Offline
                                    skywatchS Offline
                                    skywatch
                                    wrote on last edited by
                                    #532

                                    OK! - Now I am not saying I have the solution to your problem, but I think it is worth ruling out a few things.

                                    If nothing is attached to the USB hub, disconnect it.
                                    With your voltmeter set to DC Volts, measure between TP1 and TP2 on the pi. You should see 5V DC. Up to about 5.5V is OK, but less than 4.8V can affect some things. Many time I have seen power issues be the problem.

                                    Why not wire the NRF24L01 direct to the pi?

                                    If all is well, then seems it is software problem after all ;)

                                    S 1 Reply Last reply
                                    0
                                    • skywatchS skywatch

                                      OK! - Now I am not saying I have the solution to your problem, but I think it is worth ruling out a few things.

                                      If nothing is attached to the USB hub, disconnect it.
                                      With your voltmeter set to DC Volts, measure between TP1 and TP2 on the pi. You should see 5V DC. Up to about 5.5V is OK, but less than 4.8V can affect some things. Many time I have seen power issues be the problem.

                                      Why not wire the NRF24L01 direct to the pi?

                                      If all is well, then seems it is software problem after all ;)

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

                                      @skywatch

                                      Thank you for your support.
                                      So, I did disconnect everything.
                                      I did try and I have 4.95 - 4.98v on every moment, also during the "make" of ./configure.

                                      alt text

                                      A bit low, but I think no so low. The mysgw -d lock / hangs with every power supply...

                                      PS Radio between headers because I want learn skill solders and more easy swap to test others radio, and, last but not last, with headers dupont/wires are more firmly than directly on the radio.

                                      1 Reply Last reply
                                      0
                                      • skywatchS Offline
                                        skywatchS Offline
                                        skywatch
                                        wrote on last edited by skywatch
                                        #534

                                        That all seems to be OK - Always worth checking though if you ever get issues.
                                        That means that I am lost for any ideas on why you have problems with ./configure>make>make install. It seems odd. Do you have another pi to try it on? That's the only thing I can think of now....even a cheap pi zero would be OK for a test.

                                        I would still disconnect the USB hub and all the gpio wiring at the pi and see how it goes.

                                        Good Luck! :)

                                        S 1 Reply Last reply
                                        0
                                        • skywatchS skywatch

                                          That all seems to be OK - Always worth checking though if you ever get issues.
                                          That means that I am lost for any ideas on why you have problems with ./configure>make>make install. It seems odd. Do you have another pi to try it on? That's the only thing I can think of now....even a cheap pi zero would be OK for a test.

                                          I would still disconnect the USB hub and all the gpio wiring at the pi and see how it goes.

                                          Good Luck! :)

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

                                          @skywatch Unfortuntately not, it's only pi that I have.
                                          No problem, better to check everything. I don't know if open in github, leave here, pass to arduino connected via USB.....

                                          And.. for Arduino connected via USB, I need to abilitate something with raspi-config or the only thing to do is to connect and domoticz will read it? (of course with sketch gateway loaded on arduino!)

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


                                          15

                                          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