Skip to content

[Bug]: Cached Modbus TCP hiccup when another connection is established #2418

@JoelGaechter

Description

@JoelGaechter

What happened?

I recently updated from version 0.13.0 to 0.13.1, and encountered an issue where my device would time out when another device establishes a connection.
My setup consists of four devices connected through Modbus TCP, whereas three of them are turned on by the other one. A single CachedPlcConectionManager is used for all connections and each one has a read-write loop running in a separate thread. If an exception occurs in the loop, the connection is removed from the cache using CachedPlcConnectionManager::removeCachedConnection.
Initially, the loop would only succeed for one device until this switches on the others. Previously the others would also start communicating seamlessly, but now the former has a hiccup at this point, which in my case causes it to timeout and switch off the others again.

In my understanding the connections should be decoupled and not influence each other. Was there anything introduced that could cause the connections to interfere with each other during reading, writing, or connecting

Version

v0.13.1

Programming Languages

  • plc4c
  • plc4go
  • plc4j
  • plc4net
  • plc4py

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • C-Bus
  • CANopen
  • EtherNet/IP
  • Firmata
  • IEC-69870
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • Profinet
  • S7
  • S7-light

Metadata

Metadata

Assignees

No one assigned

    Labels

    Modbushttps://plc4x.apache.org/users/protocols/modbus.htmljavaPull requests that update Java code

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions