mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
623716dd43
This patch fixes the NCM protocol by adding the missing ifname to the netifd script and changing one unintended "send" statement to "print" in runcommand.gcom. It also cleans up logging and makes the manufacturer names case-insensitive. Furthermore, comgt-ncm should not depend on the USB-serial-related kernel modules, as the cdc-wdm control device works without them. There is also no need to depend on kmod-huawei-cdc-ncm, since other manufacturers (like Sony-Ericsson and Samsung) which use other kernel modules should also be supported. I'd appreciate if someone with Samsung or Sony-Ericsson modems could test this, I was only able to test it with Huawei E3276, E3372 and E353. Signed-off-by: Matti Laakso <malaakso@elisanet.fi> SVN-Revision: 44182
50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
{
|
|
"huawei": {
|
|
"initialize": [
|
|
"AT",
|
|
"ATZ",
|
|
"ATQ0",
|
|
"ATV1",
|
|
"ATE1",
|
|
"ATS0=0"
|
|
],
|
|
"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,\\\"IP\\\",\\\"${apn}\\\""
|
|
],
|
|
"modes": {
|
|
"umts": "AT+CHANGEALLPATH=1"
|
|
},
|
|
"connect": "AT+CGATT=1",
|
|
"disconnect": "AT+CGATT=0"
|
|
},
|
|
"sony": {
|
|
"initialize": [
|
|
"AT+CFUN=1",
|
|
"AT+CGDCONT=1,\\\"IP\\\",\\\"${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"
|
|
}
|
|
}
|