Add Thread mesh networking and border router support#7
Open
dmonagle wants to merge 1 commit into
Open
Conversation
Introduces MatterThread and MatterThreadBorderRouter targets for
joining Thread mesh networks and bridging Thread devices to IP,
enabling Acumen to commission and control Thread devices directly.
Architecture:
- openthread-swift (separate package): COpenThread systemLibrary +
OpenThread Swift wrapper (ThreadInstance, ThreadDataset, etc.)
- MatterThread: ThreadTransport (MatterUDPTransport over Thread mesh),
ThreadDiscovery (ServiceDiscovery via SRP), ThreadNetworkManager
(form/join/scan), ThreadCommissioner (dataset provisioning)
- MatterThreadBorderRouter: BorderRouter actor, IPv6Routing, SRPProxy,
DNSProxy, NAT64Translator
All Thread sources guarded with #if canImport(OpenThread) so they
compile as empty modules without the pre-built OpenThread libraries.
Package traits ("Thread", "ThreadBorderRouter") declared for future
conditional dependency resolution.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Introduces comprehensive Thread mesh networking capabilities with a new border router implementation.
Changes
Package Configuration
MatterThreadandMatterThreadBorderRouterlibrary targetsopenthread-swiftpackage (local path for development)MatterThread Module
ThreadNetworkManager: High-level API for forming, joining, and monitoring Thread networksThreadInstance: Wrapper around OpenThread C APIs (assumed in openthread-swift)ThreadTransport:MatterUDPTransportimplementation routing UDP through the Thread meshThreadDiscovery:ServiceDiscoveryimplementation using SRP server and mesh-local mDNSThreadCommissioning: Thread-specific commissioning with dataset provisioning supportMatterThreadBorderRouter Module
BorderRouter: Coordinates border routing services between Thread and infrastructure networksIPv6Routing: Manages IPv6 prefix delegation and on-mesh prefixesSRPProxy: Proxies Thread SRP registrations to infrastructure mDNSDNSProxy: Forwards DNS queries from Thread devices to infrastructureNAT64Translator: Enables IPv6-only Thread devices to reach IPv4 hostsUsage Example