2014-10-10 08:56:33 +00:00
|
|
|
{
|
|
|
|
"huawei": {
|
|
|
|
"initialize": [
|
|
|
|
"AT",
|
|
|
|
"ATZ",
|
|
|
|
"ATQ0",
|
|
|
|
"ATV1",
|
|
|
|
"ATE1",
|
2015-09-11 06:46:42 +00:00
|
|
|
"ATS0=0",
|
2016-12-11 15:28:52 +00:00
|
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}"
|
2014-10-10 08:56:33 +00:00
|
|
|
],
|
|
|
|
"modes": {
|
|
|
|
"preferlte": "AT^SYSCFGEX=\\\"030201\\\",3fffffff,2,4,7fffffffffffffff,,",
|
|
|
|
"preferumts": "AT^SYSCFGEX=\\\"0201\\\",3fffffff,2,4,7fffffffffffffff,,",
|
|
|
|
"lte": "AT^SYSCFGEX=\\\"03\\\",3fffffff,2,4,7fffffffffffffff,,",
|
|
|
|
"umts": "AT^SYSCFGEX=\\\"02\\\",3fffffff,2,4,7fffffffffffffff,,",
|
|
|
|
"gsm": "AT^SYSCFGEX=\\\"01\\\",3fffffff,2,4,7fffffffffffffff,,",
|
|
|
|
"auto": "AT^SYSCFGEX=\\\"00\\\",3fffffff,2,4,7fffffffffffffff,,"
|
|
|
|
},
|
2016-12-11 15:28:52 +00:00
|
|
|
"connect": "AT^NDISDUP=${profile},1${apn:+,\\\"$apn\\\"}${username:+,\\\"$username\\\"}${password:+,\\\"$password\\\"}${auth:+,$auth}",
|
|
|
|
"disconnect": "AT^NDISDUP=${profile},0"
|
2014-10-10 08:56:33 +00:00
|
|
|
},
|
2015-01-28 19:19:33 +00:00
|
|
|
"samsung": {
|
2014-10-10 08:56:33 +00:00
|
|
|
"initialize": [
|
|
|
|
"AT",
|
|
|
|
"AT+CGREG=2",
|
|
|
|
"AT+CFUN=5",
|
|
|
|
"AT+MODESELECT=3",
|
2016-12-11 15:28:52 +00:00
|
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}"
|
2014-10-10 08:56:33 +00:00
|
|
|
],
|
|
|
|
"modes": {
|
|
|
|
"umts": "AT+CHANGEALLPATH=1"
|
|
|
|
},
|
|
|
|
"connect": "AT+CGATT=1",
|
|
|
|
"disconnect": "AT+CGATT=0"
|
|
|
|
},
|
2016-12-11 15:28:52 +00:00
|
|
|
"sierra": {
|
2014-10-10 08:56:33 +00:00
|
|
|
"initialize": [
|
|
|
|
"AT+CFUN=1",
|
2016-12-11 15:28:52 +00:00
|
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}",
|
|
|
|
"AT$QCPDPP=${profile},${auth:-0}${password:+,\\\"$password\\\"}${username:+,\\\"$username\\\"}"
|
2015-09-11 06:46:42 +00:00
|
|
|
],
|
|
|
|
"modes": {
|
|
|
|
"preferlte": "AT!SELRAT=07",
|
|
|
|
"preferumts": "AT!SELRAT=05",
|
|
|
|
"lte": "AT!SELRAT=06",
|
|
|
|
"umts": "AT!SELRAT=01",
|
|
|
|
"gsm": "AT!SELRAT=02",
|
|
|
|
"auto": "AT!SELRAT=00"
|
|
|
|
},
|
2016-12-11 15:28:52 +00:00
|
|
|
"connect": "AT!SCACT=1,${profile}",
|
|
|
|
"disconnect": "AT!SCACT=0,${profile}"
|
2015-09-11 06:46:42 +00:00
|
|
|
},
|
2016-12-11 15:28:52 +00:00
|
|
|
"sony": {
|
2015-09-11 06:46:42 +00:00
|
|
|
"initialize": [
|
|
|
|
"AT+CFUN=1",
|
2016-12-11 15:28:52 +00:00
|
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}",
|
|
|
|
"AT*EIAAUW=${profile},1,\\\"${username}\\\",\\\"${password}\\\",${auth:-00111}"
|
2014-10-10 08:56:33 +00:00
|
|
|
],
|
|
|
|
"modes": {
|
|
|
|
"umts": "AT+CFUN=6",
|
|
|
|
"gsm": "AT+CFUN=5"
|
|
|
|
},
|
2016-12-11 15:28:52 +00:00
|
|
|
"connect": "AT*ENAP=1,${profile}",
|
2014-10-10 08:56:33 +00:00
|
|
|
"disconnect": "AT*ENAP=0"
|
2016-12-22 21:12:44 +00:00
|
|
|
},
|
|
|
|
"mtk1": {
|
|
|
|
"initialize": [
|
|
|
|
"AT+CFUN=1"
|
|
|
|
],
|
|
|
|
"configure": [
|
|
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\",\\\"${apn}\\\",0,0"
|
|
|
|
],
|
|
|
|
"connect": "AT+CGACT=1,${profile}",
|
|
|
|
"finalize": "AT+CGDATA=\\\"M-MBIM\\\",${profile},1",
|
|
|
|
"disconnect": "AT+CGACT=0,${profile}"
|
2022-02-27 13:12:39 +00:00
|
|
|
},
|
2022-11-30 20:35:29 +00:00
|
|
|
"quectel": {
|
|
|
|
"initialize": [
|
|
|
|
"AT+CFUN=1"
|
|
|
|
],
|
|
|
|
"configure": [
|
|
|
|
"at+qicsgp=${profile},${context_type},\\\"${apn}\\\",\\\"${username}\\\",\\\"${password}\\\",0"
|
|
|
|
],
|
|
|
|
"modes": {
|
|
|
|
"lte": "AT+QCFG=\\\"nwscanmode\\\",3",
|
|
|
|
"umts": "AT+QCFG=\\\"nwscanmode\\\",2",
|
|
|
|
"gsm": "AT+QCFG=\\\"nwscanmode\\\",1",
|
|
|
|
"auto": "AT+QCFG=\\\"nwscanmode\\\",0"
|
|
|
|
},
|
|
|
|
"connect": "AT+qnetdevctl=1,${profile},1",
|
|
|
|
"disconnect": "AT+qnetdevctl=0,${profile},0"
|
|
|
|
},
|
2022-02-27 13:12:39 +00:00
|
|
|
"\"zte": {
|
|
|
|
"initialize": [
|
|
|
|
"AT+CFUN=1"
|
|
|
|
],
|
|
|
|
"configure": [
|
|
|
|
"AT+ZGDCONT=${profile},\\\"${pdptype}\\\",\\\"${apn}\\\",\\\"\\\",0,0",
|
|
|
|
"AT+ZGPCOAUTH=${profile},\\\"${username}\\\",\\\"${password}\\\",0"
|
|
|
|
],
|
|
|
|
"connect": "AT+ZGACT=1,${profile}",
|
|
|
|
"disconnect": "AT+ZGACT=0,${profile}"
|
|
|
|
},
|
|
|
|
"\"marvell\"": {
|
|
|
|
"initialize": [
|
|
|
|
"AT+CFUN=1"
|
|
|
|
],
|
|
|
|
"configure": [
|
|
|
|
"AT+ZGDCONT=${profile},\\\"${pdptype}\\\",\\\"${apn}\\\",\\\"\\\",0,0",
|
|
|
|
"AT+ZGPCOAUTH=${profile},\\\"${username}\\\",\\\"${password}\\\",0"
|
|
|
|
],
|
|
|
|
"connect": "AT+ZGACT=1,${profile}",
|
|
|
|
"disconnect": "AT+ZGACT=0,${profile}"
|
comgt: ncm: support Mikrotik R11e-LTE6 modem
The Mikrotik R11e-LTE6 modem is similar to ZTE MF286R modem, added
earlier: it has a Marvel chip, able to work in ACM+RNDIS mode, knows ZTE
specific commands, runs OpenWrt Barrier Breaker fork.
While the modem is able to offer IPv6 address, the RNDIS setup is unable
to complete if there is an IPv6 adress.
While it works in ACM+RNDIS mode, the user experience isn't as good as
with "proto 3g": the modem happily serves a local IP (192.168.1.xxx)
without internet access. Of course, if the modem has enough time
(for example at the second dialup), it will serve a public IP.
Modifing the DHCP Lease (to a short interval before connect and back to
default while finalizing) is a workaround to get a public IP at the
first try.
A safe workaround for this is to excercise an offline script of the
pingcheck program: simply restart (ifdown - ifup) the connection.
Another pitfall is that the modem writes a few messages at startup,
which confuses the manufacturer detection algorithm and got disabled.
daemon.notice netifd: Interface 'mikrotik' is setting up now
daemon.notice netifd: mikrotik (2366): Failed to parse message data
daemon.notice netifd: mikrotik (2366): WARNING: Variable 'ok' does not exist or is not an array/object
daemon.notice netifd: mikrotik (2366): Unsupported modem
daemon.notice netifd: mikrotik (2426): Stopping network mikrotik
daemon.notice netifd: mikrotik (2426): Failed to parse message data
daemon.notice netifd: mikrotik (2426): WARNING: Variable '*simdetec:1,sim' does not exist or is not an array/object
daemon.notice netifd: mikrotik (2426): Unsupported modem
daemon.notice netifd: Interface 'mikrotik' is now down
A workaround for this is to use the "delay" option in the interface
configuration.
I want to thank Forum members dchard (in topic Adding support for
MikroTik hAP ac3 LTE6 kit (D53GR_5HacD2HnD)) [1]
and mrhaav (in topic OpenWrt X86_64 + Mikrotik R11e-LTE6) [2]
for sharing their experiments and works.
Another information page was found at eko.one.pl [3].
[1]: https://forum.openwrt.org/t/137555
[2]: https://forum.openwrt.org/t/151743
[3]: https://eko.one.pl/?p=modem-r11elte
Signed-off-by: Szabolcs Hubai <szab.hu@gmail.com>
2023-03-24 23:00:27 +00:00
|
|
|
},
|
|
|
|
"\"mikrotik\"": {
|
|
|
|
"configure": [
|
|
|
|
"AT+CFUN=4",
|
|
|
|
"AT+ZGDCONT=${profile},\\\"${pdptype}\\\",\\\"${apn}\\\",0",
|
|
|
|
"AT+ZDHCPLEASE=10",
|
|
|
|
"AT+CFUN=1"
|
|
|
|
],
|
|
|
|
"waitforconnect": "\\\"+ZCONSTAT: 1,${context_type}\\\",\\\"+ZGIPDNS: ${context_type}\\\"",
|
|
|
|
"connect": "AT+ZGACT=1,${context_type}",
|
|
|
|
"finalize": "AT+ZDHCPLEASE=0",
|
|
|
|
"disconnect": "AT+ZGACT=0,1"
|
2014-10-10 08:56:33 +00:00
|
|
|
}
|
|
|
|
}
|