Hello,
I have a Huawei E3372h-607 in stick mode which i am trying to use with NCM driver. I have verified that the device works on a linux system. The device is running firmware 2.264.
Router I guess is V1,
[ 0.000000] Linux version 3.18.27 (alzhao@alzhao-ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47065) ) #10 Mon Nov 13 19:06:57 HKT 2017
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7620N ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is GL-MT300N
On MT300N, the device is reported as,
[ 126.890000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 127.040000] usb 1-1: no of_node; not parsing pinctrl DT
[ 127.070000] option 1-1:1.0: no of_node; not parsing pinctrl DT
[ 127.080000] option 1-1:1.0: GSM modem (1-port) converter detected
[ 127.080000] option1 ttyUSB0: no of_node; not parsing pinctrl DT
[ 127.090000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 127.100000] option 1-1:1.1: no of_node; not parsing pinctrl DT
[ 127.110000] option 1-1:1.1: GSM modem (1-port) converter detected
[ 127.110000] option1 ttyUSB1: no of_node; not parsing pinctrl DT
[ 127.120000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 127.140000] huawei_cdc_ncm 1-1:1.2: no of_node; not parsing pinctrl DT
[ 127.200000] huawei_cdc_ncm 1-1:1.2: MAC-Address: 00:1e:10:1f:00:00
[ 127.200000] huawei_cdc_ncm 1-1:1.2: setting rx_max = 16384
[ 127.220000] huawei_cdc_ncm 1-1:1.2: cdc-wdm0: USB WDM device
[ 127.220000] huawei_cdc_ncm 1-1:1.2 wwan0: register 'huawei_cdc_ncm' at usb-101c0000.ehci-1, Huawei CDC NCM device, 00:1e:10:1f:00:00
[ 127.240000] huawei_cdc_ncm 1-1:1.2 wwan0: kevent 12 may have been dropped
The network is defined as,
config interface 'modem'
option country 'country71'
option sp 'isp4'
option service 'umts'
option dialnum '*99#'
option apn 'giffgaff.com'
option username 'giffgaff'
option metric '40'
option proto 'qmi'
option ifname 'wwan0'
option device '/dev/cdc-wdm0'
option password 'password'
Unfortunately, the device never connects to the internet. I tried to use the /dev/ttyUSB0 with the following config,
config interface 'modem'
option country 'country71'
option sp 'isp4'
option service 'umts'
option dialnum '*99#'
option apn 'giffgaff.com'
option username 'giffgaff'
option metric '40'
option password 'password'
option proto '3g'
option ifname '3g-modem'
option device '/dev/ttyUSB0'
It was able to connect in this mode,
Sat Jul 21 22:15:33 2018 daemon.notice netifd: Interface 'modem' is setting up now
Sat Jul 21 22:15:35 2018 daemon.notice netifd: modem (10677): Trying to set mode
Sat Jul 21 22:15:37 2018 daemon.notice pppd[10723]: pppd 2.4.7 started by root, uid 0
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: abort on (BUSY)
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: abort on (NO CARRIER)
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: abort on (ERROR)
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: report (CONNECT)
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: timeout set to 10 seconds
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: send (AT&F^M)
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: expect (OK)
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: ^M
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: OK
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: -- got it
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: send (ATE1^M)
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: expect (OK)
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: ^M
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: ^M
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: OK
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: -- got it
Sat Jul 21 22:15:38 2018 local2.info chat[10807]: send (AT+CGDCONT=1,"IP","giffgaff.com"^M)
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: timeout set to 30 seconds
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: expect (OK)
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: ^M
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: AT+CGDCONT=1,"IP","giffgaff.com"^M^M
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: OK
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: -- got it
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: send (ATD*99***1#^M)
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: expect (CONNECT)
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: ^M
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: ATD*99***1#^M^M
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: CONNECT
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: -- got it
Sat Jul 21 22:15:39 2018 local2.info chat[10807]: send ( ^M)
Sat Jul 21 22:15:39 2018 daemon.info pppd[10723]: Serial connection established.
Sat Jul 21 22:15:39 2018 daemon.info pppd[10723]: Using interface 3g-modem
Sat Jul 21 22:15:39 2018 daemon.notice pppd[10723]: Connect: 3g-modem <--> /dev/ttyUSB0
Sat Jul 21 22:15:39 2018 kern.info kernel: [ 516.330000] 3g-modem: renamed from ppp0
Sat Jul 21 22:15:40 2018 daemon.info pppd[10723]: CHAP authentication succeeded: Welcome!!
Sat Jul 21 22:15:40 2018 daemon.notice pppd[10723]: CHAP authentication succeeded
Sat Jul 21 22:15:41 2018 daemon.warn pppd[10723]: Could not determine remote IP address: defaulting to 10.64.64.64
Sat Jul 21 22:15:41 2018 daemon.notice pppd[10723]: local IP address 10.146.249.5
Sat Jul 21 22:15:41 2018 daemon.notice pppd[10723]: remote IP address 10.64.64.64
On linux desktop i am able to use NCM mode using,
$echo -e "AT^NDISDUP=1,1,\"giffgfaff.com\"\r" > /dev/ttyUSB1
$dhclient wwan0
The same trick doesnt work on MT300N
root@GL-MT300N:~# echo -e "AT^NDISDUP=1,1,\"giffgaff.com\"\r" > /dev/ttyUSB1
root@GL-MT300N:~# udhcpc -f wwan0
udhcpc (v1.24.1) started
Sending discover...
Sending discover...
Sending discover...
How can we use the NCM mode on this device?