HuaWei EC1260 Surfing Modem Setting on Ubuntu Linux 7.10 X64

阅读更多
1. Ubuntu X64 Linux
$ uname -a
Linux Ubuntu710X64 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007 x86_64 GNU/Linux

2. USB Modem
$ 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 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB0<*1>: Speed 4800: AT -- OK
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Speed 19200: AT -- OK
ttyUSB0<*1>: Speed 38400: AT -- OK
ttyUSB0<*1>: Speed 57600: AT -- OK
ttyUSB0<*1>: Speed 115200: AT -- OK
ttyUSB0<*1>: Speed 230400: AT -- OK
ttyUSB0<*1>: Speed 460800: AT -- OK
ttyUSB0<*1>: Max speed is 460800; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Killed


3. Edit wvdial_EC1260.conf
$ sudo vi /etc/wvdial_EC1260.conf

[Dialer Defaults]

Modem = /dev/ttyUSB0

ISDN = off

Modem Type = USB Modem

Baud = 460800

Init = ATX0

Phone = #777

Dial Prefix =

Dial Attempts = 1

Dial Command = ATM1L3DT

Ask Password = off

Password = card

Username = card

Auto Reconnect = on

Abort on Busy = off

Carrier Check = no

Check Def Route = on

Abort on No Dialtone = on

Stupid Mode = on

Idle Seconds = 0

Auto DNS = on

[Dialer EC1260]

Init3 = ATM0


4. Dial...
$ sudo wvdial -C /etc/wvdial_EC1260.conf

WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATX0
WvDial Modem<*1>: ATX0
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATM1L3DT#777
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATM1L3DT#777
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected.  Starting PPP immediately.
WvDial: Starting pppd at Wed Aug  5 22:50:34 2009
WvDial: Pid of pppd: 7892
WvDial<*1>: Using interface ppp0
WvDial<*1>: local  IP address 113.113.56.100
WvDial<*1>: remote IP address 115.168.82.143
WvDial<*1>: primary   DNS address 202.96.128.86
WvDial<*1>: secondary DNS address 220.192.32.103

5. Disconnect....
Ctrl + C

Caught signal 2:  Attempting to exit gracefully...
WvDial<*1>: Terminating on signal 15
WvDial<*1>: Connect time 10.6 minutes.
WvDial<*1>: Disconnecting at Wed Aug  5 23:01:06 2009


6. Enjoy...

你可能感兴趣的:(Linux,Ubuntu,C,C++,C#)