- Platform information: Raspberry PI 3
Hallo I have many problems during the configuration of a MODBUS connection on a USB.
This is my configuration:
modbus.things
Bridge modbus:serial:localSerial [port="/dev/ttyUSB0", id=1, baud=19200, stopBits="1", parity="none", dataBits=8, encoding="rtu"]
{Bridge poller inputs [start=4267, length=2, refresh=1000, type="holding" ]
{Thing data ggg [ readStart="4267", readValueType="float32"]}
modbus.sitemaps
sitemap modbus label="My home"
{Frame label="Date"
{
Text item=ggg label="Holding1501 out[%.1f °C]"
}
}
Modbus.items
Number ggg "Holding1501 [%.1f]" <temperature> {channel="modbus:data:localSerial:inputs:ggg:number"}
The usb device starts flashing the light of communication but no data could be read.
This is the log.
2019-11-02 09:29:22.349 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Error getting a new connection for endpoint ModbusSerialSlaveEndpoint@5e791c[portName=/dev/ttyUSB1]. Error was: java.lang.InterruptedException null
2019-11-02 09:29:22.353 [INFO ] [rt.modbus.internal.ModbusManagerImpl] - Poll task BasicPollTaskImpl@9dd96b[request=ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@5a3888[slaveId=0,functionCode=READ_MULTIPLE_REGISTERS,start=4267,length=2,maxTries=3],endpoint=ModbusSerialSlaveEndpoint@5e791c[portName=/dev/ttyUSB1],callback=org.openhab.binding.modbus.internal.handler.ModbusPollerThingHandlerImpl$ReadCallbackDelegator@7ebc18d8] canceled
2019-11-02 09:29:22.355 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint@5e791c[portName=/dev/ttyUSB1] – aborting request ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@5a3888[slaveId=0,functionCode=READ_MULTIPLE_REGISTERS,start=4267,length=2,maxTries=3] [operation ID 7605f5d6-a08b-4fc6-90b3-5edc791a2cf6]