首先,要有一臺具備GPRS且?guī)в衜odem功能的手機(jī),以下以palm treo 650為例。
本文引用地址:http://cafeforensic.com/article/201610/305772.htm650是不帶modem功能,要通過軟件實(shí)現(xiàn),下載 USB modem軟件并安裝在650上。該軟件支持藍(lán)牙和usb數(shù)據(jù)線兩種模式!
下面首先看系統(tǒng)是否能檢測到modem
Editing `/etc/wvdial.conf'.Scanning your serial ports for a modem.Modem Port Scan*1>: S0 S1 S2 S3WvModem*1>: Cannot get information for serial port.ttyACM0*1>: ATQ0 V1 E1 -- OKttyACM0*1>: ATQ0 V1 E1 Z -- OKttyACM0*1>: ATQ0 V1 E1 S0=0 -- OKttyACM0*1>: ATQ0 V1 E1 S0=0 C1 -- OKttyACM0*1>: ATQ0 V1 E1 S0=0 C1 D2 -- OKttyACM0*1>: ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 -- OKttyACM0*1>: Modem Identifier: ATI -- ENZOttyACM0*1>: Speed 4800: AT -- OKttyACM0*1>: Speed 9600: AT -- OKttyACM0*1>: Speed 19200: AT -- OKttyACM0*1>: Speed 38400: AT -- OKttyACM0*1>: Speed 57600: AT -- OKttyACM0*1>: Speed 115200: AT -- OKttyACM0*1>: Speed 230400: AT -- OKttyACM0*1>: Speed 460800: AT -- OKttyACM0*1>: Max speed is 460800; that should be safe.ttyACM0*1>: ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 -- OKFound an USB modem on /dev/ttyACM0.Modem configuration written to /etc/wvdial.conf.ttyACM0: Speed 460800; init ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 |
如果出現(xiàn)以下信息則能檢測modem且將配置自動寫入 /etc/wvdial.conf文件。你modem的設(shè)備文件為/dev/ttyACM0
由于配置文件為普通撥號而建立,所以不適合grps撥號,要作以下修改
[Dialer defaults]Init1 = at+cgdcont=1,ip,cmwapModem Type = USB ModemISDN = 0Phone = *99***1#Modem = /dev/ttyACM0Username = anyCarrier Check = noPassword = anyBaud = 460800 |
保存后,使用wvdial撥號
使用超級用戶操作,不然無法會提示設(shè)備忙,或更改用戶權(quán)限。
--> WvDial: Internet dialer version 1.60--> Cannot get information for serial port.--> Initializing modem.--> Sending: at+cgdcont=1,ip,cmwapat+cgdcont=1,ip,cmwapOK--> Modem initialized.--> Sending: ATDT*99***1#--> Waiting for carrier.ATDT*99***1#CONNECT~[7f]}#@!}![06]} }}!}$}%}}} } } } }#}$@#}%}}$^[7f]o}'}}(}Q}+~--> Carrier detected. Waiting for prompt.~[7f]}#@!}![06]} }}!}$}%}}} } } } }#}$@#}%}}$^[7f]o}'}}(}Q}+~--> PPP negotiation detected.--> Starting pppd at Sat Jan 19 10:56:20 2008--> Pid of pppd: 6967--> Using interface ppp0--> pppd: (m[07][08]hr[07][08]--> pppd: (m[07][08]hr[07][08]--> pppd: (m[07][08]hr[07][08]--> pppd: (m[07][08]hr[07][08]--> pppd: (m[07][08]hr[07][08]--> local IP address 10.216.91.90--> pppd: (m[07][08]hr[07][08]--> remote IP address 10.216.91.0--> pppd: (m[07][08]hr[07][08] |
評論