Thread (5 messages) 5 messages, 4 authors, 1999-09-17

Re: stty < /dev/modem blocks???

From: Randall R Schulz <hidden>
Date: 1999-09-16 20:14:08

Michel,

It depends on the serial hardware and possibly on the defaults for 
the driver associated with those ports. Not all serial hardware 
behaves identically. I may be wrong about this, but it might be 
possible that a floating input (one connected neither to ground or 
+12) might get interpreted differently on different serial controller 
chips.

Without poring over the pertinent kernel driver code and knowing the 
details of the serial hardware and it's incorporation into your 
computer, I cannot give a more definitive answer.

Randy Schulz
Mountain View, CA USA


At 09:22 +0200 9/16/99, Michel Lanners wrote:
On  15 Sep, this message from Randall R Schulz echoed through cyberspace:
quoted
As you know, the less-than (<) operator in all Unix shells opens the
file name given as an argument before it executes the command. In
order for an open() call on a TTY device to complete, the RS232
hardware signals must indicate the presence of an active device
connected to the port. In practice, this means that the DTR (data
terminal ready) signal must be asserted before the open call will
return.
OK, this sounds right, but how do you explain that I can get at the tty
settings with

stty -a < /dev/ttySx

for both of my serial ports, with absolutely nothing connected to them?

;-)

Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help