luci-app-qmodem: add Huawei MH50000-31 support

This commit is contained in:
sfwtw 2025-05-16 23:29:40 +08:00
parent 530b1e684c
commit ecf9e25bc4
2 changed files with 16 additions and 5 deletions

View File

@ -84,6 +84,20 @@
"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": {
"manufacturer_id": "2c7c",
"manufacturer": "quectel",
@ -786,7 +800,7 @@
"define_connect": "1",
"modes": [
"mbim",
"rmnet"
"rmnet"
]
},
"t99w373": {

View File

@ -244,15 +244,12 @@ function base_info(){
cell_info()
{
at_command="AT^MONSC"
response=$(at $at_port $at_command | grep "\^MONSC:" | sed 's/\^MONSC: //')
local rat=$(echo "$response" | awk -F',' '{print $1}')
case $rat in
"NR")
"NR"|"NR-5GC")
network_mode="NR5G-SA Mode"
nr_mcc=$(echo "$response" | awk -F',' '{print $2}')
nr_mnc=$(echo "$response" | awk -F',' '{print $3}')