Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
karl_k
Posts: 1
Joined: Sun Apr 29, 2018 11:25 pm

Acer Travelmate Huawei ME906E 12d1:1570

Post by karl_k » Sun Apr 29, 2018 11:49 pm

Dear All, please help...

I cant get my wwan modem to work on a current debian testing buster system:
>Linux karl-acer2 4.15.0-3-amd64 #1 SMP Debian 4.15.17-1 (2018-04-19) x86_64 GNU/Linux

I have a Huawei ME906E, apparently:
lsusb:
Bus 002 Device 005: ID 12d1:1570 Huawei Technologies Co., Ltd.

tar zxOvf /usr/share/usb_modeswitch/configPack.tar.gz 12d1:1570
12d1:1570
# Huawei ME906E
Configuration=0

When i boot up its in config 1 and using the option driver:

T: Bus=01 Lev=01 Prnt=01 Port=05 Cnt=03 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=02 Prot=01 MxPS=64 #Cfgs= 2
P: Vendor=12d1 ProdID=1570 Rev=00.01
S: Manufacturer=Huawei Technologies Co., Ltd.
S: Product=HUAWEI Mobile Broadband Module
C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=02 Driver=option
I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=03 Driver=option
I: If#= 3 Alt= 0 #EPs= 3 Cls=0b(scard) Sub=00 Prot=00 Driver=(none)
I: If#= 4 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=07 Driver=(none)

In that state it is not detected by Network-Manager or ModemManager.

I can switch it to cdc_mbim mode using:
echo 0 > /sys/bus/usb/devices/1-6/bConfigurationValue
echo 2 > /sys/bus/usb/devices/1-6/bConfigurationValue

getting
T: Bus=01 Lev=01 Prnt=01 Port=05 Cnt=03 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=02 Prot=01 MxPS=64 #Cfgs= 2
P: Vendor=12d1 ProdID=1570 Rev=00.01
S: Manufacturer=Huawei Technologies Co., Ltd.
S: Product=HUAWEI Mobile Broadband Module
C: #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim

and this in dmesg:
[ 235.323742] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 235.323783] option 1-6:1.0: device disconnected
[ 235.324085] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 235.324129] option 1-6:1.1: device disconnected
[ 235.324387] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 235.324415] option 1-6:1.2: device disconnected
[ 247.558706] usbcore: registered new interface driver cdc_ncm
[ 247.561999] usbcore: registered new interface driver cdc_wdm
[ 247.585903] cdc_mbim 1-6:2.0: setting rx_max = 16384
[ 247.586246] cdc_mbim 1-6:2.0: setting tx_max = 16384
[ 247.586250] cdc_mbim 1-6:2.0: NDP will be placed at end of frame for this device.
[ 247.586389] cdc_mbim 1-6:2.0: cdc-wdm0: USB WDM device
[ 247.586792] cdc_mbim 1-6:2.0 wwan0: register 'cdc_mbim' at usb-0000:00:14.0-6, CDC MBIM, fe:4c:f9:b2:9f:05
[ 247.586967] usbcore: registered new interface driver cdc_mbim
[ 247.591280] cdc_mbim 1-6:2.0 wwp0s20u6c2: renamed from wwan0

It is now recognized by NetworkManager and i can open a wwan connection. However, its no good, i can apparently send data out, but nothing comes back.
As you can see in the attached image of modemmanager-gui, data is being sent out, but nothing comes back. Internet is dead, i cant ping anything.

It seems similar to http://www.draisberghof.de/usb_modeswit ... 85&start=0

However, i checked, the cdc_ncm patch is already included in the module for my kernel.

Then again, in cdc_ncm.c i find this paragraph:
/* Reset data interface. Some devices will not reset properly
* unless they are configured first. Toggle the altsetting to
* force a reset.
* Some other devices do not work properly with this procedure
* that can be avoided using quirk CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE

So maybe my modem has a problem with that patch ?
I have not yet found out how to apply quirk CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE, how do you set that ?

In summary, i can force my modem into cdc_mbim mode, but it does not work.

Any help appreciated.
Cheers,
KK
Attachments
modemmanager-gui
modemmanager-gui
Bildschirmfoto vom 2018-04-29 23-19-44.png (40.86 KiB) Viewed 1210 times

LOM
Posts: 1286
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: Acer Travelmate Huawei ME906E 12d1:1570

Post by LOM » Thu May 03, 2018 2:42 pm

I think you are better helped in the ModemManager mailing list, we handle mode switching here and usb_modeswitch will do the selection of config#2 for you if you have a recent usb_modeswitch version like 2.50 or 2.51.

Post Reply