Question from my colleague — Alexander
Good time, experts CDS.
I will try to describe more the problem.
Experiences spend on PI-2 mod.B
There is a controller that has only RS-232, with fixed settings ID 16, 115200,8,N,1.
There is such piece of iron - USR-TCP232-2 http://www.usriot.com/p/rs232-to-ethernet-modules/
. Works perfectly in mode RTU over TCP.
But, as You know, CDS are not able to understand this format. Or serial, or TCP.
To solve this problem, I tried to use the socat program http://www.dest-unreach.org/socat/
team socat PTY,link=/dev/ttyCOM tcp:192.168.3.55:502, which creates the most symbolic file /dev/ttyCOM, (lrwxrwxrwx 1 root root 10 Jul 26 10:56 /dev/ttyCOM -> /dev/pts/0)
When experimenting with OpenHab, also had to add the permission to the specified "port" in start.sh -Dgnu.io.rxtx.SerialPorts=/dev/ttyCOM. Although, everything is perfectly functioning.
By analogy with these often change CODESYSControl.cfg to work with RS-485/USB Converter I tried to add /dev/ttyCOM in the file /etc/CODESYSControl.cfg
portnum := COM.SysCom.SYS_COMPORT1;
however, nothing happens, not picks up data CoDeSys...
What needs to be done in the /etc/CODESYSControl.cfg [SysCom]
It seems that clearly outlined the problem.
I hope for understanding and help.