当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 求助:华为EC169在ubuntu8。04下用usb_modeswitch转换出错,上不了网
帖子发表于 : 2010-10-25 17:13 

注册: 2010-10-19 16:29
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
首先说明,本人菜鸟,为了解决问题大部分在网上搜索,对Linux没有系统的学习 :em06
华为EC169用Mobile Partner是可以拨号上网的,只是信号不稳定,但是现在我需要用usb_modeswitch 和wvdial来实现它的上网(貌似基本所有的3G上网卡都可以用这两个软件解决问题的),可是我的出现问题了,搜了很多帖子,试了很多方法,都没有解决,最后求助这里了。 :em06
希望各位大牛指点迷津阿,谢谢了。我的大概情况如下,各位帮看看哈。
lee1@lee1-desktop:~$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem[/color]
Bus 001 Device 002: ID 0e0f:0002
Bus 001 Device 001: ID 0000:0000

EC169插入pc机上后,被识别成光驱,会弹出是否自动运行的提示。它的地址只有一个12d1:1001,转化后和转化前是一样的。
在/var/log/messages中的日志如下

Oct 22 13:24:34 lee1-desktop kernel: [ 8356.078516] usb 1-1: new full speed USB device using uhci_hcd and address 4
Oct 22 13:24:35 lee1-desktop kernel: [ 8356.750029] usb 1-1: configuration #1 chosen from 1 choice
Oct 22 13:24:35 lee1-desktop kernel: [ 8356.792877] option 1-1:1.0: GSM modem (1-port) converter detected
Oct 22 13:24:35 lee1-desktop kernel: [ 8356.793165] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct 22 13:24:37 lee1-desktop kernel: [ 8359.098327] usb 1-1: USB disconnect, address 4
Oct 22 13:24:37 lee1-desktop kernel: [ 8359.099129] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Oct 22 13:24:37 lee1-desktop kernel: [ 8359.099143] option 1-1:1.0: device disconnected
Oct 22 13:24:49 lee1-desktop kernel: [ 8370.837564] Clocksource tsc unstable (delta = 9375534749 ns)
Oct 22 13:24:49 lee1-desktop kernel: [ 8370.840109] Time: acpi_pm clocksource has been installed.
Oct 22 13:24:49 lee1-desktop kernel: [ 8370.982812] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Oct 22 13:24:49 lee1-desktop kernel: [ 8371.087004] usb 1-1: new full speed USB device using uhci_hcd and address 5
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.593305] usb 1-1: configuration #1 chosen from 1 choice
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.768665] option 1-1:1.0: GSM modem (1-port) converter detected
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.768831] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.775797] option 1-1:1.1: GSM modem (1-port) converter detected
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.776057] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.782563] option 1-1:1.2: GSM modem (1-port) converter detected
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.782838] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.789615] option 1-1:1.3: GSM modem (1-port) converter detected
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.789772] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.823232] usbcore: deregistering interface driver option
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.823434] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.823443] option 1-1:1.3: device disconnected
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.863434] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.863450] option 1-1:1.2: device disconnected
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.900636] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.900650] option 1-1:1.1: device disconnected
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.939831] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Oct 22 13:24:50 lee1-desktop kernel: [ 8371.939845] option 1-1:1.0: device disconnected
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.016732] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial deregistering driver GSM modem (1-port)
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.097566] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.097931] option 1-1:1.0: GSM modem (1-port) converter detected
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.098163] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.098301] option 1-1:1.1: GSM modem (1-port) converter detected
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.098470] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.098605] option 1-1:1.2: GSM modem (1-port) converter detected
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.098784] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.098921] option 1-1:1.3: GSM modem (1-port) converter detected
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.099185] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.099346] usbcore: registered new interface driver option
Oct 22 13:24:50 lee1-desktop kernel: [ 8372.099349] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1

貌似是有ttyUSB*生成的,可是在/dev底下查看并没有这类文件生成。再用dmesg查看一下有:

lee1@lee1-desktop:~$ dmesg | grep -e "modem" -e "tty"
[ 6.678459] console [tty0] enabled
[ 8.423191] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.423743] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 8.424558] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 8.425176] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 56.267489] audit(1288018969.154:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5461 profile="/usr/sbin/cupsd" namespace="default"
[ 424.369470] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[ 424.369710] option 1-1:1.0: GSM modem (1-port) converter detected
[ 424.370021] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 424.370156] option 1-1:1.1: GSM modem (1-port) converter detected
[ 424.370318] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 424.370442] option 1-1:1.2: GSM modem (1-port) converter detected
[ 424.370607] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 424.370739] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
[ 656.470024] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 656.470399] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 656.596217] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 660.244778] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial deregistering driver GSM modem (1-port)
[ 660.269181] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[ 660.269490] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
[ 670.397873] option 1-1:1.0: GSM modem (1-port) converter detected
[ 670.397980] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 670.405878] option 1-1:1.1: GSM modem (1-port) converter detected
[ 670.405987] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 670.418661] option 1-1:1.2: GSM modem (1-port) converter detected
[ 670.418774] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

有ttyUSB相关信息,可是就是没有相应ttyUSB*生成,所以决定调用usb_modeswitch进行转化,之前已经安装好了这个,而且usb_modeswitch.conf(也就是usb_modeswitch.setup文件)也都已经设置好了,该配置文件内容如下,(感觉应该没什么大问题,毕竟里面东西就那么几行):
# Huawei E169
#
# Contributor: Dale Lane
DefaultVendor= 0x12d1
DefaultProduct=0x1001

TargetClass=0xff

CheckSuccess=20

HuaweiMode=1


之后所以直接调用命令:

lee1@lee1-desktop:~$ sudo usb_modeswitch -W
[sudo] password for lee1:
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.4 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= not set
DefaultProduct= not set
TargetVendor= not set
TargetProduct= not set
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
No default vendor/product ID given. Aborting.

很奇怪的是,我看别人执行这个命令的时候,第一句都是:Reading config file:*****(filename)可是我的没有,感觉就是参数文件没有读入,于是再尝试以下命令:
lee1@lee1-desktop:~$ sudo usb_modeswitch -c /etc/usb_modeswitch.setup
[sudo] password for lee1:

Looking for target devices ...
Found devices in target mode or class (1)
Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.

还是找不到驱动设备。各位大牛指点一下到底是哪出的问题阿?拜谢了。
ps:我同时装了MobilePartner,可以拨号上网,所以不是硬件的问题,还有就是,装了MP,每次插入EC169,它会自动开启,并在/dev底下生成三个文件,我尝试过用它生成的modem拨号也是可以上网的,就是不知道自己转化为什么一直不成功,另外不知道这个软件的自动启动会对usb_modeswitch有影响不。
lee1@lee1-desktop:~$ ls /dev/ttyU*
/dev/ttyUSB_utps_diag /dev/ttyUSB_utps_modem /dev/ttyUSB_utps_pcui


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 求助:华为EC169在ubuntu8。04下用usb_modeswitch转换出错,上不了网
帖子发表于 : 2010-10-26 10:36 

注册: 2010-10-19 16:29
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
很奇怪的是,有时候插上网卡169也会有下面的显示,会有ttyUSB3出现,
lee1@lee1-desktop:~$ ls /dev/ttyU*
/dev/ttyUSB3 /dev/ttyUSB_utps_modem
/dev/ttyUSB_utps_diag /dev/ttyUSB_utps_pcui

可是用#wvdialconf /etc/wvdial.conf命令来检查modem时,并不把ttyUSB3当作是modem,是不是意味着ttyUSB3
是网卡的另外一个端口?有谁能帮忙看看不?谢谢阿


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 求助:华为EC169在ubuntu8。04下用usb_modeswitch转换出错,上不了网
帖子发表于 : 2010-10-26 17:33 

注册: 2010-10-19 16:29
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
还想问一下,各位谁有 http://www.draisberghof.de/usb_modeswitch/bb/这个论坛的帐号?

我每次注册都没有验证图片显示,可是注册就是要求要填写验证码,不知道为什么,有以前注册过得TX么?能告诉一下到底怎么才能注册上阿?谢谢了,想到上面去发贴求助。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译