home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!paperboy.osf.org!hsdndev!binoc.bih.harvard.edu!rind
- From: rind@binoc.bih.harvard.edu (David Rind)
- Newsgroups: comp.lang.pascal
- Subject: Com Port Losing Characters
- Message-ID: <2296@hsdndev.UUCP>
- Date: 17 Dec 92 16:19:32 GMT
- Sender: usenet@hsdndev.UUCP
- Organization: Beth Israel Hospital, Harvard Medical School, Boston Mass., USA
- Lines: 26
-
- In past discussions here, a couple of people seem to have written high
- speed communications programs, so perhaps someone has a solution to
- this.
-
- I have a terminal emulator written in TP which uses an interrupt
- driven routine to get characters out of the com port. The program
- is intended to run at speeds up to 9600 baud. On a PS2 model 25,
- running at 9600 baud, two characters will occasionally hit the com
- port before the program gets around to moving the first character
- into a buffer.
-
- This only happens when some other process (on this particular
- machine, it seems to be a packet driver program which wakes up
- every 30 seconds or so) that is TSR steals some processing time --
- I assume it has disabled interrupts for longer than the time
- it takes for the second character to arrive.
-
- Is there some way for the terminal emulator to deal with this,
- other than simply saying that no other processes can be running
- when the emulator is being used? Has anyone come up with a solution
- for this? I'd expect that those who've written high speed
- communications routines encounter this problem even more frequently.
-
- --
- David Rind
- rind@binoc.bih.harvard.edu
-