Tuesday, December 18, 2012

Using BSNL EVDO Card (Prithvi UE100) on Ubuntu Linux 12.04 LTS

So the last time around I faced some trouble installing the Huwaei EC156 Tata Photon + USB Data Card on Ubuntu and provided you guys with an example.

Now I am for a short stay in a part of Kolkata where Photon speeds are painfully slow and hence I am forced to use the BSNL EVDO/1X Card, the hardware for which is provided by Prithvi Communications by the name of UE100.

Linux does not recognise this and you are in for a soup if you don't know what to do :p

Ok here goes the short and smart tutorial.

First connect the device to your laptop/PC.
Run the command
ls /dev/tty*

There should be a device ls /dev/ttyACM0 (or a name similar to that)
To verify, remove the device and run ls /dev/tty* again to check that device has vanished :)

Now you need a nifty program called 'wvdial'
install it using
sudo apt-get install wvdial

After wvdial has been installed we need to provide a configuration file for wvdial. Create one using
sudo gedit /etc/wvdial.conf
Enter the following data into the file
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 460800
Modem = /dev/ttyACM0
ISDN = 0
Phone = #777
Password = 91xxxxxxxx
Username = 91xxxxxxxx
Stupid Mode = 1
Where your username and password are the mobile numbers (replace xxxxxxxxxx with your device mobile number)

If you don't  know username and password you can use this ... (psst... do not tell anyone about this ;) :P )
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 460800
Modem = /dev/ttyACM0
ISDN = 0
Phone = #777
Password = 165
Username = 165
Stupid Mode = 1

Now run this command (2-3 minutes after you have plugged in the device) to ensure this is working
sudo wvdial
It should show some DNS servers, (your notification area won't show any connected network) . Open browser and see if pages load. If it does, and I believe it will, then it's good to go.
Now if you are a geek you can just enter sudo wvdial every time to connect, but for people you prefer the comfort of mouse clicks you have some more jobs left to do.

sudo gedit /usr/bin/bsnl
enter this data into that file
gksudo wvdial
Now we need to set execution permissions to the file
sudo chmod 777 /usr/bin/bsnl
Now we will create a desktop shortcut.

gedit ~/Desktop/BSNL.desktop
and enter this data into the file
 [Desktop Entry]
Name=BSNL EVDO Connection
Exec=bsnl
Type=Application
StartupNotify=false
Icon=package_network
and make it executable
chmod 777 ~/Desktop/BSNL.desktop

Now everytime you plug in the device, wait for 1-2 minutes, then double click the brand new icon on your desktop, and woot!! you are online :)

cheers

7 comments:

  1. can u post how much speed you are getting

    ReplyDelete
  2. this method worked fine for me until recently, is there some way in which you could use WINE to use the software to connect to the internet???

    ReplyDelete
  3. I am getting all those dns servers etc with sudo wvdial but unable to connect to the internet.
    After a good research I feel as if I have crossed half of the river.
    Please provide if there are any other means to connect.

    ReplyDelete

Total Pageviews