Linux Unwired [Electronic resources]

Edd Dumbill, Brian Jepson, Roger Weeks

نسخه متنی -صفحه : 100/ 54
نمايش فراداده

8.5 Connecting to the Internet with a Cell Phone

Making an Internet connection over infrared is really no different from making it over any other serial port, which is described in detail in Chapter 9. For example, to connect to AT&T Wireless's EDGE network with a Nokia 6200 (see "GSM/GPRS Phone with Data Cable" in Chapter 9), use the peers script as shown in Example 8-1. You can use the same attws-connect and attws-disconnect scripts as shown in Chapter 9.

Example 8-1. PPP peer settings for AT&T Wireless and the Nokia 6200 over IrDA
# File: /etc/ppp/peers/attws-irda
#
/dev/ircomm0  # Nokia 6200
115200        # speed
defaultroute  # use the cellular network for the default route
usepeerdns    # use the DNS servers from the remote network
nodetach      # keep pppd in the foreground
nocrtscts     # no hardware flow control
lock          # lock the serial port
noauth        # don't expect the modem to authenticate itself
local         # don't use Carrier Detect or Data Terminal Ready
connect    "/usr/sbin/chat -v -f /etc/chatscripts/attws-connect"
disconnect "/usr/sbin/chat -v -f /etc/chatscripts/attws-disconnect"