From f85330631f108368d9bcc43accacf3c07071a6db Mon Sep 17 00:00:00 2001 From: Ja'mez Stokes <49651248+jstoke53@users.noreply.github.com> Date: Tue, 14 Jul 2020 10:17:52 -0400 Subject: [PATCH 1/3] Add get_vin to message control command enum type. --- openxc.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/openxc.proto b/openxc.proto index fc6082f..a6c8a77 100644 --- a/openxc.proto +++ b/openxc.proto @@ -45,6 +45,7 @@ message ControlCommand { RTC_CONFIGURATION = 9; SD_MOUNT_STATUS = 10; PLATFORM = 11; + GET_VIN = 12; } Type type = 1; From 90b74dfccfc515f08bc273ac26b5b312606c505a Mon Sep 17 00:00:00 2001 From: Ja'mez Stokes <49651248+jstoke53@users.noreply.github.com> Date: Thu, 16 Jul 2020 10:23:06 -0400 Subject: [PATCH 2/3] Update JSON page to include the new get_vin command. --- JSON.mkd | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/JSON.mkd b/JSON.mkd index c972d84..a9a0c59 100644 --- a/JSON.mkd +++ b/JSON.mkd @@ -324,6 +324,19 @@ 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 to injest a unique vehicle VIN. + +**Request** + + { "command": "get_vin"} + +**Response** + + { "command_response": "device_id", + "message": "00000000123456789", "status": true} ### Platform Query From 77698b285952f6bddf4e3ba06333321e7febce44 Mon Sep 17 00:00:00 2001 From: Ja'mez Stokes <49651248+jstoke53@users.noreply.github.com> Date: Thu, 16 Jul 2020 15:57:23 -0400 Subject: [PATCH 3/3] minor edit and fix typos. --- JSON.mkd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/JSON.mkd b/JSON.mkd index a9a0c59..309613f 100644 --- a/JSON.mkd +++ b/JSON.mkd @@ -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". @@ -327,7 +327,8 @@ If no device ID is available, the response message will be "Unknown". ### VIN Query -The `get_vin` command triggers the VI to injest a unique vehicle VIN. +The `get_vin` command triggers the VI +get the VIN and inject it into the outgoing data stream. **Request** @@ -335,12 +336,12 @@ The `get_vin` command triggers the VI to injest a unique vehicle VIN. **Response** - { "command_response": "device_id", + { "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**