Langsung ke konten utama

How to Set Your Mobile Phone as a Modem

Mobile phone is included in the wireless technology. Talking about the wireless technology, It reminded me with my old amateur radio. First amateur radio needs an antenna to send and receive the information. For example, My amateur radio use a simplest antenna. People call it Open dipole antenna. It is made from the long measured wire, and a winding wire.
If you ever use the radio, you will hear the noise beside the vocal. That is my first wireless experience.
Now, Internet. Internet is included in 7 wonders of the world (Based on USA Today). Internet is a new media and it makes the world become smaller than before. Every one know about internet. Internet can be accessed by mobile phone, TV Cable network, coaxial, satellite, etc. Now, I'll tell you about connect your computer to the internet by mobile phone.
Before we begin our adjustment, make sure that you have activated your cellular GPRS (General Packet Radio Service) from your provider.
OK, I think you have activated your cellular GPRS. But, here I'm using UNE (Ubuntu Netbook Edition). I think this tutorial can run on plain Ubuntu or it also can run on the modified Ubuntu. Let's do it!
  1. First, plug your mobile phone.

  2. Then, make sure that you have installed wvdial packets. If you never yet install it, you shall install it.
    There are two ways to install wvdial packets. First, via command line (console). Open your console, then type this:
    sudo apt-get install wvdial

    Second, you can also download the packets. Click here to download the packets.
    P.S. whenever you will install any programs on Linux via console, you must be connected to the internet web.

  3. After you install it, open your console then type this:
    wvdialconf
    so, on your console will appear this:
    Editing `/etc/wvdial.conf’.
    Scanning your serial ports for a modem.
    ttyS0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
    ttyS0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
    ttyS0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
    Modem Port Scan<*1>: S1 S2 S3

    Sorry, no modem was detected! Is it in use by another program?
    Did you configure it properly with setserial?
    It means that there is no modem detected. But, don't worry. It will run properly.

  4. login as a super user:
    sudo -s
    enter your password, and you have been logging in.

  5. Next, type
    lsusb
    then, on your console will appear
    root@ubuntu:~# lsusb
    Bus 002 Device 003: ID 0bda:8198 Realtek Semiconductor Corp.
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 005: ID 05c6:9004 Qualcomm, Inc.
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 003: ID 0bda:0158 Realtek Semiconductor Corp. Mass Stroage Device
    Bus 001 Device 002: ID 04f2:b070 Chicony Electronics Co., Ltd
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Those are informations. It will inform us about any hardware that have plugged on USB ports.

  6. then type
    modprobe -r usbserial
    after that, type this:
    modprobe usbserial vendor=0x05c6 product=0x9004
    Maybe, you will be confused, where we will find those number. OK, read the informations above, and you will get it. Here, I use the mobile phone that it use Qualcomm, Inc. chip.

  7. After that, type
    wvdial
    then will appear:

    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    --> Sending: AT
    AT
    OK
    --> Sending: ATQ0 V1 E1 S0=0 +FCLASS=0
    ATQ0 V1 E1 S0=0 +FCLASS=0
    OK
    --> Modem initialized.
    --> Sending: ATDT#777
    --> Waiting for carrier.
    ATDT#777
    CONNECT
    --> Carrier detected. Starting PPP immediately.
    --> Starting pppd at Sat Oct 23 14:49:55 2010
    --> Pid of pppd: 16931
    --> Using interface ppp0
    --> pppd: ��j ��j ��j Xwj
    --> pppd: ��j ��j ��j Xwj
    --> pppd: ��j ��j ��j Xwj
    --> pppd: ��j ��j ��j Xwj
    --> pppd: ��j ��j ��j Xwj
    --> pppd: ��j ��j ��j Xwj
    --> local IP address 10.224.119.115
    --> pppd: ��j ��j ��j Xwj
    --> remote IP address 10.20.31.3
    --> pppd: ��j ��j ��j Xwj
    --> primary DNS address 10.17.3.244
    --> pppd: ��j ��j ��j Xwj
    --> secondary DNS address 10.17.3.252
    --> pppd: ��j ��j ��j Xwj
    you have connected to the internet.

I hope this tutorial can be useful.

Komentar