translator, wb_editors
4265
правок
Matveevrj (обсуждение | вклад) (Новая страница: «When you turn on the switch a command will be sent: (Set Brightness ch. 00=0xff) for Uniel UCH-M141: <pre> FF FF 0A 01 FF 00 00 0A </pre>») |
Matveevrj (обсуждение | вклад) (Новая страница: «<pre> /usr/bin/printf '\xFF\xFF\x0A\x01\xD1\x06\x00\xE2' >/dev/ttyNSC0 </pre> where "\xFF\xFF\x0A\x01\xD1\x06\x00\xE2" - is the entry of a "FF FF 0A 01 D1 06 00 E2" command.») Метки: правка с мобильного устройства правка из мобильной версии |
||
Строка 700: | Строка 700: | ||
</pre> | </pre> | ||
4. Describe the virtual device in the file | |||
4. | |||
<syntaxhighlight lang="ecmascript"> | <syntaxhighlight lang="ecmascript"> | ||
defineVirtualDevice("rs485_cmd", { | defineVirtualDevice("rs485_cmd", { | ||
Строка 716: | Строка 713: | ||
}); | }); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
5. Restart wb-rules and check the operation | |||
5. | |||
<pre> | <pre> | ||
root@wirenboard:~# /etc/init.d/wb-rules restart | root@wirenboard:~# /etc/init.d/wb-rules restart | ||
root@wirenboard:~# tail -f /var/log/messages | root@wirenboard:~# tail -f /var/log/messages | ||
</pre> | </pre> | ||
There should be no error messages in the log (exit via control-c) | |||
<div lang="ru" dir="ltr" class="mw-content-ltr"> | <div lang="ru" dir="ltr" class="mw-content-ltr"> |