Configuring CDMA Wireless Modem in Linux

UTL has been providing Wireless Internet Connection for over four months now and many Nepali have been using it as the only way to browse the internet. However, many users have have failed to configure the low cost brandless (or with some brand like Glink, Blink etc) USB modems in Linux. I will try to help you to configure your UTL Wireless modem to work under Linux.

First of all, you will need to check whether your usbserial device is detected as an ACM device or just a USB device.

To do so, disconnect your modem and re-connect it again, wait for a while, and type in the following in terminal:
$ modprobe cdc_acm

Now, type in
$ dmesg | tail

If you see something like the following, “ttyACM0: USB ACM device”, your device is detected as USB ACM device. If  you see something like “converter now attached to ttyUSB0” instead, your modem is not detected as ACM device but a USB device. If you see nothing like the above mentioned, your modem may not work with Linux.

If your device is detected as an ACM device, you are lucky and your modem will most probably work with Linux. Make sure you have wvdial installed*,  and just do a
$ wvdialconf
as root** and your modem must be detected. If you see something like:
Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
Now, edit your wvdial.conf with your favourite editor as root*** and enter your Username, Password and Phone Number and save the file. Now, run wvdial as root and you should be connected to the internet.

If your device is not detected as an ACM device, you should try
$ wvdialconf
as root once and if your modem is detected (which is very less likely), you can follow the procedure explained above. If it is not detected, open up /etc/wvdial.conf with your favourite text editor as root***, enter the following text replacing the original contents and save the file. Replace myphonenumber with your phone number.
;—————-
;Thanks to mazzako forum member adimn for posting this
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 230400
Init1 = ATE0
#Init2 = AT$PBTYPE=1 RPTCON=1 MTRPTTYPE=3 SMSRUIM=0 SMSTYPE=1
Init3 = AT+CTA=0
Init4 = ATEOV1
Init5 = AT
Init6 = ATS0=0
ISDN = 0
Modem Type = Analog Modem
Phone = #777
Username = myphonenumber@utlnepal.com
Password = myphonenumber
Stupid Mode = 1
New PPPD = yes
;—————-

Now, run
$ wvdial
as root and you should be connected if you are lucky. Try a few times before you give up.

* Jaunty Jackalope does not have wvdial installed by default. To install it, follow the older post.
** In Ubuntu, you should run programs
$ sudo wvdialconf
and enter your user password when asked.
*** You can run
$ gksu gedit /etc/wvdial.conf
and enter password for your user, if needed, in Ubuntu.

Please share your results.

  • raju

    I have ultimate ubuntu 2.0.
    I also want configure UTL wireless modem in ubuntu.
    what sholuld i do.

  • I want to us Glink CDMA 1x usb modem to browse internet in Ubunutu operating system. But I could not set up any body know about this setting ? Please advice

  • admin

    ^Please mention the version of Ubuntu you are using. Please open up terminal and then type in sudo wvdialconf and post the output. Also post the output of lsusb.

  • My Glink cdma 1x is not detected on xubuntu 7.1
    When I do lsusb, I see my modem recognized.
    When i launch the wvdialconf, it says : “modem not detected. ….
    is it in use by another program ? ………..”
    Can you help me ?

  • dmesg gives me that : “converter now attached to ttyUSB0″
    but the answer of the wvdialconf is “modem is not detected”.

  • admin

    @Roman
    You may not be able to configure it with wvdialconf. You should use another approach mentioned above.

  • Thanks for your quick reply. ok I can not with a wvdial.
    Do you mean I need another approach as gnomeppp, kppp ? or do I need to use windows ?

  • admin

    I didn’t say you can’t with wvdial. I said you can’t with wvdialconf.

    See the section after “If your device is not detected as an ACM device, you should try” in the above article.

  • Hari K Paudel

    iam from POKHARA. I have a mobile of INDICOM C2900I model i have use UTL ruim card on it but i have n’t connect internet in the UBUNTU 9.10 (karmic).

    PLEASE ANY ONE HELP ME TO CONNECT INTERNET IN THE UBUNTU please………………………….

  • Hari K Paudel

    when I type in UBUBTU TERMINAL dmesg |tail

    yesto dekhauncha

    [ 163.337954] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
    [ 163.337978] option 3-2:1.0: device disconnected
    [ 163.338101] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
    [ 163.338120] option 3-2:1.1: device disconnected
    [ 166.008019] usb 3-2: new full speed USB device using uhci_hcd and address 5
    [ 166.283147] usb 3-2: configuration #1 chosen from 1 choice
    [ 166.289305] option 3-2:1.0: GSM modem (1-port) converter detected
    [ 166.289413] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB0
    [ 166.291250] option 3-2:1.1: GSM modem (1-port) converter detected
    [ 166.291352] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB1.

    Please help me to solve this problem in the UBUNTU

  • admin

    ^did you try editing /etc/wvdial.conf and placing the code as described above? You should also try changing ttyUSB0 to ttyUSB1 as 2 modems are being detected and both are detected as GSM modems. I think one is GSM and other is CDMA. Give it a try and let me know.

  • Hari K Paudel

    wvdial is not installing in UBUNTU 9.10 karmi why ?????????

  • hi
    i am neu in ubuntu os i want to connect internet through bsnl evdo card
    but i have a problem with installing wvidial . whan i use sudo apt-get install wvdial than result is

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package wvdial is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package wvdial has no installation candidate

    any one plz help me out to install wvdial ….

    • admin

      @dinesh
      You must have a working internet before you can install wvdial. If you do, you must perform the apt-update before you will be able to install it. You can do so by executing: sudo apt-get update.
      After that, sudo apt-get install wvdial should work. if it doesn’t make sure you have checked the “Cannonical supported open source software” in synaptic>repositories.

  • basically i have an Internet connection through college wifi and it have an particular ip and port with user-name and password…and many of sites are blocked by college administrator
    also try sudo apt-get install
    but it cant help….

  • error looking like
    dinesh@dinesh-desktop:~$ sudo apt-get update
    Ign http://security.ubuntu.com karmic-security Release.gpg
    Ign http://security.ubuntu.com karmic-security/main Translation-en_IN
    Ign http://security.ubuntu.com karmic-security/restricted Translation-en_IN
    Ign http://in.archive.ubuntu.com karmic Release.gpg
    Ign http://in.archive.ubuntu.com karmic/main Translation-en_IN
    Ign http://in.archive.ubuntu.com karmic/restricted Translation-en_IN
    Ign http://security.ubuntu.com karmic-security/universe Translation-en_IN
    Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_IN
    Ign http://security.ubuntu.com karmic-security Release
    Ign http://in.archive.ubuntu.com karmic/universe Translation-en_IN
    Ign http://in.archive.ubuntu.com karmic/multiverse Translation-en_IN
    Ign http://in.archive.ubuntu.com karmic-updates Release.gpg
    Ign http://in.archive.ubuntu.com karmic-updates/main Translation-en_IN
    Ign http://in.archive.ubuntu.com karmic-updates/restricted Translation-en_IN
    Ign http://in.archive.ubuntu.com karmic-updates/universe Translation-en_IN
    Ign http://in.archive.ubuntu.com karmic-updates/multiverse Translation-en_IN

    etc etc….

    • admin

      That is not error. You must let it do the updating and then try sudo apt-get install wvdial. What happens when you search wvdial in synaptic package manager (System>Administration>Synaptic Package Manager)?

  • that have no result 🙁

  • admin

    ^goto Synaptic>Settings>Repositories>Ubuntu Software
    Now, “check” the option “Cannonical Supported Open Source Software”. Now close and Reload. After that, you should be able to install wvdial.

  • after 73 out of 96 packets error occur i.e.

    Could not download all repository indexes

    The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/source/Sources.gz 407 Authentication required

    etc.etc…

    • admin

      dinesh,
      you will need to show your full errors. Please paste them in pastebin (or upload somewhere else) and post links here.

  • Could not download all repository indexes

    The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/source/Sources.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/source/Sources.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/universe/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/universe/source/Sources.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/multiverse/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/multiverse/source/Sources.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic/main/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic/restricted/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic/main/source/Sources.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic/restricted/source/Sources.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic/universe/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic/universe/source/Sources.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic/multiverse/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic/multiverse/source/Sources.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic-updates/main/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic-updates/restricted/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic-updates/main/source/Sources.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic-updates/restricted/source/Sources.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic-updates/universe/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic-updates/universe/source/Sources.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic-updates/multiverse/binary-i386/Packages.gz 407 Authentication required
    Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/karmic-updates/multiverse/source/Sources.gz 407 Authentication required
    Some index files failed to download, they have been ignored, or old ones used instead.

  • admin

    dinesh
    I see you are using a Proxy that needs authentication. Is it correct?
    If so, Goto Settings>Preferences>Network and input your proxy and authentication credentials. Then reload again. That should work.

  • I was used that proxy already, but it cant work ….
    I think I have done all stuffs to connecting Internet via BSNL EVDO but cant help it …..

  • admin

    ^The problem is with your current internet friend. you gotta install wvdial someway.

    I think internet is working in your browser or have access to internet in some way.
    So, you can download individual packages from:
    http://packages.ubuntu.com/karmic/wvdial
    and when you try to install, it should give you dependency error. Download respective package from the same website and install them one by one.

  • hay friend ,
    now I am suffering from another problem , here I am using Internet through wifi by my friend pc connecting via wifi add hog here all things are correct but i can not able to remove proxy settings in terminal window when I use command sudo apt-get update
    than error occur like

    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/i18n/Translation-en_IN.bz2 Unable to connect to 192.168.10.2 8080:

  • admin

    ^check Synaptic proxy settings. Also check Preferences>Network Proxy

  • I have done all stuffs…
    i think its a bug of ubuntu :'(

  • admin

    try:
    unset http_proxy
    followed by
    sudo apt-get update

    That should work. But it is a temporary fix.

  • hay my friend 🙂
    Thanks for your replays, now I am open source user 🙂
    may you add me @ gmail or give me your mail id

    thanks again

  • admin

    ^nice to know. You are welcome.

  • hey,I have a cdma 1-x modem and an utl sim.I cannot access internet iin ubuntu 9.10 netbook remix.when i use wvdialconf,it says wvdial is not installed.When i use modprobe cdc_acm,it says error,cdc_acm is not recognized….what can i do?
    please respond soon….

  • admin

    ^Hi Deepesh,
    wvdial is not installed by default in Jaunty and up (if I remember correctly), so you will need to install it first. To do so, you can use other internet connection which you can manage.
    Or else, you can follow these instructions:
    Open the Terminal
    Now, type in: sudo apt-get install wvdial
    Now, in the error message that comes, you will see a list of URLs ending in .deb. Download all these debs from the internet elsewhere and install them one by one (if you can’t install one package due to dependency message, you can skip it and install the next and come back to that one) or you can just change the directory to the one containing all the debs you downloaded and type in: sudo dpkg -i *.deb.
    Now, you should be able to run wvdialconf and continue with the tutorial.

  • devkota

    I have been successfully surfing internet via Ethernet in my Ubuntu 9.04 installation.
    I have got a G-Link CDMA 1X usb device to use the UTL internet service in Ubuntu 9.04.
    It is detected as USB.
    I installed wvdial .
    Now I can ping to sites(e.g. google.com) and so on.
    Ubuntu can update via this connection.
    I can successfully open webpages in console (e.g. )
    The problem that I am facing is that I cannot open pages in browser, it acts as if there is no any internet connection,e.g. cannot open google in the firefox(but via the ethernet connection there is no problem).

    Is it the problem due to wvdial configuration. The content of the /etc/wvdial.conf is as follows:
    ——————————————————————–
    [Dialer Defaults]
    Modem = /dev/ttyUSB0
    Baud = 230400
    Init1 = ATE0
    #Init2 = AT$PBTYPE=1 RPTCON=1 MTRPTTYPE=3 SMSRUIM=0 SMSTYPE=1
    Init3 = AT+CTA=0
    Init4 = ATEOV1
    Init5 = AT
    Init6 = ATS0=0
    ISDN = 0
    Modem Type = Analog Modem
    Phone = #777
    Username = *********@utlnepal.com
    Password = *********
    Stupid Mode = 1
    New PPPD = yes
    —————————————————

    Thanking you

    • admin

      Hi Devkota Ji,
      What error message do you get with Firefox? Did you review your proxy settings?
      Do other programs such as synaptic work?
      Have you tried another browser (sudo apt-get install epiphany-browser and launch epiphany)?

      Regards
      _khAttAm_

  • devkota

    Hi admin,
    thanks for your guidance.
    I installed chrome and could browse the internet.
    Again, I figured out that firefox preference was changed as such for getting the problem (i was not aware how it happened).

    cheers

  • sakh nawab arzoo

    sir, how to connect ct800p to internet in ubuntu 10.04?
    my modem is not detected by ubuntu…..
    so please help me as soon as possible?????????

    • admin

      Hi sakh, I have not come around the modem you are refering to. Did you try what I have posed here?

      Regards
      _khAttAm_

  • SAMEER

    nice to know there is such a place for linux nepal community
    keep up the good work

  • Alan Nixon

    9. Buddy, your site is magnificent by some means realizes me at instant that even how simple the thing is, it is still complex. However, it takes additional careful when meeting those issues.

  • Bijendrabajra

    wvdialconf /etc/wvdial.conf produces something else

  • fb.com/sagardev1998

    M Happy so much that such nice linux community in nepali blog.
    it’s awesome thankyou admin……………..