Protocol
34
Protocol
Communication
TCP or UDP, port 5000.
Address
Each command line contains one device address “ADDR”, default is 0.
When ADDR is default 0: the device is to receive all commands.
When the command sender (the device to send command out) is with ADDR 0, the
receiver device must receive this command no matter what ADDR this device has.
When the command sender’s ADDR is not 0 and the receiver device’s ADDR is not 0,
they have to match the address then to receive command.
Send Command (INFO,0), to check the device’s ADDR.
({"ctrlAddr":"2","ip":"192.168.1.201/192.168.3.201",inputNum":10,"inputIndex":10,"out
putNum":20,"outputIndex":22,"deviceName":"avcnet"}),
"ctrlAddr":"2": means the address is 2.
AVCNet third-party commands
Format:
(command name,address,data,data,…) The address is must, if it is 0, means the
current device.
Single channel switching
Format: (SWCH,ADDR,V/C,IN-OUT)
V/C: V means to switch video, C means to switch control signal and the video together.
Response: Correct (SWCH,ADDR,OK); Error (SWCH,ADDR,Err)
Note: this command is used to switch one input signal to another output channel.
The address is optional.
For example: to switch video of input 1/device 1 to output 2
Command: (SWCH,1,V,1,2)
Multiple channels switching
Format: (SWCM,ADDR,IN-OUT/OUT/OUT-C)
If not switch the KVM control signal, C value is 0 and C must be one of the output
channels.
Response: Correct (SWCH,ADDR,OK); Error (SWCH,ADDR,Err)