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.7k 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.
  • G Offline
    G Offline
    gtortone
    wrote on last edited by
    #148

    @skywatch try to run it with "mysgw -d" .

    Enabling debug mode you can see on console every message and diagnostics...

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

      @gtortone

      sudo ./bin/mysgw -d and sudo ./bin/mysgw -h now both give 'command not found' - which is odd as they were both working eariler ???
      A reboot makes no difference. Although after reboot I see mysgw running in 'top' but even stopping that service and trying sudo mysgw -d again doesn't seem to work.

      Any idea whats wrong? Any suggestions to get this going?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gtortone
        wrote on last edited by gtortone
        #150

        @skywatch

        if you did

        make install

        the mysgw executable is in /usr/local/bin directory then you have to launch it with:

        /usr/local/bin/mysgw -d

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

          @gtortone

          That doesn't appear anywhere on this tutorial, so maybe it needs adding for completion?

          Anyway the output is now......

          pi@PiDomePi:~ $ sudo /usr/local/bin/mysgw -d
          mysgw: Starting gateway...
          mysgw: Protocol version - 2.0.1-beta
          mysgw: MCO:BGN:INIT GW,CP=RNNG--Q,VER=2.0.1-beta
          mysgw: TSF:LRT:OK
          mysgw: TSM:INIT
          mysgw: TSM:INIT:TSP OK
          mysgw: TSM:INIT:GW MODE
          mysgw: TSM:READY
          mysgw: MCO:REG:NOT NEEDED
          mysgw: MCO:BGN:STP
          mysgw: MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1

          When i did build install I missed out bit for the leds, can I just re-run the ./config and 'make' then 'make install' again? Or will that cause problems??
          I just think that the lights will be useful in the early stages of getting this running...

          Thanks for the help, no way would I have got that without you! :)

          G 1 Reply Last reply
          0
          • skywatchS skywatch

            @gtortone

            That doesn't appear anywhere on this tutorial, so maybe it needs adding for completion?

            Anyway the output is now......

            pi@PiDomePi:~ $ sudo /usr/local/bin/mysgw -d
            mysgw: Starting gateway...
            mysgw: Protocol version - 2.0.1-beta
            mysgw: MCO:BGN:INIT GW,CP=RNNG--Q,VER=2.0.1-beta
            mysgw: TSF:LRT:OK
            mysgw: TSM:INIT
            mysgw: TSM:INIT:TSP OK
            mysgw: TSM:INIT:GW MODE
            mysgw: TSM:READY
            mysgw: MCO:REG:NOT NEEDED
            mysgw: MCO:BGN:STP
            mysgw: MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1

            When i did build install I missed out bit for the leds, can I just re-run the ./config and 'make' then 'make install' again? Or will that cause problems??
            I just think that the lights will be useful in the early stages of getting this running...

            Thanks for the help, no way would I have got that without you! :)

            G Offline
            G Offline
            gtortone
            wrote on last edited by
            #152

            @skywatch

            You're welcome !

            you can (re)run configure, make, make install when you want,
            but I suggest to stop the mysgw executable before launch "make install"

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

              Thank you! :)

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

                Can I just check that this is OK? .....

                ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my-transport=nrf24 --my-rf24-irq-pin=15 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18

                Can you see any problems here, it seemed to work but I hope to test fully this week, maybe tomorrow.....

                G 1 Reply Last reply
                0
                • skywatchS skywatch

                  Can I just check that this is OK? .....

                  ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my-transport=nrf24 --my-rf24-irq-pin=15 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18

                  Can you see any problems here, it seemed to work but I hope to test fully this week, maybe tomorrow.....

                  G Offline
                  G Offline
                  gtortone
                  wrote on last edited by
                  #155

                  @skywatch
                  Hi, options for "configure" are ok, I suggest you to double check your cabling !

                  :)

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

                    What makes you think that the cabling is wrong? - I checked and can't see any problem....can you be less cryptic please? :)

                    G 1 Reply Last reply
                    0
                    • skywatchS skywatch

                      What makes you think that the cabling is wrong? - I checked and can't see any problem....can you be less cryptic please? :)

                      G Offline
                      G Offline
                      gtortone
                      wrote on last edited by
                      #157

                      @skywatch
                      I meaning that often is also useful to check cable two (or three) times !
                      but if you already did it... ok !

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

                        Ah, OK then :) - I thought there was something in the console data I posted that meant there was a problem! - Tomorrow to build a sensor and get that going.... Thanks again!

                        1 Reply Last reply
                        0
                        • michlb1982M Offline
                          michlb1982M Offline
                          michlb1982
                          wrote on last edited by
                          #159

                          hi
                          yesterday i tried to build a rpi-gateway but i had trouble to access, after changeing the rights on the port to 777 and group to dialout i could access via
                          fhem. and i didn't use the symlink, i used the port directly /dev/pts/0@115200 andthen it works perfectly!

                          thanks...

                          p.s.: i uses always sudo while make and the other installation commands.

                          greets mike

                          1 Reply Last reply
                          0
                          • martinsM Offline
                            martinsM Offline
                            martins
                            wrote on last edited by
                            #160

                            Get this error from the gateway installed on Raspberry Pi2 with RFM69 Radio.

                            From the IDE it works fine:
                            0;255;3;0;9;Starting gateway (RRNGA-, 2.0.0)
                            0;255;3;0;9;TSM:INIT
                            0;255;3;0;9;TSM:RADIO:OK
                            0;255;3;0;9;TSM:GW MODE
                            0;255;3;0;9;TSM:READY
                            0;255;3;0;14;Gateway startup complete.
                            0;255;0;0;18;2.0.0
                            0;255;3;0;9;No registration required
                            0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
                            0;255;3;0;9;TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                            0;255;3;0;9;TSP:MSG:BC
                            0;255;3;0;9;TSP:MSG:FPAR REQ (sender=255)
                            0;255;3;0;9;TSP:CHKUPL:OK
                            0;255;3;0;9;TSP:MSG:GWL OK
                            0;255;3;0;9;TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0
                            0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
                            255;255;3;0;3;
                            0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
                            255;255;3;0;3;
                            0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
                            255;255;3;0;3;
                            0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
                            255;255;3;0;3;

                            mysgw: Starting gateway...
                            mysgw: Protocol version - 2.1.0-beta
                            mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.0-beta
                            mysgw: TSF:LRT:OK
                            mysgw: TSM:INIT
                            mysgw: TSF:WUR:MS=0
                            mysgw: !TSM:INIT:TSP FAIL
                            mysgw: TSM:FAIL:CNT=1

                            From the gateway on the Pi this is the error:
                            ./bin/mysgw -d
                            mysgw: Starting gateway...
                            mysgw: Protocol version - 2.1.0-beta
                            mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.0-beta
                            mysgw: TSF:LRT:OK
                            mysgw: TSM:INIT
                            mysgw: TSF:WUR:MS=0
                            mysgw: !TSM:INIT:TSP FAIL
                            mysgw: TSM:FAIL:CNT=1
                            mysgw: TSM:FAIL:PDT
                            mysgw: TSM:FAIL:RE-INIT
                            mysgw: TSM:INIT
                            mysgw: !TSM:INIT:TSP FAIL
                            mysgw: TSM:FAIL:CNT=2
                            mysgw: TSM:FAIL:PDT
                            mysgw: TSM:FAIL:RE-INIT
                            mysgw: TSM:INIT
                            mysgw: !TSM:INIT:TSP FAIL
                            mysgw: TSM:FAIL:CNT=3
                            mysgw: TSM:FAIL:PDT
                            mysgw: TSM:FAIL:RE-INIT
                            mysgw: TSM:INIT
                            mysgw: !TSM:INIT:TSP FAIL
                            mysgw: TSM:FAIL:CNT=4
                            mysgw: TSM:FAIL:PDT

                            Any ideas where I might start looking at?

                            Thanks,
                            Martin

                            M 1 Reply Last reply
                            0
                            • martinsM martins

                              Get this error from the gateway installed on Raspberry Pi2 with RFM69 Radio.

                              From the IDE it works fine:
                              0;255;3;0;9;Starting gateway (RRNGA-, 2.0.0)
                              0;255;3;0;9;TSM:INIT
                              0;255;3;0;9;TSM:RADIO:OK
                              0;255;3;0;9;TSM:GW MODE
                              0;255;3;0;9;TSM:READY
                              0;255;3;0;14;Gateway startup complete.
                              0;255;0;0;18;2.0.0
                              0;255;3;0;9;No registration required
                              0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
                              0;255;3;0;9;TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                              0;255;3;0;9;TSP:MSG:BC
                              0;255;3;0;9;TSP:MSG:FPAR REQ (sender=255)
                              0;255;3;0;9;TSP:CHKUPL:OK
                              0;255;3;0;9;TSP:MSG:GWL OK
                              0;255;3;0;9;TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0
                              0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
                              255;255;3;0;3;
                              0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
                              255;255;3;0;3;
                              0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
                              255;255;3;0;3;
                              0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
                              255;255;3;0;3;

                              mysgw: Starting gateway...
                              mysgw: Protocol version - 2.1.0-beta
                              mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.0-beta
                              mysgw: TSF:LRT:OK
                              mysgw: TSM:INIT
                              mysgw: TSF:WUR:MS=0
                              mysgw: !TSM:INIT:TSP FAIL
                              mysgw: TSM:FAIL:CNT=1

                              From the gateway on the Pi this is the error:
                              ./bin/mysgw -d
                              mysgw: Starting gateway...
                              mysgw: Protocol version - 2.1.0-beta
                              mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.0-beta
                              mysgw: TSF:LRT:OK
                              mysgw: TSM:INIT
                              mysgw: TSF:WUR:MS=0
                              mysgw: !TSM:INIT:TSP FAIL
                              mysgw: TSM:FAIL:CNT=1
                              mysgw: TSM:FAIL:PDT
                              mysgw: TSM:FAIL:RE-INIT
                              mysgw: TSM:INIT
                              mysgw: !TSM:INIT:TSP FAIL
                              mysgw: TSM:FAIL:CNT=2
                              mysgw: TSM:FAIL:PDT
                              mysgw: TSM:FAIL:RE-INIT
                              mysgw: TSM:INIT
                              mysgw: !TSM:INIT:TSP FAIL
                              mysgw: TSM:FAIL:CNT=3
                              mysgw: TSM:FAIL:PDT
                              mysgw: TSM:FAIL:RE-INIT
                              mysgw: TSM:INIT
                              mysgw: !TSM:INIT:TSP FAIL
                              mysgw: TSM:FAIL:CNT=4
                              mysgw: TSM:FAIL:PDT

                              Any ideas where I might start looking at?

                              Thanks,
                              Martin

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

                              @martins RFM69 is not yet supported in RPi.

                              martinsM 1 Reply Last reply
                              0
                              • M marceloaqno

                                @martins RFM69 is not yet supported in RPi.

                                martinsM Offline
                                martinsM Offline
                                martins
                                wrote on last edited by
                                #162

                                @marceloaqno
                                OK let me explain better. I've build an arduino serial gateway and connecting it on the uart of the pi. If I do tail -f /dev/ttyAMA0 I can see the messages comming in on the serial interface. However if I run ./bin/mysgw -d I get this error:

                                mysgw: Starting gateway...
                                mysgw: Protocol version - 2.1.0-beta
                                mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.0-beta
                                mysgw: TSF:LRT:OK
                                mysgw: TSM:INIT
                                mysgw: TSF:WUR:MS=0
                                mysgw: !TSM:INIT:TSP FAIL
                                mysgw: TSM:FAIL:CNT=1
                                mysgw: TSM:FAIL:PDT
                                mysgw: TSM:FAIL:RE-INIT

                                This is the configure I used to build it:
                                ./configure --my-gateway=serial --my-serial-port=/dev/ttyAMA0 --my-serial-baudrate=38400

                                So the RFM69 Radio in not directly on the PI but on the arduino and is used as the serial gateway.

                                Hope this clarify it more.

                                Regards,
                                Martin

                                martinsM 1 Reply Last reply
                                0
                                • martinsM martins

                                  @marceloaqno
                                  OK let me explain better. I've build an arduino serial gateway and connecting it on the uart of the pi. If I do tail -f /dev/ttyAMA0 I can see the messages comming in on the serial interface. However if I run ./bin/mysgw -d I get this error:

                                  mysgw: Starting gateway...
                                  mysgw: Protocol version - 2.1.0-beta
                                  mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.0-beta
                                  mysgw: TSF:LRT:OK
                                  mysgw: TSM:INIT
                                  mysgw: TSF:WUR:MS=0
                                  mysgw: !TSM:INIT:TSP FAIL
                                  mysgw: TSM:FAIL:CNT=1
                                  mysgw: TSM:FAIL:PDT
                                  mysgw: TSM:FAIL:RE-INIT

                                  This is the configure I used to build it:
                                  ./configure --my-gateway=serial --my-serial-port=/dev/ttyAMA0 --my-serial-baudrate=38400

                                  So the RFM69 Radio in not directly on the PI but on the arduino and is used as the serial gateway.

                                  Hope this clarify it more.

                                  Regards,
                                  Martin

                                  martinsM Offline
                                  martinsM Offline
                                  martins
                                  wrote on last edited by
                                  #163

                                  @marceloaqno
                                  Issue solved. Domoticz read directly the serial inputs from the arduino that's connected on the PI. I was under the impression that you need a gateway (software) running on the PI to interface with Domoticz.

                                  Thanks,
                                  Martin

                                  1 Reply Last reply
                                  0
                                  • E Offline
                                    E Offline
                                    ewgor
                                    wrote on last edited by
                                    #164

                                    Hi there,
                                    I'm trying to make a gateway on my pi and since the begining i'm stuck!
                                    Using this: git clone https://github.com/mysensors/MySensors.git
                                    i get: fatal: unable to access 'https://github.com/mysensors/MySensors.git/': Could not resolve host: github.com
                                    I tried with sudo too! am i the only one getting this?

                                    mfalkviddM 1 Reply Last reply
                                    0
                                    • E ewgor

                                      Hi there,
                                      I'm trying to make a gateway on my pi and since the begining i'm stuck!
                                      Using this: git clone https://github.com/mysensors/MySensors.git
                                      i get: fatal: unable to access 'https://github.com/mysensors/MySensors.git/': Could not resolve host: github.com
                                      I tried with sudo too! am i the only one getting this?

                                      mfalkviddM Offline
                                      mfalkviddM Offline
                                      mfalkvidd
                                      Mod
                                      wrote on last edited by mfalkvidd
                                      #165

                                      @ewgor "Could not resolve host" means dns is not working on your raspberry pi. Is the network working properly (can you access other web sites from the pi?) http://www.suntimebox.com/raspberry-pi-tutorial-course/week-3/day-5/ seems to have a guide if you need help configuring network settings.

                                      Velo17V 1 Reply Last reply
                                      0
                                      • mfalkviddM mfalkvidd

                                        @ewgor "Could not resolve host" means dns is not working on your raspberry pi. Is the network working properly (can you access other web sites from the pi?) http://www.suntimebox.com/raspberry-pi-tutorial-course/week-3/day-5/ seems to have a guide if you need help configuring network settings.

                                        Velo17V Offline
                                        Velo17V Offline
                                        Velo17
                                        wrote on last edited by Velo17
                                        #166

                                        (sorry, I hit reply on mfalkvidd's post)
                                        I have a strange problem:

                                        I tried to be smart (haha) and updated my Raspberry2 with

                                        sudo apt-get update
                                        sudo apt-get dist-upgrade
                                        

                                        This took quite a while and looked successful to me.

                                        Unfortunately the MySensors Gateway and/or controller setup is not working correctly anymore. For troubleshooting I disabled my controller (MyController running on the Pi and for sniffing also MYSController available on my Windows machine). I stopped the gateway service and manually ran the gateway with -d debug information and get this:

                                        mysGateway: Starting gateway...
                                        mysGateway: Protocol version - 2.0.1-beta
                                        mysGateway: MCO:BGN:INIT GW,CP=RNNG--Q,VER=2.0.1-beta
                                        mysGateway: TSF:LRT:OK
                                        mysGateway: TSM:INIT
                                        mysGateway: TSM:INIT:TSP OK
                                        mysGateway: TSM:INIT:GW MODE
                                        mysGateway: TSM:READY
                                        mysGateway: Listening for connections on 0.0.0.0:5003
                                        mysGateway: MCO:REG:NOT NEEDED
                                        mysGateway: MCO:BGN:STP
                                        mysGateway: MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
                                        mysGateway: TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                        mysGateway: TSF:MSG:BC
                                        mysGateway: TSF:MSG:FPAR REQ,ID=7
                                        mysGateway: TSF:PNG:SEND,TO=0
                                        mysGateway: TSF:CKU:OK
                                        mysGateway: TSF:MSG:GWL OK
                                        mysGateway: TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                        mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
                                        mysGateway: TSF:MSG:PINGED,ID=7,HP=1
                                        mysGateway: TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
                                        mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
                                        mysGateway: TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
                                        mysGateway: TSF:MSG:READ,7-7-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.0.0
                                        mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
                                        mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=11,pt=0,l=17,sg=0:Ernie Giess-O-Mat
                                        mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=12,pt=0,l=4,sg=0:0.17
                                        mysGateway: TSF:MSG:READ,7-7-0,s=2,c=0,t=6,pt=0,l=0,sg=0:
                                        mysGateway: TSF:MSG:READ,7-7-0,s=0,c=0,t=7,pt=0,l=0,sg=0:
                                        mysGateway: TSF:MSG:READ,7-7-0,s=3,c=0,t=30,pt=0,l=0,sg=0:
                                        mysGateway: TSF:MSG:READ,7-7-0,s=4,c=0,t=21,pt=0,l=0,sg=0:
                                        mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
                                        mysGateway: TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
                                        mysGateway: TSF:MSG:READ,7-7-0,s=0,c=1,t=1,pt=7,l=5,sg=0:8219.0
                                        mysGateway: TSF:MSG:READ,7-7-0,s=2,c=1,t=0,pt=7,l=5,sg=0:29.66
                                        mysGateway: TSF:MSG:READ,7-7-0,s=3,c=1,t=38,pt=7,l=5,sg=0:9.0
                                        mysGateway: TSF:MSG:READ,7-7-0,s=4,c=1,t=34,pt=1,l=1,sg=0:0
                                        mysGateway: TSF:MSG:READ,17-17-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                        mysGateway: TSF:MSG:BC
                                        mysGateway: TSF:MSG:FPAR REQ,ID=17
                                        mysGateway: TSF:PNG:SEND,TO=0
                                        mysGateway: TSF:CKU:OK
                                        mysGateway: TSF:MSG:GWL OK
                                        mysGateway: TSF:MSG:SEND,0-0-17-17,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                        mysGateway: TSF:MSG:READ,17-17-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
                                        mysGateway: TSF:MSG:PINGED,ID=17,HP=1
                                        mysGateway: TSF:MSG:SEND,0-0-17-17,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
                                        mysGateway: TSF:MSG:READ,7-7-0,s=0,c=1,t=1,pt=7,l=5,sg=0:10834.0
                                        mysGateway: TSF:MSG:READ,7-7-0,s=2,c=1,t=0,pt=7,l=5,sg=0:3.96
                                        mysGateway: TSF:MSG:READ,7-7-0,s=3,c=1,t=38,pt=7,l=5,sg=0:9.0
                                        mysGateway: TSF:MSG:READ,7-7-0,s=4,c=1,t=34,pt=1,l=1,sg=0:0
                                        mysGateway: TSF:MSG:READ,17-17-0,s=255,c=3,t=0,pt=1,l=1,sg=0:67
                                        mysGateway: TSF:MSG:READ,17-17-0,s=1,c=1,t=0,pt=7,l=5,sg=0:18.8
                                        mysGateway: TSM:READY:NWD REQ
                                        mysGateway: TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
                                        mysGateway: TSF:SRT:OK
                                        

                                        Which looks okay to me (2 sensor nodes are sending data here). But after this NWD REQ...STR:OK block nothing more happens, only more of these 3 lines blocks repeat over and over with about 15 minutes or so inbetween.

                                        "of course" I also re-compiled the gateway source with re-setting the configuration, which is

                                        sudo ./configure --my-rf24-channel=124 --my-rf24-irq-pin=11  --my-debug=enable
                                        sudo make install
                                        

                                        any ideas what I can try to make it work again? :-(

                                        In any case, happy weekend to everyone,
                                        greetings from Germany!

                                        M 1 Reply Last reply
                                        0
                                        • Velo17V Velo17

                                          (sorry, I hit reply on mfalkvidd's post)
                                          I have a strange problem:

                                          I tried to be smart (haha) and updated my Raspberry2 with

                                          sudo apt-get update
                                          sudo apt-get dist-upgrade
                                          

                                          This took quite a while and looked successful to me.

                                          Unfortunately the MySensors Gateway and/or controller setup is not working correctly anymore. For troubleshooting I disabled my controller (MyController running on the Pi and for sniffing also MYSController available on my Windows machine). I stopped the gateway service and manually ran the gateway with -d debug information and get this:

                                          mysGateway: Starting gateway...
                                          mysGateway: Protocol version - 2.0.1-beta
                                          mysGateway: MCO:BGN:INIT GW,CP=RNNG--Q,VER=2.0.1-beta
                                          mysGateway: TSF:LRT:OK
                                          mysGateway: TSM:INIT
                                          mysGateway: TSM:INIT:TSP OK
                                          mysGateway: TSM:INIT:GW MODE
                                          mysGateway: TSM:READY
                                          mysGateway: Listening for connections on 0.0.0.0:5003
                                          mysGateway: MCO:REG:NOT NEEDED
                                          mysGateway: MCO:BGN:STP
                                          mysGateway: MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
                                          mysGateway: TSF:MSG:READ,7-7-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                          mysGateway: TSF:MSG:BC
                                          mysGateway: TSF:MSG:FPAR REQ,ID=7
                                          mysGateway: TSF:PNG:SEND,TO=0
                                          mysGateway: TSF:CKU:OK
                                          mysGateway: TSF:MSG:GWL OK
                                          mysGateway: TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                          mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
                                          mysGateway: TSF:MSG:PINGED,ID=7,HP=1
                                          mysGateway: TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
                                          mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
                                          mysGateway: TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
                                          mysGateway: TSF:MSG:READ,7-7-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.0.0
                                          mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
                                          mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=11,pt=0,l=17,sg=0:Ernie Giess-O-Mat
                                          mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=12,pt=0,l=4,sg=0:0.17
                                          mysGateway: TSF:MSG:READ,7-7-0,s=2,c=0,t=6,pt=0,l=0,sg=0:
                                          mysGateway: TSF:MSG:READ,7-7-0,s=0,c=0,t=7,pt=0,l=0,sg=0:
                                          mysGateway: TSF:MSG:READ,7-7-0,s=3,c=0,t=30,pt=0,l=0,sg=0:
                                          mysGateway: TSF:MSG:READ,7-7-0,s=4,c=0,t=21,pt=0,l=0,sg=0:
                                          mysGateway: TSF:MSG:READ,7-7-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
                                          mysGateway: TSF:MSG:SEND,0-0-7-7,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
                                          mysGateway: TSF:MSG:READ,7-7-0,s=0,c=1,t=1,pt=7,l=5,sg=0:8219.0
                                          mysGateway: TSF:MSG:READ,7-7-0,s=2,c=1,t=0,pt=7,l=5,sg=0:29.66
                                          mysGateway: TSF:MSG:READ,7-7-0,s=3,c=1,t=38,pt=7,l=5,sg=0:9.0
                                          mysGateway: TSF:MSG:READ,7-7-0,s=4,c=1,t=34,pt=1,l=1,sg=0:0
                                          mysGateway: TSF:MSG:READ,17-17-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                                          mysGateway: TSF:MSG:BC
                                          mysGateway: TSF:MSG:FPAR REQ,ID=17
                                          mysGateway: TSF:PNG:SEND,TO=0
                                          mysGateway: TSF:CKU:OK
                                          mysGateway: TSF:MSG:GWL OK
                                          mysGateway: TSF:MSG:SEND,0-0-17-17,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
                                          mysGateway: TSF:MSG:READ,17-17-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
                                          mysGateway: TSF:MSG:PINGED,ID=17,HP=1
                                          mysGateway: TSF:MSG:SEND,0-0-17-17,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
                                          mysGateway: TSF:MSG:READ,7-7-0,s=0,c=1,t=1,pt=7,l=5,sg=0:10834.0
                                          mysGateway: TSF:MSG:READ,7-7-0,s=2,c=1,t=0,pt=7,l=5,sg=0:3.96
                                          mysGateway: TSF:MSG:READ,7-7-0,s=3,c=1,t=38,pt=7,l=5,sg=0:9.0
                                          mysGateway: TSF:MSG:READ,7-7-0,s=4,c=1,t=34,pt=1,l=1,sg=0:0
                                          mysGateway: TSF:MSG:READ,17-17-0,s=255,c=3,t=0,pt=1,l=1,sg=0:67
                                          mysGateway: TSF:MSG:READ,17-17-0,s=1,c=1,t=0,pt=7,l=5,sg=0:18.8
                                          mysGateway: TSM:READY:NWD REQ
                                          mysGateway: TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
                                          mysGateway: TSF:SRT:OK
                                          

                                          Which looks okay to me (2 sensor nodes are sending data here). But after this NWD REQ...STR:OK block nothing more happens, only more of these 3 lines blocks repeat over and over with about 15 minutes or so inbetween.

                                          "of course" I also re-compiled the gateway source with re-setting the configuration, which is

                                          sudo ./configure --my-rf24-channel=124 --my-rf24-irq-pin=11  --my-debug=enable
                                          sudo make install
                                          

                                          any ideas what I can try to make it work again? :-(

                                          In any case, happy weekend to everyone,
                                          greetings from Germany!

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

                                          @Velo17 It might be related to the nrf24 irq pin. Could you try to build the gateway without the my-rf24-irq-pin option and check if the gateway still behaves this way?

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


                                          22

                                          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