javascript: set_homepage();javascript: get_band();function refreshData() {$.ajax({type: "GET",async: true,url: '/api/device/information',success: function (data) {vars = [ 'WanIPAddress', 'wan_dns_address' ];for (i = 0; i < vars.length; i++) {window[vars[i]] = getData(vars[i], data);$('#' + vars[i]).html(window[vars[i]]);}}});$.ajax({type: "GET",async: true,url: '/api/device/signal',success: function (data) {vars = [ 'rssi', 'rsrp', 'rsrq', 'sinr', 'dlbandwidth', 'ulbandwidth', 'ulfrequency', 'dlfrequency', 'pci', 'band', 'cell_id', 'nei_cellid', 'txpower' ];for (i = 0; i < vars.length; i++) {window[vars[i]] = getData(vars[i], data);if (vars[i] == 'txpower') {var arrtx = window[vars[i]].split(" ");var out = "";arrtx.forEach(e => {out = out + e + "
";});$('#' + vars[i]).html(out);} else if (vars[i] == 'nei_cellid') {var arrtx = window[vars[i]].split("No");var out = "";arrtx.forEach(e => {if (e != '') {out = out + e + "
";}});$('#' + vars[i]).html(out);} else {if (vars[i] == 'rsrp') {set_prg_rsrp(window[vars[i]]);} else if (vars[i] == 'rsrq') {set_prg_rsrq(window[vars[i]]);} else if (vars[i] == 'sinr') {set_prg_sinr(window[vars[i]]);} else if (vars[i] == 'rssi') {set_prg_rssi(window[vars[i]]);}$('#' + vars[i]).html(window[vars[i]]);}}hex = Number(cell_id).toString(16);hex2 = hex.substring(0, hex.length - 2);enbid = parseInt(hex2, 16);$('#enbid').html(enbid);}});}function getData(tag, data) {try {return data.split("" + tag + ">")[0].split("<" + tag + ">")[1];} catch (err) {return err.message;}}function set_band_conf(data) {console.log(data);data_out = "";if (data == 1) {data_out = "B1";document.getElementById('band_1').checked = true;}if (data == 4) {data_out = "B3";document.getElementById('band_3').checked = true;}if (data == 5) {data_out = "B1+B3";document.getElementById('band_1').checked = true;document.getElementById('band_3').checked = true;}if (data == 80) {data_out = "B8";document.getElementById('band_8').checked = true;}if (data == 8000000000) {data_out = "B40";document.getElementById('band_40').checked = true;}if (data == 'A000000095') {data_out = "AUTO";document.getElementById('band_auto').checked = true;document.getElementById('band_1').checked = false;document.getElementById('band_3').checked = false;document.getElementById('band_8').checked = false;document.getElementById('band_40').checked = false;}return data_out;}function get_band() {$.ajax({type: "GET",async: true,url: '/api/net/net-mode',success: function (data) {lteband = getData('LTEBand', data);$('#allowed').html(set_band_conf(lteband));}});}function set_band() {$("#band").html("Wait!");var lteset = 0;var band_auto = document.getElementById('band_auto').checked;var band_1 = document.getElementById('band_1').checked;var band_3 = document.getElementById('band_3').checked;var band_8 = document.getElementById('band_8').checked;var band_40 = document.getElementById('band_40').checked;if (band_1 == true) {lteset = 1;} else if (band_3 == true) {lteset = 4;} else if (band_8 == true) {lteset = 80;} else if (band_40 == true) {lteset = 8000000000;}if (band_1 == true && band_3 == true) {lteset = 5;}if (band_auto == true) {lteset = A000000095;}$.ajax({type: "GET",async: true,url: '/html/home.html',success: function (data) {var datas = data.split('name="csrf_token" content="');var token = datas[datas.length - 1].split('"')[0];setTimeout(function () {$.ajax({type: "POST",async: true,url: '/api/net/net-mode',headers: {'__RequestVerificationToken': token},contentType: 'application/xml',data: '
Connection | Lock Band | |||
WAN IPv4 | : --- | Auto | ||
WAN DNS | : --- | Band 1 | ||
BAND | : --- | Band 3 | ||
BAND Setting | : --- | Band 8 | ||
Band 40 | ||||
RSRP | : --- | - | ||
RSSI | : --- | - | ||
RSSQ | : --- | - | ||
SINR | : --- | - | ||
CELL ID | : --- | |||
PCI | : --- | |||
PCI Nearby | --- | |||
Wireless transmit | --- | |||