From 695f1a3b6d3684c8696ab17705f05a05b23be4ae Mon Sep 17 00:00:00 2001 From: taotao Date: Tue, 15 Oct 2024 10:43:56 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20simpleadmin/www/index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simpleadmin/www/index.html | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/simpleadmin/www/index.html b/simpleadmin/www/index.html index fc688d7..9e7839b 100644 --- a/simpleadmin/www/index.html +++ b/simpleadmin/www/index.html @@ -203,6 +203,14 @@ 接入点APN + + 签约速率Mbps + + + + 签约QCI + + 网络模式 @@ -626,8 +634,8 @@ mccmnc: "00000", apn: "未知", networkMode: "已断开", - bands: "未知频段", - bandwidth: "未知带宽", + bands: "未知", + bandwidth: "未知", earfcns: "000", pccPCI: "0", sccPCI: "-", @@ -652,7 +660,7 @@ sinrNRPercentage: "0%", signalPercentage: "0", signalAssessment: "未知", - uptime: "未知", + uptime: "Unknown", lastUpdate: new Date().toLocaleString(), newRefreshRate: null, refreshRate: 3, @@ -662,10 +670,13 @@ nonNrUpload: "0", downloadStat: "0", uploadStat: "0", + mccmncNumber: "未知", + ambr: "未知", + qci: "未知", fetchAllInfo() { this.atcmd = - 'AT+QTEMP;+QUIMSLOT?;+QSPN;+CGCONTRDP=1;+QMAP="WWANIP";+QENG="servingcell";+QCAINFO;+QSIMSTAT?;+CSQ;+QGDNRCNT?;+QGDCNT?'; + 'AT+QTEMP;+QUIMSLOT?;+QSPN;+CGCONTRDP=1;+QMAP="WWANIP";+QENG="servingcell";+QCAINFO;+QSIMSTAT?;+CSQ;+QGDNRCNT?;+QGDCNT?;+QNWCFG="nr5g_ambr"'; fetch( "/cgi-bin/get_atcommand?" + @@ -779,6 +790,12 @@ .split(",")[3] .replace(/"/g, ""); + const network_ambr = lines + .find((line) => line.includes('+QNWCFG: "nr5g_ambr"')) + .split(","); + this.ambr = network_ambr[3].replace(/"/g, "") + " / " + network_ambr[5].replace(/"/g, "") ; + this.qci = network_ambr[2].replace(/"/g, ""); + if (network_mode == "NR5G-SA") { if (duplex_mode == "TDD") { this.networkMode = "5G SA TDD";