Page 4 of 4 FirstFirst ... 234
Results 31 to 39 of 39

Thread: TP Link MA260, Ubuntu 12.04 LTS

  1. #31
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    94
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: TP Link MA260, Ubuntu 12.04 LTS

    In a fit of enthusiasm I just tried the same stunt with the MA260 that I performed with the CS-15 when it worked... I ejected it (or tried to) using the disk utility. The result is encouraging, though not a solution. Firstly, the disk utility still shows the device as a CD drive. However, I took a look in /var/log/syslog and found to my surprise that a new modem device (ttyUSB2) had been registered. I quickly modified my wvdial scrip (didn't even check with Network Manager) and ran it. According to the output I had a connection. Then I checked the Network Manager and it also claimed I had a connection with my service provider (Deutsche Telekom: T-Mobile).

    For the sake of those who like to analyse such things, here is the output I subsequently got from running dmesg and lsusb:
    Code:
    root@achim-W840SU-Series:/etc# dmesg |tail -40
    [102278.289665] sr 5:0:0:0: Attached scsi CD-ROM sr0
    [102278.290196] sr 5:0:0:0: Attached scsi generic sg1 type 5
    [102278.290757] sd 5:0:0:1: Attached scsi generic sg2 type 0
    [102278.299302] sd 5:0:0:1: [sdb] Attached SCSI removable disk
    [102278.309127] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 8 ep 2 with no TDs queued?
    [102478.763189] usb 2-2.1: USB disconnect, device number 9
    [102478.969355] usb 2-2.1: new high-speed USB device number 10 using xhci_hcd
    [102478.988773] usb 2-2.1: New USB device found, idVendor=2357, idProduct=9000
    [102478.988784] usb 2-2.1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
    [102478.988791] usb 2-2.1: Product: TP-LINK HSPA+ Modem
    [102478.988796] usb 2-2.1: Manufacturer: TP-LINK, Incorporated
    [102478.988801] usb 2-2.1: SerialNumber: 863745010134688
    [102479.168262] usb-storage 2-2.1:1.2: USB Mass Storage device detected
    [102479.168485] scsi6 : usb-storage 2-2.1:1.2
    [102479.193683] usbcore: registered new interface driver cdc_wdm
    [102479.196981] usbcore: registered new interface driver usbserial
    [102479.197001] usbcore: registered new interface driver usbserial_generic
    [102479.197012] usbserial: USB Serial support registered for generic
    [102479.215339] usbcore: registered new interface driver option
    [102479.215357] usbserial: USB Serial support registered for GSM modem (1-port)
    [102479.215615] option 2-2.1:1.0: GSM modem (1-port) converter detected
    [102479.215699] usb 2-2.1: GSM modem (1-port) converter now attached to ttyUSB0
    [102479.215763] option 2-2.1:1.1: GSM modem (1-port) converter detected
    [102479.215834] usb 2-2.1: GSM modem (1-port) converter now attached to ttyUSB1
    [102479.215911] option 2-2.1:1.3: GSM modem (1-port) converter detected
    [102479.215980] usb 2-2.1: GSM modem (1-port) converter now attached to ttyUSB2
    [102479.219926] qmi_wwan 2-2.1:1.4: cdc-wdm0: USB WDM device
    [102479.220378] qmi_wwan 2-2.1:1.4 wwan0: register 'qmi_wwan' at usb-0000:00:14.0-2.1, WWAN/QMI device, 02:1d:e6:0a:cc:8c
    [102479.220496] usbcore: registered new interface driver qmi_wwan
    [102480.166334] scsi 6:0:0:0: CD-ROM            TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [102480.167509] scsi 6:0:0:1: Direct-Access     TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [102480.170673] sr0: scsi-1 drive
    [102480.170989] sr 6:0:0:0: Attached scsi CD-ROM sr0
    [102480.171980] sr 6:0:0:0: Attached scsi generic sg1 type 5
    [102480.172645] sd 6:0:0:1: Attached scsi generic sg2 type 0
    [102480.175838] sd 6:0:0:1: [sdb] Attached SCSI removable disk
    [102935.163447] PPP BSD Compression module registered
    [102935.170494] PPP Deflate Compression module registered
    [102955.648907] r8169 0000:03:00.1 eth0: link down
    [102959.922033] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    root@achim-W840SU-Series:/etc# 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 010: ID 2357:9000  
    Bus 002 Device 005: ID 03f0:2112 Hewlett-Packard OfficeJet Pro L7500
    Bus 002 Device 008: ID 0557:2221 ATEN International Co., Ltd 
    root@achim-W840SU-Series:/etc#
    Note that the MA260 is Device ID 2357:f000 when it is masquerading as a CD drive and that it has switched to 2357:9000, which is the USB modem mode. The output in /var/log/syslog is even more detailed and I've attached that.

    That's the good news. The bad news is that I still can't access the internet, because FireFox and Evolution both claim that they do not have a connection. The user privileges are correct according to the list that Praseodym provided (see earlier post). I will try logging off and logging back on. Then I'll detach my Lan cable before I try to get the dongle to work. This will probably require a few hours... not because I'm slow, but because my it's my wife's birthday and I think she would throttle me if I spend much more time here fiddling about.

    I'll be sure to post the results as soon as I can.
    Attached Files Attached Files
    Last edited by achim_59; February 17th, 2014 at 10:19 AM. Reason: clarification

  2. #32
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    94
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Question Re: TP Link MA260, Ubuntu 12.04 LTS

    Once aggain I have had some limited success.

    Firstly, loging off and on again had no effect. Even tried rebooting and that was no better.

    I was baffled at the fact that both the network manager (that is what that icon which lists all the available networks attaches to... isn't it) and wvdial were telling me I have a connection, but FireFox, Evolution and even the ping in Network Tools were telling me otherwise.

    By way of experiment, I tried going through all the old steps which I'd tried earlier with both the CS-15 and the MA260 after removing and re-inserting the dongle. Here's a transcript of that session:
    Code:
    achim@achim-W840SU-Series:~$ dmesg| tail -40
    [15313.614715] usb-storage 2-2.1:1.0: USB Mass Storage device detected
    [15313.614969] scsi7 : usb-storage 2-2.1:1.0
    [15314.613014] scsi 7:0:0:0: CD-ROM            TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [15314.613709] scsi 7:0:0:1: Direct-Access     TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [15314.616531] sr0: scsi-1 drive
    [15314.616864] sr 7:0:0:0: Attached scsi CD-ROM sr0
    [15314.617122] sr 7:0:0:0: Attached scsi generic sg1 type 5
    [15314.617693] sd 7:0:0:1: Attached scsi generic sg2 type 0
    [15314.631034] sd 7:0:0:1: [sdb] Attached SCSI removable disk
    [15314.636550] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 10 ep 2 with no TDs queued?
    [15314.654642] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 10 ep 2 with no TDs queued?
    [15515.014434] usb 2-2.1: usbfs: process 4278 (usb_modeswitch) did not claim interface 0 before use
    [15633.177257] usb 2-2.1: usbfs: process 4284 (usb_modeswitch) did not claim interface 0 before use
    [15794.019444] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [15794.033831] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [15794.085755] iwlwifi 0000:02:00.0: L1 Disabled; Enabling L0S
    [15794.085901] iwlwifi 0000:02:00.0: L1 Disabled; Enabling L0S
    [15794.094116] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [15794.094368] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [15794.110665] r8169 0000:03:00.1 eth0: link down
    [15794.110709] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [15794.110996] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [15802.430715] wlan0: authenticate with 00:15:0c:82:df:5e
    [15802.431700] wlan0: send auth to 00:15:0c:82:df:5e (try 1/3)
    [15802.433722] wlan0: authenticated
    [15802.434085] iwlwifi 0000:02:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
    [15802.434097] iwlwifi 0000:02:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
    [15802.436136] wlan0: associate with 00:15:0c:82:df:5e (try 1/3)
    [15802.438568] wlan0: RX AssocResp from 00:15:0c:82:df:5e (capab=0x461 status=0 aid=47)
    [15802.439591] wlan0: associated
    [15802.439650] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [15817.668247] wlan0: deauthenticating from 00:15:0c:82:df:5e by local choice (reason=3)
    [15817.669729] cfg80211: Calling CRDA to update world regulatory domain
    [15817.679166] cfg80211: World regulatory domain updated:
    [15817.679175] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [15817.679180] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [15817.679185] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [15817.679189] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [15817.679193] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [15817.679197] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    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 013: ID 2357:f000  
    Bus 002 Device 005: ID 03f0:2112 Hewlett-Packard OfficeJet Pro L7500
    Bus 002 Device 012: ID 0557:2221 ATEN International Co., Ltd 
    achim@achim-W840SU-Series:~$ sudo 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 013 on bus 002 ...
    Getting the current device configuration ...
     OK, got current device configuration (1)
    Using first interface: 0x00
    Using endpoints 0x01 (out) and 0x81 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
     OK, driver found ("usb-storage")
     OK, driver "usb-storage" detached
    Nothing further happened and I hit Ctrl-C. The session continues... note carefully the next use of usb_modeswitch, it gives an interesting result:

    Code:
    ^Cachim@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 013: ID 2357:f000  
    Bus 002 Device 005: ID 03f0:2112 Hewlett-Packard OfficeJet Pro L7500
    Bus 002 Device 012: ID 0557:2221 ATEN International Co., Ltd 
    achim@achim-W840SU-Series:~$ sudo 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 013 on bus 002 ...
    Getting the current device configuration ...
     OK, got current device 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
    
    SCSI inquiry data (for identification)
    -------------------------
      Vendor String: TP-LINK 
       Model String: MMC Storage     
    Revision String: 2.31
    -------------------------
    
    USB description data (for identification)
    -------------------------
    Manufacturer: TP-LINK, Incorporated
         Product: TP-LINK HSPA+ Modem
      Serial No.: 863745010134688
    -------------------------
    Setting up communication with interface 0
    Using endpoint 0x01 for message sending ...
    Trying to send message 1 to endpoint 0x01 ...
     OK, message successfully sent
    Resetting response endpoint 0x81
    Resetting message endpoint 0x01
    -> 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 013: ID 2357:f000  
    Bus 002 Device 005: ID 03f0:2112 Hewlett-Packard OfficeJet Pro L7500
    Bus 002 Device 012: ID 0557:2221 ATEN International Co., Ltd 
    achim@achim-W840SU-Series:~$ dmesg| tail -40
    [15802.439650] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [15817.668247] wlan0: deauthenticating from 00:15:0c:82:df:5e by local choice (reason=3)
    [15817.669729] cfg80211: Calling CRDA to update world regulatory domain
    [15817.679166] cfg80211: World regulatory domain updated:
    [15817.679175] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [15817.679180] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [15817.679185] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [15817.679189] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [15817.679193] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [15817.679197] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [15870.987419] usb 2-2.1: USB disconnect, device number 11
    [15885.059596] usb 2-2.4: USB disconnect, device number 10
    [15885.430177] usb 2-2.4: new low-speed USB device number 12 using xhci_hcd
    [15885.454519] usb 2-2.4: New USB device found, idVendor=0557, idProduct=2221
    [15885.454530] usb 2-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [15885.454536] usb 2-2.4: Product: UC-10KM V1.3.124
    [15885.454542] usb 2-2.4: Manufacturer: ATEN
    [15885.454547] usb 2-2.4: SerialNumber: USB Composite device
    [15885.454830] usb 2-2.4: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
    [15885.454846] usb 2-2.4: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
    [15885.463083] 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/input19
    [15885.463347] hid-generic 0003:0557:2221.0007: input,hidraw0: USB HID v1.10 Keyboard [ATEN UC-10KM V1.3.124] on usb-0000:00:14.0-2.4/input0
    [15885.468886] 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/input20
    [15885.469221] hid-generic 0003:0557:2221.0008: input,hidraw1: USB HID v1.10 Mouse [ATEN UC-10KM V1.3.124] on usb-0000:00:14.0-2.4/input1
    [15888.584423] usb 2-2.1: new high-speed USB device number 13 using xhci_hcd
    [15888.603084] usb 2-2.1: New USB device found, idVendor=2357, idProduct=f000
    [15888.603095] usb 2-2.1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
    [15888.603102] usb 2-2.1: Product: TP-LINK HSPA+ Modem
    [15888.603108] usb 2-2.1: Manufacturer: TP-LINK, Incorporated
    [15888.603112] usb 2-2.1: SerialNumber: 863745010134688
    [15888.782697] usb-storage 2-2.1:1.0: USB Mass Storage device detected
    [15888.782928] scsi8 : usb-storage 2-2.1:1.0
    [15889.780901] scsi 8:0:0:0: CD-ROM            TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [15889.781654] scsi 8:0:0:1: Direct-Access     TP-LINK  MMC Storage      2.31 PQ: 0 ANSI: 2
    [15889.783794] sr0: scsi-1 drive
    [15889.784378] sr 8:0:0:0: Attached scsi CD-ROM sr0
    [15889.787007] sr 8:0:0:0: Attached scsi generic sg1 type 5
    [15889.787906] sd 8:0:0:1: Attached scsi generic sg2 type 0
    [15889.793912] sd 8:0:0:1: [sdb] Attached SCSI removable disk
    [15961.741991] usb 2-2.1: usbfs: process 4530 (usb_modeswitch) did not claim interface 0 before use
    achim@achim-W840SU-Series:~$ sudo 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 013 on bus 002 ...
    Getting the current device configuration ...
     OK, got current device 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
    ^Cachim@achim-W840SU-Series:~$
    At this point nothig was happening, so again I hit Ctrl-C. The interesing part is that second use of usb_modeswitch, which suggested that the system had correctly identified and initialised the device. The subsequent lsusb contradicts this. What happens after that is something of a mystery.

    Subsequently running wvdial gave the following unhappy result:

    Code:
    achim@achim-W840SU-Series:~$ sudo wvdial
    --> WvDial: Internet dialer version 1.61
    --> Cannot open /dev/ttyUSB2: No such file or directory
    --> Cannot open /dev/ttyUSB2: No such file or directory
    --> Cannot open /dev/ttyUSB2: No such file or directory
    Now it gets positively weird... I again removed and re-inserted the dongle. Then I used the disk utility to "eject" the phantom CD drive. Then I ran wvdial with the following result:

    Code:
    achim@achim-W840SU-Series:~$ sudo wvdial
    --> WvDial: Internet dialer version 1.61
    --> Initializing modem.
    --> Sending: AT+CGDCONT=1,"IP","internet.t-mobile","",0,0
    OK
    --> Modem initialized.
    --> Sending: ATDT*99#
    --> Waiting for carrier.
    CONNECT 7200000
    --> Carrier detected.  Starting PPP immediately.
    --> Starting pppd at Sun Feb 16 20:54:13 2014
    --> Pid of pppd: 4696
    --> Using interface ppp0
    --> pppd: x�w�8��[08][10]��[08][01]
    --> pppd: x�w�8��[08][10]��[08][01]
    --> pppd: x�w�8��[08][10]��[08][01]
    --> pppd: x�w�8��[08][10]��[08][01]
    --> pppd: x�w�8��[08][10]��[08][01]
    --> pppd: x�w�8��[08][10]��[08][01]
    --> local  IP address 10.29.207.244
    --> pppd: x�w�8��[08][10]��[08][01]
    --> remote IP address 10.64.64.64
    --> pppd: x�w�8��[08][10]��[08][01]
    --> primary   DNS address 10.74.210.210
    --> pppd: x�w�8��[08][10]��[08][01]
    --> secondary DNS address 10.74.210.211
    --> pppd: x�w�8��[08][10]��[08][01]
    Clearly it was claiming once again that a connection had been established. I didn't hold out much hope, but for the sake of completeness I tried accessing a website from FireFox. Bingo! It worked. I am using that connection to submit this post. The Network manager also tells me that my default wireless broadband connection is available.

    Does anybody have an idea of what is going on?

    Addendum

    In case anybody is following this, I have some encouraging news. This evening I tried the procedure again.

    1. start Network Manager (I don't think this is required in this situation but if you use a NM connection mechanism you'll need to do this)
    2. System > Control Center > Drive Utility.
    3. Select the "CD drive" that corresponds to your dongle and click the "eject" button.
    4. Start your wvdial script and you should get a connection (in this case you probably don't need step 1). Alternatively, check the NM icon and see if your Broadband config is listed as active and available. If so, you can select that and you should be online.

    The good news is that it still works as it did the first time . The not so good news is that I haven't the vaguest idea why it didn't work before. Still, for any MA260 users out there it is worth try.

    I am going to try other approaches in the coming days to see if there isn't a more convenient way to get the MA260 to respond (sorry, I can't do it faster than that). Incidentally, although I'm still using 12.04 LTS, I am now running kernel 3.11.0-15. My advice to anybody with htis device is to upgrade as soon as possible. If you need long term support, as I do, do the kernel enablement as described here and upgrade to 14.04 when it comes out.

    I'll keep updating this over the next few days with the results of my experimentation. After that I think I'll mark this as solved.

    @Sandro Kensan: I don't know if this will help with your distro. If you try the method, please let me know if it works or not. Good Luck whatever you try.
    Last edited by achim_59; February 17th, 2014 at 10:33 PM. Reason: corrections & addendum & more corrections

  3. #33
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    94
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: TP Link MA260, Ubuntu 12.04 LTS

    I tried another experiment. Having looked at the previous results in detail, I tried running usb_modeswitch again and tried wvdial immediately afterwards. The first thing to note is that the initial use of usb_modeswitch didn't have the same result as above. Trying it a second time made no change to 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.
    That was all the result I got both times. However, as soon as I used the drive utility to eject the phantom CD drive, wvdial gave me a connection. Note: I did not have to start the Network Manager!

    If I come up with any other bright ideas, I'll post them. Failing that I'll mark this as solved, since there is an effective work-around that isn't too odious.

  4. #34
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    94
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Despite wracking my brain and trying different sequences of actions, I haven't managed to get things working any better. I really wanted to recreate the situation where lsusb correctly identified the MA260 as a modem. However, nothing has succeeded to date and the solution I hav will suffice for the time being. I'm marking this as solved... doesn't seem to be much interest in more detail anyway.

    Cheers,
    Achim

  5. #35
    Join Date
    May 2009
    Beans
    31

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Hello Achim!

    I continued the brain wreckage and came to the following conclusion (but I am with 13.10, not 12.04):

    vi /lib/udev/rules.d/40-usb_modeswitch.rules:
    beneath MA180 I added:

    ATTRS{idVendor}=="2357", ATTRS{idProduct}=="9000", RUN+="usb_modeswitch '%b/%k' -V 2357 -P 9000 -W -I -n -M '5553424312345678000000000000061e00000000000000000 0000000000000' -2 '5553424312345678000000000000061b00000002000000000 0000000000000'"

    since the storage is not part of SUBSYSTEM=usb, I added the other (unswitched) productId beneath the following LABEL:

    LABEL="modeswitch_rules_end"
    # TP-Link MA260
    ATTRS{idVendor}=="2357", ATTRS{idProduct}=="f000", RUN+="/usr/bin/eject -s %N"

    Now save and quit.

    Execute:
    udevadm control --reload-rules

    Watch the log with tail -f /var/log/syslog
    Unplug and replug

    Enjoy!

  6. #36
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    94
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Thank you epek!

    I tried what you suggested and firstly discovered that the rule for the MA180 wasn't there. I wonder what happened to it... it was there before.

    Np matter, I added a rule for it and gave it the usb_modeswitch command you wrote in your reply. I then added the MA260 stuff after the "modeswitch_rules end" label and exited with ":wq".

    After running the "udevadm control --reload-rules" command (and, yes I watched /var/log/syslog scroll by... something I do by habit) I unplugged and replugged the dongle. I noticed that the MA260 was indeed correctly identified. Waiting about 30 seconds allowed the network manager to recognise it, too. I then got back on-line. IT WORKS!!

    This is so much more convenient than the manual hack that I cobbled together. Thanks again.

    BTW: For anyone wanting to do this, please note that in order to edit /lib/udev/rules.d/40-usb_modeswitch.rules (with vi or anything else), you must be logged in as root or use "sudo". Same goes for "udevadm control".

  7. #37
    Join Date
    May 2009
    Beans
    31

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Hello Achim!

    I'm glad it works for you, too.
    Without your previous work, I would not have come this far. I am the one to say "thank you".

    In the meanwhile I even updated the OpenWRT wiki. I'm looking forward to see that dongle in long time action there

    Will you take the part of submitting our solution to some bug tracking/improvement team?
    I guess we'll be to late for 14.04 LTS, but at least it's documented here.

    Best regards
    Epek

  8. #38
    Join Date
    Mar 2006
    Location
    Hünfeld, Germany
    Beans
    94
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Quote Originally Posted by epek View Post
    Will you take the part of submitting our solution to some bug tracking/improvement team?
    Hi epek,

    I don't understand your question. What should I do? Sorry for being so dense. I've used this forum on and off for a long time but this si the first time I've actually achieved a real solution. I'd be happy to submit the solution to some team responsible for providing updates and improvements for new releases. I just have no idea where to submit it. Do you know who I should contact?

    Cheers,

    Achim

  9. #39
    Join Date
    Apr 2014
    Beans
    1

    Re: TP Link MA260, Ubuntu 12.04 LTS

    Many thanks to Achim and Epek! I add the following line to /lib/udev/rules.d/40-usb_modeswitch.rules
    ATTRS{idVendor}=="2357", ATTRS{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k' -V 2357 -p 0xf000 -P 0x9000 -M "5553424312345678000000000000061b00000002000000000 0000000000000"


    LABEL="modeswitch_rules_end"
    # TP-Link MA260
    ATTRS{idVendor}=="2357", ATTRS{idProduct}=="f000", RUN+="/usr/bin/eject -s %N"

    and it works well!

Page 4 of 4 FirstFirst ... 234

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
  •