Zektor CVS4 User Manual

High definition component video switch
Hide thumbs Also See for CVS4:

Advertisement

Quick Links

Z E K T O R
H o m e T he at e r Swi tc he s
Digital Video / Component Video / Multichannel Audio
CVS4
(Supplement to the CVS4 User Guide)
High Definition Component Video Switch
Rev 1
03/04/2006

Advertisement

Table of Contents
loading

Summary of Contents for Zektor CVS4

  • Page 1 Z E K T O R H o m e T he at e r Swi tc he s Digital Video / Component Video / Multichannel Audio CVS4 (Supplement to the CVS4 User Guide) High Definition Component Video Switch Rev 1 03/04/2006...
  • Page 2: Table Of Contents

    CVS4 Command Reference ..........10 The CVS4 K.I.S.S.™ Command Reference ....... . 10 Error Response Codes .
  • Page 3: The Rs-232 Port

    The RS-232 Port The RS-232 port on the CVS4 is the same format, and pinout, as a PC-modem, and uses the same type of cable as a standard serial modem would, which is a standard straight through cable. Do not use a cable that is marked as a “Null Modem” cable.
  • Page 4: Keep It Simple Serialâ„¢)

    P1<CR> 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’.
  • Page 5: Using Bitmapped Parameters

    - 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- CVS4 Component Video Switch...
  • Page 6: Command Checksums And Crc-8 Checkcodes

    ‘;’ character, and a CRC-8 checkcode must immediately follow the ‘:’ character, anything else, including whitespace, will cause a syntax error to be returned. Similarly the <CR> must immediately follow the checksum or checkcode parameter or a syntax error will CVS4 Component Video Switch...
  • Page 7: Clearing The Command Buffer

    <ESC> character can be issued to clear the buffer and reset any checksum or CRC-8 checkcode calculations. This is useful when communications with the Zektor device is being initialized and the state of the device is unknown. An <ESC> will clear the command buffer and reset all checksums and CRC-8 checkcodes.
  • Page 8: Response String Checksums And Crc-8 Checkcodes

    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> CVS4 Component Video Switch...
  • Page 9: Master / Slave And Asynchronous Modes Of Operation

    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- CVS4 Component Video Switch...
  • Page 10 Query Response internally (by looking for the ‘=’ character), and only passing through non-query responses. By using such a routine the above scenario becomes: LI?<CR> Sent: Controller issues command +<CR><LF> Received: Acknowledgement (or Error) Response CVS4 Component Video Switch...
  • Page 11 Using K.I.S.S.™ in the Asynchronous mode is nearly as easy as using it in the Master / Slave mode, allowing for the creation of simple to write, but highly effective device drivers. CVS4 Component Video Switch...
  • Page 12: Cvs4 Command Reference

    This section defines the K.I.S.S.™ commands that are available to the users of the CVS4. Note: The CVS4 has been designed as somewhat of a drop in replacement for one of our previ- ous products, the HDS4.2. As such, some CVS4 commands exist for backwards compatibility with the HDS4.2.
  • Page 13: The Cvs4 Command Set

    CRC-8 checkcodes that may be appended to all commands, nor does it show the required <CR> that terminates all commands. The response strings are the actual strings returned from CVS4, which (except for the cases of backward compatibility with the HDS4.2) return the same format as described above. The format does not show the optional checksum or CRC-8 checkcodes that may be appended to all response strings if enabled, nor does it show the <CR><LF>...
  • Page 14: Output Mapping

    Query for current setting. Response String: =O in Where: in = Current input being mapped to the CVS4’s output. Channel Select (HDS4.2 Version) Note: This command exists for backwards compatibility with the HDS4.2, use the “Output Map- ping” command in new designs.
  • Page 15: Front Panel Lighting Mode

    Where: in = Currently selected channel. Note 1: If the CVS4 is off, this command will turn on power before selecting channel. Note 2: For backward compatibility with the HDS4.2, there is no space after the command in the response string.
  • Page 16: Front Panel Light Intensities

    = Current BRIGHT level settings. The intensities range from 0=Off, to 44=Maximum brightness. Front Panel Light Intensities (HDS4.2 Version) Note: This command exists for backwards compatibility with the HDS4.2, use the “LI” version of this command in new designs. 14 CVS4 Component Video Switch...
  • Page 17: Save Power On Default Settings

    IR code detected was used to control the CVS4. The uses for this command are two fold: 1) The value returned from this command are the same values used to teach the CVS4 new IR codes over the serial port. (See the “Set Learnable IR Command Codes” command).
  • Page 18: Set Learnable Ir Command Codes

    CVS4 Command Reference (Cont’d) 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.
  • Page 19: Front Panel Button Emulation

    CVS4 Command Reference (Cont’d) The value ‘ircmd’ refers to the IR commands that the CVS4 is able to learn, they are: IR Cmd Description Power Toggle Select Input 1 Select Input 2 Select Input 3 Select Input 4 Discrete Power On Discrete Power Off Setting an ‘ircmd’...
  • Page 20 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 CVS4 is not in the setup mode.
  • Page 21: 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 CVS4 since the last time it was polled.
  • Page 22: Control Settings (Hds4.2 Version)

    The IR control (IR) and the IR jack (IJ), work differently when disabled. Disabling IR control, by setting the ‘IR’ bit to zero, 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 ?”...
  • Page 23: Extended Control Settings

    Extended Control Settings In the Asynchronous mode of operation, the CVS4 will transmit state changes as they occur. This command allows individual control over which state changes will be sent. This CVS4 allows control over the following states: •...
  • Page 24 CVS4 Command Reference (Cont’d) transmissions, if the ‘AS’ bit is set to zero, then the CVS4 will operate solely in the Master / Slave mode regardless of the settings of this command. XE settings Set the enable bits to ‘settings’.
  • Page 25 CVS4 Command Reference (Cont’d) CVS4 Component Video Switch...
  • Page 26: 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 ‘;’...
  • Page 27: Source Code Example Of Calculating A Checksum

    // Checksum all of 'TestString[]' index = 0; while (TestString[index] != '\0') cksum += TestString[index++]; // Add the checksum token character ';' to checksum cksum += token; // Print the results printf( "%s%c%u", TestString, token, (unsigned char)cksum); return (0); CVS4 Component Video Switch...
  • Page 28: Source Code Example Of Calculating A Crc-8 Checkcode

    // if resultant bit was a 1, shift and xor in mask // else, just shift if (lcrc8 & 0x01) lcrc8 = ((lcrc8 >> 1) & 0x7F) ^ CRC8_POLY; else lcrc8 = (lcrc8 >> 1) & 0x7F; *crc8 = lcrc8; // return new CRC8 26 CVS4 Component Video Switch...
  • Page 29 // Add the CRC-8 token character ':' to CRC-8 crcByte( &crc8, token); // Finish with CRC8 by doing a one's compliment crc8 = ~crc8; // Print the results printf( "%s%c%u", TestString, token, (unsigned char)crc8); return (0); CVS4 Component Video Switch...
  • Page 30 This page left intentionaly (nearly) blank. 2 CVS4 Component Video Switch...
  • Page 31 This page left intentionaly (nearly) blank. CVS4 Component Video Switch...
  • Page 32 Z E K T O R Z E K T O R 126 Danielson Ct Suite 401 Poway, CA 2064 •4•20 www.zektor.com...

Table of Contents