ZyPerUHD60
HTTP Commands
Introduction
The ZyPerUHD60 supports simple configuration and status access commands using the HTTP
protocol.
Any HTTP capable application such as web browsers or cURL can be used to issue
commands and receive outputs from the unit directly.
Basic Format
Given the IP address of the ZyPerUHD60 unit, the basic command syntax is:
http://ipaddr/cgi-bin/query.cgi?cmd=xxxx
ipaddr
= IP Address of the encoder or decoder.
Spaces are not allowed in the http command string.
They must be replaced with ‘+’ characters.
When using a command shell to invoke utilities such as cURL, the http input string should be
encased in quotes.
Otherwise, some of the special characters such as ‘+’ may cause problems
with the shell interpreter.
General Commands
Note:
In example below the application cURL is used to issue commands from a Terminal
prompt. The commands can also be entered directly into a browser such as Chrome.
1.
Find Device/Flash Status LED
curl
http://ipaddr/cgi-bin/query.cgi?cmd=e+e_find_me::
X
X is number of seconds to flash Status LED.
Range is 0-60.
0 means stop flashing.
Example: curl http://192.168.0.61/cgi-bin/query.cgi?cmd=e+e_find_me::25
2.
RS-232 Serial Control
curl “
http://ipaddr/cgi-bin/query.cgi?cmd=soip2+-f+/dev/ttyS0+-b+
b
-
dps
+
-r
+
-n
+-H+-s+
”
DATA
””
b
is the baud rate, 115200 recommended
d
is number of data bits, usually 8
p
is parity, ‘n’ for none, ‘e’ for even, ‘o’ for odd
s
is stop bits, usually 1
-r
is optional.
This specifies a <CR> is appended at the end of the output.
-n
is optional.
This specifies a <LF> is appended at the end of the output.
DATA
is the hex values to send.
Rev: 20231115
Page of
37
77
User Manual