background image

2

HDMI5 Component Video Switch 

HDMI5 Component Video Switch

K.I.S.S.™ (Keep It Simple Serial™)

The K.I.S.S.™ Command Structure

The following conventions are used to describe the protocol:

<CR>

  = An ASCII Carriage Return (‘0D’ hex)

<LF>

  = Line Feed (‘0A’ hex)

<ESC>

  = An Escape character (‘1B’ hex)

CMD

 

= A command, consisting of only alpha characters (A-Z, a-z).

ERR

 

= An error code value, consisting of only decimal digits (0-9).

Device   

= The Zektor device being controlled.

Controller  

= A PC or other system, used to control the Zektor device.

Parameter  = A decimal value that may, in some cases, be prefixed with ‘+’ or ‘-’ (+,-,0-9).

A K.I.S.S.™ command in its simplest form is a 

CMD

 following by a 

<CR>

 for instance:

V<CR>

This will return the version number of a Zektor device.
A command can have a variable number of parameters with optional whitespace(s) following the 

command, for instance:

P1<CR>

or

P 1<CR>

will turn on the power of most Zektor devices. The spaces between the ‘P’ and ‘1’ are optional. 

Since commands consist of alpha characters only, there can never be a ‘P1’ command and ‘P1’ 

will always be interpreted as ‘P 1’.
When a command has more than one parameter, the parameters are separated by either 

whitespace(s) or a comma, or both whitespace(s) and a comma, for instance:

LI 3 13<CR>

or

LI 3 , 13<CR>

will set the lower and upper LED front panel intensity levels of most Zektor devices. Once again 

the space between the command and 1st parameter is optional. Space(s) may also appear 

before and after the comma.
The comma is optional between parameters except when it is necessary to indicate a default 

parameter, for instance:

LI ,13<CR>

would set the upper intensity level of the front panel LEDs without affecting the lower level. The 

comma is used to indicate the 1st parameter is not supplied and the default value should be 

used (in this case the value defaults to the current setting, leaving the value unchanged). The 

K.I.S.S.™ 

(Continued)

space before the comma is optional.
Most commands can be queried for their current settings by substituting the ‘?’ for the parameter 

list, or by not supplying any parameters at all. For instance to request the current LED Intensity 

settings:

LI ?<CR>

or

LI<CR>

This would cause the device to issue a LED Intensity Response, (the Response String format 

is described in the section entitled: 

“The Response String”

). The whitespace before the ‘?’ is 

optional.
Most Zektor products use the K.I.S.S. command structure, the examples given here to describe 

syntax, may differ slightly from the commands used by your device. Please see the “Command 

Reference” section for the specific commands used by your device.

Using Bitmapped Parameters

Some commands accept “Bitmapped” parameters. These are decimal values that represent a 

series of flags, or bits, that control, enable and/or disable different device operations.

Binary arithmetic is used to represent bitmapped parameters, it is assumed the reader has some 

familiarity with binary arithmetic.
An example of a command that uses a bitmapped parameter is the 

CVS4’s

 “

XS 

settings

<CR>

” 

command, which is defined like this:

XS 

settings

<CR>

Where ‘settings’ is a bitmapped parameter:

Decimal Value

+128 +64 +32 +16 +8 +4 +2 +1

Bit Position

7

6

5

4

3

2

1

0

Name

0 CRC CSE IRJ IRS IRE FP AS

Factory Settings:

0

0

0

1

1

1

1

0

AS  - 0=Master / Slave mode.  1=Asynchronous Mode.

KB  - 0=Disable Front Panel. 

1=Front Panel Enabled

IRE  - 0=Disable IR.   

 

1=Enable IR.

IRS  - 0=Turn off IR Sensor.  

1=Turn on IR Sensor.

IRJ  - 0=Turn off IR Jack.   

1=Turn on IR Jack.

CSE  - 0=Disable CS and CRC-8  1=Append either Checksums or CRC-8 to responses.

CRC  - 0=Append Checksums or,  1=Append CRC-8’s to reponses.

- Reserved, always set to 0.

This indicates the parameter ‘settings’ is bitmapped parameter, followed by a description of what 

each bit represents.
The ‘Decimal Value’ in the table’s header, refers to the values added together to create the deci-

Содержание HDMI5

Страница 1: ...Rev 1 06 28 2007 Digital Video Switch 1 2 3 4 5 SEL A1 A2 HDMI5 Supplement to the HDMI5 User Guide Home Theater Solutions...

Страница 2: ...el Light Intensities 16 Save Power On Default Settings 17 Query Last IR Code Received 17 Set Learnable IR Command Codes 18 Front Panel Button Emulation 19 Query Status 21 Control Settings 22 Extended...

Страница 3: ...lue defaults to the current setting leaving the value unchanged The K I S S Continued space before the comma is optional Most commands can be queried for their current settings by substituting the for...

Страница 4: ...owed before the and characters but NOT after them The checksum must immediately follow the character and a CRC 8 checkcode must immediately follow the character anything else including whitespace will...

Страница 5: ...CR LF Notice that in the first example a checksum was not appended to the LI command When issuing a command the checksum and CRC 8 codes are sent on a command by command basis Anytime a checksum or a...

Страница 6: ...ughout the com munication sequence First the LI CR command was issued by the controller While looking for an Acknowledgement or Error Response string an unsolicited Query Response is received indicati...

Страница 7: ...um and a CRC 8 Checkcode A CRC is capable of finding many more and different types of errors than a checksum can A good description of its capability is described in the above referenced articles but...

Страница 8: ...r detection characteristics So x 8 x 6 x 3 x 2 1 101001101 14D hex Ignore X 8 01001101 4D hex Reverse bit order 10110010 B2 hex define CRC8_POLY 0xB2 polynomial mask define CRC8_INIT 0xFF initial valu...

Страница 9: ...t at writing them will return Error 6 The Front Panel Button Emulation command with button code 0 can be used to exit the Setup Mode at which point the command can be re issued without an Error 6 resp...

Страница 10: ...Restore all settings to their factory defaults There is no Response String for this command Note Any value given other than 246 will generate a range error Query Last IR Code Received This command al...

Страница 11: ...iliary Relay 1 Toggle 9 Auxiliary Relay 2 Toggle 10 Discrete Power On 11 Discrete Power Off 12 Discrete Breakaway Off 13 Sequence through inputs 14 Discrete Audio Breakaway Select 15 Discrete Video Br...

Страница 12: ...e HDMI5 Some extended button codes are Code Description 0 When Issued Exits setup modes 0 When returned by query No buttons have been pressed since last the query 100 Always toggle power like Power To...

Страница 13: ...EEPROM XS settings Reset bits indicated in settings to 0 save in EEPROM XS Back up current settings into EEPROM XS Query for current settings XS Query for current settings Response String XS settings...

Страница 14: ...urrent settings XE Query for current settings Response String XE settings Where settings is a bitmapped parameter Decimal Value 4096 2048 1024 512 256 128 64 32 16 8 4 2 1 Bit Position 12 11 10 9 8 7...

Страница 15: ...and Ref Cont d HDMI5 Command Ref Cont d Where rly_n Relay number 1 or 2 state State of relay 0 Off 1 On 2 Toggle If present settings are backed up in EEPROM Relay Settings Setup the behavior of the re...

Страница 16: ...input is set to 1 in the vid_msk or aud_msk parameter The time value given is how long a relay remains active after a input is selected that does not match a 1 bit in vid_msk or aud_msk Mode 4 Relays...

Страница 17: ...Z E K T O R 12675 Danielson Ct Suite 401 Poway CA 92064 858 748 8250 www zektor com...

Отзывы: