Guide

16 bytes
16 bytes
Yes
12. Save parameters
Several commands write to parameters that can persist across power cycles. These parameters will only persist once
the Save parameters command has been written with the appropriate token. The safety token is used to prevent
unintentional writes and once a successful save has completed the token will expire.
Read
Write
Persists
-
uint16
-
14. Reset
Writing the safety token to this command will restart the LW24/C.
Read
Write
Persists
-
uint16
-
16. Stage firmware
The first part of uploading firmware to the LW24/C is to stage the data. This command accepts pages of the firmware,
each128 byteslong, and an index to indicate which page is being uploaded. Pages are created by dividing the firmware
upgrade file into multiple 128 byte chunks.
When writing to this command, use the following data structure:
Byte offset
Data
type
Name
Description
0x00
uint16
Page
index
The index of the page currently being
uploaded
0x02
128
bytes
Page data
The byte data of the page currently being
uploaded
When reading this command, or analysing its response after writing a page, the packet will contain anint32error code:
Value
Description
0 to
1000
Index of successfully written page
-1
Page length is invalid
-2
Page index is out of range
-3
Flash failed to erase
LW24/C/RS microLiDAR™ sensor - Product guide | Version 0 | 03 March 2022 Page 29 of 38