Hello rossko57
I’m about to give up …
I transfered my running OH2 installation from Windows to a new Raspberry 3 (openHABian V.1.3) and updated to the newest stable version of OH2. All the FS20 and Homematic components are working faultless.
For the Modbus devices, I tried your solution with the “virtual slaves” and i did not work. The log was flooded with errors. I tried different settings in the modbus.cfg file. But without success.
But now I have a fundamental problem: I assume that the modbus.cfg is parsed every time it is edited and saved? is this correct? (I’m using Eclispe SmartHomeDesigner)
For test purposes I deleted all modbus slaves in my modbus.cfg (an empty file!) saved it to the Services directory but the Error Log is still flooded with errors from deviced who don’t exist! I even restarted the system and after startup there are still the same errors. Is there a “hidden” place or a “shadow” copy of modbus.cfg? Cache?
I even uninstalled the modbus binding, deleted the modbus.cfg file and reinstalled modbus … still polling some old devices …
Actually I saved a total nonsense config (copy & paste some text from a text document) and my OH2 still tries to poll the same old devices … I’m absolutely lost. OH2 is such a brilliant system but very, very, very nerve-racking for a beginner like me
Any ideas?
TIA Matthias
[ERROR] [.binding.modbus.internal.ModbusSlave] - ModbusSlave (R7): Error getting modbus data for request net.wimpi.modbus.msg.ReadMultipleRegistersRequest@13e6195. Error: I/O exception - failed to read. Endpoint ModbusSerialSlaveEndpoint@e00bc8[portName=/dev/ttyACM0]. Connection: SerialConnection@14f69c4[portName=/dev/ttyACM0,port=/dev/ttyACM0]
[ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 01 03 00 63 00 01 74 14
[ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
[ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 1/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@1be68d5 (unit id 1 & transaction 443). Serial parameters: SerialParameters@1ba3fbb[portName=/dev/ttyACM0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=even,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
[ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 01 03 00 63 00 01 74 14
[ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
[ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 2/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@1be68d5 (unit id 1 & transaction 444). Serial parameters: SerialParameters@1ba3fbb[portName=/dev/ttyACM0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=even,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
[ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 01 03 00 63 00 01 74 14
[ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
[ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 3/3 error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@1be68d5 (unit id 1 & transaction 445). Serial parameters: SerialParameters@1ba3fbb[portName=/dev/ttyACM0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=even,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
[ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute reached max tries 3, throwing last error: I/O exception - failed to read. Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@1be68d5 (unit id 1 & transaction 445). Serial parameters: SerialParameters@1ba3fbb[portName=/dev/ttyACM0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=even,encoding=rtu,echo=false,receiveTimeoutMillis=1500]