Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Modbus TCP connection pooling #1894

Closed
2 of 16 tasks
IsmoLeszczynski opened this issue Nov 15, 2024 · 3 comments
Closed
2 of 16 tasks

[Feature Request]: Modbus TCP connection pooling #1894

IsmoLeszczynski opened this issue Nov 15, 2024 · 3 comments

Comments

@IsmoLeszczynski
Copy link
Contributor

What would you like to happen?

When using Modbus TCP gateways, the gateways can aggregate multiple Modbus devices using unit ids. Such gateways unfortunately also seem to sometimes have limits on how many TCP connections can be active at the same time, due to which forming a connection per unit id is not feasible. Is there a way in PLC4X to share the TCP connection between different connection strings? I know of the connection cache, but it caches per connection string, which is different per unit id in this case.

Programming Languages

  • plc4j
  • plc4go
  • plc4c
  • plc4net

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • CANopen
  • DeltaV
  • DF1
  • EtherNet/IP
  • Firmata
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • S7
@chrisdutz
Copy link
Contributor

You should have a look at our connection cache: https://plc4x.apache.org/plc4x/0.13.0-SNAPSHOT/users/tools/connection-cache.html This should be a general purpose solution for your problem for all PLC4X drivers.

@IsmoLeszczynski
Copy link
Contributor Author

Thanks for the reply, I was wondering how to make use of that with different unit ids, but then I noticed I somehow skipped a line in the Modbus documentation where the unit id can be given per Modbus address. Apologies for the hassle!

@chrisdutz
Copy link
Contributor

No need to appologise :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants