From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,52f068e6dc147923 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Win NT + Object Ada: serial port I/O Date: 1999/02/16 Message-ID: <7ac5b5$t4c$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 444975133 References: <79952r$2t$1@nnrp1.dejanews.com> <79cu2a$4iu$1@nnrp1.dejanews.com> <7abh8g$bvh$1@nnrp1.dejanews.com> X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) X-Http-Proxy: 1.0 x16.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Feb 16 16:11:25 1999 GMT Newsgroups: comp.lang.ada Date: 1999-02-16T00:00:00+00:00 List-Id: In article , "David C. Hoos, Sr." 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