Wiren Board Software/en: различия между версиями
FuzzyBot (обсуждение | вклад) м (FuzzyBot переименовал страницу Программное обеспечение Wiren Board/en в Wiren Board Software/en без оставления перенаправления: Часть переводимой страницы Программное обеспечение Wiren Board.) |
(Новая страница: «See more atMQTT.») |
||
(не показано 38 промежуточных версий 3 участников) | |||
Строка 1: | Строка 1: | ||
<languages/> | <languages/> | ||
Wiren Board offers both ready web-interface and capabilities for its development. Source code of all software is open. | |||
== Web-interface == | |||
[[Special:MyLanguage/Файл:Веб-интерфейс - главная.png|thumb|500 px|Web-interface Main Page]] | |||
[[Special:MyLanguage/Wiren Board 4|Wiren Board 4]] features built-in, local web-interface. This is a convenient way to control connected devices and monitor connected sensors. | |||
=== How to enter the interface === | |||
Just enter IP address of the controller into address line of your browser. Ref. also the article [[Special:MyLanguage/Как узнать IP-адрес контроллера|How to know IP-address of the controller]]. | |||
=== What to do with the interface? === | |||
* control the connected devices | |||
* read the sensors | |||
* assemble devices and sensors into panels (Dashboards) | |||
Подробнее смотрите здесь - [[Wiren Board 4:Веб-интерфейс|Wiren Board 4:Web-interface]] | |||
== Wiren Board software architecture == | == Wiren Board software architecture == | ||
[[Special:MyLanguage/Файл:MQTT.png | thumb | 600px]] | |||
=== Operating system === | |||
Wiren Board runs under a standard configuration of Debian Linux 7.0. There is an [https://www.debian.org/ports/arm/ 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). | |||
=== Repository and Git === | |||
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 [https://github.com/contactless/ Github]. It is where you can find examples for development of your custom software. | |||
=== MQTT === | |||
Wiren Board uses the MQTT message queue ([http://en.wikipedia.org/wiki/MQTT Wikipedia article]) as a single standard to gather information from internal modules (relays, ADS, etc.) and external devices (1-Wire sensors, Modbus devices). All these modules and external devices are provided with drivers that transfers data to the MQTT message system and back again. Web-interface also takes data from this message system and sends there all changes made by the user (for example, a relay activation command). The message queue is also used by the rules engine. | |||
See more at[[Special:MyLanguage/MQTT|MQTT]]. | |||
=== Веб-интерфейс === | |||
Подробнее см. [[Wiren Board 4:Веб-интерфейс|Wiren Board 4:Веб-интерфейс]] | |||
Веб-интерфейс работает непосредственно на Wiren Board. В качестве веб-сервера работает лёгкий [http://manpages.ubuntu.com/manpages/lucid/man1/webfsd.1.html webfsd]. Сам сайт написан на [https://angularjs.org/ AngularJS], сайт взаимодействует с MQTT через [http://en.wikipedia.org/wiki/WebSocket WebSocket]. | |||
=== Движок правил === | |||
Можно создавать правила, например, "если значение с датчика температуры ниже 18С, включи нагреватель". Правила пишутся на языке Javascript. Подробнее смотрите | |||
[[Special:MyLanguage/Движок правил wb-rules|Движок правил wb-rules]]. | |||
== Как работать с модулями контроллера и портами ввода-вывода из своих программ == | |||
=== [[Special:MyLanguage/GSM/GPRS|GSM/GPRS]] === | |||
=== [[Special:MyLanguage/Wi-Fi|Wi-Fi]] === | |||
=== [[Special:MyLanguage/RS-485|RS-485]] === | |||
[[ | === [[Special:MyLanguage/GPIO|GPIO]] === | ||
=== [[Special:MyLanguage/Watchdog|Watchdog]] === |
Версия 16:10, 17 июля 2015
Wiren Board offers both ready web-interface and capabilities for its development. Source code of all software is open.
Web-interface
thumb|500 px|Web-interface Main Page
Wiren Board 4 features built-in, local web-interface. This is a convenient way to control connected devices and monitor connected sensors.
How to enter the interface
Just enter IP address of the controller into address line of your browser. Ref. also the article How to know IP-address of the controller.
What to do with the interface?
- control the connected devices
- read the sensors
- assemble devices and sensors into panels (Dashboards)
Подробнее смотрите здесь - Wiren Board 4:Web-interface
Wiren Board software architecture
Operating system
Wiren Board runs under a standard configuration of Debian Linux 7.0. 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).
Repository and Git
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. It is where you can find examples for development of your custom software.
MQTT
Wiren Board uses the MQTT message queue (Wikipedia article) as a single standard to gather information from internal modules (relays, ADS, etc.) and external devices (1-Wire sensors, Modbus devices). All these modules and external devices are provided with drivers that transfers data to the MQTT message system and back again. Web-interface also takes data from this message system and sends there all changes made by the user (for example, a relay activation command). The message queue is also used by the rules engine.
See more atMQTT.
Веб-интерфейс
Подробнее см. Wiren Board 4:Веб-интерфейс
Веб-интерфейс работает непосредственно на Wiren Board. В качестве веб-сервера работает лёгкий webfsd. Сам сайт написан на AngularJS, сайт взаимодействует с MQTT через WebSocket.
Движок правил
Можно создавать правила, например, "если значение с датчика температуры ниже 18С, включи нагреватель". Правила пишутся на языке Javascript. Подробнее смотрите Движок правил wb-rules.