* Re: Need faster async board...dlv11-J? Something else?
@ 1993-01-12 4:15 Jerry C. Hudgins
0 siblings, 0 replies; 21+ messages in thread
From: Jerry C. Hudgins @ 1993-01-12 4:15 UTC (permalink / raw)
In article <1993Jan11.160754.1011@dragon.com> cts@dragon.com writes:
> I have various MicroVAX II systems with Telebit worldblazers attached.
> Currently, these are using DHV11 interfaces, which top out at 19.2 kb.
> It appears this is the bottleneck; what options exist for getting faster
> speeds on an MVII, if any?
>
> The top speed of the DHV/DHQ/DZQ appears to be 19.2; the only board
> that's 38.4 capable for the Qbus is the CXY08, and it looks like this
> board isn't supported on the MVII.
>
> Any suggestions? I've considered getting a DLV11-J, and adapting the
> driver from the decus tape; however, I'd rather have a DMA capable
> device....
>
> Charles Smith
> cts@dragon.com
>
There have been some Q-bus multiplexors (from Emulex and possibly others)
that support 38.4K when the OS sets the speed to some little-used value
like 2000 baud. Bear in mind, though, the the VMS terminal driver doesn't
have terrific throughput, and you probably can't support streaming 38.4 K
on an MVII.
The fact that the VMS driver doesn't support RTS/CTS handshaking is another
drawback to high-speed transfers. The WorldBlazer will do XON/XOFF, but
somewhat less efficiently.
I see (looking back) that I'm assuming that you're using VMS. If you're
using UNIX, your mileage may vary.
--
----------------------------------------------------------------------------
Jerry C. Hudgins Internet: jerry%marin.uucp@seq.uncwil.edu
125 Cherokee Trail UUCP : uunet!marin!jerry
Wilmington, NC 28409-3407 (USA) Voice : (919) 392-2358
^ permalink raw reply [flat|nested] 21+ messages in thread* Need faster async board...dlv11-J? Something else?
@ 1993-01-11 21:07 cts
1993-01-12 5:13 ` gezelter
` (3 more replies)
0 siblings, 4 replies; 21+ messages in thread
From: cts @ 1993-01-11 21:07 UTC (permalink / raw)
I have various MicroVAX II systems with Telebit worldblazers attached.
Currently, these are using DHV11 interfaces, which top out at 19.2 kb.
It appears this is the bottleneck; what options exist for getting faster
speeds on an MVII, if any?
The top speed of the DHV/DHQ/DZQ appears to be 19.2; the only board
that's 38.4 capable for the Qbus is the CXY08, and it looks like this
board isn't supported on the MVII.
Any suggestions? I've considered getting a DLV11-J, and adapting the
driver from the decus tape; however, I'd rather have a DMA capable
device....
Charles Smith
cts@dragon.com
^ permalink raw reply [flat|nested] 21+ messages in thread* Re: Need faster async board...dlv11-J? Something else? 1993-01-11 21:07 cts @ 1993-01-12 5:13 ` gezelter 1993-01-12 6:27 ` Terry Kennedy, Operations Mgr. ` (2 subsequent siblings) 3 siblings, 0 replies; 21+ messages in thread From: gezelter @ 1993-01-12 5:13 UTC (permalink / raw) In article <1993Jan11.160754.1011@dragon.com>, cts@dragon.com writes: > I have various MicroVAX II systems with Telebit worldblazers attached. > Currently, these are using DHV11 interfaces, which top out at 19.2 kb. > It appears this is the bottleneck; what options exist for getting faster > speeds on an MVII, if any? > > The top speed of the DHV/DHQ/DZQ appears to be 19.2; the only board > that's 38.4 capable for the Qbus is the CXY08, and it looks like this > board isn't supported on the MVII. > > Any suggestions? I've considered getting a DLV11-J, and adapting the > driver from the decus tape; however, I'd rather have a DMA capable > device.... > > Charles Smith > cts@dragon.com > -- Charles, As far as the DLV-11J, you will not have much luck. The DLV-11J is, for all intents, unbuffered (it only buffers two characters if I remember correctly) additionally, you will get an interrupt for every character. This will have a hard time at 9.6-19.2 kb, much less at higher speeds. I hope that the above is useful. If I have been unclear, please feel free to contact me via email or phone. - Bob +--------------------------------------------------------------------------+ | Robert "Bob" Gezelter E-Mail: gezelter@rlgsc.com | | Robert Gezelter Software Consultant Voice: +1 718 463 1079 | | 35-20 167th Street, Suite 215 Fax: (on Request) | | Flushing, New York 11358-1731 | | United States of America | +--------------------------------------------------------------------------+ ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-11 21:07 cts 1993-01-12 5:13 ` gezelter @ 1993-01-12 6:27 ` Terry Kennedy, Operations Mgr. [not found] ` <1993Jan12.074046.1138@cmkrnl.com> 1993-01-12 17:53 ` Jeff Watts 1993-01-19 7:23 ` Barton F. Bruce 3 siblings, 1 reply; 21+ messages in thread From: Terry Kennedy, Operations Mgr. @ 1993-01-12 6:27 UTC (permalink / raw) In article <1993Jan11.160754.1011@dragon.com>, cts@dragon.com writes: > I have various MicroVAX II systems with Telebit worldblazers attached. > Currently, these are using DHV11 interfaces, which top out at 19.2 kb. > It appears this is the bottleneck; what options exist for getting faster > speeds on an MVII, if any? One of my UUCP leaf sites has an MVII with a DHV11. That system is pretty busy, yet they average 1350+ CPS using DECUS UUCP. > The top speed of the DHV/DHQ/DZQ appears to be 19.2; the only board > that's 38.4 capable for the Qbus is the CXY08, and it looks like this > board isn't supported on the MVII. The CXY08 is an S-box version of the DHQ11. Functionality should be iden- tical. > Any suggestions? I've considered getting a DLV11-J, and adapting the > driver from the decus tape; however, I'd rather have a DMA capable > device.... Bleh! DL11's have no silos and are interrupt-per-character. If you're going to go through the trouble of doing a driver, either get a KXT11/KXJ11 and do it on a coprocessor or buy a complete kit from Simpact. If you want a more "stock" solution, get an Ethernet board (if you don't already have one) and a DECserver 700. Terry Kennedy Operations Manager, Academic Computing terry@spcvxa.bitnet St. Peter's College, Jersey City, NJ USA terry@spcvxa.spc.edu +1 201 915 9381 ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <1993Jan12.074046.1138@cmkrnl.com>]
* Re: Need faster async board...dlv11-J? Something else? [not found] ` <1993Jan12.074046.1138@cmkrnl.com> @ 1993-01-13 6:59 ` Terry Kennedy, Operations Mgr. 1993-01-13 17:42 ` jeh 0 siblings, 1 reply; 21+ messages in thread From: Terry Kennedy, Operations Mgr. @ 1993-01-13 6:59 UTC (permalink / raw) In article <1993Jan12.074046.1138@cmkrnl.com>, jeh@cmkrnl.com writes: > Both the Simpact cards and the KXx11 have this problem that you have to do > a complete terminal port driver for them. You wouldn't have to do this to run > uucp for outgoing calls only, but for incoming calls your driver has to look > enough like a standard terminal port driver to let the calling system log in > to VMS through it. Right. Note that I said "If you're going to go through the trouble of doing a driver" 8-). > My first impulse is to get a spare DHV11 and hack it up, doubling the baud > clock that's going to one of the dual UART chips. Looks like this can be done > just by adding another crystal. If that works, try doubling it again. Then > setting one of those two ports to 19200 would get an actual speed of 76800. > Of course I have no idea whether the UARTs can handle a baud clock that fast. I'd advise against it on the DHV. The DHV is "run" by a pair of 8031 micro- controllers (like in an LK201 - you get the idea). They will wedge up and require a power cycle to clear if they lose an interrupt internally (note that this isn't VMS interrupts, but the 8031 being interrupted by the UARTs). You would be a lot better off starting with a DHV clone with more horsepower or a DHQ11. Terry Kennedy Operations Manager, Academic Computing terry@spcvxa.bitnet St. Peter's College, Jersey City, NJ USA terry@spcvxa.spc.edu +1 201 915 9381 ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-13 6:59 ` Terry Kennedy, Operations Mgr. @ 1993-01-13 17:42 ` jeh [not found] ` <565014@zl2tnm.gen.nz> 0 siblings, 1 reply; 21+ messages in thread From: jeh @ 1993-01-13 17:42 UTC (permalink / raw) In article <1993Jan13.015901.4885@spcvxb.spc.edu>, terry@spcvxb.spc.edu (Terry Kennedy, Operations Mgr.) writes: > In article <1993Jan12.074046.1138@cmkrnl.com>, jeh@cmkrnl.com writes: >> My first impulse is to get a spare DHV11 and hack it up, doubling the baud >> clock that's going to one of the dual UART chips. Looks like this can be done >> just by adding another crystal. If that works, try doubling it again. Then >> setting one of those two ports to 19200 would get an actual speed of 76800. >> Of course I have no idea whether the UARTs can handle a baud clock that fast. > > I'd advise against it on the DHV. The DHV is "run" by a pair of 8031 micro- > controllers (like in an LK201 - you get the idea). They will wedge up and > require a power cycle to clear if they lose an interrupt internally (note that > this isn't VMS interrupts, but the 8031 being interrupted by the UARTs). You > would be a lot better off starting with a DHV clone with more horsepower or a > DHQ11. Of course then I'll be dealing with different UART chips and I just went and looked up the DHV's ! The UART chips could handle the increased speed but indeed the DHV can't. In fact, according to the DHV manual, you can program it for 38.4 kbps, and it can receive at that rate, but the DMA transmit logic on the board can't go that fast -- if you program it for 38400 individual characters will be emitted at that speed but there will be gaps in between for a net throughput of 2000 char/sec. So hacking the DHV is indeed pointless. (Not maybe, but definitely!) The idea might work on other cards, though. I think I'll order the DHQ technical manual and see what it has to say. --- Jamie Hanrahan, Kernel Mode Systems, San Diego CA Internet: jeh@cmkrnl.com, hanrahan@eisner.decus.org, or jeh@crash.cts.com Uucp: ...{crash,eisner,uunet}!cmkrnl!jeh ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <565014@zl2tnm.gen.nz>]
* Re: Need faster async board...dlv11-J? Something else? [not found] ` <565014@zl2tnm.gen.nz> @ 1993-01-16 7:26 ` Don Stokes 1993-01-16 9:47 ` jeh 1 sibling, 0 replies; 21+ messages in thread From: Don Stokes @ 1993-01-16 7:26 UTC (permalink / raw) I wrote: > Anyway, I might have a go at fiddling the driver to support 38400 (if I > can find a terminal that will go that fast!) and see how things get on. ... and here it is: $ PATCH YFDRIVER ! 16/1/92/dcs ! ! THIS IS A PATCH FOR V5.3-1 SYSTEMS ONLY! See below for details on how to ! modify it for other versions. ! ! This patches YFDRIVER to allow the 38400 bits per second speed to be set ! on a DHV11. REMEMBER TO TAKE A COPY OF THE DRIVER BEFORE RUNNING IT. ! ! The DHV11's ports are split into pairs of ports 0 & 1, 2 & 3 and so-on. ! The speeds supported by the DHV11 are split into two groups (A & B), with ! most common speeds supported in both groups. However, each port in a pair ! must both be supported in the same group. ! ! All the speeds supported by the unpatched YFDRIVER are in group B, so this ! problem doesn't arise. However, 38400 is a group A speed only, and therefore ! the other port in a pair must be set to a speed that is supported in group ! A. If you set a port to 38400 and the other port is in a group-B-only ! speed, it will be changed to a group A speed (or something odd). ! ! The group B speeds not supported in group A are: ! ! Speed Corresponding group A speed ! 75 50 ! 150 200 * ! 1800 7200 ! 2000 1050 * ! 19200 38400 ! ! * These speeds are not defined group A speeds, and can only be selected ! by making a group B to group A switch via the other port in the pair. ! ! The value of 1DD (hex) for YF$VMS_SPEEDS is correct for VMS V5.3-1. You may ! need to adjust this value for other versions of VMS. The tables look like: ! ! 0DFF0BFF 0A090807 06050403 0201FFFF YF$VMS_SPEEDS ! 0F000D0B 0A090807 06050403 0200FF0E YF$VMS_SPEEDS+10 ! 00000010 YF$VMS_SPEEDS+20 ! ! prior to patching, which should assist in finding the correct value for ! YF$VMS_SPEEDS. ! ! Disclaimer: you broke your system? Silly you. 8-) ! define YF$VMS_SPEEDS=1DD define YF$DHU_SPEEDS=YF$VMS_SPEEDS+12 replace/byte YF$VMS_SPEEDS+11 0FF exit 0F exit replace/byte YF$DHU_SPEEDS+0F 00 exit 11 exit update exit -- Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home) Network Manager, Computing Services Centre don@vuw.ac.nz (work) Victoria University of Wellington, New Zealand +64-4-495-5052 ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? [not found] ` <565014@zl2tnm.gen.nz> 1993-01-16 7:26 ` Don Stokes @ 1993-01-16 9:47 ` jeh 1993-01-17 12:05 ` Don Stokes 1 sibling, 1 reply; 21+ messages in thread From: jeh @ 1993-01-16 9:47 UTC (permalink / raw) In article <565014@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: > jeh@cmkrnl.com writes: >> In article <1993Jan13.015901.4885@spcvxb.spc.edu>, terry@spcvxb.spc.edu (Terry Kennedy, Operations Mgr.) writes: >> > In article <1993Jan12.074046.1138@cmkrnl.com>, jeh@cmkrnl.com writes: >> > I'd advise against it on the DHV. The DHV is "run" by a pair of 8031 micro- >> > controllers (like in an LK201 - you get the idea). They will wedge up and > > 8051s according to the DHV11 tech manual. > >> The UART chips could handle the increased speed but indeed the DHV can't. In >> fact, according to the DHV manual, you can program it for 38.4 kbps, and it can >> receive at that rate, but the DMA transmit logic on the board can't go that >> fast -- if you program it for 38400 individual characters will be emitted at >> that speed but there will be gaps in between for a net throughput of 2000 >> char/sec. > > By a funny coincidence, I was taking a break from researching this exact > question for someone else when I started reading this thread.... > > Some general info on the DHV11: > > 4xSC2681 DUARTs (serving two ports each) > 2x8051 microprocessors > 256 entry silo (for received chars, dataset status changes and diags) > [...] Gee, Don, sounds like you're reading from the exact same DHV11 manual that I was. > [...] > In practice, this means that 19200 is as fast as the damn thing will go > for output (it'll send at 38400, but there will be gaps between > characters). I believe I said that. In fact, I know I did: > > The UART chips could handle the increased speed but indeed the DHV can't. In > > fact, according to the DHV manual, you can program it for 38.4 kbps, and it can > > receive at that rate, but the DMA transmit logic on the board can't go that > > fast -- if you program it for 38400 individual characters will be emitted at > > that speed but there will be gaps in between for a net throughput of 2000 > > char/sec. > > > > So hacking the DHV is indeed pointless. (Not maybe, but definitely!) Don again: > It'll receive at 38400 OK, but you'd better have those QIOs > ready to take the data real fast.... This is true and it is a major bottleneck with uucp. (lest we lose sight of the fact, I should mention that the original question had to do with running a port fast enough to keep a Telebit WorldBlazer busy. Telebit claims a basic 'data pump' throughput of 2800 char/sec, and it uses V.42bis compression, which can hit up to about 4:1! This means that the modem will can move at least bursts of data at over 100000 bits/sec! Which is why they equipped it with a serial port that'll run at up to 115.2Kbits/sec.) The problem when reading data from the uucp data link is that you have to queue *two* read requests. First you ask for six characters -- the packet header. Then you look at the packet header and see if it's the header for a data packet. If it is, you then do another $qio read to get the data segment of the packet -- using the data length indicated in the header. If not, you queue up another six-byte read to get the header of the next packet. (Control packets consist of just the header.) This means that, without doing some fairly advanced cheating, you can't possibly have multiple reads queued up at once. I do try a read-ahead optimization: When I read the data segment, I use the $QIO sensemode to get the number of characters in the typeahead buffer. If that's at least equal to the data segment size plus the six bytes for the *next* packet header, I then do a $qio read of that many bytes. However with a regular PEP modem at 1400 char/sec throughput, this doesn't "hit" very often. So we end up doing *three* QIOs to read a packet (two to read the packet and one to send the ACK for it). This is even worse than it sounds. According to some of the terminal driver experts in VMS engineering, if you have a read (with no echo, no uppercasing, no terminator character, etc., the simplest type of read, which is what uucp does), queued when data comes in, it gets put directly in the system buffer associated with the read request. But if not -- which is the case with uucp -- the data gets shuffled through the typeahead buffer first. So we are making the terminal class driver do extra work. At present, on even a MicroVAX II-class CPU, we can keep up pretty well with a PEP modem (1400 char/sec), but these new WorldBlazers are going to need better code. What do I mean by "advanced cheating"? I could go on for several pages -- I've looked at a lot of possibilities. There are several ways that we could do this a little better at GREAT cost in code complexity. For starters, we could figure out when we were *probably* going to receive a stream of data segments one after the other, and fetch them with reads with one-second timeouts. Then at the end of the stream of data packets we'd just have a one-second (at most) delay before the driver timed out and gave us the six bytes for the control packet. However, adding this to the uucp protocol engine would NOT be easy, especially when error recovery is allowed for. A much better approach is to do a terminal class driver with a better interface for this sort of work, and switch to it (much as NODRIVER is switched in for dynamic async DDCMP) when uucp grabs the port. Which I'm working on. > Speed settings are a bit funny. The four DUARTs have two groups of > speeds. The speeds supported are: > > 150 B > 300 A & B > 600 A & B > 1200 A & B > [...] > Looking at an old version of YFDRIVER (DHV/DHU port driver)... the only > speeds it will set are the group B ones [which excludes 38400]. To enable > 38400, you'd have to hack the driver. [...] > If you set a port from a group A speed to a group B speed (NB: the speed > values are a four bit value; the group is not set explicitly) and the > other port in the pair is set to a speed not supported in the new group, > it will also change speed as follows: > > Original speed New speed > 50 75 > 75 50 > 150 200 * > 1800 7200 > 2000 1050 * > 7200 1800 > 19200 38400 > 38400 19200 > > * ???? That's what the book says. > > Anyway, I might have a go at fiddling the driver to support 38400 (if I > can find a terminal that will go that fast!) and see how things get on. > > -- > Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home) > Network Manager, Computing Services Centre don@vuw.ac.nz (work) > Victoria University of Wellington, New Zealand +64-4-495-5052 I really don't see the point. Even if you do this the actual throughput for writes won't exceed 19.2kbps. This is (according to the manual) a limitation of the on-board DMA logic, so nothing you do to the UART chips will get around this. You certainly can't test read throughput to 38,400 bps unless you are planning to type VERY damn fast. --- Jamie Hanrahan, Kernel Mode Systems, San Diego CA drivers, internals, networks, applications, and training for VMS and Windows NT uucp 'g' protocol guru and release coordinator, VMSnet (DECUS uucp) W.G., and Chair, Programming and Internals Working Group, U.S. DECUS VMS Systems SIG Internet: jeh@cmkrnl.com, hanrahan@eisner.decus.org, or jeh@crash.cts.com Uucp: ...{crash,eisner,uunet}!cmkrnl!jeh ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-16 9:47 ` jeh @ 1993-01-17 12:05 ` Don Stokes 1993-01-20 19:32 ` jeh 0 siblings, 1 reply; 21+ messages in thread From: Don Stokes @ 1993-01-17 12:05 UTC (permalink / raw) jeh@cmkrnl.com writes: > In article <565014@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: > > Anyway, I might have a go at fiddling the driver to support 38400 (if I > > can find a terminal that will go that fast!) and see how things get on. > I really don't see the point. Even if you do this the actual throughput for > writes won't exceed 19.2kbps. This is (according to the manual) a limitation > of the on-board DMA logic, so nothing you do to the UART chips will get around > this. You certainly can't test read throughput to 38,400 bps unless you are > planning to type VERY damn fast. Don't knock it. I'm having fun. 8-) Seriously, you can't _read_ that fast. Most terminals don't go that fast. People who want 38400 bps don't want it for terminal traffic. The nature of non-terminal traffic is that people tend to want to receive more than they send. It's called "greed". So, we don't care so much if we can't really transmit at 38400, but it'd be Real Nice if we could receive at that speed. > Gee, Don, sounds like you're reading from the exact same DHV11 manual that > I was. Funny, that. DHV11 Techical Manual, p/n EK-DHV11-TM-001. (c) 1983. > I believe I said that. In fact, I know I did: I lifted all that stuff from some email I was sending to someone on that very subject. I didn't feel like repeating myself.... > Don again: > > It'll receive at 38400 OK, but you'd better have those QIOs > > ready to take the data real fast.... > This is true and it is a major bottleneck with uucp. [discussion about uucp & why really fast is hard deleted] The discussion I was having on the subject of DHV11 speed moved onto the question of flow control for this nice fast interface. You may be interested (or not 8-)... Again, you'll see stuff that you've already said, but it's 01:00 and I really can't be bothered editing it out.... NB: Clive has a VAXstation II as do I; although not explicitly stated the discussion centres around getting the maximum out of a pair of V32bis/V42bis modems on a SLIP link. Faster machines will have less problems. So will doing it properly and using a router.... Quick warning to neophytes: Hacks described below have not been tested. They're not even complete. It's your foot and your gun. From: TOYVAX::DON "Don Stokes" 18-JAN-1993 00:27:24.43 To: UUCP%"Clive.Nicolson@bbs.actrix.gen.nz" CC: DON Subj: Re: DHV11 > I applied your patch to YFDriver.EXE and it works ok at 38400 (or as >well as one might expect). For VMS 5.5 $1DD is $1E9. Have you tried hitting the thing hard with incoming characters? >PS:now how about CTS/RTS flow control in the driver.!! CTS control is there already, implemented in TTDRIVER rather than YFDRIVER. The port driver (YF) just massages the "something has changed" message from the board into a bitmask that the class driver (TT) can deal with, and loss of CTS is treated as "STOP!". Note that CTS, DSR & DCD are only sampled once every 10ms. That's 38 characters worth at 38400, plus the interrupt latency. RTS however isn't. DEC have taken the RS232 spec as gospel, which is designed around using RTS/CTS for half duplex operation. As such, you raise RTS when you're ready to send (and wait for CTS to come up), and drop it when you're ready to receive. This puts things into something of a dilemma for full-duplex, and there isn't any standardisation. Some folk avoid the RTS/CTS issue and use DSR, which isn't entirely correct either. Others go and find an unused pin (pin 11 is popular) and use that, relying on you to go and connect it to something that will do the right thing with that signal. And of course there are those who _raise_ RTS to say "I'm ready to receive", rather than "I'm ready to transmit", and _drop_ RTS to say "Stop transmitting" rather than "I've finished now, you can start." DEC have basically decided in their infinite (huh!) wisdom that the closest thing to the spec is to hold RTS high all the time the line is active (ie carrier is present and the line is allocated). CTS is a non-issue, since its functionality (ie "you can/can't transmit now") doesn't change between full & half duplex, and is implemented. Incidentally, the DHV11 manual states that loss of CTS should be considered an error and the line should be hung up. Fortunately, TTDRIVER doesn't do that.... As to changing YFDRIVER to meet the current de-facto standard..... There are XON/XOFF routines in the port driver which are called by the class driver. If HOSTSYNC is enabled, XON/XOFF flow control is done by calling YF$XON with a DC1 character in R3 and YF$XOFF with a DC3 character in R3. If HOSTSYNC is disabled, YF$XOFF will be called with a BEL. I can't find any evidence of YF$XON being called in this case. The 5.3-1 YF$XOFF and YF$XON routines go like this (cleaned up from SDA output): $UCBDEF $CRBDEF $VECDEF DHUCSR = 0 DHUCSR$M_RCVINT = ^x40 DHUCSR$M_SNDINT = ^x4000 DHUCSR$C_BASE = DHUCSR$M_RCVINT!DHUCSR$M_SNDINT DHULCT = ^x8 DHULCT$M_SNDOFF = ^x20 YF$XON: ; R3 = XON character, R5 = UCB address MOVQ R0,-(SP) ; Save regs BICW2 #TTY$M_TANK_PREEMPT,UCB$W_TT_HOLD(R5) ; Clear XOFF state MOVL UCB$L_CCB(R5),R0 MOVL @CRB$L_INTD+VEC$L_IDB(R0),R0 ; Get CSR address in R0 BISW3 #DHUCSR$C_BASE,UCB$W_UNIT(R5),DHUCSR(R0) ; Select unit on DHV CMPB R3,#17 ; XON/DC1? BNEQ YF$PREEMPT ; No: stuff it in data stream BITW #DHULCT$M_SNDOFF,DHULCT(R0) ; Auto XOFFed? BEQL YF$PREEMPT ; No: stuff it in data stream BICW2 #DHULCT$M_SNDOFF,DHULCT(R0) ; Clear auto XOFF bit MOVQ (SP)+,R0 ; Restore regs RSB ; Done YF$XOFF: ; R3 = XOFF character, R5 = UCB address MOVQ R0, -(SP) ; Save regs MOVL UCB$L_CCB(R5),R0 MOVL @CRB$L_INTD+VEC$L_IDB(R0),R0 ; Get CSR address in R0 BISW3 #DHUCSR$C_BASE,UCB$W_UNIT(R5),DHUCSR(R0) ; Select unit on DHV CMPB R3,#19 ; Is XOFF char DC3? BNEQ YF$PREEMPT ; No, stuff it in output stream BISW2 #DHULCT$M_SNDOFF, DHULCT(R0) ; Force XOFF MOVQ (SP)+,R0 ; Restore regs RSB ; Done YF$PREEMPT: [stuff to shove R3 in output buffer, cancel any other XOFFs already there etc] The SNDOFF (aka FORCE.XOFF) bit sends an XOFF and puts the DVH11 port into a mode where every alternate character received is automatically replied to with an XOFF. Clearing the bit turns off that mode and sends an XON. Note that the board itself will do XOFF if the silo fills to two thirds and XON again when it hits half full. To drop and raise RTS would require that you execute: DHULCT$M_RTS=^x1000 BICW2 #DHULCT$M_RTS, DHULCT(R0) ; Drop RTS and BISW2 #DHULCT$M_RTS, DHULCT(R0) ; Raise RTS Note that these routines are pointed to via the port/class driver interface. Given a UCB address, the following finds the routines: ; R5 = UCB MOVL UCB$L_TT_PORT(R5), R0 MOVL PORT_XON, R0 ; R0 points to address of YF$XON MOVL PORT_XOFF, R0 ; R0 points to address of YF$XOFF The "best" way to add hardware flow control would be to write a couple of routines that intercepted the port driver's routines, checked if they needed to do hardware flow control; if not just passed control back to the original routines, otherwise did the flow control by tweaking the hardware. You could probably find a spare bit in the UCB or somewhere to store whether hardware flow control was needed. You should also be careful to do the stuff prior to the actual "do flow control" stuff, like clearing the XOFF state in UCB$L_STS. I'm sure I don't have to tell you why this has to go in the nonpaged pool.... Something like: $VECDEF $CRBDEF $UCBDEF $TTDEF DHUCSR = 0 DHUCSR$M_RCVINT = ^x40 DHUCSR$M_SNDINT = ^x4000 DHUCSR$C_BASE = DHUCSR$M_RCVINT!DHUCSR$M_SNDINT DHULCT = ^x8 DHULCT$M_RTS = ^x1000 TTY_M_HWFLOW = TT$M_MODEM!TT$M_HOSTSYNC ; Use SET TER/MODEM as our flag CODE: VEC_YF$XON: .BLKL ; Contains vector to real YF$XON VEC_YF$XOFF: .BLKL ; Contains vector to real YF$XOFF MY_YF$XON: BITL #TTY_M_HWFLOW, UCB$L_DEVDEPEND(R5) BNEQ 10$ ; Hardware flow control? JMP @VEC_YF$XON ; N: Normal service please 10$: PUSHL R0 ; Save R0 MOVL UCB$L_CCB(R5),R0 MOVL @CRB$L_INTD+VEC$L_IDB(R0),R0 ; Get CSR address in R0 BISW3 #DHUCSR$C_BASE,UCB$W_UNIT(R5),DHUCSR(R0) ; Select unit on DHV BISW2 #DHULCT$M_RTS, DHULCT(R0) ; Raise RTS POPL R0 ; Restore R0 RET MY_YF$XOFF: BITL #TTY_M_HWFLOW, UCB$L_DEVDEPEND(R5) BNEQ 10$ ; Hardware flow control? JMP @VEC_YF$XOFF ; N: Normal service please 10$: PUSHL R0 ; Save R0 MOVL UCB$L_CCB(R5),R0 MOVL @CRB$L_INTD+VEC$L_IDB(R0),R0 ; Get CSR address in R0 BISW3 #DHUCSR$C_BASE,UCB$W_UNIT(R5),DHUCSR(R0) ; Select unit on DHV BICW2 #DHULCT$M_RTS, DHULCT(R0) ; Drop RTS POPL R0 ; Restore R0 RET CODE_LEN = .-CODE You'd need to call EXE$ALONONPAGED to get some pool and copy the above into it. Then find the address of a UCB for one of the TX (say TXA0:) -- you need to call IOC$SEARCHDEV with the I/O database locked (you also have to make sure you get the _physical_ UCB, not the UCB for a VTA port!). With the UCB in R5 (and the I/O database still locked): MOVL UCB$L_TT_PORT(R5), R0 MOVL PORT_XON(R0), VEC_YF$XON MOVAB MY_XON, PORT_XON(R) MOVL PORT_XOFF(R0), VEC_YF$XOFF MOVAB MY_XOFF, PORT_XOFF(R) Unlock the I/O database and you're away. Use SET TERM/MODEM/HOSTSYNC to enable HW flow control. This doesn't address the issue of flow control when the silo fills. With HOSTSYNC enabled, auto XON/XOFF will also be enabled, so you'll need to keep the silo empty. This probably isn't too much of a problem (see below). Note that I haven't tested any of this. I don't have the need. >Also noticed your post in the VMS news group about faster serial >boards, that thread started about same time I mentioned problem to you. >The real problem is that the DHU hardware doesnt have a big enough >silo to handle 38400 on input for any period of time. 256 entries is about as big as DEC silos get. (And it's 256 _words_, not bytes, so that you can tell data set changes from data, which port they came from etc.) The MicroVAX II will probably be a bigger hindrance. Overall, the size of the silo doesn't matter a lot. If the CPU isn't fast enough to suck the characters out of the device faster than they come in, you're going to lose eventually no matter how big a silo you put on. Upping the size of the silo can only delay the inevitable. If you can process fast enough, the only other variable is how quickly you can get other tasks out of the way and get to the device. With 256 characters at 38400bps, you've got about 67 ms to service the interrupt and start emptying the silo, or about 50ms if you want to get in ahead of the auto-XOFF. By comparison, the single character buffer on the console port works OK at 2400bps as long as nothing else is happening (maybe the odd lost character), ie interrupts are being fielded at the data rate of 240 cps, or one every 4 ms. 256 entries is heaps. The main thing is to make sure you have a QIO outstanding at all times so that characters are written into your buffer rather than into the typeahead, thus saving a copy from the typeahead to your buffer at fork IPL. I'd do this by using two 4-5k buffers with one second timeouts, so the buffers never fill before the next IO is Qed. Then just make damn sure you can process what's coming fast enough! You don't want to be doing lots of little QIOs, because setting 'em up is expensive. If you still can't hack the pace, it may be time to start thinking about alternatives, such as terminal servers or routers. The biggest impediment to using 38400 is the processing speed of the uVAX II itself, not the DHV11. Cheers. -- Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home) Network Manager, Computing Services Centre don@vuw.ac.nz (work) Victoria University of Wellington, New Zealand +64-4-495-5052 ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-17 12:05 ` Don Stokes @ 1993-01-20 19:32 ` jeh 1993-01-21 10:58 ` Don Stokes 0 siblings, 1 reply; 21+ messages in thread From: jeh @ 1993-01-20 19:32 UTC (permalink / raw) In article <152016@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: > jeh@cmkrnl.com writes: >> In article <565014@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: >> > Anyway, I might have a go at fiddling the driver to support 38400 (if I >> > can find a terminal that will go that fast!) and see how things get on. > >> I really don't see the point. Even if you do this the actual throughput for >> writes won't exceed 19.2kbps. This is (according to the manual) a limitation >> of the on-board DMA logic, so nothing you do to the UART chips will get around >> this. You certainly can't test read throughput to 38,400 bps unless you are >> planning to type VERY damn fast. > > Don't knock it. I'm having fun. 8-) Ah, now I understand! :-) (These modern chip technologies have their drawbacks. In the good old days I worked on an HP machine that used a separate 7x8" card for *each* serial port... [instruction set looked a lot like alpha's, too!] and when we wanted it to go faster than HP provided for, why we just added a wire to pick off the baud clock a few stages earlier in the divider chain. I just bought a two-serial-port card for a PC... it has *one* chip on it. Now, I ask you, how much fun can that be? :-) >> Gee, Don, sounds like you're reading from the exact same DHV11 manual that >> I was. > > Funny, that. DHV11 Techical Manual, p/n EK-DHV11-TM-001. (c) 1983. It's worth noting that this formula for order number applies to LOTS of DEC hardware tech manuals. Whether or not the manual is actually orderable and contains useful information is, of course, another question. (The later the printing date, the more "content-free" the manual, it seems.) > Quick warning to neophytes: Hacks described below [for adding RTS flow > control] have not been tested. > They're not even complete. It's your foot and your gun. Good stuff! I've been mumbling about doing something along these lines... I'm going to see if I can complete it and put a nice wrapper around it. It's a shame that similar things can't be done to add RTR/CTS flow control to LAT ports. (Like the DHV it already honors CTS, even when it is set to "no flow control" or "xon/xoff flow control", but pin 4 just stays true all the time.) Unfortunately the LAT terminal port driver apparently has no way to request modem control signal state changes. > The main thing is to make sure you have a QIO outstanding at all times so > that characters are written into your buffer rather than into the > typeahead, thus saving a copy from the typeahead to your buffer at fork > IPL. I'd do this by using two 4-5k buffers with one second timeouts, so > the buffers never fill before the next IO is Qed. Then just make damn > sure you can process what's coming fast enough! You don't want to be > doing lots of little QIOs, because setting 'em up is expensive. > > Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home) > Network Manager, Computing Services Centre don@vuw.ac.nz (work) > Victoria University of Wellington, New Zealand +64-4-495-5052 Unfortunately with uucp we can't wait a second to read a packet. Or even three packets. If we're dealing with a Telebit spoofed connection we have to send at least one ACK every 210 bytes. At 38.4k that's about 55 milli- seconds! --- Jamie Hanrahan, Kernel Mode Systems, San Diego CA drivers, internals, networks, applications, and training for VMS and Windows NT uucp 'g' protocol guru and release coordinator, VMSnet (DECUS uucp) W.G., and Chair, Programming and Internals Working Group, U.S. DECUS VMS Systems SIG Internet: jeh@cmkrnl.com, or hanrahan@eisner.decus.org Uucp: uunet!cmkrnl!jeh ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-20 19:32 ` jeh @ 1993-01-21 10:58 ` Don Stokes 1993-01-21 11:47 ` Don Stokes 1993-01-22 23:18 ` jeh 0 siblings, 2 replies; 21+ messages in thread From: Don Stokes @ 1993-01-21 10:58 UTC (permalink / raw) jeh@cmkrnl.com writes: > In article <152016@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: > > jeh@cmkrnl.com writes: > >> In article <565014@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: > >> > Anyway, I might have a go at fiddling the driver to support 38400 (if I > >> > can find a terminal that will go that fast!) and see how things get on. > > > >> I really don't see the point. Even if you do this the actual throughput for > >> writes won't exceed 19.2kbps. This is (according to the manual) a limitation > >> of the on-board DMA logic, so nothing you do to the UART chips will get around > >> this. You certainly can't test read throughput to 38,400 bps unless you are > >> planning to type VERY damn fast. > > > > Don't knock it. I'm having fun. 8-) > > Ah, now I understand! :-) Actually, we wound Clive's SLIP connection up to 38400 today (with YFDRIVER hacked to do 38400, although we haven't bothered with the RTS stuff). It _did_ make a noticable difference. The CMU SLIP driver doesn't seem to like operating full-duplex -- if at 19200, I chuck 800 byte packets at it to return, it can keep up. 900 bytes and it loses very quickly. At 38400, the wall is more than 1200 bytes, which is about what I expect, given that output from the DHV11 is still effectively at 19200. Remember, we are talking about a MicroVAX II here (attached via a Cisco 516-CS terminal server). > (These modern chip technologies have their drawbacks. In the good old days I > worked on an HP machine that used a separate 7x8" card for *each* serial > port... [instruction set looked a lot like alpha's, too!] and when we wanted it > to go faster than HP provided for, why we just added a wire to pick off the > baud clock a few stages earlier in the divider chain. I just bought a > two-serial-port card for a PC... it has *one* chip on it. Now, I ask you, how > much fun can that be? :-) Hey, you just have to make your own fun! Those ports will go at 110kbps or so, but the broken DOS support won't drive them that fast. Ya gotta get to the bare metal to drive the thing properly. In these parts, V23 modems operating at 1200bps receive and 75bps transmit were popular for a long time (I still have a couple batting around here; one built around an AM7910 "world chip" and another built mostly from discrete components). To drive those modems from a PC, you set the 8250 to receive at 1200 bps, and bit banged 75 bps with the break line..... The odd one of these modems still appears from the woodwork from time to time. > > Funny, that. DHV11 Techical Manual, p/n EK-DHV11-TM-001. (c) 1983. > > It's worth noting that this formula for order number applies to LOTS of DEC > hardware tech manuals. Whether or not the manual is actually orderable and > contains useful information is, of course, another question. (The later the > printing date, the more "content-free" the manual, it seems.) This almost seems like an opportune time to restart the olde thread about the DEC handbooks. Maybe not tonight. 8-) > > Quick warning to neophytes: Hacks described below [for adding RTS flow > > control] have not been tested. > > They're not even complete. It's your foot and your gun. > Good stuff! I've been mumbling about doing something along these lines... > I'm going to see if I can complete it and put a nice wrapper around it. OK, but note that I got the TT$M_MODEM!TT$M_HOSTSYNC test wrong. (It'll take the modified path if _either_ bit is set, not both. Originally, I just coded to look at TT$M_MODEM, until I realised that it would only call PORT_XOFF to output a BEL if HOSTSYNC wasn't set, dropping DTR until the port was re-initialised, which wasn't quite what I had in mind....) BTW: WATCH and friends have good examples of tweaking the terminal class driver/port driver interface vectors. > It's a shame that similar things can't be done to add RTR/CTS flow control to > LAT ports. (Like the DHV it already honors CTS, even when it is set to "no > flow control" or "xon/xoff flow control", but pin 4 just stays true all the > time.) Unfortunately the LAT terminal port driver apparently has no way > to request modem control signal state changes. Uh... | Local> help set port flow control | DEFINE/SET PORT FLOW CONTROL | | FLOW CONTROL specifies the characters or signals that control | data flow at your port. | | FLOW [CONTROL] {CTS } | {DISABLED} | {DSR } | {XON } | | CTS means that CTS/RTS modem signals implement flow control. | [etc] (This is DECserver 200 V3.1) LAT has some pretty horrible latencies. There are (or were) ways you could fool a terminal server & the VMS driver so that the XON/XOFF flow control gets done on the host instead of on the server. It's _not_ pretty. Even if the LAT protocol allowed for the driver to do hardware flow control, it'd be about as much use as an ashtray on a motorcycle. To be effective, flow control (whatever type) has to be done by the server. > Unfortunately with uucp we can't wait a second to read a packet. Or even > three packets. If we're dealing with a Telebit spoofed connection we have > to send at least one ACK every 210 bytes. At 38.4k that's about 55 milli- > seconds! The next best thing is going to be to keep a bunch of smaller QIOs queued. Fortunately, uucp is built around the broken unix I/O model, which is extremely simpleminded about timeouts. The nature of the animal is that a timeout is an exception condition; the sending channel streams most of the time so small QIOs will be completed by the following packet as long as the QIOs aren't too big. QIOs sized at less than the expected packet size will ensure that the packet makes it to the driver while the next packet is read. Smaller QIOs will get the packets delivered in a more timely fashion, at the expense of the overhead of queueing and delivering the things. -- Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home) Network Manager, Computing Services Centre don@vuw.ac.nz (work) Victoria University of Wellington, New Zealand +64-4-495-5052 ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-21 10:58 ` Don Stokes @ 1993-01-21 11:47 ` Don Stokes 1993-01-22 23:18 ` jeh 1 sibling, 0 replies; 21+ messages in thread From: Don Stokes @ 1993-01-21 11:47 UTC (permalink / raw) don@zl2tnm.gen.nz (Don Stokes) writes: > OK, but note that I got the TT$M_MODEM!TT$M_HOSTSYNC test wrong. (It'll take > the modified path if _either_ bit is set, not both. Originally, I just coded > to look at TT$M_MODEM, until I realised that it would only call PORT_XOFF to > output a BEL if HOSTSYNC wasn't set, dropping DTR until the port was ^^^ RTS of course Must be bedtime. > re-initialised, which wasn't quite what I had in mind....) -- Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home) Network Manager, Computing Services Centre don@vuw.ac.nz (work) Victoria University of Wellington, New Zealand +64-4-495-5052 ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-21 10:58 ` Don Stokes 1993-01-21 11:47 ` Don Stokes @ 1993-01-22 23:18 ` jeh 1993-01-23 6:08 ` mark [not found] ` <14012022@zl2tnm.gen.nz> 1 sibling, 2 replies; 21+ messages in thread From: jeh @ 1993-01-22 23:18 UTC (permalink / raw) In article <9828020@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: > jeh@cmkrnl.com writes: >> Good stuff! I've been mumbling about doing something along these lines... >> I'm going to see if I can complete it and put a nice wrapper around it. > OK, but note that I got the TT$M_MODEM!TT$M_HOSTSYNC test wrong. (It'll take > the modified path if _either_ bit is set, not both. Originally, I just coded > to look at TT$M_MODEM, until I realised that it would only call PORT_XOFF to > output a BEL if HOSTSYNC wasn't set, dropping DTR until the port was > re-initialised, which wasn't quite what I had in mind....) Mark Pizzolato and I were looking at using the new COMMSYNC characteristic. The doc says that COMMSYNC shouldn't be used with MODEM, but SET TERMINAL does not enforce this. My idea is to do RTR flow control if COMMSYNC, MODEM, and HOSTSYNC are all set; if HOSTSYNC is set but either MODEM or COMMSYNC isn't, send xon's and xoff's. It looks as though this will not interfere with the standard use of COMMSYNC. This allows easy switching of the new code with the existing SET TERMINAL command and $QIO interfaces. >> It's a shame that similar things can't be done to add RTR/CTS flow control to >> LAT ports. (Like the DHV it already honors CTS, even when it is set to "no >> flow control" or "xon/xoff flow control", but pin 4 just stays true all the >> time.) Unfortunately the LAT terminal port driver apparently has no way >> to request modem control signal state changes. > > Uh... > > | Local> help set port flow control > | DEFINE/SET PORT FLOW CONTROL > | > | FLOW CONTROL specifies the characters or signals that control > | data flow at your port. > | > | FLOW [CONTROL] {CTS } > | {DISABLED} > | {DSR } > | {XON } > | > | CTS means that CTS/RTS modem signals implement flow control. > | [etc] > > (This is DECserver 200 V3.1) Yes, yes, I know that! btw, it also says When using CTS or DSR flow control, MODEM CONTROL must be DISABLED. I have never seen a DECserver 200 implement RTR (what is often called RTS) flow control. Perhaps the RTS/CTS refers to the old half-duplex method. What is odd is that the 200MC *always* honors CTS from the modem (ie stops sending when the modem drops CTS), just as the DHV and similar ports do, even if flow control is disabled. I hope they don't "fix" this... But what I originally meant is that I can't manipulate the "DTE sourced" signals, nor read the "DCE sourced" signals, from the VAX side (ie IO$_SENSEMODE|IO$M_RD_MODEM, IO$_SETMODE|IO$M_HANGUP, IO$_SETMODE|IO$M_SET_MODEM|IO$M_MAINT, etc., don't work). I can't even do the equivalent of Local> SET PORT nnn FLOW CONTROL CTS, though thankfully, changing the TT characteristics to turn off hostsync and ttsync have do have the desired effect. --- Jamie Hanrahan, Kernel Mode Systems, San Diego CA drivers, internals, networks, applications, and training for VMS and Windows NT uucp 'g' protocol guru and release coordinator, VMSnet (DECUS uucp) W.G., and Chair, Programming and Internals Working Group, U.S. DECUS VMS Systems SIG Internet: jeh@cmkrnl.com, or hanrahan@eisner.decus.org Uucp: uunet!cmkrnl!jeh ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-22 23:18 ` jeh @ 1993-01-23 6:08 ` mark [not found] ` <14012022@zl2tnm.gen.nz> 1 sibling, 0 replies; 21+ messages in thread From: mark @ 1993-01-23 6:08 UTC (permalink / raw) In article <1993Jan22.151835.1265@cmkrnl.com>, jeh@cmkrnl.com writes: > In article <9828020@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: >> jeh@cmkrnl.com writes: >>> Good stuff! I've been mumbling about doing something along these lines... >>> I'm going to see if I can complete it and put a nice wrapper around it. >> OK, but note that I got the TT$M_MODEM!TT$M_HOSTSYNC test wrong. (It'll take >> the modified path if _either_ bit is set, not both. Originally, I just coded >> to look at TT$M_MODEM, until I realised that it would only call PORT_XOFF to >> output a BEL if HOSTSYNC wasn't set, dropping DTR until the port was >> re-initialised, which wasn't quite what I had in mind....) > > Mark Pizzolato and I were looking at using the new COMMSYNC characteristic. The > doc says that COMMSYNC shouldn't be used with MODEM, but SET TERMINAL does not > enforce this. My idea is to do RTR flow control if COMMSYNC, MODEM, and > HOSTSYNC are all set; if HOSTSYNC is set but either MODEM or COMMSYNC isn't, > send xon's and xoff's. It looks as though this will not interfere with the > standard use of COMMSYNC. This allows easy switching of the new code with the > existing SET TERMINAL command and $QIO interfaces. This sounds like the correct strategy and it has the right promise of actually working on any other modem control ports also (not just DHV stuff). I've got another problem to look into in this domain. The "Full Modem Control" port on the VS4000 (60 & 90) is either broken completely or the driver is simply broke. It doesn't even do CTS flow control correctly. I'm not sure if it doesn't even try to respond to the modem's transitions or if it simply is slow to respond due to not having an interrupt tied to the CTS transition and it determines these transitions by a periodic poll (TTY_SCANDELTA or something). >> (This is DECserver 200 V3.1) > > Yes, yes, I know that! btw, it also says > > When using CTS or DSR flow control, MODEM CONTROL must be DISABLED. > > I have never seen a DECserver 200 implement RTR (what is often called RTS) flow > control. Perhaps the RTS/CTS refers to the old half-duplex method. > > What is odd is that the 200MC *always* honors CTS from the modem (ie stops > sending when the modem drops CTS), just as the DHV and similar ports do, even > if flow control is disabled. I hope they don't "fix" this... > > But what I originally meant is that I can't manipulate the "DTE sourced" > signals, nor read the "DCE sourced" signals, from the VAX side (ie > IO$_SENSEMODE|IO$M_RD_MODEM, IO$_SETMODE|IO$M_HANGUP, > IO$_SETMODE|IO$M_SET_MODEM|IO$M_MAINT, etc., don't work). I can't even do > the equivalent of Local> SET PORT nnn FLOW CONTROL CTS, though thankfully, > changing the TT characteristics to turn off hostsync and ttsync have do have > the desired effect. Considering that the above functionality is not there, it is real odd that we CAN send a break through the Terminal server with the following code sequence: SYS$SETIMR(delay_efn, delta_200_ms, 0, delay_efn); SYS$QIOW(qiow_efn, Fdtty, IO$_SENSEMODE, &ttparms, 0, 0, &ttstart, sizeof(ttstart), 0, 0, 0, 0); /* get current settings */ SYS$QIOW(qiow_efn, Fdtty, IO$_SETMODE, &iosb, 0, 0, &ttstart, sizeof(ttstart), 0, 0, (ttparms.parity<<4)|TT$M_BREAK, 0); /* set the break bit */ SYS$WAITFR(delay_efn); /* wait (at least) 200 msec. */ SYS$QIOW(qiow_efn, Fdtty, IO$_SETMODE, &iosb, 0, 0, &ttstart, sizeof(ttstart), ttparms.speed, ttparms.fill, /* restore prev state */ (ttparms.parity>>4)|(1<<TT$V_ALTRPAR), 0); -- Mark Pizzolato - INFO COMM Computer Consulting, Redwood City, Ca PHONE: (415)369-9366 UUCP: decwrl!infopiz!mark or uunet!lupine!infopiz!mark DOMAIN: mark@infocomm.com ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <14012022@zl2tnm.gen.nz>]
* Re: Need faster async board...dlv11-J? Something else? [not found] ` <14012022@zl2tnm.gen.nz> @ 1993-01-23 19:09 ` jeh 1993-01-24 4:41 ` Don Stokes ` (3 more replies) 0 siblings, 4 replies; 21+ messages in thread From: jeh @ 1993-01-23 19:09 UTC (permalink / raw) In article <14012022@zl2tnm.gen.nz>, don@zl2tnm.gen.nz (Don Stokes) writes: > jeh@cmkrnl.com writes: >> Mark Pizzolato and I were looking at using the new COMMSYNC characteristic. > > Ummm, can you do a version that uses something that doesn't require versions > of VMS that won't fit on my system disk? 8-( Can probably make it dependent on version. > TT2$M_BLOCK seems like a good one to me ... who the heck uses it? > (Famous last words! 8-) There was a VT1xx terminal that worked in block mode... I want to say VT105, but that was a half-assed attempt at a graphics terminal. > 'course if MACRO source is available, hacking such things isn't difficult... > > What's COMMSYNC _supposed_ to do? Implements flow control for outbound data based on, I believe, the DSR line. The idea is that if you have a serial printer that waggles DTR for flow control (which is fairly common in PC stuff; Diablo or someone like that did it early on, and lots of others followed suit, even though it isn't standard) you can wire this to the DTR input of the VAX port. I don't know why they bothered since wiring it to CTS always worked fine for me. >> I have never seen a DECserver 200 implement RTR (what is often called RTS) >> flow control. Perhaps the RTS/CTS refers to the old half-duplex method. > > Hmm. I thought it did. Mind you, I haven't really played with it. I'll have to test it more thoroughly. > The half-duplex method requires that [RTS] be held low unless transmitting > (or at least preventing the other side sending). And is therefore useless! For our purposes anyway. >> What is odd is that the 200MC *always* honors CTS from the modem (ie stops >> sending when the modem drops CTS), just as the DHV and similar ports do, >> even if flow control is disabled. I hope they don't "fix" this... > > Nah. The spec they were reading from says they should do this. That's never stopped them before. Presumably the folks who designed the terminal server firmware had access to the same spec, but they came up with a different interpretation. Several different interpretations, in fact. In the 16-line version of the DS700, the only way to use EIA-232E-style RTR/CTS flow control is to use an option where the DS700 ignores CD, in favor of DSR! (For one client who was stuck with one of these, I ended up making several "adapters", basically a 2" long DB25 extension cable with one wiring change: the modem's CD feeds the LAT port's DSR.) They also put out some release note on, I believe, DS200 3.1 code, talking about the server "asserting RI [ring indicator]", when RI is of course not sourced by the terminal server! > Don't the newer versions of LAT support [set modem and read modem functions]? > I thought the newer protocol specs had functions to do this. > Whether these are supported > by current devices or load software (or whether this is a random glitch in > my failing memory) are of course separate issues.... The spec may have it (haven't read it carefully) but LTDRIVER certainly doesn't know how to use it. > Personally, I have seen few places where monitoring the signals is actually > necessary -- mostly all you really need to know is that the connection is > there (or not) and hand all the other stuff to the drivers. Monitoring > carrier for a connection when dialling out is about the only real use I can > think of for reading the modem signals, and that's only necessary if you're > using a modem that was dug out of the Olduvai Gorge. Generally this is true. However it would be nice if ....IO$M_HANGUP did what it was supposed to. My real beef in this area is that the DHV and LAT implementations of modem control are *different*. I care less about exactly what it does than that they be the same. As it is, I can't always move a modem between a mux port to a LAT port and expect it to work with no configuration or programming changes. > I can think of several pathological cases with LAT where modem control > info and data transfer could be way out of sync. I > can see why the LAT folks put this stuff in the "too hard" basket. I've done some implementations of "remote devices" (a pseudodriver talks to DECnet which talks to a server task which talks to a real device), and you're right, synchronization can be a sticky area, especially with multiple classes of requests (reads, writes, and control functions). I could understand it if the implementors had put it on the back burner for the first release. But these problems *can* be solved, and they should have been solved by now. > For example, if you queue > a large number of writes, and they're flushed from VMS and now are in the > server's buffer, and you issue an IO$M_HANGUP, when should the hangup be > actioned? The same sorts of problems appear in the other direction. Personally I think that (in this case) hangup should cancel all the queued reads and writes and then drop DTR. In the uucp code we do a $CANCEL first before issuing the hangup. However I would be willing to settle for almost *any* interpretation of hangup -- anything would be better than nothing. I *don't* want to continue to have to release the LAT port to force a hangup. And of course DEC hasn't seen fit to offer the LAT code to folks who would be willing to "roll their own", so we can't address it ourselves, either. DEC really needs to be awakened wrt the market's interpretation of "open systems". > -- > Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home) > Network Manager, Computing Services Centre don@vuw.ac.nz (work) > Victoria University of Wellington, New Zealand +64-4-495-5052 --- Jamie Hanrahan, Kernel Mode Systems, San Diego CA drivers, internals, networks, applications, and training for VMS and Windows NT uucp 'g' protocol guru and release coordinator, VMSnet (DECUS uucp) W.G., and Chair, Programming and Internals Working Group, U.S. DECUS VMS Systems SIG Internet: jeh@cmkrnl.com, or hanrahan@eisner.decus.org Uucp: uunet!cmkrnl!jeh ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-23 19:09 ` jeh @ 1993-01-24 4:41 ` Don Stokes 1993-01-24 4:55 ` Terry Kennedy, Operations Mgr. ` (2 subsequent siblings) 3 siblings, 0 replies; 21+ messages in thread From: Don Stokes @ 1993-01-24 4:41 UTC (permalink / raw) jeh@cmkrnl.com writes: > There was a VT1xx terminal that worked in block mode... I want to say VT105, > but that was a half-assed attempt at a graphics terminal. VT131. There's one in my junk shed with dud video. Yes, those things are likely yo be a problem. Of course there's nothing stopping one from setting the COMMSYNC bit via a short program, even if there isn't a SET TERMINAL command to do the trick. Actually, that's probably a more appropriate way to do things: have the program that loads the flow control intercept stuff take a parameter of a terminal to set up. It should sense whether the intercepts have already been installed, and not do it again if so. But it can also set the COMMSPEC bit in the UCB of the device specified. It's probably a good idea to have the loader check what type of terminal mux it's dealling with before loading the intercepts -- it could load code for other devices as appropriate -- the DHV11 isn't the only terminal mux DEC developped! 8-) (Of course the DHU11 uses the same driver. What does the DHQ11 use?) Something along the lines of: $ HWFLOW :== $UUCP_BIN:HWFLOW $ HWFLOW TXA0: ! DHV11 code for TXAn loaded. COMMSPEC!HOSTSYNC set on TXA0 $ HWFLOW TXA2: ! COMMSPEC!HOSTSYNC set on TXA2. Intercept code already loaded $ HWFLOW LTA100:! Will fail %HWFLOW-E-NOSUPPORT, hardware flow control not supported for device LTA100: etc > Implements flow control for outbound data based on, I believe, the DSR > line. The idea is that if you have a serial printer that waggles DTR for > flow control (which is fairly common in PC stuff; Diablo or someone like that > did it early on, and lots of others followed suit, even though it isn't > standard) you can wire this to the DTR input of the VAX port. I don't know > why they bothered since wiring it to CTS always worked fine for me. I take it the silly thing doesn't work with modem control enabled? Is this likely to have compatibility problems with the RTS stuff? > > The half-duplex method requires that [RTS] be held low unless transmitting > > (or at least preventing the other side sending). > > And is therefore useless! For our purposes anyway. Oh, yes. But if it was doing it that way, you'd have noticed by now! > They also put out some release note on, I believe, DS200 3.1 code, talking > about the server "asserting RI [ring indicator]", when RI is of course not > sourced by the terminal server! Some doco didn't know what he/she/it was talking about.... -- Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home) Network Manager, Computing Services Centre don@vuw.ac.nz (work) Victoria University of Wellington, New Zealand +64-4-495-5052 ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-23 19:09 ` jeh 1993-01-24 4:41 ` Don Stokes @ 1993-01-24 4:55 ` Terry Kennedy, Operations Mgr. 1993-01-25 17:19 ` gezelter 1993-01-27 22:45 ` bennett 3 siblings, 0 replies; 21+ messages in thread From: Terry Kennedy, Operations Mgr. @ 1993-01-24 4:55 UTC (permalink / raw) In article <1993Jan23.110940.1270@cmkrnl.com>, jeh@cmkrnl.com writes: > Newsgroups: vmsnet.misc,vmsnet.internals,comp.sys.dec,comp.org.decus Can we keep this to a smaller subset of the newsgroups, please? I've set the followup header on this posting to vmsnet.internals only. > There was a VT1xx terminal that worked in block mode... I want to say VT105, > but that was a half-assed attempt at a graphics terminal. VT131. > That's never stopped them before. Presumably the folks who designed the > terminal server firmware had access to the same spec, but they came up with a > different interpretation. Several different interpretations, in fact. The physical serial communication chips in the DS200 won't send if CTS isn't asserted. Period. It can't be "fixed" in the firmware/load image. However, DEC is free to do it wrong in future server products. > They also put out some release note on, I believe, DS200 3.1 code, talking > about the server "asserting RI [ring indicator]", when RI is of course not > sourced by the terminal server! What they mean is that when you use the crossover cable (BC22R) to do re- verse LAT, the signal that appears on the far end of the BC22R as RI is assert- ed by the DS200. And they're correct. Terry Kennedy Operations Manager, Academic Computing terry@spcvxa.bitnet St. Peter's College, Jersey City, NJ USA terry@spcvxa.spc.edu +1 201 915 9381 ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-23 19:09 ` jeh 1993-01-24 4:41 ` Don Stokes 1993-01-24 4:55 ` Terry Kennedy, Operations Mgr. @ 1993-01-25 17:19 ` gezelter 1993-01-27 22:45 ` bennett 3 siblings, 0 replies; 21+ messages in thread From: gezelter @ 1993-01-25 17:19 UTC (permalink / raw) In article <1993Jan23.110940.1270@cmkrnl.com>, jeh@cmkrnl.com writes: > ... > > They also put out some release note on, I believe, DS200 3.1 code, talking > about the server "asserting RI [ring indicator]", when RI is of course not > sourced by the terminal server! > > ... -- Jamie, Are you sure that the reference to RI was not concerning the case of the server providing Reverse-LAT services. On some systems, the host must see RI on a dialup connection before it will "answer the phone". In that case, the server needs to assert RI, since the server is behaving as a modem, not as a host. - Bob +--------------------------------------------------------------------------+ | Robert "Bob" Gezelter E-Mail: gezelter@rlgsc.com | | Robert Gezelter Software Consultant Voice: +1 718 463 1079 | | 35-20 167th Street, Suite 215 Fax: (on Request) | | Flushing, New York 11358-1731 | | United States of America | +--------------------------------------------------------------------------+ ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-23 19:09 ` jeh ` (2 preceding siblings ...) 1993-01-25 17:19 ` gezelter @ 1993-01-27 22:45 ` bennett 3 siblings, 0 replies; 21+ messages in thread From: bennett @ 1993-01-27 22:45 UTC (permalink / raw) In article <1993Jan23.110940.1270@cmkrnl.com>, jeh@cmkrnl.com writes: > There was a VT1xx terminal that worked in block mode... I want to say VT105, > but that was a half-assed attempt at a graphics terminal. Was it the VT132 or some similar model number ? Regards, John Bennett bennett@dstos3.dsto.gov.au Head, I.T. Services Development Phone : +61 8 259 5292 Corporate Information Systems FAX : +61 8 259 5537 DEFENCE SCIENCE AND TECHNOLOGY ORGANISATION Postal: Bld 73 Labs Area AUSTRALIA PO Box 1500 Salisbury South Australia 5108 AUSTRALIA ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-11 21:07 cts 1993-01-12 5:13 ` gezelter 1993-01-12 6:27 ` Terry Kennedy, Operations Mgr. @ 1993-01-12 17:53 ` Jeff Watts 1993-01-19 7:23 ` Barton F. Bruce 3 siblings, 0 replies; 21+ messages in thread From: Jeff Watts @ 1993-01-12 17:53 UTC (permalink / raw) In article <1993Jan11.160754.1011@dragon.com> cts@dragon.com writes: >I have various MicroVAX II systems with Telebit worldblazers attached. >Currently, these are using DHV11 interfaces, which top out at 19.2 kb. >It appears this is the bottleneck; what options exist for getting faster >speeds on an MVII, if any? We have used a 3rd party product from Dilog (model CQ-1620) on our MVIIs and were quite satisfied with them. They emulate a DHV11 quite faithfully (including the fact that they recognize only one level of interrupts, just as the DHV11 does :-( ). In VMS 4.7 DEC did not allow you to enter a speed greater than 19200, so Dilog used an improbable speed=(4800,134) as the sign that you really wanted a speed of 38400. There were other 3rd party products available when we were shopping and we looked at one other vendor, but their product did not perform correctly in our system. -- Jeff Watts jeff@tamri.com ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Need faster async board...dlv11-J? Something else? 1993-01-11 21:07 cts ` (2 preceding siblings ...) 1993-01-12 17:53 ` Jeff Watts @ 1993-01-19 7:23 ` Barton F. Bruce 3 siblings, 0 replies; 21+ messages in thread From: Barton F. Bruce @ 1993-01-19 7:23 UTC (permalink / raw) In article <1993Jan11.160754.1011@dragon.com>, cts@dragon.com writes: > I have various MicroVAX II systems with Telebit worldblazers attached. > Currently, these are using DHV11 interfaces, which top out at 19.2 kb. If you find an emulex CS04 controller card and some CP34 panels you will be all set. The CS04s I have seen used for ~$250, and CP34s may be cheap if you can find any. The Earlier CP11 or CP12 panels are often well under $100 each, but won't work on a CS04. Something like a Unibus CS11 card uses either style panel, not that that helps you. A CS04 can take a max of 4 CP34s for a total or 64 ports. Can run rs422 and out of band flow control, too, without letting tha VAX really know what is happening. Speed to 38.4 - good old Emulex. Can you use a terminal server? A 'new' but grey market ds700-16 will do 38.4, 57.6, and 115.2kb and speaks LAT and TCP/IP all for maybe $2400. List is probably 3200 - dec dropped it from ~4k to try to sell some. ALL your VAXen can be reached from a single terminal server. DS700 speaks SLIP, too. ^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~1993-01-27 22:45 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-01-12 4:15 Need faster async board...dlv11-J? Something else? Jerry C. Hudgins
-- strict thread matches above, loose matches on Subject: below --
1993-01-11 21:07 cts
1993-01-12 5:13 ` gezelter
1993-01-12 6:27 ` Terry Kennedy, Operations Mgr.
[not found] ` <1993Jan12.074046.1138@cmkrnl.com>
1993-01-13 6:59 ` Terry Kennedy, Operations Mgr.
1993-01-13 17:42 ` jeh
[not found] ` <565014@zl2tnm.gen.nz>
1993-01-16 7:26 ` Don Stokes
1993-01-16 9:47 ` jeh
1993-01-17 12:05 ` Don Stokes
1993-01-20 19:32 ` jeh
1993-01-21 10:58 ` Don Stokes
1993-01-21 11:47 ` Don Stokes
1993-01-22 23:18 ` jeh
1993-01-23 6:08 ` mark
[not found] ` <14012022@zl2tnm.gen.nz>
1993-01-23 19:09 ` jeh
1993-01-24 4:41 ` Don Stokes
1993-01-24 4:55 ` Terry Kennedy, Operations Mgr.
1993-01-25 17:19 ` gezelter
1993-01-27 22:45 ` bennett
1993-01-12 17:53 ` Jeff Watts
1993-01-19 7:23 ` Barton F. Bruce
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox