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" "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",

View File

@ -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}')