3G high speed data with a Huawei USB modem and Linux
Monday, April 30th, 2007Danish mobile operator 3 recently launched high speed mobile data for pretty reasonable prices. You can get up to 3 Mbit/s!. They both have PCMCIA cards and USB versions. In Windows the USB device also acts as a storage device containing drivers and a dialer, so it is pretty easy to get working. In Linux it’s a bit more difficult to get working, but it can be done!
First, the minimum required kernel version seems to be 2.6.20. With 2.6.18 the storage device was detected, but not the serial devices. With 2.6.20 the storage device is ignored but 3 serial devices are detected. 3 devices you say? Yes, it makes it possible to use the modem to send text messages, use high speed data and GPRS – all at the same time.
Sometimes the devices are not detected correctly, this can be solved by simply removing the driver and loading it again (rmmod usbserial option && modprobe usbserial && modprobe option).
Each time to modem is connected to your USB port it must be initialized with your PIN-code. It will only accept it once though. Use this perlscript to send pincode to USB modem.
After that, the following wvdial.conf should get you online:
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
Init2 = ATM0
FlowControl = NOFLOW
Username = VFD2
Password = WAP
Phone = *99***1#
Stupid Mode = 1
Init3 = AT+CGDCONT=1,”IP”,”data.tre.dk”
Dial Attempts = 3
Inherits = ModemUMTS