Linux Configure Tata Indicom Photon+ Mobile Broadband

by Vivek Gite on December 4, 2009 · 51 comments

I've Huawei technologies EC1260 CDMA HSIA USB modem. How do I configure Tata Teleservices "Tata Photon+ Mobile Broadband" Service under Linux operating systems using this modem?

EC1260 HSIA USB modem support download speed of upto 3.1Mbps and upload speed of upto 1.8Mbps.

The driver for this modem is provided with Linux kernel 2.6.20 or above. In other words any modern Linux distribution will able to use this modem out of box. The following instructions are tested on:

  1. Debian Linux 5.x
  2. Ubuntu Linux 9.10
  3. Fedora Linux 12 / Redhat & friends

Step #1: Get Required Software

=> wvdial - Text based PPP dialer with built-in intelligence.
OR
=> gnome-ppp - GUI based modem Internet connection tool for the GNOME Desktop.

Linux Drivers For EC1260 CDMA HSIA USB modem

The following drivers are used by Linux:

  • usbserial - USB serial driver (modem driver).
  • usb-storage - USB pen driver.

Install Required Software

You can install any one of the above program from the CD/DVD or via the Internet (connect using Ethernet or any other medium). Once connected install the wvdial package under Debian / Ubuntu Linux, run:
# apt-get install wvdial gnome-ppp
If you are using Redhat / Fedora / CentOS Linux, enter:
# yum install wvdial

Step #2: Stop Services

Turn off other networking interface (such as vmware or virtual box networking):
# /etc/init.d/vmware stop
# ifconfig eth0 down

Make sure you remove other usb storage devices such as pen or external hard disk and remove usb-storage driver:
# rmmod usb_storage
Above will make sure you get correct routing table (you can turn on all other services once connected).

Note if you know how to set static routing using route command skip the step # 2.

Step #3: Install Modem

Insert the USB modem and monitor your /var/log/messages file, enter:
# tail -f /var/log/messages
Sample outputs:

Dec  4 10:08:30 vivek-desktop kernel: [ 3957.760015] usb 4-2: new full speed USB device using uhci_hcd and address 4
Dec  4 10:08:30 vivek-desktop kernel: [ 3957.932103] usb 4-2: configuration #1 chosen from 1 choice
Dec  4 10:08:30 vivek-desktop kernel: [ 3957.959732] Initializing USB Mass Storage driver...
Dec  4 10:08:30 vivek-desktop kernel: [ 3957.961031] scsi15 : SCSI emulation for USB Mass Storage devices
Dec  4 10:08:30 vivek-desktop kernel: [ 3957.961146] usbcore: registered new interface driver usb-storage
Dec  4 10:08:30 vivek-desktop kernel: [ 3957.961150] USB Mass Storage support registered.
Dec  4 10:08:30 vivek-desktop kernel: [ 3958.240046] usb 4-2: USB disconnect, address 4
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.520015] usb 4-2: new full speed USB device using uhci_hcd and address 5
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.703066] usb 4-2: configuration #1 chosen from 1 choice
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.717371] scsi19 : SCSI emulation for USB Mass Storage devices
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727347] USB Serial support registered for GSM modem (1-port)
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727388] option 4-2:1.0: GSM modem (1-port) converter detected
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727481] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB0
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727495] option 4-2:1.1: GSM modem (1-port) converter detected
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727550] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB1
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727563] option 4-2:1.2: GSM modem (1-port) converter detected
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727617] usb 4-2: GSM modem (1-port) converter now attached to ttyUSB2
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727639] usbcore: registered new interface driver option
Dec  4 10:08:31 vivek-desktop kernel: [ 3958.727642] option: v0.7.2:USB Driver for GSM modems
Dec  4 10:08:36 vivek-desktop kernel: [ 3963.714729] scsi 19:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
Dec  4 10:08:36 vivek-desktop kernel: [ 3963.717721] scsi 19:0:0:1: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Dec  4 10:08:36 vivek-desktop kernel: [ 3963.746710] sr3: scsi-1 drive
Dec  4 10:08:36 vivek-desktop kernel: [ 3963.746951] sr 19:0:0:0: Attached scsi generic sg6 type 5
Dec  4 10:08:36 vivek-desktop kernel: [ 3963.747085] sd 19:0:0:1: Attached scsi generic sg7 type 0
Dec  4 10:08:36 vivek-desktop kernel: [ 3963.807173] sd 19:0:0:1: [sdd] Attached SCSI removable disk

Type the following command to display information about USB buses in the system and the devices connected to them, enter:
# lsusb
Sample outputs:

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 12d1:140b Huawei Technologies Co., Ltd. 
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Step #4: wvdial Configuration

The wvdialconf command detects your modem, its maximum baud rate, and a good initialization string and generates or updates the wvdial configuration file based on this information. Type the following command:
# wvdialconf
Sample outputs:

Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2   S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB2: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

Here is sample updated /etc/wvdial.conf file:

[Dialer Defaults]
Modem = /dev/ttyUSB2
Phone = #777
Username = internet
Password = internet
New PPPD = yes
stupid Mode = 1

How Do I Connect To The Internet?

Simply type the wvdial command, enter:
# wvdial
Sample outputs:

Fig.01: Configuring Photon+ Huawei EC 1260 in Linux (connected via ppp)

Fig.01: Configuring Photon+ Huawei EC 1260 in Linux (connected via ppp)

Test The Internet Connection

Send ping request, enter:

ping google.co.in
ping cyberciti.biz

If you cannot ping ...

Edit /etc/resolv.conf, enter:
# vi /etc/resolv.conf
Update it as follows:

nameserver 202.54.12.164
nameserver 202.43.29.5

Save and close the file. Test it again:
# ping google.com
Once connected you can start your vmware or bring back eth0 connections. Make sure routing setup correctly for other network device:
# route -n
To disconnect the Internet session (wvdia dialar) simply hit [CTRL]+[C] or run killall command:
# killall wvdial

Further readings:

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 51 comments… read them below or add one }

1 kashyap December 4, 2009

I don’t think its so complex. I am using it right now.
as soon as I plug the usb click on network connections -> click on mobile broadband tab(3rd one) -> add new connection -> click next and save it.
do remember to click on check box connect automatically.

Reply

2 Vivek Gite December 4, 2009

@kashyap

No it is not complicated, but when you know command line based option it east to debug all sort of problems.

Appreciate your post!

Reply

3 Avin December 7, 2009

Hi,

This very helpfull information.

but Is this working in openSUSE 11.1 ?

Avin …..

Reply

4 CSMG Sarma December 13, 2009

This looks good thanks for the post. I was wandering if Tata indicom supports Linux as the local dealer said it was not possible. But now I’ll certainly try it.

Cheers

Reply

5 Kamal December 22, 2009

Hi
I have done all the setups above but for “tail -f /var/log/messages” and for “wvdialconf” I dont get results as you had suggested instead I get the below, my laptop does seem to detect the usb modem, it gives the following output:

“root@kamal-laptop:/# tail -f /var/log/messages

Dec 22 13:41:57 kamal-laptop kernel: [ 2022.687834] usbcore: deregistering interface driver usb-storage
Dec 22 13:42:08 kamal-laptop kernel: [ 2033.608134] usb 2-2: new full speed USB device using uhci_hcd and address 3
Dec 22 13:42:08 kamal-laptop kernel: [ 2033.775280] usb 2-2: configuration #1 chosen from 1 choice
Dec 22 13:42:08 kamal-laptop kernel: [ 2033.828674] Initializing USB Mass Storage driver...
Dec 22 13:42:08 kamal-laptop kernel: [ 2033.829678] scsi5 : SCSI emulation for USB Mass Storage devices
Dec 22 13:42:08 kamal-laptop kernel: [ 2033.829943] usbcore: registered new interface driver usb-storage
Dec 22 13:42:08 kamal-laptop kernel: [ 2033.829947] USB Mass Storage support registered.
Dec 22 13:42:13 kamal-laptop kernel: [ 2038.829339] scsi 5:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
Dec 22 13:42:13 kamal-laptop kernel: [ 2038.869244] sr1: scsi-1 drive
Dec 22 13:42:13 kamal-laptop kernel: [ 2038.869348] sr 5:0:0:0: Attached scsi generic sg2 type 5

root@kamal-laptop:/# lsusb //this alone seems to be expected one as per your suggestion

Bus 005 Device 003: ID 04f2:b008 Chicony Electronics Co., Ltd
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 12d1:140b Huawei Technologies Co., Ltd.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000  

“root@kamal-laptop:/# wvdialconf

Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan: S0   S1   S2   S3
Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?
Please read the FAQ at http://open.nit.ca/wiki/?WvDial
If you still have problems, send mail to ."

I use Ubuntu 8.04 version in my laptop, Kindly help.

Regards
Kamal

Reply

6 Vivek Gite December 22, 2009

You modem is detected. Are you using external USB hard disk, per or anything else? If so remove them and reboot the computer and only attach tata modem. It should work! Finally, I’ve tested this with Ubuntu 9.10. You are using pretty old version. Get latest version and try again!

Reply

7 Kamal December 23, 2009

Thanks!Yes, I had connected only tata indicom modem in USB no other devices was connected to any other USB ports. OK, I will try updating the ubuntu version and try again.

Regards
Kamal

Reply

8 rajdeeo December 26, 2009

photon plus worked of the shelf on my lenovo G-series laptop operating on ‘karmic’.
But since I’m using the 30 hour monthly plan, is there anyway to monitor the time elapsed in a given internet session.Just cant figure it out.

Reply

9 Vivek Gite December 27, 2009

Do you want GUI or CLI based app?

Reply

10 rajdeeo December 27, 2009

preferably gui, but cli is also ok with me

Reply

11 Vivek Gite December 28, 2009

Try
a) net-acct – The network accounting daemon logs network traffic in a format suitable for generating billing information or usage statistics.

b) vnstat – vnStat is a console-based network traffic monitor. It keeps a log of hourly, daily and monthly network traffic for the selected interface(s).

Reply

12 Vivek Thomas December 28, 2009

I have a ZTE AC 8710 modem. Is this modem supported too?

Reply

13 Vivek Gite December 28, 2009

@Vivek Thomas,

I’m not sure.. just put it into Linux laptop / desktop and see if get detected using above commands…

Reply

14 aakash January 6, 2010

This is a good knoledge for me but i want to know how to use the internet via mobile phone in redhat enterprise linux operating system please mail me

Reply

15 varan January 7, 2010

Hi,

Any of had a luck of Photon+ EC 1260 working with RHEL 5 ??
Would appreciate help here.

Regards
Varan

Reply

16 Vivek Gite January 7, 2010

@ varan,

I don’t think so it will work with Red Hat enterprise Linux 5 due to older stable kernels. Use latest kernel and distro such as Fedora Linux 12 or Ubuntu 9.10. Those will support this modem. RHEL is for serious servers or workstations only and not for laptop.

Reply

17 Charanjit Singh November 23, 2010

Right I had tried to install my MTS ZTE USB Modem FFF1 in my RHEL 5.3 32 bit server os installed in my laptop, I figured out it was not detecting /dev/ttyUSB0 driver. But When I installed the same modem in my Fedora 11 OS, fedora detected it and I was able to run the internet through this modem.

Thanks for Highlighting this.
Regards
Charanjit Singh

Reply

18 varan January 8, 2010

@Vivek,

Thanks. I had a look at Tata Indicom’s guide for support of RHEL5 Platform. It states that RHEL5 is supported. However, its not.

Thanks again. for your response

Regards
V

Reply

19 dimple January 8, 2010

hi vivek,

I tried this with Debian Lenny and Gnewsense, but am facing the same problem as Kamal. Any further ideas on this? Would appreciate very much.

Thanks in advance, Dimple.

Reply

20 Vivek Gite January 8, 2010

@varan,

RHEL 5.4 comes with kernel version 2.6.18 and driver is part of kernel 2.6.20 or above. So it will not support it until and unless you download latest kernel from kernel.org and compile it yourself.

@dimple,

Try Ubuntu 9.10 or Fedora 12 those works out of box. For all other versions you need to get driver via latest kernel.

Reply

21 dimple January 9, 2010

Thx will try it and give feedback.

Reply

22 dimple January 9, 2010

hi vivek,

i used the command “uname -r” to know the kernel version. for debian lenny it shows 2.6.26-2-686 and for Gnewsense 2.6.24-24-generic.

dimple

Reply

23 varan January 11, 2010

@Vivek,

Many thanks for your response. I had tried with Ubuntu 8.10, Works fantastically.
Thanks again.
However, I would like to still give a try when RHEL gets officially to kernel 2.6.20 or >

Regards
V

Reply

24 Ankit February 11, 2010

Hi Vivek,

First of all thanks a lot for this post. I am using OpenSuse 10.2 kernel version is 2.6.18-32. And I don’t need to update it for this modem. Simply I used following set of commands.

1) eject /dev/sr1 # as modem is detected as CDROM drives.
2) rmmod usb_storage
3) modprode usbserial vendor=0x12d1 product=0x140b # need to load usbserial module with modem info.
4) Remaining things are same as you mention above.

Hope u don’t mind.

With Regards,

Ankit

Reply

25 Dharmesh February 21, 2010

is this working in openSUSE 11.2 32-bit working ?

thnx………..

Reply

26 vijith.pk March 9, 2010

Hi Please help me to install photon+ in ubuntu 9.4

when i type wvdialconf i am geting error

 /etc/wvdial.conf: Can't write '/etc/wvdial.conf.tmp14123': Permission denied
/etc/wvdial.conf: Can't write '/etc/wvdial.conf' ('/etc/wvdial.conf'): Bad file descriptor
 please suggest .
vijith@vijith-laptop:~$ wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan: S0   S1   S2   S3
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 -- OK
ttyUSB0: ATQ0 V1 E1 Z -- OK
ttyUSB0: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB0: Speed 9600: AT -- OK
ttyUSB0: Max speed is 9600; that should be safe.
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem: Cannot get information for serial port.
ttyUSB1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem: Cannot get information for serial port.
ttyUSB2: ATQ0 V1 E1 -- OK
ttyUSB2: ATQ0 V1 E1 Z -- OK
ttyUSB2: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2: Modem Identifier: ATI -- Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB2: Speed 9600: AT -- OK
ttyUSB2: Max speed is 9600; that should be safe.
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
/etc/wvdial.conf: Can't write '/etc/wvdial.conf.tmp14123': Permission denied
/etc/wvdial.conf: Can't write '/etc/wvdial.conf' ('/etc/wvdial.conf'): Bad file descriptor
ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB2: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
vijith@vijith-laptop:~$

Reply

27 Vivek Gite March 9, 2010

Run it as root
sudo wvdialconf

Reply

28 Anonymous May 14, 2010

Hi,

Change the login to root. And then execute this command
wvdialconf

Reply

29 Mandar March 26, 2010

I am using FC12 and after connecting the Tata Indicom Photon+ and using WVdialconf getting below message. No other device is connected to USB, can you help?

[root@Mandar ~]# wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
Modem Port Scan: S0 S1 S2 S3
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
Please read the FAQ at http://open.nit.ca/wiki/?WvDial
If you still have problems, send mail to .
[root@Mandar ~]#

Reply

30 dipak April 22, 2010

I have EC1260 HSIA USB modem and i am not able to use it on fedora 12
It just not detect the the device. It only loads the usb_storage module not the usb_serial module. I inserted usb_serial module by modprobe usbserial vendor=0x12d1 product=0×1446.

But no luck. it wont work.
If any one solved this problem please help me
thanks

Reply

31 Deepanshu May 4, 2010

Thanks a lot, this worked for me.

Reply

32 kullai May 9, 2010

I am using EC1261 and after connecting the Tata Indicom Photon+ and using WVdialconf getting below message. No other device is connected to USB, can you help?

# wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
Modem Port Scan: S0 S1 S2 S3
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
Please read the FAQ at http://open.nit.ca/wiki/?WvDial
If you still have problems, send mail to

Reply

33 ujjwal September 2, 2011

Hi Kullai,

Does EC1261 work on Redhat enterprise linux or fedora?

Waiting for your reply,
Ujjwal

Reply

34 Govind Paul May 31, 2010

Unfortunately I am using my NSLU2 (Linksys open source NAS) for this purpose. My NSLU2 is running on Debian Lenny (armel) and I got wvdial installed on the NSLU2 without a problem. Now the biggest problem is to run wvdial as it needs any usb storage device to be disconnected but I can not disconnect the usb storage device from my NSLU2 as the debian is running from usb device.

Can anyone please suggest a solution/alternate here.

Reply

35 Mahesh July 3, 2010

Hi Vivek,
I have Tata Photon + ce100 device and ubuntu 9.10 OS. I have tried the steps that you have mentioned, but in vain. The messages that I get when I do “sudo wvdial” is as below.

$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> 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
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Jul  4 01:59:00 2010
--> Pid of pppd: 2681
--> Using interface ppp0
--> pppd: (e� @c�
--> pppd: (e� @c�
--> pppd: (e� @c�
--> pppd: (e� @c�
--> pppd: (e� @c�
--> pppd: (e� @c�
--> pppd: (e� @c�
--> Disconnecting at Sun Jul  4 01:59:31 2010
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> 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.
--> 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.
--> Disconnecting at Sun Jul  4 01:59:37 2010

I have even tried using gnome-ppp to get this working, but even that in vain.
Please help me configure this device.
Thank you.
Mahesh

Reply

36 Beruh July 15, 2010

Thanks for this post. I am using Fedora 12 and the same Huawei EC1260 USB Modem but from a different carrier in Ethiopia. Once it was able to recognize the USB device, the wvdialconf command still returned the same error as mentioned above or Modem not responding. I needed to install usb_modeswitch-1.1.3 and run it before it began detecting it properly with wvdialconf command, and then dialing properly with wvdial command and connecting. Additionally, I also found that using other tools like Network Manager to configure the connection changed my wvdial.conf settings which would also create errors. With just the following configuration settings:

[Dialer Defaults]
Modem = /dev/ttyUSB0 /* or whichever port it is detected on by dmesg*/
Modem Type = Analog Modem
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Username = ______ /*given by your ISP*/
Password = ______ /*given by your ISP*/
Phone = #777
Stupid Mode = 0
Baud = 9600
ISDN = 0

I finally got it to work. Hope this helps and thanks again…

Reply

37 Nikhil September 9, 2010

I got it working on ArchLinux.
You need to install usb_modeswitch for the device to be detected as modem.
#pacman -S usb_modeswitch

and follow the rest of the steps to configure wvdial.

Reply

38 Dave September 14, 2010

I am using Backtrack 4
when i type wvdialconf i am getting

root@bt:`# wvdialconf

Scanning your serial ports for a modem.

Modem Port Scan: S0 S1 S2 S3
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 — OK
ttyUSB0: ATQ0 V1 E1 Z — OK
ttyUSB0: ATQ0 V1 E1 S0=0 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0: Modem Identifier: ATI — Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB0: Speed 9600: AT — OK
ttyUSB0: Max speed is 9600; that should be safe.
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem: Cannot get information for serial port.
ttyUSB1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem: Cannot get information for serial port.
ttyUSB2: ATQ0 V1 E1 — OK
ttyUSB2: ATQ0 V1 E1 Z — OK
ttyUSB2: ATQ0 V1 E1 S0=0 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB2: Modem Identifier: ATI — Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB2: Speed 9600: AT — OK
ttyUSB2: Max speed is 9600; that should be safe.
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
ttyUSB2: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

After that i typed /etc/wvdial.conf but i get permission denied

root@bt:`# /etc/wvdial.conf
-bash: /etc/wvdial.conf: Permission denied

Pleae help

Reply

39 Nikhil September 15, 2010

wvdial.conf is a config file you cannot try to run it.
Once you make the appropriate entries mentioned in the article, just ‘wvdial’ as root, or you can give your user permission to use wvdial.

Reply

40 Beruh September 16, 2010

After the wvdial command, your configuration looks right; I am guessing you were already connected. However, if user permissions are the issue, just run wvdial as su

Reply

41 Dave September 16, 2010

Thanks Guys … My net is working now .. Thanks a lot

Reply

42 Nilesh September 20, 2010

Hi,

I m the root user but i m not able to edit the resolv.conf file….it is giving permission denied error…please help……I have to update the DNS server in that……….bcs webpages are not opening..i m connected to internet but sites are not opening…if any other soluton is ther please suggest me………..

Reply

43 Nilesh September 20, 2010

Please help me….u ppl are my only hope…i have achieved 75% percent success in connecting to internet but ……sites are not opening…………dont know why root user is also not having permission..please help freinds

Reply

44 Beruh September 27, 2010

Have you connected using wvdial?

Reply

45 Nilesh October 1, 2010

Hi Beruh,

Thanks for replying…….i m able to connect to internet………because i m getting DNS servers I.P. at the end….but none of the page opened…after lot of googling i was able to edit resolv.conf also..but still dont know y the pages are not opening…….Please advise what could be the reason for this……Thanks a lot man..for replying.

Reply

46 Kamal Maiti January 4, 2011

I did the same. But I got the following error messages when I executed wvdial command on my RHEL6 system.

==========
[root@kmaiti ~]# wvdial
–> WvDial: Internet dialer version 1.60
–> 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.
–> Disconnecting at Tue Jan 4 10:37:07 2011
[root@kmaiti ~]#

Can you you tell me how to activate the device using their scratch coupon? I am using tata photon+ HUAWEI usb modem(EC1260)
==========

Regards,
Kamal Maiti

Reply

47 Bhupender March 13, 2011

hey friends I am using Backtrack 4 in my laptop… But i don’t know how to start internet via tata photon+ … please tell me the solution.

Reply

48 Mohit Singh Nainwal May 4, 2011

Friend I am facing same problem, I have tried all but still it not working,
Its Detecting as a usb but not as a modem.
when making an entry in modprobe,displaying the error
#modprobe usbserial vendor=0*12d1 product=0*1446

FATALerror inserting usbserial /lib/modules/……./usbserial.ko

My OS is SUSE 11.1

Reply

49 sumeet inani May 22, 2011

here is proof

ping http://www.google.com
PING http://www.l.google.com (209.85.231.104) 56(84) bytes of data.
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_req=1 ttl=56 time=379 ms
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_req=2 ttl=56 time=358 ms
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_req=3 ttl=56 time=377 ms
^C64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_req=4 ttl=56 time=356 ms
--- http://www.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 356.784/367.967/379.351/10.485 ms

Like you , vivek gite – I am also fond of CLI especially the verbose details which show what is happening.

Reply

50 Diabolic Preacher August 8, 2011

How do I configure the System Monitor applet in Gnome taskbar to show usb modem network stats? It only works for my BSNL wlan link only.
Linux Mint 8 x64
System Monitor 2.28.0

using wvdial method to dial with usb broadband modem.

Reply

51 Sachin Borkar September 9, 2011

Hello Mr. Gite,
This has enabled me to serf and use internet on my Fedora 15 (GNOME3) using an HSDPA GSM Modem (MTNL (Mumbai) DOLPHIN 3G SIM). But there are two issues which I need to consult with you.
1) My usb modem needs Sakis3g for switching and being recognized by the OS. Is there a way I can make Fedora 15 to recognize my usb modem without taking aid of Sakis3g?
2) My network manager doesn’t (or can’t) recognize the connection even though it is connected well with the internet. As a result I can not use Yum or Software Add/Remove facility to install software over the internet. Any help will be highly appreciated. (Did I thank you for this post of yours? Seems I forgot, so here it is. Thank you so very much for writing such a detailed post and helping noobs like me. Please keep doing this.)
I can serf the internet very well however, my network manager is not showing

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 15 + 2 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: