
AXIS 2400/2401
User’s Manual
Appendix E -
CGI Parameters
55
Example 1
Writes the data stream 430001FF to
COM1
:
Example 2
Clears the input buffer, writes the data string 2B004C4C4F to
COM1
and waits 5 seconds for a
reply. The AXIS 2400/2401 will return a value to the Web browser:
Example 3
An HTML page for reading and writing to the
COM1
serial port:
In a Web browser, the page will look like this:
http://videoserv/cgi-bin/control?por t=1&dataout=430001FF
http://videoserv/cgi-bin/control?por t=1&flush=yes&dataout=2B004C4C4F&wait=5&read=20
<html>
<head>
<title>HTTP Input/Output Test Page</title>
</head>
<body>
<h2>HTTP Input/Output Test Page</h2>
<form action="http://videoserv/cgi-bin/control" method=post>
Write hexadecimal byte string
<input type=hidden name="p ort" value="1">
<input type=text size=20 maxsize=19 name="dataout"> to COM1
<p>Read <input type=text size=4 name="read" value="0"> bytes from COM1</p>
<p>Wait <input type=text size=4 name="wait" value="1"> seconds</p>
<input type=submit name="send" value="Send HTTP Request">
</form>
</body>
</html>