MangoAutomation / modbus4j

A high-performance and ease-of-use implementation of the Modbus protocol written in Java. Supports ASCII, RTU, TCP, and UDP transports as slave or master, automatic request partitioning and response data type parsing.
GNU General Public License v3.0
897 stars 370 forks source link

请问各位大佬,No recipient was found waiting for response for key #64

Open zj555 opened 1 year ago

zj555 commented 1 year ago

不定时出现如下异常,这有什么影响吗?该怎么解决呢? com.serotonin.modbus4j.sero.messaging.WaitingRoomException: No recipient was found waiting for response for key com.serotonin.modbus4j.ip.xa.XaWaitingRoomKeyFactory$XaWaitingRoomKey@864a at com.serotonin.modbus4j.sero.messaging.WaitingRoom.response(WaitingRoom.java:100) at com.serotonin.modbus4j.sero.messaging.MessageControl.data(MessageControl.java:198) at com.serotonin.modbus4j.sero.messaging.InputStreamListener.run(InputStreamListener.java:76) at java.lang.Thread.run(Thread.java:748)

kay07 commented 1 year ago

我也出现这个问题了。我的是因为设置ModbusMaster的setTimeout太小了导致的

moyaoo commented 1 year ago

你是不是将slave id 设置为0了