Tuesday, May 15, 2012

Pin It

Install Modem Smartfren Haier CE682 on Ubuntu 12.04 Precise Pangolin

Install Haier CE682

This is My First Modem, hehehe....
and i use the connection of Smartfren Indonesia, and of course u can use , another provider too . firstly, i wanna say about this tutorial intended for beginner.
alright, let's Prepare, The things u need :

Download here :

  1. Libssl
  2. Libwvstream-Base
  3. Libwvstream-Extras
  4. Libuniconf
  5. Wvdial 
Ok , those all we need, and then , let's do it ....
  • Install all file from number 1 to 5
    Open up terminal and install using  sudo dpkg -i .... , change "..." to the file
  • if have all installed, plug in the Haier CE682, and check it out.
    type  lsusb . you will find ID 201e:1022 ,that's your CE682 have recognized by Ubuntu , and check again if you unsure type  dmesg|tail  , you will find SVDISK EVDO ReV A , That's CE682 in Indonesia, i don't know in your Country.
    note : If you are using 10.04 Lucid Lynx, you need to Eject it first , type sudo eject /dev/sr1

  • ok, Next type sudo gedit /etc/usb_modeswitch.conf

    copy and paste this Code to the bottom
    ########################################################
    # /etc/usb_modeswitch.conf
    #
    # Smart Haier CE682 (EVDO)
    #

    DefaultVendor = 0x201e
    DefaultProduct = 0×1022

    TargetVendor = 00x201e
    TargetProduct = 0×1022

        MessageContent=”5553424312345678c00000008000069f030000000000000000000000000000″ 
  •   
  • Type sudo gedit /etc/udev/rules.d/99-haier-ce682.rules
    copy and paste this code
    ########################################################
    # /etc/udev/rules.d/99-zte-ce682.rules
    #
    # Smart Haier CE682 (EVDO)
    #
    SUBSYSTEM==”usb”, SYSFS{idVendor}==”201e”,
    SYSFS{idProduct}==”1022″, RUN+=”/usr/sbin/usb_modeswitch –default-vendor 0x201e –default-product 0×1022 –message-content 5553424312345678c00000008000069f030000000000000000000000000000″

  •  Type  sudo modprobe usbserial vendor=0X201e product=0X1022
  •  Now, let wvdial scan your modem , type sudo wvdialconf
    if that's not fail, it must be like this
    Editing `/etc/wvdial.conf’. Scanning your serial ports for a modem.
    ttyS0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
    ttyS0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
    ttyS0: ATQ0 V1 E1 — and failed too at 115200, giving up.
    ttyS1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
    ttyS1: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
    ttyS1: ATQ0 V1 E1 — and failed too at 115200, giving up.
    Modem Port Scan: S2 S3 S4 S5 S6 S7 S8 S9
    Modem Port Scan: S10 S11 S12 S13 S14 S15 S16 S17
    Modem Port Scan: S18 S19 S20 S21 S22 S23 S24 S25
    Modem Port Scan: S26 S27 S28 S29 S30 S31
    WvModem: Cannot get information for serial port.
    ttyUSB0: ATQ0 V1 E1 — OK
    ttyUSB0: ATQ0 V1 E1 Z — OK
    ttyUSB0: ATQ0 V1 E1 S0=0 — OK
    ttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OK
    ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
    ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
    ttyUSB0: Modem Identifier: ATI — Manufacturer: +GMI: China TeleCom
    ttyUSB0: Speed 9600: AT — OK
    ttyUSB0: Max speed is 9600; that should be safe.
    ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
    WvModem: Cannot get information for serial port.
    ttyUSB1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
    ttyUSB1: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
    ttyUSB1: ATQ0 V1 E1 — and failed too at 115200, giving up.
    WvModem: Cannot get information for serial port.
    ttyUSB2: ATQ0 V1 E1 — OK
    ttyUSB2: ATQ0 V1 E1 Z — OK
    ttyUSB2: ATQ0 V1 E1 S0=0 — OK
    ttyUSB2: ATQ0 V1 E1 S0=0 &C1 — OK
    ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
    ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
    ttyUSB2: Modem Identifier: ATI — Manufacturer: +GMI: China TeleCom
    ttyUSB2: Speed 9600: AT — OK
    ttyUSB2: Max speed is 9600; that should be safe.
    ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
    Found a modem on /dev/ttyUSB0.
    Modem configuration written to /etc/wvdial.conf.
    ttyUSB0: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
    ttyUSB2: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
    as you can see, your madem was detected as /dev/ttyUSB0
  • next type sudo gedit /etc/wvdial.conf
    copy and paste this to the file
    [Dialer smart]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Stupid Mode = 1
    Modem Type = Analog Modem
    Command Line = ATDT
    ISDN = 0
    New PPPD = yes
    Phone = #777
    Modem = /dev/ttyUSB0
    Username = smart
    Password = smart
    Baud = 460800
     you can change the red word with your own setting , look at your specific provider setting
  • and finally type sudo wvdial smart  
    --> 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
    --> Modem initialized.
    --> Sending: ATDT#777
    --> Waiting for carrier.
    ATDT#777
    CONNECT 3100000
    --> Carrier detected.  Starting PPP immediately.
    --> Starting pppd at Tue May 15 19:23:23 2012
    --> Pid of pppd: 2002
    --> Using interface ppp0
    --> pppd: 8B� XB�
    --> pppd: 8B� XB�
    --> pppd: 8B� XB�
    --> pppd: 8B� XB�
    --> local  IP address 10.1xx.2xx.xx9
    --> pppd: 8B� XB�
    --> remote IP address 10.1x.9x.1x
    --> pppd: 8B� XB�
    --> primary   DNS address 10.xx.x.2xx
    --> pppd: 8B� XB�
    --> secondary DNS address 10.1x.x.2xx
    --> pppd: 8B� XB�  

    if u can see the IP address, it means you have connected to Internet
  • Type sudo modprobe usbserial vendor=0X201e product=0X1022 and sudo wvdial smart every you wanna get connect , but in 10.04 you must eject first  sudo eject /dev/sr1
    Please comment, if you are unsatisfy, and remember this tutorial Intended For NEWBIE like me
Like the Post? Do share with your Friends.

Reaksi:

0 komentar:

Post a Comment