Все переводы
Введите имя сообщения для показа всех доступных переводов.
Найден 1 перевод.
Сообщение | Текущий текст |
---|---|
ист. английский (en) | To run the driver, edit the <code>/etc/wb-mqtt-serial.conf</code> file. An ordinary user can use the RS-485 method:[[RS-485:Настройка через веб-интерфейс|RS-485:configuration via the web interface]], which also leads to the correct filling of the configuration file. However, you can edit the file manually. To do this: #Read the instructions[[Special:MyLanguage/Просмотр файлов контроллера с компьютера/en|How to view controller files from your computer]] #File <code>/etc/wb-mqtt-serial.conf</code> has the structure ''ports -> devices'': there are descriptions of the physical ports of the controller in the file, and inside them there is a list of devices that are connected to this port. #:Settings (speed, parity, etc.) and protocol (Modbus, RTU, etc.) are specified for each port. #:Each device must have its unique address on the bus - slave_id. You can also specify other optional parameters - see the [https://github.com/contactless/wb-homa-drivers/tree/master/wb-mqtt-serial full description of the format in the driver description on our Github]. #Enter the configuration for the ports and connected devices in the file using the examples below. #Restart the device OR run the command from the console #: <syntaxhighlight lang="bash"> service wb-mqtt-serial restart </syntaxhighlight> #:It will restart the driver and the connected device will appear in the web interface. #If the device does not appear, run the following command<syntaxhighlight lang="bash">tail /var/log/messages</syntaxhighlight> or open file <code>/var/log/messages</code> and scroll to the end. If there is a line like this one: #:<code>May 6 17:50:58 wirenboard user.notice modbus: FATAL: Error parsing config file: Failed to parse JSON: * Line <b>15</b>, Column 17</code> #:- look for the error in the 15th line of the configuration file. |