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: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan: 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"

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)

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:

🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
63 comments… add one
  • Sachin Borkar Sep 9, 2011 @ 7:31

    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 Feb 15, 2012 @ 6:08

    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 Feb 16, 2012 @ 10:40

    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 Oct 8, 2012 @ 9:07

    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 Dec 13, 2012 @ 9:43

      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 Oct 26, 2012 @ 10:29

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

  • Jashan jeet Dec 12, 2012 @ 20:34

    thanks a ton :) simple and easy

  • Mohit Dec 13, 2012 @ 11:53

    Hi,

    Is It will work on RHEL 5 also.

  • santosh Dec 8, 2013 @ 7:42

    thanks a lot.

    this post helped me a lot.

  • RajaRaviVarma May 2, 2014 @ 13:27

    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 Feb 14, 2015 @ 12:15

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.