background image

6

HDMI5 Component Video Switch 

7

HDMI5 Component Video Switch

and the Error Response is always the string:

!ERR<CR><LF>

By parsing only the prefix characters ‘+’ and ‘!’, a programmer can chose to ignore the error 

codes and simply look at the first characters of the response strings and use them as a pass / 

fail indicator when issuing a command.
All response strings always end with a 

<CR><LF>

.

A Query Response string always starts with the ‘=’ characters and is followed by a command 

string indicating the parameter being returned. This is better explained in an example.
Here’s an example of a querying a device for its light intensity settings:

LI?<CR>       

Sent: Light Intensity Query command

+<CR><LF>     

Received: Acknowledgement of command

=LI 2,13<CR><LF> 

Received: Light Intensity Query Response

Note that a “

+<CR><LF>

” followed the command string. A command string is 

always

 followed 

by either an Acknowledgment (as in this case) or an Error Response. This consistency allows 

a driver to use a single routine to issue a command and check for an Acknowledgement or an 

Error Response String, whether or not the command queries for a response.
An example of an error response:

IL?<CR>   

Sent: Command characters transposed, no such command

!2<CR><LF> 

Received: Error Response indicating unknown command

In this case the Error Response string “

!2<CR><LF>

” was issued instead of the acknowledg-

ment string since the command was not recognized.

Response String Checksums and CRC-8 Checkcodes

Response strings can be programmed to have checksums or CRC-8 checkcodes appended to 

them, the syntax is identical to the Command Structure’s checksum and CRC-8 handling.
Checksum and CRC-8 are turned on and off by issuing the proper command. On most devices 

this is the 

“Control Settings”

 command.

Only the Error Response and The Query Response strings will have checksum and CRC-

8 checkcodes appended to them. The Acknowledgment Response will always consist of 

“+<CR><LF>”. Anything else must be assumed to be a communication error.

An example with checksumming enabled, while querying for LED intensities is:

LI?<CR>

+<CR><LF>

=LI 2,13;239<CR><LF>

An example with CRC-8 responses enabled is:

LI?:194<CR>

+<CR><LF>

=LI 2,13:87<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 CRC-8 code is appended to a command it will be checked and 

validated by the device, regardless of the “Response Checksum / CRC-8” settings.
When Response Checksums, or Response CRC-8 Checkcodes are enabled, Error Response 

strings will also have checksum and CRC-8 codes appended to them.

Master / Slave and Asynchronous Modes of Operation

The K.I.S.S.™ protocol can be used in a Master / Slave mode, where responses are only sent 

when requested, or in an Asynchronous mode, where responses are sent whenever the opera-

tional state of the device changes, such as a front panel button being pressed.

The Master / Slave Mode of Operation

In the Master / Slave mode, the controller requests information from the device at polled 

intervals. The control program assumes the role of the master, and the device is operated in the 

slave mode. No information will be sent from the device without first receiving a request from the 

controller.
For controllers that cannot handle having information being sent to them in the background, or at 

unspecified times, the Master / Slave setting is ideal, since all state changes will be logged but 

not sent until requested by the controller.

To allow for more efficient Master / Slave operations, there is a Query Status command available 

to the controller that return the status state of the device as a bitmap of flags indicating which 

states have changed and need querying. This allows the controller to poll, using a single com-

mand, and then based on those flag settings, issue only the commands needed to read the new 

state(s) of the device.

The Master / Slave mode also allows for a predictable communications flow. A communication 

sequence is always started by the controller by issuing a command. The response will always be 

either the Acknowledgement Response, or an Error Response, followed by (if a query command 

was issued) the Query Response. For instance:

LI ?<CR>      

Sent: Controller issues a query command.

+<CR><LF>     

Received: Acknowledgment (or possible Error) Response.

=LI 2,13<CR><LF> 

Received: Query Response.

In the Master / Slave mode, the Acknowledgement or Error Response will always be the next re

-

K.I.S.S.™ 

(Continued)

K.I.S.S.™ 

(Continued)

Summary of Contents for HDMI5

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 17: ...Z E K T O R 12675 Danielson Ct Suite 401 Poway CA 92064 858 748 8250 www zektor com...

Reviews: