RS-232C Adjustment

7Check Sum

This is data to which 2-Byte ASCII code is added to a data group returned by a QUEST command.

PC side

STX

ID

QUEST command

ETX

 

02 (hex)

2 Byte

3 Byte

03 (hex)

 

Set side

STX

QUEST command

Data

Check sum

ETX

02 (hex)

3 Byte

*Byte

2 Byte

03 (hex)

A detailed example is given below.

Example) The check sum value that is added when the QUEST command “QAA” returned the following 6-Byte data string.

Data group (ASCII)

QUEST command

Data (6 Byte)

Check sum

+ check sum

QAA

100128

xx (before calculation)

 

 

 

 

 

The data group is put into binary code one character at a time then displayed (only the last two digits are displayed).

 

47

41

41

31

30

30

31

32

38

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When these values are added the result is 1F5 (hex).

xx, where xx is 0B (hex), is added to 1F5 so the last two digits are 00 (in this case 200).

As the data format, OB is converted to ASCII code and sent.

The following data is output from the Plasma Display side.

STX

QUEST command

Data

Check sum

ETX

02 (hex)

QAA

100128

0B

03 (hex)

 

 

 

 

 

*The returned data group is in capital letters. Please keep this in mind when introducing it into the binary display.

7Examples of check sum applications

Example 1) When the data is missing 1 Byte

STX

QUEST command

 

 

 

Data

 

 

Check sum

ETX

02 (hex)

 

 

QAA

 

100 (missing data) 28

 

0B

03 (hex)

 

 

 

47

41

31

30

30

32

38

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The data group is calculated according to rules by a PC application, and when these values are added the result is 1C4 (hex).

A value xx, where xx is 3C (hex), is added to 1C4 such that the last two digits are 00 (in this case 200).

Here, the check sum [OB (hex)] and the calculated [3C (hex)] do not match.

Since they do not match, the PC application sends the QUEST command again and gets the data again.

Example 2) When 1 Byte of data in the data is unreadable

STX

QUEST command

 

 

 

Data

 

 

 

 

Check sum

ETX

02 (hex)

 

 

QAA

 

 

 

100328

 

 

 

 

0B

03 (hex)

 

 

 

47

41

31

30

33

30

32

38

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The data group is calculated according to rules by a PC application, and when these values are added the result is 1F7 (hex).

A value xx, where xx is 09 (hex), is added to 1F7 such that the last two digits are 00 (in this case 200).

Here, the check sum [OB (hex)] and the calculated [09 (hex)] do not match.

22

Since they do not match, the PC application sends the QUEST command

again and gets the data again.