Sony SNT-V304 Home Theater System User Manual


 
Basic Specifications
48
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
>/cgi-bin/io/
output.cgi?<
parameter
>=<
value
>[&<
parameter
>=
<
value
>...]
with the following parameters and values
Return:monitor”, i.e., multipart “check” parameter
HTTP/1.0 200 OK\r\n
Content-Type: multipart/x-mixed-
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.
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
.
.
.
<parameter>=<value>
check=<int>[,<int>, ...]
action=<string>
monitor=<int>[,<int>,...]
Values
<id1>
[,<id2>, ...]
1:[<a>]
[<wait><a>
...]
<id1>
[,<id2>, ...]
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).