UK
Object recognition sensor O2D22x
25
12.3 Protocol versions
The device supports 4 different protocol versions with different message format .
Version
Format
V1
<contents>CR LF
V2
<ticket><contents>CR LF
V3
<ticket><length>CR LF<ticket><contents>CR LF
V4
<length>CR LF<contents>CR LF
The replies by the device are preceded by length information;
however, not the commands to the device .
<contents> is the command to the device or the reply by the device (e .g . evalu-
ation results) .
<ticket>
is a character string of 4 digits 0-9, to be interpreted as decimal
number . If a message with a specific ticket is sent to the device, its
reply will contain the same ticket . Ticket 0000 is reserved for messa-
ges sent by the device independently .
<length>
is a character string beginning with the letter 'L' followed by 9 digits
to be interpreted as decimal number . This figure indicates the length
of the following data (<ticket><contents>CR LF) in bytes .
Factory setting and reset condition are V2 .
12.4 Command types
There are two different types of command to the device: actions and queries . Ac-
tions have the device do something, e .g . take an image and evaluate it .
Requests are used to retrieve information from the device .
The replies by the device are either status information, reply messages or results .
Results are transmitted by the device without a request being sent to the device
before .
The device transmits status information and reply messages as direct reply to
action commands or request commands .