|
发表于 2009-12-17 13:41:18| 字数 2,683| - 中国–四川–成都 电信
|
显示全部楼层
|阅读模式
ubuntu 9.10已经把usbserial编译进了内核,再也不能在程序里面动态modprobe usbserial的方法加载usb设备。
因此我们这样来配置LC5730
1、下载附件lc5730.conf.rar解压后以root权限放入/etc/modprobe.d/
再以root权限,在/etc/modules 里加入行usbserial
重启电脑就OK。
加入etc/wvdial.conf如下代码
[Dialer Defaults]
Init1 = ATZ
Init3 = AT+CFUN=1
Init5 = AT+cgdcont=1,"ip","CMNET"
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99***1#
Password = any
Username = any
Stupid Mode = 1
使用WVDIAL拨号
hantao@TAGEN:~$ wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: AT+CFUN=1
OK
--> Sending: AT+cgdcont=1,"ip","CMNET"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT 2936012
--> Carrier detected. Starting PPP immediately.
--> Unable to run /usr/sbin/pppd.
--> Check permissions, or specify a "PPPD Path" option in wvdial.conf.
出现错误,需要修复权限
hantao@TAGEN:~$ ls -al /usr/sbin/pppd
-rwsr-sr-- 1 root dip 277352 2009-02-21 01:25 /usr/sbin/pppd
hantao@TAGEN:~$ sudo chmod +x /usr/sbin/pppd
hantao@TAGEN:~$ ls -al /usr/sbin/pppd
-rwsr-sr-x 1 root dip 277352 2009-02-21 01:25 /usr/sbin/pppd 注意一定要是-rwsr-sr-x才可以正常使用
修复完成,继续测试
hantao@TAGEN:~$ wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: AT+CFUN=1
OK
--> Sending: AT+cgdcont=1,"ip","CMNET"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT 2936012
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Nov 11 13:51:57 2009
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 6340
--> Using interface ppp0
--> local IP address 10.19.112.5
--> remote IP address 192.168.0.1
--> primary DNS address 211.136.20.203
^CCaught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 0.9 minutes.
--> Disconnecting at Wed Nov 11 13:52:54 2009
hantao@TAGEN:~$
搞定拨号,可以上网啦!
再讲一下GNOME PPP配置Username:任意
Password:任意
勾选 Remember password
Phone number:填入DT*99***1#
点选setup进入
Dvice:改成/dev/ttyUSB0
Type:ISDN Modem
Speed:460800
Phone Line: Tone
Volume:Hihg
点击Init Strings...
Init 2:AT+CFUN=1
Init 3:AT+cgdcont=1,"ip","CMNET"
点击Options
On connection(连接成功时):
Minimize(最小化,建议选上)
Dock in notification area(在通知区显示,建议选上)
Connection:
Auto reconnect(掉线自动连接,可选)
Abort connecting if line is busy
Abort connecting if no dialtone(选上)
Check carrier line(选上时会出现“ Connected, but carrier signal lost! Retrying…”,无法拨号成功,不选)
Check default route(成为默认路由,无其它上网方式时选上;否则建议不选)
Ignore terminal strings(stupid mode)
Send Custom reply
点击“Close”回到主界面。
拨号上网吧! |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
x
|