Activation Codes and Methods, Hardware Details, Sniffing
Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 27 Mar 2011, 17:51

tanktop wrote:Maybe this can be added to your database?
Absolutely! If you give me your real name (or any nickname of your choice) via PM or mail I'll add you as the contributor.


tanktop
Posts: 9
Joined: 21 Mar 2011, 18:55
Location: Hanoi, Vietnam

Post by tanktop » 28 Mar 2011, 04:41

Done! Thanks again.

I hope someone else in Vietnam with this model can profit from this solution too. It's certainly one of the most popular 3G devices here, and it's only gaining in popularity. Hopefully there are some burgeoning linux users out there.

Tank

ykusnanto
Posts: 2
Joined: 24 Apr 2012, 23:20
Location: Indonesia
Contact:

Post by ykusnanto » 24 Apr 2012, 23:44

Josh wrote:
tanktop wrote:Maybe this can be added to your database?
Absolutely! If you give me your real name (or any nickname of your choice) via PM or mail I'll add you as the contributor.
Just for additional info, I have similar device (Viettel/Huawei? Model: E1550) with VID:PID=12d1:14b5 but switch to different ID (12d1:14aa) to get it work as modem.

DEBUG MESSAGES:

failed attempt using stock/original setting:

Code: Select all

$ cat /var/log/usb_modeswitch_1-3\:1.0 


USB_ModeSwitch log from Tue Apr 24 18:15:00 WIT 2012

Raw args from udev: 1-3:1.0/1-3:1.0

Using global config file: /etc/usb_modeswitch.conf
Using top device dir /sys/bus/usb/devices/1-3
----------------
USB values from sysfs:
  manufacturer	HUAWEI Technology
  product	Mobile Connect
  serial	
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /usr/share/usb_modeswitch/12d1:14b5
! matched. Reading config data
config: TargetVendor set to 12d1
config: TargetProduct set to 14a8
config: CheckSuccess set to 20
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 5 -v 12d1 -p 14b5 -f $configBuffer

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Reading long config from 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=  0x12d1
DefaultProduct= 0x14b5
TargetVendor=   0x12d1
TargetProduct=  0x14a8
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="55534243123456780000000000000011062000000100000000000000000000"
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/005 ...
Looking for default devices ...
 bus/device number matched
  searching devices, found USB ID 12d1:14b5
   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 first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: Mobile Connect
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver found; name unknown, limitation of libusb1
 OK, driver "unkown" detached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
libusb:error [op_clear_halt] clear_halt failed error -1 errno 71
 OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
 Could not reset endpoint (probably harmless): -34
 Device is gone, skipping any further commands
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 ...
 Waiting for device file system (1 sec.) ...
 Waiting for device file system (2 sec.) ...
 Waiting for device file system (3 sec.) ...
 Waiting for device file system (4 sec.) ...
 Waiting for device file system (5 sec.) ...
 Waiting for device file system (6 sec.) ...
 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-3:1.0/bInterfaceClass:   ff
    bConfigurationValue:       1
    bNumConfigurations:        1
    busnum:                    1
    devnum:                    6
    idProduct:                 14aa
    idVendor:                  12d1
    manufacturer:              HUAWEI Technology
    product:                   Mobile Connect
    serial:                    

Mode switching may have failed. Exiting
after modifying configuration (and plug the modem to different port):

Code: Select all

$ cat /var/log/usb_modeswitch_1-1\:1.0 


USB_ModeSwitch log from Tue Apr 24 19:08:29 WIT 2012

Raw args from udev: 1-1:1.0/1-1:1.0

Using global config file: /etc/usb_modeswitch.conf
Using top device dir /sys/bus/usb/devices/1-1
----------------
USB values from sysfs:
  manufacturer	HUAWEI Technology
  product	Mobile Connect
  serial	
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /usr/share/usb_modeswitch/12d1:14b5
! matched. Reading config data
config: TargetVendor set to 12d1
config: TargetProduct set to 14aa
config: CheckSuccess set to 20
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 15 -v 12d1 -p 14b5 -f $configBuffer

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Reading long config from 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=  0x12d1
DefaultProduct= 0x14b5
TargetVendor=   0x12d1
TargetProduct=  0x14aa
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="55534243123456780000000000000011062000000100000000000000000000"
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/015 ...
Looking for default devices ...
 bus/device number matched
  searching devices, found USB ID 12d1:14b5
   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 first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: Mobile Connect
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver found; name unknown, limitation of libusb1
 OK, driver "unkown" 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
 Could not reset endpoint (probably harmless): -6
 Device is gone, skipping any further commands
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 ...
 Waiting for device file system (1 sec.) ...
 Waiting for device file system (2 sec.) ...
 Waiting for device file system (3 sec.) ...
 Waiting for device file system (4 sec.) ...
 Waiting for device file system (5 sec.) ...
 Waiting for device file system (6 sec.) ...
 Reading attributes ...
 All attributes matched
Mode switching was successful, found 12d1:14aa (HUAWEI Technology: Mobile Connect)
Logger is /usr/bin/logger
Now checking for bound driver ...
 no driver has bound to interface 0 yet
Device is not in "bind_list" yet, bind it now
Module loader is /sbin/modprobe

Trying to load module "option"
 Module was loaded successfully:
insmod /lib/modules/3.2.15-1mdv/kernel/drivers/usb/serial/usbserial.ko.gz 
insmod /lib/modules/3.2.15-1mdv/kernel/drivers/usb/serial/usb_wwan.ko.gz 
insmod /lib/modules/3.2.15-1mdv/kernel/drivers/usb/serial/option.ko.gz 
Trying to add ID to driver "option"
 ID added to driver; check for new devices in /dev
 driver was bound to the device
Checking for AVOID_RESET_QUIRK kernel attribute
 AVOID_RESET_QUIRK activated

All done, exiting


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

Post by Josh » 25 Apr 2012, 18:48

If you change the configuration from the previous post, you can use it with both modems:

Code: Select all

######################################################## 
# Viettel (Huawei) 

DefaultVendor= 0x12d1 
DefaultProduct=0x14b5 

TargetVendor=  0x12d1
TargetProductList="14a8,14aa"

MessageContent="55534243123456780000000000000011062000000100000000000000000000"
CheckSuccess=20

ykusnanto
Posts: 2
Joined: 24 Apr 2012, 23:20
Location: Indonesia
Contact:

Post by ykusnanto » 26 Apr 2012, 07:07

Josh wrote:If you change the configuration from the previous post, you can use it with both modems:

Code: Select all

######################################################## 
# Viettel (Huawei) 

DefaultVendor= 0x12d1 
DefaultProduct=0x14b5 

TargetVendor=  0x12d1
TargetProductList="14a8,14aa"

MessageContent="55534243123456780000000000000011062000000100000000000000000000"
CheckSuccess=20
That's the setting now.

Thank you for the software!

mkotsbak
Posts: 44
Joined: 17 Jan 2011, 20:49
Location: Trondheim, Norway

Re:

Post by mkotsbak » 11 Oct 2012, 21:27

ykusnanto wrote:
Josh wrote:If you change the configuration from the previous post, you can use it with both modems:

Code: Select all

######################################################## 
# Viettel (Huawei) 

DefaultVendor= 0x12d1 
DefaultProduct=0x14b5 

TargetVendor=  0x12d1
TargetProductList="14a8,14aa"

MessageContent="55534243123456780000000000000011062000000100000000000000000000"
CheckSuccess=20
That's the setting now.

Thank you for the software!
Could you please add this to the distribution?

It still is missing in Ubuntu: https://bugs.launchpad.net/usb-modeswit ... ug/1030531

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

Re: (Huawei) E173Eu-1

Post by Josh » 11 Oct 2012, 22:54

It has been added to "usb-modeswitch-data-20120531", released on May 31st.
This version is in Debian "wheezy (testing)".

The current version is 20120815, which is in Debian "sid (unstable)".

No idea what version Ubuntu is using.

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

Re: (Huawei) E173Eu-1

Post by Josh » 11 Oct 2012, 23:03

Just checked - Ubuntu Precise still installs 20120120 (Jan. 20th).

Post Reply