Communication Protocol; Command And Return String; Transaction Id (Tid) - Proceq ZG8150 Technical Manual

Inline glossmeter
Table of Contents

Advertisement

5 Communication protocol

The communication with the ZG8150 is completely string based. All commands are composed of
ASCII-character strings. This allows an easy control of the device, for example with a commercially
available terminal program such as "HyperTerminal".

5.1 Command and return string

The communication works synchronous, with the following communication scheme:
3.
A command is sent to the device
4.
The command is executed
5.
and a return string is sent from the device
Only after a complete sequence a new command is accepted.
In scan mode or continuous mode another scheme is used:
6.
a command to start the scan mode or continuous mode is sent to the device
7.
the device starts the respective mode
8.
and sends data, until the mode is stopped
Only after this mode is stopped, new commands can be sent.
A command string is basically structured like this:
CMD | TID | PARAMS:
Name
CMD
TID
PARAMS
For separation of the different values the pipe character "|" (ASCII 0x7C) is used.
As terminator is the character colon ":" (ASCII 0x3A) used.
e.g. 2|xy|3:

5.2 Transaction ID (TID)

The recommended value ranges of the 2 ASCII characters are following:
0x21...0x2F
0x3B...0x40
0x42...0x7B
0x7D...0x7E
Return strings from device which are not triggered explicitly by user side will use only ASCII
numbers (0x30...0x39).
10. August 2020
Description
The command defines which operation is executed.
The transaction ID can be used to identify a communication transfer.
The parameters are added after the TID. The number of parameter can
differ from command to command.
© Copyright 2020, PROCEQ SA
9

Advertisement

Table of Contents
loading

Table of Contents