Skip to main content
FW version: Stable

Read/Write Driver Parameters

This document describes how to read or write most driver parameters of the ESCx controller.

tip

This protocol is not designed for service configuration, such as motor characterization, etc. That is why only some parameters are exposed. Always use the SWTools to gain full access to the service settings.

info
  • All listed datagram types are unicast with SID = 24
  • All listed payloads use big-endian format
warning

Payload byte positions differ from transfer layer byte positions (CAN, UART, USB, Bluetooth...) Before implementation, carefully review message creation guides for:

Message - Read Parameter with Index

Retrieves Driver parameters with array indexing support.

Payload byteDescription
00x02
1ID of requested parameter
2Array member index. Use 0x00 for non-array items. Value 0xFF is reserved for error indication.

Response

Payload byteDescription
00x42
1ID of requested parameter
2Array member index. Use 0x00 for non-array items. Value 0xFF indicates error code in following two bytes.
3-6Data (length depends on parameter datatype, big-endian, MSB first)

Message - Write Parameter with Index

Modifies Driver parameters with array indexing support.

Payload byteDescription
00x03
1ID of requested parameter
2Array member index. Use 0x00 for non-array items. Value 0xFF is reserved for error indication.
3-6Data (length depends on parameter datatype, big-endian, MSB first)

Response

Payload byteDescription
00x43
1ID of requested parameter
2Array member index. Use 0x00 for non-array items. Value 0xFF indicates error code in following two bytes.
3-4Omitted if successful. Otherwise contains parameter error response.

Message - Read Parameter with Index and Datatype Conversion

Retrieves Driver parameters with datatype conversion support.

Payload byteDescription
00x12
1ID of requested parameter
2Type code. Use 0x00 for native format; other values request conversion to specified format when possible.

Response

Payload byteDescription
00x52
1ID of requested parameter
2Array member index. Use 0x00 for non-array items. Value 0xFF indicates error code in following two bytes.
3-6Data (length depends on parameter datatype, big-endian, MSB first)

Message - Write Parameter with Index and Datatype Conversion

Modifies Driver parameters with datatype conversion support.

Payload byteDescription
00x13
1ID of requested parameter
2Type code. Use 0x00 for native format; other values specify input data format.
3-6Data (length depends on parameter datatype, big-endian, MSB first)

Response

Payload byteDescription
00x53
1ID of requested parameter
2Array member index. Use 0x00 for non-array items. Value 0xFF indicates error code in following two bytes.
3-4Omitted if successful. Otherwise contains parameter error response.

Datatypes Code

CodeDatatype
0x00Not specified (native datatype)
0x01int8
0x02uint8
0x03int16
0x04uint16
0x05int32
0x06uint32
0x09float
0x0Bstring

Parameter Error Response

CodeDescription
-1Parameter ID out of range (invalid value)
-2Parameter does not exist
-3Variable exists but is not a parameter (write not allowed)
-4Value below parameter minimum
-5Value above parameter maximum
-6Invalid value for discrete parameter

Message - Read API Version and Driver Type

Payload byteDescription
00x00

Response

Payload byteDescription
00x40
1Driver type: VECTOR = 0x20, BLDC = 0x10
2-5[uint32] Driver API version

Current API version: 2