12 063
правки
(Новая страница: «The second command (service wb-mqtt-serial stop) is to stop the Modbus driver to avoid conflicts when working with RS-485 ports.») |
(Новая страница: «The -d and -x options can be omitted in both cases - they are needed for diagnostic output and hexadecimal data dumps.») |
||
(не показаны 4 промежуточные версии этого же участника) | |||
Строка 27: | Строка 27: | ||
The second command (service wb-mqtt-serial stop) is to stop the Modbus driver to avoid conflicts when working with RS-485 ports. | The second command (service wb-mqtt-serial stop) is to stop the Modbus driver to avoid conflicts when working with RS-485 ports. | ||
Run on a computer (Linux based): | |||
<pre> | <pre> | ||
socat -d -d -d -x PTY,raw,ispeed=9600,ospeed=9600,parenb=0,cstopb=1,cs8,link=/dev/ttyRS485-1 tcp:192.168.3.12:10010& | socat -d -d -d -x PTY,raw,ispeed=9600,ospeed=9600,parenb=0,cstopb=1,cs8,link=/dev/ttyRS485-1 tcp:192.168.3.12:10010& | ||
Строка 34: | Строка 34: | ||
</pre> | </pre> | ||
In older versions of controllers, specify ports [/dev/ttyNSC0, /dev/ttyNSC1] or [/dev/ttyAPP1, /dev/ttyAPP4]. | |||
After executing these commands, special files /dev/ttyRS485-1 and /dev/ttyRS485-2 appear in the system (on the PC), corresponding to RS-485 ports of the Wiren Board. The latter command creates symbolic links to port files in /dev for convenience, which allows, for example, to use the Modbus driver configuration written for the Wiren Board on a PC without any changes. | |||
RS-485 | |||
The -d and -x options can be omitted in both cases - they are needed for diagnostic output and hexadecimal data dumps. | |||
правки