Using Huawei E220+Telkomsel Flash in openSUSE 10.x

[ NOTES : I wrote this article in June 2008 before openSUSE 11.0 was released.In openSUSE 11.0 the modem is recognized automatically, there is no need to remove usbstorage and attach the usbserial kernel module. And also now Telkomsel has an unlimited Internet connection subscription called Flash Unlimited. ]

Last night, I had a chance to test Telkomsel Flash in OpenSUSE 10.3. The Telkomsel Flash I tested was a time-based subscription.

The procedure is quite straightforward. I am using the modem supplied by Telkomsel Flash package (Huawei E220). This modem can work as a storage device and as a serial modem, it has a switch for that.

The good news is : OpenSUSE 10.3 already has kernel modules for storage device and serial modem. And it recognize the modem as storage device and serial.  The bad news is : in my system the modem is always recognized as storage device. :D

Here are the procedures I took to make the modem works as a serial modem :

  • Plug-in the modem in my computer USB port
  • My computer detected the modem as a USB flash disk. I mount the flash disk.
  • I remove the usb_storage kernel module and load the usbserial kernel module
    # rmmod usb_storage
    # modprobe usbserial
  • Check your system dmesg :
usb 1-1: new full speed USB device using uhci_hcd and address 5
usb 1-1: new device found, idVendor=12d1, idProduct=1003
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: HUAWEI Technologies
usb 1-1: configuration #1 chosen from 1 choice
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
  • Install wvdial to dial your modem. You can also use other PPP dialer, such as KInternet (if you are using KDE). Here is my wvdial configuration  (/etc/wvdial-huawei.conf) :
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 3600000
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 =
Phone = *99#
Username = flash
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
  • Next, just dial your modem :
    # wvdial --config /etc/wvdial-huawei.conf
--> WvDial: Internet dialer version 1.56 (abuild@mandelbrot)
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Thu Jun 12 23:15:29 2008
--> Pid of pppd: 11492
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> Using interface ppp0
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> local  IP address 221.132.255.157
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> remote IP address 10.64.64.64
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> primary   DNS address 202.3.208.10
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> secondary DNS address 202.3.210.10
--> pppd: h���[08][15][06][08]�[1a][06][08]
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect
  • Check your ip address :
# ifconfig
lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:1410 errors:0 dropped:0 overruns:0 frame:0
TX packets:1410 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:108516 (105.9 Kb)  TX bytes:108516 (105.9 Kb)
modem0    Link encap:Point-to-Point Protocol
inet addr:221.132.254.180  P-t-P:10.64.64.64  Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:66 (66.0 b)  TX bytes:81 (81.0 b)
  • Open your web browser, and access any websites. You will be served by Telkomsel Flash website. Click on “Start” button to begin your Internet time counter.
  • Enjoy your Internet connection. Just beware with your Internet time subscription.:D
  • To end your Internet connection, click “Stop” button on the Telkomsel Flash website and press Ctrl-C in your wvdial window.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s