LPMS-BE2 LPBus Command List
Firmware Function / Command List
Summary
Acknowledged / Not-acknowledged Identifiers | ||||
Identifier | Name | Parameter | Response | Default |
0 (00h) | Ā | Ā | Ā | |
1 (01h) | Ā | Ā | Ā |
Register Value Save and Reset Command | ||||
Identifier | Name | Parameter | Response | Default |
4 (04h) | NONE | ACK/NACK | Ā | |
5 (05h) | NONE | ACK/NACK | Ā |
Mode Switching Commands | ||||
Identifier | Name | Parameter | Response | Default |
6 (06h) | NONE | ACK/NACK | Ā | |
7 (07h) | NONE | ACK/NACK | Ā |
Sensor Status Command | ||||
Identifier | Name | Parameter | Response | Default |
8 (08h) | NONE | UInt32 | 1 |
Get Data Commands | ||||
Identifier | Name | Parameter | Response | Default |
9 (09h) | NONE | Ā | Ā |
Device Info | ||||
Identifier | Name | Parameter | Response | Default |
20 (14h) | NONE | Char[24] | Ā | |
21 (15h) | NONE | Char[24] | Ā | |
22 (16h) | NONE | Char[24] | Ā | |
23(17h) | NONE | Char[24] | Ā |
Data Transmission Commands | ||||
Identifier | Name | Parameter | Response | Default |
30 (1Eh) | UInt32 | ACK/NACK | Ā | |
31 (1Fh) | NONE | UInt32 | Ā |
IMU ID Settings Commands | ||||
Identifier | Name | Parameter | Response | Default |
32 (20h) | UInt32 | ACK/NACK | Ā | |
33 (21h) | NONE | UInt32 | 1 |
Stream Frequency Commands | ||||
Identifier | Name | Parameter | Response | Default |
34 (22h) | UInt32 | ACK/NACK | Ā | |
35 (23h) | NONE | UInt32 | 100Hz |
Deg/Rad Output Commands | ||||
Identifier | Name | Parameter | Response | Default |
36 (24h) | UInt32 | ACK/NACK | Ā | |
37 (25h) | NONE | UInt32 | 0 |
Reference Setting and Offset Reset Commands | ||||
Identifier | Name | Parameter | Response | Default |
38 (26h) | UInt32 | ACK/NACK | Ā | |
39 (27h) | NONE | ACK/NACK | Ā |
Accelerometer Settings Commands | ||||
Identifier | Name | Parameter | Response | Default |
50 (32h) | Int32 | ACK/NACK | Ā | |
51 (33h) | NONE | Int32 | 4g |
Gyroscope Settings Commands | ||||
Identifier | Name | Parameter | Response | Default |
60 (3Ch) | UInt32 | ACK/NACK | Ā | |
61 (3Dh) | NONE | UInt32 | 2000dps | |
62 (3Eh) | NONE | ACK/NACK | Ā | |
64 (40h) | UInt32 | ACK/NACK | Ā | |
65 (41h) | NONE | UInt32 | 1 |
Filter Settings Command | ||||
Identifier | Name | Parameter | Response | Default |
90 (5Ah) | UInt32 | ACK/NACK | Ā | |
91 (5Bh) | NONE | UInt32 | 1 |
UART / RS232 Settings Command | ||||
Identifier | Name | Parameter | Response | Default |
130 (82h) | UInt32 | ACK/NACK | Ā | |
131 (83h) | NONE | UInt32 | 115200 | |
132 (84h) | UInt32 | ACK/NACK | Ā | |
133 (85h) | NONE | UInt32 | 0 | |
134 (86h) | Int8[4] | ACK/NACK | Ā | |
135 (87h) | NONE | Char[4] | 0x24 0x0A 0x00 0x00 | |
136 (88h) | UInt32 | ACK/NACK | Ā | |
137 (89h) | NONE | UInt32 | 1 |
Sensor Data Timestamp Manipulation | ||||
Identifier | Name | Parameter | Response | Default |
152 (98h) | UInt32 | ACK/NACK | Ā |
Details
Acknowledged and Not-acknowledged Identifiers
Identifier | Name | Parameter | Response | Default |
0 (00h) | REPLY_ACK | Ā | Ā | Ā |
Description Confirms a successful SET command. |
Identifier | Name | Parameter | Response | Default |
1 (01h) | REPLY_NACK | Ā | Ā | Ā |
Description Reports an error during processing a SET command. |
Register Value Save and Reset Command
Identifier | Name | Parameter | Response | Default |
4 (04h) | WRITE_REGISTERS | None | ACK/NACK | Ā |
Description Writes the currently set parameters to flash memory. Settings will be preserved after power cycle. Response ACK (success) or NACK (error) |
Identifier | Name | Parameter | Response | Default |
5 (05h) | RESTORE_FACTORY_VALUE | None | ACK/NACK | Ā |
Description Resets the sensor parameters to factory default values. Please note that upon issuing this command your currently set parameters will be erased. Response ACK (success) or NACK (error) |
Mode Switching Commands
Identifier | Name | Parameter | Response | Default |
6 (06h) | GOTO_COMMAND_MODE | None | ACK/NACK | Ā |
Description Switches to command mode. In command mode the user can issue commands to the firmware to perform calibration, set parameters etc. Response ACK (success) or NACK (error) |
Identifier | Name | Parameter | Response | Default |
7 (07h) | GOTO_STREAM_MODE | None | ACK/NACK | Ā |
Description Switches to streaming mode. In this mode data is continuously streamed from the sensor. Response ACK (success) or NACK (error) |
Sensor Status Commands
Identifier | Name | Parameter | Response | Default |
8 (08h) | GET_SENSOR_STATUS | None | UInt32 | 1 |
Description Gets the status of the sensor, i.e whether the sensor is in command mode or streaming mode. Response: 0: Command mode 1: Streaming mode |
Get Data Commands
Identifier | Name | Parameter | Response | Default |
9 (09h) | GET_IMU_DATA | None | Raw binary | Ā |
Description Retrieves the latest set of sensor data. A data packet will be composed as defined by GET_TRANSMIT_DATA (1Fh). The data format (LPBus or ASCII) can be retrieved with GET_UART_FORMAT (85h). Data precision of sensor data can be retrieved with GET_LPBUS_DATA_PRECISION (88h). Response: See the LP-BUS protocol explanation for a description of the measurement data format. More information to be added. |
Device Info
Identifier | Name | Parameter | Response | Default |
20 (14h) | GET_SENSOR_MODEL | NONE | Char[24] | Ā |
Description Gets the sensor model. Response Depending on sensor model, the response includes: LPMS-BE1, LPMS-BE2 Unused spaces in returned array are initialized to ā\0ā |
Identifier | Name | Parameter | Response | Default |
21 (15h) | GET_FIRMWARE_INFO | NONE | Char[24] | Ā |
Description Gets the sensor firmware version information. Response Firmware version, eg: BE2-1.1.2-20210816 Unused spaces in returned array are initialized to ā\0ā |
Identifier | Name | Parameter | Response | Default |
22 (16h) | GET_SERIAL_NUMBER | NONE |