luci-app-qmodem: add Huawei MH50000-31 support
This commit is contained in:
parent
530b1e684c
commit
ecf9e25bc4
@ -84,6 +84,20 @@
|
|||||||
"ncm"
|
"ncm"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"mh5000-31": {
|
||||||
|
"manufacturer_id": "12d1",
|
||||||
|
"manufacturer": "huawei",
|
||||||
|
"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/41/78/79",
|
||||||
|
"modes": [
|
||||||
|
"ecm"
|
||||||
|
]
|
||||||
|
},
|
||||||
"rg200u-cn": {
|
"rg200u-cn": {
|
||||||
"manufacturer_id": "2c7c",
|
"manufacturer_id": "2c7c",
|
||||||
"manufacturer": "quectel",
|
"manufacturer": "quectel",
|
||||||
|
@ -244,15 +244,12 @@ function base_info(){
|
|||||||
|
|
||||||
cell_info()
|
cell_info()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
at_command="AT^MONSC"
|
at_command="AT^MONSC"
|
||||||
response=$(at $at_port $at_command | grep "\^MONSC:" | sed 's/\^MONSC: //')
|
response=$(at $at_port $at_command | grep "\^MONSC:" | sed 's/\^MONSC: //')
|
||||||
|
|
||||||
local rat=$(echo "$response" | awk -F',' '{print $1}')
|
local rat=$(echo "$response" | awk -F',' '{print $1}')
|
||||||
|
|
||||||
case $rat in
|
case $rat in
|
||||||
"NR")
|
"NR"|"NR-5GC")
|
||||||
network_mode="NR5G-SA Mode"
|
network_mode="NR5G-SA Mode"
|
||||||
nr_mcc=$(echo "$response" | awk -F',' '{print $2}')
|
nr_mcc=$(echo "$response" | awk -F',' '{print $2}')
|
||||||
nr_mnc=$(echo "$response" | awk -F',' '{print $3}')
|
nr_mnc=$(echo "$response" | awk -F',' '{print $3}')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user