Closed ArdJonker closed 2 months ago
Please try with version 3.6.9, I remember that we have made changes to this problem.
Thanks! I'll give it a try! Problem is, i'll have to wait (an other few weeks maybe..) for the hardware to crash before i can retry.
Closing as no longer relevant (can be reopened if its still a problem with 3.6.9)
Versions
Python: 3.9
OS:
(and also in AppDaemon 4.x)
Pymodbus: 3.6.5 (latest PyPI?)
Modbus Hardware: Wallbox Quasar bidirectional car charger
Pymodbus Specific
Description
Unfortunately the modbus module in the hardware i use has the tenancy to crash every 1 to 3 weeks. I need to be able to detect this reliably to notify the admin.
I now can only do this by counting retries and a total timeout, i would expect to be able to catch a specific Exception. But the ModbusException does not fire, eventhough
asyncio.TimeoutError("Server not responding")
is fired. Maybe this is because ofTypeError: close() got an unexpected keyword argument 'intern'
?Code
Logging