This is my first time installing the ME906s-158 on the computer. Previously, I have used the E3276 and it works well after running usb_modeswitch. It is using the huawei_cdc_ncm driver. The interface wwan0 was created.
The ME906s-158 is using the cdc_ether, but not the cdc_mbim driver. Is there is way to switch the mode so that it uses cdc_mbim?
For the ME906s-158, I have recompiled the kernel to include
Code: Select all
CONFIG_USB_NET_CDC_MBIM=y
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
.....
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
.....
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether ea:70:00:53:b9:54 brd ff:ff:ff:ff:ff:ff
inet 169.254.6.242/16 brd 169.254.255.255 scope link usb0
valid_lft forever preferred_lft forever
inet6 fe80::e870:ff:fe53:b954/64 scope link
valid_lft forever preferred_lft forever
4: usb1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 02:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
5: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
.....
6: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
.....
Running dmesg shows:
[ 1.465000] usbcore: registered new interface driver cdc_ether
[ 1.495000] usbcore: registered new interface driver cdc_subset
[ 1.505000] usbcore: registered new interface driver cdc_ncm
[ 1.515000] usbcore: registered new interface driver huawei_cdc_ncm
[ 1.520000] usbcore: registered new interface driver cdc_mbim
[ 1.600000] usbcore: registered new interface driver cdc_wdm
[ 1.645000] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 2.070000] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 2.075000] g_cdc gadget: g_cdc ready
[ 2.520000] g_cdc gadget: high-speed config #1: CDC Composite (ECM + ACM)
[ 2.800000] cdc_ether 1-1:2.0 usb1: register 'cdc_ether' at usb-1c14000.usb-1, CDC Ethernet Device, 02:1e:10:1f:00:00
[ 18.405000] cdc_ether 1-1:2.0 usb1: kevent 12 may have been dropped
[ 1.440000] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[ 1.525000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.570000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.625000] usbserial: USB Serial support registered for generic
[ 1.635000] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.790000] usbhid: USB HID core driver
[ 1.890000] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[ 1.915000] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[ 1.920000] hub 1-0:1.0: USB hub found
[ 1.935000] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 2
[ 2.005000] hub 2-0:1.0: USB hub found
[ 2.025000] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 2.030000] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 2.040000] hub 3-0:1.0: USB hub found
[ 2.255000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 2.855000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 3.090000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 3.190000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 3.400000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 3.420000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
Running usb-devices shows:
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=ff MxPS=64 #Cfgs= 3
P: Vendor=12d1 ProdID=15c1 Rev=01.02
S: Manufacturer=HUAWEI Mobile
S: Product=HUAWEI Mobile
S: SerialNumber=0123456789ABCDEF
C: #Ifs= 7 Cfg#= 2 Atr=a0 MxPwr=2mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=06 Prot=00 Driver=cdc_ether
I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=06 Prot=10 Driver=option
I: If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=06 Prot=13 Driver=option
I: If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=06 Prot=12 Driver=option
I: If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=06 Prot=14 Driver=option
I: If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=06 Prot=1b Driver=option
Running lsusb -v shows:
- Bus 001 Device 002: ID 12d1:15c1 Huawei Technologies Co., Ltd.
Device Descriptor:- bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 255
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x15c1
bcdDevice 1.02
iManufacturer 1 HUAWEI Mobile
iProduct 2 HUAWEI Mobile
iSerial 3 0123456789ABCDEF
bNumConfigurations 3
....
....
- bLength 9
bDescriptorType 2
wTotalLength 137
bNumInterfaces 3
bConfigurationValue 3
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 2mA
- Interface Association:
- bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 2 Communications
bFunctionSubClass 14
bFunctionProtocol 0
iFunction 13 HUAWEI Mobile Broadband Module
- bLength 8
- Interface Descriptor:
- bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 14
bInterfaceProtocol 0
iInterface 10 HUAWEI Mobile Connect - Network Card
CDC Header:- bcdCDC 1.10
- bcdMBIMVersion 1.00
wMaxControlMessage 1024
bNumberFilters 32
bMaxFilterSize 128
wMaxSegmentSize 1500
bmNetworkCapabilities 0x20
8-byte ntb input size
CDC Union:- bMasterInterface 0
bSlaveInterface 1
- bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 5
- bLength 9
..... - bLength 18