delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/23/06:31:06

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Andrew Cottrell <andnews AT ihug DOT com DOT oz DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: recomend simply and good rs232 library please
Date: Wed, 23 Jan 2002 22:22:45 +1100
Organization: ihug (Sydney)
Lines: 57
Message-ID: <g16t4ucm984s46r6jm9bgilpugbi2ocs2a@4ax.com>
References: <a2kln5$i6iuh$1 AT ID-127824 DOT news DOT dfncis DOT de>
NNTP-Posting-Host: bugstomper.ihug.com.au
Mime-Version: 1.0
X-Trace: lust.ihug.co.nz 1011784956 7787 203.109.250.24 (23 Jan 2002 11:22:36 GMT)
X-Complaints-To: abuse AT ihug DOT co DOT nz
NNTP-Posting-Date: Wed, 23 Jan 2002 11:22:36 +0000 (UTC)
X-Newsreader: Forte Agent 1.8/32.548
Cache-Post-Path: bugstomper.ihug.com.au!unknown AT p378-tnt3 DOT syd DOT ihug DOT com DOT au
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>I would like to hear from You a recomendation for simple but good rs232
>library for djgpp.
>It should be used on PC (DOS) with aproximately 8 ports and com speed 19200
>bit/sec.
This limits it to two as far as I know PMCOM and DZCOMM. There are a
number of single port comms libraries and there may be a few more
multiport comms libraries available, but I have not used them.

The serial comms libraries are in the v2tk directory. 

>As the communication might be logged, it should be bulet proof mainly
>because of huge amount of disk writing.

I have logged over 320 MB in 15 hours on a 486 DX2-66 on a single
serial line runnign at 9600 baud using PMCOM. I have a Data sniffer
application in source code form that is fully self contained it
includes PMCOM and timers (cut down Allegro to minimise exe size) that
is available at http://homepages.ihug.com.au/~acottrel/ 

There have been  a number of improvements and enhancements made to
DZCOMM since I last used it.

Logging to the hard drive is the tricky part as you need to way up the
time to write a block of data, CPU usage in writing the data, type of
H/D in respect of access time, storage buffer to save data before
writing  to the hard drive and finally the amount of dat abeing
received. 

>Where do I find such serial comms packages, and would they be for 32-bit DOS
>(DPMI) without MS-Windows?
Both PMCOM and DZCOMM work on MS-DOS with CWSDPMI and under Win 9x, NT
4.0, 2K and XP.

>I have Borland version of this program working quite well, but I am getting
>out of memory, so I try to look for other alternatives.
PMCOM also works with Borland so you if you investigate using this
then you may be able to do a staged upgrade.

>I would like also to hear about other possible alternatives with 32 bit
>protected mode system, which is reliable and simple as DOS is but runs
>nauraly in 32 bit mode (no 16 bit switching)
You may also want to have a look at Linux if you want to use another
32 bit OS, but I do not have any experience in Linux serial comms.
There are other commercial 32 bit OS's out there, but you need to
consider maintenance and costs.  
I would try DJGPP and PMCOM or DZCOMM first as it will be the least
cost and time compared to other alternatives. If you don't like it
then you have only spent time in learning what DJGPP is capable of.

By the way what is hanging on the other end of the multiport serial
card? Does that card use 16554 or 16552s? 

By the way PMCOM also supports 9 bit protocol (wakeup mode).

Andrew


- Raw text -


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