Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get_vin to message control command enum type. #42

Open
wants to merge 3 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions JSON.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ response into the outgoing data stream.
### Device ID Query

The `device_id` command triggers the VI to inject a unique device ID (e.g. the
MAC address of an included Bluetooth module) into into the outgoing data stream.
MAC address of an included Bluetooth module) into the outgoing data stream.

If no device ID is available, the response message will be "Unknown".

Expand All @@ -324,10 +324,24 @@ If no device ID is available, the response message will be "Unknown".
**Response**

{ "command_response": "device_id", "message": "0012345678", "status": true}

### VIN Query

The `get_vin` command triggers the VI
get the VIN and inject it into the outgoing data stream.

**Request**

{ "command": "get_vin"}

**Response**

{ "command_response": "get_vin",
"message": "00000000123456789", "status": true}

### Platform Query

The `platform` command triggers the VI to inject a platform identifier into into the outgoing data stream.
The `platform` command triggers the VI to inject a platform identifier into the outgoing data stream.

**Request**

Expand Down
1 change: 1 addition & 0 deletions openxc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ message ControlCommand {
RTC_CONFIGURATION = 9;
SD_MOUNT_STATUS = 10;
PLATFORM = 11;
GET_VIN = 12;
}

Type type = 1;
Expand Down