The session ID and request ID make it possible that several commands or answers can
be sent t
o further communication between 2 partners without consideration. Several
commands can also be transported in a TCP/IP packet.
With TCP/IP, all CoLa 2.0 connect requests must be sent to port 2122 of the server
(SICK sensor). With the TCP/IP socket of the client, you can configure TCP_NODELAY so
that even small TCP/IP packages can be sent immediately and the end-to-end commu‐
nication is accelerated.
7.2.2.1 Layer 7.1, message layer
The header of the layer 7.1, message layer, ensures that the rest of the telegram is
t
ransmitted to the receiver that is described in the header. If the telegram is to be for‐
warded to the SICK sensor network, each hub (SICK sensor in motion) changes the
header as described in the following.
Figure 9: Header of the layer 7.1, message layer
T
able 8: Header of the layer 7.1, message layer
Element Length (bytes) Function
STx 4 Start. 4 STx symbols (0x02) mark the start of each
t
elegram. This pattern is not exclusive. Nevertheless, it
allows you to find the start of a telegram after a synchro‐
nization loss in connection with the parameter length.
Length 4 (Big Endian) Length. The number of bytes that follow as the rest of
t
he telegram. After <length> bytes, 4 STx symbols
should follow again, which mark the start of the next
telegram.
HubCntr 1 Hub counter.
F
or devices that do not support a SICK sensor network,
the value is always 0.
NoC 1 Number of cascades. This byte contains two different
d
ata elements:
•
If the MSB (Most Significant Bit) is 0, then the
telegram is a command from the client to the server
(SICK sensor)
•
If the MSB is 1, then the telegram is an answer from
the server (SICK sensor) to the client.
•
For devices that do not support a SICK sensor net‐
work, the 7 LSBs (Least Significant Bits) are always
0.
7.2.2.2 Layer 7.2, command layer
The layer 7.2, command layer consists of a header and information.
D
ata flow takes place in 2 directions:
•
From a client to a SICK sensor (server) for execution
•
From a SICK sensor (server) for evaluation
7 ANNE
X
30
T E C H N I C A L I N F O R M A T I O N | microScan3, outdoorScan3 8022708/2019-04-15 | SICK
Subject to change without notice