mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2025-07-31 20:31:05 +00:00
first commit
This commit is contained in:
commit
fa343db334
154 changed files with 18186 additions and 0 deletions
4
WEBFiles/protect/chiprams.xml
Normal file
4
WEBFiles/protect/chiprams.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<response>
|
||||
<ramaddr>~start~</ramaddr>
|
||||
<ramdata>~xml_ram~</ramdata>
|
||||
</response>
|
70
WEBFiles/protect/cookie.js
Normal file
70
WEBFiles/protect/cookie.js
Normal file
|
@ -0,0 +1,70 @@
|
|||
function getCookie(name) {
|
||||
var prefix = name + "=";
|
||||
var cookieStartIndex = document.cookie.indexOf(prefix);
|
||||
if (cookieStartIndex == -1)
|
||||
return null;
|
||||
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex
|
||||
+ prefix.length);
|
||||
if (cookieEndIndex == -1)
|
||||
cookieEndIndex = document.cookie.length;
|
||||
return unescape(document.cookie.substring(cookieStartIndex + prefix.length,
|
||||
cookieEndIndex));
|
||||
}
|
||||
function setCookie(name, value) {
|
||||
document.cookie = name + "=" + escape(value) + "; path=/";
|
||||
}
|
||||
function setCookieElem(name, defv) {
|
||||
var val = getCookie(name);
|
||||
if (val == null || val.charAt(0) != '0' || val.charAt(1) != 'x') {
|
||||
val = defv;
|
||||
setCookie(name, val);
|
||||
}
|
||||
document.getElementById(name).value = val;
|
||||
}
|
||||
function NewCookie(add) {
|
||||
var val = parseInt(document.getElementById('start').value, 16) & 0xFFFFFFF0;
|
||||
if (val == NaN)
|
||||
setCookieElem('start', '0x40000000');
|
||||
else {
|
||||
val += add;
|
||||
setCookie('start', '0x' + val.toString(16));
|
||||
var nval = val + 256;
|
||||
setCookie('stop', '0x' + nval.toString(16));
|
||||
document.getElementById('start').value = '0x' + val.toString(16);
|
||||
document.getElementById('pmem').contentWindow.location.reload();
|
||||
}
|
||||
}
|
||||
setCookieElem('start', '0x40000000');
|
||||
setCookieElem('set_ramaddr', '0x3FFF0000');
|
||||
setCookieElem('set_ramdata', '0x12345678');
|
||||
function UpTxt(xD, n, v) {
|
||||
var x = getXMLValue(xD, n, v);
|
||||
if (x == '?')
|
||||
document.getElementById("id_" + n).style.color = "#833";
|
||||
else
|
||||
document.getElementById("id_" + n).style.color = "#333";
|
||||
document.getElementById("id_" + n).innerHTML = x + v;
|
||||
}
|
||||
function UpdateValuesRam(xD) {
|
||||
if (xD) {
|
||||
UpTxt(xD, "ramaddr", "");
|
||||
UpTxt(xD, "ramdata", "");
|
||||
}
|
||||
}
|
||||
function SendRamVal(x) {
|
||||
var addr = parseInt(document.getElementById('set_ramaddr').value, 16);
|
||||
var val = parseInt(document.getElementById('set_ramdata').value, 16);
|
||||
if (addr != NaN && val != NaN) {
|
||||
document.getElementById('set_ramaddr').value = '0x' + addr.toString(16);
|
||||
setCookie('set_ramaddr','0x' + addr.toString(16));
|
||||
document.getElementById('set_ramdata').value = '0x' + val.toString(16);
|
||||
setCookie('set_ramdata','0x' + val.toString(16));
|
||||
if (x != 0)
|
||||
newAJAXCommand('chiprams.xml?start=0x' + addr.toString(16),
|
||||
UpdateValuesRam, 0);
|
||||
else
|
||||
newAJAXCommand('chiprams.xml?sys_ram0x' + addr.toString(16) + '=0x'
|
||||
+ val.toString(16) + '&start=0x' + addr.toString(16),
|
||||
UpdateValuesRam, 0);
|
||||
}
|
||||
}
|
25
WEBFiles/protect/debug.htm
Normal file
25
WEBFiles/protect/debug.htm
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>RTL871X Debug and Tests</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head><body>
|
||||
~inc:menu.inc~
|
||||
<div class="content">
|
||||
<h2 class="title">Debug and Tests</h2>
|
||||
<p class="center">
|
||||
Chart <a href="/heap.htm">'heap'</a>, <a href="/tst.htm">ST-AP RSSI</a><br><br>
|
||||
<a href='/timeout.htm?sys_restart=12345'>System Restart</a><br><br>
|
||||
Counter erase the last flash sector config: ~sys_rdec0x980FE000~<br><br>
|
||||
</p>
|
||||
</div>
|
||||
<div class="content">
|
||||
<h2 class="title">System constants?</h2>
|
||||
<table class="form">
|
||||
</tr></form>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
~inc:footer.inc~
|
||||
</body>
|
||||
</html>
|
30
WEBFiles/protect/dsleep.htm
Normal file
30
WEBFiles/protect/dsleep.htm
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>RTL871X</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<script src="/site.js"></script>
|
||||
</head>
|
||||
<body onload="allowAJAX=true;" onunload="allowAJAX=false;">
|
||||
~inc:menu.inc~
|
||||
<div class="content">
|
||||
<h2 class="title">Test DeepSleep</h2>
|
||||
<table class="form">
|
||||
</tr>
|
||||
<td class="label">DeepSleep Time(ms):</td>
|
||||
<td><input type="text" id="ds_time" size="12" maxlength="10" value="3000"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">DeepSleep Mode:</td>
|
||||
<td class="left"><input type="button" onclick="DeepSleep()" value="Go" class="button"></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
<p class="center">
|
||||
Reset event = ~sys_res_event~ (1-power, 2-reset, 3-software, 4-wdt)<br>
|
||||
</p>
|
||||
</div>
|
||||
~inc:footer.inc~
|
||||
</body>
|
||||
</html>
|
||||
|
1
WEBFiles/protect/fullflash.bin
Normal file
1
WEBFiles/protect/fullflash.bin
Normal file
|
@ -0,0 +1 @@
|
|||
~bin_flash_all~
|
41
WEBFiles/protect/hexdmpb.htm
Normal file
41
WEBFiles/protect/hexdmpb.htm
Normal file
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=windows-1251">
|
||||
<title>RTL871X HexDump Byte</title>
|
||||
<link rel="stylesheet" href="../style.css">
|
||||
<script src="/site.js"></script>
|
||||
</head><body onload="allowAJAX=true;" onlnload="allowAJAX=false;">
|
||||
~inc:menu.inc~
|
||||
<div class="content">
|
||||
<h2 class="title">HexDump Bytes</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td>RAM Start addr</td>
|
||||
<td><input type="text" id="start" size="12" maxlength="10" value="0x1FFF0000"></td>
|
||||
<td><input type="button" onClick="NewCookie(-256)" value="-0x100" class="button"></td>
|
||||
<td><input type="button" onClick="NewCookie(0)" value="Show" class="button"></td>
|
||||
<td><input type="button" onClick="NewCookie(+256)" value="+0x100" class="button"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<iframe id='pmem' name='pmem' src="/protect/hexdmpb.txt" border="0" width="620" height="270"></iframe>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Write addr, value:</td>
|
||||
<td><input type="text" id="set_ramaddr" size="12" maxlength="10" value="0x1FFF0000"></td>
|
||||
<td><input type="text" id="set_ramdata" size="12" maxlength="10" value="0x12345678"></td>
|
||||
<td><input type="button" onClick="SendRamVal(0)" value="Write" class="button"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Read addr, value:</td>
|
||||
<td id="id_ramaddr">?</td>
|
||||
<td id="id_ramdata">?</td>
|
||||
<td><input type="button" onClick="SendRamVal(1)" value="Read" class="button"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="footer">
|
||||
Protected area: 0x9A000000..0xFFFFFFFF !<br>
|
||||
<a href='/protect/hexdmpb.txt?start=0x98000000&stop=0x98100000'>HEX Dump Flash 1024k</a>
|
||||
</div>
|
||||
<script src="cookie.js"></script>
|
||||
</body></html>
|
1
WEBFiles/protect/hexdmpb.txt
Normal file
1
WEBFiles/protect/hexdmpb.txt
Normal file
|
@ -0,0 +1 @@
|
|||
~hexdmpb~
|
41
WEBFiles/protect/hexdmpd.htm
Normal file
41
WEBFiles/protect/hexdmpd.htm
Normal file
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=windows-1251">
|
||||
<title>RTL871X HexDump DWord</title>
|
||||
<link rel="stylesheet" href="../style.css">
|
||||
<script src="/site.js"></script>
|
||||
</head><body onload="allowAJAX=true;" onlnload="allowAJAX=false;">
|
||||
~inc:menu.inc~
|
||||
<div class="content">
|
||||
<h2 class="title">HexDump DWord</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td>RAM Start addr   </td>
|
||||
<td><input type="text" id="start" size="12" maxlength="10" value="0x1FFF0000"></td>
|
||||
<td><input type=button onClick="NewCookie(-256)" value="-0x100" class="button"></td>
|
||||
<td><input type=button onClick="NewCookie(0)" value="Show" class="button"></td>
|
||||
<td><input type=button onClick="NewCookie(+256)" value="+0x100" class="button"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<iframe id='pmem' name='pmem' src="/protect/hexdmpd.txt" border="0" width="620" height="270"></iframe>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Write addr, value:</td>
|
||||
<td><input type="text" id="set_ramaddr" size="12" maxlength="10" value="0x1FFF0000"></td>
|
||||
<td><input type="text" id="set_ramdata" size="12" maxlength="10" value="0x12345678"></td>
|
||||
<td><input type="button" onClick="SendRamVal(0)" value="Write" class="button"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Read addr, value:</td>
|
||||
<td id="id_ramaddr">?</td>
|
||||
<td id="id_ramdata">?</td>
|
||||
<td><input type="button" onClick="SendRamVal(1)" value="Read" class="button"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="footer">
|
||||
Protected area: 0x9A000000..0xFFFFFFFF !<br>
|
||||
<a href='/protect/hexdmpd.txt?start=0x98000000&stop=0x98100000'>HEX Dump Flash 1024k</a>
|
||||
</div>
|
||||
<script src="cookie.js"></script>
|
||||
</body></html>
|
1
WEBFiles/protect/hexdmpd.txt
Normal file
1
WEBFiles/protect/hexdmpd.txt
Normal file
|
@ -0,0 +1 @@
|
|||
~hexdmpd~
|
1
WEBFiles/protect/ram.bin
Normal file
1
WEBFiles/protect/ram.bin
Normal file
|
@ -0,0 +1 @@
|
|||
~bin_ram~
|
98
WEBFiles/protect/scan.htm
Normal file
98
WEBFiles/protect/scan.htm
Normal file
|
@ -0,0 +1,98 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>WiFi Scan</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<body>
|
||||
~inc:menu.inc~
|
||||
<div class="content">
|
||||
<h2 class="title">
|
||||
<div id="scanResult">Stations scanning...</div>
|
||||
</h2>
|
||||
<table id="aps" class="scan">
|
||||
<tr><th>SSID</th><th>BSSID</th><th>Auth</th><th>Ch</th><th>RSSI</th><th>Hd</th></tr>
|
||||
</table>
|
||||
<form id="stform" style="display: none" method='post' action='/timeout.htm'>
|
||||
<table class="form">
|
||||
<tr>
|
||||
<td class="label">Select or input SSID:<input type='hidden' name='wifi_rdcfg' value='0x1C00'></td>
|
||||
<td><input name='wifi_st_ssid' maxlength='31' value='~wifi_st_ssid~' id='inputssid'></td>
|
||||
<td class="label">Type password:</td>
|
||||
<td><input name='wifi_st_psw' maxlength='63' value='~wifi_st_psw~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">BSSID:</td>
|
||||
<td><input name='wifi_st_bssid' maxlength='31' value='~wifi_st_bssid~' id='inputbsid'></td>
|
||||
<td class="label">AutoConnect:</td>
|
||||
<td><input type='hidden' name='wifi_st_aucn' value='0'>
|
||||
<input type='checkbox' name='wifi_st_aucn' value='1'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="center">
|
||||
<input type='submit' value='Set Config' class="button">
|
||||
<input type='hidden' name='wifi_newcfg' value='0x21C00'>
|
||||
</p>
|
||||
</form>
|
||||
<div id="connection"></div>
|
||||
</div>
|
||||
~inc:footer.inc~
|
||||
</body>
|
||||
<script src="/site.js"></script>
|
||||
<script src="/scripts.js"></script>
|
||||
<script type="text/javascript">
|
||||
var AUTH = {
|
||||
0: "OPEN",
|
||||
1: "WEP",
|
||||
2: "WPA-PSK",
|
||||
3: "WPA2-PSK",
|
||||
4: "WPA-WPA2-PSK",
|
||||
5: "MAX"};
|
||||
var cfg = { wifi_st_aucn: "~wifi_st_aucn~" };
|
||||
setFormValues(document.forms[0], cfg);
|
||||
var startTime = new Date();
|
||||
newAJAXCommand('/web.cgi?wifi_scan=1');
|
||||
setTimeout("newAJAXCommand('scan.xml', updateScan)", 2500);
|
||||
function updateScan(xmlData) {
|
||||
if(!xmlData) return;
|
||||
var total = getXMLValue(xmlData, 'total');
|
||||
if (total==0) {
|
||||
if((new Date()-startTime)>10000) {
|
||||
startTime = new Date();
|
||||
$('scanResult').innerHTML="Scan failed. Try again.";
|
||||
newAJAXCommand('/web.cgi?wifi_scan=1');
|
||||
}
|
||||
else newAJAXCommand('scan.xml', updateScan);
|
||||
return;
|
||||
}
|
||||
$('scanResult').innerHTML="Scan completed. " + total + " station(s) found.";
|
||||
for(i = 0; i < total; i++){
|
||||
var ap=xmlData.getElementsByTagName('ap')[i];
|
||||
var ch=getXMLValue(ap, 'ch');
|
||||
var au=getXMLValue(ap, 'au');
|
||||
var bsid=getXMLValue(ap, 'bs');
|
||||
var ssid=getXMLValue(ap, 'ss');
|
||||
var rs=getXMLValue(ap, 'rs');
|
||||
var hd=getXMLValue(ap, 'hd');
|
||||
r=document.all.aps.insertRow();
|
||||
c=r.insertCell(0);c.innerHTML="<a href=# >"+ssid+"</a>";c.ssid=ssid;c.bsid=bsid;c.onclick=onApClick;
|
||||
c=r.insertCell(1);c.innerHTML="<a href=# >"+bsid+"</a>";c.ssid=ssid;c.bsid=bsid;c.onclick=onApClick;c.ondblclick=onInfo;c.title='DoubleClick = MF info';
|
||||
(r.insertCell(2)).innerHTML=AUTH[au];
|
||||
(r.insertCell(3)).innerText=ch;
|
||||
(r.insertCell(4)).innerText=rs;
|
||||
(r.insertCell(5)).innerText=hd;
|
||||
}
|
||||
$('stform').style.display='';
|
||||
}
|
||||
function onApClick() {
|
||||
$('inputssid').value=this.ssid;
|
||||
$('inputbsid').value=this.bsid;
|
||||
}
|
||||
function onInfo() {
|
||||
s = this.bsid;
|
||||
s=s.substring(0,8);s=s.replace(':','');
|
||||
document.location.href = "http://standards.ieee.org/cgi-bin/ouisearch?"+s.replace(':','');
|
||||
}
|
||||
</script>
|
||||
</html>
|
1
WEBFiles/protect/scan.xml
Normal file
1
WEBFiles/protect/scan.xml
Normal file
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="windows-1251"?><response>~wifi_scan~</response>
|
89
WEBFiles/protect/setup.htm
Normal file
89
WEBFiles/protect/setup.htm
Normal file
|
@ -0,0 +1,89 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>RTL871X Setup</title>
|
||||
<link rel="stylesheet" href="../style.css">
|
||||
<script src="/scripts.js"></script>
|
||||
<script src="/site.js"></script>
|
||||
</head><body>
|
||||
~inc:menu.inc~
|
||||
<div class="content">
|
||||
<h2 class="title">System Setup</h2>
|
||||
<form method="post" action="">
|
||||
<table class="form">
|
||||
<tr>
|
||||
<td class="label">WEB (HTTP) port:</td>
|
||||
<td><input title='4..65535, 0 - close' name='cfg_web_port' maxlength='5' value='~cfg_web_port~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">WEB recved timeout:</td>
|
||||
<td><input title='1...65535 sec, 0 - not limited' name='cfg_web_twrec' maxlength='5' value='~cfg_web_twrec~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">WEB close timeout:</td>
|
||||
<td><input title='1...65535 sec, 0 - not limited' name='cfg_web_twcls' maxlength='5' value='~cfg_web_twcls~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">LogUART Printf() enable:</td>
|
||||
<td>
|
||||
<input type="hidden" name='cfg_debug' value='0'>
|
||||
<input title='rtl_printf enable. If Off - High speed upload (>1Mbytes/s).' type='checkbox' name='cfg_debug' value='1'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Web pcb close enable:</td>
|
||||
<td>
|
||||
<input type="hidden" name='cfg_web_twd' value='0'>
|
||||
<input title='(Proxy) Close web connection and deletes TIME_WAIT pcb' type='checkbox' name='cfg_web_twd' value='1'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Checking pin WiFi cfg reset:</td>
|
||||
<td>
|
||||
<input type="hidden" name='cfg_pinclr' value='0'>
|
||||
<input title='Checking reset configuration level on GPIO3 at startup (25 ms)' type='checkbox' name='cfg_pinclr' value='1'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">NetBIOS enable:</td>
|
||||
<td>
|
||||
<input type="hidden" name='cfg_netbios' value='0'>
|
||||
<input title='NetBIOS AP name = "a~wifi_ap_ssid~", Station = "s~wifi_ap_ssid~"' type='checkbox' name='cfg_netbios' value='1'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">SNTP enable:</td>
|
||||
<td>
|
||||
<input type="hidden" name='cfg_sntp' value='0'>
|
||||
<input title='SNTP: pool.ntp.org' type='checkbox' name='cfg_sntp' value='1'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Captive Portal AP:</td>
|
||||
<td>
|
||||
<input type="hidden" name='cfg_cdns' value='0'>
|
||||
<input type='checkbox' name='cfg_cdns' value='1'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="center">
|
||||
<input type='hidden' name='uart_save' value='2'>
|
||||
<input type='hidden' name='cfg_save' value='1'>
|
||||
<input type='submit' value='Set Config' class="button">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
~inc:footer.inc~
|
||||
<script type="text/javascript">
|
||||
var cfg = {
|
||||
cfg_debug:"~cfg_debug~",
|
||||
cfg_web_twd:"~cfg_web_twd~",
|
||||
cfg_pinclr:"~cfg_pinclr~",
|
||||
cfg_netbios:"~cfg_netbios~",
|
||||
cfg_sntp:"~cfg_sntp~",
|
||||
cfg_cdns:"~cfg_cdns~",
|
||||
cfg_mdb_reop:"~cfg_mdb_reop~"
|
||||
}
|
||||
setFormValues(document.forms[0], cfg);
|
||||
</script>
|
||||
</body></html>
|
91
WEBFiles/protect/tstfuncs.htm
Normal file
91
WEBFiles/protect/tstfuncs.htm
Normal file
|
@ -0,0 +1,91 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>RTL871X Download bin</title>
|
||||
<link rel="stylesheet" href="../style.css">
|
||||
<script src="/scripts.js"></script>
|
||||
</head><body>
|
||||
~inc:menu.inc~
|
||||
<div class="content">
|
||||
<h2 class="title">Download bin</h2>
|
||||
<form method="post"><table class="scan">
|
||||
<tr>
|
||||
<td>ROM-BIOS:</td>
|
||||
<td><a href='ram.bin?start=0x00000000&stop=0x00080000'>0x00000000..0x00080000</a></td>
|
||||
<td>512 kbytes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SRAM:</td>
|
||||
<td><a href='ram.bin?start=0x10000000&stop=0x10070000'>0x10000000..0x10070000</a></td>
|
||||
<td>448 kbytes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TCM-RAM:</td>
|
||||
<td><a href='ram.bin?start=0x1FFF0000&stop=0x20000000'>0x1FFF0000..0x20000000</a></td>
|
||||
<td>64 kbytes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SDRAM:</td>
|
||||
<td><a href='ram.bin?start=0x30000000&stop=0x30200000'>0x30000000..0x30200000</a></td>
|
||||
<td>2048 kbytes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>FLASH Bus:</td>
|
||||
<td><a href='ram.bin?start=0x98000000&stop=0x98100000'>0x98000000..0x98100000</a></td>
|
||||
<td>1024 kbytes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>I/O SoC:</td>
|
||||
<td><a href='ram.bin?start=0x40000000&stop=0x40080000'>0x40000000..0x40080000</a></td>
|
||||
<td>.. kbytes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ARM:</td>
|
||||
<td><a href='ram.bin?start=0xEF000000&stop=0xEFFFFFFF'>0xEF000000..0xEFFFFFFF</a></td>
|
||||
<td>.. kbytes</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="form">
|
||||
<tr>
|
||||
<td class="label">Start addr</td>
|
||||
<td><input type="text" id="rams" size=12 maxlength=10 value="0x3FF00000"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">End addr</td>
|
||||
<td><input type="text" id="rame" size=12 maxlength=10 value="0x40800000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="center"><input type="button" onClick="NewCookie()" value="Download ram.bin" class="button"></p>
|
||||
</div>
|
||||
~inc:footer.inc~
|
||||
<script type="text/javascript">
|
||||
function getCookie(name){
|
||||
var prefix = name + "=";
|
||||
var cookieStartIndex = document.cookie.indexOf(prefix);
|
||||
if (cookieStartIndex == -1) return null;
|
||||
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length);
|
||||
if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length;
|
||||
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex));
|
||||
}
|
||||
function setCookie(name, value){
|
||||
document.cookie = name + "=" + escape(value) + "; path=/";
|
||||
}
|
||||
function setCookieElem(name, defv){
|
||||
var value = getCookie(name);
|
||||
if(value == null) {
|
||||
value = defv;
|
||||
setCookie(name,value);
|
||||
}
|
||||
document.getElementById(name).value=value;
|
||||
}
|
||||
function NewCookie(){
|
||||
setCookie('rams',document.getElementById('rams').value);
|
||||
setCookie('raml',document.getElementById('rame').value);
|
||||
window.location.href='ram.bin?start='+document.getElementById('rams').value+'&stop='+document.getElementById('rame').value;
|
||||
}
|
||||
setCookieElem('rams','0x10000000');
|
||||
setCookieElem('rame','0x10070000');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
23
WEBFiles/protect/upload.htm
Normal file
23
WEBFiles/protect/upload.htm
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>RTL871X WebFS Image Upload</title>
|
||||
<link rel="stylesheet" href="../style.css">
|
||||
</head><body>
|
||||
~inc:menu.inc~
|
||||
<form method='post' action='/fsupload' enctype='multipart/form-data' class="content">
|
||||
<h2 class="title">WebFS Image Upload</h2>
|
||||
<p class="center">
|
||||
Select WEBFiles.bin file...<br><br>
|
||||
<input type='file' name='file'><br><br>
|
||||
<input type='submit' value='Upload' class="button">
|
||||
</p>
|
||||
</form>
|
||||
<div class="content"><p class="center">
|
||||
Curent Disk has ~wfs_files~ files, Disk Size: ~wfs_size~ bytes.<br>
|
||||
Disk Addres: ~wfs_addr~, Max Disk Size: ~wfs_max_size~ bytes, Max 250 files.<br><br>
|
||||
Flash ID: ~sys_fid~, Size: ~sys_fsize~ bytes.<br>
|
||||
<a href='/protect/fullflash.bin'>Download fullflash.bin</a><br><br>
|
||||
</p></div>
|
||||
~inc:footer.inc~
|
||||
</body></html>
|
192
WEBFiles/protect/wifi.htm
Normal file
192
WEBFiles/protect/wifi.htm
Normal file
|
@ -0,0 +1,192 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=windows-1251">
|
||||
<title>RTL871X WiFi</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<script src="/scripts.js"></script>
|
||||
</head><body>
|
||||
~inc:menu.inc~
|
||||
<div class="content">
|
||||
<form method='post' action='/timeout.htm'>
|
||||
<input type='hidden' name='wifi_rdcfg' value='0xffffffff'>
|
||||
<table class="form">
|
||||
<tr>
|
||||
<td colspan="2"><h2 class="title">WiFi SoftAP</h2></td>
|
||||
<td colspan="2"><h2 class="title">WiFi Station</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">WiFi Mode:</td>
|
||||
<td><select name='wifi_mode'>
|
||||
<option value='1'>STATION_MODE</option>
|
||||
<option value='2'>SOFTAP_MODE</option>
|
||||
<option value='3'>STATIONAP_MODE</option>
|
||||
</select></td>
|
||||
<td class="label">SSID:</td>
|
||||
<td><input name='wifi_st_ssid' maxlength='31' value='~wifi_st_ssid~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">AP SSID:</td>
|
||||
<td><input name='wifi_ap_ssid' maxlength='31' value='~wifi_ap_ssid~'></td>
|
||||
<td class="label">Password:</td>
|
||||
<td><input name='wifi_st_psw' maxlength='63' value='~wifi_st_psw~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Hidden SSID:</td>
|
||||
<td>
|
||||
<input type='hidden' name='wifi_ap_hssid' value='0'>
|
||||
<input type='checkbox' name='wifi_ap_hssid' value='1'>
|
||||
</td>
|
||||
<td class="label">BSSID:</td>
|
||||
<td><input name='wifi_st_bssid' maxlength='17' value='~wifi_st_bssid~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">AP Password:</td>
|
||||
<td><input name='wifi_ap_psw' maxlength='63' value='~wifi_ap_psw~'></td>
|
||||
<td class="label">Use BSSID:</td>
|
||||
<td>
|
||||
<input type='hidden' name='wifi_st_sbss' value='0'>
|
||||
<input type='checkbox' name='wifi_st_sbss' value='1'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Channel:</td>
|
||||
<td><select name='wifi_ap_chl'>
|
||||
<option value='0'>auto</option>
|
||||
</select></td>
|
||||
<td class="label">Auth Mode:</td>
|
||||
<td><select name='wifi_st_auth'>
|
||||
<option value='0'>OPEN</option>
|
||||
<option value='1'>WEP_PSK</option>
|
||||
<option value='32769'>WEP_SHAREDK</option>
|
||||
<option value='2097154'>WPA_TKIP_PSK</option>
|
||||
<option value='2097156'>WPA_AES_PSK</option>
|
||||
<option value='4194306'>WPA2_TKIP_PSK</option>
|
||||
<option value='4194308'>WPA2_AES_PSK</option>
|
||||
<option value='4194310'>WPA2_MIXED_PSK</option>
|
||||
<option value='6291456'>WPA_WPA2_MIXED</option>
|
||||
<option value='268435456'>WPS_OPEN</option>
|
||||
<option value='268435460'>WPS_SECURE</option>
|
||||
<option value='2147483647'>UNKNOWN</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">IEEE PHY:</td>
|
||||
<td><select name='wifi_phy'>
|
||||
<option value='1'>802.11b</option>
|
||||
<option value='3'>802.11g</option>
|
||||
<option value='11'>802.11n</option>
|
||||
</select></td>
|
||||
<td class="label">IP:</td>
|
||||
<td><input type='text' title='Static ip, if dhcp: off' name='wifi_st_ip' maxlength='31' value='~wifi_st_ip~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Auth Mode:</td>
|
||||
<td><select name='wifi_ap_auth'>
|
||||
<option value='0'>OPEN</option>
|
||||
<option value='1'>WPA_WPA2_PSK</option>
|
||||
</select></td>
|
||||
<td class="label">Subnet Mask:</td>
|
||||
<td><input name='wifi_st_msk' maxlength='31' value='~wifi_st_msk~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">IP:</td>
|
||||
<td><input name='wifi_ap_ip' maxlength='31' value='~wifi_ap_ip~'></td>
|
||||
<td class="label">Gateway:</td>
|
||||
<td><input name='wifi_st_gw' maxlength='31' value='~wifi_st_gw~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Subnet Mask:</td>
|
||||
<td><input type='text' name='wifi_ap_msk' maxlength='31' value='~wifi_ap_msk~'></td>
|
||||
<td class="label">AutoReConnect:</td>
|
||||
<td><input name='wifi_st_arec' title='Reconnect Count 1..255.' maxlength='4' value='~wifi_st_arec~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Gateway:</td>
|
||||
<td><input name='wifi_ap_gw' maxlength='31' value='~wifi_ap_gw~'></td>
|
||||
<td class="label">ReConnectPause:</td>
|
||||
<td><input name='wifi_st_rect' title='Reconnect pause 1..255 sec.' maxlength='4' value='~wifi_st_rect~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">MAC:</td>
|
||||
<td><input name='wifi_ap_mac' maxlength='17' value='~wifi_ap_mac~'></td>
|
||||
<td class="label">MAC:</td>
|
||||
<td><input name='wifi_st_mac' maxlength='17' value='~wifi_st_mac~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">DHCP:</td>
|
||||
<td>
|
||||
<input type='hidden' name='wifi_ap_dhcp' value='0'>
|
||||
<input type='checkbox' name='wifi_ap_dhcp' value='1'>
|
||||
</td>
|
||||
<td class="label">DHCP:</td>
|
||||
<td><select name='wifi_st_dhcp'>
|
||||
<option value='0'>DHCP Off</option>
|
||||
<option value='1'>DHCP On</option>
|
||||
<option value='2'>Static IP</option>
|
||||
<option value='3'>Auto fix</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Country Code:</td>
|
||||
<td><input name='wifi_country' maxlength='10' value='~wifi_country~'></td>
|
||||
<td class="label">RSSI:</td>
|
||||
<td>~wifi_st_rssi~ dB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">RF Tx Power:</td>
|
||||
<td><select name='wifi_txpow'>
|
||||
<option value='0'>100%</option>
|
||||
<option value='1'>75%</option>
|
||||
<option value='2'>50%</option>
|
||||
<option value='3'>25%</option>
|
||||
<option value='4'>12.5%</option>
|
||||
</select></td>
|
||||
<td class="label">Sleep Mode:</td>
|
||||
<td><select name='wifi_sleep'>
|
||||
<option value='0'>Off</option>
|
||||
<option value='1'>On</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Max connections:</td>
|
||||
<td><input title='1..3, Default: 3.' name='wifi_ap_mcns' maxlength='1' value='~wifi_ap_mcns~'></td>
|
||||
<td class="label">Beacon (ms):</td>
|
||||
<td><input title='100...60000' name='wifi_ap_bint' maxlength='5' value='~wifi_ap_bint~'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">AP Host Name:</td>
|
||||
<td><input title='DHCP, NetBIOS name' name='wifi_ap_hostname' maxlength='16' value='~wifi_ap_hostname~'></td>
|
||||
<td class="label">ST Host Name:</td>
|
||||
<td><input title='DHCP, NetBIOS name' name='wifi_st_hostname' maxlength='16' value='~wifi_st_hostname~'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="center">
|
||||
<input type='submit' value='Set Config' class="button">
|
||||
<input type='hidden' name='wifi_newcfg' value='0xffff'>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
~inc:footer.inc~
|
||||
<script type="text/javascript">
|
||||
var chlnum = document.forms[0].wifi_ap_chl;
|
||||
for (var i=1; i < 14; i++) {
|
||||
chlnum.options[i] = new Option(((i<10)?'0':'')+i,i);
|
||||
}
|
||||
var cfg = {
|
||||
wifi_ap_chl:"~wifi_ap_chl~",
|
||||
wifi_ap_auth:"~wifi_ap_auth~",
|
||||
wifi_phy:"~wifi_bgn~",
|
||||
wifi_mode:"~wifi_mode~",
|
||||
wifi_sleep:"~wifi_sleep~",
|
||||
wifi_st_autn:"~wifi_st_auth~",
|
||||
wifi_st_sbss:"~wifi_st_sbss~",
|
||||
wifi_ap_hssid:"~wifi_ap_hssid~",
|
||||
wifi_ap_dhcp:"~wifi_ap_dhcp~",
|
||||
wifi_txpow:"~wifi_txpow~",
|
||||
wifi_st_dhcp:"~wifi_st_dhcp~"
|
||||
}
|
||||
setFormValues(document.forms[0], cfg);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue