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. Making a sensor node to work even when the gateway is not available?

Making a sensor node to work even when the gateway is not available?

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 3 Posters 2.8k 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.
  • M Offline
    M Offline
    marcusvdt
    wrote on last edited by
    #1

    I have built the secret knock sensor as per the example in the home page. The only differences are that I'm using an Arduino Nano instead of a Mini; and I'm planning on using claps to turn lights on/off (instead of controlling a lock through knocks as in the example).

    When I start the sensor for testing, it displays the following messages in the serial monitor and then stops.
    send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
    req node id
    send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
    sensor started, id 255
    req node id
    send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
    req node id
    send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
    req node id
    send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:
    open lock
    req node id
    send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:

    Would you please help me to identify what could be wrong so I can try to solve it? While wiring the radio, I used the instructions in the home page.

    Thanks in advance.

    1 Reply Last reply
    0
    • rvendrameR Offline
      rvendrameR Offline
      rvendrame
      Hero Member
      wrote on last edited by
      #2

      What controller do you have?

      Home Assistant / Vera Plus UI7
      ESP8266 GW + mySensors 2.3.2
      Alexa / Google Home

      1 Reply Last reply
      0
      • M Offline
        M Offline
        marcusvdt
        wrote on last edited by
        #3

        Sorry, the title is wrong. The correct would be "troubleshooting knock sensor".
        The title of this thread as it is now is for another thread that I would post just after I figure out what is happening now.

        I'm using a Python script as a simple controller for now. Do these failed messages have any relation with the controller? I thought they were coming before the node can reach the gateway.

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

          well, your node is requesting an id ,

          send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
          req node id
          

          but the packet is not reaching its destination ( gateway radio attached to the controller )

          st=fail:
          

          hope it helps somehow.

          Home Assistant / Vera Plus UI7
          ESP8266 GW + mySensors 2.3.2
          Alexa / Google Home

          M 1 Reply Last reply
          0
          • rvendrameR rvendrame

            well, your node is requesting an id ,

            send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
            req node id
            

            but the packet is not reaching its destination ( gateway radio attached to the controller )

            st=fail:
            

            hope it helps somehow.

            M Offline
            M Offline
            marcusvdt
            wrote on last edited by
            #5

            @rvendrame said:

            well, your node is requesting an id ,

            send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
            req node id
            

            but the packet is not reaching its destination ( gateway radio attached to the controller )

            st=fail:
            

            hope it helps somehow.

            Yes it helps a lot!
            Does it mean that the node itself is being able to send the message via the radio attached to it, or I may have a problem with the connection on the sensor node itself, perhaps between the arduino nano and the radio?

            Btw, is there a way to certify the nano is connected right to the radio on a sensor node?

            1 Reply Last reply
            0
            • rvendrameR Offline
              rvendrameR Offline
              rvendrame
              Hero Member
              wrote on last edited by
              #6

              Yes, your arduino is talking properly to the attached radio, otherwise you would see the infamous "check wires" at the serial monitor ;-)

              But it is talking to no one --- Or better, nobody is answering ...

              Home Assistant / Vera Plus UI7
              ESP8266 GW + mySensors 2.3.2
              Alexa / Google Home

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Cory
                wrote on last edited by
                #7

                It sounds like maybe you are trying to create a sensor but you currently dont have a gateway setup. Your sensor is asking the gateway for a node id, but the request fails. If you want to get around this you can specify a node id in your sketch.

                gw.begin(NULL, 1, FALSE);

                This will initialize your sensor with node id 1. ID 0 is reserved for the gateway.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  marcusvdt
                  wrote on last edited by
                  #8

                  Thank you guys for your help. I've been able to figure out what was happening. Basically, the delivered example doesn't work as is in the Arduino Nano because some of the digital ports defined in the sketch conflict with digital ports used on the connection from the Nano to the radio. Hence an abnormal behavior was occurring.
                  I've fixed these ports and added an additional relay (not an additional child id because I want the 2 relays to be controlled as a single on/off control).

                  I also changed the type of sensor to be a light, not a lock.

                  Thanks for the help!

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    marcusvdt
                    wrote on last edited by
                    #9

                    And for the record, I've fixed a node ID for this sensor and it works locally, turning the lights on/off through the relay, even when the gateway is not reachable (out of range).

                    I will open another thread to check what are the possible issues with this behavior.

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


                    7

                    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