[已解决][问题]华为EDGE卡EG602被系统识别成E220,如何解决?

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
asia_ji
帖子: 12
注册时间: 2008-06-28 11:03

[已解决][问题]华为EDGE卡EG602被系统识别成E220,如何解决?

#1

帖子 asia_ji » 2008-07-05 15:42

我的无线上网卡是华为的EG602,结果被系统(ubuntu8.04)识别成华为E220,导致无法使用。请教各位我如何才能解决这个问题?
root@ubuntu:~# lsusb
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 002: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:c019 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


另外:
前几日安装完ubuntu,成功设置好了EDGE卡并拨号上网。谁知天有不测风云,在xp下使用分区工具删除另外一个linux分区的时候,包括E盘在内的诸多盘都不翼而飞了,于是使用分区表工具恢复了分区,但是所有的linux分区都变成了未分区空间。

再次从装了ubuntu后,发现系统识别的EDGE卡和上一次有些区别,此后多次从装系统,依然无法像第一次一样正常使用EDGE卡

原来:
插上设备的时候,多出ttyUSB0,1,2,3,4,5一系列设备


root@asia:~# dmesg |grep tty
[ 4.538995] console [tty0] enabled
[ 6.395706] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
[ 29.405636] usb 6-1: airprime converter now attached to ttyUSB0
[ 29.405681] usb 6-1: airprime converter now attached to ttyUSB1
[ 29.405725] usb 6-1: airprime converter now attached to ttyUSB2
[ 29.418744] usb 6-1: airprime converter now attached to ttyUSB3
[ 29.418789] usb 6-1: airprime converter now attached to ttyUSB4
[ 29.418836] usb 6-1: airprime converter now attached to ttyUSB5
[ 31.169171] audit(1214542582.464:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5161 profile="/usr/sbin/cupsd" namespace="default"

现在:
较之原来缺少了USB3,4,5

[ 11.316735] console [tty0] enabled
[ 13.125485] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
[ 39.070248] usb 6-1: airprime converter now attached to ttyUSB0
[ 39.070298] usb 6-1: airprime converter now attached to ttyUSB1
[ 39.070342] usb 6-1: airprime converter now attached to ttyUSB2
[ 47.502244] audit(1215052757.361:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5116 profile="/usr/sbin/cupsd" namespace="default"


可惜当时没有lsusb看一下,系统把我的卡识别成什么型号设备!!
附件
2.png
上次由 asia_ji 在 2008-07-06 15:38,总共编辑 1 次。
asia_ji
帖子: 12
注册时间: 2008-06-28 11:03

#2

帖子 asia_ji » 2008-07-06 15:25

哈哈,今天终于把问题给解决了

解决方法如下:

启动系统后,把原来系统加载的模块删除掉
root@ubuntu:~# rmmod airprime usbserial

把卡弹出后在插入后,奇迹出现了

root@ubuntu:~# dmesg |grep tty
[ 765.702220] usb 6-1: airprime converter now attached to ttyUSB0
[ 765.702329] usb 6-1: airprime converter now attached to ttyUSB1
[ 765.702430] usb 6-1: airprime converter now attached to ttyUSB2
[ 765.709661] usb 6-1: airprime converter now attached to ttyUSB3
[ 765.709785] usb 6-1: airprime converter now attached to ttyUSB4
[ 765.709888] usb 6-1: airprime converter now attached to ttyUSB5

直觉告诉我,问题已经迎刃而解了!
果然
root@ubuntu:~# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Jul 6 15:01:58 2008
--> Pid of pppd: 7154
--> Using interface ppp0
--> local IP address 10.48.161.254
--> remote IP address 10.64.64.64
--> primary DNS address 211.137.32.178
--> secondary DNS address 211.136.17.107

哈哈,困扰我几天的难题解决了!

root@ubuntu:~# lsusb
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 046d:c019 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

晕,居然EG602卡还是被系统识别成E220,无所谓了,反正好用了!!
yuhongchun
帖子: 587
注册时间: 2008-05-25 21:11

#3

帖子 yuhongchun » 2008-07-06 19:27

楼主,能不能把安装过程说详细点,下载速度快不快?能到多少,小弟也想买块无线上网卡,楼主推荐下:0
asia_ji
帖子: 12
注册时间: 2008-06-28 11:03

#4

帖子 asia_ji » 2008-07-06 22:35

我使用的是移动随意行所谓的2.75G网络,速度比联通的CDMA无线上网要快一点,浏览网页的速度是可以接受的,接近ADSL的256K宽带吧,下载最快可以达到30多K,一般在5K——25K徘徊,当然也有低于5K和高于25K的时候,尤其在信号好的地方速度更能够保障些。屏蔽图片和flash后,浏览网页速度会大大提高。哈哈,还节省流量!因为我使用的是每个月2G的sim卡,根据实际使用情况来看,2G完全够用了,我最多一个月使用还不到1.5G。

我的无线上网卡是华为的EG602,550块买的!


至于安装过程嘛,看运气了。

第一次安装完ubuntu8.04后,我仅仅是
$sudo -s
#ln -sf /dev/ttyUSB0 /dev/modem
#gedit /etc/wvdial.conf

更改为如下配置:
[Modem0]
Modem = /dev/modem
Baud = 230400
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)

[Dialer Defaults]
Username = CARD
Password = CARD
Phone = *99#
Stupid Mode = 1
Inherits = Modem0
Stupid Mode = 1
Inherits = Modem0

然后
#wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Jul 6 22:11:13 2008
--> Pid of pppd: 6600
--> Using interface ppp0
--> local IP address 10.48.131.156
--> remote IP address 10.64.64.64
--> primary DNS address 211.137.32.178
--> secondary DNS address 211.136.17.107

就拨号上去了,顺利极了

第二次就没有这么幸运了,后来我就按照2楼的方法,就搞定问题了。
附件
1.jpeg
asia_ji
帖子: 12
注册时间: 2008-06-28 11:03

#5

帖子 asia_ji » 2008-07-06 22:54

对了,如果你默认的连接是以太网的话
别忘了
#ifconfig ppp0
记下IP
#ip route add default via $ip


关于卡的选择可以参考:
http://bbs.chinaunix.net/thread-1060522-3-4.html


关于配置可以参考:
http://www.lirui.name/post/81.html
回复