Operating system: Debian Etch, kernel 2.6.18.
Device: Huawei e169.
See:
http://ubuntuforums.org/showthread.php?t=858032
. In Italy the device is sold with a CD-ROM containing the file
`fr.5407.0.Linux Driver V100R001B302_29.tar'. Copy it into ~/tmp, then do:
$ cd tmp
$ tar xvvf fr.5407.0.Linux\ Driver\ V100R001B302_29.tar
$ cd Linux\ Driver\ V100R001B302/
. In the first line of the file rules/10-Huawei-Datacard-Old-Kernel.rules,
change all occurrences of `103' into `101'. Then do:
# cp -vi HWActivator remove_pl2303 /sbin
# cp -vi rules/10-Huawei-Datacard-Old-Kernel.rules /etc/udev/rules.d
# /sbin/HWActivator "Register"
# apt-get install ppp
# adduser <your-username> dip
-------------------------------------------------------------------------------
NOTE1: with a kernel greater than 2.6.18 but not greater than 2.6.20, in the
above procedure you probably should use the file 10-Huawei-Datacard.rules
instead of 10-Huawei-Datacard-Old-Kernel.rules, changing the first line from
SUBSYSTEM=="usb", SYSFS{idProduct}=="1001", SYSFS{idVendor}=="12d1", RUN+="/sbin/rmmod pl2303"
to
SUBSYSTEM=="usb", SYSFS{idProduct}=="1001", SYSFS{idVendor}=="12d1", RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1001"
. Instead, with a kernel greater than 2.6.20 you may needn't do anything,
only plu the device in, or at the most it should be enough to do:
# cp -vi HWActivator remove_pl2303 /sbin
# /sbin/HWActivator "Register"
instead of
# cp -vi HWActivator remove_pl2303 /sbin
# cp -vi rules/10-Huawei-Datacard-Old-Kernel.rules /etc/udev/rules.d
# /sbin/HWActivator "Register"
-------------------------------------------------------------------------------
Now, create the file /etc/chatscripts/huawei and fill it with:
ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT DELAYED
'' ATZ
OK-AT-OK AT+CGDCONT=1,"IP","ibox.tim.it"
OK-AT-OK AT+CGQREQ=1,2,4,3,6,31
OK-AT-OK AT+CGQMIN=1,2,4,3,6,31
OK-AT-OK AT+CGATT=1 OK-AT-OK ATD*99#
CONNECT ''
. The apn address ibox.tim.it can be changed at your needs when you're using
a different internet provider (see NOTE2 below). Create the file
/etc/ppp/peers/huawei and fill it with:
hide-password
noauth
connect "/usr/sbin/chat -v -s -f /etc/chatscripts/huawei"
debug
-crtscts
/dev/ttyUSB0
460800
defaultroute
noipdefault
remotename huawei
ipparam huawei
usepeerdns
nodetach
, then reboot. Insert the device (I suggest to use a cable, because the
device gets hot), then look at the light and wait: at first it flashes twice
and stops, twice and stops, with a green light. Then it flashes once at a
time, with a blue (or red) light: now you can connect: do:
$ pon huawei
and you are connected. `Ctrl-c' to close connection. (If sometimes the modem
sticks instead of connecting, plug it off and then in again.) During the data
transfer, a blue persistent light means umts mode, whereas a cian persistent
light means hsdpa mode.
To uninstall the driver, do:
# /sbin/HWActivator "Unregister"
# rm -vi /sbin/HWActivator /sbin/remove_pl2303 /etc/udev/rules.d/10-Huawei-Datacard-Old-Kernel.rules
-------------------------------------------------------------------------------
NOTE2: when connecting with a different provider from Tim, I could not surf
through internet. Then I decided to comment out the line `usepeerdns' in the
file /etc/ppp/peers/huawei and to edit manually the file /etc/resolv.conf
according to the provider:
with Tim, resolv.conf must be:
nameserver 213.230.155.94
nameserver 213.230.130.222
; with Tre,
nameserver 62.13.171.2
nameserver 62.13.171.1
; with Wind,
nameserver 193.70.152.25
nameserver 193.70.192.25
. I didn't try with Vodafone yet.
-------------------------------------------------------------------------------