Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Johnny Billquist <bqt@softjar.se>
Subject: Re: flow control on PDP11 MMJ
Date: Tue, 08 Dec 2009 22:03:41 +0100	[thread overview]
Message-ID: <hfmevn$54j$1@Tempo.Update.UU.SE> (raw)
In-Reply-To: <286721bb-c158-47e0-a0b9-b11b96cb94cc@33g2000vbe.googlegroups.com>

Tim Radde wrote:
> On Dec 8, 10:44 am, billg...@cs.uofs.edu (Bill Gunshannon) wrote:
>> In article <4c2eb668-dfb3-4fba-b397-82ab4f62a...@u7g2000yqm.googlegroups.com>,
>>         shadoooo <shado...@gmail.com> writes:
>>
>>
>>
>>
>>
>>>> Is this a real PDP-11 or an emulator?  If it's a real PDP-11, 38400
>>>> is pretty fast for the serial port.  It might work much better at
>>>> a lower baud rate, for example at 9600.  The console UARTs on most
>>>> of the PDPs have only about 2 characters of buffering, and no DMA
>>>> to store the data, so the PDP has to respond to an XOFF or drop of
>>>> DSR/CTS or whatever in less than 2 character times.  (The various
>>>> async multiplexers such as the DH11, DHV-11, CXY's, etc. are much
>>>> better, having DMA, deep character silos, and sometimes the flow
>>>> control is implemented in hardware, IIRC, and doesn't rely on an
>>>> interrupt getting processed promptly, but these are never used for
>>>> the console terminal.  But if you have one of these and have Unix
>>>> sufficiently installed that you can log in on one of the ports,
>>>> you would be much better off running Kermit over it, rather than
>>>> the console.)
>>> This is a real PDP11. In fact maybe the speed is too high, but of
>>> course the hardware flow control seems to be not accessible from
>>> 2.11BSD.
>>> In other words, even if I enable rtscts with stty on 2.11BSD, these
>>> lines doesn't do anything. I suspect that this is not the right way.
>>> In fact the rtscts option maybe is not remapped to the dtr/dsr lines
>>> of the MMJ.
>> Just out of curiosity, why would you expect Unix to somehow map
>> CTS/RTS to DTR/DSR they are totally different and well defined
>> functions and do not provide equivalent actions.  One is flow
>> control and the other is modem control.
>>
>> bill
>>
>> --
>> Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
>> billg...@cs.scranton.edu |  and a sheep voting on what's for dinner.
>> University of Scranton   |
>> Scranton, Pennsylvania   |         #include <std.disclaimer.h>  - Hide quoted text -
>>
>> - Show quoted text -
> 
> Just wanted to state I used 38400 when I was trying to load BSD via
> VTServer and my 11/84.  Didn't have any issues
> besides the 32Mb file limitation of VTServer.  When I later tried to
> use Kermit I had to drop that to 9600,  since it
> did not handle anything higher without some minor changes.

My responses seem to not always go that far, so I don't know who, if 
any, will be able to read this.

However: flow control using CTS/RTS is actually abusing the interface as 
well. And DEC never did that. So it's normally XON/XOFF or nothing.

But, since this is using Unix, all bets are off. However, I would not 
expect hardware flow control to even be possible using MMJ, since the 
signals normally used for that are not present.

That said, hardware flow control, being an abuse already from the start, 
have also been observed using DTR/DSR and other combinations. But this 
is all a question of how Unix might be able/want to do it.

"stty tandem" to get xon/xoff flow control on Unix was a new one for me 
(as per the original poster).
Check that 2.11BSD really supports that compatibility option, and that 
it does the "right" thing.
(Why not check and post the output of stty -a here?)

All that being said, there are a chance that even with flow control 
enabled, the system might loose characters on input, just because 
sending an xoff takes a little time, and if we're talking about the 
console port here (which I guess we are), then the hardware FIFO is 
basically non-existant, so unless the system really can keep up with the 
interrupts, you will loose characters.
And Unix is perhaps not the most responsive software. :-)

The best bet on getting it to would would probably be to lower the 
speed. But you probably still want to figure out the flow control issue.

	Johnny

-- 
Johnny Billquist                  || "I'm on a bus
                                   ||  on a psychedelic trip
email: bqt@softjar.se             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


  reply	other threads:[~2009-12-08 21:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-07  9:52 flow control on PDP11 MMJ shadoooo
2009-12-07 18:25 ` Rob Brown
2009-12-08  1:33   ` shadoooo
2009-12-08  4:43     ` John Santos
2009-12-08 15:26       ` shadoooo
2009-12-08 15:44         ` Bill Gunshannon
2009-12-08 17:19           ` Tim Radde
2009-12-08 21:03             ` Johnny Billquist [this message]
2009-12-09 13:02               ` Bill Gunshannon
2009-12-09 17:04                 ` Christian Corti
2009-12-09 17:33                   ` Bill Gunshannon
2009-12-10 10:18                     ` Christian Corti
2009-12-09 17:54                 ` glen herrmannsfeldt
2009-12-09 20:01                   ` shadoooo
2009-12-09 23:36                 ` Johnny Billquist
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox