Hello developers,
I am new to making Openwrt run on unoficially supported devices, but here is my problem as short as as possible:
let me make a context first:
Device: Huawei B5318-42
Chip: MT7621
RAM: 128 MB
ROM: 32MB
Wifi: 2.4 Ghz, 5 Ghz (mt7603, mt76x2)
LTE Modem : Huawei
Modem Info:
Manufacturer: huawei
Model: B5318-42
Revision: 21.297.07.19.00
IMEI: **************
+GCAP: +CGSM,+DS,+ES
Modem supports NCM:
AT^SETPORT=?
^SETPORT:3: 3G DIAG
^SETPORT:10: 4G MODEM
^SETPORT:1: 3G MODEM
^SETPORT:12: 4G PCUI
^SETPORT:13: 4G DIAG
^SETPORT:5: 3G GPS
^SETPORT:14: 4G GPS
^SETPORT:A: BLUE TOOTH
^SETPORT:16: NCM
^SETPORT:A1: CDROM
^SETPORT:A2: SD
Active Modes:
AT^SETPORT?
^SETPORT:A1,A2;1,16,3,2,5,A,A1,A2
I got everything working .
my only problem is that i cannot connect though LTE using NCM protocol.
The router can talk to the built-in lte modem but fails to get wwan to work:
daemon.notice netifd: 4g (4534): sending -> AT
daemon.notice netifd: 4g (4534): sending -> ATZ
daemon.notice netifd: 4g (4534): sending -> ATQ0
daemon.notice netifd: 4g (4534): sending -> ATV1
daemon.notice netifd: 4g (4534): sending -> ATE1
daemon.notice netifd: 4g (4534): sending -> ATS0=0
daemon.notice netifd: 4g (4534): sending -> AT+CGDCONT=1,"IP","net"
daemon.notice netifd: 4g (4534): Configuring modem
daemon.notice netifd: 4g (4534): Starting network 4g
daemon.notice netifd: 4g (4534): Connecting modem
daemon.notice netifd: 4g (4534): sending -> AT^NDISDUP=1,1,"net"
daemon.notice netifd: 4g (4534): Setting up /sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.4/ttyUSB0/../../2-1:1.0/net:
daemon.notice netifd: 4g (4534): wwan0
daemon.notice netifd: 4g (4534):
daemon.notice netifd: 4g (4534): /sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.4/ttyUSB0/../../2-1:1.1/net:
daemon.notice netifd: 4g (4534): wwan1
daemon.notice netifd: 4g (4534):
daemon.notice netifd: 4g (4534): /sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.4/ttyUSB0/../../2-1:1.2/net:
daemon.notice netifd: 4g (4534): wwan2
daemon.notice netifd: 4g (4534):
daemon.notice netifd: 4g (4534): /sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.4/ttyUSB0/../../2-1:1.3/net:
daemon.notice netifd: 4g (4534): wwan3
daemon.notice netifd: 4g (4534): Command failed: Invalid argument
daemon.notice netifd: 4g (4758): Stopping network 4g
daemon.notice netifd: 4g (4758): sending -> AT^NDISDUP=1,0
daemon.notice netifd: 4g (4758): Command failed: Permission denied
daemon.notice netifd: Interface '4g' is now down
daemon.notice netifd: Interface '4g' is setting up now
2021 daemon.notice netifd: 4g (4773): sending -> AT
2021 daemon.notice netifd: 4g (4773): sending -> ATZ
daemon.notice netifd: 4g (4773): sending -> ATQ0
daemon.notice netifd: 4g (4773): sending -> ATV1
daemon.notice netifd: 4g (4773): sending -> ATE1
<-- And Keeps repeating this loop-->
oh and I can confirm that the modem connects to ISP .
but what is happening above is beyond my understanding.
config interface '4g'
option mode 'preferlte'
option apn 'net'
option dialnum '*99#'
option proto 'ncm'
option ifname 'wwan0'
option device '/dev/ttyUSB0'
option ipv6 'auto'
option metric '40'
option delegate '0'
option disabled '0'
Please help I am almost there to get Openwrt to work fully with this CPE.