How to set up Tata Photon Plus (Huawei EC1261) on Ubuntu 10.04, Lucid Lynx

No need for the old wvdial people, Network Manager has a great built in support for Mobile broadband connections. It contains all the information about various service providers in various countries and it will hardly take you more than 5 mins to configure your device and get it working.

In this howto, I will tell you how to configure your Tata Photon plus device, which uses Huawei EC1261 wireless network equipment on Ubuntu 10.04. I don't guarantee but this howto should be able to help you configure other such devices on any linux distribution.

Now, when I first plugged the Photon+ usb, the system detected it as a usb-storage device and not as a mobile broadband. This can be usually understood by creating a mobile broadband connection using Network Manager. Once plugged, the device will probably appear as a usb storage device, but it is important that your system and hence the network manager recognize it as a usb-modem.

Check to see if your device is being detected as a usb-modem

You can check it at the first step of creating a mobile  broadband connection using Network manager.

1. Right click on the Network manager icon and select "edit connections".

2. Now, go to "mobile broadand" tab and click on the add button.

3. If the wizard shows you the name of the detected device, then bingo! otherwise you might need to take some extra measures to make that happen. In the screenshot below, the device is detected by NM.

http://linuxers.org/sites/default/files/content/misc/Screenshot-New Mobile Broadband Connection.png

The reason for your device not being detected as a usb-modem but a usb-storage device is best explained in the description of the package usb-modeswitch.

Several new USB devices have their proprietary Windows drivers onboard, especially WAN dongles. When plugged in for the first time, they act like a flash storage and start installing the driver from there. If the driver is already installed, the storage device vanishes and a new device, such as an USB modem, shows up. This is called the "ZeroCD" feature.

On Debian, this is not needed, since the driver is included as a Linux kernel module, such as "usbserial". However, the device still shows up as "usb-storage" by default. usb-modeswitch solves that issue by sending the command which actually performs the switching of the device from "usb-storage" to "usbserial".

So, in order to make your device work, you will have to install usb-modeswitch package. Since, we are dealing with Huawei EC 1261 here, I was able to get it to work with the latest usb-modeswitch package(version 1.1.2), rather than the one available in 10.04 repo(1.1.0).

Please note that, the usb-modeswitch package in Ubuntu 10.10, Meerkat's repos are 1.1.4. So, direct installation from synaptic for Meerkat users, should work without any trouble.

Cont- for Ubuntu 10.04 or earlier - In order to install the latest version, you will have to download and install the squeeze(testing) packages from debian.

In order to install these packages run the following commands.

[shredder12]$ sudo dpkg -i usb-modeswitch-data_20100418-1_all.deb

[shredder12]$ sudo dpkg -i usb-modeswitch_1.1.2-3_i386.deb

Now, your system should be able to recognize the Tata Photon plus as a usb modem. Use the NM test mentioned above again. Now, go on and follow the wizard to fill all the essential details and get it running on your system.

63 Comments

Chandra Bhushan (not verified)
June 6th, 2010 03:03 pm
Hey , I install the debian package mention above but still its doesnt recognize the photon+ . I configure it thro NM but still not able to connect. Please suggest .
June 6th, 2010 04:16 pm

Which version of ubuntu are you using? I hope you have tried restarting (just in case). So, does the NM show the Huawei usb as in the screenshot above?

Sarfaraz (not verified)
September 25th, 2010 03:12 pm
Hi i download following packages -usb-modeswitch_1.1.4.orig.tar, usb-modeswitch_1.1.4-1.debian.tar, usb-modeswitch-data_20100826.orig.tar, usb-modeswitch-data_20100826-1.debian.tar. but i could not able to install any of them using the command suggested above. every time i am getting No such file or directory found error. please help me in this.
September 25th, 2010 10:33 pm

You are supposed to download the .deb files, not .tar ones. The command should work fine then.

Anon Linuxer (not verified)
June 11th, 2010 11:01 am
Hi After installing the above mentioned packages on Ubuntu 10.04 and rebooting, it still did not recognize the modem. Then I used Gnome PPP and through setup detected the modem and it recognized the modem and then Network Manager (NM) also recognized and I could connect it using NM.
Anon Linuxer (not verified)
June 11th, 2010 12:36 pm
Hi It does not work by default; but it worked for me sometimes. I do not how. To make it work properly add 140b in TargetProductList= in the file /etc/usb_modeswitch.d/12d1:1446 After this it would recognize the modem and NM can be use to connect.
June 11th, 2010 01:29 pm

Apparently it worked for me by default, I am not sure if I restarted the system or not. But thanks for the reply, hope it will help others facing similar troubles.

Matt (not verified)
July 23rd, 2010 05:09 pm
Thanks for posting this. It's still not working for me. As I'm somewhat challenged in terms of using the terminal, can you post what else I can enter into the terminal to try to make it work? (For example, I'm not sure what "add 140b in TargetProductList= in the file /etc/usb_modeswitch.d/12d1:1446" means, and where/when I need to do it). I've tried just about everything else. Thanks!
July 23rd, 2010 06:01 pm

When you plugin the device, run the following in a terminal "lsusb | grep 12d1". This will should give you a single line output. Read whats mentioned after "12d1:", if its 140b, it should work directly if its 1446 then you probably should try modifying a file. Open the file, run this command "sudo gedit /etc/usb_modeswitch.d/12d1:1446". This will open the file in the text editor. Now, you will see a line in that file TargetProductList="1001,1406,140c,141b,14ac". Just add 140b to the list, save the file and try again. Restart if necessar, plug in the usb and see if it works. Since, it was working earlier, it should work now too.

Matt (not verified)
July 24th, 2010 02:49 pm
Thanks - the readout ends in 1446. I then entered "sudo gedit/etc/usb_modeswitch.d/12d1:1446" , the text editor opened up, but was completely blank. Did I miss a step?
July 24th, 2010 05:48 pm

Thats weird. For reference, mine looks like this. Are you sure, you have the required usb-modeswitch packages installed at the moment. One more thing, open a terminal, go to the directory, run "cd /etc/usb_modeswitch.d/" and then run "ls | grep 12d1". This will let us know which filenames have 12d1 in them. Here is the output on my system.

Matt (not verified)
August 1st, 2010 07:58 pm
Hey man - still isn't working. Here's the readout: $ ls | grep 12d1 12d1:1001 12d1:1003 12d1:1414 12d1:1446 12d1:1520 12d1:1521 Any thoughts on why the text editor might be blank after I run sudo gedit /etc/usb_modeswitch.d/12d1:1446?
Anon Linuxer (not verified)
June 11th, 2010 03:02 pm
Thanks for the post. It seems for the same model ie EC1261 there are more than one versions, hence, these differences.
Anon Linuxer (not verified)
June 11th, 2010 07:03 pm
I have installed usb_modeswitch but I have to restart my system every time I plug the device, It doesn't treat it as modem automatically. Is there some way so that I can plug my EC1261 and NM will detect it.
June 11th, 2010 08:44 pm

Hi, try the "safely removal" option available in the nautilus window manager(right click the device icon) before unplugging the device (just in case). If you are still having troubles, use the method mentioned in this comment above. I think that way we can make things permanent.(fingers crossed )

tabish (not verified)
October 12th, 2010 06:12 pm
dude.. i try everthing i am using dell 1558 they told me Linux is not supported by dell my sound card is not working and mobilebroadband too..i am using photo+ r u Linux user?? which one u use mint,unbuntu?? my email id is (ur _tabi@tahoo.com)
October 14th, 2010 10:56 am

Well, the hardware vendors don't support linux, so the community members have to write their drivers for linux. Therefore, the latest technology takes some time to be available on Linux. It could be the case with you. Give a try to Ubuntu 10.10, its the most recent distro, so its a better chance that things might work here.

Silja (not verified)
September 11th, 2010 11:15 pm
Dear Anon you have to run usb_modswitch each time you start linux for that type this command on the prompt $ sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446 then it will connect tata photon + Silja
Anurag (not verified)
October 21st, 2010 01:12 pm
Hi Thanks a lot.
I have installed the latest usb_modeswitch i.e. 1.1.4
In the latest package device 140b is already added in the TargetProductList, hence not need to add manually.
Even then my modem is not recognized, when I connect it.
It works and every time correctly, if I execute the following command:

sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446

I need to execute it every time, I connect the modem.
Interestingly, the same modem worked in my friend's laptop just by connecting on Ubuntu 10.04 i.e. the same distro as mine.There was no need to install usb_modeswitch. (but on my system it does not work without usb_modeswitch command).

Dear Anon you have to run usb_modswitch each time you start linux for that type this command on the prompt $ sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446 then it will connect tata photon + Silja
Anon Linuxer (not verified)
November 29th, 2010 07:04 pm
Thanks so much. The following command solved it for me as well. sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446
Sudhir (not verified)
April 27th, 2011 09:15 pm
Thanks. worked for me!
Mantavya Gajjar (not verified)
June 14th, 2010 08:53 pm
Hello, I have tried all options mentioned above, now when i plug modem, its not displaying the usb drive. but also not detect as a modem too. any clue ?
June 14th, 2010 09:09 pm

Hi, run "lsusb" in a terminal. Do you see a line showing Huawei technologies? If yes, then could you please post that line here. My system's output is:

Bus 006 Device 017: ID 12d1:140b Huawei Technologies Co., Ltd.
 

Mantavya Gajjar (not verified)
June 14th, 2010 09:11 pm
Hello Shashank, Thanks for prompt response. here is the output from command line. mantavya@mga-laptop:~$ lsusb Bus 002 Device 004: ID 04f2:b044 Chicony Electronics Co., Ltd Bus 002 Device 003: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse Bus 002 Device 002: ID 8087:0020 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 005: ID 12d1:1446 Huawei Technologies Co., Ltd. Bus 001 Device 002: ID 8087:0020 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
June 14th, 2010 09:29 pm

The output in your case is Bus 001 Device 005: ID 12d1:1446 Huawei Technologies Co., Ltd. In order for your device to be detected as a usb modem, it should be 12d1:140b (considering that its the same device). I am not sure why this didn't work for even once, but try using the method mentioned in comment above. Plugin the usb and see if it works now.

Mantavya Gajjar (not verified)
June 14th, 2010 09:57 pm

Hello,

I buy this device today itself, before 6 hours ago, i get success only 2 times to get connected with device. then no longer time i was able to connected during the experiments.

Mantavya Gajjar (not verified)
June 15th, 2010 01:16 am
Hello Shashank, Yes you are right, It should be 12d1:140b, I got the same after re-installation Ubuntu 10.04. Thanks, Mantavya Gajjar
June 16th, 2010 12:04 pm
finally my device is working fine now. Initially when I installed usb_modeswitch, it worked sometimes and sometimes doesn't. I have to restart my system everytime i plugin the device to detect it as modem by NM. then i uninstall and reinstall the usb_modeswitch and run wvdial (u can search net for this) and now whenever i plug my devcie NM detect it as modem automatically.
Shadab Khan (not verified)
June 18th, 2010 10:31 am
Thanks a ton. Those switching mode packages made the deal. Tata photon + (as well as Aritel GPRS) are now working on my Mint! Bye bye Windoze (well not exactly until we can run games on Linux)
Dawit (not verified)
July 10th, 2010 11:57 pm
Your instructions worked smoothly! Thanks for the info! VERY helpful! :)
Matt (not verified)
July 23rd, 2010 11:29 am
I tried this in ubuntu 10.04 on a hp netbook with the Tata Photon+. It worked the first time, and as soon as I unplugged the ethernet, the laptop froze and had to restart it. Then I tried it again, didn't work, uninstalled modeswitch and reinstalled, didn't work, instaled wvdial, restarted, restarted with photon in, out, didn't work, etc etc. Help.
July 23rd, 2010 12:02 pm
You can make the device (TATA PHOTON PLUS, HUAWEI EC 1261) work fine, but service is horrible. Dealer promised me that I will get good speed in NCR, but what the hell, I am getting ~15KB in gurgaon. This device is useful only for regular travellers. PLZ, PLZ PLZ, don't buy this if u want to use it at home (except delhiites, speed is good in most of delhi) I myself has a brand new device, working fine on windows, MAC and linux. But I want to sell it due to horribly low speed. If anybody interested plz contact me at . Price is negotiable. Once again, Plz buy this only if u stay or travel within delhi otherwise it is not the worth the money.
July 23rd, 2010 02:33 pm

~15KB? This is the speed I get at my hometown where we don't have 3G. Photon was working better than broadband when I was in Delhi. The download speed was around 150KBps. I am not sure what  could be the issue but Gurgaon shouldn't have any trouble. Does every user in your neighbourhood has a similar experience?

July 23rd, 2010 06:45 pm
Hi Shredder, I have wasted my enough time talking to customer care, but no results. You are right, and as i said, speed is good in delhi. But I stay in gurgaon permanently and occasionally visit frnds in delhi. I have tried all OS's, but same low speed. And about neighbourhood thing, actually none has photon plus, most of them uses airtel broadband. Speed there also is not very good, but it worth the money and that is whole point. I am paying 750 a month, and I even can't fill my free quota of 2 GB because of low speed. So it is wastage of money.
Ravi (not verified)
September 4th, 2010 04:46 pm
Its TRUE. I am in Delhi-7. And I am getting around 20-30kbps download speed most of times. And sometimes it spikes to ~100kbps, but not reliable.
Also, note that its network is very bad. Too much packet drops happen every-time, which generally no one notices and Tata is not interested in understanding it. I cannot talk over Skype voice. It breaks a lot. Really and this is most frustrating to me.
Their customer care is really worst. When I complained them about the speed, their representative came, browsed speedtest.net, choose delhi server for checking speed with and boldly said to me that right now I am getting around 300kbps connection with download speed around ~40kbps, which according to Indian Govt. is taken as broadband. And then they closed my complaint ticket. They over-sold connections than their network capacity. And gradually, every customer is getting problems. I strongly won't suggest anyone to buy TATA Photon Plus oor any of their series. If you are interested in buying my device and connection, let me know. I can sell my just 1 month old device for 25% of cost, or maybe even less.
I have recorded most of conversation with Tata representative. I will soon be uploading it to my newly bought domain http://www.mytataphoton.com/ .
vikas giri (not verified)
September 3rd, 2010 06:10 pm
hi i am intersted in buyng your device..pls contact me on 932208059 below is device price: depending upon condition we offer 500-800 rupees..
sanat (not verified)
August 7th, 2010 01:08 am
Hi, Thank you. after adding 140b in TargetProductList= in the file /etc/usb_modeswitch.d/12d1:1446, my system recognize the modem and NM can be use to connect.
Madhuresh (not verified)
August 15th, 2010 10:08 am
I am trying to run the commands you have mentioned in terminal Ubuntu 10.04 but I keep getting this erro message please help madhuresh@CACIM:~$ sudo dpkg -i usb-modeswitch-data_20100418-1_all.deb dpkg: error processing usb-modeswitch-data_20100418-1_all.deb (--install): cannot access archive: No such file or directory Errors were encountered while processing: usb-modeswitch-data_20100418-1_all.deb madhuresh@CACIM:~$ sudo dpkg -i usb-modeswitch_1.1.2-3_i386.deb dpkg: error processing usb-modeswitch_1.1.2-3_i386.deb (--install): cannot access archive: No such file or directory Errors were encountered while processing: usb-modeswitch_1.1.2-3_i386.deb
meghnathan Naidu (not verified)
August 16th, 2010 09:59 pm
when i try to install usb mode switch i am getting following errors sudo dpkg -i usb-modeswitch-data_20100418-1_all.deb dpkg: error processing usb-modeswitch-data_20100418-1_all.deb (--install): cannot access archive: No such file or directory Errors were encountered while processing: usb-modeswitch-data_20100418-1_all.deb Any idea...
Somdeb Ghose (not verified)
August 17th, 2010 01:14 am
Hey thanks Shashank, my 12d1:140b is now working like a charm on Jaunty after... a) Installing usb-modeswitch b) Inserting the `140b' line in the Targetetc thingy c) Restarting Do hope it continues to work equally well. Else I'll have to shift to me BlackBerry (I travel). Wait...I can't, because the Indian Govt is going to ban the BBs. Waaahhh... T&R, Somdeb
Himanshu Patel (not verified)
August 19th, 2010 07:40 pm
Hello, I can see Hawaii technologies in add new broadband connection. But still after configuring i am not able to connect to internet. any one can help me ? I added proper Phone No, company, user name and password as internet so what is problem now? It was working fine in ubuntu 9 without any configuration ..
V. Moses (not verified)
August 24th, 2010 08:44 am
Hello, Thank you for your write-up. I used a Huwaei EC1261 modem with Fedora 13. Your suggestion of installing usb_modeswitch did the trick. The modem is automatically recognised as a modem when plugged in, after installing usb_modeswitch. Didn't have to do anything else to get it to work. --Vinu.
Ajeya (not verified)
August 24th, 2010 12:59 pm
Hello, I was able to get it to install and work on Lucid. The only thing that I did different was to restart my machine after installing usb_modeswitch. NM wasn't recognizing the modem until after the restart. Thank you for the instructions. -- Ajeya
Scaru (not verified)
September 4th, 2010 11:32 am
Hello, i have followed all the steps commented above but NM don't recognize my device. I installed the usb-modeswitch-data and usb-modeswitch. Also added 140b to the /etc/usb_modeswitch.d/12d1:1446 and restarted my computer. I have Ubuntu 10.04 and Tata photon+ Huwei EC1261. Running lusb: Bus 002 Device 004: ID 12d1:1446 Huawei Technologies Co., Ltd. My /etc/usb_modeswitch.d/12d1:1446 looks like this: ######################################################## # Huawei, newer modems DefaultVendor= 0x12d1 DefaultProduct=0x1446 TargetVendor= 0x12d1 TargetProductList="1001,1406,140c,141b,14ac,140b" CheckSuccess=20 MessageContent="55534243123456780000000000000011060000000000000000000000000000" Does anyone know what i am doing wrong?? Thank you
Anon Linuxer (not verified)
September 13th, 2010 10:27 pm
Hi That means it is not switching to modem mode. After you have installed the latest version of usb_modeswitch and it does not detect your modem then you need to run the following command, as mentioned earlier is one of the replies: sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446 It worked for me after using this command. but it seems I have to use this command every time.
Anon Linuxer (not verified)
January 7th, 2011 10:19 pm
Hi, I am getting below error when I do wvdial...... Waiting for carrier. ATDT#777 NO CARRIER --> No Carrier! Trying again. --> Sending: ATDT#777 --> Waiting for carrier.
Himanshu Patel (not verified)
September 4th, 2010 12:29 pm
Hello you device is Huawei EC1260 not Huawei EC1261 .... There is bug in Ubuntu 10.04 Nothing else all is working file in my laptop, follow the steps get new PPA from launchpad already the bug is fixed Step - 1: Get access of CLI and please make sure that Ubuntu 9.10 with uninterrupted Internet and make it up-to-date with latest udpates to be at safer side. #sudo apt-get update #sudo apt-get upgrade Home Ubuntu 9.10 + Reliance NetConnect Broadband Modem (Huawei EC1260) + NetworkManager = Works Out Of The Box Mon, 04/05/2010 - 10:09 | by hardik Note: This article will help you to "Dial" your USB CDMA modem with Network Manager in Ubuntu, Assuming it's already working fine with wvdial. If you are modem is not detected or working by wvdial, then it's problem with Modem Detection in Ubuntu, if this is the case, then this solution is not for you. Update: If you are on Ubuntu 10.04 LTS (Lycid Lynx) Beta - 1, please test ModemManager [1] and submit your response here [2], your feedback would help us to push this package to final build. [1] http://launchpadlibrarian.net/43125454/modemmanager_0.3.git.20100404%7Et... [2] https://bugs.launchpad.net/network-manager/+bug/461096 Update: If you are on Ubuntu 10.04 LTS (Lucid Lynx), here is new version for Modem Manager with fix (Very Very hackish way) [1] https://launchpad.net/~hardik-dalwadi/+archive/ppa/+packages?field.name_... Since Ubuntu 9.10 release lot of people has complained about NetworkManager + Reliance NetConnect Broadband+ (Huawei EC1260) is not working out of the box, which was working fine with Ubuntu 9.04. This was happening due to bug in modem manager. I have just now uploaded patched version of modem manager which has solved the problem. So, No more gnome-ppp or wvdial, Here we GO: Step - 1: Get access of CLI and please make sure that Ubuntu 9.10 with uninterrupted Internet and make it up-to-date with latest udpates to be at safer side. #sudo apt-get update #sudo apt-get upgrade Step - 2: Please add my PPA to get patched version of Modem Manager. From here [1] you can find the detail about patched version of Modem Manager [1] ppa - > https://launchpad.net/~hardik-dalwadi/+archive/ppa #sudo add-apt-repository ppa:hardik-dalwadi/ppa Step - 3: Now, check the current version of your Modem Manager (FYI). And again update the system to get header of patched Modem Manager from my PPA. #dpkg -l | grep modemmanager #sudo apg-get update Step - 4: Now install Modem Manager from my PPA which is higher patched version from current version, after successful installation reboot the system. #sudo apt-get install modemmanager #sudo reboot Step - 5: Now after successful reboot, You should get the New CDMA Broadband option under Network Manager Its done ..............
Debes (not verified)
September 9th, 2010 10:05 pm
Thank a lot............... it works..........
Hidam (not verified)
September 10th, 2010 05:17 pm
Hi, I'm using a netbook (aspire one)-ubuntu-10.04. --usb-modswitch is installed --mobile broadband connection settings for TATA Photon + is done --but connection DOESN'T work till now- --rebooting is already done several times.. Please enlighten me if anyone has some clue :) Thanking you all in advance. Hidam
Scaru (not verified)
September 20th, 2010 06:01 pm
Yei, thank you. It wasn't switching. Running the command: sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1446 works.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <p> <br>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Use syntax $$latex$$ to insert LaTeX formulas.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.