MSG_DATA_STREAM

This message is used to send data from all enabled streams to the PC. It is possible to send one or multiple samples of data from all streams in one single message. Only data from the enabled streams will be sent.

Field Size Values Description
Message ID 1 byte 0x40  
Data length 2 bytes 1 + number of streams (N) * (2 + num bytes for each stream (Xn) + length of each data sample in the stream (Xd))  
Number of streams (N) 1 byte 1 - 255  
Stream ID 2 bytes 0x0000-0xFFFF ID of stream X
Num bytes (Xn) 1 byte 1-255 Number of bytes from stream X
Stream X data sample M Dependent on data type of the stream (Xd)   The data of stream X

Note that the last row repeats for each sample in the stream and the three last rows repeat for each stream in the message.