7526 DCT Reference


Checksum Characters

Messages transmitted and received by the terminal must have two ASCII checksum characters (CS1, CS2) immediately prior to the ETX character.

Note:

The only exceptions are the poll message from the terminal controller, all ACK and NAK responses, and the DC1 response from the terminal when a file download is required.

The 7526 DCT calculates the checksum and transmits two checksum characters (CS1, CS2). The terminal controller program may choose to strip off and ignore the checksum characters, however, it is recommended that the checksum be calculated, compared to the received checksum, and an ACK or data returned to the DCT (or a NAK if the comparison fails).

When transmitting to the terminal, the terminal controller program may replace the calculated checksum characters with two ASCII space characters, causing the DCT to bypass the checksum calculation.

Checksum characters are calculated as follows:

The terminal responds with a NAK if the checksum it calculates does not match the checksum received from the terminal controller.