volkszaehler / mbmd

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

"--timeout" Parameter not working / constant timeout errors #333

Closed hoermaen closed 6 months ago

hoermaen commented 6 months ago

Hi, I have successfully installed an SD630 in conjunction with mbmd for over two years. Due to the imminent installation of a PV system, I would now also like to put an ABB B23 into operation. This also works in principle, but I get the following error with almost every polling:

device ABB1.3 did not respond (1/3): read failed: serial: timeout

Since it works on the second attempt, I assume that there is a timing problem. If I only poll the ABB, no error is displayed. According to the mbmd run docu there should be a parameter "--timeout". However, this is not displayed in the help menu for my version (0.13). Does it not exist, or does it only apply in conjunction with RTU?

I would actually rule out the cabling as a source of error, as I use shielded CAT cables and it works without any problems if i just query one device. The SDM630 never throws an error. Any other tips? Adjusting the rate or the order of the meters in the query did not bring any change/improvement.

Here is the complete output:

root@Modbus:/etc/systemd/system# /usr/local/bin/mbmd run -a /dev/ttyUSB0 -d sdm:1,ABB:3 -r 5s 2024/01/26 19:30:01 mbmd 0.13 (fa6b574) 2024/01/26 19:30:01 config: creating RTU connection for /dev/ttyUSB0 (9600baud, 8N1) 2024/01/26 19:30:01 config: declared device SDM:1.0 2024/01/26 19:30:01 config: declared device ABB:3.0 2024/01/26 19:30:01 httpd: starting api at 0.0.0.0:8080 2024/01/26 19:30:01 initialized device SDM1.1: {SDM SDM Eastron SDM630 0} 2024/01/26 19:30:02 initialized device ABB1.3: {ABB ABB ABB A/B-Series meters 0} 2024/01/26 19:30:02 device ABB1.3 did not respond (1/3): read failed: serial: timeout 2024/01/26 19:30:07 device ABB1.3 did not respond (1/3): read failed: serial: timeout 2024/01/26 19:30:12 device ABB1.3 did not respond (1/3): read failed: serial: timeout 2024/01/26 19:30:17 device ABB1.3 did not respond (1/3): read failed: serial: timeout 2024/01/26 19:30:22 device ABB1.3 did not respond (1/3): read failed: serial: timeout 2024/01/26 19:30:27 device ABB1.3 did not respond (1/3): read failed: serial: timeout

Thanks in advance!

hoermaen commented 6 months ago

Build mbmd from source. The "--timeout" parameter ist now available but not needed. It´s running flawless now... Issue closed