Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
agoode
Posts: 2
Joined: 19 Jul 2013, 06:36

New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by agoode » 19 Jul 2013, 06:43

This is a wifi device that acts as USB Ethernet when tethered.

It requires a control message:
usb_control_msg(devh, USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x70, 2, 0, buffer, 0, 1000);

I copied switchQuantaMode and created switchPantechMode with this above line. It is easy to do, but if you would like a patch I have to get approval from my employer which can take a day.

The device before has id of 10a9:6080 and after the switch 10a9:6085.

In the US, this device is available as:
http://www.verizonwireless.com/b2c/devi ... ot-mhs291l



Thanks,

Adam

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

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by Josh » 19 Jul 2013, 08:12

Thanks for the new device!
agoode wrote:It is easy to do, but if you would like a patch I have to get approval from my employer which can take a day.
No need, I can do it myself.
BTW, how did you figure out the control message?

If you don't object I will include you as the contributor of this device in the reference file.

agoode
Posts: 2
Joined: 19 Jul 2013, 06:36

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by agoode » 19 Jul 2013, 17:09

I used usbpcap + wireshark on windows to do the snooping. It works well on new Windows.

I am happy to be listed as a contributor.

Do you want the pcap file? The windows driver does do a few strange things. It sends the control message twice, with a 2 second pause, then a few more times after the switch. It also has a data length of 1 but seems to send no data. I found these things unnecessary for the switch.

One strange thing that happened was at some point I got the device into 10a9:6086! But I do not know how to replicate this.

dtherrien
Posts: 1
Joined: 24 Jul 2013, 16:37

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by dtherrien » 24 Jul 2013, 16:41

Hi Josh or Adam,

I've been trying to get it to switch. Can someone post the modem's mode switch code here?

Thanks
Dan

BlakDrgn
Posts: 6
Joined: 30 Jul 2013, 03:50

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by BlakDrgn » 02 Aug 2013, 11:43

Josh wrote:Thanks for the new device!
agoode wrote:It is easy to do, but if you would like a patch I have to get approval from my employer which can take a day.
No need, I can do it myself.
BTW, how did you figure out the control message?

If you don't object I will include you as the contributor of this device in the reference file.

I sent you a pm, but haven't got a reply in several days. I am in dire need to get this device working with my Raspberry PI for an event I'm running on the 14'th.

Any help getting this working asap would be greatly appreciated.

-Blak

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

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by Josh » 02 Aug 2013, 17:19

If you are a developer, why not just do what Adam suggested?

Copy one of the 'special' mode-switch functions (like switchQuantaMode) and adapt it to the Pantech by inserting the control message that Adam indicated.

Add a flag variable, a command line flag and a full-text configuration option like "PantechMode" which you can use in your config file.

BlakDrgn
Posts: 6
Joined: 30 Jul 2013, 03:50

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by BlakDrgn » 03 Aug 2013, 22:15

Josh wrote:If you are a developer, why not just do what Adam suggested?

Copy one of the 'special' mode-switch functions (like switchQuantaMode) and adapt it to the Pantech by inserting the control message that Adam indicated.

Add a flag variable, a command line flag and a full-text configuration option like "PantechMode" which you can use in your config file.
I'm not a developer, just a user. I'm still new to the whole programming/linux thing.

:(

BlakDrgn
Posts: 6
Joined: 30 Jul 2013, 03:50

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by BlakDrgn » 06 Aug 2013, 09:09

Josh wrote:If you are a developer, why not just do what Adam suggested?

Copy one of the 'special' mode-switch functions (like switchQuantaMode) and adapt it to the Pantech by inserting the control message that Adam indicated.

Add a flag variable, a command line flag and a full-text configuration option like "PantechMode" which you can use in your config file.

I'd be willing to make a donation if possible to get this update pushed through. I'm really at wits end. I need to get this working. :(

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

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by Josh » 07 Aug 2013, 22:27

See the new releases of usb_modeswitch and its data package.

BlakDrgn
Posts: 6
Joined: 30 Jul 2013, 03:50

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by BlakDrgn » 10 Aug 2013, 05:47

Josh wrote:See the new releases of usb_modeswitch and its data package.
so I got all super excited to see the update. I installed usb_modeswitch on a freshly installed and updated version of Raspbian Wheezy.

Aaaand no bueno.

Code: Select all

USB_ModeSwitch log from Sat Aug 10 03:26:26 UTC 2013

Raw args from udev: /1-1.2.4

Using global config file: /etc/usb_modeswitch.conf
Called by new rules file - remember to check class of first interface ...
Using top device dir /sys/bus/usb/devices/1-1.2.4
Check class of first interface ...
 Device is in install mode.
Using interface 1.0
----------------
USB values from sysfs:
  manufacturer  Pantech, Incorporated
  product       PANTECH MHS291LVW
  serial        PTMHS291LVW20041907
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /usr/share/usb_modeswitch/10a9:6080
! matched. Reading config data
config: TargetVendor set to 10a9
config: TargetProduct set to 6085
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -W -D -s 20 -u -1 -b 1 -g 7 -v 10a9 -p 6080 -f $configBuffer

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Found 007 on 001
usb_os_find_devices: Found 005 on 001
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 003 on 001
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
error obtaining child information: Inappropriate ioctl for device

Reading long config from command line

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

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x10a9
DefaultProduct= 0x6080
TargetVendor=   0x10a9
TargetProduct=  0x6085
TargetClass=    not set
TargetProductList=""

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

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Use given bus/device number: 001/007 ...
Looking for default devices ...
 bus/device number matched
  searching devices, found USB ID 10a9:6080
   found matching vendor ID
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using interface number 0
Ambiguous Class/InterfaceClass: 0xef/0x08

USB description data (for identification)
-------------------------
Manufacturer: Pantech, Incorporated
     Product: PANTECH MHS291LVW
  Serial No.: PTMHS291LVW20041907
-------------------------
Bus/dev search active, referring success check to wrapper. Bye.

ok:busdev
--------------------------------
(end of usb_modeswitch output)

Checking success of mode switch for max. 20 seconds ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ... Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...

Target config not matching - current values are
    1-1.2.4:1.0/bInterfaceClass: 08
    bConfigurationValue:       1
    bNumConfigurations:        1
    busnum:                    1
    devnum:                    7
    idProduct:                 6080
    idVendor:                  10a9
    manufacturer:              Pantech, Incorporated
    product:                   PANTECH MHS291LVW
    serial:                    PTMHS291LVW20041907

Mode switching may have failed. Exiting
Any help on this one? I was suprised there wasnt a pantech switching mode variable.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by LOM » 10 Aug 2013, 18:16

Josh has forgot to update the link on the front page, here the correct dl link:

http://www.draisberghof.de/usb_modeswit ... .7.tar.bz2

BlakDrgn
Posts: 6
Joined: 30 Jul 2013, 03:50

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by BlakDrgn » 10 Aug 2013, 23:16

LOM wrote:Josh has forgot to update the link on the front page, here the correct dl link:

http://www.draisberghof.de/usb_modeswit ... .7.tar.bz2
I was wondering why the version still showed 1.2.5 XD

Thanks, I'ma boot my Pi up and reload it!

BlakDrgn
Posts: 6
Joined: 30 Jul 2013, 03:50

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by BlakDrgn » 11 Aug 2013, 01:33

LOM wrote:Josh has forgot to update the link on the front page, here the correct dl link:

http://www.draisberghof.de/usb_modeswit ... .7.tar.bz2
Annnd we're good to go. Pi is set up as a router now thanks to usb_modeswitch and http://qcktech.blogspot.ca/2012/08/rasp ... outer.html

http://twitpic.com/d23mcj (yes im aware that isnt the pantech in the pic, its my old crappy Novatel)

-Blak

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

Re: New device: Pantech LTE modem 10a9:6080 -> 10a9:6085

Post by Josh » 11 Aug 2013, 17:24

LOM wrote:Josh has forgot to update the link on the front page
Oops!

Corrected now.

Post Reply