mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
c42847989e
TOZED TL70-C is an LTE CAT6 cellular modem based on UNISOC SL8563. UNISOC was formerly called Spreadtrum hence the manufacturer name detected on the modem is spreadtrum. The connect and disconnect commands bring up and down the usb0 interface. They are Base64 encoded as that's what the AT command accepts. The modem can do up to 4 APNs by bringing the USB interfaces, usb0 to usb3, up. Setting the USB interfaces up: connmanctl ndisdial AT^NDISDUN="usb0",1,1 connmanctl ndisdial AT^NDISDUN="usb1",1,2 connmanctl ndisdial AT^NDISDUN="usb2",1,3 connmanctl ndisdial AT^NDISDUN="usb3",1,4 Setting the USB interfaces down: connmanctl ndisdial AT^NDISDUN="usb0",0,1 connmanctl ndisdial AT^NDISDUN="usb1",0,2 connmanctl ndisdial AT^NDISDUN="usb2",0,3 connmanctl ndisdial AT^NDISDUN="usb3",0,4 Co-developed-by: Andre Cruz <me@1conan.com> Signed-off-by: Andre Cruz <me@1conan.com> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
141 lines
3.9 KiB
JSON
141 lines
3.9 KiB
JSON
{
|
|
"huawei": {
|
|
"initialize": [
|
|
"AT",
|
|
"ATZ",
|
|
"ATQ0",
|
|
"ATV1",
|
|
"ATE1",
|
|
"ATS0=0",
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}"
|
|
],
|
|
"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,,"
|
|
},
|
|
"connect": "AT^NDISDUP=${profile},1${apn:+,\\\"$apn\\\"}${username:+,\\\"$username\\\"}${password:+,\\\"$password\\\"}${auth:+,$auth}",
|
|
"disconnect": "AT^NDISDUP=${profile},0"
|
|
},
|
|
"samsung": {
|
|
"initialize": [
|
|
"AT",
|
|
"AT+CGREG=2",
|
|
"AT+CFUN=5",
|
|
"AT+MODESELECT=3",
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}"
|
|
],
|
|
"modes": {
|
|
"umts": "AT+CHANGEALLPATH=1"
|
|
},
|
|
"connect": "AT+CGATT=1",
|
|
"disconnect": "AT+CGATT=0"
|
|
},
|
|
"sierra": {
|
|
"initialize": [
|
|
"AT+CFUN=1",
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}",
|
|
"AT$QCPDPP=${profile},${auth:-0}${password:+,\\\"$password\\\"}${username:+,\\\"$username\\\"}"
|
|
],
|
|
"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"
|
|
},
|
|
"connect": "AT!SCACT=1,${profile}",
|
|
"disconnect": "AT!SCACT=0,${profile}"
|
|
},
|
|
"sony": {
|
|
"initialize": [
|
|
"AT+CFUN=1",
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}",
|
|
"AT*EIAAUW=${profile},1,\\\"${username}\\\",\\\"${password}\\\",${auth:-00111}"
|
|
],
|
|
"modes": {
|
|
"umts": "AT+CFUN=6",
|
|
"gsm": "AT+CFUN=5"
|
|
},
|
|
"connect": "AT*ENAP=1,${profile}",
|
|
"disconnect": "AT*ENAP=0"
|
|
},
|
|
"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}"
|
|
},
|
|
"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"
|
|
},
|
|
"\"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}"
|
|
},
|
|
"\"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"
|
|
},
|
|
"spreadtrum": {
|
|
"initialize": [
|
|
"AT+CFUN=1",
|
|
"AT+CCED=2,8",
|
|
"AT+SPTTYROUTER=1"
|
|
],
|
|
"configure": [
|
|
"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}"
|
|
],
|
|
"connect": "AT+SPTZCMD=\\\"Y29ubm1hbmN0bCBuZGlzZGlhbCBBVF5ORElTRFVOPSJ1c2IwIiwxLDE=\\\"",
|
|
"disconnect": "AT+SPTZCMD=\\\"Y29ubm1hbmN0bCBuZGlzZGlhbCBBVF5ORElTRFVOPSJ1c2IwIiwwLDE=\\\""
|
|
}
|
|
}
|