==============
[root@kmaiti ~]# wvdial
--> 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.com file. Then I successfully browsed the google.com and other sites. So, /etc/resolve.conf file looks :
----------------
[root@kmaiti ~]# cat /etc/resolv.conf
#@VPNC_GENERATED@ -- this file is generated by vpnc
# and will be overwritten by vpnc
# as long as the above mark is intact
# Generated by NetworkManager
search csb redhat.com
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 10.11.255.156
nameserver 10.7.142.21
[root@kmaiti ~]#
----------------
Execution of the wvdial command :
===============
[root@kmaiti ~]# 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
[root@kmaiti ~]#
===============
So, first activate the modem with your service provider and then refer the following steps to configure the modem on your linux machine :
===============
1. Connect / Plug your photon+ to the system and wait till it gets ditected.
2. Open a terminal, run a command "dmesg" and check it is showing the modem name as HUAWEI.
3. Run another command "sudo wvdial" and it will create a config file in /etc/wvdial.conf, something like shown below.
(if u don't have wvdial, you can download it from open.alumnit.ca)
by running "cat /etc/wvdial.conf"
or you can edit it using the command "vi /etc/wvdial.conf"
#
[Dialer Defaults]
Modem = /dev/modem
Baud = 115200
Modem Type = Analog Modem
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
[Dialer info]
Init9 = AT&V
[Dialer photon+]
Modem = /dev/modem
Baud = 115200
Modem Type = Analog Modem
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Phone =#777
Username = internet //You need to set this during activating the modem on windows m/c.
Password = internet //
Auto DNS = off
#
Note : Here is the exact content on my machine.
----------
[root@kmaiti ~]# 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 = 9345675190
Phone = #777
Modem = /dev/ttyUSB2
Username = lovely
Password = lovely
Baud = 9600
Dial Command = ATDT
New PPPD = yes
stupid Mode = 1
[root@kmaiti ~]#
----------
some of the field may be already filled.
4. In terminal, connect by "wvdial" and don't cancel it. Then add the dns IP at resolve.conf file and save them. Now browse the pages.
===============
Try :)
My error is the same as your initial one:
ReplyDeleteATDT#777
ERROR
--> Invalid dial command.
I am running Ubuntu and my modem works with Network manager, but after a lot of clicking, waiting, re-clicking, disabling, enabling, etc. So I thought of switching to use wvdial.
Hence, since it is already working, I believe I wouldn't require to do the "modem activation" part that you mentioned.
Still, I am stuck at that error.