From a6203a585d736757c538ebe593672c83917b0225 Mon Sep 17 00:00:00 2001 From: Russel Yasol Date: Wed, 8 May 2024 17:35:32 +0800 Subject: [PATCH] cleaned unneeded logs on index and fixed cell lock on network settings --- simpleadmin/www/index.html | 4 +--- simpleadmin/www/network.html | 12 +++++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/simpleadmin/www/index.html b/simpleadmin/www/index.html index 9954e2d..63cb0b4 100644 --- a/simpleadmin/www/index.html +++ b/simpleadmin/www/index.html @@ -557,7 +557,7 @@ internetConnection: "Disconnected", lastUpdate: new Date().toLocaleString(), newRefreshRate: null, - refreshRate: 30, + refreshRate: 5, intervalId: null, fetchNetworkInfo() { this.atcmd = @@ -639,7 +639,6 @@ ) { networkMode2 = lines[27].split(",")[2].replace(/"/g, ""); networkMode2 = networkMode2.split(",")[0].trim(); - console.log(networkMode2); } if (networkMode2 !== "LTE") { @@ -660,7 +659,6 @@ } } - console.log(networkMode2, networkMode3); // Check if networkMode3 is not empty if (networkMode3 !== undefined) { this.network_mode = networkMode2 + ", " + networkMode3; diff --git a/simpleadmin/www/network.html b/simpleadmin/www/network.html index 1ba0b93..1eae354 100644 --- a/simpleadmin/www/network.html +++ b/simpleadmin/www/network.html @@ -793,11 +793,10 @@ } // Construct the AT command using the valid pairs - let atcmd = `+QNWLOCK="common/4g",${cellNum},${validPairs + let atcmd = `AT+QNWLOCK="common/4g",${cellNum},${validPairs .map((pair) => `${pair.earfcn},${pair.pci}`) .join(",")}`; - atcmd = "AT+CFUN=0;" + atcmd + ";+CFUN=1"; - + // Mock data this.showModal = true; @@ -830,8 +829,7 @@ } // Construct the AT command using the valid pairs - let atcmd = `+QNWLOCK="common/5g",${earfcn},${pci},${scs},${band}`; - atcmd = "AT+CFUN=0;" + atcmd + ";+CFUN=1"; + let atcmd = `AT+QNWLOCK="common/5g",${earfcn},${pci},${scs},${band}`; // Mock data this.showModal = true; @@ -850,7 +848,7 @@ }, cellLockDisableLTE() { // Send the atcmd command to reset the locked bands - const atcmd = 'AT+CFUN=0;+QNWLOCK="common/4g,0;+CFUN=1"'; + const atcmd = 'AT+QNWLOCK="common/4g,0"'; this.showModal = true; this.sendATcommand(atcmd); @@ -866,7 +864,7 @@ }, cellLockDisableNR() { // Send the atcmd command to reset the locked bands - const atcmd = 'AT+CFUN=0;+QNWLOCK="common/5g,0;+CFUN=1"'; + const atcmd = 'AT+QNWLOCK="common/5g,0"'; this.showModal = true;