beautypg.com

Sshqgl[ $ 5hprwh $fwlydwlrq – Grass Valley XSwitch Feb 01 2005 User Manual

Page 37

background image

36 ©2001 XSWITCH Installation and Operations Manual

$SSHQGL[ $ 5HPRWH $FWLYDWLRQ

OTHER EXAMPLES:

Known: For all rest of examples, DEST=4, SRC=254.

1.

command string

=

“4”

LEN

=

1

input string for CRC

=

Chr$(4)+Chr$(254)+Chr$(LEN)+command string

CRC program returns:

complete CRC string

=

“FFFF80BC”

LSB needed from CRC

=

“BC”

MSB needed from CRC

=

“80”

packet string

=

Chr$(4)+Chr$(254)+Chr$(LEN)+command string

+Chr$(&HLSB)+Chr$(&HMSB)

2.

command string

=

“1,P,255,0,0”

LEN

=

11

input string for CRC

=

Chr$(4)+Chr$(254)+Chr$(LEN)+command string

CRC program returns:

complete CRC string

=

“FFFFC67F”

LSB needed from CRC

=

“7F”

MSB needed from CRC

=

“C6”

packet string

= Chr$(4)+Chr$(254)+Chr$(LEN)+command

string

+Chr$(&HLSB)+Chr$(&HMSB)

3.

command string

=

“2,S”

LEN

=

3

input string for CRC

=

Chr$(4)+Chr$(254)+Chr$(LEN)+command string

CRC program returns:

complete CRC string

=

“12E4”

LSB needed from CRC

=

“E4”

MSB needed from CRC

=

“12”

packet string

= Chr$(4)+Chr$(254)+Chr$(LEN)+command

string

+Chr$(&HLSB)+Chr$(&HMSB)

4.

command string

=

“2,R,61,20”

LEN

=

9

input string for CRC

=

Chr$(4)+Chr$(254)+Chr$(LEN)+command string

CRC program returns:

complete CRC string

=

“FFFF8758”

LSB needed from CRC

=

“58”

MSB needed from CRC

=

“87”

packet string= Chr$(4)+Chr$(254)+Chr$(LEN)+command string +Chr$(&HLSB)+Chr$(&HMSB)

5.

command string

=

“2,3,131,20”

LEN

=

10