Selasa, 23 Juni 2009

CONNECT TO INTERNET USING W302

If you're has SE W302 cellphone, you can use this cellphone as a GSM modem. It's not simple to connect using this cellphone, because it's doesn't automatically detected by NetworkManager in Ubuntu. But, you can use it by using software called WVDIAL. In this article, I would to describe about how to connect SE W302 as a GSM Modem in Ubuntu Linux. You can use another Linux OS which support WVDIAL also. The first, connect your cellphone using data cable that was included in W302 package. You will see a selection menu in your cellphone display. Choose the first choice "Phone Mode", and then select it. OK, now you can use wvdial software in your system. If you're using Ubuntu Linux, you can install it by using this command $ sudo apt-get install wvdial Let's open the terminal from Applications > Accessories > Terminal menu. Now enter this command to detect your phone : $ sudo wvdialconf If your modem detected, it will say like this : wira@wira-laptop:~$ sudo wvdialconf Editing `/etc/wvdial.conf'. Scanning your serial ports for a modem. Modem Port Scan<*1>: S0 S1 S2 S3 WvModem<*1>: Cannot get information for serial port. ttyACM0<*1>: ATQ0 V1 E1 -- OK ttyACM0<*1>: ATQ0 V1 E1 Z -- OK ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK ttyACM0<*1>: Modem Identifier: ATI -- W302 ttyACM0<*1>: Speed 4800: AT -- OK ttyACM0<*1>: Speed 9600: AT -- OK ttyACM0<*1>: Speed 19200: AT -- OK ttyACM0<*1>: Speed 38400: AT -- OK ttyACM0<*1>: Speed 57600: AT -- OK ttyACM0<*1>: Speed 115200: AT -- OK ttyACM0<*1>: Speed 230400: AT -- OK ttyACM0<*1>: Speed 460800: AT -- OK ttyACM0<*1>: Max speed is 460800; that should be safe. ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK Found an USB modem on /dev/ttyACM0. Modem configuration written to /etc/wvdial.conf. ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" If your modem doesn't detected, try to enter "sudo wvdialconf" command again. Sometime the modem can't detected by wvdial, because some bugs in your cellphone :-P Next, edit /etc/wvdial.conf by using your favourite text editor. I prefer to choose gedit, because it's GUI and easy to use :D. Enter this command to edit /etc/wvdial.conf using gedit text editor : $ sudo gedit /etc/wvdial.conf OK, add a line below the "Init2 = ATQ0 V1 blablabla" : Init3 = at+cgdcont=4,"IP","www.xlgprs.net" Change "www.xlgprs.net" with the Access Point Name (APN) of your GPRS network. For example, if you're using Telkomsel, you can use "internet". The last step, uncomment all of the commented line (with ";" prefix). Add the "*99***4#" (without double quote) after in Phone section, and also add the username and password setting. The setting is depend on your network. For example for Telkomsel, the username is wap and the password is wap123. Now save the wvdial.conf file. To start the connection, enter this command in terminal : $ sudo wvdial NOTE: If the WVDIAL say that modem not responding, try again the command above or reconnect your phone. If WVDIAL get the IP address from server, it mean that connection was successfully. Now you can surf the internet. PLEASE DON'T CLOSE THE TERMINAL WINDOW, because it will disconnect the connection. If you want to use GUI software for connecting to the phone, try using gnome-ppp or umtsmon instead!

Tidak ada komentar:

Posting Komentar