I’m trying to connect an eProWallbox Move via Modbus TCP/IP to openHAB (currently 5.1.3, running on a Pi 5 with openHABian).
So far everything was ok, connection was possible and I created the necessary Things (Modbus Slave, Modbus Poller, Modbus Data) and I’m getting data from the registers.
But after “a while”, the following error happens on the Poller Things:
COMMUNICATION_ERROR
Error with read: org.openhab.core.io.transport.modbus.internal.ModbusSlaveIOExceptionImpl: Modbus IO Error with cause=ModbusIOException, EOF=false, message=‘I/O exception - failed to write: Connection reset by peer’, cause2=null
I tried to change the poll intervals and timeouts, but the issue still happened. It feels like the bigger the intervals, the longer it takes until the issue happens.
In sum I have four pollers reading 1, 2, 2 and 6 registers. The intervals are 30000 ms + 1/2/3/4 seconds and a few milliseconds for each poller, to not let them fire all at the same time.
Since it happened last time, I additionally set the time between Modbus transactions in the Slave Thing to 5000 ms.
Does anyone here have experience with this wallbox and knows why this might happen or what would be the best poll intervals?
Thanks!
In general: I use as few pollers as possible. The advantage is that the timings of the values within one poller are in sync.
You state that you are only reading but the error is a write error. But this is only guessing as I don’t know your thing definitions. I assume for further help you have to show your code
I also wondered why the error says something about “write”, because I didn’t set up any write yet. I only read the registers.
And I read about OCPP here in the forum, but if I understood it correctly, I need to manually copy a binding to the system to be able to use it. Problem is that I don’t have direkt access to the openHAB in this case; I can only configure it via the openHAB cloud. That’s why I try to use only stuff that openHAB supports out of the box
Meanwhile I found the code in EVCC how they access the wallbox. They use the same registers, but additionally they write to a “watchdog reset” register every 10 seconds [1].
I added this in openHAB and I’m now observing the stability
Anyways thanks for your suggestions! If the watchdog ping works I will share the code/steps here as reference.