volkszaehler / mbmd

ModBus Measurement Daemon - simple reading of data from ModBus meters and grid inverters
BSD 3-Clause "New" or "Revised" License
229 stars 81 forks source link

Increase timeout to 600 ms #258

Closed RichieB2B closed 2 years ago

RichieB2B commented 2 years ago

When idle the ORNO OR-WE-517 meter works fine and mbmd can read it without any problems. However when I charge my car (the meter is in front of my EV charger) timeout start to occur. When I increase the default timeout of 300 ms to 600 ms the timeout disappear.

Apr 30 01:34:49 framboos mbmd[1929]: 2022/04/30 01:34:49 device ORNO3P1.1 did not respond (1/3): read failed: serial: timeout
Apr 30 01:34:50 framboos mbmd[1929]: 2022/04/30 01:34:50 device ORNO3P1.1 did not respond (2/3): read failed: serial: timeout
Apr 30 01:34:55 framboos mbmd[1929]: 2022/04/30 01:34:55 device ORNO3P1.1 did not respond (3/3): read failed: serial: timeout
Apr 30 01:34:56 framboos mbmd[1929]: 2022/04/30 01:34:56 device ORNO3P1.1 is offline
Apr 30 01:34:57 framboos mbmd[1929]: 2022/04/30 01:34:57 device ORNO3P1.1 is offline - reactivating
Apr 30 01:35:02 framboos mbmd[1929]: 2022/04/30 01:35:02 device ORNO3P1.1 did not respond (1/3): read failed: serial: timeout
Apr 30 01:35:03 framboos mbmd[1929]: 2022/04/30 01:35:03 device ORNO3P1.1 did not respond (2/3): read failed: serial: timeout
Apr 30 01:35:08 framboos mbmd[1929]: 2022/04/30 01:35:08 device ORNO3P1.1 did not respond (3/3): read failed: serial: timeout
Apr 30 01:35:09 framboos mbmd[1929]: 2022/04/30 01:35:09 device ORNO3P1.1 is offline
Apr 30 01:35:10 framboos mbmd[1929]: 2022/04/30 01:35:10 device ORNO3P1.1 is offline - reactivating
Apr 30 01:35:15 framboos mbmd[1929]: 2022/04/30 01:35:15 device ORNO3P1.1 did not respond (1/3): read failed: serial: timeout
Apr 30 01:35:16 framboos mbmd[1929]: 2022/04/30 01:35:16 device ORNO3P1.1 did not respond (2/3): read failed: serial: timeout
Apr 30 01:35:21 framboos mbmd[1929]: 2022/04/30 01:35:21 device ORNO3P1.1 did not respond (3/3): read failed: serial: timeout
Apr 30 01:35:22 framboos mbmd[1929]: 2022/04/30 01:35:22 device ORNO3P1.1 is offline
Apr 30 01:35:23 framboos mbmd[1929]: 2022/04/30 01:35:23 device ORNO3P1.1 is offline - reactivating
andig commented 2 years ago

We should probably add a new timeout command line parameter instead of increasing the default every now and then?

andig commented 2 years ago

Closing in favour of https://github.com/volkszaehler/mbmd/pull/265.