Add passive mDNS discovery as a second device-discovery source#840
Draft
chrisdp wants to merge 3 commits into
Draft
Add passive mDNS discovery as a second device-discovery source#840chrisdp wants to merge 3 commits into
chrisdp wants to merge 3 commits into
Conversation
RokuFinder now runs a passive mDNS/DNS-SD listener alongside SSDP. It joins the mDNS multicast group and listens for device announcements without sending queries, identifies Rokus by the integrator=Roku TXT marker or the _display service, and reads the serial from the .local hostname. Sightings feed the existing found/lost events and bypass the ssdp:alive heartbeat-suppression path, which is specific to SSDP.
A zero-dependency raw scanner plus SKILL.md that enumerates service types, resolves instances, and highlights matching devices. Useful for finding Rokus and inspecting device TXT metadata during development.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds passive mDNS / DNS-SD discovery as a second source alongside the existing SSDP discovery, wired into
RokuFinderso it needs noDeviceManagerchanges.What it does
MdnsListenerjoins the mDNS multicast group and listens for device announcements without sending any queries. This adds no traffic of its own and sidesteps the responder rate-limiting that makes repeated active scanning unreliable.integrator=RokuTXT marker (or the_displayservice) and reads the serial from the device's.localhostname, which matches the SSDP USN serial one-to-one.RokuFindertranslates sightings into its existingfound/lostevents, deduped by serial. mDNS sightings deliberately bypass thessdp:aliveheartbeat-suppression path, which is tuned to Roku's ~20-minute SSDP cadence and does not apply to mDNS. mDNS sightings also reset the active-scan settle timer so they participate in scans.Notes
mdns-scanskill (.claude/skills/mdns-scan/): a standalone scanner used during development to inspect what devices advertise over mDNS.Draft: opening for early review of the approach.