From: dennison@telepath.com
Subject: Re: Win NT + Object Ada: serial port I/O
Date: 1999/02/16
Date: 1999-02-16T00:00:00+00:00 [thread overview]
Message-ID: <7ac5b5$t4c$1@nnrp1.dejanews.com> (raw)
In-Reply-To: DDkrrqaW#GA.247@pet.hiwaay.net
In article <DDkrrqaW#GA.247@pet.hiwaay.net>,
"David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> wrote:
>
> lynch@cci.de wrote in message <7abh8g$bvh$1@nnrp1.dejanews.com>...
> >> > Does anyone have any information/experience programming serial ports in
> Ada
> >on
> >> > a Windows platform? I can think of two ways to do this:
>
> On Windows NT, I use Ordinary File IO -- i.e. I open the file "COM2:" (or
> whatever),
> using Gnat.Os_Lib.Open_Read_Write to get a file descriptor.
That is probably the way to go if your needs are simple. But it's probably not
going to be flexible enough for someone who wants to make use of the Win32
features (eg: buffer timeouts, character timeouts) of serial I/O.
> To deal with the ports settings, I write a file called _portsu.bat "on the
> fly" with parameters supplied by my program. Here's an example of
> _portsu.bat:
> @echo off
> mode COM2 baud=2400 data=8 parity=N stop=1
Ewww!
:-)
T.E.D.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
next prev parent reply other threads:[~1999-02-16 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-03 0:00 Win NT + Object Ada: serial port I/O lynch
1999-02-03 0:00 ` news.oxy.com
1999-02-04 0:00 ` lynch
1999-02-04 0:00 ` news.oxy.com
1999-02-04 0:00 ` dennison
1999-02-04 0:00 ` Tom Moran
1999-02-16 0:00 ` lynch
1999-02-16 0:00 ` David C. Hoos, Sr.
1999-02-16 0:00 ` dennison [this message]
1999-02-16 0:00 ` dennison
1999-02-16 0:00 ` Steve Doiel
1999-02-16 0:00 ` dennison
1999-02-17 0:00 ` Peter Hend�n
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox