JLibModbus - is an implementation of the Modbus protocol v1.1b in java language. Java modbus library. It works. Welcome.
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
When I use RTU to access data, I always report an error:
I found that the problem was caused by the inconsistency between the released JAR package and the source code
download source
jar:
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