• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Missing Parent EUI

    Dashboard
    2
    12
    343
    Loading More Posts
    • 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
      guille last edited by

      Hi guys. I have a couple of very simple battery nodes with BME280 sensors.

      They are working great, but they all have no "Parent EUI", so they stay disconnected on the topology map.

      Any hints?

      Thanks!

      2019-01-24_11-37-39.jpg 2019-01-24_11-38-34.jpg 2019-01-24_11-38-04.jpg 2019-01-24_11-38-57.jpg

      jkandasa 1 Reply Last reply Reply Quote 0
      • jkandasa
        jkandasa @guille last edited by

        @guille Sleeping node may not respond to discover request. Hence parent EUI is not updated. Can you try to increase Sleep node wait duration? and check again?

        G 1 Reply Last reply Reply Quote 0
        • G
          guille @jkandasa last edited by

          @jkandasa Thanks for your quick response.

          How do I do so? Do you mean putting a wait() before the smartsleep() call?

          Right now I have no waits whatsoever.

          Thanks again

          jkandasa 1 Reply Last reply Reply Quote 0
          • jkandasa
            jkandasa @guille last edited by jkandasa

            @guille No, in your sketch you have to add, as mentioned here.

            increase smart sleep up to 2 seconds and check. if it works, reduce the delay.

            #define MY_SMART_SLEEP_WAIT_DURATION_MS (2000ul)
            
            1 Reply Last reply Reply Quote 1
            • G
              guille last edited by

              Bumped it to 2 seconds.

              Still no luck.

              Should I try bigger values? 5 secs?

              2019-01-24_13-08-58.jpg

              G 1 Reply Last reply Reply Quote 0
              • G
                guille @guille last edited by

                @guille Solved! It worked with 2 seconds.

                Thanks a lot.

                jkandasa 1 Reply Last reply Reply Quote 1
                • jkandasa
                  jkandasa @guille last edited by

                  @guille 2 seconds may eat your sleeping node battery, keep in mind 😉

                  G 2 Replies Last reply Reply Quote 0
                  • G
                    guille @jkandasa last edited by

                    @jkandasa It "disconnected" again.

                    Can you make the Parent EUI more permanent in mycontroller.org?

                    1 Reply Last reply Reply Quote 0
                    • G
                      guille @jkandasa last edited by

                      @jkandasa said in Missing Parent EUI:

                      @guille 2 seconds may eat your sleeping node battery, keep in mind 😉

                      Indeed. It sucked 2% in less than 4 hours 😞

                      jkandasa 1 Reply Last reply Reply Quote 0
                      • jkandasa
                        jkandasa @guille last edited by

                        @guille You may send parent node Id when your node awake,
                        I didn't test this, just constructed by seeing MySensors core library. Kindly check this and report the status.

                        Call this function, when your node awake.

                        void sendParentNodeId() {
                          MyMessage myParent;
                          build(myParent, GATEWAY_ADDRESS, NODE_SENSOR_ID, C_INTERNAL, I_DISCOVER_RESPONSE);
                          send(myParent.set(_transportConfig.parentNodeId));
                        }
                        

                        NOTE: _transportConfig is internal reference from MySensors library. They may change in future versions. You need to take care of this reference.

                        G 1 Reply Last reply Reply Quote 1
                        • G
                          guille @jkandasa last edited by

                          @jkandasa The weirdest thing.

                          I added that function with a call at every loop and it makes a new unexistent sensor at the node:

                          SENSOR_BC HVAC flow (?)

                          weird2019-01-25_15-09-31.jpg weird2019-01-25_15-10-00.jpg

                          And still won't send the parent EUI.

                          Don't worry! Is not that important. All works fine. It is my small peeve trying to know my topology.

                          Thanks!

                          jkandasa 1 Reply Last reply Reply Quote 1
                          • jkandasa
                            jkandasa @guille last edited by

                            @guille Ah, do not know why? let me have a look sometime later.
                            I hope this gives some hints to fix https://github.com/mycontroller-org/mycontroller/issues/484 🙂

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            0
                            Online

                            638
                            Users

                            495
                            Topics

                            3.2k
                            Posts

                            Copyright © 2015-2022 MyController.org | Contributors | Localization