Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ukma!xanth!mcnc!rti!sunpix!matthew From: matthew@sunpix.UUCP ( Sun Visualization Products) Newsgroups: comp.sys.amiga Subject: Re: C Help Message-ID: <682@greens.UUCP> Date: 6 Jul 89 20:52:31 GMT References: <4552@crash.cts.com> Organization: Sun Microsystems, Research Triangle Park, NC Lines: 21 In article <4552@crash.cts.com>, news@crash.cts.com (Usenet News) writes: > But if I were to send ATZ or ATDT5551212, nothing happens. > > sprintf(SendData,"%s\n\000",GetData); > Notice the '\n' in the above line, is this being mapped to a Carriage Return or Linefeed. If its the latter, thats your problem. Most Hayes modes (and compatibles) expect commands to be carriage return terminated strings. If they are terminated by linefeeds, the modem is still waiting for more. I know that a few people in the MS-DOS field got nabbed because MS-DOS termiantes strings with CRLF, and the the modem would start dialing and then suddenly stop. (While waiting for a connection, any input to one of these modems forces it back to the "Wait for Command state"). -- Matthew Lee Stier | Sun Microsystems --- RTP, NC 27709-3447 | "Wisconsin Escapee" uucp: { sun, mcnc!rti }!sunpix!matthew | phone: (919) 469-8300 fax: (919) 460-8355 |