From 99f01a6d6da8012c297e2e7ccb2b8eaa69a9c4d1 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Thu, 6 Mar 2014 17:01:46 -0500 Subject: Add CommandResponse type to VehicleMessage (from VI to host). --- openxc.proto | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'openxc.proto') diff --git a/openxc.proto b/openxc.proto index 27ea931f..b7a1b22d 100644 --- a/openxc.proto +++ b/openxc.proto @@ -4,13 +4,15 @@ option java_package = "com.openxc"; option java_outer_classname = "BinaryMessages"; message VehicleMessage { - enum Type { RAW = 1; TRANSLATED = 2; DIAGNOSTIC = 3; CONTROL_COMMAND = 4; } + enum Type { RAW = 1; TRANSLATED = 2; DIAGNOSTIC = 3; CONTROL_COMMAND = 4; + COMMAND_RESPONSE = 5; } optional Type type = 1; optional RawMessage raw_message = 2; optional TranslatedMessage translated_message = 3; optional DiagnosticResponse diagnostic_response = 4; optional ControlCommand control_command = 5; + optional CommandResponse command_response = 6; } message RawMessage { @@ -26,6 +28,11 @@ message ControlCommand { optional DiagnosticRequest diagnostic_request = 2; } +message CommandResponse { + optional ControlCommand.Type type = 1; + optional string message = 2; +} + message DiagnosticRequest { optional int32 bus = 1; optional uint32 message_id = 2; -- cgit 1.2.3-korg