Hi all, I am having some issues with the ModBus binding with ModBusTCP.
Intermittenly I am getting errors I cannot connect to my setup whether is correct or not.
Can someone help please?
My things file is as below:
Bridge modbus:tcp:riscVmc [ host="192.168.0.17", port=8899, id=1 ] {
Bridge poller holdings0015 [ start=0, length=16, refresh=2000, type="holding" ] {
Thing data ventolaEspulsione00 @"VMC" [ readStart="0", readValueType="int16", writeStart="0", writeValueType="int16", writeType="holdin$
Thing data ventolaImmissione01 @"VMC" [ readStart="1", readValueType="int16", writeStart="1", writeValueType="int16", writeType="holdin$
Thing data gestioneVentilazione02 @"VMC" [ readStart="2", readValueType="int16"]
Thing data deumidificatore03 @"VMC" [ readStart="3", readValueType="int16", writeStart="3", writeValueType="int16", writeType="holding"]
Thing data integrazione04 @"VMC" [ readStart="4", readValueType="int16", writeStart="4", writeValueType="int16", writeType="holding"]
Thing data ricircolo05 @"VMC" [ readStart="5", readValueType="int16", writeStart="5", writeValueType="int16", writeType="holding"]
Thing data modalitaAttiva06 @"VMC" [ readStart="6", readValueType="int16", writeStart="6", writeValueType="int16", writeType="holding"]
Thing data gestioneEstateInverno07 @"VMC" [ readStart="7", readValueType="int16", writeStart="7", writeValueType="int16", writeType="ho$
Thing data estateInverno08 @"VMC" [ readStart="8", readValueType="int16", writeStart="8", writeValueType="int16", writeType="holding"]
Thing data attivaFasceOrarie09 @"VMC" [ readStart="9", readValueType="int16"]
Thing data allarmeAttivo10 @"VMC" [ readStart="10", readValueType="int16"]
Thing data resetAllarmiModus11 @"VMC" [ readStart="11", readValueType="int16", writeStart="11", writeValueType="int16", writeType="hold$
Thing data codiceEvento12 @"VMC" [ readStart="12", readValueType="int16"]
Thing data numeroEventoLow13 @"VMC" [ readStart="13", readValueType="int16"]
Thing data numeroEventoHigh14 @"VMC" [ readStart="14", readValueType="int16"]
Thing data oraEventoLow15 @"VMC" [ readStart="15", readValueType="int16"]
}
}
Randomly I am getting these errors I guess related to the poller and some wrong settings:
2020-07-17 16:21:18.076 [DEBUG] [handler.ModbusPollerThingHandlerImpl] - Thing
modbus:poller:riscVmc:holdings0015 received error
ModbusSlaveIOException(cause=ModbusIOException, EOF=false, message='I/O exception:
EOFException null', cause2=null) for request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@c33eb9[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=0,length=16,maxTries=3]
2020-07-17 16:21:18.081 [ERROR] [ernal.handler.ModbusDataThingHandler] - Thing
modbus:data:riscVmc:holdings0015:ventolaEspulsione00 'Modbus Data' had ModbusSlaveIOExceptionImpl error on read: ModbusSlaveIOException(cause=ModbusIOException, EOF=false, message='I/O exception: EOFException null', cause2=null)
2020-07-17 16:21:18.087 [ERROR] [ernal.handler.ModbusDataThingHandler] - Thing
modbus:data:riscVmc:holdings0015:ventolaImmissione01 'Modbus Data' had ModbusSlaveIOExceptionImpl error on read: ModbusSlaveIOException(cause=ModbusIOException, EOF=false, message='I/O exception: EOFException null', cause2=null)
2020-07-17 16:21:18.088 [hingStatusInfoChangedEvent] - 'modbus:data:riscVmc:holdings0015:ventolaEspulsione00' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Error (ModbusSlaveIOExceptionImpl) with read. Request: ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@c33eb9[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=0,length=16,maxTries=3]. Description: ModbusSlaveIOException(cause=ModbusIOException, EOF=false, message='I/O exception: EOFException null', cause2=null). Message: Modbus IO Error with cause=ModbusIOException, EOF=false, message='I/O exception: EOFException null', cause2=null
Can anyone help spotting what is wrong here?
Thanks