Activation Codes and Methods, Hardware Details, Sniffing
complexgeek
Posts: 1
Joined: 25 Jun 2012, 07:54

TP-Link MA180

Post by complexgeek » 25 Jun 2012, 08:02

The TP-Link MA180 is in their words a "3.75G HSUPA USB Adapter".

I'm not using udev on this system, but the usb_modeswitch config file that works for me is:

Code: Select all

# TP-Link MA180
InquireDevice = 0
DefaultVendor=  0x2357
DefaultProduct= 0x0200

TargetVendor=   0x2357
TargetProduct=  0x0201

CheckSuccess=   10

MessageContent="55534243709EF281000000000000061B000000020000000000000000000000"
The CheckSuccess feels a little clumsy, but the device seems to disconnect as soon as it receives the message, and takes a few seconds to come back.[/code]

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 28 Jun 2012, 21:04

Thanks a lot !

This will go into the next data package release.

If you want you can give me your name (or any nickname of your choice) via PM or mail, and I'll include you as the contributor of this device in the reference file.


syafiqmazli
Posts: 1
Joined: 04 Aug 2012, 17:42

Re: TP-Link MA180

Post by syafiqmazli » 04 Aug 2012, 17:46

complexgeek wrote:The TP-Link MA180 is in their words a "3.75G HSUPA USB Adapter".

I'm not using udev on this system, but the usb_modeswitch config file that works for me is:

Code: Select all

# TP-Link MA180
InquireDevice = 0
DefaultVendor=  0x2357
DefaultProduct= 0x0200

TargetVendor=   0x2357
TargetProduct=  0x0201

CheckSuccess=   10

MessageContent="55534243709EF281000000000000061B000000020000000000000000000000"
The CheckSuccess feels a little clumsy, but the device seems to disconnect as soon as it receives the message, and takes a few seconds to come back.[/code]
Hi Complexgeek,

I just purchase TP Link MA180, unfortunately not working on my linux machine (linuxmint). I just google and found this post on this forum. Could you detail as above code, how i could tweak on modeswitch config? or simple tutorial?

Thanks!

sunta
Posts: 1
Joined: 09 Aug 2012, 13:20
Location: Deutschland
Contact:

Post by sunta » 09 Aug 2012, 13:25

please share how u get TP-Link MA180 to work. I got v1 here but cant get it to work

all I see upon plugging in the device is


[ 7772.715779] usb 4-2: new full-speed USB device number 3 using uhci_hcd
[ 7773.044891] generic-usb 0003:2357:F006.0006: hiddev0,hidraw3: USB HID v1.10 Device [TP-LINK, Incorporated TP-LINK HSUPA Modem] on usb-0000:00:1a.1-2/input0
[ 7774.211050] usb 4-2: USB disconnect, device number 3
[ 7777.205605] usb 1-4: new high-speed USB device number 8 using ehci_hcd
[ 7777.343862] scsi7 : usb-storage 1-4:1.0
[ 7778.343029] scsi 7:0:0:0: CD-ROM TP-LINK MMC Storage 2.31 PQ: 0 ANSI: 2
[ 7778.343786] scsi 7:0:0:1: Direct-Access TP-LINK MMC Storage 2.31 PQ: 0 ANSI: 2
[ 7778.347004] sr2: scsi-1 drive
[ 7778.347362] sr 7:0:0:0: Attached scsi CD-ROM sr2
[ 7778.347623] sr 7:0:0:0: Attached scsi generic sg8 type 5
[ 7778.348480] sd 7:0:0:1: Attached scsi generic sg9 type 0
[ 7778.350570] sd 7:0:0:1: [sdg] Attached SCSI removable disk




I cant unmount nor eject something. Trying to adopt your modeswitch_config resulted in

sudo usb_modeswitch -c /etc/usb_modeswitch.d/2357\:0201

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 008 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: TP-LINK, Incorporated
Product: TP-LINK HSUPA Modem
Serial No.: 863077010030736
-------------------------
Looking for active driver ...
No driver found. Either detached before or never attached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
Sending the message returned error -110. Trying to continue
Resetting response endpoint 0x81
Resetting message endpoint 0x01

Checking for mode switch (max. 10 times, once per second) ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
No new devices in target mode or class found

Mode switch has failed. Bye.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 11 Aug 2012, 17:59

If you have a product ID of "0201", it means your device is already in modem mode. Don't try to apply usb_modeswitch again.

I will prepare a new data package release soon, with this device included.


Freddyncalm
Posts: 1
Joined: 14 Aug 2012, 20:14
Location: Tudela, Na, Spain
Contact:

Post by Freddyncalm » 14 Aug 2012, 20:50

Josh wrote:If you have a product ID of "0201", it means your device is already in modem mode. Don't try to apply usb_modeswitch again.

I will prepare a new data package release soon, with this device included.
I am interested in more information about this, too.

I have this TP-Link MA180 modem and I don't know how to make it work in an OpenWRT router (fonera2.0n).

I put the sugested file in /etc/usb_modemswitch.d/2357:0200 but I have no idea about next steps.

Thank you for any help.
--
Alfredo "Freddy" Soro

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 15 Aug 2012, 14:19

The config for this device is included in the latest data package release.

Maybe you can ask the OpenWRT people to provide an updated adaptation for the router platform ...


Antz
Posts: 1
Joined: 23 Aug 2012, 17:33
Location: South Africa

MA180 not switching

Post by Antz » 23 Aug 2012, 17:51

Hi all,

I have downloaded and installed the latest data package (as of 2012/08/22), however the TP-Link MA180 fails to mode switch. I'm running Ubuntu 12.04LTS. Below is the USB device info and the output of running usb_modeswitch manually. Any idea where the problem lies? I'm happy to try any suggestions and report back here.

Code: Select all


Bus 002 Device 006: ID 2357:0200  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x2357 
  idProduct          0x0200 
  bcdDevice            0.00
  iManufacturer           3 
  iProduct                2 
  iSerial                 4 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          1 
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

Code: Select all


$ sudo usb_modeswitch -v 2357 -p 0200 --verbose
Taking all parameters from the command line


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

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x2357
DefaultProduct= 0x0200
TargetVendor=   not set
TargetProduct=  not set
TargetClass=    not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint=  not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set

InquireDevice enabled (default)
Success check disabled
System integration mode disabled


usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 007
usb_os_find_busses: Found 006
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 007
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 007
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 006
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 003 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 006 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 001
skipping descriptor 0xB
skipped 1 class/vendor specific endpoint descriptors
skipped 5 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 10 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for default devices ...
  searching devices, found USB ID 09da:90a0
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 0930:0508
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 2357:0200
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 1d6b:0002
  searching devices, found USB ID 04f2:b008
  searching devices, found USB ID 1d6b:0002
 Found device in default mode, class or configuration (1)
Accessing device 006 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 ...
USB error: could not get bound driver: No data available
 No driver found. Either detached before or never attached

thomasleow
Posts: 1
Joined: 28 Aug 2012, 16:50

tp-link ma180 works on fedora 17

Post by thomasleow » 28 Aug 2012, 17:14

Managed to get the modem working for Fedora 17 with the following steps:

________________________________________________________________________
Create a new file:

/etc/usb_modeswitch.d/2357:0200

contains:

# TP-Link MA180

TargetVendor= 0x2357
TargetProduct= 0x0201

MessageContent="5553424312345678000000000000061b000000020000000000000000000000"

_________________________________________________________________________
Add a new entry:

# TP-Link MA180
ATTRS{idVendor}=="2357", ATTRS{idProduct}=="0200", RUN+="usb_modeswitch '%b/%k'"

to /usr/lib/udev/rules.d/40-usb_modeswitch.rules

__________________________________________________________________________

unplugged and plugged in the usb modem. Many activities show in /var/log/messages.

The NetworkManager sees the device.

To setup the mobile broadband, right click on the Network icon at the top-right corner to edit. Left click to activate.

Richard
Posts: 2
Joined: 13 Sep 2012, 15:36

Re: TP-Link MA180

Post by Richard » 13 Sep 2012, 15:56

Hi,

I am using a TP-Link MA180 V1.1 and I have tried this config and it is not working for me under Ubuntu 12.04, with the latest mode switch and mode switch data.

According to Windows the default and target VIDS/PIDS are the same.

When running modeswitch manually with your config I get the following output

Code: Select all

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 036 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)

USB description data (for identification)
-------------------------
Manufacturer: TP-LINK, Incorporated
     Product: TP-LINK HSUPA Modem
  Serial No.: 863077010225955
-------------------------
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached
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

Checking for mode switch (max. 10 times, once per second) ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 Searching for target devices ...
 No new devices in target mode or class found

Mode switch has failed. Bye.
Does anyone have any suggestions?

I have tried sniffing under Windows and got a different string...

Code: Select all

5553424308505e89000000000000061b000000020000000000000000000000
This doesn't seem to be working either.

Thanks

Richard

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: TP-Link MA180

Post by Josh » 13 Sep 2012, 21:17

There seems to be an unresolved issue with USB 3.0 ports, where the behaviour is very much the same as the one you are seeing:

https://bugs.launchpad.net/bugs/979697

The current hypothesis is that there is a certain driver/hardware combination causing this.

So if you are in fact on a 3.0 port, try annother one if avaiable.

Richard
Posts: 2
Joined: 13 Sep 2012, 15:36

Re: TP-Link MA180

Post by Richard » 15 Sep 2012, 00:03

I have't tried with USB 3.0 ports, only 2.0 on three different machines now... however all are running Ubuntu 12.04.

I will try with OpenWRT and Fedora when I get a chance and post any developments.

wifi_help
Posts: 5
Joined: 19 Sep 2012, 14:14

Re: TP-Link MA180

Post by wifi_help » 19 Sep 2012, 14:31

Not working for me

The first stage, usb_modeswitch, appears to succeed, the new device 2357:0201 appears after about 5 seconds

However, there are no /dev/ttyUSB* devices and /proc/bus/usb/devices doesn't appear to show any comm class devices

I am using OpenWRT attitude adjustment on the TL-WR1043ND

Code: Select all


root@OpenWrt:~# uname -a
Linux OpenWrt 3.3.8 #2 Mon Sep 3 17:51:18 UTC 2012 mips GNU/Linux

root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2357:0201  

root@OpenWrt:~# insmod usbserial vendor=0x2357 product=0x0201 maxSize=4096

root@OpenWrt:~# cat /proc/bus/usb/devices 

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.03
S:  Manufacturer=Linux 3.3.8 ehci_hcd
S:  Product=Generic Platform EHCI Controller
S:  SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=2357 ProdID=0201 Rev= 0.00
S:  Manufacturer=TP-LINK, Incorporated
S:  Product=TP-LINK HSUPA Modem
S:  SerialNumber=
C:* #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=84(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=86(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: TP-Link MA180

Post by Josh » 19 Sep 2012, 15:44

Hmm, maybe usbserial was already loaded before?

To be on the safe side, I'd try to "rmmod usbserial" before loading it again with the new ID.

BTW, are you sure there is no "option" module on your OpenWRT installation? This is the recommended driver for all things 3G.

wifi_help
Posts: 5
Joined: 19 Sep 2012, 14:14

Re: TP-Link MA180

Post by wifi_help » 19 Sep 2012, 15:58

Ok, further observations, my OpenWRT didn't actually have the usbserial module package installed at all

However, there was no error output from the insmod command, so I had no idea that usbserial was missing

I've install kmod-usb-serial and kmod-usb-serial-wwan, I find that I can load usbserial with this command:

Code: Select all

# insmod usbserial vendor=0x2357 product=0x0201 
and then my devices /dev/ttyUSB[0-4] appear

Do you believe I should definitely use the `option' drive with the TP-Link? These are the modules available from OpenWRT:

Code: Select all

root@OpenWrt:~# opkg list | grep serial | grep ^kmod
kmod-serial-8250 - 3.3.8-1 - Kernel module for 8250 UART based serial ports.
kmod-usb-serial - 3.3.8-1 - Kernel support for USB-to-Serial converters
kmod-usb-serial-ark3116 - 3.3.8-1 - Kernel support for ArkMicroChips ARK3116 USB-to-Serial converters
kmod-usb-serial-belkin - 3.3.8-1 - Kernel support for Belkin USB-to-Serial converters
kmod-usb-serial-ch341 - 3.3.8-1 - Kernel support for Winchiphead CH341 USB-to-Serial converters
kmod-usb-serial-cp210x - 3.3.8-1 - Kernel support for Silicon Labs cp210x USB-to-Serial converters
kmod-usb-serial-cypress-m8 - 3.3.8-1 - Kernel support for devices with Cypress M8 USB to Serial chip
kmod-usb-serial-ftdi - 3.3.8-1 - Kernel support for FTDI USB-to-Serial converters
kmod-usb-serial-ipw - 3.3.8-1 - Support for IPWireless 3G devices
kmod-usb-serial-keyspan - 3.3.8-1 - Kernel support for Keyspan USB-to-Serial devices
kmod-usb-serial-mct - 3.3.8-1 - Kernel support for Magic Control Technology USB-to-Serial converters
kmod-usb-serial-mos7720 - 3.3.8-1 - Kernel support for Moschip MOS7720 USB-to-Serial converters
kmod-usb-serial-motorola-phone - 3.3.8-1 - Kernel support for Motorola usb phone
kmod-usb-serial-option - 3.3.8-1 - Kernel support for Option HSDPA modems
kmod-usb-serial-oti6858 - 3.3.8-1 - Kernel support for Ours Technology OTI6858 USB-to-Serial converters
kmod-usb-serial-pl2303 - 3.3.8-1 - Kernel support for Prolific PL2303 USB-to-Serial converters
kmod-usb-serial-qualcomm - 3.3.8-1 - Kernel support for Qualcomm USB Serial devices (Gobi)
kmod-usb-serial-sierrawireless - 3.3.8-1 - Kernel support for Sierra Wireless devices
kmod-usb-serial-ti-usb - 3.3.8-1 - Kernel support for TI USB 3410/5052 devices
kmod-usb-serial-visor - 3.3.8-1 - Kernel support for Handspring Visor PDAs
kmod-usb-serial-wwan - 3.3.8-1 - Kernel support for USB GSM and CDMA modems

Post Reply