|
发表于 2010-5-1 21:08:26
|
显示全部楼层
Post by 眺望万物的尖塔;2086242
我用的是大唐的Aircard901上网卡(3G),在windows下安装使用都很方便,只是速度就不用提有多慢了。看了诸位大侠的关于linux下使用3G卡的范例,就拿我的卡试验了一次,结果失败了。以下是我的步骤,请大家帮我看看,是什么问题。
使用lsusb查看id
linux-kga9:/dev # lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 037: ID 1ab7:0301(这个就是3G卡了)
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 15d9:0a41 Unknown
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
修改/etc/usb_modeswitch.conf文件,在末尾添加下列内容:
DefaultVendor=0x1ab7
DefaultProduct=0x0301
TargetVendor=0x1ab7
TargetProduct=0x0301
SierraMode=1
ResetUSB=1
linux-kga9:/dev # usb_modeswitch-W
* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.6 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions
DefaultVendor=0x1ab7
DefaultProduct=0x301
TargetVendor=0x1ab7
TargetProduct=0x301
TargetClass=0x0
DetachStorageOnly=0
HuaweiMode=0
SierraMode=1
SonyMode=0
MessageEndpoint=0x0
MessageContent=""
Interface=0x0
Looking for target devices
Found target devices (1)
Looking for default devices
Found default devices (1)
Prepare switching, accessing latest device
OK, Sierra control message successfully sent.
Resetting usb device .....................................................................................................
Reset failed. Can be ignored if device switched OK.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye
到/dev里查看,没有发现类似文件名为ttyCAM的设备出现
用wvdial试验了一下,果然没发现modem。
我想了一下,windows下该3G卡安装并使用后,桌面右下角的菜单上一直有移动设备存在的提示,也就是说它并没有被卸载。而usb_switch默认最后一步是要移除该设备,即ZeroCD
所以一旦卸载了就什么都没了(在linux刚识别出驱动器时也不会有ttyCAM),有没有办法不卸载呢?
转换完毕后:
su -c "wvdialconf"
那个设备才会出现
然后再 wvdial |
|