Recent Post

Wednesday, December 9, 2009

Setting Motorola W362 on Ubuntu 8.04

This is my experience using motorola w362, I opened the manual book and I found that this phone can be used as a modem. Actually I have no internet connection in my home, so it's annoying if I have to go to internet cafe just to browse and open my facebook. When I know that I can use my phone as a modem I feel so happy to know it. I use ubuntu 8.04. So I connect my phone to computer and try to connect to internet by type wvdial command on terminal.

But the result is so disapointed me, it said that there's no modem detected. So I googling to find out whats going on with my phone. Then I finally found a blog explains about it, that blog use the way on OpenSuse Linux, I think its no mistake to try the way on my machine, then it works, so I wont wasting my time and connecting to internet.
Know it is time for me to share my experience configuring this stuff.
  • First step, open terminal and type lsusb, this command used to list what device its connecting to our machine. The result on my computer is

    Bus 003 Device 001: ID 0000:0000
    Bus 002 Device 002: ID 22b8:2cf2 Motorola PCS
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 001: ID 0000:0000


  • The result might be different on your machine, in second line shows us the device we're going to configure it's a Motorola PCS with vendor id 22b8 and product id 2cf2

  • The next step still at the terminal type sudo modprobe usbserial vendor=0x22b8 product=0x2cf2

    this command in order to add module usb serial to kernel with vendor and product number we got from previous command

  • If you found this respond

    bash: modprobe: command not found

    it means modprobe command is not in execution path, to find its location

  • Type whereis modprobe
    the results is
    modprobe: /sbin/modprobe /etc/modprobe.conf /etc/modprobe.d /usr/share/man/man8/modprobe.8.gz

  • It means modprobe command is under /sbin directory, so to execute this command you can type sudo /sbin/modprobe usbserial vendor=0x22b8 product=0x2cf2

  • Then to check is the ponsel recognized by kernel, we use dmesg and the result is
    ...
    
    usb 3-1: new full speed USB device using uhci_hcd and address 4 usb 3-1: configuration #1 chosen from 1 choice usb 3-1: New USB device found, idVendor=22b8, idProduct=2cf2 usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 3-1: Product: Motorola W362 usb 3-1: Manufacturer: Motorola, Incorporated...

  • Then type sudo wvdial /etc/wvdial.conf, this command to configure our phone and write it to file /etc/wvdial.conf, this the result

    Modem Port Scan<*1>: S0   S1   S2   S3   S4   S5   S6   S7
    WvModem<*1>: Cannot get information for serial port.
    ttyUSB0<*1>: ATQ0 V1 E1 – OK
    ttyUSB0<*1>: ATQ0 V1 E1 Z – OK
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 – OK
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 – OK
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 – OK
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 – OK
    ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
    ttyUSB0<*1>: Speed 9600: AT – OK
    ttyUSB0<*1>: Max speed is 9600; that should be safe.
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 – OK
    WvModem<*1>: Cannot get information for serial port.
    ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
    ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
    ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
    ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
    

  • Next step we have to put our ISP details to configuration file such phone, username, and password by type sudo gedit /etc/wvdial.conf

    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    Stupid Mode = yes
    Baud = 9600
    New PPPD = yes
    Modem = /dev/ttyUSB0
    ISDN = 0
    Phone = <type your ISP dial number>
    Username = <your ISP username>
    Password = <your ISP password>

  • If needed we have to add IP and DNS address of our ISP in resolv.conf file under /etc directory our you can create it by type sudo gedit /etc/resolv.conf and add nameserver xxx.xxx.xxx.xxx(your ISP DNS address) in this file.

  • And we're ready to connect to internet by type sudo wvdial, the result is

    --&gt; WvDial: Internet dialer version 1.60

    --&gt; Cannot get information for serial port.
    --&gt; Initializing modem.
    --&gt; Sending: ATZ
    ATZ
    OK
    --&gt; Sending: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0
    OK
    --&gt; Modem initialized.
    --&gt; Sending: ATDT#777
    --&gt; Waiting for carrier.
    ATDT#777
    CONNECT
    --&gt; Carrier detected. Starting PPP immediately.
    --&gt; Starting pppd at Thu Oct 1 18:07:42 2009
    --&gt; Pid of pppd: 4324
    --&gt; Using interface ppp0
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]
    --&gt; local IP address xxx.xxx.xxx.xxx
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]
    --&gt; remote IP address xxx.xxx.xxx.xxx
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]
    --&gt; primary DNS address 10.88.77.6
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]
    --&gt; secondary DNS address 202.147.192.4
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]
    --&gt; Script /etc/ppp/ip-up run successful
    --&gt; Default route Ok.
    --&gt; Nameserver (DNS) Ok.
    --&gt; Connected... Press Ctrl-C to disconnect
    --&gt; pppd: �[7f][0b]�8�[06][08](�[06][08]


  • Keep the terminal open, do not close it.
  • You can check using ifconfig
  • And ping by type ping google.com
  • If success you can open your browser and start to surf

Review http://www.computer-issue.blogspot.com on alexa.com

0 comments:

Post a Comment