Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Announcements
  3. 💬 Building a Raspberry Pi Gateway

💬 Building a Raspberry Pi Gateway

Scheduled Pinned Locked Moved Announcements
1.1k Posts 173 Posters 423.0k Views 131 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #913

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

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

      Hi,

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

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

      Thanks

      1 Reply Last reply
      0
      • gohanG gohan

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

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

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

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

          also look for a channel outside the WiFi range

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

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

            gohanG 1 Reply Last reply
            0
            • K kberck3

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

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

              @kberck3 said in 💬 Building a Raspberry Pi Gateway:

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

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

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

              mfalkviddM 1 Reply Last reply
              1
              • gohanG gohan

                @kberck3 said in 💬 Building a Raspberry Pi Gateway:

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

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

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

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

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

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

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

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

                    Hi Guys,

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

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

                      I did some tests on pi3 and I found slow ota too. Tekka has an open issue on github about this.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mirodin
                        wrote on last edited by
                        #923

                        Hey guys,

                        I tried to setup my Raspberry running Node-RED and serial gateway but I got stuck halfway. I followed the serial gateway compilation above and got it up and running, however using the serial nodes an Node-RED I could not manage to get them to connect tho the gateway.

                        First I tried to connect to /dev/ttyMySensorsGateway which did not work due to permissions (owned by root). When checking out /dev/ttyMySensorsGateway I found it links to /dev/pts/1
                        which belongs to root and the tty group. But I could not connect to this as the tty group only has write privileges. I think I miss some crucial point connecting those two together so I hope somebody can save the day by pointing me in the right direction.

                        Thanks in advance,
                        mirodin

                        1 Reply Last reply
                        0
                        • tbowmoT Offline
                          tbowmoT Offline
                          tbowmo
                          Admin
                          wrote on last edited by
                          #924

                          @mirodin

                          So you run a separate arduino board as a mysensors gateway, connected with serial (USB) to your raspberry pi? Or do you mean that you are using the rpi directly with radio, and then run the rpi variant of the mysensors gateway code?

                          M 1 Reply Last reply
                          0
                          • tbowmoT tbowmo

                            @mirodin

                            So you run a separate arduino board as a mysensors gateway, connected with serial (USB) to your raspberry pi? Or do you mean that you are using the rpi directly with radio, and then run the rpi variant of the mysensors gateway code?

                            M Offline
                            M Offline
                            mirodin
                            wrote on last edited by mirodin
                            #925

                            @tbowmo I run the gateway on my Pi directly with the radio is connected to the Pi's GPIOs. Compilation and gateway do just fine I, if only I could convince my Pi to let Node-RED talk to the device :D

                            EDIT:
                            This is my output:

                            dietpi@buddy:~ $ ll /dev/ttMySensorsGateway 
                            lrwxrwxrwx 1 root root 10 Jun 18 14:38 /dev/ttMySensorsGateway -> /dev/pts/2
                            dietpi@buddy:~ $ ll /dev/pts/
                            total 0
                            crw--w---- 1 dietpi tty  136, 0 Jun 18 14:38 0
                            crw--w---- 1 dietpi tty  136, 1 Jun 18 14:38 1
                            crw--w---- 1 root   tty  136, 2 Jun 18 14:38 2
                            crw--w---- 1 dietpi tty  136, 3 Jun 18 14:38 3
                            c--------- 1 root   root   5, 2 Nov  3  2016 ptmx
                            
                            1 Reply Last reply
                            0
                            • gohanG Offline
                              gohanG Offline
                              gohan
                              Mod
                              wrote on last edited by
                              #926

                              wasn't it the problem of the missing permission on the dialup group?

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mirodin
                                wrote on last edited by mirodin
                                #927

                                Unfortunately adding my nodered user to dialout did not bring the hoped success. I still get premission denied messages after a reboot of my raspberry.

                                As my console print above shows the /dev/pts device belongs to tty but adding nodered to tty did not work out either (since the group only has write privileg). I have no idea how to fix this other then chowning the port to nodered but that feels wrong for me after years using linux based systems.

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

                                  it is not a solution, but you could switch to ethernet GW and you will avoid all the permissions problems.

                                  1 Reply Last reply
                                  0
                                  • tbowmoT Offline
                                    tbowmoT Offline
                                    tbowmo
                                    Admin
                                    wrote on last edited by
                                    #929

                                    My 5 cents:
                                    Run it as a MQTT gateway, if possible. It makes things so much easier, when you interact with the data in node-red. Even integrating other controllers is easier, as you have the MQTT as standard backbone bus between everything.

                                    You need to have a MQTT broker (mosquitto) running as well.. But it's worth it..

                                    1 Reply Last reply
                                    1
                                    • M Offline
                                      M Offline
                                      mirodin
                                      wrote on last edited by mirodin
                                      #930

                                      Yes I came to the conclusion that this might be my only option even if it sucks as I have to subscribe to all events from MySensors, process them with Node-RED and republish again which screws my logging a bit. Right now I have another flow subscribed to "#" and write every event into my DB.

                                      Since I have everything talking to mosquitto setup to follow Homie Convention I was hoping for only having my MQTT broker bombarded with compliant messages and have Node-RED convert everything (assign device names, etc. using a SQLite DB) from serial so the rather cryptic MySensors topics do not show up there.

                                      gohanG 1 Reply Last reply
                                      0
                                      • M mirodin

                                        Yes I came to the conclusion that this might be my only option even if it sucks as I have to subscribe to all events from MySensors, process them with Node-RED and republish again which screws my logging a bit. Right now I have another flow subscribed to "#" and write every event into my DB.

                                        Since I have everything talking to mosquitto setup to follow Homie Convention I was hoping for only having my MQTT broker bombarded with compliant messages and have Node-RED convert everything (assign device names, etc. using a SQLite DB) from serial so the rather cryptic MySensors topics do not show up there.

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

                                        @mirodin you actually need only mysensors-in and mysensors-out topics and their subtopics

                                        M 1 Reply Last reply
                                        1
                                        • gohanG gohan

                                          @mirodin you actually need only mysensors-in and mysensors-out topics and their subtopics

                                          M Offline
                                          M Offline
                                          mirodin
                                          wrote on last edited by
                                          #932

                                          @gohan Yes I know but now I can no longer just wildcard-dump every event on my mosquitto instance into my DB as I need to filter out the mysensor-in and -out topics.

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


                                          18

                                          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