Dial-up profile application

July 2002 by Jakub. Relates to afe 020609a.

Intro

AFE allow for any action to be carried out when handling the Dial-up profile. Aa the most obvious one we will now describe a use-case for dial-up networking over PPP.

How-to

Firstly, we should already have a configuration for dial-up ready. For the demo we have used the ppp-config Debian package and created a configuration for connecting to our ISP (Sonera) over serial cable connected mobile phone. Now we will use this configuration to get the dial-up connection over Bluetooth from AFE.
  1. First we discover the mobile phone anc click its dial-up icon. The dialog appears saying that we will carry out these two consecutive actions:
    • First, the connection is established over bluetooth.
    • Then external command is executed. The command is the pppd with the ISP configuration (SONERA) and modem device (/dev/bty%l). The %l would get eventually get automatically replaced with the line number taken from the first action.
  2. After clicking the OK button the line gets connected over bluetooth and the line number is then fed into the command line for pppd. The pppd is executed and soon the ifconfig shows interface ppp0 up.
  3. When pushing the dial-up button next time, the action is automatically set to disconnect. Upon pushing the OK button the pppd gets terminated first with poff command and then the line gets disconnected on Bluetooth level.


Status