Message-Id: <4.1.19991104211819.00a243a0@mail.student.unimelb.edu.au> X-Sender: surahyo AT mail DOT student DOT unimelb DOT edu DOT au X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Thu, 04 Nov 1999 21:21:43 +1100 To: djgpp AT delorie DOT com From: Surahyo Subject: Re: Need help In-Reply-To: References: <4 DOT 1 DOT 19991104151502 DOT 00a245d0 AT mail DOT student DOT unimelb DOT edu DOT au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Could you please send me any simple program to send and receive data using RS-232 (DOS, PC). I am sorry, I am a beginner in C. Thanks in advance. At 09:15 4/11/99 +0200, you wrote: > >On Thu, 4 Nov 1999, Surahyo wrote: > >> I want to send this command below: >> "$PASHQ,GGA" >> to COM1, which is connected to GPS receiver. >> (9600 baud, 8 data bits, no parity, 1 stop bits). >> The next, I want to get the response (ASCII format) >> and put in a file. > >You should be able to do this by using the pre-defined stream named >stdaux, exactly like you would with stdin and stdout.