Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.0
-
None
Description
Currently, the QModbusTcpServer is derived from QModbusServer and provides only one listening socket and can only interpret the requests send to the UnitID (which is equivalent to the slaveAddress on serial devices) that it is configurated.
Suggestion 1:
- add capability to support a maxNumberOfOpenConnections as described in the specs and support opening a new listening socket as soon as the current socket is used by a connection up to the maxNumberOfOpenConnections.
Suggestion 2:
page 30 lists multiple servers running at the same time in one device through "virtual" slaveAddresses provided by the UnitID. To support such features commonly found in various devices, the derivation of QModbusTcpServer from QModbusServer should be reviewed and allow creating of multiple QModbusServer instances that handle the requests directed to them through their slaveAddress ID.