- Platform information:
- Hardware: Raspberri Pi 3 B,
- OS: Openhabian Linux 4.19.66-v7+
- Java Runtime Environment: openjdk version “1.8.0_265”
- openHAB version: Openhab 2.5.7-1
- Issue of the topic: I Have a a SDM120 Wattage power reader connected via Modbus to a USB Modbus transcriver. After some times it stops updating values.
I use influxdb on a dedicated VM as persistence database.
I’ve noticed yesterday from the graphs that Voltage, Watt and Ampere were all flat lines. After some investigation from logs i’ve noticed that values are never readed. No new ItemStateChangedEvent are registred.
Restarting the Pi resolve the situation for a while, sometimes it stops working again after 15 minutes, some times after 4 hours.
When this problem happen, in PaperUI a have all the modbus things (I.e. Modbus Serial Slave items, Regular Poll Items and Modbus Date items) online, no one show some kind of error.
Here the Openhab.log entries i think are relevant:
2020-08-20 00:42:41.452 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed
when executing request
(ModbusPollerThingHandler.ModbusPollerReadRequest@1bacbc8[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=0,length=2,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IOException Error reading response (EOF) [operation ID 142aea11-1db8-44c6-93d5-53427a935a3f]
2020-08-20 00:42:41.528 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Error invalidating connection in pool for endpoint ModbusSerialSlaveEndpoint@14bd952[portName=/dev/ttyUSB-modbus]. Error was: java.lang.NullPointerException null
java.lang.NullPointerException: null
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[?:1.8.0_265]
at org.openhab.io.transport.modbus.internal.pooling.ModbusSlaveConnectionFactoryImpl$PooledConnection.maybeResetConnection(ModbusSlaveConnectionFactoryImpl.java:87) ~[?:?]
The strange thing is that after that entry i start seeing errors from EnOcean Plugin, error that i haven’t seen before:
2020-08-20 00:43:10.979 [WARN ] [rnal.handler.EnOceanBaseThingHandler] - Exception while sending telegram! java.lang.IllegalArgumentException: Command REFRESH of channel repeaterMode(repeaterMode) is not supported at org.openhab.binding.enocean.internal.eep.EEP.convertFromCommand(EEP.java:79) ~[?:?]
Any hint?
I’m also trying to restore the backup from amanda one week before the error started on a fresh sd card (sd card inside the Raspi is pretty new, 6 month and a decent brand, Samsung EVO 32GB)