Huawei E5786 12d1:1506 4G dongle

I have a Huawei E5786 4G dongle which I'm having trouble with on a second OpenWRT setup.

I have it working on my main router, with the 19.07 release (although I think it was also working on 18.06). The huawei_cdc_ncm works and I get an IP address on the device using udhcpc.

However, I'm trying to get the device working on a gl.inet AR750 and it will not work. The device shows up with a serial port as well as the CDC interface, which is not the case when I connect it to the main router. The CDC interface doesn't seem to work, and the dongle doesn't support connecting via the serial port (although some AT commands work).

Can anyone help me with how I make the device behave the same? I remember playing around with usbmode on the original router at one point but I can't find any config items or hacks I've made to make it work.

Here's the USB debug and log when I plug in the device on the working router:

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  8 Spd=480  MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 1.02
S:  Manufacturer=HUAWEI_MOBILE
S:  Product=HUAWEI_MOBILE
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=12 Driver=(none)
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=16 Driver=huawei_cdc_ncm
E:  Ad=84(I) Atr=03(Int.) MxPS=  16 Ivl=2ms
I:* If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=huawei_cdc_ncm
E:  Ad=84(I) Atr=03(Int.) MxPS=  16 Ivl=2ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

Tue Oct 20 19:44:51 2020 kern.info kernel: [2815400.536646] usb 1-1: new high-speed USB device number 3 using orion-ehci
Tue Oct 20 19:44:51 2020 kern.info kernel: [2815400.784490] usb-storage 1-1:1.0: USB Mass Storage device detected
Tue Oct 20 19:44:51 2020 kern.info kernel: [2815400.792458] scsi host1: usb-storage 1-1:1.0
Tue Oct 20 19:44:52 2020 kern.info kernel: [2815400.937752] usb 1-1: USB disconnect, device number 3
Tue Oct 20 19:44:52 2020 kern.info kernel: [2815401.776625] usb 1-1: new high-speed USB device number 4 using orion-ehci
Tue Oct 20 19:44:53 2020 kern.info kernel: [2815402.130263] huawei_cdc_ncm 1-1:1.1: resetting NTB format to 16-bit
Tue Oct 20 19:44:53 2020 kern.info kernel: [2815402.139028] huawei_cdc_ncm 1-1:1.1: MAC-Address: 00:1e:10:1f:00:00
Tue Oct 20 19:44:53 2020 kern.info kernel: [2815402.145635] huawei_cdc_ncm 1-1:1.1: setting rx_max = 16384
Tue Oct 20 19:44:53 2020 kern.info kernel: [2815402.172154] huawei_cdc_ncm 1-1:1.1: NDP will be placed at end of frame for this device.
Tue Oct 20 19:44:53 2020 kern.info kernel: [2815402.180822] huawei_cdc_ncm 1-1:1.1: cdc-wdm0: USB WDM device
Tue Oct 20 19:44:53 2020 daemon.notice netifd: Interface 'WAN4G' is enabled
Tue Oct 20 19:44:53 2020 daemon.notice netifd: Network device 'wwan0' link is up
Tue Oct 20 19:44:53 2020 daemon.notice netifd: Interface 'WAN4G' has link connectivity
Tue Oct 20 19:44:53 2020 daemon.notice netifd: Interface 'WAN4G' is setting up now
Tue Oct 20 19:44:53 2020 kern.info kernel: [2815402.187745] huawei_cdc_ncm 1-1:1.1 wwan0: register 'huawei_cdc_ncm' at usb-d005e000.usb-1, Huawei CDC NCM device, 00:1e:10:1f:00:00
Tue Oct 20 19:44:53 2020 kern.info kernel: [2815402.224935] usb-storage 1-1:1.2: USB Mass Storage device detected
Tue Oct 20 19:44:53 2020 kern.info kernel: [2815402.235594] scsi host1: usb-storage 1-1:1.2
Tue Oct 20 19:44:53 2020 daemon.notice netifd: WAN4G (15266): udhcpc: started, v1.30.1
Tue Oct 20 19:44:53 2020 daemon.notice netifd: WAN4G (15266): udhcpc: sending discover
Tue Oct 20 19:44:54 2020 kern.notice kernel: [2815403.281322] scsi 1:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
Tue Oct 20 19:44:54 2020 kern.notice kernel: [2815403.299619] sd 1:0:0:0: [sda] Attached SCSI removable disk
Tue Oct 20 19:44:56 2020 daemon.notice netifd: WAN4G (15266): udhcpc: sending discover
Tue Oct 20 19:44:56 2020 daemon.notice netifd: WAN4G (15266): udhcpc: sending select for 192.168.1.101
Tue Oct 20 19:44:56 2020 daemon.notice netifd: WAN4G (15266): udhcpc: lease of 192.168.1.101 obtained, lease time 86400
Tue Oct 20 19:44:56 2020 daemon.notice netifd: Interface 'WAN4G' is now up
Tue Oct 20 19:44:57 2020 user.notice firewall: Reloading firewall due to ifup of WAN4G (wwan0)

and here's the log when I plug it in on the non-working AR750:

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  4 Spd=480  MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 1.02
S:  Manufacturer=HUAWEI_MOBILE
S:  Product=HUAWEI_MOBILE
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=12 Driver=option
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=16 Driver=huawei_cdc_ncm
E:  Ad=84(I) Atr=03(Int.) MxPS=  16 Ivl=2ms
I:* If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=huawei_cdc_ncm
E:  Ad=84(I) Atr=03(Int.) MxPS=  16 Ivl=2ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.099438] usb 1-1.2: new high-speed USB device number 6 using ehci-platform
Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.250702] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=15ca
Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.257913] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.265660] usb 1-1.2: Product: HUAWEI_MOBILE
Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.270189] usb 1-1.2: Manufacturer: HUAWEI_MOBILE
Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.275235] usb 1-1.2: SerialNumber: 0123456789ABCDEF
Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.473040] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.509504] scsi host1: usb-storage 1-1.2:1.0
Tue Oct 20 08:47:34 2020 kern.info kernel: [ 1196.829589] usb 1-1.2: USB disconnect, device number 6
Tue Oct 20 08:47:35 2020 kern.info kernel: [ 1197.639503] usb 1-1.2: new high-speed USB device number 7 using ehci-platform
Tue Oct 20 08:47:35 2020 kern.info kernel: [ 1197.821598] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1506
Tue Oct 20 08:47:35 2020 kern.info kernel: [ 1197.828763] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Tue Oct 20 08:47:35 2020 kern.info kernel: [ 1197.836594] usb 1-1.2: Product: HUAWEI_MOBILE
Tue Oct 20 08:47:35 2020 kern.info kernel: [ 1197.841161] usb 1-1.2: Manufacturer: HUAWEI_MOBILE
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1197.987985] option 1-1.2:1.0: GSM modem (1-port) converter detected
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1197.994843] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1198.164329] huawei_cdc_ncm 1-1.2:1.1: MAC-Address: 00:1e:10:1f:00:00
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1198.171129] huawei_cdc_ncm 1-1.2:1.1: setting rx_max = 16384
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1198.236266] huawei_cdc_ncm 1-1.2:1.1: NDP will be placed at end of frame for this device.
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1198.245221] huawei_cdc_ncm 1-1.2:1.1: cdc-wdm0: USB WDM device
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1198.252444] huawei_cdc_ncm 1-1.2:1.1 wwan0: register 'huawei_cdc_ncm' at usb-ehci-platform-1.2, Huawei CDC NCM device, 00:1e:10:1f:00:00
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1198.335589] usb-storage 1-1.2:1.2: USB Mass Storage device detected
Tue Oct 20 08:47:36 2020 kern.info kernel: [ 1198.375815] scsi host1: usb-storage 1-1.2:1.2
Tue Oct 20 08:47:37 2020 kern.notice kernel: [ 1199.410211] scsi 1:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
Tue Oct 20 08:47:37 2020 kern.notice kernel: [ 1199.426130] sd 1:0:0:0: [sdb] Attached SCSI removable disk
Tue Oct 20 08:47:38 2020 daemon.notice netifd: Interface 'modem_1_1_2' is setting up now
Tue Oct 20 08:47:38 2020 daemon.notice netifd: modem_1_1_2 (31035): cat: can't open '/tmp/modem.1-1.2/signal': No such file or directory
Tue Oct 20 08:47:43 2020 daemon.notice netifd: modem_1_1_2 (31035): Killed
Tue Oct 20 08:47:43 2020 kern.err kernel: [ 1205.618404] huawei_cdc_ncm 1-1.2:1.1: Error in flush path: -32
Tue Oct 20 08:47:48 2020 kern.err kernel: [ 1210.645703] huawei_cdc_ncm 1-1.2:1.1: Error in flush path: -32
Tue Oct 20 08:47:48 2020 daemon.notice netifd: modem_1_1_2 (31035): Killed
Tue Oct 20 08:47:53 2020 daemon.notice netifd: modem_1_1_2 (31035): Killed
1 Like

Ah, so it's a newer kernel that fixed it on my other router. GL.INET don't seem to have newer firmware for the AR750 out though. :frowning:

Any idea why I see the serial port on the AR750/old OpenWRT and why I don't on the new one?