Skip to content

Use direct '_ssc._tcp.local.' browsing instead of DNS-SD services enumeration - #1

Open
michten wants to merge 1 commit into
schwinn:mainfrom
michten:fix-kh-mdns-discovery
Open

Use direct '_ssc._tcp.local.' browsing instead of DNS-SD services enumeration#1
michten wants to merge 1 commit into
schwinn:mainfrom
michten:fix-kh-mdns-discovery

Conversation

@michten

@michten michten commented Jul 28, 2026

Copy link
Copy Markdown

Hello,
After using khtool for some time I noticed that it is not able to find, during a new scan the KH120 II speakers, after waking them from standby and restarting PC.
I've troubleshoot this little bit with help of ai, using tcpdump and avahi-browse; in current implementation after running khtool --scan
0 PTR (QU)? _services._dns-sd._udp.local. (46)
is sent, but the speakers at that moment do not advertise their '_ssc._tcp.local.' service until they receive a direct query, thus they do not appear in the DNS-SD browse results.
In modified scan.py direct '_ssc._tcp.local.' browsing is used instead of enumerating all DNS-SD service types available in cache.
This library currently communicates over TCP only, therefore browsing '_ssc._tcp.local.' directly is sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant