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. Noob : Cant get Sensor talking to gateway

Noob : Cant get Sensor talking to gateway

Scheduled Pinned Locked Moved Troubleshooting
38 Posts 7 Posters 5.0k Views 6 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.
  • R r-nox

    If you have used this same sensors as a test in the past you may need to clear the eeprom data also.

    Just a guess...

    A Offline
    A Offline
    angeloS
    wrote on last edited by
    #6

    @manutremo thanks, I have used the parselink text utility but I should have paid more attention
    mm Ive used the same hardware but never got it working. .. your right maybe its stored a dud nodeID.. Looking at the docs https://www.mysensors.org/download/sensor_api_20 I can set a nodeID manually.. I'll give that a go

    1 Reply Last reply
    0
    • R Offline
      R Offline
      r-nox
      wrote on last edited by
      #7

      Here's the clear eeprom sketch if you need it.

      https://github.com/mysensors/MySensors/blob/master/examples/ClearEepromConfig/ClearEepromConfig.ino

      A 1 Reply Last reply
      0
      • R r-nox

        Here's the clear eeprom sketch if you need it.

        https://github.com/mysensors/MySensors/blob/master/examples/ClearEepromConfig/ClearEepromConfig.ino

        A Offline
        A Offline
        angeloS
        wrote on last edited by
        #8

        @r-nox AWESOME! thank you!

        Nice to see this OS library is well supported... cool

        1 Reply Last reply
        0
        • A Offline
          A Offline
          angeloS
          wrote on last edited by
          #9

          @manutremo , you hit it bang on.. The NODE_ID wasnt being sent, setting a node id to a number using
          #define MY_NODE_ID 42
          worked.

          Curious, so I can debug this myself in the future, which line indicated the NODE_ID was blank?
          was it this line?
          mysgw: TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:

          M 1 Reply Last reply
          0
          • A angeloS

            @manutremo , you hit it bang on.. The NODE_ID wasnt being sent, setting a node id to a number using
            #define MY_NODE_ID 42
            worked.

            Curious, so I can debug this myself in the future, which line indicated the NODE_ID was blank?
            was it this line?
            mysgw: TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:

            M Offline
            M Offline
            manutremo
            wrote on last edited by
            #10

            @Angelo-Santagata happy to know that you got it working. Yes I think that's the line which in the log parser showed an empty payload. It would be interesting to know why the gw is returning an empty payload when an ID is requested, though, since that's not usual behavior with the default settings. Let us know what you find out!

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

              If there is no controller assigning an ID, the gw can't make up one out of nothing. 😀

              1 Reply Last reply
              0
              • M Offline
                M Offline
                manutremo
                wrote on last edited by
                #12

                That's certainly the most probable cause, Angelo didn't mention any controller so I assumed there is one... which controller are you using (if any) Angelo?

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

                  There could be a controller but if it is not assigning any ID is it just as it wasn't any 😁

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    manutremo
                    wrote on last edited by
                    #14

                    Yes, the fact that it works with a static node id seems to point in that direction - should that not be the case, i sincerely wouldn't have a clue on where to look at.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      angeloS
                      wrote on last edited by
                      #15

                      Hi all,

                      ok this is the embarrassing bit, no the controller wasnt attached.. Im using home assistant and what I didnt realise that was that a) the controller sends the IDs and b) the controller couldnt talk to the Gateway..

                      BTW Why do we need a controller to assign the unique sensor IDs? I thought the Gateway would do this?

                      mfalkviddM 1 Reply Last reply
                      0
                      • A angeloS

                        Hi all,

                        ok this is the embarrassing bit, no the controller wasnt attached.. Im using home assistant and what I didnt realise that was that a) the controller sends the IDs and b) the controller couldnt talk to the Gateway..

                        BTW Why do we need a controller to assign the unique sensor IDs? I thought the Gateway would do this?

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

                        @Angelo-Santagata the gateways are designed to be stateless. The stateless design makes it easy to implement a gateway on low-power hardware. It also makes it easier to correctly implement and verify the gateway functionality, and to troubleshoot if there are problems. If gateways had to remember which ids had been assigned, they would no longer be stateless.

                        A 1 Reply Last reply
                        0
                        • mfalkviddM mfalkvidd

                          @Angelo-Santagata the gateways are designed to be stateless. The stateless design makes it easy to implement a gateway on low-power hardware. It also makes it easier to correctly implement and verify the gateway functionality, and to troubleshoot if there are problems. If gateways had to remember which ids had been assigned, they would no longer be stateless.

                          A Offline
                          A Offline
                          angeloS
                          wrote on last edited by angeloS
                          #17

                          @mfalkvidd thanks, very impressive this mySensors stuff BTW

                          mfalkviddM 1 Reply Last reply
                          1
                          • A angeloS

                            @mfalkvidd thanks, very impressive this mySensors stuff BTW

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

                            @angeloS thanks. I agree. I can't take credit for it though, most of the stuff was designed before I found the project :)

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              manutremo
                              wrote on last edited by
                              #19

                              Mistery solved :satisfied:

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

                                Does anyone have suggestions on a clearer log message? One that would make it easy to understand what is happening? If we could make the log clearer, other people could understand the reason quicker, saving time and frustration.

                                A 1 Reply Last reply
                                0
                                • mfalkviddM mfalkvidd

                                  Does anyone have suggestions on a clearer log message? One that would make it easy to understand what is happening? If we could make the log clearer, other people could understand the reason quicker, saving time and frustration.

                                  A Offline
                                  A Offline
                                  angeloS
                                  wrote on last edited by
                                  #21

                                  @mfalkvidd In my case I think if the log had said, No Controller provided SensorID, that would have been my first clue

                                  M 1 Reply Last reply
                                  1
                                  • A angeloS

                                    @mfalkvidd In my case I think if the log had said, No Controller provided SensorID, that would have been my first clue

                                    M Offline
                                    M Offline
                                    manutremo
                                    wrote on last edited by
                                    #22

                                    @angeloS Fully agree - a warning instead of just sending a message with an empty payload would have been easier to spot. Maybe something to propose in Github?

                                    mfalkviddM 1 Reply Last reply
                                    0
                                    • M manutremo

                                      @angeloS Fully agree - a warning instead of just sending a message with an empty payload would have been easier to spot. Maybe something to propose in Github?

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

                                      @manutremo which message are you referring to?

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

                                        We could add a sample message, in the troubleshooting guide, when the node has no Node ID and the gateway is responding an empty message, so a Node ID must be defined in the sketch

                                        mfalkviddM 1 Reply Last reply
                                        0
                                        • mfalkviddM mfalkvidd

                                          @manutremo which message are you referring to?

                                          M Offline
                                          M Offline
                                          manutremo
                                          wrote on last edited by
                                          #25

                                          @mfalkvidd Without being an specialist in the MySensors protocol, it could be something like

                                          • a debug message at some point in the gateway log when a node ID is requested and there is no ID to provide (no controller available),

                                          • something similar in the node log when an empty ID is provided form the gw

                                          • additionally, a warning in the log parser to check the controller when the payload is empty.

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


                                          21

                                          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