modem hangup

Robert Brown <[email protected]> Thu, 6 Nov 2003 14:29:25 -0600 (CST)
Newsgroups gmane.linux.redhat.ppp
Message-ID <[email protected]>
srinath c writes:
 > 
 > How do i hang up the modem after transmitting the data through it.  Direct write of ATH will not work since the modem is not in command mode.  How else can i do it.
 > 

You can either use the modem control signals (if you are writing a C
program, for instance) or you can use the escape sequence followed by
the ATH0 hang-up command.  The escape sequence is 3 seconds of no data 
transmitted from your computer's serial port, followed by 3 plus signs 
"+++" followed by waiting for the modem to respond with "OK", then
send ATH0 to the modem to hang it up.