Get_Parameter_Info - GMP231

GMP231 User Guide

Document code
M211501EN
Revision
E
Language
English
Product
GMP231
Document type
User guide

Get_Parameter_Info command (ID 83hex) reads the properties of a single parameter from the GMP231. The command is useful for adapting to parameters that have been added in a new software version. If the requested parameter ID is not valid, data type Unknown Parameter ID is returned.

Table 1. Get_Parameter_Info invoke message
Message segment Length Content
I2C address 1 byte I2C address (write)
Command ID 1 byte Always 83hex
Device address 1 byte See Table 2.
Frame length 1 byte Always 06hex.
Data 1 byte Parameter ID
Checksum 2 bytes See Checksum.
Table 2. Get_Parameter_Info response message
Message segment Length Content
I2C address 1 byte I2C address (read)
Status 1 byte See Status byte.
Command ID 1 byte Always 83hex
Device address 1 byte See Table 2.
Frame length 1 byte
Data 1 byte Parameter ID
1 byte Parameter datatype. See the following table.
1 byte Parameter length in bytes.
1 byte Parameter persistence. Describes if the parameter value is volatile (lost at reset) or non-volatile (survives reset). See Table 4.
≥8 bytes Parameter name. If name is shorter than 8 bytes, extra bytes are filled with 00hex.
Checksum 2 bytes See Checksum.
Table 3. Parameter data types
Code Meaning
0 Unknown parameter ID
1 Byte
2 Integer (16-bit)
3 Unsigned integer (16–bit)
4 Float (32-bit)
5 String
Table 4. Parameter persistence
Code Meaning
0 Void
1 Volatile
2 Non volatile