User Guide

VMU931 User Guide
4.2.3 Messages format
There are 2 types of messages the sensor can send:
Text string
Data
In the case of a string of text, the message will have the following structure:
Table 4.4: Message structure of the VMU931 (text string)
Name
Format Length Value
Start of message Byte 1 byte 0x02
Size of message Byte 1 byte (Varies)
(Reserved) Byte 1 byte (Reserved)
Text string String (Varies) (Varies)
End of message Byte 1 byte 0x03
In the case of data, the message will have the following structure:
Table 4.5: Message structure of the VMU931 (data)
Name
Format Length Value
Start of message Byte 1 byte 0x01
Size of message Byte 1 byte (Varies)
Type of message Char 1 byte (Varies)
Data (Varies) (Varies) (Varies)
End of message Byte 1 byte 0x04
For every data message, the character indicating the type of message corresponds to the command used
to toggle the data. For example, if you toggle the accelerometers with the command ’a’, the accelerometers
message will have an ’a as its type.
© 2017 Variense, Inc. All rights reserved. Page 10