ID: 0
Serves for initiating communication with the package and provides information about the package.
This command is versioned, the client requests a version of this command and the package returns the response of that version if it supports it. If the version is higher than what the package supports, it responds with the highest version it knows.
If the client would request a version that is lower than what the package supports, the package should respond with a version 0 in its response to indicate it no longer supports a version this low.
Note: What is now referred to as version 1 of this command originally had no notion of versioning,but the mechanism is designed so that the version 1 is compatible with the original command.
| Offset | Size | Name | Mandatory | Description |
|---|---|---|---|---|
| 0 | 1 | version |
No | Requested version of the INFO command. In case the package doesn't support version this high, it shall respond with the highest version of the command it supports. Default value: 1 |
| 1 | 1 | flags |
No | Only for version 2. Flags for toggling extra information in the response (currently unused). |
| Offset | Size | Name | Description |
|---|---|---|---|
| 0 | 1 | major_minor_version |
Package major and minor version encoded in a single number: major * 10 + minor |
| 1 | 1 | build_number |
Always 1. |
| 2 | 1 | leds_type |
LEDs type:0: None1: Internal3: External Note: In this version, "External" is 3 and 2 is never returned. |
| Offset | Size | Name | Description |
|---|---|---|---|
| 0 | 1 | version |
The actual version of this INFO command response, for the case a lower than requested version is returned.Note: version 1 does not return this, but its first byte in the response is always higher than 10, which can be used to distinguish the version. |
| 1 | 1 | flags |
The flags from the request repeated in the response, to indicate which extra data are present. |
| 2 | 20 | package_name |
The package name string. Zero-padded to 20 bytes, not zero-terminated in case all 20 bytes are used. |
| 22 | 1 | package_major_version |
Major version of the package. |
| 23 | 1 | package_minor_version |
Minor version of the package. |
| 24 | 1 | package_patch_version |
Patch version of the package. |
| 25 | 20 | package_version_suffix |
An optional package version suffix string. Zero-padded to 20 bytes, not zero-terminated in case all 20 bytes are used. |
| 45 | 4 | git_hash |
First 4 bytes of the git hash from which the package was built. |
| 49 | 4 | tick_rate |
Tick rate of the system in Hz. This number can be used to convert time measured in ticks in other commands (namely REALTIME_DATA) to seconds by dividing by this number. Currently the tick rate for VESC is always 10000. |
| 53 | 4 | capabilities |
Capability flags of the package:0x1: LED lighting.0x2: LED lighting is external through a module.0x4: GNSS data available.0x80000000: Data Recording. See the Realtime Value Tracking page for details. |
| 57 | 1 | extra_flags |
Extra flags: [empty] |