summaryrefslogtreecommitdiffstats
path: root/openxc.proto
diff options
context:
space:
mode:
Diffstat (limited to 'openxc.proto')
-rw-r--r--openxc.proto15
1 files changed, 14 insertions, 1 deletions
diff --git a/openxc.proto b/openxc.proto
index 6b79c36f..cc135a6c 100644
--- a/openxc.proto
+++ b/openxc.proto
@@ -4,11 +4,12 @@ option java_package = "com.openxc";
option java_outer_classname = "BinaryMessages";
message VehicleMessage {
- enum Type { RAW = 1; TRANSLATED = 2; }
+ enum Type { RAW = 1; TRANSLATED = 2; DIAGNOSTIC = 3; }
optional Type type = 1;
optional RawMessage raw_message = 2;
optional TranslatedMessage translated_message = 3;
+ optional DiagnosticMessage diagnostic_message = 4;
}
message RawMessage {
@@ -17,6 +18,18 @@ message RawMessage {
optional uint64 data = 3;
}
+message DiagnosticMessage {
+ optional int32 bus = 1;
+ optional uint32 message_id = 2;
+ optional uint32 mode = 3;
+ optional uint32 pid = 4;
+ optional bool success = 5;
+ optional uint32 negative_response_code = 6;
+ // TODO we are capping this at 8 bytes for now - need to change when we
+ // support multi-frame responses
+ optional bytes payload = 7;
+}
+
message TranslatedMessage {
enum Type { STRING = 1; NUM = 2; BOOL = 3;
EVENTED_STRING = 4; EVENTED_NUM = 5; EVENTED_BOOL = 6;}