grid-x / modbus

BSD 3-Clause "New" or "Revised" License
78 stars 26 forks source link

Add connect delay #44

Closed andig closed 2 years ago

andig commented 2 years ago

Some modbus devices from Huawei need a quiet period after initial connection. Since the connect is handled inside the library, the delay can only be added here. If clearer, we could also name this SilentDelay. The scope of the changes is minimal, no logic is impacted.

andig commented 2 years ago

Only observed on Huawei Tcp, therefore didn‘t apply tu RTU.

andig commented 2 years ago

Weird quirk. Do you know why Huawei needs this?

They have a dongle that connects to the rs485. Just seems crappy :/ Thanks for merging!