summaryrefslogtreecommitdiffstats
path: root/openxc.proto
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-03-06 17:01:46 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-03-06 17:01:46 -0500
commit99f01a6d6da8012c297e2e7ccb2b8eaa69a9c4d1 (patch)
treefb8c971fbdd4a50ac4bd2610302305bf78445b67 /openxc.proto
parent3e91f2023d1161432605aff4af6616a589e63b5c (diff)
Add CommandResponse type to VehicleMessage (from VI to host).
Diffstat (limited to 'openxc.proto')
-rw-r--r--openxc.proto9
1 files changed, 8 insertions, 1 deletions
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;