2010年3月19日星期五

Howto install 3G card [HUAWEI E1750 WCDMA] in archlinux

1.Download

http://www.draisberghof.de/usb_modeswitch/

cd /tmp

wget http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.1.tar.bz2



2.Install

cd usb-modeswitch-1.1.1

sudo make install

sudo vi /etc/usb_modeswitch.conf

>>

########################################################

# Huawei E1550

# Huawei E1750

#

# Contributor: Anders Blomdell, Ahmed Soliman

DefaultVendor= 0x12d1

DefaultProduct= 0x1446

TargetVendor= 0x12d1

TargetProduct= 0x1001

# only for reference and 0.x versions

# MessageEndpoint=0x01

MessageContent="55534243123456780000000000000011060000000000000000000000000000"

sudo /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf

$ ls -l /dev/ttyUSB0

crw-rw---- 1 root uucp 188, 0 3月 19 16:13 /dev/ttyUSB0



3.Setup kppp

New account :WCDMA

Phone no:*99#

authentication : PAP

Call back : No

pppd parameters:

noauth
usepeerdns
noipdefault
defaultroute

MODEM:DEVICE

new HUAWEI E1750

Device: /dev/ttyUSB0

Flow control: Hardware [CRTSCTS]

Line end : CR

Speed : 460800

Use file lock : yes

MODEM:MODEM

Query modem


4.How to use it:

plug in the usb modem

sudo /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf\

$ ls -l /dev/ttyUSB0

crw-rw---- 1 root uucp 188, 0 3月 19 16:13 /dev/ttyUSB0

sudo kppp

connect