www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/20/18:10:26

From: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Q: Serial port communication / Hardware interrupts
Date: Thu, 20 Apr 2000 23:10:26 +0400
Organization: MTU-Intel ISP
Lines: 45
Message-ID: <38FF5622.33D06B98@mtu-net.ru>
References: <slrn8fuho1 DOT hn DOT drososa AT localhost DOT localdomain>
NNTP-Posting-Host: ppp102-72.dialup.mtu-net.ru
Mime-Version: 1.0
X-Trace: gavrilo.mtu.ru 956259714 99348 212.188.102.72 (20 Apr 2000 19:41:54 GMT)
X-Complaints-To: usenet-abuse AT mtu DOT ru
NNTP-Posting-Date: 20 Apr 2000 19:41:54 GMT
X-Mailer: Mozilla 4.72 [en] (Win95; I)
X-Accept-Language: en,ru
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

First of all, Windows design is not a very good thing. At least what is related
to serial I/O from a DOS-box program. 

2nd, BIOS is not suitable for that as well.

3rd, in order to have a stable data transferr, you should implement some kind of
software packet protocol with ACK/NAK stuff (and probably with CRC for each
packet). This solves all the problems with data loss (Windows provides a nice
feature - it loose some characters ;).

4th, interrupt driven serial I/O is not good also. I have no luck with it. It
really works, but again characters are lost... You can't rely on it too.

I have a very simple chat program that works via COM port. It doesn't have any
protocols, just sends some characters and recieves. Program compiles under
orland/Turbo C and DJGPP. If you're interested, let me know.

bye.
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror:   http://members.xoom.com/alexfru

Tasos Drosopoulos wrote:
> 
> Hi
> 
> I'm trying to interface with a hardware device though a serial port and get
> something faster than win98 can offer. Looking over available sources/info it
> seems that direct, interrupt based code can do the job. I already have
> tried a windows api based library code (slow) and wrote a polling based
> version with djgpp (still too slow). The async library mentioned in the faq
> seems to compile fine but generates a locking memory error when I try it out
> booting into DOS mode from the windows shut down menu. I'm checking out
> now some old 16-bit code and wondering if I should go that way or persist
> with djgpp. What are people's experience? Are there any more info/examples
> besides the User's Guide on hardware interrupts? (Does anyone have that doc by
> Alaric "dark art of writing djgpp hardware interrupts" somewhere? It is no
> longer available at the site mentioned in the UG).
> 
> Any suggestions/recommendations welcome.
> 
> TIA


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019