Sony SNT-V304 User Manual page 50

Video network station
Hide thumbs Also See for SNT-V304:
Table of Contents

Advertisement

Available languages

Available languages

CGI/Generic Driver Commands
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
.
.
.
50
x Generic Driver
The HTTP Generic driver is enabled by selecting the
Generic checkbox in Serial Port 1 (or 2) settings.
To enable TCP Generic driver a TCP port number
must be selected in the Generic Driver settings.
z HTTP Generic driver
Method: GET/POST
Syntax: control serial port
http://< servername >/cgi-bin/
control?< parameter >=< value >[&< parameter >=
< value >... ]
with the following parameter and values
<parameter>=<value>
Values
port=<int>
1 or 2
write=<string>
<bytestring>
dataout=<string>
writestring=<string>
<url
encoded
string>
read=<int>
1, ...
timeout=<int>
1 - 9000
wait=<int>
1 - 9
z TCP Generic driver
Set a TCP port number in the Generic driver settings
(0 disabled)
It is now possible for clients to connect to the specified
TCP port number. The data sent from the connected
client is forwarded to the serial port on the video
network station and the data received at the video
network station serial port is forwarded to the client. It
is possible for more than one client to connect at the
same time.
Description
The COM port is selected with this
parameter.
<bytestring>: hex coded bytes with
values of {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
A, B, C, D, E, F, a, b, c, d, e, f}
Writes the specified data string to
the selected serial port. Max string
length: 254 bytes.
Writes the url encoded string to the
selected serial port.
Max string length: 255 bytes.
Reads n bytes from the selected
serial port.
The returned data will be
hexadecimal coded and placed
between #s (e.g. #3A#)
Specified in milliseconds. Used
together with the "read" parameter.
A read is terminated when the
specified number of bytes is read or
when the wait period has ended.
Specified in seconds. Used together
with the "read" parameter. A read is
terminated when the specified
number of bytes is read or the
timeout has expired.

Advertisement

Table of Contents
loading

Table of Contents