Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: TP Link MA260, Ubuntu 12.04 LTS

  1. #1
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question TP Link MA260, Ubuntu 12.04 LTS

    I have a new Linux machine running Ubuntu 12.04 LTS. I want to use a TP Link MA260 UMTS dongle with it. There are quite a few posts on the Internet about Kernel updates and similar things relating to this device, but not being a Kernel expert I don't really understand much of it. The Kernel for my ubuntu is 3.2.0-52 (or something like that... I cannot check it right now) where as most of the posts seem to refer to later Kernels (3.2.5... or such).

    The MA260 works out of the box with Win XP and later Win versions but I cannot find any information at all about how to get it running under Linux. When I check /var/log/syslog I see that the device is being recognised as a CD-ROM (typical for this type of dongle), but it doesn't switch over to a USB/UMTS modem. The term "modeswitch" comes to mind but I am not sure what I need to configure.

    Does anybody out there have a suggestion for me or should I ditch the MA260 and buy something with a track record for working under Linux? I'm not rich but I do need to get a working mobile internet connection relatively quickly.

    Thanks for any tips.

    Additional info:
    My .profile looks like this:
    Code:
    # if running bash
    if [ -n "$BASH_VERSION" ]; then
        # include .bashrc if it exists
        if [ -f "$HOME/.bashrc" ]; then
            . "$HOME/.bashrc"
        fi
    fi
    
    # set PATH so it includes user's private bin if it exists
    if [ -d "$HOME/bin" ] ; then
        PATH="$HOME/bin:$PATH"
    fi
    
    #
    # set JAVA_HOME and add to PATH
    #
    
    if [ "x$JAVA_HOME" == "x" ]; then
       . /usr/local/share/java_se/java_vars.sh
    fi
    
    #
    # set JBOSS_HOME and add to PATH
    #
    
    if [ "x$JBOSS_HOME" == "x" ]; then
       . /usr/local/share/jboss_7/jboss_vars.sh
    fi
    
    #
    # set ANT_HOME and add to PATH
    #
    
    if [ "x$ANT_HOME" == "x" ]; then
       . /usr/local/share/ant/ant_vars.sh
    fi
    As an example my script "/usr/local/share/java_se/java_vars.sh" looks like this:
    Code:
    #!/bin/bash
    
    # Setup Java environment vars:
    export JAVA_HOME="/usr/local/share/java_se/jdk1.7.0_51"
    export PATH=$JAVA_HOME/bin:$PATH
    Last edited by achim_59; February 6th, 2014 at 12:16 AM. Reason: additional information

  2. #2
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,175
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need to get TP Link MA260 working with Ubuntu 12.04 LTS

    You can choose to upgrade your kernel version to get better hardware support as mentioned here : https://wiki.ubuntu.com/Kernel/LTSEnablementStack

    In the meanwhile, please show us some command outputs that may be required to do the troubleshooting if required. Unplug the dongle, wait for about 30 seconds, replug it, then open a terminal with Ctrl-Alt-T and run the following commands in it -
    Code:
    lsusb
    dmesg | tail -20
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags
    Am I not replying you? Perhaps this is why.

  3. #3
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need to get TP Link MA260 working with Ubuntu 12.04 LTS

    Thanks for the response. I was unaware that anybody had responded (no e-mail access during the week). So I'm a bit late with the requested details.

    I don't have the device with me, so I cannot experiment at the moment. That will have to wait until I get back to my apartment tonight. However, I do have the results of the lsusb command saved on a USB stick:
    Code:
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 002: ID 8087:8000 Intel Corp. 
    Bus 002 Device 005: ID 2357:f000  
    Bus 002 Device 003: ID 8087:07dc Intel Corp.
    According to this post that means it hasn't been switched over to modem mode - no surprise there. I tried using the the switch they specify with a self cobbled usb_modeswitch command, but it didn't work properly.

    I'll post more info on MA260 experimentation tomorrow. If I have enough time, I will try to do the kernel upgrade when I get home on the weekend... I have DSL access there at least. Has there been an update for 12.04 In the past month? That's how long ago I installed it on the new machine.

    I have also been trying unsuccessfully trying to get a Nokia CS-15 working. I had one of those functioning well on my IBM T43, which unfortunately was stolen last November along with the dongle (and much more). I have another post with regard to those attempts at the following site: http://www.linuxquestions.org/questi...-a-4175491151/

    The whole mechanism by which usb_modeswitch is invoked has apparently been altered for the newer kernels and I'm not certain where I'm going wrong.
    Last edited by achim_59; January 15th, 2014 at 06:53 PM. Reason: spelling

  4. #4
    Join Date
    Sep 2012
    Beans
    6

    Re: Need to get TP Link MA260 working with Ubuntu 12.04 LTS

    Hi achim,
    I have TP-link 3g modem ma260 and I am not able to make working the modem. I have try the correct usb mode switch file but the ma260 don't switch from f000 to 9000. I have compiling the last kernel with the last option driver but the modem don't switch. So I have buy the router made for this 3g key: the router TP-link TL-MR3420 and i have linked the PC with a Ethernet cable: All works auto of the box.

    But I'm curious so I watch this 3ad.

    If you want try check my try:

    kernel is (uname -r 3.10.19) key don't works, i have try this:
    [root@localhost /]# usb_modeswitch -c /home/sandro/Desktop/usb_modeswitch.conf.ma260

    with:

    ################################################## #####
    # TP-Link MA260
    #
    # Contributor: Bjørn Mork

    DefaultVendor= 0x2357
    DefaultProduct=0xf000

    TargetVendor= 0x2357
    TargetProduct= 0x9000

    MessageContent="5553424312345678000000000000061b00 0000020000000000000000000000"

    don't works, lsusb is still f000 and dmesg shows:

    [ 1826.088880] usb 2-2: new high-speed USB device number 3 using ehci-pci
    [ 1826.241938] usb 2-2: New USB device found, idVendor=2357, idProduct=f000
    [ 1826.241951] usb 2-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
    [ 1826.241958] usb 2-2: Product: TP-LINK HSPA+ Modem
    [ 1826.241965] usb 2-2: Manufacturer: TP-LINK, Incorporated
    [ 1826.241970] usb 2-2: SerialNumber: 863745010165716
    [ 1826.245452] usb-storage 2-2:1.0: USB Mass Storage device detected
    [ 1826.245621] scsi11 : usb-storage 2-2:1.0
    [ 1827.238426] scsi 11:0:0:0: CD-ROM TP-LINK MMC Storage 2.31 PQ: 0 ANSI: 2
    [ 1827.240378] sr0: scsi-1 drive
    [ 1827.240726] sr 11:0:0:0: Attached scsi CD-ROM sr0
    [ 1827.243240] scsi 11:0:0:1: Direct-Access TP-LINK MMC Storage 2.31 PQ: 0 ANSI: 2
    [ 1827.246387] sd 11:0:0:1: [sdd] Attached SCSI removable disk
    [ 1892.475699] usb 2-2: usbfs: process 7584 (usb_modeswitch) did not claim interface 0 before use

  5. #5
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Hi again varunendra (and any others following this),

    Here is the requested result of lsusb and dmesg

    Code:
    achim@achim-W840SU-Series:~$ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 002: ID 8087:8000 Intel Corp. 
    Bus 002 Device 002: ID 8087:07dc Intel Corp. 
    Bus 002 Device 003: ID 062a:0000 Creative Labs Optical mouse
    Bus 002 Device 004: ID 2357:f000  
    achim@achim-W840SU-Series:~$ dmesg | tail -20
    [   14.380311] usb 2-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
    [   14.400801] input: HID 062a:0000 as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/input/input8
    [   14.401176] generic-usb 0003:062A:0000.0001: input,hidraw0: USB HID v1.10 Mouse [HID 062a:0000] on usb-0000:00:14.0-2/input0
    [   14.401227] usbcore: registered new interface driver usbhid
    [   14.401234] usbhid: USB HID core driver
    [  170.079032] usb 2-1: new high-speed USB device number 4 using xhci_hcd
    [  170.244328] Initializing USB Mass Storage driver...
    [  170.244476] scsi4 : usb-storage 2-1:1.0
    [  170.244587] usbcore: registered new interface driver usb-storage
    [  170.244591] USB Mass Storage support registered.
    [  171.243884] scsi 4:0:0:0: CD-ROM            TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [  171.244671] scsi 4:0:0:1: Direct-Access     TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [  171.248473] sr0: scsi-1 drive
    [  171.248482] cdrom: Uniform CD-ROM driver Revision: 3.20
    [  171.248800] sr 4:0:0:0: Attached scsi CD-ROM sr0
    [  171.248999] sr 4:0:0:0: Attached scsi generic sg1 type 5
    [  171.249396] sd 4:0:0:1: Attached scsi generic sg2 type 0
    [  171.261121] sd 4:0:0:1: [sdb] Attached SCSI removable disk
    [  171.270024] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
    [  171.294341] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 3 ep 2 with no TDs queued?
    after doing that I went back to the man page for usb_modeswitch and cobbled together a command that I thought should work. Here is the result:
    Code:
    achim@achim-W840SU-Series:~$ usb_modeswitch -v 0x2357 -p 0xf000 -P 0x9000 -M "5553424312345678000000000000061b000000020000000000000000000000"
    
    Looking for default devices ...
       found matching product ID
       adding device
     Found device in default mode, class or configuration (1)
    Accessing device 000 on bus 002 ...
    Getting the current device configuration ...
    Error getting the current configuration (error -1). Assuming configuration 1.
    Using first interface: 0x00
    Using endpoints 0x01 (out) and 0x81 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
     No driver found. Either detached before or never attached
     Could not claim interface (error -1). Skipping device inquiry
    Error: could not get description string "manufacturer"
    Error: could not get description string "product"
    Error: could not get description string "serial number"
    
    USB description data (for identification)
    -------------------------
    Manufacturer: 
         Product: 
      Serial No.: 
    -------------------------
    Looking for active driver ...
     No driver found. Either detached before or never attached
    Setting up communication with interface 0
     Could not claim interface (error -1). Skipping message sending
    -> Run lsusb to note any changes. Bye.
    
    achim@achim-W840SU-Series:~$ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 002: ID 8087:8000 Intel Corp. 
    Bus 002 Device 002: ID 8087:07dc Intel Corp. 
    Bus 002 Device 003: ID 062a:0000 Creative Labs Optical mouse
    Bus 002 Device 004: ID 2357:f000
    As mentioned, I will try the kernel upgrade stack enablement on the weekend. I'll post the results ASAP.

  6. #6
    Join Date
    Sep 2012
    Beans
    6

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Have you try to make the text file ma260 with the content:

    ################################################## #####
    # TP-Link MA260
    #
    # Contributor: Bjørn Mork

    DefaultVendor= 0x2357
    DefaultProduct=0xf000

    TargetVendor= 0x2357
    TargetProduct= 0x9000

    MessageContent="5553424312345678000000000000061b00 0000020000000000000000000000"
    and then execute it by the command (super user privilege, sudo prefix):

    usb_modeswitch -c /path/to/ma260

    ?

  7. #7
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    5,865
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: TP Link MA260, Ubuntu 12.04 LTS


  8. #8
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: TP Link MA260, Ubuntu 12.04 LTS

    @Sandro Kensan: The one-liner command I input does precisely the same thing as placing the vendor, product, and message in a textfile:
    -v is default vendor ID
    -V is tatget vendor ID (superfluous if it's the same as the default, so I left that out)
    -p is default product ID
    -P is target product ID
    -M is message content
    If I get the dongle working, I'll probably pack the command into a text file as you suggest so that I don't have to type the whole thing in every time. As it is, the results are pretty clear. The kernel stack enablement procedure metioned above will probably help. I certainly hope so.

    @praseodym: I will go through that checklist on the weekend. Thanks for the extra diagnostic commands.

    Has any one checked out that other forum? I had previously asked here, but marked it solved when I got the CS-15 working on my T43. I'm baffled as to why it should not work on the new machine. Incidentally, both MA260 and CS-15 work with WinXP.

  9. #9
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: TP Link MA260, Ubuntu 12.04 LTS

    I attempted the so-called stack enablement. It generated rather a lot of output, so I place that in an attachment. The system monitor shows no change, so I suspect I need to re-boot before anything shows up as different. I will do that as soon as I've done the attachment.

    hmm... the file is to large to attach. maybe if I try putting it into 2 separte files of equal size...

    OK. that worked. Now the reboot.
    Attached Files Attached Files

  10. #10
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Well, that brought precisely zilch. Very diapointing. The system Monitor shows the kernel version has been updated to 3.8.0-35 (was 3.2.0-58). I then ran the series of tests I did previously. Here's the (lack of) result:

    Code:
    achim@achim-W840SU-Series:~$ lsusb
    Bus 001 Device 002: ID 8087:8000 Intel Corp. 
    Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
    Bus 002 Device 003: ID 8087:07dc Intel Corp. 
    Bus 002 Device 004: ID 5986:0536 Acer, Inc 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 002 Device 005: ID 03f0:2112 Hewlett-Packard OfficeJet Pro L7500
    Bus 002 Device 010: ID 2357:f000  
    Bus 002 Device 009: ID 0557:2221 ATEN International Co., Ltd 
    achim@achim-W840SU-Series:~$ dmesg | tail -20
    [  216.163070] usb 2-2.4: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
    [  216.163081] usb 2-2.4: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
    [  216.171160] input: ATEN UC-10KM V1.3.124 as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2.4/2-2.4:1.0/input/input17
    [  216.171421] hid-generic 0003:0557:2221.0005: input,hidraw0: USB HID v1.10 Keyboard [ATEN UC-10KM V1.3.124] on usb-0000:00:14.0-2.4/input0
    [  216.176779] input: ATEN UC-10KM V1.3.124 as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2.4/2-2.4:1.1/input/input18
    [  216.177086] hid-generic 0003:0557:2221.0006: input,hidraw1: USB HID v1.10 Mouse [ATEN UC-10KM V1.3.124] on usb-0000:00:14.0-2.4/input1
    [  219.425955] usb 2-2.3: new high-speed USB device number 10 using xhci_hcd
    [  219.444683] usb 2-2.3: New USB device found, idVendor=2357, idProduct=f000
    [  219.444693] usb 2-2.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
    [  219.444699] usb 2-2.3: Product: TP-LINK HSPA+ Modem
    [  219.444704] usb 2-2.3: Manufacturer: TP-LINK, Incorporated
    [  219.444709] usb 2-2.3: SerialNumber: 863745010134688
    [  219.624470] scsi6 : usb-storage 2-2.3:1.0
    [  220.623029] scsi 6:0:0:0: CD-ROM            TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [  220.623797] scsi 6:0:0:1: Direct-Access     TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [  220.626700] sr0: scsi-1 drive
    [  220.627008] sr 6:0:0:0: Attached scsi CD-ROM sr0
    [  220.627238] sr 6:0:0:0: Attached scsi generic sg2 type 5
    [  220.627682] sd 6:0:0:1: Attached scsi generic sg3 type 0
    [  220.636203] sd 6:0:0:1: [sdc] Attached SCSI removable disk
    achim@achim-W840SU-Series:~$ usb_modeswitch -v 0x2357 -p 0xf000 -P 0x9000 -M "5553424312345678000000000000061b000000020000000000000000000000"
    
    Looking for default devices ...
       found matching product ID
       adding device
     Found device in default mode, class or configuration (1)
    Accessing device 000 on bus 002 ...
    Getting the current device configuration ...
    Error getting the current configuration (error -1). Assuming configuration 1.
    Using first interface: 0x00
    Using endpoints 0x01 (out) and 0x81 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
     No driver found. Either detached before or never attached
     Could not claim interface (error -1). Skipping device inquiry
    Error: could not get description string "manufacturer"
    Error: could not get description string "product"
    Error: could not get description string "serial number"
    
    USB description data (for identification)
    -------------------------
    Manufacturer: 
         Product: 
      Serial No.: 
    -------------------------
    Looking for active driver ...
     No driver found. Either detached before or never attached
    Setting up communication with interface 0
     Could not claim interface (error -1). Skipping message sending
    -> Run lsusb to note any changes. Bye.
    
    achim@achim-W840SU-Series:~$ lsusb
    Bus 001 Device 002: ID 8087:8000 Intel Corp. 
    Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
    Bus 002 Device 003: ID 8087:07dc Intel Corp. 
    Bus 002 Device 004: ID 5986:0536 Acer, Inc 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 002 Device 005: ID 03f0:2112 Hewlett-Packard OfficeJet Pro L7500
    Bus 002 Device 010: ID 2357:f000  
    Bus 002 Device 009: ID 0557:2221 ATEN International Co., Ltd 
    achim@achim-W840SU-Series:~$
    To me that looks exactly the same as before. I haven't a clue as to what driver the usb-modeswitch command is on about. Obviously though something is missing. I've gone through the relevant items on that list from praseodym. The only part I'm not sure about is enabling mobile broadband... I have found no such Icon on my desktop (BTW I'm using MATE not Unity). Everything else is either not relevant at thes point (can*t check a connect script if the device isn't recognised) OR it is set correctly on this machine.

    For the sake of completeness I am going to go through this whole execise with the Nokia CS-15. I will post the results.

Page 1 of 4 123 ... LastLast

Tags for this Thread

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
  •