Instruction manual

Appendix E - CGI Parameters AXIS 2400 Administration Manual
54
CGI Parameters for Input/Output Operations
For HTTP input/output operations on the Pan/Tilt port, use this syntax:
This table lists the CGI parameters for input/output operations
Example 1
Write the data stream 430001FF to the Pan/Tilt port:
Example 2
Clears the input buffer, writes the data string 2B004C4C4F to the Pan/Tilt port and waits 5
seconds for a reply. The AXIS 240 will return a value to the Web browser:
Example 3
http://<servername>/cgi-bin/control?<parameter>=
<value>[&<parameter>=<value>...]
Parameter/Syntax Description Values
dataout=<string>
Writes the specified data string to
the Pan/Tilt serial port. Maximum
128 bytes.
Hexadecimal coded
bytes {0, 1, 2, 3, 4, 5, 6,
7, 8, 9, A, B, C, D, E, F,
a, b, c, d, e, f}
read=<n>
Reads the specified number of bytes
from the Pan/Tilt port. The returned
value will be hexadecimal coded
and placed between #’s, e.g. #3A#.
1 ... 128
wait=<n>
Waits the specified number of
seconds before reading from the
Pan/Tilt port. Used together with the
“read” parameter.
1 ... 9
flush=<value>
Empties the input buffer for the
Pan/Tilt port. Always performed first
when combined with other
parameters.
yes/no
http://videoserv/cgi-bin/control?dataout=430001FF
http://videoserv/cgi-bin/control?flush=yes&dataout=
2B004C4C4F&wait=5&
read=20