background image

20

HDMI5 Component Video Switch 

21

HDMI5 Component Video Switch

When used in combination with the “

Read Last IR Code

” command, even IR commands can be 

handled by the controller, outside the HDMI5’s firmware.
Because of the tight link between this command and the HDMI5’s firmware, there are some 

caveats when using this command. The Zektor firmware expects a button press code to always 

be followed by a button release code. Sending these codes out of logical order will not harm the 

HDMI5, but may result in unpredictable behavior (buttons codes ignored, or unexpected state 

changes).

b1

,

bn...   

 

Send one or more button codes to the HDMI5.

B ?       

Query for any buffered button presses.

B         

Query for any buffered button presses.

Response String:

=B 

b1

,

bn...

Where:

 

b1

,

bn..  = A variable number of button codes (1 to 16 codes per command).

In the Master / Slave mode, only the last 16 button presses will be logged between queries, 

after that, new button presses overwrite the old ones in the internal buffer and will be lost to the 

controller.

The maximum number of button codes that can be sent  is 16. If more than 16 button codes 

are sent a “parameter count error” will be returned and only the first 16 button codes will be 

accepted.

The Button Codes for the HDMI5 are defined as follows:

Button   

 

Press Code   

Release Code

Power Toggle   

 

10   

 

 

19

Input 1 Select   

 

2   

 

 

20

Input 2 Select   

 

3   

 

 

21

Input 3 Select   

 

4   

 

 

22

Input 4 Select   

 

5   

 

 

23

Input 5 Select   

 

6   

 

 

24

‘Sel’ Button   

 

7   

 

 

25

‘A1’ Relay Toggle   

8   

 

 

26

‘A2’ Relay Toggle   

9   

 

 

27

The “Press Code” is the value returned when a button pressed, and the “Release Code” is the 

value returned when a button is released.
There are also a small number of codes that are unique to this command that cannot be gener-

ated by the keyboard, making this command a bit more useful. These extended codes allow for 

better control of the 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 Toggle without the need of a release code).

101   

Discrete power on (always turns on power).

102   

Discrete power off (always turns off power).

103   

Sequence through inputs.

104   

Discrete breakaway disable (always turn off breakaway).

105   

Discrete audio breakaway.

106   

Discrete video breakaway.

107   

Turn on relay 1

108   

Turn off relay 1

109   

Turn on relay 2

110   

Turn off relay 2

The ‘0’ code has special meaning. When returned in a Query Response string it means there are 

no keys waiting in the buffer. When issue by the controller, it acts like an Exit key, used to exit 

setup modes, similar to pressing the Power Button, but it will be ignored if the HDMI5 is not in 

the setup mode. By issuing ‘0’ codes, the HDMI5 can be returned to a known state, regardless of 

any possible setup state it might be in.
The ‘0’ button code is also device independent. Its use, and value, does not change between 

Zektor devices like the other codes may (and most likely will).

Query Status

In the Master / Slave mode of operation, this command is used to poll for any pending state 

changes that are waiting to be read. By issuing this command and testing the returned bit-

mapped value, the controller can determine what has changed in the HDMI5 since the last time 

it was polled.
This command allows the controller to quickly poll the HDMI5, using only one command, instead 

of issuing a string of commands to check if the power state has changed, or if a new input has 

been selected, a button pressed, etc.. The Query Status command is used to determine if 

any-

thing

 has changed, and then based on the results of the Query Status, only the query commands 

needed are issued to read the new states of the HDMI5.

Once the new state is read by issuing the proper query command, the associated flag will be 

reset.

HDMI5 Command Ref. 

(Cont’d)

HDMI5 Command Ref. 

(Cont’d)

Содержание 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...

Отзывы: