Axis 24HUM Administration Manual page 57

Table of Contents

Advertisement

AXIS 2400/2401 User's Manual
Example 1
Writes the data stream 430001FF to COM1:
http://videoserv/cgi-bin/control?port=1&dataout=430001FF
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:
http://videoserv/cgi-bin/control?port=1&flush=yes&dataout=2B004C4C4F&wait=5&read=20
Example 3
An HTML page for reading and writing to the COM1 serial port:
<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&nbsp;
<input type=hidden name="port" value="1">
<input type=text size=20 maxsize=19 name="dataout"> to COM1
<p>Read&nbsp;<input type=text size=4 name="read" value="0"> bytes from COM1</p>
<p>Wait&nbsp;<input type=text size=4 name="wait" value="1"> seconds</p>
<input type=submit name="send" value="Send HTTP Request">
</form>
</body>
</html>
In a Web browser, the page will look like this:
Appendix E - CGI Parameters
55

Advertisement

Table of Contents
loading

This manual is also suitable for:

24002401

Table of Contents