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. Sensor doesn't assisiate with gateway

Sensor doesn't assisiate with gateway

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 3 Posters 105 Views 3 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.
  • TheStaticTurtleT Offline
    TheStaticTurtleT Offline
    TheStaticTurtle
    wrote on last edited by
    #1

    I've recently built my Raspberry Pi based gateway and a simple temperature sensor based on an arduino uno. Both use nrf24l01 (provided by lcsc) with caps and an am1117-3.3 regulator as far as I can read the logs indicate that the modules are connected and working. I use myscontroller (v1.0.0beta build3316) for testing and when I press discover the sensor says that it received the message.
    Here is the sensor log: https://paste.thestaticturtle.fr/ezasulirol.rb
    Here is the gateway log: https://paste.thestaticturtle.fr/qimazocuho.rb

    Is there an assosiation process that I've missed ?

    skywatchS 1 Reply Last reply
    1
    • TheStaticTurtleT TheStaticTurtle

      I've recently built my Raspberry Pi based gateway and a simple temperature sensor based on an arduino uno. Both use nrf24l01 (provided by lcsc) with caps and an am1117-3.3 regulator as far as I can read the logs indicate that the modules are connected and working. I use myscontroller (v1.0.0beta build3316) for testing and when I press discover the sensor says that it received the message.
      Here is the sensor log: https://paste.thestaticturtle.fr/ezasulirol.rb
      Here is the gateway log: https://paste.thestaticturtle.fr/qimazocuho.rb

      Is there an assosiation process that I've missed ?

      skywatchS Offline
      skywatchS Offline
      skywatch
      wrote on last edited by skywatch
      #2

      @TheStaticTurtle You are using an older version of mysensors. 2.3.2 is current so first of all upgrade to that.

      Second, looking at the node log it never finds the gateway. FPAR is "find parent" and it never does, so nowhere to send the data. The "!TSM:FPAR:FAIL" is also a clue as to no comms with the gateway.

      Why this is I don't know as you haven't posted your code.

      1 Reply Last reply
      3
      • TheStaticTurtleT Offline
        TheStaticTurtleT Offline
        TheStaticTurtle
        wrote on last edited by
        #3

        Ok i've updated my node to 2.3.2 here's the new log: https://paste.thestaticturtle.fr/tizukamafo.rb
        And sorry here's my node code: https://paste.thestaticturtle.fr/ziluwogide.cpp
        However, you said that the gateway dosn't communicate with the sensor that isn't true with myscontroller I can send a Discover message and the node receives it, it seems that only the path from the sensor to the node isn't working

        1 Reply Last reply
        1
        • TheStaticTurtleT Offline
          TheStaticTurtleT Offline
          TheStaticTurtle
          wrote on last edited by
          #4

          Ok, I've just moved to a esp8266 based gateway with the following code: https://paste.thestaticturtle.fr/furekuhege.cpp and I've added an inclusion button and can now connect the two by spaming the inclusion button an resetting the node. the sensors also showed up in homeassistant. Now the problem is that if I don't keep spaming the button after 60sec I no longer receive values from the nodes

          skywatchS 1 Reply Last reply
          1
          • TheStaticTurtleT TheStaticTurtle

            Ok, I've just moved to a esp8266 based gateway with the following code: https://paste.thestaticturtle.fr/furekuhege.cpp and I've added an inclusion button and can now connect the two by spaming the inclusion button an resetting the node. the sensors also showed up in homeassistant. Now the problem is that if I don't keep spaming the button after 60sec I no longer receive values from the nodes

            skywatchS Offline
            skywatchS Offline
            skywatch
            wrote on last edited by skywatch
            #5

            @TheStaticTurtle What are you measuring the temperature of? Your node sketch only sends new data if the temperature changes from the last reading. It may be that the sensor(s) are in a place with a fairly constant temperature and therefore there is no change to send?

            To test this comment out the below code and see if you then get data every 30 seconds....

              // Only send data if temperature has changed and no error
                //#if COMPARE_TEMP == 1
               // if (lastTemperature[i] != temperature && temperature != -127.00 && //temperature != 85.00) {
                //#else
                //if (temperature != -127.00 && temperature != 85.00) {
                //#endif
            
            mfalkviddM 1 Reply Last reply
            0
            • skywatchS skywatch

              @TheStaticTurtle What are you measuring the temperature of? Your node sketch only sends new data if the temperature changes from the last reading. It may be that the sensor(s) are in a place with a fairly constant temperature and therefore there is no change to send?

              To test this comment out the below code and see if you then get data every 30 seconds....

                // Only send data if temperature has changed and no error
                  //#if COMPARE_TEMP == 1
                 // if (lastTemperature[i] != temperature && temperature != -127.00 && //temperature != 85.00) {
                  //#else
                  //if (temperature != -127.00 && temperature != 85.00) {
                  //#endif
              
              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              @skywatch or just change

              #define COMPARE_TEMP 1 // Send temperature only if changed? 1 = Yes 0 = No
              

              to

              #define COMPARE_TEMP 0 // Send temperature only if changed? 1 = Yes 0 = No
              
              skywatchS 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @skywatch or just change

                #define COMPARE_TEMP 1 // Send temperature only if changed? 1 = Yes 0 = No
                

                to

                #define COMPARE_TEMP 0 // Send temperature only if changed? 1 = Yes 0 = No
                
                skywatchS Offline
                skywatchS Offline
                skywatch
                wrote on last edited by
                #7

                @mfalkvidd I always seem to do things the hard way! ;)

                mfalkviddM 1 Reply Last reply
                0
                • skywatchS skywatch

                  @mfalkvidd I always seem to do things the hard way! ;)

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

                  @skywatch that's often the path to fastest learning ;-)

                  skywatchS 1 Reply Last reply
                  0
                  • mfalkviddM mfalkvidd

                    @skywatch that's often the path to fastest learning ;-)

                    skywatchS Offline
                    skywatchS Offline
                    skywatch
                    wrote on last edited by skywatch
                    #9

                    @mfalkvidd Also the fastest path to insomnia and alcoholism! ;)

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


                    31

                    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