ncm.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. }