Monday, May 3, 2010

Configure MTS Mobile Bradband on Fedora (Linux/Unix)

Recently I got a chance to use MTS wireless broadband. But like most of service providers MTS also doesn't provide support (at least to me) to use modem on linux. MTS Modem comes with dialler software for windows.But what if you want to install and use it on linux ??

I could install MTS USB Modem (Smart ZTE AC2726 (EVDO)) on Fedora 12. It should work on other distro also.

When you plug Modem linux detect it as usb CD-Drive, that's why linux network manger or wvdial doesn't finds modem and return error. To resolve you have to switch mod of usb modem.


1 - Install usb_modeswitch:

Run this command with root privilege.

#yum install usb_modeswitch                                                                                     


2- Find DefaultVendor and DefaultProduc:
To check Vendor and Product run -
#lsusb                                                                                                                         

3 -Configure switch mode:


Open /etc/usb_modeswitch.conf in your favourite editor.

Copy paste these lines...
#----------------------------------------------------------------------------------------------------------------------------------
# Smart ZTE AC2726 (EVDO)
#
DefaultVendor= 0x19d2
DefaultProduct= 0xfff5
TargetVendor= 0x19d2
TargetProduct= 0xfff1
MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"
#--------------------------------------------------------------------------------------------------------------------------------
Cross check the DefaultVendor & DefaultProduct. It may be different according to your device manufacturers .

Now your usb_switchmod is ready to work. Run this command -


#usb_modeswitch -W                                                                                                 

To confirm you may run "lsusb" command again that if mode of your modem has been changed or not.  If it has been changed then you are ready to install Modem and if not, then there must be some problem. You should try again from step 1.


4 - Install Modem:

Run wvdialconf command to install modem.

#wvdialconf                                                                                                                

5 - Configure Modem
Edit "/etc/wvdialconf"
#gedit /etc/wvdialconf                                                                                                

Configuration (wvdialconf) files should look like -

#-----------------------------------------------------------------------------------------------------------------
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = internet@internet.mtsindia.in
Init1 = ATZ
Password = MTS
Modem = /dev/ttyUSB0
Baud = 9600
Stupid Mode = yes
#-------------------------------------------------------------------------------------------------------------------

Save and exit.


5 - To autodetect DNS every time you connect to modem run this command-

#echo "PREDNS=yes                                                                                                 
  DEFROUTE=yes">/etc/sysconfig/network-scripts/ifcfg-                                           

Its done. You are ready to use MTS Modem.

6 - To connect to your modem open terminal and run with root privilege

#wvdial                                                                                                                       

To disconnect use "ctrl +c ".

Note - To run TATA Photan+ follow from step 4.

8 comments :

  1. Great.............

    ReplyDelete
  2. hi above procedure is implemented in fedora 13 and now connected. But Browsing through mozilla is not working.. "address not found error" like error message comes in browser.give some solution

    ReplyDelete
  3. Works like a charm for Linux Mint 12.
    Thanks a Lot!

    ReplyDelete
  4. well i was going through ur article i realised that rhel6 connects my mobile through an usbeth0 style so i connected mts via the cable given with it after a while it recognised the device and i was done

    ReplyDelete
  5. Getting this error : static void WvTaskMan::_stackmaster(): Assertion `magic_number == -0x123678' failed.

    Any idea??? Please help.

    ReplyDelete
  6. hi,
    i am getting the error as
    Loaded Plugins: presto,refresh-package kit
    Error:Cannot retrieve repository matadata (repond.xml) for repository: fedora
    Please verify its path and try again

    Please help me to fix this

    ReplyDelete