From ecf9e25bc4bdf3e5268603ce1e999b8d51cebd36 Mon Sep 17 00:00:00 2001 From: sfwtw Date: Fri, 16 May 2025 23:29:40 +0800 Subject: [PATCH] luci-app-qmodem: add Huawei MH50000-31 support --- .../root/usr/share/qmodem/modem_support.json | 16 +++++++++++++++- .../root/usr/share/qmodem/vendor/huawei.sh | 5 +---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_support.json b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_support.json index 2ba16ba..87c66cb 100644 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_support.json +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_support.json @@ -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": { diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/huawei.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/huawei.sh index 6e12e01..78991d0 100755 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/huawei.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/huawei.sh @@ -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}')