From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,95494845ddf9c97d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-05-31 21:00:51 PST Path: bga.com!news.sprintlink.net!demon!uknet!EU.net!sunic!segate.sunet.se!eric From: eric@segate.sunet.se (Eric Thomas) Newsgroups: comp.sys.dec Subject: Re: DEC 3000-300 serial port speed? Date: 31 May 94 18:46:15 WET Organization: SUNET, Stockholm, Sweden Message-ID: <1994May31.184615.1@segate.sunet.se> References: <2sbdut$4mc@uuneo.neosoft.com> <2sck63$nkb@lyra.csx.cam.ac.uk> <2sdrdd$7cj@lyra.csx.cam.ac.uk> Reply-To: ERIC@SEARN.SUNET.SE NNTP-Posting-Host: segate.sunet.se I think some of the misunderstandings come from lack of information. There are several types of UARTs, and then several types of drivers. My 486/25 notebook has an old UART without a FIFO. When transferring files over a 14.4k connection, 19.2k is as fast as I can configure the COM port under Windows, and then I can't *touch* the PC during the transfer. I am allowed to move the mouse, but if I so much as single click on an icon to highlight it, I get lost data. That's because a 486/25 with standard Windows drivers can't take much more than the corresponding 2500-odd interrupts per second. Note that I'm not saying the chip can't take more interrupts; I'm saying it can't dispatch the interrupt code in COMM.DRV more than 2500 times per second, on a machine with notebook memory and no external cache. My desktop 486/66 has a UART with a 16-byte FIFO, 256k of external cache, and Dell memory. I can transfer at 38.4k/14.4k with *DOS under Windows* and do something else at the same time, as long as I don't do too much disk I/O. But occasionally I did lose characters when doing plain dialup, especially if the terminal emulator decided to update the scrollback file at the same time. This got worse when I got a 28.8k driver and ran the port at 57.6k. Some "screens" I simply could not get past without getting all sorts of rubbish on the screen. This is because the default COMM.DRV does not actually use the FIFO. It enables it, but programs it to interrupt every time a new character shows up, and then only in the incoming direction. In the outgoing direction, it doesn't even enable the FIFO. Better drivers are available from the usual PC archive sites. I installed one CYBERDRV.DRV, which programs the FIFO to interrupt after 8 bytes in either direction, and all my problems were solved. I could reduce the interrupt rate even further by interrupting every 15, but given the way Windows 3.1 multitasks, it might impact reliability. With NT I never had any problem - the FIFO is fully used and I've never lost a single byte. So in fact most of the problems you've been witnessing are not due to the PC or its hardware, but to the idiocy of the drivers and Windows 3.1's inability to schedule a driver in a dependable time frame. Eric