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. Troubleshooting
  3. Gateway on Raspberry Pi not responding properly [SOLVED]

Gateway on Raspberry Pi not responding properly [SOLVED]

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 2 Posters 4.7k Views 2 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.
  • mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #3

    @Sparkman as Mentioned in the post:
    radios have 4.7uF electrolytic capacitors between the Vcc and Gnd pins on the NRF24L01+ chip, with the > side connected to ground. 3.3V power to the Arduino is through a FTDI FT232RL.

    I have not selected the parent id (not that I am aware of anyway)

    1 Reply Last reply
    0
    • SparkmanS Offline
      SparkmanS Offline
      Sparkman
      Hero Member
      wrote on last edited by
      #4

      @mfalkvidd Sorry, missed that part. Do you have sensor acting as a repeater somewhere with that node id? It looks like (to me anyways) that both the gateway and sensor are trying to send to node 194. Do you know what that is?

      Cheers
      Al

      1 Reply Last reply
      0
      • mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #5

        No problem :)
        No, I don't know what that node is. Could it be my old Raspberry Pi 1? It used a low parent id (1 I think) though, and it is powered off now. The Raspberry Pi 2 has been rebooted after the Raspberry Pi 1 was shut down, and the Arduino has had its eeprom cleared so they shouldn't be able to remember anything (I think).
        Could be a neighbor's Gateway I guess?

        1 Reply Last reply
        0
        • mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #6

          This is the output from the sensor after clearint the eeprom when I have no Gateway running

          find parent
          send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
          sensor started, id=255, parent=255, distance=255
          find parent
          send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
          find parent
          send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
          find parent
          send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
          find parent
          send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
          find parent
          send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
          

          since there are no replies, I don't think another Gateway is interfering.

          1 Reply Last reply
          0
          • mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by mfalkvidd
            #7

            Does the serial gateway store state somewhere? I have run the gateway through strace to see which files it opens and I've browsed the source code but I am not able to find any clues.
            EDIT: Is there a way to make the Gateway be more verbose? (MyConfig.h already has #define DEBUG) with no // in front

            1 Reply Last reply
            0
            • mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #8

              This is the output from the sensor at first start after clearing the eeprom, when my old Gateway is on:

              find parent
              send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
              read: 0-0-255 s=255,c=3,t=8,pt=1,l=1,sg=0:0
              parent=0, d=1
              req id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
              read: 0-0-255 s=255,c=3,t=4,pt=0,l=2,sg=0:7
              
              send: 7-7-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
              send: 7-7-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
              id=7
              send: 7-7-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
              send: 7-7-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
              read: 0-0-7 s=255,c=3,t=6,pt=0,l=2,sg=0:M
              
              sensor started, id=7, parent=0, distance=1
              send: 7-7-0-0 s=255,c=3,t=11,pt=0,l=12,sg=0,st=ok:Energy Meter
              send: 7-7-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
              send: 7-7-0-0 s=0,c=0,t=17,pt=0,l=0,sg=0,st=fail:
              send: 7-7-0-0 s=1,c=0,t=23,pt=0,l=0,sg=0,st=fail:
              send: 7-7-0-0 s=2,c=0,t=14,pt=0,l=0,sg=0,st=fail:
              send: 7-7-0-0 s=0,c=2,t=24,pt=0,l=0,sg=0,st=fail:
              
              SparkmanS 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                This is the output from the sensor at first start after clearing the eeprom, when my old Gateway is on:

                find parent
                send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                read: 0-0-255 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                parent=0, d=1
                req id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
                read: 0-0-255 s=255,c=3,t=4,pt=0,l=2,sg=0:7
                
                send: 7-7-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
                send: 7-7-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                id=7
                send: 7-7-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
                send: 7-7-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                read: 0-0-7 s=255,c=3,t=6,pt=0,l=2,sg=0:M
                
                sensor started, id=7, parent=0, distance=1
                send: 7-7-0-0 s=255,c=3,t=11,pt=0,l=12,sg=0,st=ok:Energy Meter
                send: 7-7-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
                send: 7-7-0-0 s=0,c=0,t=17,pt=0,l=0,sg=0,st=fail:
                send: 7-7-0-0 s=1,c=0,t=23,pt=0,l=0,sg=0,st=fail:
                send: 7-7-0-0 s=2,c=0,t=14,pt=0,l=0,sg=0,st=fail:
                send: 7-7-0-0 s=0,c=2,t=24,pt=0,l=0,sg=0,st=fail:
                
                SparkmanS Offline
                SparkmanS Offline
                Sparkman
                Hero Member
                wrote on last edited by
                #9

                @mfalkvidd Looks like it was working much better with the old gateway as it found the parent and a node ID got assigned. There are still some communication issues though will all of the fails at the end. If the sensor is sending a bunch of info right after each other, it may be cause by power brownouts. Try putting a small delay between each send to see if that improves it. On your Rpi2, there must be some type of communication issue between the hardware and Domoticz. I believe the gateway is completely stateless. There may not be an easy way to make the gateway more verbose. You could add some println statements in the code manually.

                Cheers
                Al

                1 Reply Last reply
                1
                • mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #10

                  I took a step back and installed Domoticz from their Raspberry Pi image (the same version I used in my rpi1, v2.2563). Installed the Gateway the same way as before. Same problem, the Gatway forwards all traffic to node 192!
                  I then re-compiled the Gateway with librf24-bcm instead of tmrh20. Voilà, it works!

                  I have no idea why tmrh20 tricks the Gateway into forwarding everything for node 192, but I'm happy now that the communication works again.

                  SparkmanS 1 Reply Last reply
                  0
                  • mfalkviddM mfalkvidd

                    I took a step back and installed Domoticz from their Raspberry Pi image (the same version I used in my rpi1, v2.2563). Installed the Gateway the same way as before. Same problem, the Gatway forwards all traffic to node 192!
                    I then re-compiled the Gateway with librf24-bcm instead of tmrh20. Voilà, it works!

                    I have no idea why tmrh20 tricks the Gateway into forwarding everything for node 192, but I'm happy now that the communication works again.

                    SparkmanS Offline
                    SparkmanS Offline
                    Sparkman
                    Hero Member
                    wrote on last edited by
                    #11

                    @mfalkvidd Glad you got it resolved!

                    Cheers
                    Al

                    1 Reply Last reply
                    0
                    • mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #12

                      Me too :-D Thanks @Sparkman for helping out!

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


                      19

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular