i’m using the Modbus-Binding and most of the time all works like a charm. But now I have a problem and don’t know how to solve this.
I have a emergency generator using a DSE 8620 MK II controller. To control the mode, i have to send a number to two different write-only register using FC16. So far so good.
But this seems to be a problem for the Modbus-Binding. If I add the Konfig to my things, OH trys to read this wirte-only Registers and gets an Read-Error. If I try to send something, it nevers shows up on the Bus.
How can I tell OH to stop reading these registers? Is there a workaround?
This tells the binding to read poll those registers.
Even though you have no ‘read’ data Things, the poller tries to read the whole block of registers.
You can make a poller that doesn’t poll by setting refresh=0
But that is not a complete solution because the binding will still I think issue a one-time refresh at start up.
The non-obvious solution - don’t have a poller at all.
You can have a write-only data Thing directly as the “child” of a TCP Thing
Ok, it works now. Thanks a lot! But not without Poller. The trick was to just read what is readable with the Poller and not to read the write-only registers.