Saturday, March 5, 2011

TATA Photon Plus - Olive VME101 device configuration steps in Ubuntu

The following steps worked out for me.
---------------------------------------------
Step 1. apt-get install wvdial (You need internet connection to install wvdial)

Step 2. sudo apt-get install usb-modeswitch

Step 3. sudo apt-get install usb-modeswitch-data

Step 4. Plug in your modem in USB port. On inserting you will notice icon of VME101 on your desktop screen, right click on it and eject it.

Step 5. In terminal write the following command:
$sudo lsusb
Sometimes it need to input the password for sudo, such as
[sudo] password for ***:
Please input it, then it should has similar information as follows:
Bus 002 Device 002: ID 201e:2009
Here the 201e:2009 is very important; it corresponds to the VID&PID of the data card.

Step 6. Now it should load the proper module to let the kernel know the device. Please do as follows:
$sudo modprobe usbserial vendor=0x201e product=0x2009
After that, using the command “dmesg” to check again, it will see the following information:

usbcore: registered new interface driver usbserial
drivers/usb/serial/isb-serial.c: USB Serial support registered for generic
usbserial_generic 2-2:1.0 generic converter detected
usb 2-2: generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1 generic converter detected
usb 2-2: generic converter now attached to ttyUSB1
usbserial_generic 2-2:1.2 generic converter detected
usb 2-2: generic converter now attached to ttyUSB2
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial: USB Serial Driver core

This is for loading the device; the next steps should introduce how to dial the data service. We use the wvdial command as example.

Step 7. Edit the wvdial configure file by typing the following command:
$sudo gedit /etc/wvdial.conf
On entering the above line a new window will pop up. Fill in the details as given below and click save and close that window.
Edit the wvdial.conf file as follows:

[Dialer Defaults]
Init = ATZ
Init = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 115200
Modem = /dev/ttyUSB0
Phone = #777
Username = internet
Password = internet
Stupid Mode = 1

Step 8. Do the wvdial to connect data service:
$sudo wvdial
This command will initialize the modem and connect you to internet.
If connected successfully you will see the details as shown below,

rahul@jupiter-pilot:~# sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> 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 3100000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Feb 25 16:04:55 2011
--> Pid of pppd: 2257
--> Using interface ppp0
--> local IP address 14.96.85.89
--> remote IP address 172.29.244.49
--> primary DNS address 121.242.190.210
--> secondary DNS address 121.242.190.180


Once you are connected press CTRL+C to disconnect from internet.

From next time,
1. Plug in the device, eject it. [Plug in your device and you will notice the dialer on desktop , right click on the dialer and eject it. (Ejecting is compulsory)]
2. sudo modprobe usbserial vendor=0x201e product=0x2009
3. sudo wvdial .
ctrl+ c to disconnect

1 comment:

  1. it would be very helpfull if you can provide a similar solution for fedora ! thanks

    ReplyDelete

Error (MMC has detected an error in a snap-in and will unload it) when you try to launch Windows Firewall with Advanced Security on Local Computer / Server.

Error (MMC has detected an error in a snap-in and will unload it) when you try to launch Windows Firewall with Advanced Security on Local Co...