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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f5a759fa74d31a00 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-28 00:46:43 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!telocity-west!TELOCITY!newsrump.sjc.telocity.net!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada References: <99rh05$4ut$1@dt088n7d.san.rr.com> Subject: Re: Serial Programming on the AIX MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-Trace: MzQgTm9BdXRoVXNlciBURUxPQ59UWS1SRUFERVJTIDIxNi4yMjcuNDcuNDkgIFdlZCwgMjggTWFy!IDIwMDEgMDA6NDY6MTAgUFNU X-Abuse-Info: Please forward ALL headers when reporting abuse. X-Complaints-To: abuse@telocity.net NNTP-Posting-Date: Wed, 28 Mar 2001 00:46:10 PST Date: Wed, 28 Mar 2001 02:46:44 -0600 Xref: supernews.google.com comp.lang.ada:6156 Date: 2001-03-28T02:46:44-06:00 List-Id: These procedures are not part of the language-defined libraries, but there is an Ada binding to POSIX closely conforming to that specified in IEEE STD 1003.5: 1990 and IEEE STD 1003.5b: 1996. Source code for this binding is available at: ftp://ftp.cs.nyu.edu/pub/gnat/3.13p/florist-3.13p.tgz or ftp://ftp.cs.nyu.edu/pub/gnat/private/old/florist/florist-3.12p-src.tar.gz The procedures you want are in the package POSIX.Terminal_Functions. To use these functions you will need to open the serial port with a procedure from the package POSIX.IO, using the name of the serial port (/dev/ttyXX ??) -- I don't know the AIX names for serial ports. The POSIX.IO package has facilities for controlling the blocking behavior, and other characteristics of the port. "Jeetendra Manghani" wrote in message news:99rh05$4ut$1@dt088n7d.san.rr.com... > Hi there, > > I had a couple questions to serial programming in ada: > > 1) Can you set the baud rate? In C, you can using tcsetattr > function. Is there a comparable function in ada? > > 2) I am coming across a problem where I use READ on the port > but it blocks until the entire buffer is filled up and then > returns, instead of returning on a CR. Any ideas? > > Thanks, > Jee Manghani