luci-app-qmodem: add Quectel RG801 (Balong 5000) support
This commit is contained in:
parent
9d650234e5
commit
2d7acea04d
@ -749,6 +749,10 @@ at_dial()
|
||||
at_command="AT+QNETDEVCTL=1,3,1"
|
||||
cgdcont_command="AT+CGDCONT=1,\"$pdp_type\",\"$apn\""
|
||||
;;
|
||||
"hisilicon")
|
||||
at_command="AT+QNETDEVCTL=1,1,1"
|
||||
cgdcont_command=""
|
||||
;;
|
||||
"lte")
|
||||
if [ "$define_connect" = "3" ];then
|
||||
at_command="AT+QNETDEVCTL=3,3,1"
|
||||
|
@ -115,6 +115,22 @@
|
||||
"ncm"
|
||||
]
|
||||
},
|
||||
"rg801": {
|
||||
"manufacturer_id": "2c7c",
|
||||
"manufacturer": "quectel",
|
||||
"platform": "hisilicon",
|
||||
"data_interface": "usb",
|
||||
"define_connect": "1",
|
||||
"wcdma_band": "1/8",
|
||||
"lte_band": "1/3/5/8/34/38/39/40/41",
|
||||
"nsa_band": "41/78/79",
|
||||
"sa_band": "1/28/41/78/79",
|
||||
"modes": [
|
||||
"ecm",
|
||||
"rndis",
|
||||
"ncm"
|
||||
]
|
||||
},
|
||||
"rm500u-cn": {
|
||||
"manufacturer_id": "2c7c",
|
||||
"manufacturer": "quectel",
|
||||
|
@ -53,6 +53,15 @@ get_mode()
|
||||
*) mode="${mode_num}" ;;
|
||||
esac
|
||||
;;
|
||||
"hisilicon")
|
||||
case "$mode_num" in
|
||||
"1") mode="ecm" ;;
|
||||
"3") mode="rndis" ;;
|
||||
"4") mode="ncm" ;;
|
||||
"5") mode="ncm" ;;
|
||||
*) mode="ncm" ;;
|
||||
esac
|
||||
;;
|
||||
"lte12"|\
|
||||
"lte")
|
||||
case "$mode_num" in
|
||||
@ -145,6 +154,9 @@ get_network_prefer()
|
||||
"unisoc")
|
||||
get_network_prefer_nr
|
||||
;;
|
||||
"hisilicon")
|
||||
get_network_prefer_nr
|
||||
;;
|
||||
"lte")
|
||||
get_network_prefer_lte
|
||||
;;
|
||||
@ -162,6 +174,9 @@ get_network_prefer()
|
||||
"unisoc")
|
||||
json_add_string 5G $network_prefer_5g
|
||||
;;
|
||||
"hisilicon")
|
||||
json_add_string 5G $network_prefer_5g
|
||||
;;
|
||||
esac
|
||||
json_close_array
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user