background image

6

CVS4 Component Video Switch 

7

CVS4 Component Video Switch

2) This command gives the controller full access to the CVS4’s IR sensor and Zektor’s IIR™ 

algorithm. This is a very reliable way of adding IR control to any project. The IR codes generated 

by Zektor’s IIR™ algorithm are immune to timing differences between universal remote control 

manufacturers and to the timing errors associated with condition of the remote control’s battery.
Note 1: The Zektor’s IIR™ algorithm works with any remote control code that is time modulated. 

This is pretty much every type of IR code except the Phillips RC-5, and RC-6 codes.
Note 2: Because very few controllers can handle a 72 bit decimal value, and in an effort to keep 

the size of the IR code small, this command sends the 72 bit IR code as an 18 digit hexadecimal 

value.

IR ?       

Query for the IR code of the last IR command received.

IR        

Query for the IR code of the last IR command received.

Response String:

=IR 

ircode

Where:

 

ircode = 18 hex digits (0-9, A-F), representing the most recent IR code received.

This command returns a single digit ‘0’ if there are no IR codes waiting to be read.

Set Learnable IR Command Codes

This command is used to set, or retrieve, the current IR codes associated with the learnable IR 

commands. This is useful for “cloning” the IR codes learned in one CVS4 into another CVS4.

IRC 

ircmd

,

ircode 

Set the ‘ircmd’ to use the IR code ‘ircode’.

IRC 

ircmd

,?   

Query for the ‘ircode’ for IR command ‘ircmd’.

IRC ?      

Query for all ‘ircmd’ settings.

Response String:

=IRC 

ircmd

,

ircode

Where:

 

ircmd = IR command number being set / retrieved (See Table).

 

ircode = 72 bit IR code (See: “IR” command).

The value ‘ircmd’ refers to the IR commands that the CVS4 is able to learn, they are:

IR Cmd  Description

1   

Power Toggle

2   

Select Input 1

3   

Select Input 2

4   

Select Input 3

5   

Select Input 4

6   

Discrete Power On

7   

Discrete Power Off

8   

Sequence (Through Inputs)

Setting an ‘ircmd’ to ‘ircode = 0’, causes that command to no longer respond to IR.

Front Panel Button Emulation

This command allows access to the internal keyboard handling of the CVS4, and is very hard-

ware dependent. Button values returned by the CVS4 may and most likely will be different than 

button values returned by other Zektor devices.
Each button generates a value upon being pressed, and a different value upon release.
The Power toggle button also generates a unique value when held for 4 seconds, which is used 

to enter the setup mode. Other combinations may also generate unique codes.
This command allows the controller to detect front panel button presses even when the front 

panel is disabled. This allows the controller very tight control over the CVS4. By disabling the 

front panel (setting the FP bit to ‘0’ in the “

Control Settings

” command), and by then processing 

the front panel button presses of the CVS4, a controller can redefine the operations of the CVS4. 
When used in combination with the “

Read Last IR Code

” command, even IR commands can be 

handled by the controller, outside the CVS4’s firmware.
Because of the tight link between this command and the CVS4’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 

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

changes).

b1,bn...   

 

Send one or more button codes to the CVS4.

B ?       

Query for any buffered button presses.

B         

Query for any buffered button presses.

Response String:

=B 

b1,bn...

CVS4 Command Reference 

(Cont’d)

CVS4 Command Reference 

(Cont’d)

Summary of Contents for CVS4

Page 1: ...Z E K T O R Home Theater Switches Digital Video Component Video Multichannel Audio Rev 2 07 25 2006 High Definition Component Video Switch CVS4 Supplement to the CVS4 User Guide...

Page 2: ...ttings 19 Control Settings HDS4 2 Version 20 Extended Control Settings 21 Checksums and CRC 8 s 24 Checksums and CRC 8 Checkcodes Defined 24 Differences between a Checksum and a CRC 8 Checkcode 24 Sou...

Page 3: ...n 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 su...

Page 4: ...wed 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: ...R 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 C...

Page 6: ...ghout 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 indicatin...

Page 7: ...Checkcode did not match the calculated one The command will be ingnored Error 5 The number of parameters given does not match the number allowed by this command Error 6 To prevent conflicts between th...

Page 8: ...HDS4 2 there is no space after the command in the response string Note 3 For backward compatibility with the HDS4 2 this response string is sent in the Asyn chronous mode when a channel status has ch...

Page 9: ...Where dim Current DIM level setting bright Current BRIGHT level settings The intensities range from 0 Off to 44 Maximum brightness Note For backward compatibility with the HDS4 2 there is no space af...

Page 10: ...earn they are IR Cmd Description 1 Power Toggle 2 Select Input 1 3 Select Input 2 4 Select Input 3 5 Select Input 4 6 Discrete Power On 7 Discrete Power Off 8 Sequence Through Inputs Setting an ircmd...

Page 11: ...ess of any possible setup state it might be in The 0 button code is also device independent It use and value does not change between Zek tor devices like the other codes may and most likely will Query...

Page 12: ...ro keeps the CVS4 from responding to IR codes however the front panel sensor remains operational and any codes received can still be queried for by using the IR command Disabling the IR jack by settin...

Page 13: ...al Value 128 64 32 16 8 4 2 1 Bit Position 7 6 5 4 3 2 1 0 Name CTL LMO IRC IRR BTN LIN SEL PWR Factory Settings 0 0 0 0 0 0 1 1 PWR 1 Power State has changed SEL 1 Selection Input Output Mapping has...

Page 14: ...Checksum 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 articl...

Page 15: ...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 value...

Page 16: ...28 CVS4 Component Video Switch 29 CVS4 Component Video Switch This page left intentionaly nearly blank This page left intentionaly nearly blank...

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

Reviews: