Missing Parent EUI
-
-
@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?
-
@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
-
@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)
-
-
@guille Solved! It worked with 2 seconds.
Thanks a lot.
-
@guille 2 seconds may eat your sleeping node battery, keep in mind
-
@jkandasa It "disconnected" again.
Can you make the Parent EUI more permanent in mycontroller.org?
-
@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
-
@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. -
@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 (?)
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!
-
@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