P 1<CR> An example of a command that uses a bitmapped parameter is the CVS4’s “XS settings<CR>” will turn on the power of most Zektor devices. The spaces between the ‘P’ and ‘1’ are optional. command, which is defined like this: Since commands consist of alpha characters only, there can never be a ‘P1’ command and ‘P1’...
XS +4<CR> 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 The will set the ‘IR’ bit, and have no affect on the others, and the new “XS” value would be: 13 CRC-8 checkcodes.
Acknowledgement Response, or an Error Response, followed by (if a query command LI?<CR> was issued) the Query Response. For instance: +<CR><LF> LI ?<CR> Sent: Controller issues a query command. =LI 2,13;239<CR><LF> +<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- HDMI5 Component Video Switch HDMI5 Component Video Switch...
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 HDMI5 Component Video Switch HDMI5 Component Video Switch...
Checksums and CRC-8’s (Cont’d) For comparison, here are the same examples and their associated CRC-8 checkcodes: Checksums and CRC-8 Checkcodes Defined LI 2,3:16 The use of a checksums or CRC-8 checkcodes can increase the reliability of communications LI 3,2:114 between the controller and any Zektor device. IL 2,3:22 A checksum is calculated by using an unsigned byte as an accumulator, and adding together all KJ 2,3:145 the ASCII characters of a command string, up to and including the ‘;’ character, while ignoring The CRC-8 checkcode easily catches these errors.
// polynomial mask printf( "%s%c%u", TestString, token, (unsigned char)crc8); #define CRC8_INIT 0xFF // initial value return (0); void crcByte( unsigned char *crc8, char cc) unsigned char lcrc8; // local copy of CRC-8 value int bitcount; lcrc8 = *crc8; // get local copy of CRC-8 // update CRC-8 with 8 new bits lcrc8 ^= cc; // test each bit against CRC-8 for (bitcount = 0; bitcount < 8; bitcount++) // 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 12 HDMI5 Component Video Switch HDMI5 Component Video Switch...
Error 5: The number of parameters given does not match the number allowed by this command. Power Control Error 6: To prevent conflicts between the front panel Setup Mode and the serial port settings, Turn on / off, or toggle the power state of the HDMI5. when the HDMI5 is in the Setup Mode, many parameters become read only and any attempt at P 0 writing them will return Error 6. The “Front Panel Button Emulation” command with button code Turn off power.
The uses for this command are two fold: Query for current settings. 1) The value returned from this command are the same values used to teach the HDMI5 new IR codes over the serial port. (See the “Set Learnable IR Command Codes” command).
HDMI5 Command Ref. (Cont’d) HDMI5 Command Ref. (Cont’d) keep the size of the IR response small, this command sends the 72 bit IR code as an 18 digit The value ‘ircmd’ refers to the IR commands that the HDMI5 is able to learn, they are: hexadecimal value. IRCmd Description IR ? Query for the IR code of the last IR command received.
When issue by the controller, it acts like an Exit key, used to exit In the Master / Slave mode, only the last 16 button presses will be logged between queries, setup modes, similar to pressing the Power Button, but it will be ignored if the HDMI5 is not in after that, new button presses overwrite the old ones in the internal buffer and will be lost to the the setup mode.
“IR ?” command. Disabling the IR sensor (IRS) and enabling IR control (IRE), allows the HDMI5 to respond to IR signals through the IR jack, any signal received by the IR sensor will be This command allows control over the following: ignored.
Response String: Extended Control Settings =XE settings In the Asynchronous mode of operation, the HDMI5 will transmit state changes as they occur. This command allows individual control over which state changes will be sent. Where ‘settings’ is a bitmapped parameter: This HDMI5 allows control over the following states:...
The four modes are: Response String: Mode 1 = Toggle Mode. =RL rly_n,state Mode 2 = Momentary Mode. Mode 3 = Channel Select. Mode 4 = Channel Select Momentary Mode. 26 HDMI5 Component Video Switch HDMI5 Component Video Switch...
Page 16
The following examples set Relay ‘1’ to the four different modes: RLS 1,0,,0,0 Set to “Mode 0”, ‘timing’ values are ignored RLS 1,1,time,0,0 Set to “Mode 1”, time not set to 0 RLS 1,0,time,vid_msk,aud_msk Set to “Mode 3”, at least one mask not set to 0 RLS 1,1,time,vid_msk,aud_msk Set to “Mode 4”, at least one mask not set to 0 28 HDMI5 Component Video Switch HDMI5 Component Video Switch...
Page 17
Z E K T O R 1267 Danielson Ct Suite 01 Poway, CA 206 88•78•820 www.zektor.com...