* tty devices
@ 1999-02-24 5:00 Lawrence Turowski
1999-02-24 5:00 ` Ken Pizzini
0 siblings, 1 reply; 6+ messages in thread
From: Lawrence Turowski @ 1999-02-24 5:00 UTC (permalink / raw)
A project I administer has 2 old DEC 2100's. They interface via the two
tty ports with a custom piece of equipment. One is running Ultrix 4.1,
the other Ultrix 4.5.
/dev/tty00 and /dev/tty01 are the devices for the physical tty ports in
back.
To test the ports to ensure that data is being transferred properly to
the custom piece of equipment, a cable is used to connect one tty port
to
the other. Two xterm's are raised and tipped to the two tty devices,
then
the "~." is typed in the xterm connected to tty01 (does this disconnect
the xterm from the device but leave the tty active?) and an echo command
is redirected to tty01. The output appears on the other xterm since the
two ports are physically connected in back:
xterm1 xterm2
----------- -----------
# tip tty00 # tip tty01
connected... connected...
hello <return>
hello ~.
hello [EOT]
# echo hello > /dev/tty01
# echo hello > /dev/tty01
# echo hello > /dev/tty01
This works fine in Ultrix 4.1 but with Ultrix 4.5 the result is like
this:
xterm1 xterm2
----------- -----------
# tip tty00 # tip tty01
connected... connected...
ello <return>
ello ~.
ello [EOT]
# echo hello > /dev/tty01
# echo hello > /dev/tty01
# echo hello > /dev/tty01
In this case the first letter is dropped. With other words no letters
are dropped. With different words certain letters are dropped in one
word but not the other. It is not always dropping letters in a
particular position. It is, however, consistent with any particular
word. I've messed with the tty setting via stty, I've copied the the
/etc/ttys, /etc/termcap and other files from Ultrix 4.1. Nothing seems
to work.
I have tried not disconnecting (via ~.) in xterm2 and bringing up a
third xterm and doing the "echo hello > /dev/tty01" from there. All
letters, regarldess of what I echo, are output on xterm1 in this case.
The problem is, because of Y2K issues, both machines must be upgraded to
Ultrix 4.5. Does anyone have any clue about this? Please email me at
lpt@msd.ray.com
thanks,
Larry Turowski
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tty devices
1999-02-24 5:00 tty devices Lawrence Turowski
@ 1999-02-24 5:00 ` Ken Pizzini
1999-02-24 5:00 ` Cal Dunigan
1999-02-25 5:00 ` Lawrence Turowski
0 siblings, 2 replies; 6+ messages in thread
From: Ken Pizzini @ 1999-02-24 5:00 UTC (permalink / raw)
On Wed, 24 Feb 1999 10:27:51 -0500, Lawrence Turowski <lpt@msd.ray.com> wrote:
># tip tty00 # tip tty01
>connected... connected...
>ello <return>
> ello ~.
> ello [EOT]
> # echo hello > /dev/tty01
> # echo hello > /dev/tty01
> # echo hello > /dev/tty01
>
>In this case the first letter is dropped. With other words no letters
>are dropped. With different words certain letters are dropped in one
>word but not the other. It is not always dropping letters in a
>particular position. It is, however, consistent with any particular
>word. I've messed with the tty setting via stty, I've copied the the
>/etc/ttys, /etc/termcap and other files from Ultrix 4.1. Nothing seems
>to work.
>
>I have tried not disconnecting (via ~.) in xterm2 and bringing up a
>third xterm and doing the "echo hello > /dev/tty01" from there. All
>letters, regarldess of what I echo, are output on xterm1 in this case.
I note that the letter "h" has odd parity, whereas the letters
"e", "l", "o", and newline are all even parity.
It looks like Ultrix 4.5 is resetting the stty settings to
enforce even-parity (discard errors) whenever there is no
process holding the tty open.
To verify this, you can try:
# tip tty01
~!sleep 900 >/dev/tty1 &
~.
echo hello >/dev/tty1; echo hello >/dev/tty1; echo hello >/dev/tty1
The "sleep" command above should hold the tty1 device open so that
the stty settings that tip uses on that device are not lost. I
expect that you will see the desired "hello" messages.
HTH,
--Ken Pizzini
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tty devices
1999-02-24 5:00 ` Ken Pizzini
@ 1999-02-24 5:00 ` Cal Dunigan
1999-02-25 5:00 ` Ken Pizzini
1999-02-25 5:00 ` Lawrence Turowski
1 sibling, 1 reply; 6+ messages in thread
From: Cal Dunigan @ 1999-02-24 5:00 UTC (permalink / raw)
On 24 Feb 1999, Ken Pizzini wrote:
> I note that the letter "h" has odd parity, whereas the letters
> "e", "l", "o", and newline are all even parity.
I'm awestruck. I thought _I_ was a geek.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Cal Dunigan cdi@goodnet.com There is something fundamentally
Consulting wrong with a world in which Ken
Modeling Thompson lives in obscurity and
Training Bill Gates is a famous billionaire.
//////////////////////////////////////////////////////////////////////
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tty devices
1999-02-24 5:00 ` Cal Dunigan
@ 1999-02-25 5:00 ` Ken Pizzini
1999-02-25 5:00 ` Cal Dunigan
0 siblings, 1 reply; 6+ messages in thread
From: Ken Pizzini @ 1999-02-25 5:00 UTC (permalink / raw)
On Wed, 24 Feb 1999 20:32:35 -0700, Cal Dunigan <cdi@goodnet.com> wrote:
>On 24 Feb 1999, Ken Pizzini wrote:
>
>> I note that the letter "h" has odd parity, whereas the letters
>> "e", "l", "o", and newline are all even parity.
>
>I'm awestruck. I thought _I_ was a geek.
Hmmm. If you're assuming that I just "knew" this off the top
of my head, I guess I was a little misleading: I intuited that
this was a _likely_ problem, and then did a quick consultation
with /usr/pub/ascii to confirm it. Impressive, perhaps, but
I don't think it quite qualifies as awe-inspiring.
--Ken Pizzini
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tty devices
1999-02-25 5:00 ` Ken Pizzini
@ 1999-02-25 5:00 ` Cal Dunigan
0 siblings, 0 replies; 6+ messages in thread
From: Cal Dunigan @ 1999-02-25 5:00 UTC (permalink / raw)
On 25 Feb 1999, Ken Pizzini wrote:
> On Wed, 24 Feb 1999 20:32:35 -0700, Cal Dunigan <cdi@goodnet.com> wrote:
> >On 24 Feb 1999, Ken Pizzini wrote:
> Hmmm. If you're assuming that I just "knew" this off the top
> of my head, I guess I was a little misleading: I intuited that
> this was a _likely_ problem, and then did a quick consultation
> with /usr/pub/ascii to confirm it. Impressive, perhaps, but
> I don't think it quite qualifies as awe-inspiring.
Oh pooh. I thought you had the binary sequences memorized and
mentally added the ones.
So much for youthful naivete.
--
Cal Dunigan cdi@goodnet.com Cal's Products
835 W. Warner Rd.
Battery Alarm - $19.95 Suite 101-247
Gilbert, AZ 85233
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tty devices
1999-02-24 5:00 ` Ken Pizzini
1999-02-24 5:00 ` Cal Dunigan
@ 1999-02-25 5:00 ` Lawrence Turowski
1 sibling, 0 replies; 6+ messages in thread
From: Lawrence Turowski @ 1999-02-25 5:00 UTC (permalink / raw)
> I note that the letter "h" has odd parity, whereas the letters
> "e", "l", "o", and newline are all even parity.
>
> It looks like Ultrix 4.5 is resetting the stty settings to
> enforce even-parity (discard errors) whenever there is no
> process holding the tty open.
>
> To verify this, you can try:
>
> # tip tty01
> ~!sleep 900 >/dev/tty1 &
> ~.
> echo hello >/dev/tty1; echo hello >/dev/tty1; echo hello >/dev/tty1
>
> The "sleep" command above should hold the tty1 device open so that
> the stty settings that tip uses on that device are not lost. I
> expect that you will see the desired "hello" messages.
>
> HTH,
> --Ken Pizzini
This is essentially the same as as leaving both xterms tipped and
echoing from a third (which I had previously tried and noted that it
worked.) I "~.sleep 900 > /dev/tty01 &"; this escapes to a shell and
prints out something like "sleep: event not found."
Nevertheless, this was a great help. Ultrix 4.1 allows you to set the
tty settying even when no process is holding the tty open. I did not
realize that Ultrix 4.5 would be different, that it would "enforce
even-parity (discard errors) whenever there is no process holding the
tty open," as you supposed.
I should be able to just "tip tty01 &" and then follow the process for
uploading code without a problem or much modification. You've
definitely helped me understand what is going on and saved me a lot of
frustration.
thanks,
Larry T.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-02-25 5:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-24 5:00 tty devices Lawrence Turowski
1999-02-24 5:00 ` Ken Pizzini
1999-02-24 5:00 ` Cal Dunigan
1999-02-25 5:00 ` Ken Pizzini
1999-02-25 5:00 ` Cal Dunigan
1999-02-25 5:00 ` Lawrence Turowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox