thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.73k stars 832 forks source link

[FEATURE REQUEST] Modbus-tcp connection limit issue #1279

Open Allisam-c opened 8 months ago

Allisam-c commented 8 months ago

Describe the issue I am currently using the thingsboard-gateway to collect telemetry data from my equipment, using RTUs from the oil field. the problem I am having is that each rtu only allows a maximum of 16 simultaneous connections to exist, and some rtu's even only support 10 connections, and one rtu is using multiple unitId's on a single ip, port. this is leading to my can only connect to some of the devices, and the connection is lost for devices that exceed the maximum number of connections.

The result of the test now is that each slave with the same ip, port, and unitId in modbus.json takes up one connection, and the current rtu is configured with multiple unitId's, exceeding the maximum number of connections.

Versions (please complete the following information):

Snipaste_2024-01-12_14-02-30

JimmyPedersen commented 4 months ago

I have the same problem with some of my modbus slaves. One type can only have a max of 3 simultaneous connections and currently spits out a lot of Connection lost messages. Please add this feature!