Network to Serial » VScom Serial Device Servers
How to use socat to create fixed TTY device in Linux?
If you just need to exchange data with your serial attached devices and the application doesn't care about modem signals, you can use socat to create a fixed TTY device:
socat pty,link=/dev/netcom0,raw tcp:192.168.254.254:2001&
This will create the /dev/netcom0 device, so that all data sent to /dev/netcom0 will be sent to 192.168.254.254:2001 using TCP protocol. The device name could be chosen arbitrarily as long as it doesn't collide with already existing names.
Please note, in the case of fixed TTY devices you will not be able to change any serial parameter (like speed, parity etc.), so please make it in advance via NetCom's web interface. The NetCom must be either in Driver or TCP Raw Server mode.
Tags: -
Related entries:
Author: Support
Revision: 1.1
You cannot comment on this entry