Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: How to connect Tata photon +(Huawei EC156) to ubuntu natty

  1. #1
    Join Date
    Jul 2011
    Beans
    10

    How to connect Tata photon +(Huawei EC156) to ubuntu natty

    Please ensure that you have installed the following packages
    * usb-modeswitch-data
    * usb-modeswitch

    Connect the device and see whether it is detected automatically in the network manager
    if not do the following things.
    .Open the terminal
    .Type
    Code:
    sudo nautilus
    A new window will be opened for root
    .Go to filesystems ----/etc/usb_modeswitch.d
    .Create a new config file named 12d1:1505
    .Cut and Paste the following
    Code:
    DefaultVendor= 0x12d1 
    DefaultProduct=0x1505 
    
    MessageContent="55534243123456780000000000000011062000000100000000000000000000"
    .Save the file
    .Go to terminal
    .Go to the path by the code
    Code:
    cd /etc/usb_modeswitch.d
    .Type the command
    Code:
    sudo usb_modeswitch -I -W -c 12d1\:1505
    .It may connect automatically..
    .Just wait for one minute
    .The default network manager may detect your device and follow the instructions by it
    mark it to connect automatically in the mobile broadband edit options
    .If not open your network mannager go to manage connection
    open the mobile broadband and add a new connection
    if it detects installed CDMA device or Huawei EC156 follow the instruction given by the network manager
    mark it to connect automatically in the mobile broadband edit options
    .Rebbot your system and see it is connected automatically
    .If not you have to type the two codes mentioned above all the times when you connect your device
    It will be very diffficult to type the codes all the time....so go for the following steps to run that commands automattically


    STEPS
    Script to run the modeswitch command in boot
    steps
    1.Open the gedit
    2.Type the two commands which you want to run in two separate lines.
    3.save the file with the extension .sh on the disk where ever you want and make this file as executable in the properties
    4.Then right click on the desktop
    5 Create launcher
    6.Set type as Run in terminal
    7.Give your desired name
    8.Give the path of file with the extension .sh in the command box
    9.Hit ok

    Open the launcher.....
    enter the password if required

    You can change your icon in the properties of the new launcher file

    Connect your device when ever required and click the new icon on the desktop
    Hit the password.....
    enjoy...

  2. #2
    Join Date
    Apr 2009
    Location
    Mangalore India
    Beans
    806
    Distro
    Lubuntu 16.04 Xenial Xerus

    Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    Let me make it clear that the command to be typed in gedit to run the modeswitch in boot will be as follows
    Code:
    cd /etc/usb_modeswitch.d
    sudo usb_modeswitch -I -W -c 12d1\:1505
    With regards
    Dr Kurian
    Microsoft gives you Windows... Linux gives you the whole house.

  3. #3
    Join Date
    Oct 2007
    Location
    New Delhi, India
    Beans
    99
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    Thank you very much.
    I have been trying for a month and Tata indicom service people were sending me from pillar to post. Your post helped me finally.
    I was only able to connect by using those terminal commands every time I boot. It connected without a launcher first time. When i created a launcher and used it, I got a permission error. then I realized I did not make the .sh file as an executable file by setting the properties. now it works fine.
    Thank you again.
    Last edited by gunashekar; August 6th, 2011 at 06:38 AM.
    Gunashekar
    "where knowledge is free"
    Humanity Networks
    Chennai India

  4. #4
    Join Date
    Apr 2009
    Location
    Mangalore India
    Beans
    806
    Distro
    Lubuntu 16.04 Xenial Xerus

    Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    Happy to hear that you have solved it.
    With regards
    Dr Kurian
    Microsoft gives you Windows... Linux gives you the whole house.

  5. #5
    Join Date
    Nov 2011
    Beans
    1

    Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    Hi people,

    Although I tried the same steps to connect Tata Photon EC156 with Ubuntu 11.04 but getting following errors:
    eprasvi@5SF3WQ1:/etc/usb_modeswitch.d$ sudo usb_modeswitch -I -W -c 12d1\:1505
    [sudo] password for eprasvi:

    Reading config file: 12d1:1505

    * usb_modeswitch: handle USB devices with multiple modes
    * Version 1.1.6 (C) Josua Dietze 2010
    * Based on libusb0 (0.1.12 and above)

    ! PLEASE REPORT NEW CONFIGURATIONS !

    DefaultVendor= 0x12d1
    DefaultProduct= 0x1505
    TargetVendor= not set
    TargetProduct= not set
    TargetClass= not set
    TargetProductList=""

    DetachStorageOnly=0
    HuaweiMode=0
    SierraMode=0
    SonyMode=0
    GCTMode=0
    KobilMode=0
    MessageEndpoint= not set
    MessageContent="5553424312345678000000000000001106 2000000100000000000000000000"
    NeedResponse=0
    ResponseEndpoint= not set
    Interface=0x00

    InquireDevice disabled
    Success check disabled
    System integration mode disabled

    usb_set_debug: Setting debugging level to 15 (on)
    usb_os_find_busses: Found 002
    usb_os_find_busses: Found 001
    usb_os_find_devices: Found 008 on 002
    usb_os_find_devices: Found 003 on 002
    skipped 1 class/vendor specific interface descriptors
    skipped 1 class/vendor specific interface descriptors
    usb_os_find_devices: Found 002 on 002
    usb_os_find_devices: Found 001 on 002
    error obtaining child information: Inappropriate ioctl for device
    error obtaining child information: Inappropriate ioctl for device
    usb_os_find_devices: Found 004 on 001
    skipping descriptor 0xB
    skipped 1 class/vendor specific endpoint descriptors
    skipped 6 class/vendor specific interface descriptors
    skipping descriptor 0x25
    skipped 1 class/vendor specific endpoint descriptors
    skipped 19 class/vendor specific interface descriptors
    skipping descriptor 0xFF
    skipped 1 class/vendor specific endpoint descriptors
    usb_os_find_devices: Found 003 on 001
    skipped 2 class/vendor specific interface descriptors
    usb_os_find_devices: Found 002 on 001
    usb_os_find_devices: Found 001 on 001
    error obtaining child information: Inappropriate ioctl for device
    error obtaining child information: Inappropriate ioctl for device

    Looking for default devices ...
    searching devices, found USB ID 12d1:1505
    found matching vendor ID
    found matching product ID
    adding device
    searching devices, found USB ID 0a5c:5800
    searching devices, found USB ID 8087:0024
    searching devices, found USB ID 1d6b:0002
    searching devices, found USB ID 05ca:181e
    searching devices, found USB ID 413c:8187
    searching devices, found USB ID 8087:0024
    searching devices, found USB ID 1d6b:0002
    Found devices in default mode, class or configuration (1)
    Accessing device 008 on bus 002 ...
    Getting the current device configuration ...
    OK, got current device configuration (1)
    Using endpoints 0x08 (out) and 0x87 (in)
    Using endpoints 0x08 (out) and 0x87 (in)

    USB description data (for identification)
    -------------------------
    Manufacturer: HUA�WEI TECHNOLOGIES
    Product: HUAWEI Mobile
    Serial No.: �������������������
    -------------------------
    Looking for active driver ...
    OK, driver found ("usb-storage")
    OK, driver "usb-storage" detached
    Setting up communication with interface 0 ...
    Using endpoint 0x08 for message sending ...
    Trying to send message 1 to endpoint 0x08 ...
    OK, message successfully sent
    Resetting response endpoint 0x87
    Resetting message endpoint 0x08
    USB error: could not clear/halt ep 8: Broken pipe
    Error resetting endpoint: -32
    USB error: could not release intf 0: No such device
    Device is gone, skipping any further commands
    -> Run lsusb to note any changes. Bye.

    eprasvi@5SF3WQ1:/etc/usb_modeswitch.d$
    eprasvi@5SF3WQ1:/etc/usb_modeswitch.d$ lsusb
    Bus 002 Device 009: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
    Bus 002 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
    Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 05ca:181e Ricoh Co., Ltd
    Bus 001 Device 003: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth Module
    Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    eprasvi@5SF3WQ1:/etc/usb_modeswitch.d$

    -------------------------------

    After this at least I am able to see on Computer "Huawei USB Storage" icon but can't do anything with it.
    It also shows "Tata Indicom .... " in networks but not able to connect from it.

    Not sure what to do next?

    Please help.

  6. #6
    Join Date
    Nov 2011
    Beans
    1

    Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    Even I am facing the same issue...


    I am getting the following message... I am using ubuntu 10.10 itself.


    USB error: could not clear/halt ep 8: Broken pipe
    Error resetting endpoint: -32
    -> Run lsusb to note any changes. Bye



    bash$:/etc/usb_modeswitch.d$ lsusb
    Bus 002 Device 011: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
    Bus 002 Device 008: ID 04f3:0232 Elan Microelectronics Corp.
    Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 003: ID 0c45:6407 Microdia
    Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



    I doubt if I am doing the correct configuration.. in the lsusb, the Huawei device is marked as 1260, even though this post was for EC156..... I doubt if I am missing anything....

    Please help...


    ______
    Regards
    Praveen P

  7. #7
    Join Date
    Jan 2011
    Beans
    7

    Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    Well, the answer suggested by Jayadeep is absolutely right, but the problems occurring (as reported by prashv and Praveen P) can be solved by adding two additional line to the code written in the 12d1:1505 file situated at /etc/usbmodeswitch.d directory. Let me put the complete code again with addition of two lines.

    Code:
    DefaultVendor= 0x12d1  
    DefaultProduct=0x1505   
    
    MessageContent="55534243123456780000000000000011062000000100000000000000000000"
    
    NeedResponse=1 
    
    CheckSuccess=10
    After this run following command:

    Code:
    sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1\:1505


    Actually, if you don't want to run the command

    sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1\:1505

    every time after you plug in, then do the following.

    1) Open terminal
    2) Write "gedit" and press "enter key"
    3) Text editor will open, now paste the command

    sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1\:1505

    4) Click "Save", and name the file "tata.sh" (You can give your own name)
    5) Now, every time you don't have to run that long command,

    instead run

    Code:
    ./tata.sh


    Enjoy......

  8. #8
    Join Date
    Dec 2011
    Beans
    1

    Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    Hi, Thanks for the post. It helped me connect my photon to ubuntu.

    Isn't there anyway that photon is detected everytime and we don't have to run this ./tata.sh ??

  9. #9
    Join Date
    Jan 2012
    Beans
    1

    Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    i followed the instruction and did the below...
    Installed usb-modeswitch-data and usb-modeswitch
    Created /etc/usb_modeswitch.d/12d1:1505
    Ran 'sudo usb_modeswitch -I -W -c 12d1\:1505' and got the below output int the terminal

    Note: target parameter missing; success check limited
    Looking for default devices ...
    Found default devices (1)
    Accessing device 002 on bus 002 ...
    Using endpoints 0x08 (out) and 0x87 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
    OK, driver found ("usb-storage")
    OK, driver "usb-storage" detached

    SCSI inquiry data (for identification)

    -------------------------
    Vendor String: HUAWEI
    Model String: Mass Storage
    Revision String: 2.31
    -------------------------

    USB description data (for identification)

    -------------------------
    Manufacturer: HUA�WEI TECHNOLOGIES
    Product: HUAWEI Mobile
    Serial No.: ???????????????
    -------------------------
    Setting up communication with interface 0 ...
    Trying to send the message to endpoint 0x08 ...
    OK, message successfully sent
    Reading the response to the message ...
    OK, response successfully read (0 bytes).
    Device is gone, skipping any further commands

    Checking for mode switch (max. 10 times, once per second) ...

    Original device is gone already, not checking
    (For a better success check provide target IDs or class)
    Original device vanished after switching

    Mode switch most likely succeeded. Bye.

    the device was not detected automatically, then i tried "Edit Connections..." and the "Mobile broadband" and clicked "Add", no items was enabled in the drop down box.
    When i tried reconnecting the Tata Photon+ device its automounted as usb device and it asked for ".. application to launch.." pop up.

    Thanks for your help in advance
    Last edited by Senthil.sub; January 22nd, 2012 at 11:46 AM.

  10. #10
    Join Date
    Jan 2012
    Beans
    4

    Lightbulb Re: How to connect Tata photon +(Huawei EC156) to ubuntu natty

    A simple guide is available at http://bernaerts.dyndns.org/linux/20...ata-photonplus

    It has been tested with a Photon + USB key bought 1 week ago.

    Hope it helps.

    Nick
    Last edited by nicolas.bernaerts; January 22nd, 2012 at 11:06 PM. Reason: Correct URL

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •