NTI UNIMUX SERIES USB KVM SWITCH
15
Command Protocol
RS232 commands supported by the unit are defined below. All command strings should be terminated with a <CR> (carriage
return). When a command is sent, the entire string is echoed back along with a response from the addressed unit as shown in the
command definitions. All characters in the command string should be upper case, and all numbers below 10 should have a
leading 0 (ex: 1 = 01). As command strings are sent, the inner character delay cannot exceed 500 milliseconds.
Figure 13- RS232 Communication Illustrated
Note: To use this command protocol, the user is required to write a program that will send an entire command string all
at once, not character by character. Programs that send one character at a time (such as HyperTerminal) cannot be used
to control the UNIMUX. Alternatively, the user may use the NTI Switch Control Program or SerTest to control the
UNIMUX via RS232 (see page 16).
Legend
: (All numbers must be two digits)
SW
:
Switch (01-15) (Unit Address)
OP
:
Output (User) Port (01)
IP
:
Input (CPU) Port (01-MAXINPUTS)
<CR>
:
Carriage Return (Hex 0xD)
Note: For units with one output (user) port, use 01 for the output selection.
Command Definitions
Command String
Good Response
Description
CS SW,IP,OP
*<CR>
Connect Output (User) Port To specific Input (CPU) Port
RO SW,OP
*<CR>IP<CR>
Read Connection For Output (User) Port to Input (CPU) Port
RS SW
*<CR>
Internal Reset
RU SW
*<CR>IP,OP<CR>
Read Unit Size
SS SW,00
*<CR>
Disable Autostatus feature (see below)
SS SW,01
*<CR>
Enable Autostatus feature (see below)
GO SW,OP
*<CR>go SW,OP:IP<CR>
Read connection of a Output (User) Port to Input (CPU) Port
(different response format than RO command)
GM SW,00
*<CR>go OP,IP (all ports)<CR>
Read connection matrix of all Output (User) ports
If the first field is not a known command (as listed above) or SW field is different from the unit address programmed at the DIP
switch (page 13), the command will be ignored. If the SW field corresponds to the unit address, but if the syntax is wrong after
this field, the switch will answer with a bad response ?<CR>.
Autostatus
When Autostatus is enabled, any output (user) -to-input (CPU) connection change in the UNIMUX will cause an Autostatus
message to be sent via RS232 to the administrator. The format of the message would be "pc SW,OP:IP<CR>"
Example of an Autostatus message:
pc 01,01:04<CR>
which means "At the switch with unit address 01, the output (User) (01) has changed connection to input (CPU) port 04."
Note: An Autostatus message to the administrator will be delayed by any RS232 traffic being received by the switch
from the administrator.
By default, Autostatus is disabled and must be manually enabled.
CS 01,01,03<CR>
CS 01,01,03<CR>
(COMMAND RECEIVED)
(RESPOND)
* <CR>
(COMMAND SENT)
(RESPONSE RECEIVED)
CS 01,01,03<CR>
* <CR>
CPU
SWITCH AT UNIT ADDRESS 01
RS232
RS232
(ECHO)
CS 01,01,03<CR>