User manual

38/48 myEthernet Technische Beschreibung / technical description
www.myAVR.de © Laser & Co. Solutions GmbH – 06/2009 www.myAVR.com
5.5 Statusinformationen
Neben all den Möglichkeiten zur Regelung und Konfigu-
ration von Pins sind auch Informationen über die Einstel-
lung des myEthernet-Webservers möglich. Die Ersetzun-
gen erfolgen dabei in htm-Dateien im Format:
°i<Parameter.
Liste der Parameter:
i … IP-Adresse
n … Netzwerkmaske (Subnet)
m … Mac-Adresse (hexadezimale Ausgabe)
p … Webserver-Port
v … Version der Firmware
b … Build-Nummer
t … Systemzeit seit Start (Sekunden)
5.5 Status information
In addition to all the possiblities for regulation and
configuration of pins are also information possible
about the settings of the myEthernet web server. The
replacements happens in
htm-files in the format
°i<Parameter.
List of the parameters:
i … IP address
n … network mask (Subnet)
m … mac-address (hexadecimal output)
p … web server port
v … version of the firmware
b … build number
t … system time since start (seconds)
Beispiel einer Ausgabe zu den Informationstypen:
Example of an output of information types:
<
html>
<head>
<
title>myAVR-Server</title>
<script language="JavaScript" type="text/javascript">
function $(id){ //allgemeine Ausgabefunktionen
if (document.getElementById(id)==null)
return document.getElementsByName(id)[0];
else
return document.getElementById(id);}
function $T(id,t)
{$(id).innerHTML=t;}
function $Ta(id,t)
{$(id).innerHTML+=t;}
function onloadDo(){
//Info’s ausgeben
var myIP="°ii°";
var mySubnetmask="°in°";
var myMacadress=
"°im°";
var myUptime="°it°";
var myVersion=
"°iv°";
$Ta("out","aktuelle IP: "+myIP+"<br>");
$Ta(
"out","aktuelle Netzwerkmaske: "+mySubnetmask+"<br>");
$Ta("out","aktuelle Mac-Adresse: "+myMacadress+"<br>");
$Ta(
"out","Systemlaufzeit: "+myUptime+"s <br>");
$Ta("out","Version: "+myVersion+"<br>");
}
</script>
</
head>
<
body onLoad="onloadDo();">
<b>myEthernet Info-Ausgabe</b><br><br>
<
div id="out"></div>
</body>
</
html>