From: Johnny Billquist <bqt@softjar.se>
To: Bill Gunshannon <billg999@cs.uofs.edu>
Subject: Re: flow control on PDP11 MMJ
Date: Thu, 10 Dec 2009 00:36:41 +0100 [thread overview]
Message-ID: <4B203489.7050602@softjar.se> (raw)
In-Reply-To: <7o9lemF3lqqqhU1@mid.individual.net>
Bill Gunshannon wrote:
> In article <hfmevn$54j$1@tempo.update.uu.se>,
> Johnny Billquist <bqt@softjar.se> writes:
>> 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.
>>>>
>>> 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.
>
> How so?
>
> From Wiki (for whatever that is worth!):
> CTS (Clear To Send)
> This is the response signal from the DCE regarding if the terminal
> equipment should be transmitting any data. When this signal is -15V
> the terminal is "permitted" to transmit data. Like the DTR/DSR pins,
> this one can be directly connected to the RTS pin to reduce the number
> of wires needed, but this eliminates the possibility of hardware flow
> control. Some software ignores this pin and the RTS pin, so other flow
> control systems are also used. That will be explained when we get to
> actual software.
>
> Looks like flow control is precisely what RTS/CTS are for. That's the
> way I remembered it, but I don;t have access to my copy of the actual
> standard, which is why I regressed to Wiki. :-)
You need to look at the right wiki, in the right section:
(From Wikipedia, on RS-232)
************************
RTS/CTS handshaking
In older versions of the specification, RS-232's use of the RTS and CTS
lines is asymmetric: The DTE asserts RTS to indicate a desire to
transmit to the DCE, and the DCE asserts CTS in response to grant
permission. This allows for half-duplex modems that disable their
transmitters when not required, and must transmit a synchronization
preamble to the receiver when they are re-enabled. This scheme is also
employed on present-day RS-232 to RS-485 converters, where the RS-232's
RTS signal is used to ask the converter to take control of the RS-485
bus - a concept that doesn't otherwise exist in RS-232. There is no way
for the DTE to indicate that it is unable to accept data from the DCE.
A non-standard symmetric alternative, commonly called "RTS/CTS
handshaking," was developed by various equipment manufacturers: CTS
indicates permission from the DCE for the DTE to send data to the DCE
(and is controlled by the DCE independent of RTS), and RTS indicates
permission from the DTE for the DCE to send data to the DTE. This was
eventually codified in version RS-232-E (actually TIA-232-E by that
time) by defining a new signal, "RTR (Ready to Receive)," which is CCITT
V.24 circuit 133. TIA-232-E and the corresponding international
standards were updated to show that circuit 133, when implemented,
shares the same pin as RTS (Request to Send), and that when 133 is in
use, RTS is assumed by the DCE to be ON at all times.[9]
Thus, with this alternative usage, one can think of RTS asserted (logic
0) meaning that the DTE is indicating it is "ready to receive" from the
DCE, rather than requesting permission from the DCE to send characters
to the DCE.
Note that equipment using this protocol must be prepared to buffer some
extra data, since a transmission may have begun just before the control
line state change.
******************
Note, that DEC equipment don't have RS-232E ports, so you don't have an
RTR signal.
And trying to use RTS/CTS for flow control *is* abusing the standard.
'Nuff said.
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
prev parent reply other threads:[~2009-12-09 23:36 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
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 [this message]
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