4 - 9
PN 074-550-P1C
SQC-310 Operating Manual
4.2 SQC-310 Communications Protocol
SQC-310 communicates with a host computer using an ASCII based protocol.
SQC-310 defaults to 19200 bps baud rate, 8 data bits, and no parity. The baud rate
can be changed in the SQC-310 System menu, but is always 8 data bits with no
parity.
SQC-310 only responds to commands received. It never initiates communications.
The command protocol sent to SQC-310 is:
<sync character> <length character> <1 to n data characters> <CRC1><CRC2>
The sync character is always an exclamation point (!). Following the sync
character is the length character. This is the number of characters in the packet
(not counting the sync, length, and CRC characters). The length character has a
decimal 34 added to it so there cannot accidentally be a sync character (!)
embedded in the packet.
Following the length character are the command and data characters as detailed
later in this section. After the data are two CRC characters.
NOTE: The number of parameters included in one command/response and the
order of the parameters is not significant for either Set or Get messages.
The format of the return string is a series of parameter numbers and
commas followed by their respective values. Each set is separated by
spaces.