19
18
KeyCode Open API Specification
If a KD-CX800 port is configured for use in KeyCode Open API mode, the device will
listen on a dedicated TCP port for that particular I/O port.
The user application can then make a TCP connection to that port and send to and/or
receive data from that I/O port.
The default TCP port 4580 is used for I/O port configuration commands. The
Configuration port assignment is flexible, and can be adjusted using the SetTCPC:<TCP
port#>\r.
Separate TCP ports are used for I/O port traffic data. IP Port number assignments for
I/O ports are flexible, and assigned using the SetTCPP:<port#>,<TCP port#>\r.
It is recommended that TCP Port assignments always be be no lower than 1024.
All I/O port traffic is limited to only one TCP connection at a time.
Available TCP Ports
TCP Port
Usage
4580
I/O Configuration Port
4581
Port 1 Traffic Data
4582
Port 2 Traffic Data
4583
Port 3 Traffic Data
Image 4: Setting control mode for Control Extension usage