So the DCD line goes HIGH when a carrier is detected or it is connected? Thanks Justin Grimm Harold Hallikainen wrote: > On Tue, 8 Dec 1998 16:35:52 +0800 Justin Grimm > writes: > >Hi All > >Im currently programming a dial up adapter for the pic74 and wanted to > >verify > >the procedure for talking to a modem- > > > >1) > > Set DTR and RTS lines to high > > I think I'd just leave DTR and RTS high all the time. > > >2) > > Output through UART/RS232 port the ascii chars - "ATDTphonenumber" > > then "0x0d"(carriage return?) > > Looks good. > > >3) > > Should receive from the modem the ascii chars - "CONNECTbaudrate" > > I like just waiting for DCD to go true. Unsolicited status > messages are too easy to miss. Pretty hard to not see that DCD has gone > true. > > >4) > > Should then receive data from the dialled computer > > >5) > > To disconnect - > > Output "ATH" then "0x0d"(carriage return?) to the modem > > Stop sending data. > Wait (typically 1 second) > Send +++ (some modems require delays between characters) > Wait (typically 1 second... modem will anwer OK) > Send ATH, 0x0d > > >6) > > Should receive "OK" from the modem > >7) > > Reset DTR and RTS lines to low > > > > Again, I'd just leave them high... > > Harold > > Harold Hallikainen > harold@hallikainen.com > Hallikainen & Friends, Inc. > See the FCC Rules at http://hallikainen.com/FccRules and comments filed > in LPFM proceeding at http://hallikainen.com/lpfm > > ___________________________________________________________________ > You don't need to buy Internet access to use free Internet e-mail. > Get completely free e-mail from Juno at http://www.juno.com/getjuno.html > or call Juno at (800) 654-JUNO [654-5866]