Web 51 - "Telnet" Setup |
|
- Serial line support - describes settings and memory operations for the serial line.
- Link order, libraries - explains basic differences in the libraries used.
- Library LIBK - kernel modules (kernel lib).
- Library LIBW - arithmetic, logic, I/O, ... functions.
Server root page, index.html, displays the configuration.
<html><meta http-equiv="Cache-Control" content="no-cache">
<title>89C8252 WWW server</title>
<body><center><H1>AT89C8252 WWW server</H1>
Welcome in server Web 51<br>
running on the AT89S8252 single-chip Microcontroller and RTL8019AS Ethernet Controller.<br>
MAC: 'mac.cgi' IP: 'ip.cgi?· MASK: 'ip.cgi?· GW: 'ip.cgi?·<br>
COM: 'bd.cgi?·00,N,8,1 Flow Control: XON/XOFF <B>'?xon.cgi?·off{on}</B> RTS/CTS <B>'?rts.cgi?·off{on}</B> POINT: 'ip.cgi?·
</center></body></html><html><meta http-equiv="Cache-Control" content="no-cache"> <title>89C8252 WWW server</title> <body><center><H1>AT89C8252 WWW server</H1> Welcome in server Web 51<br> running on the AT89S8252 single-chip Microcontroller and RTL8019AS Ethernet Controller.<br> MAC: 00-00-E8-EE-09-F5 IP: 192.168.0.77 MASK: 255.255.255.0 GW: 192.168.0.253<br> COM: 38400,N,8,1 Flow Control: XON/XOFF <B>off</B> RTS/CTS <B>on</B> POINT: 0.0.0.0 </center></body></html>
The config.html page allows the configuration to be changed.
<html><meta http-equiv="Cache-Control" content="no-cache"><head> <title>89C8252 WWW config</title></head> <body><form action="/setup.html" method="GET"><input type="password" name="W">Password<br> Protocol:<input type="radio" name="P" value=0'fl.cgi?0>None <input type="radio" name="P" value=2'fl.cgi?2>Xon/Xoff <input type="radio" name="P" value=1'fl.cgi?1>RTS/CTS<br> <select name="B" size="1"> <option value=7'bdc.cgi?7>600 Bd</option> <option value=6'bdc.cgi?6>1200 Bd</option> <option value=5'bdc.cgi?5>2400 Bd</option> <option value=4'bdc.cgi?4>4800 Bd</option> <option value=3'bdc.cgi?3>9600 Bd</option> <option value=2'bdc.cgi?2>19200 Bd</option> <option value=1'bdc.cgi?1>38400 Bd</option> </select>COM speed<br> <input type="text" name="I" value="'ip.cgi?·">IP Address<br> <input type="text" name="M" value="'ip.cgi?·">IP Mask<br> <input type="text" name="G" value="'ip.cgi?·">IP Gateway<br> <input type="text" name="T" value="'ip.cgi?·">Send to IP (0.0.0.0 - PASIVE mode)<br> <input type="submit" value="Send"></form></body></html>
<html><meta http-equiv="Cache-Control" content="no-cache"><head> <title>89C8252 WWW config</title></head> <body><form action="/setup.html" method="GET"><input type="password" name="W">Password<br> Protocol:<input type="radio" name="P" value=0>None <input type="radio" name="P" value=2>Xon/Xoff <input type="radio" name="P" value=1 CHECKED>RTS/CTS<br> <select name="B" size="1"> <option value=7>600 Bd</option> <option value=6>1200 Bd</option> <option value=5>2400 Bd</option> <option value=4>4800 Bd</option> <option value=3>9600 Bd</option> <option value=2>19200 Bd</option> <option value=1 SELECTED>38400 Bd</option> </select>COM speed<br> <input type="text" name="I" value="192.168.0.77">IP Address<br> <input type="text" name="M" value="255.255.255.0">IP Mask<br> <input type="text" name="G" value="192.168.0.253">IP Gateway<br> <input type="text" name="T" value="0.0.0.0">Send to IP (0.0.0.0 - PASIVE mode)<br> <input type="submit" value="Send"></form></body></html>
setup.html allows switching between the default and the generated profile.
<html><meta http-equiv="Cache-Control" content="no-cache">
<title>89C8252 WWW setup</title><body>
<center><H1>AT89C8252 WWW server</H1><br>
'ipsetup.cgi'MAC: 'mac.cgi'<br>
<b>Current config:</b><br>
IP: 'ip.cgi?· MASK: 'ip.cgi?· GW: 'ip.cgi?· POINT: 'ip.cgi?·<br>
COM: 'bd.cgi?·00,N,8,1 Flow Control: XON/XOFF <B>'?xon.cgi?·off{on}</B> RTS/CTS <B>'?rts.cgi?·off{on}</B><br>
<b>New config:</b><br>
IP: 'ip.cgi?· MASK: 'ip.cgi?· GW: 'ip.cgi?· POINT: 'ip.cgi?·<br>
COM: 'bd.cgi?·00,N,8,1 Flow Control: XON/XOFF <B>'?xon.cgi?·off{on}</B> RTS/CTS <B>'?rts.cgi?·off{on}</B><br>
<b>Default config:</b><br>
IP: 'ip.cgi?· MASK: 'ip.cgi?· GW: 'ip.cgi?· POINT: 'ip.cgi?·<br>
COM: 'bd.cgi?·00,N,8,1 Flow Control: XON/XOFF <B>'?xon.cgi?·off{on}</B> RTS/CTS <B>'?rts.cgi?·off{on}</B>
<form action="setup.html" method="GET"><b>Entry Password for change:</b> <input type="password" name="W"><br>
<input type="submit" name="E" value="New->Current"><input type="submit" name="E" value="Default->Current"><br>
<a href="/"><b>Exit</b></a></form></center></body></html><html><meta http-equiv="Cache-Control" content="no-cache"> <title>89C8252 WWW setup</title><body><center><H1>AT89C8252 WWW server</H1><br> MAC: 00-00-E8-EE-09-F5<br> <b>Current config:</b><br> IP: 192.168.0.77 MASK: 255.255.255.0 GW: 192.168.0.253 POINT: 0.0.0.0<br> COM: 38400,N,8,1 Flow Control: XON/XOFF <B>off</B> RTS/CTS <B>on</B><br> <b>New config:</b><br> IP: 192.168.0.77 MASK: 255.255.255.0 GW: 192.168.0.253 POINT: 0.0.0.0<br> COM: 38400,N,8,1 Flow Control: XON/XOFF <B>off</B> RTS/CTS <B>on</B><br> <b>Default config:</b><br> IP: 192.168.0.77 MASK: 255.255.255.0 GW: 192.168.0.253 POINT: 0.0.0.0<br> COM: 38400,N,8,1 Flow Control: XON/XOFF <B>off</B> RTS/CTS <B>on</B> <form action="setup.html" method="GET"><b>Entry Password for change:</b> <input type="password" name="W"><br> <input type="submit" name="E" value="New->Current"><input type="submit" name="E" value="Default->Current"><br> <a href="/"><b>Exit</b></a></form></center></body></html>
Password for configuration changes is stored in passwd.asm in the password: definition.
(For the inpatient ones: this example uses 1234.)
| Web51 description | News | FAQ | ORDER FORM | DOWNLOAD | Links |
| (c)Copyright 2000 - 2002, HW server & Radek Benedikt
Web51@HW.cz, Web51.HW.cz |
|