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,656febe2966a6347 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-12 06:45:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Need your help. How to use ada communicate with hardware? ---A beginner Date: 12 Apr 2002 09:36:33 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1018618946 787 128.183.220.71 (12 Apr 2002 13:42:26 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 12 Apr 2002 13:42:26 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:22420 Date: 2002-04-12T13:42:26+00:00 List-Id: kz105@student.cs.york.ac.uk (Jamie) writes: > i'm recently learning ada. we have a project needed using computer to > control a machine. the machine has a microcontroller. i need to write > some program to communication with it via RS232 serial link. for > example, i need to ask the status of machine by sending a request, and > the machine will return a string to the computer. but i don't actually > know how to use ada to communicate hardware, becasue i'm a beginner of > programming. some body said that there is a binding to comms port. > could anyone please show me how to use it with some examples. Thanks. You need to say what operating system you are using. I'll go out on a not-very-long limb and assume Windows. If that is true, you can use my binding to the Windows comm ports: http://users.erols.com/leakstan/Stephe/Ada/win32_com_ports.zip -- -- Stephe