On Fri, Apr 07, 2000 at 10:32:37AM +0700, nag wrote:
> hai all,
> I have to connect two  machines with serial port....which  device file should I use
> 
> for that...Is it  /dev/cua0 (1,2,3)  or /dev/ttys0(1,2,3,4,5)
> what is basically the difference between theses device files..
> Thanks in advance

Read /usr/src/linux/Documentation/devices.txt:

        Serial ports

Serial ports are RS-232 serial ports and any device which simulates
one, either in hardware (such as internal modems) or in software (such
as the ISDN driver.)  Under Linux, each serial ports has two device
names, the primary or callin device and the alternate or callout one.
Each kind of device is indicated by a different letter.  For any
letter X, the names of the devices are /dev/ttyX# and /dev/cux#,
respectively; for historical reasons, /dev/ttyS# and /dev/ttyC#
correspond to /dev/cua# and /dev/cub#.  In the future, it should be
expected that multiple letters will be used; all letters will be upper
case for the "tty" device (e.g. /dev/ttyDP#) and lower case for the
"cu" device (e.g. /dev/cudp#).

In short, if you need to use just one device, use ttyS#. If you need
to differentiate between callout and callin, use cua# and ttyS#.

        -Arun

-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH

Reply via email to