Add FRED programming via Z21 LAN DISPATCH_ADDR - #4
Merged
Conversation
Introduce wp-link Z21 client (mDNS _z21._udp plus UDP serial probe), driver fred (one DCC address, no Soft-AP), scan --mode z21, and runtime UDP dispatch without joining a programming AP. Co-authored-by: Cursor <cursoragent@cursor.com>
7 tasks
Resolve hostnames via async DNS, send LAN_LOGOFF on dispatch errors, preserve manually cached Z21 keys across rescans, map unreachable to a stable job detail, and add runtime tests for noAck and z21NoLocoNet. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.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
wp-link/z21): framing, serial probe,LAN_LOCONET_DISPATCH_ADDR, mDNS_z21._udpplus UDP broadcast discovery on 21105/21106.freddriver (one DCC address 1..=10239, no Wi‑Fi/throttle server) and runtime path that programs over UDP without joining a Soft-AP.scan --mode z21, relaxprogramCLI flags forfred, fake UDP Z21 tests, and driver/docs updates.Test plan
cargo test --workspaceinwireless-programmerwireless-programmer scan --mode z21against a physical Z21 on the layout LANwireless-programmer program --driver fred --key host:port --roster-file …with FRED in LocoNet jackdispatchFailed/z21NoLocoNet/noAckas documented