From: Barzilai Spinak (barspi@wam.umd.edu)
Date: 02/27/93


From: barspi@wam.umd.edu (Barzilai Spinak)
Subject: Re: Need programming help..
Date: Sun, 28 Feb 1993 04:49:38 GMT

In article <9305914.24583@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
>pegasus@csd4.csd.uwm.edu (David R Hucke) writes:
>
>>I am writing a program that will deal with the modem on my linux
>>machine here. I have a program (below) that tries to open /dev/modem,
>>write ATDT 2293859 (return) to it and read some bytes from /dev/modem.
>
>> char *buffer = "ATDT 2293859\n";
>
>You need to make this <cr><lf> instead of just <lf>.
>
> char *buffer = "ATDT 2293859\r\n";
>

 Probably just '\r' will work. I haven't tried but my modem (Hayes compat.)
manual says that the command line must be ended with a carriage retrun (0x0d).
You can put the '\n' also if you want, I don't think it'll do any harm.

+------------------------------------\-------------------------------------+
| o ____ / _____/ / Barzilai Spinak o |
| / / / \ barspi@wam.umd.edu |
| _____ / _____ / / barspi@eng.umd.edu |
| / / / \ ..... |
| _________/ ___/ _______/ ___/ / (-O-O-) Dale Manya! |
+------------------------------------\-----------nnn--U--nnn---------------+