kochedykov / jlibmodbus

JLibModbus - is an implementation of the Modbus protocol v1.1b in java language. Java modbus library. It works. Welcome.
http://kochedykov.github.io/jlibmodbus/
Apache License 2.0
299 stars 128 forks source link

Inconsistency between the source code and the published JAR results in RTU access timeout #88

Closed double-7 closed 7 months ago

double-7 commented 1 year ago
  1. When I use RTU to access data, I always report an error:

    f48a5489f55067435eae5329e767519
  2. I found that the problem was caused by the inconsistency between the released JAR package and the source code

download source

jar: image

source code: https://github.com/kochedykov/jlibmodbus/blob/c6f663bbc3d1d8e076d418d7b974bec8bc8e551a/src/com/intelligt/modbus/jlibmodbus/serial/SerialPortJSerialComm.java#L77

jSerialComm static final public int TIMEOUT_READ_BLOCKING = 0x00000010; https://github.com/Fazecast/jSerialComm/blob/bde01eff9b668bd35ff05401f8470b70da9ae910/src/main/java/com/fazecast/jSerialComm/SerialPort.java#L78

kochedykov commented 7 months ago

Fixed. Please use the latest release 1.2.9.9.