luci-app-qmodem: Add support for TD Tech S10/EM350/EM360 support

This commit is contained in:
coolsnowwolf 2025-06-12 04:42:42 +08:00
parent 410bff1d54
commit fcfcda7321
3 changed files with 16 additions and 7 deletions

View File

@ -295,7 +295,7 @@ scan_usb_slot_interfaces()
;;
qmi_wwan*|\
cdc_mbim|\
cdc_ncm|\
*cdc_ncm|\
cdc_ether|\
rndis_host)
net_path="$slot_path/$interface/net"

View File

@ -1,6 +1,20 @@
{
"modem_support": {
"usb": {
"s10": {
"manufacturer_id": "12dc",
"manufacturer": "huawei",
"platform": "hisilicon",
"data_interface": "usb",
"define_connect": "1",
"wcdma_band": "1/2/4/5/6/8/19",
"lte_band": "1/2/3/4/5/7/8/12/13/14/18/19/20/25/26/28/66/71/38/39/40/41/66/71",
"nsa_band": "0",
"sa_band": "0",
"modes": [
"rndis"
]
},
"em05": {
"manufacturer_id": "2c7c",
"manufacturer": "quectel",

View File

@ -23,11 +23,6 @@ function set_imei(){
function get_mode(){
cfg=$(at $at_port "AT^SETMODE?")
local mode_num=`echo -e "$cfg" | sed -n '2p' | sed 's/\r//g'`
if [ -z "$mode_num" ]; then
echo "unknown"
return
fi
case "$mode_num" in
"0"|"2") mode="ecm" ;;
@ -35,7 +30,7 @@ function get_mode(){
"6") mode="rndis" ;;
"7") mode="mbim" ;;
"8") mode="ppp" ;;
*) mode="$mode_num" ;;
*) mode="rndis" ;;
esac
available_modes=$(uci -q get qmodem.$config_section.modes)