5.2.4.2.1 MSG_CONF_STREAM

Used to create a new stream. The type of the stream can be either EVENT, TEXT, or DATA. Each stream must be given a unique ID.

FieldSizeValuesDescription
Message ID1 byte0x20
Data length2 bytes5 + label length (N) + parameter length (M)
ID2 bytes0x0000-0xFFFFID of stream
Type1 byteSTREAM_DATA_TYPEStream type
Mode1 byte

0 = Incoming (normal)

1 = Incoming (single value)

2 = Outgoing

Stream mode/direction

Direction is defined seen from target

State1 byte

0 = ON

1= OFF

Stream state
LabelN bytesNull-terminated stringLabel of the data stream
ParametersM bytesByte arrayParameters specific to stream type
Table 5-52. STREAM_DATA_TYPE
Type codeData typeParametersData size
0EVENTNone0 bytes
1STRINGNoneN bytes
2UINT_8None1 byte
3INT_8None1 byte
4UINT_16None2 bytes
5INT_16None2 bytes
6UINT_32None4 bytes
7INT_32None4 bytes
8XY_8None2 bytes
9XY_16None4 bytes
10XY_32None8 bytes
11BOOLNone1 byte
12FloatNone4 bytes
13DoubleNone8 bytes
20Grid

Base data type (1 byte, e.g. 6 for UINT_32)

Width of grid (1 byte)

Depth of grid (1 byte)

Size of base data type * Width * Depth

The XY data types are combos of X and Y coordinates. If the format is XY_8 the data will contain one byte of X-coordinate and one byte of Y-coordinate. For XY_16 the data will contain two bytes of X-coordinate and two bytes of Y-coordinates and for XY_32 each coordinate will be four bytes long.