Zte-888-PRO-v4.0 Copy Copiato!
javascript:ftb();function getStatus(){$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"network_Z_PCI,lte_lockcell_pci,lte_lockcell_earfcn,lte_band_lock,wan_ipaddr,wan_apn,pm_sensor_mdm,pm_modem_5g,network_Z5g_PCI,network_Z5g_dlEarfcn,network_Z5g_CELLINFO_band,Z5g_SINR,Z5g_rsrp,network_ZCELLINFO_band,network_lte_ca_pcell_arfcn,wan_lte_ca,network_lte_ca_scell_info,network_cell_id,dns_mode,prefer_dns_manual,standby_dns_manual,network_type,rmcc,rmnc,,lte_rssi,network_lte_rsrp,network_sinr,wan_lte_ca,lte_ca_pcell_band,lte_ca_pcell_bandwidth,lte_ca_scell_band,lte_ca_scell_bandwidth,lte_ca_pcell_arfcn,lte_ca_scell_arfcn,wan_ipaddr,static_wan_ipaddr,opms_wan_mode,opms_wan_auto_mode,ppp_status,loginfo,network_Z_rsrq,network_lte_ca_pcell_band,network_lte_ca_pcell_bandwidth",multi_data:"1"},dataType:"json",success:function(sig){for(boxcar=gw/(gt+1),signal=sig,vars=["network_Z_PCI","lte_lockcell_pci","lte_lockcell_earfcn","lte_band_lock","wan_ipaddr","wan_apn","pm_sensor_mdm","pm_modem_5g","network_Z5g_PCI","network_Z5g_CELLINFO_band","network_Z5g_dlEarfcn","Z5g_SINR","Z5g_rsrp","network_lte_ca_pcell_arfcn","network_ZCELLINFO_band","network_lte_ca_scell_info","network_cell_id","dns_mode","prefer_dns_manual","standby_dns_manual","rmcc","rmnc","network_type","wan_lte_ca","lte_rssi","network_lte_rsrp","network_sinr","network_Z_rsrq","network_lte_ca_pcell_bandwidth","network_lte_ca_pcell_band","network_lte_ca_pcell_bandwidth"],i=0;i<vars.length;i++)window[vars[i]]=sig[vars[i]];if($("#nr5rsrpb").parent().toggle(""!=sig.network_Z5g_CELLINFO_band),$("#Z5g_SINR").parent().toggle(""!=sig.network_Z5g_CELLINFO_band),barGraph("rsrp",network_lte_rsrp,-130,-60),barGraph("rsrq",network_Z_rsrq,-16,-3),barGraph("sinr",network_sinr,0,24),barGraph("nr5rsrp",Z5g_rsrp,-130,-60),barGraph("nr5sinr",Z5g_SINR,0,24),enbid=Math.trunc(network_cell_id/256),$("#earfcn_lock").html(lte_lockcell_pci+"/"+lte_lockcell_earfcn),plmn=rmcc.toString()+rmnc.toString(),$("#enbid").html(enbid),"22201"==plmn&&(plmn="2221"),"22299"==plmn&&(plmn="22288"),"22250"==plmn&&6==enbid.length&&(plmn="22288"),link_lte="https://lteitaly.it/internal/map.php#bts="+plmn+"."+enbid,$("#lteitaly").attr("href",link_lte),"ca_activated"==wan_lte_ca?$("#ca").parent().parent().css("border-color","red"):$("#ca").parent().parent().css("border-color","#bbb"),""!=network_lte_ca_scell_info){ca_v=network_lte_ca_scell_info.slice(0,-1).split(";"),ca_txt="";for(var i=0;i<ca_v.length;i++)d=ca_v[i].split(","),b=d[2],w=d[4],ca_txt+='<span style="color:#b00;">B'+b+"</span>(@"+w+"Mhz)+";network_lte_ca_pcell_band="B"+network_lte_ca_pcell_band}else ca_txt="",network_lte_ca_pcell_band=network_ZCELLINFO_band;for(sig.network_Z5g_CELLINFO_band&&(ca_txt+='<span style="padding:5px;border-radius:3px;font-size:1.2em;background-color:#eef;color:red;font-weight:bold;">'+sig.network_Z5g_CELLINFO_band+"</span>"),ca_txt=ca_txt.slice(0,-1),network_lte_ca_scell_info=ca_txt,"manual"==dns_mode&&(dns_mode=prefer_dns_manual+" ,"+standby_dns_manual),dns_mode=dns_mode.replace(/,+$/,""),dns_mode='<span style="color:#b00;">'+dns_mode+"</span>",network_lte_ca_pcell_bandwidth&&(network_lte_ca_pcell_bandwidth="(@"+network_lte_ca_pcell_bandwidth+"Mhz)"),i=0;i<vars.length;i++)$("#"+vars[i]).html(window[vars[i]])}})}function err(r,s,e){alert("Communication Error"),console.log(r),console.log(s),console.log(e)}function barGraph(p,val,min,max){for(val>max&&(val=max),val<min&&(val=min),ap="a"+p,window[ap].unshift(val),window[ap].length>boxcar&&window[ap].pop(),html='<svg version="1.1" viewBox="0 0 '+gw+" "+gh+'" width="'+gw+'" height="'+gh+'" preserveAspectRatio="xMaxYMax slice" style="border:1px solid #ccc;padding:1px;margin-top:-6px;width: '+gw+'px;">',x=0;x<window[ap].length;x++)pax=(gt+1)*(x+1),pay=gh-1,pby=gh-(window[ap][x]-min)/(max-min)*gh,pc=(window[ap][x]-min)/(max-min)*100,pc<50?color="yellow":pc<85?color="green":color="orange",html+='<line x1="'+pax+'" y1="'+pay+'" x2="'+pax+'" y2="'+pby+'" stroke="'+color+'" stroke-width="'+gt+'"></line>';html+="</svg>",$("#b"+p).html(html)}function lockcell(p,e){$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"wa_inner_version,cr_version,RD",multi_data:"1"},dataType:"json",success:function(data){ad=cookWithRequest(cookWithRequest(data.wa_inner_version+data.cr_version)+data.RD),$.ajax({type:"POST",url:"/goform/goform_set_cmd_process",data:{isTest:"false",goformId:"LTE_LOCK_CELL_SET",lte_lockcell_pci:p,lte_lockcell_earfcn:e,AD:ad},success:function(a){console.log(a),j=JSON.parse(a),"success"==j.result?alert("Now you have to Reboot!"):alert("Error. Modem didn't like it!")},error:err})}})}function cslock(){c=network_Z_PCI+","+network_lte_ca_pcell_arfcn;var pair=prompt("Please input PCI,EARFCN, separated by ',' char (example 116,3350). Leave default for lock on current main band.",c);if(null!=pair&&""!==pair){var p=pair.split(","),a;"YES"==prompt("If you cell lock, you have to RESET your router to take the lock away! If you are sure, type YES (!UPPERCASE)")&&lockcell(p[0],p[1])}}function ltebandselection(){var band=prompt("Please input LTE bands number, separated by + char (example 1+3+20).If you want to use every supported band, write 'AUTO'.","AUTO");if(band&&(band=band.toLowerCase()),null!=band&&""!==band){var bs=band.split("+"),ltesum=0;if(all_bands="0xA3E2AB0908DF","AUTO"===band.toUpperCase())ltesum=all_bands;else{for(var i=0;i<bs.length;i++)ltesum+=Math.pow(2,parseInt(bs[i])-1);ltesum="0x"+ltesum.toString(16)}$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"wa_inner_version,cr_version,RD",multi_data:"1"},dataType:"json",success:function(data){ad=cookWithRequest(cookWithRequest(data.wa_inner_version+data.cr_version)+data.RD),$.ajax({type:"POST",url:"/goform/goform_set_cmd_process",data:{isTest:"false",goformId:"SET_NETWORK_BAND_LOCK",lte_band_lock:ltesum,AD:ad},success:function(res){console.log(res)},error:err})}})}}function nrbandselection(){var band=prompt("Please input 5G bands number, separated by + char (example 3+78).If you want to use every supported band, write 'AUTO'.","AUTO");if(band&&(band=band.toLowerCase()),null!=band&&""!==band){var bs=band.split("+").join(",");"AUTO"===band.toUpperCase()&&(bs="1,2,3,5,7,8,20,28,38,41,50,51,66,70,71,74,75,76,77,78,79,80,81,82,83,84"),$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"wa_inner_version,cr_version,RD",multi_data:"1"},dataType:"json",success:function(data){ad=cookWithRequest(cookWithRequest(data.wa_inner_version+data.cr_version)+data.RD),$.ajax({type:"POST",url:"/goform/goform_set_cmd_process",data:{isTest:"false",goformId:"WAN_PERFORM_NR5G_BAND_LOCK",Z5g_lockband_mask:bs,Z5g_lockband_type:1,AD:ad},success:function(res){console.log(res)},error:err})}})}}function reboot(){$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"wa_inner_version,cr_version,RD",multi_data:"1"},dataType:"json",success:function(data){ad=cookWithRequest(cookWithRequest(data.wa_inner_version+data.cr_version)+data.RD),$.ajax({type:"POST",url:"/goform/goform_set_cmd_process",data:{isTest:"false",goformId:"REBOOT_DEVICE",AD:ad},success:function(res){console.log(res)},error:err})}})}function i1(){$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"hardware_version,web_version,wa_inner_version,cr_version,RD",multi_data:"1"},dataType:"json",success:function(data){v="HW version:"+data.hardware_version+"\nWEB version:"+data.web_version+"\nWA INNER version:"+data.wa_inner_version,alert(v)}})}function i2(){if(ca_txt=network_ZCELLINFO_band+" - PCI,EARFCN:"+network_Z_PCI+","+network_lte_ca_pcell_arfcn,""!=signal.network_lte_ca_scell_info){ca_v=signal.network_lte_ca_scell_info.slice(0,-1).split(";");for(var i=0;i<ca_v.length;i++)d=ca_v[i].split(","),b=d[2],e=d[4],p=d[1],ca_txt+="\nB"+b+" - PCI,EARFCN:"+p+","+e}ca_txt+="\n\n"+network_Z5g_CELLINFO_band+" - PCI:"+network_Z5g_PCI+" - EARFCN:"+network_Z5g_dlEarfcn,alert(ca_txt)}function setdns(){var dns=prompt("Please input 2 dns servers, separated by \",\" (example 1.1.1.1,1.0.0.1).If you want to use PROVIDER settings, write 'AUTO'.","AUTO");if(dns&&(dns=dns.toLowerCase()),null!=dns&&""!==dns){var dnss=dns.split(",");dns_mode="auto"===dns?"auto":"manual",$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"wa_inner_version,cr_version,RD",multi_data:"1"},dataType:"json",success:function(data){ad=cookWithRequest(cookWithRequest(data.wa_inner_version+data.cr_version)+data.RD),$.ajax({type:"POST",url:"/goform/goform_set_cmd_process",data:{isTest:"false",goformId:"APN_PROC_EX",wan_apn:signal.wan_apn,profile_name:"miononno",apn_action:"save",apn_mode:"manual",pdp_type:"IP",dns_mode:"manual",prefer_dns_manual:dnss[0],standby_dns_manual:dnss[1],index:1,AD:ad},success:function(d){$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"wa_inner_version,cr_version,RD",multi_data:"1"},dataType:"json",success:function(data){ad=cookWithRequest(cookWithRequest(data.wa_inner_version+data.cr_version)+data.RD),$.ajax({type:"POST",url:"/goform/goform_set_cmd_process",data:{isTest:"false",goformId:"APN_PROC_EX",apn_mode:"manual",apn_action:"set_default",set_default_flag:1,pdp_type:"IP",pdp_type_roaming:"IP",index:1,AD:ad},error:err})},error:err})},error:err})}})}}function ftb(){$(".color_background_blue").css("background-color","#456"),$(".headcontainer").hide(),$("body").prepend('<style> .clear {clear: both; } .action {background-color: #448; padding: 10px; border-radius: 10px; color: white; font-weight: bolder; margin-right: 5px; margin-left: 5px; } .action:hover {color: white; } li span {margin-left: 5px; } #network_lte_ca_pcell_bandwidth {margin-left: 0; } #network_lte_rsrp, #network_Z_rsrq, #lte_rssi, #enbid, #network_sinr, #Z5g_SINR, #network_cell_id, #network_lte_ca_pcell_band, #pm_sensor_mdm, #pm_modem_5g, #earfcn_lock, #wan_ipaddr {color: #b00; font-weight: strong; } .f {float: left; border: 1px solid #bbb; border-radius: 5px; padding: 10px; line-height: 2em; margin: 5px; } .f ul {margin: 0; padding: 0; } .f ul li {display: inline; margin-right: 5px; margin-left: 5px; } #network_type {margin-right: 0 !important; } #enbid {font-weight: bold; text-decoration: underline; } .p {border-bottom: 1px solid #ccc; width: auto; height: 20px; } .v {height: 100%25; border-right: 1px solid #ccc; } .sb {padding: 10px; border-radius: 10px; display: inline-block; margin: 10px 0 10px 10px; } .v {padding-left: 20px; } </style> <div style="display:block;overflow:auto"> <div class="f"> RSRP:<span id="network_lte_rsrp"></span>dBm<div id="brsrp"></div> RSRQ:<span id="network_Z_rsrq"></span>dB<div id="brsrq"></div> SINR:<span id="network_sinr"></span>dB<div id="bsinr"></div> </div> <div class="f nr"> NR RSRP:<span id="Z5g_rsrp"></span>dBm<div id="bnr5rsrp"></div>NR SINR:<span id="Z5g_SINR"></span>dB<div id="bnr5sinr"></div> </div> </div> <div style="display:block;overflow: auto;"> <div class="f"> <ul> <li id="network_type">Che la banda sia con te! Miononno ♥</li> </ul> </div> <div class="f"> <ul> <li>ENB ID:<a id="lteitaly" target="lteitaly" href="#"><span id="enbid">#</span></a></li> <li>CELL ID:<span id="network_cell_id">#</span></li> </ul> </div> <div class="f"> <ul> <li>MAIN:<span id="network_lte_ca_pcell_band"></span><span id="network_lte_ca_pcell_bandwidth"></span></li> <li id="ca">CA:<span id="network_lte_ca_scell_info"></span></li> </ul> </div> <div class="f clear"> <ul> <li><a href="#network_info">Network Info</a></li> <li><a href="#debug_page">Debug</a></li> <li><a href="#voip_setting">V1</a></li> <li><a href="#voip_settings">V2</a></li> <li><a href="#supplement_service">V3</a></li> <li><a href="#voip_advanced_settings">V4</a></li> <li><a href="#ant_switch">A1</a></li> <li><a href="#rf_mmw">A2</a></li> <li><a href="#temp_status">T1</a></li> <li><a href="#thermal_switch">T2</a></li> <li><a href="#bsp_tc_settings">T3</a></li> <li><a href="#wifi_main_chip1">W1</a></li> <li><a href="#wifi_main_chip2">W2</a></li> <li><a href="#wifi_mac_filter">W3</a></li> </ul> </div> <div class="f"> <ul> <li>WAN IP:<span id="wan_ipaddr"></span></li> </ul> </div> <div class="f"> <ul> <li>Temp</li> <li>4G:<span id="pm_sensor_mdm"></span>°</li> <li>5G:<span id="pm_modem_5g"></span>°</li> </ul> </div> <div class="f clear"> <ul> <li><a class="action" onclick="ltebandselection()">SET 4G</a></li> <li><a class="action" onclick="nrbandselection()">SET 5G</a></li> </ul> </div> <div class="f"> <ul> <li><a class="action" onclick="setdns()">DNS MODE</a><span id="dns_mode"></span></li> </ul> </div> <div class="f"> <ul> <li> <a class="action" onclick="i2()">INFO</a> </li> <li> <a class="action" onclick="cslock()">CELL LOCK</a> <span id="earfcn_lock"></span> </li> </ul> </div> <div class="f"> <ul> <li> <a class="action" onclick="reboot()">! REBOOT !</a> </li> </ul> </div> <div class="f"> <ul> <li> <a class="action" onclick="i1()">VER</a> </li> </ul> </div> </div>')}gw=500,gh=30,gt=3,signal="",version="888-4.0",[arsrp,arsrq,asinr,anr5rsrp,anr5sinr]=[[],[],[],[],[],[]],$("#txtUserName").attr("maxlength","100"),console.log("Code by Miononno - v"+version),console.log("type: signal"),window.setInterval(getStatus,1500),$("#change").prop("disabled",!1);