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.
  • gohanG gohan

    I have to ask a stupid question : did you use a logic converter between rpi and rfm69 radio?

    F Offline
    F Offline
    ftw64
    wrote on last edited by
    #434

    @gohan There are no stupid questions, right :-)? But perhaps a stupid answer: no, I did not use any logic convertors. The RFM69 is 3.3V and as far as I know, so are the GPIO pins on the RPI. But I might be mistaken, of course... Should I use logic convertors?

    At the moment I have no idea where it fails. Perhaps I need to give it a rest for a couple of days to think it over...

    I followed the steps as given on the web site (git branch development). Connected the RFM radio (7 wires: Vcc, GND, MOSI, MISO, SCK, NSS, DI00). Only modified MyConfig.h with regard to the NETWORKID (100 --> 101; my 'production' MySensors runs at 100) and enabling "MY_DEBUG_VERBOSE_RFM69". I configured with:

    % ./configure --my-debug=enable --my-config-file=/usr/local/etc/mysensors.dat --my-gateway=ethernet --my-transport=rfm69 --my-rfm69-frequency=868 --my-is-rfm69hw
    % make -j 4
    % sudo bin/mysgw -d
    
    mfalkviddM 1 Reply Last reply
    0
    • mfalkviddM Online
      mfalkviddM Online
      mfalkvidd
      Mod
      wrote on last edited by
      #435

      The gpio pins on raspberry pi are 3.3V. https://raspberrypi.stackexchange.com/questions/3209/what-are-the-min-max-voltage-current-values-the-gpio-pins-can-handle

      1 Reply Last reply
      0
      • F ftw64

        @gohan There are no stupid questions, right :-)? But perhaps a stupid answer: no, I did not use any logic convertors. The RFM69 is 3.3V and as far as I know, so are the GPIO pins on the RPI. But I might be mistaken, of course... Should I use logic convertors?

        At the moment I have no idea where it fails. Perhaps I need to give it a rest for a couple of days to think it over...

        I followed the steps as given on the web site (git branch development). Connected the RFM radio (7 wires: Vcc, GND, MOSI, MISO, SCK, NSS, DI00). Only modified MyConfig.h with regard to the NETWORKID (100 --> 101; my 'production' MySensors runs at 100) and enabling "MY_DEBUG_VERBOSE_RFM69". I configured with:

        % ./configure --my-debug=enable --my-config-file=/usr/local/etc/mysensors.dat --my-gateway=ethernet --my-transport=rfm69 --my-rfm69-frequency=868 --my-is-rfm69hw
        % make -j 4
        % sudo bin/mysgw -d
        
        mfalkviddM Online
        mfalkviddM Online
        mfalkvidd
        Mod
        wrote on last edited by mfalkvidd
        #436

        @ftw64 that configure command looks like an ethernet gateway. Could you post the configure command for your "RPI as a node" as well?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          marceloaqno
          Code Contributor
          wrote on last edited by
          #437

          I forgot to mention in the guide:
          To communicate with the RPi using the RFM69 radio, all of your nodes need to use the new RFM69 driver available in the development branch.
          To make the change, add the following line to the node sketch:

          #define MY_RFM69_NEW_DRIVER
          
          gohanG 1 Reply Last reply
          1
          • M marceloaqno

            I forgot to mention in the guide:
            To communicate with the RPi using the RFM69 radio, all of your nodes need to use the new RFM69 driver available in the development branch.
            To make the change, add the following line to the node sketch:

            #define MY_RFM69_NEW_DRIVER
            
            gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #438

            @marceloaqno you forgot just a little little insignificant detail 😂

            M 1 Reply Last reply
            0
            • gohanG gohan

              @marceloaqno you forgot just a little little insignificant detail 😂

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

              @gohan @ftw64 sorry for all the trouble

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

                It's OK, don't worry. We need to update the guide with the new instructions 😀

                M 1 Reply Last reply
                0
                • gohanG gohan

                  It's OK, don't worry. We need to update the guide with the new instructions 😀

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

                  @gohan Done!

                  1 Reply Last reply
                  2
                  • F Offline
                    F Offline
                    ftw64
                    wrote on last edited by
                    #442

                    @marceloaqno Thanks! That indeed does the trick! And no worries, it is my own decision to play with beta(!) code (and it was a fun weekend troubleshooting it - I learned a lot about the structure of the MySensors code)!

                    Only 'bad' thing is that 2.2.0 is not compatible with my existing nodes :-).

                    I appreciate all the work that has been put into MySensors.

                    1 Reply Last reply
                    0
                    • Fat FlyF Offline
                      Fat FlyF Offline
                      Fat Fly
                      wrote on last edited by
                      #443

                      This is really stupid. :D RFM69 radio need powered separately ?

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

                        They shouldn't, but it's always a matter trying 😀

                        1 Reply Last reply
                        0
                        • O Offline
                          O Offline
                          Oliver Acevedo
                          wrote on last edited by
                          #445
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • Richard van der PlasR Offline
                            Richard van der PlasR Offline
                            Richard van der Plas
                            wrote on last edited by
                            #446

                            How will this work with HASS running on the same pi ?

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

                              It's the same as it was running on separate hw, you will only set ip address of the gateway in hass

                              1 Reply Last reply
                              0
                              • Richard van der PlasR Offline
                                Richard van der PlasR Offline
                                Richard van der Plas
                                wrote on last edited by
                                #448

                                so i can attach the NRF24L01+ to the pi running HA, make it a Ethernet Gateway and point to his own ip adress ?, will this be a long job with converting from a USB connected GW (Arduino with local sensors ? )

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

                                  That's pretty much it. I don't know what is your current setup and what sensors you have, but is should not be a long job. Anyway you can install the ethernet gateway and when you are done you take care of the sensors

                                  1 Reply Last reply
                                  0
                                  • Richard van der PlasR Offline
                                    Richard van der PlasR Offline
                                    Richard van der Plas
                                    wrote on last edited by
                                    #450

                                    excellent, will the cpu utilisation be much higher that with a usb connected gw ?

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

                                      No, it uses very few cpu

                                      1 Reply Last reply
                                      0
                                      • manulM Offline
                                        manulM Offline
                                        manul
                                        wrote on last edited by
                                        #452

                                        @Richard van der Plas: I strongly recommend to use MQTT instead of Ethernet gateway, as it is a standard way for 2 processes to communicate, and platform-agnostic.
                                        HASS comes with an embed MQTT broker taht works out of the box.
                                        Plus:

                                        • you can easily mock either your sensors network or your controller
                                        • it does support secure communication
                                        • you can add other clients to observe the event, e.g. to log what is coming from/what is sent to the gateway
                                        1 Reply Last reply
                                        0
                                        • gohanG Offline
                                          gohanG Offline
                                          gohan
                                          Mod
                                          wrote on last edited by
                                          #453

                                          I suggested ethernet because it's easier to setup and configure, mqtt is the next step.

                                          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