≡ Menu

Linux Configure Tata Indicom Photon+ Mobile Broadband

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:

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 63 comments… add one }

  • kashyap December 4, 2009, 1:03 pm

    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.

  • nixCraft December 4, 2009, 2:41 pm

    @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!

  • Avin December 7, 2009, 12:22 pm

    Hi,

    This very helpfull information.

    but Is this working in openSUSE 11.1 ?

    Avin …..

  • CSMG Sarma December 13, 2009, 4:35 am

    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

  • Kamal December 22, 2009, 8:25 am

    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

    • nixCraft December 22, 2009, 10:23 am

      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!

  • Kamal December 23, 2009, 11:35 am

    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

  • rajdeeo December 26, 2009, 8:12 pm

    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.

  • rajdeeo December 27, 2009, 11:50 am

    preferably gui, but cli is also ok with me

    • nixCraft December 28, 2009, 6:32 am

      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).

  • Vivek Thomas December 28, 2009, 6:20 pm

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

  • nixCraft December 28, 2009, 6:30 pm

    @Vivek Thomas,

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

  • aakash January 6, 2010, 6:08 am

    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

  • varan January 7, 2010, 10:28 am

    Hi,

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

    Regards
    Varan

  • nixCraft January 7, 2010, 12:14 pm

    @ 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.

    • Charanjit Singh November 23, 2010, 6:37 am

      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

  • varan January 8, 2010, 5:08 am

    @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

  • dimple January 8, 2010, 6:03 am

    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.

  • nixCraft January 8, 2010, 7:01 am

    @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.

  • dimple January 9, 2010, 5:51 pm

    Thx will try it and give feedback.

  • dimple January 9, 2010, 6:11 pm

    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

  • varan January 11, 2010, 5:23 am

    @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

  • Ankit February 11, 2010, 4:57 am

    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

  • Dharmesh February 21, 2010, 10:41 am

    is this working in openSUSE 11.2 32-bit working ?

    thnx………..

  • vijith.pk March 9, 2010, 10:58 am

    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:~$
    • nixCraft March 9, 2010, 12:03 pm

      Run it as root
      sudo wvdialconf

    • Anonymous May 14, 2010, 9:04 am

      Hi,

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

  • Mandar March 26, 2010, 12:04 pm

    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 ~]#

    • Harshal December 14, 2014, 8:29 am

      I got the same problem.Were you able to solve it?
      If yes ,please help me too !! I’m stuck since 3 days

  • dipak April 22, 2010, 3:55 am

    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=0x1446.

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

  • Deepanshu May 4, 2010, 1:23 pm

    Thanks a lot, this worked for me.

  • kullai May 9, 2010, 6:53 pm

    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

    • ujjwal September 2, 2011, 12:00 pm

      Hi Kullai,

      Does EC1261 work on Redhat enterprise linux or fedora?

      Waiting for your reply,
      Ujjwal

  • Govind Paul May 31, 2010, 6:22 am

    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.

  • Mahesh July 3, 2010, 8:36 pm

    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

    • Beruh July 15, 2010, 12:09 pm

      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…

  • Nikhil September 9, 2010, 3:53 am

    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.

  • Dave September 14, 2010, 11:05 am

    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

    • Nikhil September 15, 2010, 1:15 am

      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.

  • Beruh September 16, 2010, 4:19 am

    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

    • Dave September 16, 2010, 11:03 am

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

  • Nilesh September 20, 2010, 5:29 pm

    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………..

  • Nilesh September 20, 2010, 5:31 pm

    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

  • Beruh September 27, 2010, 5:47 am

    Have you connected using wvdial?

    • Nilesh October 1, 2010, 12:56 pm

      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.

  • Kamal Maiti January 4, 2011, 5:13 am

    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

  • Bhupender March 13, 2011, 10:36 am

    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.

  • Mohit Singh Nainwal May 4, 2011, 7:54 am

    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

  • sumeet inani May 22, 2011, 2:44 am

    here is proof

    ping www.google.com
    PING 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
    --- 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.

  • Diabolic Preacher August 8, 2011, 6:09 pm

    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.

  • Ashish Mishra August 19, 2011, 8:04 am

    Hi
    I was trying to connect my cell phone(carrier-Tata Docomo) in Fedora 15 and was able to do so..however when I was trying to ping,my terminal showed this error message
    [abhijeet@Illuminati ~]$ ping google.com
    ping: unknown host google.com

    when I edited /etc/resolv.conf and put the two DNS server address even then problem persists(I have got no nameserver found)
    Please help me

  • Sachin Borkar September 9, 2011, 7:31 am

    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

  • minoz February 15, 2012, 6:08 am

    Hi. Well, this seems to be a quite old post. But I’ve a problem in connecting to Internet with Photon Plus in Fedora 14. After installing all the required packages, my system detects the USB modem, even the connection name is shown network selection menu. But I am not being able to connect to Internet. Can somebody help me resolve the issue???

    Thanks in advance.

  • jitendra February 16, 2012, 10:40 am

    hi…….. how to configure the redhat linux version 5.4 o.s.,when connect the sky tel broad band………plz give me the procedure…..

  • venkat October 8, 2012, 9:07 am

    Hi,

    I have a Reliance Netconnect+(ZTE) Data card.Model Number:AC2737How to install in Redhat Linux 6.Kindly send me the process through e-mail or this forum.

    Thanks & Regards,
    Venkat

    • Sachin Borkar December 13, 2012, 9:43 am

      Hi,
      I know this is rather late to post on such an old question (I’m sure u have already found a solution.) but since the question has been left unanswered for so long by the community as well as by Mr. Vivek Gite, I take the liberty to answer it. Please pardon my English though.
      So anyone who’s using RHEL/CentOS and want to connect their usb modems, here is how:
      (You WILL need the “wvdial” package on your system before you follow these steps)
      1) Download sakis3g (http://www.sakis3g.org/#downloading).
      2) Install it as instructed on the webpage. (Actually there’s nothing to ‘install’. You just need to unpack the tarball and that’s it.)
      3) Open a terminal and change to the directory where you’ve unpacked sakis3g.
      4) Issue command $ sudo ./sakis3g –interactive
      5) A GUI will open up. Select “Only set up modem (Switch + Load Module + Set tty)
      6) Choose appropriate options in the following dialog boxes. (Choose “# interface 0″ if you’re choose an interface.)
      7) After selecting your usb modem the final message-box will tell you where the modem has been mounted (generally USBtty0).
      8) Open up another terminal and type $ sudo wvdialconf (This will create wvdial.conf file at /etc/wvdial.conf.)
      9) Open the file in gedit ($ sudo gedit /etc/wvdial.conf) and fill up appropriate phone no., username, password etc. Save file and exit.
      10) Now type $ sudo wvdial. This will recognize and connect your usb modem to internet. Note the primary and secondary dns numbers as explained in this blog by Mr. Vivek Gite (He IS a guru.)
      11) Now Open up another terminal (There shall be total 3 terminals by now) and type $ sudo system-config-network
      12) From the dialog-box that opens, choose DNS configuration and enter the primary and secondary DNS numbers you have noted earlier. Save and Quit.
      13) Open a browser. You should be connected and see your home-page. In case you are still not connected. Try opening browser with sudo (eg. $ sudo firefox). If your browser connects now that simply means that your account needs super user rights. Google “how to give super user rights to a user”. You will be good.
      I hope this helps someone.
      (ps. I’ve to fire up sakis3g first and wvdial afterwards every time I want to connect to internet. I’ve not found any way to automatically do this.)

  • dinesh October 26, 2012, 10:29 am

    it worked for well thanks a lot very neat documentation easy to understand and execute

  • Jashan jeet December 12, 2012, 8:34 pm

    thanks a ton :) simple and easy

  • Mohit December 13, 2012, 11:53 am

    Hi,

    Is It will work on RHEL 5 also.

  • santosh December 8, 2013, 7:42 am

    thanks a lot.

    this post helped me a lot.

  • RajaRaviVarma May 2, 2014, 1:27 pm

    Thanks a lot. I am able to connect through modem now. As somebody said. Connecting it using the CLI tool helpmed me debugging the right thing. In my case there was no network reception.

  • jayant February 14, 2015, 12:15 pm

    I am using tata photon+ EC156,how to install it on linux ubuntu laptop?(I am a novice in ubuntu)

Leave a Comment