HASANEN.COM

Me & Linux

  • Home
  • Contact Me
  • CV
  • Projects
  • Gallery
  • Videos

Pages

    • Contact Me
    • CV
    • Gallery
    • Projects
      • MyClipboard
    • Videos

Random Videos

  • Get the Flash Player to see the wordTube Media Player.

Blogroll

  • Iraqi Linux User Group
  • My Wiki
  • OSNEWS
  • Slashdot
  • SNONO SYSTEMS

Calendar

September 2010
M T W T F S S
« Dec    
 12345
6789101112
13141516171819
20212223242526
27282930  

Recent Entries

  • Getting Huawei EC-121 to work on Ubuntu 8.10
  • 10 Ultimate Rules for Effective System Administration
  • MPlayer unable to play rmvb files
  • How to recognise good programmers ?
  • 9 Characteristics of Free Software Users
  • Windows Authentication via LDAP
  • Using libusb, writing linux usermode drivers
  • Postfix not creating mail directories
  • MSN , GTalk , Yahoo voice chat on linux

Recent Comments

  • 19.03 | Антон Павлович in Postfix not creating mail directories
  • 21.12 | jkreddy in Getting Huawei EC-121 to work on Ubuntu 8.10
  • 09.10 | Saad Mahmood in Contact Me
  • 18.04 | Andy in Videos

Meta

  • Log in
  • Valid XHTML
  • Debt & Free Encyclopedia

Sponsors

Getting Huawei EC-121 to work on Ubuntu 8.10

Dec 11th, 2008 by admin

Recently I bought Huawei EC-121 modem from Omnnea (Iraqi CDMA operator) with monthly subscription , it works fine on Windows but when I plugged it in Ubuntu 8.10 NetworkManager didn’t detect anything….however, dmesg showed 3 modems detected by the kernel ttyUSB0…ttyUSB2…if it takes long time to detect the modems just try to rmmod usb-storage to ignore the embedded CD-Drive emulator.

Getting this thing to work under Linux wasn’t hard at all , prepare your wvdial configuration :

sudo gedit /etc/wvdial

replace the contents of the file with the fo

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 M1 L1 X3 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Abort On No Dialtone = False
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = omnnea
Password = omnnea

Now try to connect using wvdial :

sudo wvdial

you will get something like this :

WvDial: Internet dialer version 1.60

Cannot get information for serial port.

Initializing modem.

Sending: ATX3

ATX3

OK

Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

OK

Modem initialized.

Sending: ATM1L3DT#777

Waiting for carrier.

ATM1L3DT#777

CONNECT 153600

Carrier detected. Waiting for prompt.

~[7f]}#@!}!} } }=}!}$}%\}”}&} } } } }#}%B#}%}%}&.|&p}’}”}(}”qW~

PPP negotiation detected.

Starting pppd at Thu Dec 11 14:10:23 2008

Pid of pppd: 6515

Using interface ppp0

local IP address 10.10.6.148

remote IP address 192.168.2.2

primary DNS address 192.168.1.1

secondary DNS address 4.2.2.5

For some reason wvdial doesn’t change the DNS name servers so you have to do it manually :

sudo gedit /etc/resolv.conf

and add the following name servers :

nameserver 192.168.1.1

nameserver 4.2.2.5

Posted in Iraq, Linux, computers | 1 Comment

One Comment to “Getting Huawei EC-121 to work on Ubuntu 8.10”
  1. on 21 Dec 2008 at 11:36 pm#1jkreddy

    HI, I have tried to connect ec121 modem on FEDORA 9. :

    I am exeperiencing like this:
    1) wvdialconf /etc/wvdial.conf
    2) replace ph no and, uname and paswd as valid.

    3) [root@localhost ~]# wvdial

    –> 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 153600
    –> Carrier detected. Waiting for prompt.
    ~[7f]}#@!}!}!} } PPP negotiation detected.
    –> Starting pppd at Sun Dec 21 16:01:13 2008
    –> Pid of pppd: 15326
    –> Using interface ppp0
    –> pppd: �[1c]� �[18]�
    –> pppd: �[1c]� �[18]�
    –> pppd: �[1c]� �[18]�
    –> pppd: �[1c]� �[18]�
    –> local IP address 220.226.80.185
    –> pppd: �[1c]� �[18]�
    –> remote IP address 220.224.135.71
    –> pppd: �[1c]� �[18]�
    –> primary DNS address 202.138.103.100
    –> pppd: �[1c]� �[18]�
    –> secondary DNS address 202.138.96.2
    –> pppd: �[1c]� �[18]�

    ^CCaught signal 2: Attempting to exit gracefully…
    –> Terminating on signal 15
    –> pppd: �[1c]� �[18]�
    –> Connect time 0.1 minutes.
    –> pppd: �[1c]� �[18]�
    –> pppd: �[1c]� �[18]�
    –> Disconnecting at Sun Dec 21 16:01:22 2008

    — If u have any solutions Pls let me know.

    Thanks in advance.

HASANEN.COM © 2010 All Rights Reserved.
Dark Effect by Free WordPress Themes
Myspace Friend Adder | Forum Signatures | Free Webmaster Resources | Funny Videos [x]
Back to Top