注:按以下步骤未能拔号成功后,在第1步中内核配置中选中了USB Serial Converter support中的所有驱动,全部编译成模块后,wvdial cdma拔号成功,貌似要比在WINDOWS下用起来速度快 ^_^
1、编译内核 (补充见注解)
Device Drivers --->
[*] USB support --->
<M> USB Serial Converter support --->
--- USB Serial Converter support │ │
│ │ [ ] Functions for loading firmware on EZUSB chips │ │
│ │ [*] USB Generic Serial Driver
│ │ <M> USB Safe Serial (Encapsulated) Driver │ │
│ │ [*] USB Secure Encapsulated Driver - Padded │ │
│ │ <M> USB Sierra Wireless Driver │ │
│ │ < > USB TI 3410/5052 Serial Driver
│ │ < > USB Xircom / Entregra Single Port Serial Driver │ │
│ │ <M> USB driver for GSM and CDMA modems │ │
│ │ < > USB ZyXEL omni.net LCD Plus Driver
2、输入 lsusb
Bus 002 Device 001: ID 1d6b:0002
Bus 007 Device 001: ID 1d6b:0001
Bus 006 Device 003: ID 413c:2105 Dell Computer Corp.
Bus 006 Device 002: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 006 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 001 Device 001: ID 1d6b:0002
Bus 004 Device 001: ID 1d6b:0001
Bus 003 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc.
Bus 003 Device 001: ID 1d6b:0001
3、在终端中输入:
modprobe usbserial vendor=0x10c4 product=0xea60
其中0x10c4 0xea60 参照自己的输出
4、查找设备
crob linux # dmesg | grep tty
[ 5775.976843] usb 3-1: generic converter now attached to ttyUSB0
crob linux # mknod /dev/ttyUSB0 c 188 0
mknod: `/dev/ttyUSB0': File exists
crob linux # mknod /dev/ttyUSB1 c 188 1
crob linux # mknod /dev/ttyUSB0 c 166 0
mknod: `/dev/ttyUSB0': File exists
crob linux # mknod /dev/ttyUSB1 c 166 1
mknod: `/dev/ttyUSB1': File exists
ACM设备是166
5、配置wvdial.conf
root@uv-laptop:~# gedit /etc/wvdial.conf
把打开的文件内容全删除换成:
[Dialer cdma]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/ttyUSB0
Phone = #777
Idle Seconds = 300
Password = CARD
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 230400
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = CARD
6、拔号
crob linux # wvdial cdma
1、编译内核 (补充见注解)
Device Drivers --->
[*] USB support --->
<M> USB Serial Converter support --->
--- USB Serial Converter support │ │
│ │ [ ] Functions for loading firmware on EZUSB chips │ │
│ │ [*] USB Generic Serial Driver
│ │ <M> USB Safe Serial (Encapsulated) Driver │ │
│ │ [*] USB Secure Encapsulated Driver - Padded │ │
│ │ <M> USB Sierra Wireless Driver │ │
│ │ < > USB TI 3410/5052 Serial Driver
│ │ < > USB Xircom / Entregra Single Port Serial Driver │ │
│ │ <M> USB driver for GSM and CDMA modems │ │
│ │ < > USB ZyXEL omni.net LCD Plus Driver
2、输入 lsusb
Bus 002 Device 001: ID 1d6b:0002
Bus 007 Device 001: ID 1d6b:0001
Bus 006 Device 003: ID 413c:2105 Dell Computer Corp.
Bus 006 Device 002: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 006 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 001 Device 001: ID 1d6b:0002
Bus 004 Device 001: ID 1d6b:0001
Bus 003 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc.
Bus 003 Device 001: ID 1d6b:0001
3、在终端中输入:
modprobe usbserial vendor=0x10c4 product=0xea60
其中0x10c4 0xea60 参照自己的输出
4、查找设备
crob linux # dmesg | grep tty
[ 5775.976843] usb 3-1: generic converter now attached to ttyUSB0
crob linux # mknod /dev/ttyUSB0 c 188 0
mknod: `/dev/ttyUSB0': File exists
crob linux # mknod /dev/ttyUSB1 c 188 1
crob linux # mknod /dev/ttyUSB0 c 166 0
mknod: `/dev/ttyUSB0': File exists
crob linux # mknod /dev/ttyUSB1 c 166 1
mknod: `/dev/ttyUSB1': File exists
ACM设备是166
5、配置wvdial.conf
root@uv-laptop:~# gedit /etc/wvdial.conf
把打开的文件内容全删除换成:
[Dialer cdma]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/ttyUSB0
Phone = #777
Idle Seconds = 300
Password = CARD
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 230400
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = CARD
6、拔号
crob linux # wvdial cdma