www.zektor.
ii Table of Contents The RS-232 Port .............................................................. 1 K.I.S.S.™ (Keep It Simple Serial™) .................................... 2 The K.I.S.S.™ Command Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Using Bitmapped Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Command Checksums and CRC-8 Checkcodes . . . . . . . . . . . . . . . . . . . . . . . . . . .
1,0,,0,0 1,1,time,0,0 1,0,time,vid_msk,aud_msk 1,1,time,vid_msk,aud_msk 28 HDMI5 Component Video Switch RLS RLS RLS RLS Set to “Mode 0”, ‘timing’ values are ignored Set to “Mode 1”, time not set to 0 Set to “Mode 3”, at least one mask not set to 0 Set to “Mode 4”, at least one mask not set to 0 The following examples set Relay ‘1’ to the four different modes: Relays become active for a momentary amount of time when either a video or audio input is selected and the bit for that input is set to ‘1’ in th
2 K.I.S.S.™ (Keep It Simple Serial™) The K.I.S.S.™ Command Structure = The Zektor device being controlled. = A PC or other system, used to control the Zektor device. = A decimal value that may, in some cases, be prefixed with ‘+’ or ‘-’ (+,-,0-9). = An ASCII Carriage Return (‘0D’ hex) = Line Feed (‘0A’ hex) = An Escape character (‘1B’ hex) = A command, consisting of only alpha characters (A-Z, a-z). = An error code value, consisting of only decimal digits (0-9).
+128 +64 +32 +16 7 6 5 4 0 0 0 0 0 0 0 0 - 0=Vertical sync pass through. - 0=Horizontal sync pass through. - 0=Horizontal dejitter off. - Reserved, always set to 0. +4 +2 +1 2 1 0 DJT HEN VEN 0 0 0 1=Vertical sync always low. 1=Horizontal sync always low. 1=Horizontal dejitter on. +8 3 0 0 Set new settings Query for current settings Query for current settings 26 HDMI5 Component Video Switch =RL rly_n,state Response String: RL rly_n,state,$ RL rly_n,? RL ? Controls the state of the relays.
4 K.I.S.S.™ (Continued) mal parameter used by the command. For instances if the bits ‘AS’ and ‘IJ’ where to be set to 1, and the rest of the bits set to zero, the parameter value would be calculated as: 8+1, making the parameter value: 9.
Power State changes (On / Off condition). Selection changes (input / output mapping changes). Front Panel modes and intensity changes Front Panel Button Presses. IR codes received. New IR codes learned. Control Settings changes. settings +settings -settings settings,$ +settings,$ -settings,$ $ ? Set the enable bits to ‘settings’. Set enable bits indicated in ‘settings’ to 1. Reset enable bits indicated in ‘settings’ to 0. Set the control bits to ‘settings’, save in EEPROM.
6 K.I.S.S.™ (Continued) and the Error Response is always the string: !ERR +1 0 AS 0 1=Asynchronous Mode. 1=Front Panel Enabled 1=Enable IR Control. 1=Turn on IR Sensor. 1=Turn on IR Jack. 1=Append either Checksums or CRC-8 to responses. 1=Append CRC-8’s, to responses. 1=Use IR Jack as +12V On / Off Control +2 1 FP 1 Back up current settings into EEPROM. Query for current settings. Query for current settings. HDMI5 Command Ref.
Query for current flag values. Query for current flag values. +4096 +2048 +1024 +512 +256 +128 +64 +32 +16 +8 +4 +2 +1 12 11 10 9 8 7 6 5 4 3 2 1 0 RS2 RS1 RL2 RL1 EQU SWD CTL LMI IRC IRR BTN SEL PWR 0 0 0 0 0 0 0 0 0 0 0 1 1 - 1=Power State has changed. - 1=Selection (Input / Output Mapping) has changed. - 1=One or more buttons have been pressed. - 1=A new IR code has been received. - 1=New IR codes have been learned. - 1=Lighting Mode or Intensity Level Settings have changed.
8 K.I.S.S.™ (Continued) ated by the keyboard, making this command a bit more useful. These extended codes allow for better control of the HDMI5. HDMI5 Command Ref. (Cont’d) Description When Issued: Exits setup modes. When returned by query: No buttons have been pressed since last the query. Always toggle power (like Power Toggle without the need of a release code). Discrete power on (always turns on power). Discrete power off (always turns off power). Sequence through inputs.
Send one or more button codes to the HDMI5. Query for any buffered button presses. Query for any buffered button presses. Release Code 19 20 21 22 23 24 25 26 27 20 HDMI5 Component Video Switch There are also a small number of codes that are unique to this command that cannot be gener- The “Press Code” is the value returned when a button pressed, and the “Release Code” is the value returned when a button is released.
Checksums and CRC-8’s Checksums and CRC-8 Checkcodes Defined The use of a checksums or CRC-8 checkcodes can increase the reliability of communications between the controller and any Zektor device. A checksum is calculated by using an unsigned byte as an accumulator, and adding together all the ASCII characters of a command string, up to and including the ‘;’ character, while ignoring any overflow, and appending it as a decimal parameter to the end of the command.
Query for the IR code of the last IR command received. Query for the IR code of the last IR command received. 18 HDMI5 Component Video Switch Where: ircmd = IR command number being set / retrieved (See Table). ircode = 72 bit IR code (See: “IR” command).
Checksums and CRC-8’s (Cont’d) Source Code Example of Calculating a CRC-8 Checkcode lcrc8; bitcount; 0xB2 0xFF // polynomial mask // initial value x^8 +x^6 +x^3 +x^2 + 1 = 101001101 = 14D hex Ignore X^8: 01001101 = 4D hex Reverse bit order: 10110010 = B2 hex So: The rest of the bits of the polynomial are reversed from the polynomial's order. This allows us to read in each bit starting with bit 0 of each byte, instead of bit 7.
Set output to input ‘in’. Sequence through inputs. Query for current setting. Query for current setting. mode,dim,bright mode,dim,bright,$ ,dim ,,bright ? = Current MODE setting. = Current DIM level setting. = Current BRIGHT level settings. Set the MODE, DIM and BRIGHT levels. Set the MODE, DIM and BRIGHT levels, backup settings. Set only the DIM level. Set only the BRIGHT level. Query for current settings. Query for current settings.
HDMI5 Command Reference The HDMI5 K.I.S.S.™ Command Reference This section defines the K.I.S.S.™ commands that are available to the users of the HDMI5. Error Response Codes Unrecognized command. A parameter was out of range. Syntax error, badly formed command. Checksum or CRC-8 error. Too many or too few parameters. System busy cannot process command. Buffer overflow. The following are the Error Response codes that can be returned by the HDMI5.