MQTT KNX V.0.1.x/en: различия между версиями

м
FuzzyBot переименовал страницу MQTT KNX/en в MQTT KNX V.0.1.x/en без оставления перенаправления: Часть переводимой страницы MQTT KNX.
(Новая страница: «= Setting= At the moment, wb-mqtt-knx does not have a configuration file.»)
м (FuzzyBot переименовал страницу MQTT KNX/en в MQTT KNX V.0.1.x/en без оставления перенаправления: Часть переводимой страницы MQTT KNX.)
 
(не показано 8 промежуточных версий 2 участников)
Строка 15: Строка 15:
At the moment, wb-mqtt-knx does not have a configuration file.
At the moment, wb-mqtt-knx does not have a configuration file.


Информацию по настройке knxd можно найти в конфигурационном файле /etc/knxd.conf - https://github.com/knxd/knxd/blob/master/systemd/knxd.conf и в<pre>$ knxd --help</pre>
Information on setting up knxd can be found in the configuration file /etc/knxd.conf - https://github.com/knxd/knxd/blob/master/systemd/knxd.conf and in<pre>$ knxd --help</pre>


= Адреса в MQTT =
= Адреса в MQTT =
Строка 49: Строка 49:
</pre>
</pre>


== Формат MQTT сообщений ==
== Format MQTT messages ==
Чтобы отправить групповую телеграмму в KNX необходимо отправить подготовленное сообщение в MQTT топик:
To send a group telegram to KNX, you must send the prepared message to the MQTT topic:


<pre>mosquitto_pub -t '/devices/knx/controls/data/on' -m "g:${DstAddr} ${APCI} ${Data}"</pre>
<pre>mosquitto_pub -t '/devices/knx/controls/data/on' -m "g:${DstAddr} ${APCI} ${Data}"</pre>


Чтобы отправить индивидуальную телеграмму в KNX необходимо отправить:
To send an individual telegram to KNX, you must send:


<pre>mosquitto_pub -t '/devices/knx/controls/data/on' -m "i:${SrcAddr}:${DstAddr} ${APCI} ${Data}"</pre>
<pre>mosquitto_pub -t '/devices/knx/controls/data/on' -m "i:${SrcAddr}:${DstAddr} ${APCI} ${Data}"</pre>


Все сообщения из KNX будут доставлены в MQTT топик /devices/knx/controls/data в виде:
All messages from the KNX bus will be delivered to the MQTT topic /devices/knx/controls/data in the form:


<pre>i:${SrcAddr} [i,g]:${DstAddr} ${APCI} ${Data}</pre>
<pre>i:${SrcAddr} [i,g]:${DstAddr} ${APCI} ${Data}</pre>


* SrcAddr, DstAddr - Адреса KNX устройств в формате "n/n/n" или "n/n".
* SrcAddr, DstAddr - Addresses of KNX devices in the format "n/n/n" or "n/n".
* APCI - Тип сообщения: строка или 4х-битное число.
* APCI - message Type: string or 4-bit number.
* Data - Сообщение в виде байт, разделенных пробелами. Первый байт сообщения должен иметь длину не более 6 бит.
* Data - a Message in the form of bytes separated by spaces. The first byte of the message must be no longer than 6 bits.


Поддерживаемые типы сообщений(APCI):
Supported message types(APCI):


* GroupValueRead
* GroupValueRead
Строка 84: Строка 84:
* Restart
* Restart
* Escape
* Escape
* любое 4х-битное числовое значение
* Any 4-bit numeric value
wb_editors
14 355

правок