From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,8899c6fa9552ade6 X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: billg999@cs.uofs.edu (Bill Gunshannon) Newsgroups: comp.sys.dec,alt.sys.pdp11 Subject: Re: flow control on PDP11 MMJ Date: 9 Dec 2009 13:02:14 GMT Organization: Computing Sciences Dept., University of Scranton Sender: bill@server2.cs.uofs.edu Message-ID: <7o9lemF3lqqqhU1@mid.individual.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net Kz0rgdQApAXj3jVbaAI6QgB0GHV/Al58q9GFKXSr9tSBw/lYOb Cancel-Lock: sha1:edsjZpN6VRfMBQgoSGe1oQdVLHU= X-Newsreader: knews 1.0b.1 X-Face: #S"T9jP[OH$fbA-]+!@r#:cHoa=2+R{,NY(E9Mw0/G2D_((6`6R8@JjodwakR~(J?mCY+]yn//;$5;=/Gc'22VrB Xref: g2news1.google.com comp.sys.dec:1359 alt.sys.pdp11:1147 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. :-) > 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. True. Unless the manufaturer violates the standard and uses modem control to implement something that looks like flow control. Droping DTR from the terminal end should log you off the Unix system, which I guess would pretty much throttle the flow of data coming to the terminal :-) so I guess that would be a form of flow control. :-) > > That said, hardware flow control, being an abuse already from the start, Why do you keep saying this? RS232 had hardware flow control defined fromthe 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. > bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include