Acer Travelmate Huawei ME906E 12d1:1570
Reinhard Speyerer
rspmn at arcor.de
Sun May 6 15:56:12 UTC 2018
On Fri, May 04, 2018 at 03:53:56PM +0200, Karl Kashofer wrote:
> 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.
>
> Internet searches come up with this thread:
> http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=4&t=2485&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 ?
Hi Karl,
since both the Huawei ME906E and the Telit LE922A6 for which this was
originally added contain a Qualcomm chipset it might be worth a try.
You would have to copy the
/* Telit LE922A6 in MBIM composition */
{ USB_DEVICE_AND_INTERFACE_INFO(0x1bc7, 0x1041, USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE),
.driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle,
},
entry in drivers/net/usb/cdc_mbim.c, change the USB VID/PID to the
corresponding Huawei ME906E values and rebuild/reload cdc-mbim.ko
to try it out.
Alternatively you could also add the Huawei ME909E USB id in qcserial.c
and qmi_wwan.c like it has already been done for the HP lt4112 ME906E
variant. This should make ModemManager use the ME906E in QMI mode without
having to change the USB configuration.
The following might also work for a quick check in case you don't want to
rebuild kernel modules:
rmmod option
modprobe qmi_wwan
echo 12d1 1570 > /sys/bus/usb/drivers/qmi_wwan/new_id
modprobe qcserial
echo 12d1 1570 > /sys/bus/usb-serial/drivers/qcserial/new_id
Regards,
Reinhard
More information about the ModemManager-devel
mailing list