Skip to content

Feat: Comprehensive documentation for Modbus Simulator (README.rst and JSON guide) #2875

@FedericoMusa

Description

@FedericoMusa

Versions
Python: 3.11+.png]

OS: Windows 11 Enterprise LTSC

Pymodbus: 3.8.0.dev (latest dev branch)

Description
The current pymodbus/server/simulator/README.rst is blank, and as noted in the TODO.rst file, there is a significant need to "Document simulator general" and "Document JSON".

Since the simulator is a complex tool involving a Modbus server, a Datastore, and a REST API, I propose to create a comprehensive README from scratch that will serve as the primary guide for this sub-package.

The new documentation will cover:

Architecture & Workflow: How the simulator initializes using the internal or custom setup.json.

Detailed JSON Schema: A complete reference for the setup.json structure, including server_list, device_list, and register definitions.

Web Console & API: Instructions for using the REST interface and the browser-based console (defaulting to port 8081).

Operational Integration: Practical examples using the pymodbus.simulator entry point to ensure a persistent and verifiable simulation environment.

This work aims to close the gaps identified by Jan Iversen regarding "silent starts" and user confusion when no registers are explicitly defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions