Dana
User Manual
Page 25 of 28
Copyrights DSP4YOU ltd
4
Open Control Protocol (OCP) for 3
rd
party control
4.1
General description
Dana server supports a comprehensive 3
rd
party protocol (OCP) over RS232 or TCP/IP interface for control by a 3
rd
party control processor (AMX/ Crestron/ Vity/ PC..). The ASCII based Open Control Protocol (OCP) has the following
basic rules:
o
OCP is case sensitive
o
Each OCP command consists of an ASCII command string terminated by a line feed (0A in Hex)
o
Each OCP reply consists of an ASCII reply string followed by a carriage a line feed (x0Dx0A in Hex)
o
To simplify system programming of Dana server, no lengthy or complex user manual is required. Simply log-in
to the Web user interface and look at the bottom section of
4.1.1
Commands strings
Command strings from a 3
rd
party processor (e.g. Crestron/AMX/Vity)to a dana server can be of three types:
Command string to “GET” the status of a block
Command string to “SET” the status of a block
Command string to modify the status of a block with “SETSTATUS”
In this case, value can range from 1 to 3:
1 = mute state
2 = active state
3 = bypass state
4.1.2
Reply string
To provide full monitoring of the structure, dana server provides a comprehensive reply to each command string
issued by the 3
rd
party control processor. Two types of reply string can be summarized as follow:
If the command string was successfully processed by the server, the following string will be output as a reply:
ACK: String of acknowledgement by the server
State: Three potential arguments
o
active: 1
o
bypass: 2
o
mute: 3
If the command string was unsuccessfully processed by the server, the following string reply will be given:
4.2
Recovery of IP address and hostname
In the unlikely event that you would have lost the hostname and IP address of the unit, the RS232 port is the only
interface able to troubleshoot the device.
Please refer to the Serial port connectivity for more information about the requirements.
ACK
“Command string received”
State
Value
x0Dx0A
get
localhost
address
x0A
set
localhost
address
value
x0A
setstatus
localhost
address
value
x0A
NACK
“Command string received”
Value
x0Dx0A
get_sysstatus
x0A