Timo Ter�s writes: > I'm currently using PPP with GSM datacalls (PC connected using Bluetooth > to mobile phone) and it works just fine. However, if I terminate the > phone call from my mobile phone the loss of link is not detected. > > I tracked down the reason: since the PPP link is between PC and remote > computer, the mobile phone does not send any PPP packets that the link > is dead. Instead it just sends '\r\nNO CARRIER\r\n'. And leaves the > Bluetooth connection in AT command mode. Thus PPP stays happily up.
I don't think that just looking for that string would be the right thing to do - what if someone sends you an email with that string in it? Every time you tried to download that email, ppp would disconnect. :) > This AT info is received by the PPP async driver, but it stores it and > does not process it since PPP_FLAG is never received in ppp_async_input(). > > Now I'm wondering what would be the proper way to fix this? I suggest that you run pppd on a pty and have a little userspace program to transfer characters between the pty and the real serial port, much like the charshunt() function in pppd does. That program can do whatever hangup detection is appropriate. Paul. - To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
