Get_Parameter command (ID 81hex)
reads parameter values. You can use it to read both measurement results and operational
parameters. If the master tries to read more bytes than message size, the slave sends
FFhex bytes.
Table 1. Get_Parameter invoke message
Message segment |
Length |
Content |
I2C address |
1 byte |
I2C address (write) |
Command ID |
1 byte |
Always 81hex |
Device address |
1 byte |
See Table 2. |
Frame length |
1 byte |
Always 06hex |
Data |
1 byte |
ID of parameter to be read |
Checksum |
2 bytes |
See Checksum. |
Table 2. Get_Parameter response message
Message segment |
Length |
Content |
I2C address |
1 byte |
I2C address (read) |
Status |
1 byte |
See Status byte. If requested parameter ID was unknown, NACK bit is set
in the status byte. |
Command ID |
1 byte |
Always 81hex |
Device address |
1 byte |
See Table 2. |
Frame length |
1 byte |
Varies according to data length,
07hex ... 39hex. |
Data |
1 byte |
ID of parameter |
|
1 ... 50 bytes |
Value of parameter. If requested parameter ID is unknown, these data bytes are left out of the response. |
Checksum |
2 bytes |
See Checksum. |