mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-05 11:54:05 +01:00
90 lines
3.9 KiB
XML
90 lines
3.9 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<thing:thing-descriptions bindingId="modbus"
|
||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
|
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
|
||
|
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
|
||
|
<bridge-type id="udp">
|
||
|
<label>Modbus UDP Slave</label>
|
||
|
<description>Endpoint for Modbus UDP slaves</description>
|
||
|
<config-description>
|
||
|
<parameter name="host" type="text" required="true">
|
||
|
<label>IP Address or Hostname</label>
|
||
|
<description>Network address of the device</description>
|
||
|
<default>localhost</default>
|
||
|
<context>network-address</context>
|
||
|
</parameter>
|
||
|
<parameter name="port" type="integer">
|
||
|
<label>Port</label>
|
||
|
<description>Port of the slave</description>
|
||
|
<default>6000</default>
|
||
|
</parameter>
|
||
|
|
||
|
<parameter name="subnetId" type="integer">
|
||
|
<label>SubnetId</label>
|
||
|
<description>Slave subnet id. Can take any value between 0 and 255.</description>
|
||
|
<default>1</default>
|
||
|
</parameter>
|
||
|
<parameter name="id" type="integer">
|
||
|
<label>Id</label>
|
||
|
<description>Slave id. Also known as station address or unit identifier.</description>
|
||
|
<default>1</default>
|
||
|
</parameter>
|
||
|
|
||
|
<parameter name="enableDiscovery" type="boolean">
|
||
|
<label>Discovery Enabled</label>
|
||
|
<description>When enabled we try to find a device specific handler. Turn this on if you're using one of the
|
||
|
supported devices.</description>
|
||
|
<default>false</default>
|
||
|
</parameter>
|
||
|
|
||
|
<parameter name="rtuEncoded" type="boolean">
|
||
|
<label>RTU Encoding</label>
|
||
|
<description>Use RTU Encoding over IP</description>
|
||
|
<default>false</default>
|
||
|
</parameter>
|
||
|
|
||
|
<!-- connection handling -->
|
||
|
<parameter name="timeBetweenTransactionsMillis" type="integer" min="0" unit="ms">
|
||
|
<label>Time Between Transactions</label>
|
||
|
<description>How long to delay we must have at minimum between two consecutive MODBUS transactions. In milliseconds.
|
||
|
</description>
|
||
|
<default>60</default>
|
||
|
</parameter>
|
||
|
<parameter name="timeBetweenReconnectMillis" type="integer" min="0" unit="ms">
|
||
|
<label>Time Between Reconnections</label>
|
||
|
<description>How long to wait to before trying to establish a new connection after the previous one has been
|
||
|
disconnected. In milliseconds.</description>
|
||
|
<default>0</default>
|
||
|
<advanced>true</advanced>
|
||
|
</parameter>
|
||
|
<parameter name="connectMaxTries" type="integer" min="1">
|
||
|
<label>Maximum Connection Tries</label>
|
||
|
<description>How many times we try to establish the connection. Should be at least 1.</description>
|
||
|
<default>1</default>
|
||
|
<advanced>true</advanced>
|
||
|
</parameter>
|
||
|
<parameter name="afterConnectionDelayMillis" type="integer" min="0" unit="ms">
|
||
|
<label>Connection warm-up time</label>
|
||
|
<description>Connection warm-up time. Additional time which is spent on preparing connection which should be spent
|
||
|
waiting while end device is getting ready to answer first modbus call. In milliseconds.</description>
|
||
|
<default>0</default>
|
||
|
<advanced>true</advanced>
|
||
|
</parameter>
|
||
|
<parameter name="reconnectAfterMillis" type="integer" min="0" unit="ms">
|
||
|
<label>Reconnect Again After</label>
|
||
|
<description>The connection is kept open at least the time specified here. Value of zero means that connection is
|
||
|
disconnected after every MODBUS transaction. In milliseconds.</description>
|
||
|
<default>0</default>
|
||
|
<advanced>true</advanced>
|
||
|
</parameter>
|
||
|
<parameter name="connectTimeoutMillis" type="integer" min="0" unit="ms">
|
||
|
<label>Timeout for Establishing the Connection</label>
|
||
|
<description>The maximum time that is waited when establishing the connection. Value of zero means that system/OS
|
||
|
default is respected. In milliseconds.</description>
|
||
|
<default>10000</default>
|
||
|
<advanced>true</advanced>
|
||
|
</parameter>
|
||
|
</config-description>
|
||
|
</bridge-type>
|
||
|
</thing:thing-descriptions>
|