Yes, sure I will.
now for the results of some testing over the past few days:
this is my modbus openhab configuration:
modbus:poll=1000
modbus:tcp.slave1.connection=192.168.1.100
modbus:
tcp.slave1.id=1
modbus:tcp.slave1.length=3
modbus:tcp.slave1.type=coil
modbus:tcp.slave2.connection=192.168.1.100
modbus:
tcp.slave2.id=1
modbus:tcp.slave2.start=6
modbus:tcp.slave2.length=1
modbus:tcp.slave2.type=input
I used ModScan32 from WInTech to poll the modbus controller board. the board can open only 10 sockets/connections simultaneously.
ModScan32 open two sockets to the controller board. uses the first one to poll the coil status and the second to poll the input register value.
in 1200 polls get 1195 valid replies at a polling frequency of 1 poll per second. (which is very good)
the display on the controller shows that there are only 2 sockets open to the board.
now, with openhab:
1 - if I poll only the coils with openhab modbus configuration being:
modbus:poll=1000
modbus:tcp.slave1.connection=192.168.1.100
modbus:
tcp.slave1.id=1
modbus:tcp.slave1.length=3
modbus:tcp.slave1.type=coil
I can see on the display of the controller that there are ONE opened sockets, which is the socket that openhab has initiated to read the coil values. - this is OK
2 - if I poll the coils AND the input registers with modbus configuration being:
modbus:poll=1000
modbus:tcp.slave1.connection=192.168.1.100
modbus:
tcp.slave1.id=1
modbus:tcp.slave1.length=3
modbus:tcp.slave1.type=coil
modbus:tcp.slave2.connection=192.168.1.100
modbus:
tcp.slave2.id=1
modbus:tcp.slave2.start=6
modbus:tcp.slave2.length=1
modbus:tcp.slave2.type=input
the display on the controller board shows the number of sockets opened growing up fast to 10. I then start to see high number of failure messages in the OSGI console.
It may be that that openhab opens two sockets initially: one to read the coils and one to poll the input register values. if on on the sockets times out, the openhab seems to open another socket (which is maybe why the number of sockets is growing fast up to 10).
Any ideas / hints / help is most appreciated.
Thanks