Software User Manual - Argos 3D-P320
Last change: 2 February 2016
Version 0.14
© Bluetechnix 2016
Page 16 | 70
Note 1): For the CRC16 calculation the CRC-CCITT is used (Polynom: 0x1021, start value: 0). Please ask the
Bluetechnix support for an implementation example of the CRC-CCITT.
Subcommand
SubCommand
Description
Ignored
For boot loader and application update
Table 3-14: Flash update subcommand description
Flags
Flags
Description
Bit 0
1: Ignore DataCrc32
Table 3-15: Flash update flag description
Result codes
Please refer to Table 3-5.
3.1.6
Read data from Flash
Command frame
Addr
Field
Type
Value
Description
0x00
Preamble
Uint16 (high
byte first)
0xA1EC
Unique identifier, start of header
0x02
ProtocolVersion Uint8
0x03
This document refers to protocol version V3.0
0x03
Command
Uint8
0x8D: Read intrinsic ToF sensor calibration
file
0x8E: Read intrinsic color sensor calibration
file
0x8F: Read extrinsic calibration file
0x04
SubCommand
Uint8
Ignored
0x05
Status
Uint8
Ignored
0x06
Flags
Uint16
Refer to table
Optional flags
3)
0x08
Length
Uint32 (high
byte first)
<# of bytes to
write>
The size of the binary file to flash
0x0C
FlashAddress
Uint32 (high
byte first)
Ignored
0x10
Reserved (42
bytes)
Uint8[]
Ignored
0x3A
DataCrc32
Uint32 (high
byte first)
<CRC32
checksum>
Checksum over <Data>
2)
0x3E
HeaderCrc16
Uint16 (high
byte first)
<CRC16
checksum>
Checksum over 60 bytes of Header: 0x02 –
0x3D
1)
0x40
Data
Uint8[]
<binary loader
file>
The file to read as a binary byte stream
Table 3-16: Flash update command frame
Note 1): For the CRC16 calculation the CRC-CCITT is used (Polynom: 0x1021, start value: 0). Please ask the
Bluetechnix support for an implementation example of the CRC-CCITT.