Thursday, May 1, 2008

Tata Indicom v-data card on Ubuntu Linux

To start using the tata indicom v-data card in ubuntu, follow these steps

1.Run this command
$sudo modprobe usbserial vendor=0x12d1 product=0x1001

2. Edit the /etc/wvdial.conf and add the following lines

$cat /etc/wvdial.conf

[Modem 0]
Modem = /dev/ttyUSB0
Baud = 115200
Dial Command = ATDT
FlowControl = Hardware (CRTSCTS)
Init1 = ATZ
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Password = internet
New PPPD = yes
Username = internet
Stupid Mode = 1
Inherits = Modem 0

3. Run
$sudo wvdial

You will see your primary and secondary DNS getting set.
Now you are set.


Note: The data card is of Huawei make.

Also for the TATA Plug2Surf USB modem to work;
Insert you modem in and do a
$dmesg

You will see some messages with /dev/ttyACM1.
Just replace /dev/ttyUSB0 with this in the above mentioned files.


Thanks to varun for showing me this method

12 comments:

Zeba said...

THANKS A LOT!!
...Zeba :)

vikithakar said...

I have Tata Indicom v-data card connected to my laptop via PCMCIA card.

It dose not work :---->


vivek@vivek-laptop:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyACM1: No such file or directory
--> Cannot open /dev/ttyACM1: No such file or directory
--> Cannot open /dev/ttyACM1: No such file or directory
vivek@vivek-laptop:~$

Thirupathy said...

thanks a lot

want to know the max speed in tata usb modem in windows & linus (ubuntu).

have u tried anything for increasing speed.

varun said...

viki,sorry for late comment, but can you tell me the model number of the card. The above post need not work for all cards.

@Thirupathy, these cards have usb serial interface. Which means, we can only go upto the max serial speed supported by the card. I think in this case we are using the full baud rate..so that might be the max, unless your card supports more.

vikithakar said...

Sorry...
I got where I had gone wrong..
It is now working perfectly..

varun said...

@viki......great! have fun

abhay said...

hello varun...
I am using photon+ in redhat5.0,i want to increase the internet speed as well as i want to make it unlimited download..i am using 950Mb plan in which i have only 2GB day and 10GB night free..but i want to make it a unlimited download..and also send me some tricks that can be done with tata indicom photon+.and my model name is HUAWEI EC1260...reply soon...

varun said...

@abhay, probably you got the wrong idea from the blog title linux "hacks". We dont hack into tata indicom or any other service provider to do something like what you want. Linux nor any OS cannot do anything about that. You need to pay for your service. Sorry!

Unknown said...

hi i am trying to install tata indicom photon+ but i am getting the following error
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

can u please help me out in this

varun said...

@Srikanth, first do as root
#dmesg -c
plug in your photon drive
#dmesg
What do you see? Do you see?
Read the end of the post which says
Also for the TATA Plug2Surf USB modem to work;
Insert you modem in and do a
$dmesg

You will see some messages with /dev/ttyACM1.
Just replace /dev/ttyUSB0 with this in the above mentioned files.

So replace ttyUSB0 with ttyACM1 or whatever that shows in dmesg.
This has to be done in wvdial.conf. Any other doubt let me know

Unknown said...

hi varun thnks for the info also can u let me know if the below steps are correct for running the data card

Modem=/dev/ttyUSB0
Baud=115200
Dial Command = ATDT
Baud=115200
Dial Command = ATDT
init1=ATZ
init2=AT+CRM=1
Flow Control= Hardware (CRTSCTS)
Username = internet
Password = internet
Phone = #777
Stupid Mode = 1

can u let me know if i have to add something or it the above command ok

Unknown said...

hi varun i did the above steps mentioned by you. but still i am getting the same error. can u please help me out in detail in this...