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,ea61903f71cb7010 X-Google-Attributes: gid103376,public From: Sam Valenti Subject: Re: Modem Application Date: 1998/05/16 Message-ID: <355DB6AF.4010D37A@truman.edu>#1/1 X-Deja-AN: 353820003 Content-Transfer-Encoding: 7bit References: <355C65F6.F02CCC19@truman.edu> <355D5371.35A94C79@cl.cam.ac.uk> Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-05-16T00:00:00+00:00 List-Id: Thanks for your help. Markus Kuhn wrote: > Sam Valenti wrote: > > I am trying to get input from a modem (the tones it hears when online). > > I have no idea how to do this. I've tried researching in the library > > and on PAL for anything, but to know avail. I guess my specific > > question is how do you do input from a peripheral. > > You have to learn how to communicate with an RS-232 serial port from > Ada, and then you have to read the manual for your modem concerning the > AT command set that it implements (there are also some TIA/EIA and > ITU-T recommendations on this subject, but better stick with your > modem manual). How to access the serial port depends on your operating > system. Under Linux for instance, just open the file /dev/cua1 > and use the ioctl() C function (via pragma Import or via a POSIX.5 > library such as florist). > > Markus > > -- > Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK > email: mkuhn at acm.org, home page: