Huawei E3231 - new model
The install id for the stick is
12d1:1f01 and you may see that in dmesg before usb_modeswitch switches it over to
12d1:14db.
Your lsusb shows a typical
HiLink device in ethernet mode where it needs ethernet drivers which creates an additional eth device in your OS.
You can try and edit the /etc/usb_modeswitch.d config file for
12d1:1f01 and change the message contents to:
replug the stick and check with lsusb if it gets a different modem id this time.
If so, then paste the lsusb -v -d for 12d1:new id
With some luck it may become
12d1:1c05 with serial modem interfaces.
-------------
lsusb now gives a new modem id 0x1442
Code:
lsusb-v -d 12d1:1442
-------------
ok, can you then include
12d1:1441 as well?
Code:
usb_modeswitch -v 0x12d1 -p 0x1f01
-M "55534243123456780000000000000011062000000000000200000000000000"
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=1441 Rev= 1.02
S: Manufacturer=HUAWEI
S: Product=HUAWEI HiLink
C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=(none)
E: Ad=8f(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=06 Prot=00 Driver=(none)
E: Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0f(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=02(comm.) Sub=02 Prot=ff Driver=(none)
E: Ad=8d(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0e(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=02(comm.) Sub=02 Prot=ff Driver=(none)
E: Ad=8c(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0d(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=02(comm.) Sub=02 Prot=ff Driver=(none)
E: Ad=8b(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0c(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
it is the same device as 12d1:14db but using another of Microsoft sniffed messages, it basically
adds 3 serial interfacesto the already present ecm interfaces and changes the PID.
Code:
usb_modeswitch -v 0x12d1 -p 0x1f01 -V 0x12d1 -P 0x14db
-M "55534243123456780000000000000a11062000000000000100000000000000"
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=14db Rev= 1.02
S: Manufacturer=HUAWEI
S: Product=HUAWEI HiLink
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=(none)
E: Ad=8f(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=06 Prot=00 Driver=(none)
E: Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0f(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
-----------------
This is how a real
12d1:1c05 should look:
PHP Code:
SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1C05*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="00", ATTRS{bInterfaceProtocol}=="ff", NAME="ttyUSB_utps_modem"
SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1C05*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="01", ATTRS{bInterfaceProtocol}=="ff", NAME="ttyUSB_utps_diag"
SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1C05*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="02", ATTRS{bInterfaceProtocol}=="ff", NAME="ttyUSB_utps_pcui"
Return the stick to
HiLink mode (
12d1:1f01) and try the alternative modeswitch message which with a bit of luck will give the target id
12d1:1001
----------------
Yippee!
Code:
[ 4029.552484] option 2-4:1.0: GSM modem (1-port) converter detected
[ 4029.553620] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB0
[ 4029.553748] option 2-4:1.1: GSM modem (1-port) converter detected
[ 4029.553958] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB1
[ 4029.554060] option 2-4:1.2: GSM modem (1-port) converter detected
[ 4029.554938] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB2
then using the command to return to HiLink mode
gives the following (after unplugging & replugging the dongle)
PHP Code:
[ 5478.288089] usb 2-4: new high-speed USB device number 5 using ehci_hcd
[ 5478.462502] Initializing USB Mass Storage driver...
[ 5478.465916] scsi6 : usb-storage 2-4:1.0
[ 5478.466181] usbcore: registered new interface driver usb-storage
[ 5478.466187] USB Mass Storage support registered.
[ 5478.601988] usb 2-4: USB disconnect, device number 5
[ 5480.384098] usb 2-4: new high-speed USB device number 6 using ehci_hcd
[ 5480.520627] cdc_ether 2-4:1.0: eth0: register 'cdc_ether' at usb-0000:00:04.1-4, CDC Ethernet Device, 58:2c:80:13:92:63
[ 5480.608841] udevd[14307]: renamed network interface eth0 to eth2
It actually appears in network manager and everything!
Not tested for data access yet though, but at least it appears to be revived!