Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
vasaw
Posts: 1
Joined: 03 Apr 2012, 16:24

Huawei E171 MTS

Post by vasaw » 03 Apr 2012, 18:38

Hallo dev's

I have new 3g modem Huawei E171 (latest revision):

Code: Select all

Found modem         : E171
Model               : Huawei E171 (MTS Russia)
IMEI                : 86149601*******
Serial NR.          : 
Firmware            : 21.156.00.00.143
Compile date / time : Sep 30 2011 18:39:14
Dashboard version   : UTPS21.003.28.22.143_MAC21.003.28.24.143
Chipset             : Qualcomm
Voice feature       : enabled
SIM Lock status     : Locked (CardLock)
Wrong codes entered : 0 (unlock attempts left : 10)
I install Openwrt 10.03.1 on an router NETGEAR WNDR3700v1, and i try to connect modem with router, but modem not found in the system, modem connected with the router on default Vendor= 0x12d1 & Product=0x14fe, and not switched automaticaly to modem 12d1:1506. I install usb-modeswitch_1.1.8-1, and usb-modeswitch-data_20110705-1 from packages openwrt, make usb_modeswitch.conf with default id:

Code: Select all

######################################################## 
# Huawei  12d1:14fe 

DefaultVendor= 0x12d1 
DefaultProduct=0x14fe 
TargetClass=0xff
MessageContent="55534243123456780000000000000011062000000100000000000000000000" 

######################################################


I tried manually to switch the device:

Code: Select all

usb_modeswitch -v 0x12d1 -p 0x14fe -V 0x12d1 -P 0x1506 -M "55534243123456780000000000000011062000000100000000000000000000"
Device switched to modem 12d1:1506:

Code: Select all

root@OpenWrt:~# lsusb
Bus 001 Device 003: ID 12d1:1506 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Code: Select all

root@OpenWrt:~# cat /proc/bus/usb/devices
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(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=02 Prot=02 Driver=(none)
E:  Ad=83(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=ff(vend.) Sub=02 Prot=03 Driver=(none)
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I try to restart router, modem switched automaticaly to 12d1:1506, usb-modeswitch works.

I run dmesg, but modem not created in the system ttyUSB0, ttyUSB1, ttyUSB2

Code: Select all

root@OpenWrt:~# dmesg
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: usbfs: process 1065 (usb_modeswitch) did not claim interface 0 before use
usb 1-1: USB disconnect, address 2
ar71xx-wdt: enabling watchdog timer
usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
Command: ls /dev | grep ttyUSB nothing given.

log dmesg with scsi:

Code: Select all

root@OpenWrt:~# dmesg
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: usbfs: process 1065 (usb_modeswitch) did not claim interface 0 before use
usb 1-1: USB disconnect, address 2
ar71xx-wdt: enabling watchdog timer
usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: USB disconnect, address 3
usb 1-1: new high speed USB device using ar71xx-ehci and address 4
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: usbfs: process 1220 (usb_modeswitch) did not claim interface 0 before use
usb 1-1: usbfs: process 1235 (usb_modeswitch) did not claim interface 0 before use
SCSI subsystem initialized
How to FIX this bug ttyUSB ? Thanks for your help.
Last edited by vasaw on 10 Apr 2012, 14:46, edited 2 times in total.

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

Post by Josh » 04 Apr 2012, 20:20

Its not a bug, it's the driver not knowing the device ID (yet).

If your kernel version is better than 2.6.26 you should be able to say:

Code: Select all

echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
This is the way to tell the driver a new device ID on the fly.


Post Reply