StrawberryBlue
StrawberryBlue
I tried using the 0.12 version, but it says that the transfer serial is not supported, is there something that has happened to the connection string
MODBUS_RTU_CONNECT_OPTION = "modbus-rtu:serial://COM30?request-timeout=5000&unit-identifier=1&baud-rate=9600&num-data-bits=8&num-stop-bits=1&parity=NO_PARITY";
sorry,it also exist when i use `MODBUS_RTU_CONNECT_OPTION = "modbus-rtu:serial://COM30?request-timeout=5000&unit-identifier=1&serial.baud-rate=9600&serial.num-data-bits=8&serial.num-stop-bits=1&serial.parity=NO_PARITY";`
I am using a serial device on Windows, `public static String MODBUS_RTU_CONNECT_OPTION = "modbus-rtu:serial://COM30?request-timeout=5000&unit-identifier=1&serial.baud-rate=9600&serial.num-data-bits=8&serial.num-stop-bits=1&serial.parity=NO_PARITY"; public static String MODBUS_TCP_CONNECT_OPTION = "modbus-tcp:tcp://127.0.0.1:502"; @Test public void modbusRtuRead(){ try (PlcConnection connection = PlcDriverManager.getDefault().getConnectionManager().getConnection(MODBUS_RTU_CONNECT_OPTION)) {...
It looks like the transport attribute does not support serial.
I debugged the code and it seems that TcpTransport was used instead of SerialTransport.class, so I manually introduced the plc4j-transport-serial package. At this point, the data can be successfully read...
I continued to check the input logs, and it seems that the previous agent closed the channel after reading it once`Channel is closed, closing worker Group also.` So I adjusted...
I continued testing, and when I looped read the data, there was an incomplete message. The test code is as follows ` @Test public void modbusRtuRead(){ try (PlcConnection connection =...
Can you reproduce this problem
it is fixed, great