Network to Serial » VScom Serial Device Servers

ID #1069

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:

Last update: 2017-03-03 10:13
Author: Support
Revision: 1.1

Digg it! Print this record Send to a friend Show this as PDF file
Please rate this entry:

Average rating: 3 out of 5 (6 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry