delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/31/05:18:06

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Andrew Cottrell <andspamtrap DOT aty DOT exemail DOT doty DOT com DOT dot DOT yau AT unknown DOT addr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Is there any code for DJGPP to access COM
Date: Tue, 31 Aug 2004 19:03:39 +1000
Organization: HOME
Message-ID: <44f8j09q873j6gbq1tasv94ikgnj7pc2a2@4ax.com>
References: <20040830144807 DOT 60824 DOT qmail AT web53802 DOT mail DOT yahoo DOT com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Lines: 29
NNTP-Posting-Host: 220.233.15.233
X-Trace: 1093934864 un-2park-reader-02.sydney.pipenetworks.com.au 3594 220.233.15.233:1168
X-Complaints-To: Abuse, including message IDs to abuse AT pipenetworks DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>I am now working on communicate via UART(RS232), I
>want to write/read data via rs232.
>I wonder whether there is any code or libary for DJGPP
>to init open the com port? My system is win2k.
>Any advice will be appreciated.

There are a number of comms libraries for DJGPP. 

Now for some things to consider:-
- Some also work with Linux. 
- Some support wakeup mode (aka 9 bit). 
- Some support only one com port and other support up to 16/32/64 (I
can't remember as I only used a maximum of 2 at a time.
- Some have a C++ wrapper available for them (never used the wrapper)
- Some are all in assembly
- Some need to be modified to use the latest GAS (GNU Assember)

To start with have a look in the V2TK directory and see what is in
there. I personally have used DZCOMM and PMCOM over the years. The
latest DZCOMM is available from sourceforge. I have a beta of PMCOM
1.1 if you decide to use PMCOM.

I also have a data sniffer available with full source that I can send
you that I license under the GNU GPL license. It uses PMCOMM and bits
from ALEGRO for keyboard and timing. If you want this then let me know
and I will email it to you, its about 300K zipped from memory.

Andrew

- Raw text -


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