steveohara / j2mod

Enhanced Modbus library implemented in the Java programming language
Apache License 2.0
265 stars 111 forks source link

RTU Over TCP Resend Bug #71

Closed ZantsuRocks closed 6 years ago

ZantsuRocks commented 6 years ago

When writing via RTU Over TCP after the first write subsequent writes go with header and the "useRtuOverTcp" turn false. All the tries to write fail after that.

This issue only occur when reconnection is set to true "((ModBusTCPMaster)).setReconnecting(true)", the "transport" object get NULL and set the "headless" flag to false.

steveohara commented 6 years ago

Which version are you using? This issue was fixed in v2.4.0

If you are still seeing the problem on v2.4.1, let me know and I'll take a further look at it.

ZantsuRocks commented 6 years ago

I'm using v2.4.1

steveohara commented 6 years ago

I replicated the issue with a slave simulator and fixed it in v2.4.2 which was published today.