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,4ae11a8a166a911f,start X-Google-Attributes: gid103376,public From: "Robert C. Leif, Ph.D." Subject: Re: Reading data from the serial port using ADA on an Unix Date: 1996/08/29 Message-ID: <2.2.32.19960830001955.0072c58c@mail.cts.com>#1/1 X-Deja-AN: 177641698 sender: Ada programming language x-sender: rleif@mail.cts.com (Unverified) comments: To: Darel@DJCULL.DEMON.CO.UK content-type: text/plain; charset="us-ascii" mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Windows Eudora Pro Version 2.2 (32) Date: 1996-08-29T00:00:00+00:00 List-Id: To: Darel Cullen et al. >---------------------------------------------------------------------- > >Date: Tue, 20 Aug 1996 22:46:49 +0100 >From: Darel Cullen >Subject: Re: Reading data from the serial port using ADA on an Unix platform > >In article , >Quek Chee Kwang writes >>Greetings. >> >>I'm new to ADA and I would like to know how to program in ADA to read data >>(binary & ascii) coming from the serial port (for instance, a modem) on an >>Unix platform. >> >>Thank you very much. >> >>Quek >> >> > >Firstly Investigate your compilers pragma INTERFACE features. what you >will need to do is build up a set of ADA functions and procedures that >are directly bound to the C calls, in unix's case I think ioctl() would >be a good place to start. >basically , ADA has no features with which to read from a serial port, >you'll have to use the C calls and bind them to ADA. > > >-- >Darel Cullen > >--------------------------------------------------------------------------- ------------ I believe that Ada 95 has all of the facilities necessary for serial communication. In fact, AdaSAGE for DOS has the following: "SerialIO - Asynchronous serial communication package (SerialIO)" "This package contains an interface to the asynchronous serial communication devices of a system." The Web page for AdaSAGE is http://sageftp.inel.gov/sage/homepage.htm I understand that UNIX (POSIX) are multitasking. However, the Ada compiler vendor, presumably, will have created a binding to the operating system. You might check whether AdaSAGE has created SerialIO for your operating system. In the long run, an operating system where the multitasking and real-time core are written in Ada 95 would be preferable. It is time to produce with Ada well engineered software products of sufficient quality, that they will force the C and C++ communities to learn how to interface with Ada. Bob Leif Robert C. Leif, Ph.D., PMIAC, Vice President & Research Director Ada_Med, A Division of Newport Instruments Tel. & Fax (619) 582-0437