-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operational Discovery (CON-1306) #1055
Comments
I have tried to use the chip::Dossed::Resolver instead as it seems the DiscoveryImplPlatform is only for linux? I have a device advertising as an operational node:
I then try to start a operational discovery from another device that has been commissioned:
I get the output:
I have a strong feeling something is wrong, both with the data I receive and the 'ROUTE_HOOK' packets I start go receive. I would be very happy if anyone could help/clarify this for me. |
Node-id 1886217941 might be my google nest hub, as when I plug out my other device only node-id 16 disappear. However this confuses me as I specified a fabric id as filter, and I am pretty sure they are not on the same fabric (google nest hub and chip-tool). It seems like the filtering does not work correctly?
I tried to change this to: |
Looks like the Filter doesn't work for minimal mDNS resolver. This might need a fix for upstream repo of connectedhomeip. I am looking into this issue. Thanks for report this issue! |
Thanks, can I also ask about the minimal mDNS? as the context for the resolver says:
But in the minimal mDNS resolver StartDiscovery() it says:
What exactly does this mean / what are the effects of this. Do I have to be careful when I perform my own discovery, so that I do not override a context set by another discovery? |
That means the resolver can only handle one browsing at a time. You need to stop current discovery when you start a new discovery. |
Is it safe to just stop any discovery and is there a safe way to see if a discovery is ongoing? |
It is safe the call the stop function even if you don't start any discovery. |
project-chip/connectedhomeip#35063 Created a PR to fix this issue, could you try with this patch? |
Yes, fixes the issue for me. I couldn't build when switching to the PR, some errors occurred from some esp32 component delegate, so I wrote your changes in manually to test it. I just wanted to be sure that this might be due to the compliance of the esp32-matter to the version of the upstream repo. |
Yes, the esp-matter should be updated if you update the upstream repo. |
How would I perform operational discovery?
I was look at the DiscoveryImplPlatform class which seems to have this functionality. I'm however unsure if there is a better higher level functionality to perform operational discovery. Moreover I get the error
undefined reference to chip::Dnssd::DiscoveryImplPlatform::GetInstance()
, and it seems the file is not included when compiling? Other files in the same directory seems to be included so I am a bit confused.The text was updated successfully, but these errors were encountered: