home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7549 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.5 KB

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