Tuesday, January 4, 2011

How to configure tata photon on linux machine ?

■ Requirement : How to configure tata photon on linux machine
■ OS Environment : Linux[RHEL, Centos]
■ Application:wvdial
■ Implementation Steps : 

1. Execute below command :

$ wvdial

 I received following messages :

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
^RSSILVL: 60
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> 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
ERROR
--> Invalid dial command.

          I got the above error message during executing the "wvdial" command to configure the Tata Photon+ EC1261 USB modem with the RHEL6 linux machine. The error usually throws if your modem isn't activated. You need to first activate it. I spent 3-4 hrs to activate it on my linux machine but I was unable to do that since I needed to dial *228. But there was no such option on linux either at GUI or at command prompt. So, my basic concept is I have to activate it at the windows machine. That I did on my friend's machine. Then I just connect the modem to my laptop. Then executed "wvdial" command. It was automatically connected the modem and it had shown two DNS IP addresses. I added those IP in the /etc/resolve.cof file. Then I successfully browsed the google.com and other sites.

Execution of the wvdial command :

$ wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
OK
--> 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
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Jan 4 14:03:23 2011
--> Pid of pppd: 9827
--> Using interface ppp0
--> pppd: =
--> pppd: =
--> pppd: =
--> pppd: =
--> local IP address 59.161.2.155
--> pppd: =
--> remote IP address 172.29.243.145
--> pppd: =
--> primary DNS address 121.242.190.180
--> pppd: =
--> secondary DNS address 121.242.190.210
--> pppd: =


^CCaught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> pppd: =
--> Connect time 16.2 minutes.
--> pppd: =
--> pppd: =
--> Disconnecting at Tue Jan 4 14:19:31 2011

2. Config file looks like below :

$ cat /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone =
ISDN = 0
; Username =

; Password =

;Phone = 934XXXXXXX
Phone = #777
Modem = /dev/ttyUSB2
Username = XXXX
Password = XXXX
Baud = 9600
Dial Command = ATDT
New PPPD = yes
stupid Mode = 1

6 comments:

  1. see oyu cant do use this method if your tataindicom modem is detected as a storae device then you nedd to switch the device to a modem usin usb_modeswitch package....
    :)

    ReplyDelete
  2. Hi Sreein,

    Thanks for your comment. I am using Red Hat linux 6. It has capability to automatically detect the device and it doesn't matter which device it is.

    Thanks,
    Kamal

    ReplyDelete
  3. Or you use Networkmanager, which will do all of this for you, automatically.

    ReplyDelete
  4. $ wvdial
    --> WvDial: Internet dialer version 1.61
    --> Cannot open /dev/ttyACM0: No such file or directory
    --> Cannot open /dev/ttyACM0: No such file or directory
    --> Cannot open /dev/ttyACM0: No such file or directory



    i m getting above error.

    I have a huawei ec152 cdma 1x hsua usb stick modem. I need too access internet with it on my Ubuntu 12.04. PLease help

    ReplyDelete
    Replies
    1. $ sudo wvdialconf
      $ sudo gedit /etc/wvdial.conf

      add username and password as "internet" and phone as #777
      save file

      $ sudo wvdial

      Delete
  5. for this error add this " New PPPD = yes " in /etc/wvdial.conf by editing it using vi editor, and see if it works..

    ReplyDelete