27
26
1712,525-1740,499-618,527-1684,525-1738,499-1713,551-594,523-
1690,551-592,525-594,502-1736,525-592,525-594,533-40000,901-
8-2292,525-65535\r
The format for an IR Emitter burst is as shown below.
»
<Frequency>,<Mask>,<Repeat>,<Repeat Start>,<Repeat End>,<Repeat
After>:<Pulse 1>,<Pulse 2>, … <Pulse n><End Pulse>\r
The <Frequency> field is the carrier frequency of the IR burst. <Repeat> is the amount
of times the repeat is to be done. The repeat pulses are specified by <Repeat Start>
and <Repeat End>.
The device will generate the repeat pulse after the position specified by <Repeat
After>. For <Repeat End> and <Repeat From>, the value of zero means the end of
the burst. The <Mask> field specifies the IR output ports of the burst. The values 1, 2,
and 3 belong to I/O ports 1, 2, and 3, respectively. These mask values can be summed
together to specify more than one port for the same IR burst. An example IR burst is
shown below:
»
38000,2,2,33,34,34:9043-4544,534-618,506-622,506-1723,534-620,536-
590,549-579,506-622,506-620,503-1725,535-1746,508-620,527-
1700,535-1720,538-1715,535-1720,557-1697,532-622,506-1721,560-
594,506-622,506-620,508-620,520-606,506-622,506-1723,564-
590,549-1679,532-1722,532-1725,532-1722,554-1729,503-1725,538-
40348,9019-2312,504-65535\r
If the I/O port 2 of a KD-CX800 is configured for KeyCode Open API mode and the above
data is received on TCP port 4582, the device will send that IR burst to I/O port 2 with
2 repeats. The repeated pulses are 538-40348 and 9019-2312. They will be inserted
after the 9019-2312 pulse.
Notes:
›
Only I/O port 1 is capable of Sensing IR Data and requires an official Key Digital IR
Learning Sensor
›
All I/O ports can be set to IR Input Mode but multiple I/O ports cannot be in that
mode at the same time
Possible Responses
Response
Meaning
ERR_OK
Command executed successfully
ERR_CMD
Command not recognized
ERR_PORT
I/O Port doesn’t match the command received
ERR_PARAM
Bad parameter in command
ERR_MODE
I/O Port doesn’t match the command received
ERR_CONF
Port not configured for KeyCode Open API Mode
LEVEL_HIGH
Trigger Input High Level
LEVEL_LOW
Trigger Input Low Level
IR Sensor and Emitter
For the KD-CX800, data received from the IR sensor traffic port is formatted in ASCII
text. It is started by the carrier frequency and followed by a series of pulses.
»
<Frequency>:<Pulse 1>,<Pulse 2>, … <Pulse n><End Pulse>\r
The <Frequency> field is the carrier frequency and the <Pulse n> field is the IR pulse.
An IR
Pulse is started with the on duration and the pause duration until the next pulse. All
durations are calculated in microseconds and the duration value 65535 is used to mark
the end of the IR burst.
For example, the following string is a 36-pulse IR burst with a carrier frequency of
37974Hz:
»
37974:8955-4516,526-618,501-618,525-594,497-620,499-620,522-
595,547-573,499-1711,548-1717,499-1712,571-1693,499-1712,525-
1738,499-712,527-1712,543-601,500-620,499-1712,565-579,499-