Wiren Board NETMON-1: различия между версиями
Строка 17: | Строка 17: | ||
|'''порты'''||'''функция''' | |'''порты'''||'''функция''' | ||
|- | |- | ||
|и1|| | |и1||discrete input | ||
|- | |- | ||
|и2||1-wire / Debug UART | |и2||1-wire / Debug UART | ||
|- | |- | ||
|и3|| | |и3||discrete input | ||
|- | |- | ||
|и4||RS-232 | |и4||RS-232 | ||
|- | |- | ||
|и5|| | |и5||discrete input | ||
|- | |- | ||
|и6||RS-485 | |и6||RS-485 | ||
|- | |- | ||
|и7|| | |и7||discrete input | ||
|- | |- | ||
|и8||RS-485 | |и8||RS-485 | ||
|- | |- | ||
|и9|| | |и9||discrete input | ||
|- | |- | ||
|а1||ADC input | |а1||ADC input | ||
Строка 52: | Строка 52: | ||
|'''Ehternet'''||'''и1'''||'''и2'''||'''и3'''||'''и4'''||'''и5'''||'''и6'''||'''и7'''||'''и8'''||'''и9''' | |'''Ehternet'''||'''и1'''||'''и2'''||'''и3'''||'''и4'''||'''и5'''||'''и6'''||'''и7'''||'''и8'''||'''и9''' | ||
|- | |- | ||
|1 Y/W|| | |1 Y/W||discrete input 1||5v||discrete input 6||-||Isolated GND||-||Isolated GND||-||Isolated GND | ||
|- | |- | ||
|2 Y|| | |2 Y||discrete input 2||5v||discrete input 7||-||discrete input 11||-||discrete input 15||-||discrete input 19 | ||
|- | |- | ||
|3 G/W|| | |3 G/W||discrete input 3||Debug Tx||discrete input 8||GND||Isolated GND||-||Isolated GND||-||Isolated GND | ||
|- | |- | ||
|4 B|| | |4 B||discrete input 4||1-Wire||discrete input 9||RS-232 Tx 1||discrete input 12||RS-485 A2||discrete input 16||RS-485 A1||discrete input 20 | ||
|- | |- | ||
|5 B/W|| | |5 B/W||discrete input 5||GND||discrete input 10||GND||Isolated GND||RS-485 B2||Isolated GND||RS-485 B1||Isolated GND | ||
|- | |- | ||
|6 G||Isolated GND||Debug Rx||Isolated GND||RS-232 Tx 1|| | |6 G||Isolated GND||Debug Rx||Isolated GND||RS-232 Tx 1||discrete input 13||-||discrete input 17||-||discrete input 21 | ||
|- | |- | ||
|7 Br/W||Isolated GND||GND||Isolated GND||-||Isolated GND||-||Isolated GND||-||Isolated GND | |7 Br/W||Isolated GND||GND||Isolated GND||-||Isolated GND||-||Isolated GND||-||Isolated GND | ||
|- | |- | ||
|8 Br||Isolated GND||GND||Isolated GND||-|| | |8 Br||Isolated GND||GND||Isolated GND||-||discrete input 14||-||discrete input 18||-||discrete input 22 | ||
|} | |} | ||
{|| border="1" class="wikitable" style="text-align:center" | {|| border="1" class="wikitable" style="text-align:center" | ||
Строка 164: | Строка 164: | ||
=== Механизм конфигурирования === | === Механизм конфигурирования === | ||
d |
Версия 03:48, 8 ноября 2014
Комплект поставки
* клеммники ответные 4шт, уши для корпуса, etc
Подготовка к работе
* открыть * вставить кнопку в разъём (картинка) * вставить sim-карту (картинка) * вставить sd-карту (картинка) * включить, проверить, что загорелась зелёная верхняя лампочка * дождаться мигания оранжевой нижней лампочки, выключить
Передняя панель
порты | функция |
и1 | discrete input |
и2 | 1-wire / Debug UART |
и3 | discrete input |
и4 | RS-232 |
и5 | discrete input |
и6 | RS-485 |
и7 | discrete input |
и8 | RS-485 |
и9 | discrete input |
а1 | ADC input |
а2 | ADC input |
а3 | ADC input |
а4 | ADC input |
а5 | ADC input |
а6 | ADC input |
а7 | ADC input |
Ehternet | и1 | и2 | и3 | и4 | и5 | и6 | и7 | и8 | и9 |
1 Y/W | discrete input 1 | 5v | discrete input 6 | - | Isolated GND | - | Isolated GND | - | Isolated GND |
2 Y | discrete input 2 | 5v | discrete input 7 | - | discrete input 11 | - | discrete input 15 | - | discrete input 19 |
3 G/W | discrete input 3 | Debug Tx | discrete input 8 | GND | Isolated GND | - | Isolated GND | - | Isolated GND |
4 B | discrete input 4 | 1-Wire | discrete input 9 | RS-232 Tx 1 | discrete input 12 | RS-485 A2 | discrete input 16 | RS-485 A1 | discrete input 20 |
5 B/W | discrete input 5 | GND | discrete input 10 | GND | Isolated GND | RS-485 B2 | Isolated GND | RS-485 B1 | Isolated GND |
6 G | Isolated GND | Debug Rx | Isolated GND | RS-232 Tx 1 | discrete input 13 | - | discrete input 17 | - | discrete input 21 |
7 Br/W | Isolated GND | GND | Isolated GND | - | Isolated GND | - | Isolated GND | - | Isolated GND |
8 Br | Isolated GND | GND | Isolated GND | - | discrete input 14 | - | discrete input 18 | - | discrete input 22 |
Ethernet | а1 | а2 | а3 | а4 | а5 | а6 | а7 |
1 Y/W | 3.3V | - | - | - | - | - | - |
2 Y | 3.3V | - | - | - | - | - | - |
3 G/W | GND | - | - | - | - | - | - |
4 B | ADC input 4 | ADC input 1 | ADC input 6 | ADC input 2 | ADC input 7 | ADC input 3 | ADC input 8 |
5 B/W | GND | GND | GND | GND | GND | GND | GND |
6 G | ADC input 5 | - | - | - | - | - | - |
7 Br/W | 5V | - | - | - | - | - | - |
8 Br | 5V | - | - | - | - | - | - |
Список GPIO
Датчик температуры и влажности
Датчик Sensirion SHT10.
Пакет: wb-mqtt-sht1x Исходные коды: https://github.com/contactless/wb-mqtt-sht1x
В автозагрузке демон wb-mqtt-sht1x, отправляющий результаты в MQTT:
service wb-mqtt-sht1x stop service wb-mqtt-sht1x start service wb-mqtt-sht1x status
Конфиг демона:
/etc/wb-mqtt-sht1x.conf
Адреса в MQTT:
Default MQTT topics are: /devices/sht1x/meta/name SHT1x Sensor /devices/sht1x/controls/temperature/meta/type temperature /devices/sht1x/controls/humidity/meta/type rel_humidity Sensor data: /devices/sht1x/controls/temperature /devices/sht1x/controls/humidity Example: $ mosquitto_sub -h 192.168.0.102 -t '/devices/sht1x/#' -v /devices/sht1x/controls/temperature 28.5 /devices/sht1x/controls/temperature/meta/type temperature /devices/sht1x/controls/humidity 31.7 /devices/sht1x/controls/humidity/meta/type rel_humidity /devices/sht1x/meta/name SHT1x Sensor
Настройка в Zabbix:
mqtt.value[/devices/sht1x/controls/humidity] mqtt.value[/devices/sht1x/controls/temperature]
Перезагрузка SCU (задние реле)
За управление задними реле ответственен демон dbic-pcycle.py.
Запуск/остановка демона:
/etc/init.d/wb-dbic-pcycle start /etc/init.d/wb-dbic-pcycle stop
Демон слушает команды по шине MQTT. Есть три разных способа вызвать перезагрузку SCU, т.е. отправить MQTT-команду демону:
- Через веб-интерфейс в разделе Back relays
- С помощью команды `dbic_invoke_pcycle.sh` в консоли
- С помощью отправки команды через MQTT
mosquitto_pub -h <ip-адрес МКА> -t "/devices/dbic-power-cycle/controls/power/on" -m "0" -q 2
Механизм конфигурирования
d