delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/04/11/23:31:58

Date: Mon, 11 Apr 94 21:02:30 -0600
From: jan kok <kok AT CS DOT ColoState DOT EDU>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: serial port driver from aeasy102 hangs?

I'm trying to use aeasy102 to send and receive characters through a
serial port.  It works, mostly, but occasionally decides that there is
no data coming into the serial port when there definitely is, and gets
stuck in this mode.  Here are some specifics:

I have a device which sends 33 characters in a burst about 3 times per
second.  This device is running constantly, sending characters to the
PC's COM2 port.

After reboot I do:

asynctsr 2 256          (fresh out of the shrink-wrap :)
mode com2: 9600,n,8,1
atest 2                 (compiled with djgcc111 with dj111m[1-4])
(atest prints the characters coming in through serial port)
^C^C^C
atest 2
^C^C
atest 2
etc.

Eventually (after maybe 20 tries), atest will start up, print just a few
characters and "hang".  Stopping and restarting atest doesn't unhang
things, however running kermit does; after running kermit, atest displays
the incoming characters again.

Using asynctsr 2 -256 with atest 2 0 will also hang, usually after
displaying about 256 characters immediately after startup.

The serial card that I'm using has a UM82C862F which is a combination IDE,
floppy, printer, and dual serial interface.

Any suggestions?  I just want to send and receive characters through a
serial port with reasonable speed and reliability.

Thanks,
- Jan
kok AT cs DOT colostate DOT edu

- Raw text -


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