Skip to content

Commit b134b95

Browse files
committed
Update simulator doc. (#2635)
1 parent 7900ca9 commit b134b95

File tree

5 files changed

+56
-2
lines changed

5 files changed

+56
-2
lines changed

doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ Please select a topic in the left hand column.
1313
source/server
1414
source/repl
1515
source/simulator3
16+
source/simulator
1617
source/simulator/simulator
1718
source/examples
1819
source/authors
1920
source/changelog
2021
source/internals
2122
source/roadmap
23+
source/upgrade_40
2224

2325
.. include:: ../README.rst

doc/source/_static/examples.tgz

595 KB
Binary file not shown.

doc/source/_static/examples.zip

1.39 KB
Binary file not shown.

doc/source/library/pymodbus.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ PDU classes
7171
:undoc-members:
7272
:show-inheritance:
7373

74-
.. automodule:: pymodbus.pdu.device
74+
.. automodule:: pymodbus.device
7575
:members:
7676
:undoc-members:
7777
:show-inheritance:
7878

79-
.. automodule:: pymodbus.pdu.events
79+
.. automodule:: pymodbus.events
8080
:members:
8181
:undoc-members:
8282
:show-inheritance:

doc/source/simulator.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Simulator
2+
=========
3+
4+
**WORK IN PROGRESS, do NOT use**
5+
6+
The simulator is a full fledged modbus server/simulator.
7+
8+
The purpose of the simulator is to provide support for client
9+
application test harnesses with end-to-end testing simulating real life
10+
modbus devices.
11+
12+
The simulator allows the user to (all automated):
13+
14+
- simulate a modbus device by adding a simple configuration,
15+
- simulate a multipoint line, but adding multiple device configurations,
16+
- simulate devices that are not conforming to the protocol,
17+
- simulate communication problems (data loss etc),
18+
- test how a client handles modbus response and exceptions,
19+
- test a client apps correct use of the simulated device.
20+
21+
For details please see:
22+
23+
- :ref:`Data model configuration`
24+
- :ref:`Simulator server`
25+
26+
The web interface (activated optionally) allows the user to:
27+
28+
- introduce modbus errors (like e.g. wrong length),
29+
- introduce communication errors (like splitting a message),
30+
- monitor requests/responses,
31+
- see/Change values online.
32+
- inject modbus errors like malicious a response,
33+
- run your test server in the cloud,
34+
35+
For details please see:
36+
37+
- :ref:`Web frontend`
38+
39+
40+
The REST API allow the test process to be automated
41+
42+
- spin up a test server in your test harness,
43+
- set expected responses with a simple REST API command,
44+
- check the result with a simple REST API command,
45+
- test your client app in a true end-to-end fashion.
46+
47+
The web server uses the REST API internally, which helps to ensure that it
48+
actually works.
49+
50+
For details please see:
51+
52+
- :ref:`REST API`

0 commit comments

Comments
 (0)