Subject: Re: which tty device files for talking to serial devices?
To: None <tech-userlevel@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 06/23/2007 20:40:26
> from reading tty(4) I understand that /dev/dty?? are the device files
> one should use to talk to an external device connected to one of the
> serial ports. Is this correct?
As I understand it, "maybe".
My understanding is that /dev/dty* are the devices to use if the port
in question is used for both dial-in and dial-out (or some comparable
externally-vs-internally-initiated connection), and you're dialing out.
This makes a difference in respects such as the port not needing
carrier-detect in order to let the open succeed, and it locks out the
/dev/tty* version for the duration of the call.
If you're ignoring modem control, and/or don't have both incoming and
outgoing on the same line, then I think you can use /dev/tty* and
My understanding may be wrong.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML firstname.lastname@example.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B