Sony SNT-V304 Guide De L'utilisateur page 100

Station de réseau vidéo
Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

Spécifications de base
z Controlling and Monitoring
(Relay, 4 digital inputs)
Method: GET/POST
Syntax: input
http://< servername >/cgi-bin/io/
input.cgi?< parameter >=< value >[&< parameter >=
< value >...]
Syntax: output
http://< servername >/axis-cgi/io/
output.cgi?< parameter >=< value >[&< parameter >=
< value >...]
with the following parameters and values
<parameter>=<value>
Values
check=<int>[,<int>, ...]
<id1>
[,<id2>, ...]
action=<string>
1:[<a>]
[<wait><a>
...]
monitor=<int>[,<int>,...]
<id1>
[,<id2>, ...]
Return: "monitor", i.e., multipart "check" parameter
HTTP/1.0 200 OK\r\n
Content-Type:
replace;boundary=< boundary >\r\n
\r\n --< boundary >\r\n < monitor data >
where the proposed boundary <boundary> is
ioboundary and the <monitor data> part is
Content-Type: text/plain\r\n
\r\n
< check data >--< boundary >\r\n
and < check data > is
IO< n >:< action char >\r\n
and <n> is the IO port number and <action char> is
the action character described in the table above.
Note: The output can contain extra blank lines, i.e.,
extra \r\n within the sections.
100
Description
Returns the status of one or more
inputs numbered id1 ,id2, ....
Sets the output relay on or off and
waits <wait> milliseconds.
<a> = Action character: / or \ / =
on, \ = off.
<wait> = Delay in milliseconds.
Returns a multipart stream of
"check" outputs (see return
description below).
multipart/x-mixed-
Example: Set output 1 on
http://myserver/cgi-bin/io/
output.cgi?action=1:/
Example: Set two 300 ms pulses with 500 ms delay
between the pulses on output 1
http://myserver/cgi-bin/io/
output.cgi?action=1:/300\500/300\
Example: Wait 1 second before setting output 1 on
http://myserver/cgi-bin/io/
output.cgi?action=1:1000/
Example: Monitor data on input ports 1, 2, 3, and 4
http://myserver/cgi-bin/io/
input.cgi?monitor=1,2,3,4
Example: Monitor data on input port 1
HTTP/1.0 200 OK\r\n
Content-Type: multipart/x-mixed-replace;
boundary=ioboundary\r\n
\r\n
\r\n
\r\n
\r\n
--ioboundary\r\n
Content-Type: text/plain\r\n
\r\n
IO0:/\n
\r\n
\r\n
--ioboundary\r\n
Content-Type: text/plain\r\n
\r\n
IO0:H\n
\r\n
--ioboundary\r\n
Content-Type: text/plain\r\n
\r\n
\r\n
IO0:\\n
\r\n
\r\n
--ioboundary\r\n
Content-Type: text/plain\r\n
\r\n
\r\n
\r\n
\r\n
--ioboundary\r\n
Content-Type: text/plain\r\n
\r\n
\r\n
.
.
.

Publicité

Chapitres

Table des Matières
loading

Table des Matières