www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/10/16:15:38

From: kfl AT clark DOT net (Keith Lynch)
Newsgroups: comp.os.msdos.djgpp
Subject: Overflow error on serial port with bioscom
Date: 10 Mar 1998 21:00:14 GMT
Organization: Clark Internet Services, Inc.
Lines: 33
Message-ID: <6e49ku$pp6$1@clarknet.clark.net>
NNTP-Posting-Host: shell.clark.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am able to talk to COM1: using bioscom.  But with COM2:, on which I
have an internal "Aspen Technologies" 28.8 modem, I always instantly
get 0x200 back from bioscom, an overflow error.  It doesn't matter
whether the modem is dialed into a site or not.  Nor does it matter
whether the port is idle, or whether I have a stream of text coming
back from the site to that port.  Never do I get anything back with
bioscom(2,0,1) except 0x200.  bioscom(0,0xE3,1) returns E3, as it
should.

Both ports work fine with the COMIT and XTALK terminal programs, so
there's nothing wrong with the port or the modem.

Aspen Technologies appears to be out of busines, as their web page
http://www.aspentek.com (mentioned in the installation guide), is
unreachable.

Here's the code I'm using:

void main() {
   int a,printf(),bioscom();
   a = bioscom(0,0xE3,1);
   printf("init=%X\n",a);
   for (;;) {
      a = bioscom(2,0,1);
      printf("returned=%X\n",a);
   }
}

Thanks for any help.
--
Keith Lynch, kfl AT clark DOT net
http://www.clark.net/pub/kfl/
I boycott all spammers.

- Raw text -


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