Wiren Board Software

Материал из Wiren Board
Версия от 16:34, 27 июня 2019; RomanKulibaba (обсуждение | вклад) (Новая страница: «thumb|500 px|Web interface home page '''Special:MyLanguage/Веб-интерфе…»)

Другие языки:

Wiren Board software architecture

The structure of the controller software. The MQTT message queue in the center is used to exchange information between different parts of the software

Wiren Board runs under a standard configuration of Debian Linux 9 Stretch. There is an official version of the system suitable for architecture of the used processor. That's why it is possible to find any package in the standard repository and install it by one command (apt-get install).

We also maintain our own debian repository releases.contactless.ru, which contains packages developed specially for the controller. By default, this repository is listed in Wiren Board software image (file /etc/apt/sources.list).

All the source code is available at Github.There you can find examples for development of your custom software.

MQTT message queue — is the "skeleton" of the Wiren Board software architecture. For basic information about MQTT seeWiki.

Drivers responsible for the hardware capabilities of the controller (digital inputs, ADC, ...) and functions of external connected devices (for example, connected via RS-485 relay modules), record their status in the MQTT queue in the form of special messages. The web interface reads these messages and displays the status of the devices based on them.

If a button is pressed in the web interface, the web interface sends a message to the MQTT queue, the device driver receives it and sends a command to the device.

Web interface, rules engine and built-in drivers work via MQTT. If you develop your own software in addition to the preinstalled one, we advise you to use MQTT as well.

thumb|500 px|Web interface home page Wiren Board web interface works directly on the controller. It can:

  • monitor and manage the status of the controller and connected devices
  • connect devices to the controller
  • configure the controller and update its software
  • write rules on the built-in engine
  • set up SMS and email notifications
  • watch historical graphs of values of the parameters (e.g., temperature)

Движок правил wb-rules позволяет создавать собственные правила для контроллера, например: "Если температура датчика меньше 18°С, включи нагреватель". Правила создаются через веб-интерфейс и пишутся на простом Javascript-подобном языке.

Для работы с SCADA-системами есть:

Как разрабатывать ПО для Wiren Board — статья для программистов.

Обновление прошивки

Node-Red - инструмент визуального программирования.