Tuesday, May 15, 2012

Using Tata Photon+ Huawei E156 on Ubuntu (12.04 LTS)

Just set up my old HP tx-1000 Tablet PC with Ubuntu 12.04 LTS.
So I ran into trouble with setting up my Tata Photon + to work with it.
It does come with a linux auto-installable dialler app, but that didn't cut the ice as it supports older versions of Ubuntu.

EDIT : Forgot to mention (though it's not of much importance) I'm setting up 64-bit, but this will work on 32-bit too.

Anyways, I got these instructions from ubuntuforums.org
http://ubuntuforums.org/showthread.php?t=1814583

And frankly speaking i'm doing more or less a copy-paste of that data here, but this is for my own referrence because I hav no idea if I'll be able to find that thread again if i ever reinstall linux :p

So to start with
sudo apt-get install usb-modeswitch usb-modeswitch-data



Both above packages should be installed by default but just in case to make sure :)

Now we need to set up the modeswitch settings.
Go to this folder

cd /etc/usb_modeswitch.d

if its not present create it


 mkdir -p /etc/usb_modeswitch.d
cd /etc/usb_modeswitch.d
now we need to create the configuration file
/etc/usb_modeswitch.d
sudo gedit 12d1:1505

copy and paste this data into that file


DefaultVendor= 0x12d1 
DefaultProduct=0x1505 

MessageContent="55534243123456780000000000000011062000000100000000000000000000"


Now to make sure of all this,
connect your USB Data Card (Photon+)

and run this command

cd /etc/usb_modeswitch.d
sudo usb_modeswitch -I -W -c 12d1:1505 

Now on your top bar right-click on the connection icon
You should see "New Mobile Broadband Connection (CDMA)" or something similar

Put a tick mark or "Enable Mobile Broadband"

Then click on edit connections
Go to Mobile Broadband tab

Click NEW
Enter your Country (India in this case)
Select your carrier (Tata PHoton)
Continue and set up the connection

username and password should both be "internet"
save and close the dialog

Now again right click on conections icon and you can see "Tata Photon" listed there. Click that and you are CONNECTED TO THE INTERNET!!!!!

Now there just maybe a few more issues remaining.
After usage, disconnect (from connection icon)
Unplug device and replug it.

Right Click on connections icon. If you see Tata Photon there (you have to wait maybe 1 min) then you are good to go. If not, see below steps

create a binary to connect photon

sudo gedit /bin/tataphoton


in that file type this

#!/bin/bash
cd /etc/usb_modeswitch.d
usb_modeswitch -I -W -c 12d1\:1505
usb_modeswitch -I -W -c 12d1:1505 





and save it (Ctrl+S) and close

Now everytime you connect the device, open the terminal and type

sudo tataphoton


To make things easier, do this

cd ~/Desktop
gedit TataPhoton

paste this there

#!/bin/bash
sudo tataphoton

Save it and exit
now enter this

sudo chmod 755 ~/Desktop/TataPhoton

Now whenever you want to connect, just plug in your device and double click the TataPhoton file on your desktop, enter your password and you are done :)

Total Pageviews