当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 10 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2009-06-21 17:54 

注册: 2006-05-19 15:37
帖子: 12
送出感谢: 0 次
接收感谢: 0 次
刚买了一个华为ET128 3G USB上网卡,发现在9.04中无法应用。能将USB识别为ttyUSB0,但就是不能识别modem设备,不知道问题出在哪里?

版本号:

ubuntu@Ubuntu:~$ uname -r
2.6.28-11-generic

dmesg显示为:

[ 4155.544129] usb 2-1: new full speed USB device using uhci_hcd and address 3
[ 4155.714622] usb 2-1: configuration #2 chosen from 1 choice
[ 4155.991316] usbserial_generic 2-1:2.0: generic converter detected
[ 4155.991420] usb 2-1: generic converter now attached to ttyUSB0

ttyUSB0设备:

ubuntu@Ubuntu:~$ ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 2009-06-21 17:43 /dev/ttyUSB0

ubuntu@Ubuntu:~$ lsusb | grep Huawei
Bus 002 Device 003: ID 12d1:1da1 Huawei Technologies Co., Ltd.
ubuntu@Ubuntu:~$ dmesg | grep HUAWEI
ubuntu@Ubuntu:~$

usb_modeswitch:

ubuntu@Ubuntu:~$ sudo usb_modeswitch -W

* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.7 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Reading config file: /etc/usb_modeswitch.conf
DefaultVendor=0x12d1
DefaultProduct=0x1da1
TargetVendor=0x0
TargetProduct=0x0
TargetClass=0x0
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
MessageEndpoint=0x0
MessageContent=""
Interface=0x0

Success check disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 001
usb_os_find_devices: Found 002 on 005
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 005
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 005 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 003 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device

Looking for default devices ...
Found default devices (1)
Prepare switching, accessing device 003 on bus 002 ...
-> Run lsusb to note any changes. Bye

ubuntu@Ubuntu:~$

ubuntu@Ubuntu:~$ sudo wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.


Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://open.nit.ca/wiki/?WvDial

If you still have problems, send mail to <wvdial-list@lists.nit.ca>.

ubuntu@Ubuntu:~$ sudo wvdial 3g
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
ubuntu@Ubuntu:~$

不知如何才能将ttyUSB0设备识别为Modem呢?


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2009-06-21 18:15 

注册: 2007-10-27 22:48
帖子: 278
送出感谢: 0 次
接收感谢: 1
最好搜好了现场试下再买哈,华为1260和226据说是插上就用的,其它均没有相关的报道,有可能就换个吧,小弟的1260用得很爽,是先从网上搜,再带了网本到现场试再出手的,同情先


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2009-06-22 11:45 

注册: 2006-05-19 15:37
帖子: 12
送出感谢: 0 次
接收感谢: 0 次
搞定了,虽然还不知道啥原因。

一开始插上3G卡的时候,lsusb显示为:

ubuntu@Ubuntu:~$ lsusb | grep Huawei
Bus 002 Device 002: ID 12d1:1da1 Huawei Technologies Co., Ltd.

这时候,修改/etc/usb_modeswitch.conf:

DefaultVendor= 0x12d1
DefaultProduct= 0x1da1

TargetVendor= 0x12d1
TargetProduct= 0x1da1

HuaweiMode=1

执行sudo usb_modeswitch -W 令修改生效。这时候

ubuntu@Ubuntu:~$ lsusb | grep Huawei
Bus 002 Device 002: ID 12d1:1d09 Huawei Technologies Co., Ltd.

会发现1da1变成了1d09. 然后再修改/etc/usb_modeswitch.conf


DefaultVendor= 0x12d1
DefaultProduct= 0x1d09

TargetVendor= 0x12d1
TargetProduct= 0x1d09

;HuaweiMode=1

再执行sudo usb_modeswitch -W令修改生效。

检查/dev/下面, 会出来ttyACM0, ttyACM1, 和ttyACM2.

然后再执行sudo wvdialconf自动生成配置文件

ubuntu@Ubuntu:~$ sudo wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Manufacturer: HuaWei
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyACM1<*1>: ATQ0 V1 E1 -- OK
ttyACM1<*1>: ATQ0 V1 E1 Z -- OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM1<*1>: Modem Identifier: ATI -- Manufacturer: HuaWei
ttyACM1<*1>: Speed 4800: AT -- OK
ttyACM1<*1>: Speed 9600: AT -- OK
ttyACM1<*1>: Speed 19200: AT -- OK
ttyACM1<*1>: Speed 38400: AT -- OK
ttyACM1<*1>: Speed 57600: AT -- OK
ttyACM1<*1>: Speed 115200: AT -- OK
ttyACM1<*1>: Speed 230400: AT -- OK
ttyACM1<*1>: Speed 460800: AT -- OK
ttyACM1<*1>: Max speed is 460800; that should be safe.
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyACM2<*1>: ATQ0 V1 E1 -- OK
ttyACM2<*1>: ATQ0 V1 E1 Z -- OK
ttyACM2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM2<*1>: Modem Identifier: ATI -- Manufacturer: HuaWei
ttyACM2<*1>: Speed 4800: AT -- OK
ttyACM2<*1>: Speed 9600: AT -- OK
ttyACM2<*1>: Speed 19200: AT -- OK
ttyACM2<*1>: Speed 38400: AT -- OK
ttyACM2<*1>: Speed 57600: AT -- OK
ttyACM2<*1>: Speed 115200: AT -- OK
ttyACM2<*1>: Speed 230400: AT -- OK
ttyACM2<*1>: Speed 460800: AT -- OK
ttyACM2<*1>: Max speed is 460800; that should be safe.
ttyACM2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyACM1<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyACM2<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ubuntu@Ubuntu:~$

再修改/etc/wvdial.conf中的相应部分就可以了。我的配置如下:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Password = any
Phone = *99***1#
Modem Type = USB Modem
Stupid Mode = 1
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
username = any
; Phone = <Target Phone Number>
; Password = <Your Password>
; Username = <Your Login Name>

之后,就知道该怎么做了吧? sudo wvdial就OK了。

ubuntu@Ubuntu:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT 2800000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Jun 22 11:11:50 2009
--> Pid of pppd: 4134
--> Using interface ppp0
--> local IP address 10.140.162.111
--> remote IP address 192.200.1.21
--> primary DNS address 221.130.33.60
--> secondary DNS address 221.130.33.52

祝你成功!


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2009-07-10 18:35 
头像

注册: 2009-05-12 16:06
帖子: 41
送出感谢: 1
接收感谢: 0 次
超级感谢楼上的,写的这样详细,我也成功了!
:em11


_________________
小白兔,白又白,两只耳朵竖起来。爱吃萝卜爱吃菜,蹦蹦跳跳多可爱。


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2009-07-11 17:49 

注册: 2008-11-16 9:16
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
:em11 写的很详细,按此方法,可以正常作用了。谢谢!!


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2009-07-14 12:56 

注册: 2007-10-24 21:25
帖子: 29
送出感谢: 0 次
接收感谢: 0 次
Mark

准备要用电信无线


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2009-09-02 16:20 

注册: 2008-11-29 14:09
帖子: 24
送出感谢: 0 次
接收感谢: 0 次
我执行usb_modeswitch -W报错说无法传送控制信息是什么一回事?


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2009-12-01 23:07 
头像

注册: 2008-06-27 0:27
帖子: 104
送出感谢: 0 次
接收感谢: 0 次
每次开机都要手动切换mode~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2010-10-22 12:23 
头像

注册: 2010-10-21 19:43
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
我也是按照你说的方法说的去做但是怎么出错了,先用sudo gedit /etc/usb_modeswitch.conf改了usb_modeswitch.conf文件然后就用sudo usb_modeswitch -W来执行的但是就是出现了debug,
如图:
附件:
3.png
3.png [ 49.54 KiB | 被浏览 1484 次 ]


哪位高手来帮忙看看,谢谢了!


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 9.04中无法使用华为ET128无线3G上网卡
帖子发表于 : 2010-11-27 18:45 

注册: 2006-07-16 12:24
帖子: 146
送出感谢: 0 次
接收感谢: 0 次
楼主高人一个


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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