From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: e311f70d09,8899c6fa9552ade6 X-Google-Attributes: gide311f70d09,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!news.musoftware.de!wum.musoftware.de!feeder.erje.net!195.197.54.118.MISMATCH!feeder2.news.elisa.fi!newsfeed2.funet.fi!newsfeed1.funet.fi!newsfeeds.funet.fi!uio.no!news.ctrl-c.liu.se!news.Update.UU.SE!not-for-mail Newsgroups: comp.sys.dec,alt.sys.pdp11 Subject: Re: flow control on PDP11 MMJ Message-ID: <4B203489.7050602@softjar.se> From: Johnny Billquist Date: Thu, 10 Dec 2009 00:36:41 +0100 References: <33f78855-4977-4bd9-be13-e339bace5659@m16g2000yqc.googlegroups.com> <4c2eb668-dfb3-4fba-b397-82ab4f62a8ff@u7g2000yqm.googlegroups.com> <7o7ai4F3osjr8U1@mid.individual.net> <286721bb-c158-47e0-a0b9-b11b96cb94cc@33g2000vbe.googlegroups.com> <7o9lemF3lqqqhU1@mid.individual.net Organization: Update Computer Club NNTP-Posting-Host: 77-58-208-83.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Tempo.Update.UU.SE 1260401802 9981 77.58.208.83 (9 Dec 2009 23:36:42 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Wed, 9 Dec 2009 23:36:42 +0000 (UTC) To: Bill Gunshannon User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <7o9lemF3lqqqhU1@mid.individual.net> Xref: g2news1.google.com comp.sys.dec:1364 alt.sys.pdp11:1152 Bill Gunshannon wrote: > In article , > Johnny Billquist 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 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