Open caipiblack opened 8 months ago
Is it wanted that the stack search for devices during 5s with mDNS, then wait 40s to retry ?
Why not searching during 45s (actively during some seconds, then passively) and retry in case of failure ..?
Is it android implementation specific? Limitation from android API ?
Here there is an exemple where the device is not discoverable “within 5s”:
https://github.com/orgs/openthread/discussions/9727#discussioncomment-7958203
Reproduction steps
Stack commit: 221e466510600543fee1d9fb70f270022e37866e
We found an issue with the mDNS resolver implementation of the Android platform. At the FindOperational step.
Description:
During the commissioning of a Thread device, when the device receive the ConnectNetwork command, it initiate the connection to the Thread network. For example:
The function
AttachToThreadNetwork()
is like this:The function just configure the thread network, enable openthread and return
So first, there is no guaranties that immediately after this step the device is accessible. In our cases it's never the case. Also it's possible that the device connect to "a new thread partition" for some reason (like he don't find any thread partitions.. (RF environment etc..)).
The problem:
In our system we never find the device on the first discovery, because the device is still attaching to the thread network of the border router and has not yet published the services with SRP/mDNS
Notes:
We are testing with a "EVE Socket" but also an esp32-c6 "light example" (in thread) from esp-matter.
Logs
Platform
android
Platform Version(s)
Android 13 (no importance)
Type
Platform validated
(Optional) If manually tested please explain why this is only manually tested
No response
Anything else?
No response