Repository navigation
Add a remote control service to the CLI and GUI - #24
Merged
Merged
Conversation
cboulay
force-pushed
the
cboulay/remote-control
branch
2 times, most recently
from
November 8, 2026 00:16
f650850 to
087bbad
Compare
A line-based TCP service on 127.0.0.1 that does everything the GUI does: status, set/load/save settings, link/unlink, impedance on/off, shutdown the AmpServer, and fire the NA500's BNC output trigger. Each command line gets one "OK ..." / "ERROR ..." reply line; commands block until done. It is off by default: --remote-port <port> (CLI) or <remoteport> in the config file (CLI and GUI). The command dispatch lives in the core (RemoteControl.cpp); the CLI and GUI implement a small RemoteControlTarget. In the GUI, remote commands run their UI work on the UI thread, so the window always shows the current state. With remote control the CLI keeps running until Ctrl+C, even when unlinked or if the first link fails. The GUI now keeps settings it has no field for (e.g. systemdelayms) from the loaded config instead of resetting them to defaults. scripts/remote_control_test.py exercises the service end to end; it passes against the NA500 mock and a GES 500 (fw 0.4.9, CLI and GUI), including BNC out -> BNC in loopback. Co-Authored-By: Claude <noreply@anthropic.com>
cboulay
force-pushed
the
cboulay/remote-control
branch
from
November 8, 2026 00:21
087bbad to
e6e6ec6
Compare
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.
Stacked on #23 (the
triggercommand needs it); merge that first.Summary
status,set <key> <value>,load/save <file>,link/unlink,impedance on|off,trigger [width_us],shutdown_ampserver,help. OneOK .../ERROR ...reply per line; commands block until done.--remote-port <port>(CLI) or<remoteport>in the config file (CLI and GUI, read at startup).RemoteControl.cpp); CLI and GUI implement a smallRemoteControlTarget. GUI remote commands run their UI work on the UI thread, so the window always reflects the state.systemdelayms) instead of resetting them.Test plan
scripts/remote_control_test.pyagainst the NA500 mock (CLI)shutdown_ampserveron real hardware (not run: it kills the amp's AmpServer)🤖 Generated with Claude Code