This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
feat: default port 5020 and Modbus RTU on a virtual serial port, release 2.0.0a12 (SIM-07, SIM-04) - #37
Merged
Conversation
The first command no longer needs administrator rights. TCP, UDP and TLS share the default; port 502 stays available with --port 502. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
--serial pty joins two pseudo-terminal pairs with a byte bridge so modpoll can read a model-driven device without hardware; --serial PORT listens on an existing port. pyserial becomes a dependency. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…TCP one Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
--port, modsim listens on 5020 (TCP, UDP and TLS) so the first command needs no administrator rights.--port 502still selects the standard port.--serial ptysimulates a Modbus RTU device without hardware on Linux and macOS. Two pseudo-terminal pairs are joined by a byte bridge; modsim prints the client port and the matchingmodpoll --serial ...command and removes the port on exit.--serial PORTlistens on an existing port,--serial-link PATHadds a fixed symbolic link. The model runtime now serves RTU as well as TCP.--comm serialcould not start from a clean install before.Verification
uv run pytest: 153 passed, 5 skipped.tests/test_virtual_serial.pystartsmodsim --config ... --serial ptyand reads the model twice over the virtual port.🤖 Generated with Claude Code