wvdial 在 suse10.3 下 完成GPRS的配置
2009-01-09 21:55
555 查看
我们用的是极速行800,GPRS无线拨号上网
1.linux的内核在2.6以上已经有了cp2101-cp2102,能够支持其USB转串口的要求。具体操作:
a. 插上去应该能自动识别。可以用 dmesg来查看相应的硬件连接情况。
# dmesg
usb 3-2: USB disconnect, address 3
usb 6-2: new full speed USB device using uhci_hcd and address 3
usb 6-2: new device found, idVendor=10c4, idProduct=ea60
usb 6-2: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 6-2: Product: CP2102 USB to UART Bridge Controller
usb 6-2: Manufacturer: Silicon Labs
usb 6-2: SerialNumber: 0001
usb 6-2: configuration #1 chosen from 1 choice
cp2101 6-2:1.0: cp2101 converter detected
usb 6-2: reset full speed USB device using uhci_hcd and address 3
usb 6-2: cp2101 converter now attached to ttyUSB0
可以看出 硬件已经挂载到 /dev/ttyUSB0上。
2.配置wvdial
#vi /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init5 = AT+CGDCONT=1, "IP" "CMNET"
Area Code =
Phone = *99***1#
Username = CARD
Password = CARD
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 300
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
FlowControl = Hardware (CRTSCTS)
SetVolume = 0
Modem Type = USB Modem
值得注意的地方是:
1.Init5 = AT+CGDCONT=1, "IP" "CMNET"
这句话一定要加,
AT+CGDCONT=1,"IP","CMNET"
1:表示使用第一种配置方案
IP:表示协议
CMNET:APN
否则出现的错误是
The PPP daemon has died: A modem hung up the phone (exit code = 16)
在/var/log/message中对应的信息是:
Jan 9 10:32:43 linux-xrl7 pppd[27961]: Plugin passwordfd.so loaded.
Jan 9 10:32:43 linux-xrl7 pppd[27961]: pppd 2.4.4 started by root, uid 0
Jan 9 10:32:43 linux-xrl7 pppd[27961]: Using interface ppp0
Jan 9 10:32:43 linux-xrl7 pppd[27961]: Connect: ppp0 <--> /dev/ttyUSB0
Jan 9 10:32:46 linux-xrl7 pppd[27961]: CHAP authentication succeeded
Jan 9 10:32:46 linux-xrl7 pppd[27961]: CHAP authentication succeeded
Jan 9 10:32:47 linux-xrl7 pppd[27961]: LCP terminated by peer (!)
Jan 9 10:32:49 linux-xrl7 pppd[27961]: Connection terminated.
Jan 9 10:32:49 linux-xrl7 pppd[27961]: Modem hangup
Jan 9 10:32:49 linux-xrl7 pppd[27961]: Exit.
2,Modem Type = USB Modem
这句也一定要加,否则出现:
--> pppd: [18][17][06][08]
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> warning, can't find address for `www.suse.de`
--> warning, address lookup does not work
--> Nameserver (DNS) failure, the connection may not work.
--> Connected... Press Ctrl-C to disconnect
中国地质大学机器人实验室Copyright 朱宇
1.linux的内核在2.6以上已经有了cp2101-cp2102,能够支持其USB转串口的要求。具体操作:
a. 插上去应该能自动识别。可以用 dmesg来查看相应的硬件连接情况。
# dmesg
usb 3-2: USB disconnect, address 3
usb 6-2: new full speed USB device using uhci_hcd and address 3
usb 6-2: new device found, idVendor=10c4, idProduct=ea60
usb 6-2: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 6-2: Product: CP2102 USB to UART Bridge Controller
usb 6-2: Manufacturer: Silicon Labs
usb 6-2: SerialNumber: 0001
usb 6-2: configuration #1 chosen from 1 choice
cp2101 6-2:1.0: cp2101 converter detected
usb 6-2: reset full speed USB device using uhci_hcd and address 3
usb 6-2: cp2101 converter now attached to ttyUSB0
可以看出 硬件已经挂载到 /dev/ttyUSB0上。
2.配置wvdial
#vi /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init5 = AT+CGDCONT=1, "IP" "CMNET"
Area Code =
Phone = *99***1#
Username = CARD
Password = CARD
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 300
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
FlowControl = Hardware (CRTSCTS)
SetVolume = 0
Modem Type = USB Modem
值得注意的地方是:
1.Init5 = AT+CGDCONT=1, "IP" "CMNET"
这句话一定要加,
AT+CGDCONT=1,"IP","CMNET"
1:表示使用第一种配置方案
IP:表示协议
CMNET:APN
否则出现的错误是
The PPP daemon has died: A modem hung up the phone (exit code = 16)
在/var/log/message中对应的信息是:
Jan 9 10:32:43 linux-xrl7 pppd[27961]: Plugin passwordfd.so loaded.
Jan 9 10:32:43 linux-xrl7 pppd[27961]: pppd 2.4.4 started by root, uid 0
Jan 9 10:32:43 linux-xrl7 pppd[27961]: Using interface ppp0
Jan 9 10:32:43 linux-xrl7 pppd[27961]: Connect: ppp0 <--> /dev/ttyUSB0
Jan 9 10:32:46 linux-xrl7 pppd[27961]: CHAP authentication succeeded
Jan 9 10:32:46 linux-xrl7 pppd[27961]: CHAP authentication succeeded
Jan 9 10:32:47 linux-xrl7 pppd[27961]: LCP terminated by peer (!)
Jan 9 10:32:49 linux-xrl7 pppd[27961]: Connection terminated.
Jan 9 10:32:49 linux-xrl7 pppd[27961]: Modem hangup
Jan 9 10:32:49 linux-xrl7 pppd[27961]: Exit.
2,Modem Type = USB Modem
这句也一定要加,否则出现:
--> pppd: [18][17][06][08]
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> warning, can't find address for `www.suse.de`
--> warning, address lookup does not work
--> Nameserver (DNS) failure, the connection may not work.
--> Connected... Press Ctrl-C to disconnect
中国地质大学机器人实验室Copyright 朱宇
相关文章推荐
- 1.3 Suse10.3 VMware 7 上网配置详细图解教程
- pppd(SUSE10.3) 拨号 gprs成功例子
- 如何为SUSE配置IP地址,网关和DNS
- SUSE10下配置FTP服务
- Debian Linux 系统安装完成后的配置
- 手把手教你完成MaxCompute JDBC自定义日志配置
- editplus配置笔记(新建文件模板、代码美化、PHP手册、函数自动完成)
- 如何通过BIPlatform完成多维报表以及图形配置
- WASND6.1官方不支持SUSE 10.3,我手工让它自检通过支持项
- [VB.NET+XML]完成简单程序配置
- suse-rsync对安装以及配置
- 配置phpstorm完美支持Codeigniter(CI)代码自动完成(代码提示)
- 服务器集群管理框架从构思到完成(三)高级应用示例:修改远程windows和linux服务器配置文件
- suse 10.3 安装lftp
- 一步一图教你完成Windows XP(32位)+VS Express环境下CUDA开发环境配置
- SuSE的一些配置
- 新手!在Oracle数据库领域我现在是新手!今天完成了它的配置
- Windows域用户漫游设置配置文件最简单的完成方法!
- 我的SuSE10下载、安装、显示及字体配置 经历
- Spring框架——使用spring的特殊bean完成分散配置