comgt: ncm: support Mikrotik R11e-LTE6 modem
[openwrt/openwrt.git] / package / network / utils / comgt / files / ncm.json
1 {
2 "huawei": {
3 "initialize": [
4 "AT",
5 "ATZ",
6 "ATQ0",
7 "ATV1",
8 "ATE1",
9 "ATS0=0",
10 "AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}"
11 ],
12 "modes": {
13 "preferlte": "AT^SYSCFGEX=\\\"030201\\\",3fffffff,2,4,7fffffffffffffff,,",
14 "preferumts": "AT^SYSCFGEX=\\\"0201\\\",3fffffff,2,4,7fffffffffffffff,,",
15 "lte": "AT^SYSCFGEX=\\\"03\\\",3fffffff,2,4,7fffffffffffffff,,",
16 "umts": "AT^SYSCFGEX=\\\"02\\\",3fffffff,2,4,7fffffffffffffff,,",
17 "gsm": "AT^SYSCFGEX=\\\"01\\\",3fffffff,2,4,7fffffffffffffff,,",
18 "auto": "AT^SYSCFGEX=\\\"00\\\",3fffffff,2,4,7fffffffffffffff,,"
19 },
20 "connect": "AT^NDISDUP=${profile},1${apn:+,\\\"$apn\\\"}${username:+,\\\"$username\\\"}${password:+,\\\"$password\\\"}${auth:+,$auth}",
21 "disconnect": "AT^NDISDUP=${profile},0"
22 },
23 "samsung": {
24 "initialize": [
25 "AT",
26 "AT+CGREG=2",
27 "AT+CFUN=5",
28 "AT+MODESELECT=3",
29 "AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}"
30 ],
31 "modes": {
32 "umts": "AT+CHANGEALLPATH=1"
33 },
34 "connect": "AT+CGATT=1",
35 "disconnect": "AT+CGATT=0"
36 },
37 "sierra": {
38 "initialize": [
39 "AT+CFUN=1",
40 "AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}",
41 "AT$QCPDPP=${profile},${auth:-0}${password:+,\\\"$password\\\"}${username:+,\\\"$username\\\"}"
42 ],
43 "modes": {
44 "preferlte": "AT!SELRAT=07",
45 "preferumts": "AT!SELRAT=05",
46 "lte": "AT!SELRAT=06",
47 "umts": "AT!SELRAT=01",
48 "gsm": "AT!SELRAT=02",
49 "auto": "AT!SELRAT=00"
50 },
51 "connect": "AT!SCACT=1,${profile}",
52 "disconnect": "AT!SCACT=0,${profile}"
53 },
54 "sony": {
55 "initialize": [
56 "AT+CFUN=1",
57 "AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}",
58 "AT*EIAAUW=${profile},1,\\\"${username}\\\",\\\"${password}\\\",${auth:-00111}"
59 ],
60 "modes": {
61 "umts": "AT+CFUN=6",
62 "gsm": "AT+CFUN=5"
63 },
64 "connect": "AT*ENAP=1,${profile}",
65 "disconnect": "AT*ENAP=0"
66 },
67 "mtk1": {
68 "initialize": [
69 "AT+CFUN=1"
70 ],
71 "configure": [
72 "AT+CGDCONT=${profile},\\\"${pdptype}\\\",\\\"${apn}\\\",0,0"
73 ],
74 "connect": "AT+CGACT=1,${profile}",
75 "finalize": "AT+CGDATA=\\\"M-MBIM\\\",${profile},1",
76 "disconnect": "AT+CGACT=0,${profile}"
77 },
78 "quectel": {
79 "initialize": [
80 "AT+CFUN=1"
81 ],
82 "configure": [
83 "at+qicsgp=${profile},${context_type},\\\"${apn}\\\",\\\"${username}\\\",\\\"${password}\\\",0"
84 ],
85 "modes": {
86 "lte": "AT+QCFG=\\\"nwscanmode\\\",3",
87 "umts": "AT+QCFG=\\\"nwscanmode\\\",2",
88 "gsm": "AT+QCFG=\\\"nwscanmode\\\",1",
89 "auto": "AT+QCFG=\\\"nwscanmode\\\",0"
90 },
91 "connect": "AT+qnetdevctl=1,${profile},1",
92 "disconnect": "AT+qnetdevctl=0,${profile},0"
93 },
94 "\"zte": {
95 "initialize": [
96 "AT+CFUN=1"
97 ],
98 "configure": [
99 "AT+ZGDCONT=${profile},\\\"${pdptype}\\\",\\\"${apn}\\\",\\\"\\\",0,0",
100 "AT+ZGPCOAUTH=${profile},\\\"${username}\\\",\\\"${password}\\\",0"
101 ],
102 "connect": "AT+ZGACT=1,${profile}",
103 "disconnect": "AT+ZGACT=0,${profile}"
104 },
105 "\"marvell\"": {
106 "initialize": [
107 "AT+CFUN=1"
108 ],
109 "configure": [
110 "AT+ZGDCONT=${profile},\\\"${pdptype}\\\",\\\"${apn}\\\",\\\"\\\",0,0",
111 "AT+ZGPCOAUTH=${profile},\\\"${username}\\\",\\\"${password}\\\",0"
112 ],
113 "connect": "AT+ZGACT=1,${profile}",
114 "disconnect": "AT+ZGACT=0,${profile}"
115 },
116 "\"mikrotik\"": {
117 "configure": [
118 "AT+CFUN=4",
119 "AT+ZGDCONT=${profile},\\\"${pdptype}\\\",\\\"${apn}\\\",0",
120 "AT+ZDHCPLEASE=10",
121 "AT+CFUN=1"
122 ],
123 "waitforconnect": "\\\"+ZCONSTAT: 1,${context_type}\\\",\\\"+ZGIPDNS: ${context_type}\\\"",
124 "connect": "AT+ZGACT=1,${context_type}",
125 "finalize": "AT+ZDHCPLEASE=0",
126 "disconnect": "AT+ZGACT=0,1"
127 }
128 }