mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
60a96cfdb7
By setting the option pdptype to IP, IPV6 or IPV4V6 the user can choose the context type between IPv4, IPv6 and dual stack, respectively. The default setting is dual stack, except if option ipv6=0 is specified, in which case IPv4 context is the default. This allows for an out-of-the-box IPv6 support with modems utilizing NCM-like protocols. While we are at it, also add commands for Sierra DirectIP modems (currently untested), which will allow us to drop the separate comgt-directip package (once tested and verified working). Signed-off-by: Matti Laakso <malaakso@elisanet.fi> SVN-Revision: 46844
68 lines
1.8 KiB
JSON
68 lines
1.8 KiB
JSON
{
|
|
"huawei": {
|
|
"initialize": [
|
|
"AT",
|
|
"ATZ",
|
|
"ATQ0",
|
|
"ATV1",
|
|
"ATE1",
|
|
"ATS0=0",
|
|
"AT+CGDCONT=1,\\\"${pdptype}\\\",\\\"${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=1,1,\\\"${apn}\\\"${username:+,\\\"$username\\\"}${password:+,\\\"$password\\\"}${auth:+,$auth}",
|
|
"disconnect": "AT^NDISDUP=1,0"
|
|
},
|
|
"samsung": {
|
|
"initialize": [
|
|
"AT",
|
|
"AT+CGREG=2",
|
|
"AT+CFUN=5",
|
|
"AT+MODESELECT=3",
|
|
"AT+CGDCONT=1,\\\"${pdptype}\\\",\\\"${apn}\\\""
|
|
],
|
|
"modes": {
|
|
"umts": "AT+CHANGEALLPATH=1"
|
|
},
|
|
"connect": "AT+CGATT=1",
|
|
"disconnect": "AT+CGATT=0"
|
|
},
|
|
"sierra wireless, incorporated": {
|
|
"initialize": [
|
|
"AT+CFUN=1",
|
|
"AT+CGDCONT=1,\\\"${pdptype}\\\",\\\"${apn}\\\"",
|
|
"AT$QCPDPP=1${auth:+,$auth}${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,1",
|
|
"disconnect": "AT!SCACT=0,1"
|
|
},
|
|
"sony ericsson": {
|
|
"initialize": [
|
|
"AT+CFUN=1",
|
|
"AT+CGDCONT=1,\\\"${pdptype}\\\",\\\"${apn}\\\"",
|
|
"AT*EIAAUW=1,1,\\\"${username}\\\",\\\"${password}\\\",${auth:-00111}"
|
|
],
|
|
"modes": {
|
|
"umts": "AT+CFUN=6",
|
|
"gsm": "AT+CFUN=5"
|
|
},
|
|
"connect": "AT*ENAP=1,1",
|
|
"disconnect": "AT*ENAP=0"
|
|
}
|
|
}
|