Connecting MTS Mblaze USB Modem in Ubuntu

I recently bought myself an MTS Mblaze wireless USB Modem. Connecting it on Linux was difficult because there was practically no tutorial for MTS USB Modem, while many were available for Reliance and Tata Indicom Modems. So here is what I did to finally get it connected (Note : Execute all commands as ROOT )

i) You’d have to install the package USB-ModeSwitch. It is available here : http://packages.debian.org/sid/usb-modeswitch

Note : When you open the above link, you should check out its dependencies and also install the dependency package ” usb-modeswitch-data”.

Just download and double-click on it to install the package.

ii) After you’ve installed usb-modeswitch and usb-modeswitch-data packages, reboot your computer.

iii) Connect the Mblaze Modem and wait for 30 seconds. While you’re waiting, the usb-modeswitch package is doing magic in the background, you can check the status through the following command :

dmesg

iv) I hope you have “wvdial” pre-installed on your system. You can check that by typing “wvdial” and see if the computer recognises it. If it doesn’t then you’d have to install it. Its easy, refer this link.

v) Now edit the file /etc/wvdial.conf (If it doesn’t exists, then create it) as Root and copy paste the following code :

[Dialer cdma]
Stupid Mode = 1
Inherits = Modem0
Password = mts
Username = internet@internet.mtsindia.in
Phone = #777

[Modem0]
Init1 = ATZ
SetVolume = 0
Modem = /dev/ttyUSB0
Baud = 115200
FlowControl = Hardware (CRTSCTS)
Dial Command = ATDT

Note that ttyUSB0 may be different for your system. However, first try with the above code, if it doesn’t works and says some error like “ttyUSB0 doesn’t exists” or something similar to it, then find out the actual one by going through the output of following command :

dmesg | grep -e “modem” -e “tty”

vi) That’s it, you’re done. Now start browsing with the following command :

wvdial cdma

As soon as you start seeing some IP addresses, you’re online! DO NOT close the terminal in which you executed the command, otherwise you will get disconnected.

And from next time, you don’t have to it all over again. Simply connect your modem, wait for 30 seconds and type the last command. To disconnect, goto the terminal, and press Ctrl + C.

Hope it worked for you, if any problems occured, you can leave a reply !

142 comments on “Connecting MTS Mblaze USB Modem in Ubuntu

  1. chandan@chandan-laptop:~$ wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    OK
    –> Modem initialized.
    –> Sending: ATDT#777
    –> Waiting for carrier.
    ATDT#777
    CONNECT
    –> Carrier detected. Starting PPP immediately.
    –> Starting pppd at Sat Jun 19 02:22:42 2010
    –> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
    –> –> PAP (Password Authentication Protocol) may be flaky.
    –> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
    –> –> CHAP (Challenge Handshake) may be flaky.
    –> Pid of pppd: 1713
    –> Disconnecting at Sat Jun 19 02:22:42 2010
    –> The PPP daemon has died: pppd options error (exit code = 2)
    –> man pppd explains pppd error codes in more detail.
    –> I guess that’s it for now, exiting
    –> The PPP daemon has died. (exit code = 2)

  2. Just want to say what a great blog you got here!
    I’ve been around for quite a lot of time, but finally decided to show my appreciation of your work!

    Thumbs up, and keep it going!

  3. Hey i need to know my root password.. how can i get that.. i don remember that i gave any root password while installing..

    • If you didnt specify any root password, then its your own password. Just type “sudo -s -H” and enter your password. You should get a root shell.

  4. It was an awesome tutorial which can be taken by MTS to explain to its users. Good work Nittan (thumbs up)…

    • Yes, infact there is an awesome tool. Check out “vnstat”.
      Install vnstat and normally browse using MTS. Next time you want to see your usage, type the following commands :
      To see usage by days :
      >vnstat -i ppp0 -d
      To see usage in last 24 hours per hour :
      >vnstat -i ppp0 -h
      To see Top 10 usage days :
      >vnstat -i ppp0 -t

      Note : ppp0 may be different in your computer. After connecting modem, type “ifconfig” in terminal and see what all interface are listed in the 1st column. eth0,1 are ethernet wired-networks, wlan is wireless, ppp is dsl connected. So find out the exact pppX , where X is some number.

  5. Thanks for the tutorial. Worked like a charm.

    Quick question, would be possible to have a “shortcut” for that last command so I don’t have to open the terminal window everytime.

  6. first af all let me congratulate you on the superb tutorial for mts secondly i am facing a problem i am able to connect and dial and evert thing goes well but however internet does not seem to be working i think so my network applet has some problem with it so thats why my browser is not having internet also i hava a 64 amd os of ubuntu installed…

  7. hey i found the answer to my question the browser had work offline enabled in the file menu which i unchecked and now itz working as a charm

  8. Thanks for the post. It got me up and running on Ubuntu. I am now facing the problem that I can only connect in Hybrid mode under windows but can not connect at all using the information given in here in linux. Does anyone know how to get wvdial to connect in Hybrid mode? Thanks.

  9. Excellent work dude… cant be better and clear than this..

    i was wondering about 1 thing; normally in windows MTS gives options for different modes— hybrid, 1x and cdma…..in ubuntu 10.04 how do i know that
    Another thing is baud rate mentioned in wvdial.conf can it be increased or is it maximum or something like that…. please explain

  10. jereme… mblaze is also offering a .deb package of their dialer application..i used the same package [.exe offcourse] in windows xp and it allowed me to check my balance also set something called as “BROADBAND MODE” when using this mode the speeds to download a torrent reaches to a max of 294KB/S not “Kbs”…the question i have is that wen i install their application “crossplatformui” it breaks the system….is there a way to specify to wvdial touse the broadband mode?

  11. the ubantu application on the USB card is CrossPlatformUI-1.0.27***.deb

    Simply double clicking on that and running it installs the Mblaze application. As per tech support, you “have” to install it, otherwise you wont be able to activate the recharge coupons or see signal strength or check balance.

  12. HEY BUDDY

    Thank you for your helpful page.
    although i have been a8ble to successfully install usb-modeswitch and usb-modeswitch-data i am una8ble to follow the remaining commands… I am a new8bie to Linux and am learning it on my own hence it will 8be 8great if you can please help me out

  13. Hi,

    I couldn’t find a .deb application on my MTS modem. The only cross platform alternative was a Mac file. Do you know where I could download CrossPlatformUI-1.0.27***.deb?

    thanks

  14. hi,

    I use the ZTE AC2746 model.
    I put the deb file at http://rapidshare.com/files/413879966/CrossPlatformUI-V1.0.27-SSTL-i386-ubuntu.deb/

    Although when I installed it on my 10.04 ubantu, I got an error while installing. However switching off the computer and starting it again and then going to menu-> internet->ztemtUI brings up the UI and it works fine for me. I can connect and switch between broadband and hybrid mode and activate the recharge coupons as well.

    • Its nice that MTS release that package .. but still I prefer the terminal-based way ! For recharging and all, I can always switch to windows. But one thing I couldn’t achieve in Windows recently is the support for various MTS Mblaze models… Every MTS model requires a new installation and even then it failed to detect the model sometimes .. but when in Linux, it will work with ANY MTS Mblaze model with 100% guarantee ..

    • Actually it should work, but that’s not recommended.. in the terminal, first press Ctrl + C and wait for it to disconnect properly .. then close the terminal.

  15. what should I do it to start browsing on Win 7 ..I tried everything i am fed up now bro.. their call centres didnt even tried to help me can you please tell how to start MTS on Win 7 ..ty 🙂

  16. Thank you for posting the Mblaze UI .deb file. I ran into an issue installing it. During the installation I get the error:

    cd: 160: can’t cd to /usr/local/bin/ztemtApp/zteusbserial/2.6.32

    In the ‘Included Files’ tab of the Package Install menu it lists zteusbserial/2.6.27 through zteusbserial/2.6.30. Any suggestions?

  17. i tried the same editing wvdial.cnf it says u do not have permission to save the file …can some one tell me how to get rid of the same

    • You are not editing it as root .. First log in as root, then edit the file. If you remember your root password, just type “su” in terminal. Otherwise, if you have sudo permissions, then try “sudo -s -H” and enter your password when asked.

      • I really appreciate your response
        Here is the output of wvdialconf

        Editing `/etc/wvdial.conf’.

        Scanning your serial ports for a modem.

        Modem Port Scan: S0 S1 S2 S3

        Sorry, no modem was detected! Is it in use by another program?
        Did you configure it properly with setserial?

        Please read the FAQ at http://open.nit.ca/wiki/?WvDial

        If you still have problems, send mail to .

        my df -h shows the device as
        /dev/sr1 38M 38M 0 100% /media/ZTEMT USB MODEM

        Please let me know any clue to enable this

        Thanks
        -tej

      • Ok, Finally its running…
        What I did???

        I have carefully read your blog and some comments which helped a lot.

        Thanks a lot… I can’t tell you how much happy i am feeling to browse from my ubuntu machine…

  18. [root@harsh ~]# wvdial cdma
    –> WvDial: Internet dialer version 1.61
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    –> Sending: ATQ0
    –> Re-Sending: ATZ
    –> Modem not responding.
    what shall I do?

  19. great instructions. i installed usb-modeswitch and its dependencies through synaptic. it installed although there was some error. then ran all commands and changes to the .conf file. when i finally ran wvdial cdma command it returned an error
    ~$ wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Cannot open /dev/ttyUSB0: Device or resource busy
    –> Cannot open /dev/ttyUSB0: Device or resource busy
    –> Cannot open /dev/ttyUSB0: Device or resource busy
    what does it mean and how do i correct it?
    thanks

    • First of all, it should be “sudo wvdial cdma” (unless you are already logged in as root).
      And this error generally comes when you have not given the device enough time to settle down. You can check the status by the command “dmesg”.
      I’ll suggest you to remove your device, and try again after few seconds and wait for few more seconds before running that command.

  20. Hi nice tutorial
    I run into followong problem
    sudo wvdial cdma
    — WvDial: Internet dilar version 1.60
    –>Initializing modem.
    –> sending: ATZ
    –> sending ATQ0
    –>re-sending ATZ
    –> Modem not responding
    pleaae guide

  21. I get This,

    ishan@fdsbox:~$ sudo gedit /etc/wvdial.conf
    ishan@fdsbox:~$ dmesg | grep -e “modem” -e “tty”
    ishan@fdsbox:~$ sudo wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Cannot open /dev/ttyUSB0: Device or resource busy
    –> Cannot open /dev/ttyUSB0: Device or resource busy
    –> Cannot open /dev/ttyUSB0: Device or resource busy
    ishan@fdsbox:~$

  22. All right it worked, but stops working after 15 minutes it gets disconnected probably some problem with usb-modeswitch any other better software than this?

    It gets disconnected after sometime for some weird reason :-S without giving the reason, it probably stops converting MBlaze into the modem :-S

    Any other method to probably use crossplatformui provided by MTS?

    • The crossplatformui distributed by MTS is indeed very buggy. Lets wait for some more time before they release a better version.
      And about your problem, are you sure you didnt close the terminal ?? 😛 Otherwise I see no reason why it would automatically stop working. Check your modem for loose connection also.

  23. i’m using ubuntu 10.10……and the first time i inserted mblaze device after installing…it surprisingly detected and even connected to internet using some additional settings…….but next time i login the device is not detected…..?????

    • Yeah, ubuntu 10.10 comes preinstalled with required packages. But I’d still advise you to use wvdial atleast. You won’t be needing to install usbmodeswitch package though.

  24. Hi!

    I *think* I’ve done everything as per your tutorial, but my modem still doesn’t get detected… 😦
    I’m using ubuntu 10.04 amd64

    Here are the outputs of the three relevant commands :

    **sudo wvdial cdma** :

    –> WvDial: Internet dialer version 1.60
    –> Cannot open /dev/ttyUSB0: No such file or directory
    –> Cannot open /dev/ttyUSB0: No such file or directory
    –> Cannot open /dev/ttyUSB0: No such file or directory

    **sudo wvdialconf** :

    Editing `/etc/wvdial.conf’.

    Scanning your serial ports for a modem.

    Modem Port Scan: S0 S1 S2 S3

    Sorry, no modem was detected! Is it in use by another program?
    Did you configure it properly with setserial?

    Please read the FAQ at http://open.nit.ca/wiki/?WvDial

    If you still have problems, send mail to .

    **dmesg** : it was too big, posting relevant bits!

    [ 2573.590783] usb-storage: device found at 6
    [ 2573.590787] usb-storage: waiting for device to settle before scanning
    [ 2578.591221] usb-storage: device scan complete
    [ 2578.594164] scsi 8:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
    [ 2578.597150] scsi 8:0:0:1: Direct-Access ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
    [ 2578.625139] sr1: scsi-1 drive
    [ 2578.625383] sr 8:0:0:0: Attached scsi CD-ROM sr1
    [ 2578.626879] sr 8:0:0:0: Attached scsi generic sg2 type 5
    [ 2578.629574] sd 8:0:0:1: Attached scsi generic sg3 type 0
    [ 2578.662155] sd 8:0:0:1: [sdb] Attached SCSI removable disk
    [ 2578.833155] sr1: CDROM (ioctl) error, command: Xdread, Read track info 52 01 00 00 00 01 00 00 08 00
    [ 2578.833179] sr: Sense Key : Hardware Error [current]
    [ 2578.833186] sr: Add. Sense: No additional sense information
    [ 2579.087125] ISO 9660 Extensions: Microsoft Joliet Level 3
    [ 2579.095140] ISOFS: changing to secondary root

    • Which kind of modem is it ?? Can you somehow send me a link or post an image of the hardware ? This “Microsoft Joilet Level 3” extension is not used in the normal MTS modems which are distributed. I’ve seen that in some of the reliance modems though.

  25. I’ve been trying to get a picture of the device, without results.
    Its a ZTE AC2746 modem, blue & black in color & apparently I can insert a MicroSD card in it as well…..rings a bell?

  26. hi thanks for ur info. but i got the error given below
    madan@madan-laptop:~$ wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Cannot open /dev/ttyUSB0: No such file or directory
    –> Cannot open /dev/ttyUSB0: No such file or directory
    –> Cannot open /dev/ttyUSB0: No such file or directory
    madan@madan-laptop:~$ dmesg | grep -e “modem” -e “tty”
    madan@madan-laptop:~$

    what do i have to do now…

      • Hi Abhishek,
        Thank you for the lovely tutorial, really. Saved me lot of headache. I’m surprised that you haven’t given the expected output as it should be seen.So here’s giving the output from my session.

        $ sudo wvdial cdma
        –> WvDial: Internet dialer version 1.60
        –> Cannot get information for serial port.
        –> Initializing modem.
        –> Sending: ATZ
        OK
        –> Modem initialized.
        –> Sending: ATDT#777
        –> Waiting for carrier.
        ATDT#777
        CONNECT
        –> Carrier detected. Starting PPP immediately.
        –> Starting pppd at Wed Nov 3 19:54:35 2010
        –> Pid of pppd: 2468
        –> Using interface ppp0
        –> local IP address 180.215.237.138
        –> remote IP address 10.214.64.1
        –> primary DNS address 10.216.254.131
        –> secondary DNS address 10.216.126.132

        As can be seen it could not find the serial port but still it works.

  27. hiitries as u said above but it didnot work I get this when i run dmesg | grep -e ‘modem’ -e ‘tty’:

    amit@amit-laptop:~$ dmesg | grep -e ‘modem’ -e ‘tty’
    [ 0.000000] console [tty0] enabled
    [ 17.067267] USB Serial support registered for GSM modem (1-port)
    [ 17.067577] option 2-1.5:1.0: GSM modem (1-port) converter detected
    [ 17.067760] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB0
    [ 17.067799] option 2-1.5:1.1: GSM modem (1-port) converter detected
    [ 17.067966] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB1
    [ 17.068003] option 2-1.5:1.2: GSM modem (1-port) converter detected
    [ 17.068158] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB2
    [ 17.068195] option 2-1.5:1.3: GSM modem (1-port) converter detected
    [ 17.068351] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB3
    [ 17.068389] option 2-1.5:1.4: GSM modem (1-port) converter detected
    [ 17.068539] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB4
    [ 17.068631] option: v0.7.2:USB Driver for GSM modems
    [ 171.681192] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
    [ 171.681385] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
    [ 171.681567] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
    [ 171.681747] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
    [ 171.681947] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
    [ 193.493038] option 2-1.5:1.0: GSM modem (1-port) converter detected
    [ 193.493163] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB0
    [ 193.493710] option 2-1.5:1.1: GSM modem (1-port) converter detected
    [ 193.493894] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB1
    [ 193.494522] option 2-1.5:1.2: GSM modem (1-port) converter detected
    [ 193.494733] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB2
    [ 193.495377] option 2-1.5:1.3: GSM modem (1-port) converter detected
    [ 193.495583] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB3
    [ 193.496132] option 2-1.5:1.4: GSM modem (1-port) converter detected
    [ 193.496350] usb 2-1.5: GSM modem (1-port) converter now attached to ttyUSB4

    and I get this when I type sudo wvdial cdma

    amit@amit-laptop:~$ sudo wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    –> Sending: ATQ0
    –> Re-Sending: ATZ
    –> Modem not responding.

  28. Hi Abhishek,

    Thanks for the tutorial. Everthing went well for me, but still I am not able to connect to internet.
    After running “sudo wvdial cdma”.. i get local IP, remote IP, primary DNS and secondary DNS. But, now if I open another terminal and type “ping google.com”.. it doesn’t work. Neither I am connect to internet by opening firefox.
    Using Ubuntu 10.04.
    Thanks in advance.
    Munish

  29. Thanks for the reply Abhishek. It started working after some time, probably MTS server itself was down before.
    But, I am not able to keep the connection connected as it gets disconnected in between sometimes.
    As an alternative way I installed Virtual Box 3.2 version (not OSE) and ran XP as guest client. Within this guest OS I am able to connect to internet.

  30. Hai there,

    This blog has started a long time and it has gone through reversal. I would like to know the correct and final setting to connect MTS mblaze modem to a ubuntu system.

    Thanks in advance
    JOHN C JAMES

  31. Pingback: Broadband Ringaround « Experiences in the community

  32. HI …Thanks a lot …it was such a wonderful guidelibe ….MTS guy spent hours ..trying to connect ..but could not do it …then i followed your web page and its done successfully !!

    thanks a lot !!

  33. first of all loads of thanks for helping out so many of us.. I got ubuntu 10.10 installed and then I also installed wvdialer.. I could easily configure vpn connection and make the device work. But, I have a problem. I get 1x speed here and am not able to get download speed greater than 14 kb/s. My model is ZTE AC2766.. Please help me out.

    • Thanks and Well, that depends on your location. By default, MTS works in Hybrid mode. So if you area has broadband, then it should automatically use the broadband. May be due to congestion or some other problems you’re not getting enough speed. I get 100 kbps + using the same configuration in mts 🙂

  34. Hi Abhishek,
    I have successfully connected the mbaze device but I am unable to browse the internet. What could be the reason? I have tried with Mozilla Firefox and Opera but in vain.

    This is the output of wvdial command and log message.

    Please Help.

    manish@ubuntu:~$ sudo wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    OK
    –> Modem initialized.
    –> Sending: ATDT#777
    –> Waiting for carrier.
    ATDT#777
    CONNECT
    –> Carrier detected. Starting PPP immediately.
    –> Starting pppd at Wed Dec 22 20:02:25 2010
    –> Pid of pppd: 2057
    –> Using interface ppp0
    –> pppd: [10]>z [10]>z
    –> pppd: [10]>z [10]>z
    –> pppd: [10]>z [10]>z
    –> pppd: [10]>z [10]>z
    –> pppd: [10]>z [10]>z
    –> pppd: [10]>z [10]>z
    –> local IP address 180.215.242.33
    –> pppd: [10]>z [10]>z
    –> remote IP address 10.214.192.1
    –> pppd: [10]>z [10]>z
    –> primary DNS address 10.216.254.131
    –> pppd: [10]>z [10]>z
    –> secondary DNS address 10.216.126.132
    –> pppd: [10]>z [10]>z

    #############33/var/log/messages#############3333

    Dec 22 20:00:53 ubuntu kernel: [ 1681.363484] option: v0.7.2:USB Driver for GSM modems
    Dec 22 20:00:54 ubuntu kernel: [ 1682.166171] scsi 4:0:0:0: Direct-Access ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
    Dec 22 20:00:54 ubuntu kernel: [ 1682.174141] sd 4:0:0:0: Attached scsi generic sg3 type 0
    Dec 22 20:00:54 ubuntu kernel: [ 1682.212159] sd 4:0:0:0: [sdc] Attached SCSI removable disk
    Dec 22 20:02:25 ubuntu pppd[2057]: pppd 2.4.5 started by root, uid 0
    Dec 22 20:02:25 ubuntu pppd[2057]: Using interface ppp0
    Dec 22 20:02:25 ubuntu pppd[2057]: Connect: ppp0 /dev/ttyUSB0
    Dec 22 20:02:25 ubuntu pppd[2057]: CHAP authentication succeeded
    Dec 22 20:02:25 ubuntu pppd[2057]: CHAP authentication succeeded
    Dec 22 20:02:25 ubuntu kernel: [ 1773.358935] PPP BSD Compression module registered
    Dec 22 20:02:25 ubuntu kernel: [ 1773.404707] PPP Deflate Compression module registered
    Dec 22 20:02:26 ubuntu pppd[2057]: local IP address 180.215.242.33
    Dec 22 20:02:26 ubuntu pppd[2057]: remote IP address 10.214.192.1
    Dec 22 20:02:26 ubuntu pppd[2057]: primary DNS address 10.216.254.131
    Dec 22 20:02:26 ubuntu pppd[2057]: secondary DNS address 10.216.126.132

      • Maybe, he didn’t go to the mobile broadband tab, wherein, he has to type in the username and password. It might help.
        vinod

  35. Hey! Thanks for the guide! 🙂
    I’ve got the same problem as Manish,i’m able to get connected but,not able to browse! The error I get in firefox is ‘server not found’. Kindly help me with this! Thanks! 🙂

  36. I have Ubuntu 10.10 installed recently. I am unable to decide on the dependencies while downloading the USB Mode Switch. Pl. guide me since I am a complete novice to Linux OS. How do you execute all commands as ROOT?
    How do you edit the file /etc/wvdial.conf file?
    Pl. guide me

    • Hi, the dependencies are clearly mentioned in the link I posted. Did you download the ZIP file for usb mode switch ? If yes, then you can fine a README inside it which explains clearly how to install it. To edit /etc/wvdial.conf, open a terminal and type the following command : “sudo gedit”. It may ask for your password, and then a notepad-like editor will open, using which open the wvdial.conf file and edit it. I hope it solves your problem.

  37. hi,
    i am new to ubuntu and i had bought mts mobile broadband connection
    last month at that time i was using Windows 7 but now i have both ubuntu 10.04 and windows 7 in my computer.
    i am unable t connect to internet using mts even after fllowing your steps i hav tried to install usb mode switch but its giving an eror that dependency is not satisfied:
    usb-modemswitch-data(>=20100127-1)
    please help me how can i connect to internet using mts mobile broadband.

    • It seems you’ve not installed the usb-modeswitch package properly. It contains 2 .deb files one of them is usb-modeswitch-data which you should install FIRST and then install the second package. This should resolve the dependency error.

      • i have tried to connect to the internet using wvdial but its showing the follwing codes……
        zubin@ubuntu:~$ wvdial
        –> WvDial:
        Internet dialer version 1.60

        –> Cannot get information for serial port.

        –> Initializing modem.

        –> Sending: 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

        –> Carrier detected. Starting PPP immediately.

        –> Starting pppd at Tue Apr 12 12:38:10 2011

        –> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
        –>
        –> PAP (Password Authentication Protocol) may be flaky.

        –> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
        –>
        –> CHAP (Challenge Handshake) may be flaky.

        –> Pid of pppd: 1514

        –> Disconnecting at Tue Apr 12 12:38:10 2011

        –> The PPP daemon has died: pppd options error (exit code = 2)

        –> man pppd explains pppd error codes in more detail.

        –> I guess that’s it for now, exiting

        –> The PPP daemon has died. (exit code = 2)

        kindly help me in this
        what can i do
        please reply as fast as possible…….!!

  38. Hi,

    when we use an MTS Mbalze in windows , there are three setting for the network like 1X,HYBRID,BROADBAND. How we configure this in Ubuntu , i mean in the steps mentioned by you?

    please reply.

    Regards,
    Priyaranjan

    • Hi and sorry for the late reply as I was busy with my exams. As of now, there’s no interface in Linux for MTS that lets you use that. If you have broadband supported, then it will automatically chose BROADBAND, otherwise it will switch to 1x. So you don’t have to worry about that !

  39. Hi, I have followed the steps mentioned on my Ubuntu 11.04 but when i run “sudo wvdial cdma” i dont get to see any IP address instead i keep getting message as below

    OK
    AT^SYSINFO
    ^SYSINFO:2,255,0,8,240,,11

    Please help … I guess I must have missed some setting. I will tell the steps i did…

    1. Created wvdial.conf file under /etc with user name and pwd as mentioned above.
    2. In system settings –> Network Connection –> Mobile Broadband
    –>PPP seetings
    I have selected only PAP and CHAP.

    Let me know if I am missing something

    Regards
    Pritam

  40. Hi,

    After i try to connect using sudo wvdial.conf and
    check the CHAP-secrets file under /etc/ppp …

    I could see an entry as

    internet\@internet\.mtsindia\.in * mts

    I tried changing the user name as above and retried sudo wvdial.conf but i still get

    –> The PPP daemon has died: Authentication error.
    –> We failed to authenticate ourselves to the peer.
    –> Maybe bad account or password? (exit code = 19)
    –> man pppd explains pppd error codes in more detail.
    –> I guess that’s it for now, exiting
    –> The PPP daemon has died. (exit code = 19)

    Please help urgently .. I am trying to connect from yesterday and am helpless … Urgent help needed

  41. My issue is resolved thanks for posting the steps … the error was at server side for not registering my mdn no properly

    • Oh, I just saw your messages. Good your issue is resolved. I am not able to understand why there was a server side issue. Can you shed more light on it ?

  42. Th issue was my account got accidentally inactived at MTS server and that caused authentication error.

    Jereme, i too would repeat the same thing that people have done above … thanks a ton buddy for posting the steps for MTS …

  43. I HAVE GIVEN A PASSWORD TO MY MTS MBLAZE BUT I WANT TO REMOVE IT BECAUSE ON OPENING EACH PAGE IT NEEDS PASSWORD

  44. First of all I would like to say u heartly thanks for your time and efforts for this post.
    I have no words to expression gratefullness for this tremendous post.
    After a lot of googling I found nothing except this post.
    It is extremly superb.

    Further, I will appreciate if you help me to solve this problem:-
    root@komal-VirtualBox:/# sudo wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    –> Sending: ATQ0
    –> Re-Sending: ATZ
    –> Modem not responding.

    I studied all the replies. so reinstered data card and even waited for much time but it is not helpful.

    Kindly suggest me how can I get internet working on ubuntu installed in virtual box on window 7.

    Thanks
    Komal

    • Hi, thanks for the appreciation.
      I believe the reason why the above steps are not working for you is because the Ubuntu is running in a virtual box. Have you configured your virtual box properly and is it able to communicate with your USB ports ??

      To make sure things are working fine, do the following and report back to me :
      1) Delete your /etc/wvdial.conf file
      2) Remove your modem, wait for 30 seconds, then reconnect.
      3) Execute : sudo dmesg
      4) If your virtual box is configured properly, you should see “ZTE” or “HUAWEI” in one of the last few lines of the dmesg output. (This basically means your modem was detected!)
      5) If you don’t see the above in the dmesg output, something is wrong with your virtual box configuration. Mail me the output of dmesg and I’ll look into it. If you’re able to see it, then move ahead:
      6) Execute : sudo wvdialconf
      7) Your wvdial.conf file should be generated. Now edit it as per my blog and try connecting to internet.
      8) If it still didn’t work, mail me the output of “sudo wvdialconf” command.

    • Hey, are you sure you sent me the correct output ? I’d suggest you do the following.

      First start your vbox, after its properly started, Execute “dmesg” and get the output.

      Now plug in your database, execute “dmesg” again and get the new output.

      Send me the difference between those outputs. My email id is there in the “about-me” page of my blog 🙂

  45. Hi,
    I have posted the output of dmesg and expecting u find the mistake.
    pls help me so that I can proceed and get mts working.

    Waiting for reply.
    Thanks Komal

  46. I followed the steps suggested by you. First started the virtual box and executed dmesg then inserted datacard and then executed dmesg command and posted both the outputs.

    For me output is very confusing.
    Heads bow to you since u understand this language.

    cannot anyalye both the outputs…
    seems same to me.

    ahhhhhhh!!!!!!!!!

    very difficult….
    I think virtual box internet settings are not correct or some package is missing.

    But don’t know solution.

    Pls help me to get this done.

    heartly thanks for your replies.

    this post is a big strength for me.

    Thanks again.

  47. Hi
    ” internet working on ubuntu installed in virtual box” you need not to configure usb-modem connection on ubuntu VM instead you can
    configure your virtualBox-networking properly .

    Can you find out NORMAL USB(storage-device) can be accessed in ur UBUNTU-VM at ur windows-host?
    (i don’t hv windows 2 experiment)

    If so
    You can do more experiments :-
    (Its generic for any usb-modem at linux-kernel / i have worked sometime at linux-kernel usb-serial modem driver mainly option.c )

    1.using “lsusb” get the ur device vendor id & device id
    (at this point of time ur device is detected as default mass-storage/cd device )
    2.insert corresponding modules using modprobe
    (example for tataPhoton card ID was 201e:2009)
    3.eject ur device (it will trigger ur modem drivers) Its work
    for most of device (Alternatively u have to send usb-messages to trigger
    usb-modem driver)
    4.Now ur device is detcted as modem .

    5.Using wvdial u connect to ur ISP
    (serial port programmes)
    I have written similar post(for TataPhoton) at
    http://dolinuxdev.blogspot.com/
    explaining more debug commands .
    (I am not a frequent blogger)

    I would suggest to configure ur default UBUNTU network-manager mobile
    broad-band setup(ITs pretty much gud)
    to set-up your connection
    Otherwise it hectic to setup L3 VPN over above mention internet connection.(it becomes egg and chicken situation)

    @Abhishek
    Thanks for ur post 😛 Gud work dude ,Nice resume
    .For these USB-serial devices u can dig
    into option.c driver in linux-kernel )

  48. Pingback: How to connect MTS Mblaze device in Ubuntu 10.10 , 11.04, 11.10 « Random

  49. I downloaded the packages mentioned by you from a windows machine with the MBlaze, transferred and installed it in my Ubuntu machine, only to find there were some dependencies missing. I tried to manually download each dependency using my windows machine and transfer to Ubunty, only to find every iteration fails. I can not use apt-get as I had no way to connect to the internet using Ubuntu. I had found a workaround which reduced the numbe of iterations and rest of your blog worked without any hickup. I had described what I did in my blog. I had reproduced the contents of your blog to explain better. Thanks a lot. My blog post is at “www.bageecha.blogspot.com”

  50. I have installed Ubuntu 11.10 (Presently the Latest Version of Ubuntu)
    In this version of Ubuntu 11.10, you don’t need to install usbmodswitch packages,
    By default Ubuntu 11.10 is loaded with this usb-modswitch, usb-modswitch-data packages.

    In Ubuntu 11.10, the Network Manager detects the Mblaze modem, and you can access the net by default with out required to install any packages either from MTS or Web…

    MTS modem should be configured to connect the wireless modem,
    you need to configure the ‘MTS Connection in the mobile broadband’ by setting the user name and passwd.

    Phone : #777
    User Name : internet@internet.mtsindia.in
    Passwd : mts

    How to configure? Where to enter this data,

    1) First just insert the MTS MBLAZE, Ubuntu 11.10 automatically recognizes a CDMA modem device.

    2) In the desktop, top right corner of the panel or menubar, you will find the menu for network manager, click it to drop down the list of the available connections, there you can configure for the CDMA device available, what ever may be the model,

    * NOTE – If you are unable to connect with the default Network Manager(some areas if the signal is not good), You can install the alternate dialer, i.e. wvdia
    wvdial.

    (In worst cases it can work, like in my case at home wvdial is working and Network Manager dialer is not working, In some areas the Network Manager is wokring with 2-3 Mbps speed, where as at my home location i am unable to connect with Network Manager, Secondly with wvdial i am able to connect at home location with 20-60 kbps speed, what i understand with this scenario is that in the case of poor signal strength, wvdial still works atlest with less speed)

    #sudo apt-get install wvdial

    this will install the dialer, i think from the above guide you can configure the wvdial,

    now this will be an alternative dialer for MTS, apart from Network Manager.

    If you are still unable to connet, check from other aspects also, like signal strength, alternatively connect with windows connectivity, to confirm the issue…

    ALL THE BEST

  51. “Modem Network Disconnected. You are now offline.” What the hell is wrong with Oneiric Ocelot?
    I have intsalled my MTS properly and it was working good at first. But now I’m unable to connect to internet. Please help.

  52. hi,,,first of all,nice tutorial u have got…but i stiil can’t connect my mts modem whn im using ubuntu(v10.04),,i have installed all the packages given in the tutorial,,,besides my mts is detected as /dev/sr1 similar to some cases mentioned in some of the queries above,,,
    this is what happens….
    # sudo wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    –> Sending: ATQ0
    –> Re-Sending: ATZ
    –> Modem not responding.

    i have gone through all the comments and solutions that u hav given but i still can’t figure out the problem..im running out of ideas
    can u pliz give sme suggestions for this problem?

    thanks

    • As I can see, the model got initialized properly. Means that your modem is connected properly and your linux is able to connect with it. I think the problem has something to do with the carrier? Does your modem works properly on Windows and you’re able to connect to internet?

  53. Hello..thanks for uploading the syntax bt i am also facing the same problems as mentioned by one another user which is wriiten belwo. I am using Ubuntu wubi (instalation on windows)

    # sudo wvdial cdma
    –> WvDial: Internet dialer version 1.60
    –> Initializing modem.
    –> Sending: ATZ
    –> Sending: ATQ0
    –> Re-Sending: ATZ
    –> Modem not responding.

    i have gone through all the comments and solutions that u hav given but i still can’t figure out the problem..im running out of ideas
    can u pliz give sme suggestions for this problem?

    • Sorry for the late reply. It seems your modem is busy with some other process so its not responding. Did you try to use some Ubuntu network software like networkmanager or any other software to try to connect? This kind of error is usually seen, when modem is detected but still doesn’t respond to the driver commands – which means either the modem is faulty, or its locked or ‘in-use’ by some other process.

  54. Hey Abhishek Shrivastava,

    I love you man! Right now I am trying to rescue my system from the “grub rescue” prompt I was treated to when I booted up my laptop this morning. I have no clue (as yet) as to how to go about this and my only link to the web is the MBlaze modem. Couple of days back when my PC was working fine I found your post and saved it on my hard disk thinking it would come in handy sometime. This morn, when faced with the grub rescue prompt I booted up a live image of LMDE, mounted the partition where the post was saved, copied the configurations as is, and started up wvdial. And voila! I was connected! v(^_^)v

    Thanks for the post bro!

    Hail the spirit of FLOSS! Keep up the great work!

    Cheers,
    Varun

  55. Thanks man, I dont think i can get easier steps then this anywhere else. MTS should include it in their user Guide.

  56. Hi there, thanks for excellent blog, however i am having this error message. I have fedora 17, 32 bit. i am getting this message on

    wvdial cdma

    –> WvDial: Internet dialer version 1.61
    –> Initializing modem.
    –> Sending: ATZ
    ATZ
    OK
    –> Modem initialized.
    wvdial: utils/wvtask.cc:409: static void WvTaskMan::_stackmaster(): Assertion `magic_number == -0x123678′ failed.
    Aborted (core dumped)

    what to do?

  57. HaI want to say that this is an excellent tutorial. Simple and easy to follow. I have tried it on Ubuntu 11.04 perfectly. For all those who are getting error such as “Modem not responding” try to disconnect data card and reconnect; and perform the command again.

    Again thanxxx!

  58. hi I m using mts mblaze in ubuntu 12.04 lts .I followed the procedure (country selection company selection plan selection ) but still it is not connecting.
    please help me abhisek

  59. how do i login as root?????
    i had typed the following in the terminal……
    rev@missionboard:~$ su
    Password:
    root@missionboard:/home/rev#
    wat do i do next???

  60. hi,
    I am getting the below message sometimes when I do ‘sudo wvdial cdma’
    > WvDial: Internet dialer version 1.61
    –> Cannot open /dev/ttyUSB0: No such file or directory
    –> Cannot open /dev/ttyUSB0: No such file or directory
    –> Cannot open /dev/ttyUSB0: No such file or directory
    Most of the time, it would be fine but sometimes I get stuck up with the above message.
    The issue is not with the range because I get the same error message how much ever times i repeat the process. Only way out I found was restarting the computer.

    Can you please help me out from this…?

    Thanks in advance

  61. If you want to run in background please se the below script

    add below line to mtsdial.sh file

    #!/bin/bash
    sudo wvdial cdma

    save this file and run the file in terminal

    $ nohup sh mtsdial.sh

    Note : wait for one minute

    check the browser net is comming or not , if it is comming close the terminal

    thats it!!!

    Enjoy!!!!!!!!!

  62. NO CARRIER
    –> No Carrier! Trying again.
    –> Sending: ATDT#777
    –> Waiting for carrier.
    ATDT#777

    I am getting this error for a long time… please help! thanks

    • Sorry for such a late response, I have been really busy. This is a simple case of No network coverage in your area. Can’t really do anything about it. Trying roaming here and there until you get a signal.

  63. Having read this I believed it was rather enlightening.
    I appreciate you spending some time and effort to put this information together.
    I once again find myself personally spending a significant amount of time both reading annd commenting.
    But so what, it was still worthwhile!

Leave a reply to sunga Cancel reply