summaryrefslogtreecommitdiffstats
path: root/openxc.proto
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-03-26 10:48:29 -0400
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-03-26 10:48:29 -0400
commitf1c1af529c32284c6b81a6ba4fcada464ce4401f (patch)
tree7fac9042777fe890e97b73f99e35cd7cc670c42d /openxc.proto
parent03a5af0f0978d372bb9e5668700ed39eb8c2fd83 (diff)
Refactor diagnostic fields for decoding payload.
Diffstat (limited to 'openxc.proto')
-rw-r--r--openxc.proto9
1 files changed, 5 insertions, 4 deletions
diff --git a/openxc.proto b/openxc.proto
index daccea2d..5b7e78b4 100644
--- a/openxc.proto
+++ b/openxc.proto
@@ -34,6 +34,8 @@ message CommandResponse {
}
message DiagnosticRequest {
+ enum DecodedType { NONE = 1; OBD2 = 2; }
+
optional int32 bus = 1;
optional uint32 message_id = 2;
optional uint32 mode = 3;
@@ -42,10 +44,9 @@ message DiagnosticRequest {
// support multi-frame responses
optional bytes payload = 5;
optional bool multiple_responses = 6;
- optional double factor = 7;
- optional double offset = 8;
- optional double frequency = 9;
- optional string name = 10;
+ optional double frequency = 7;
+ optional string name = 8;
+ optional DecodedType decoded_type = 9;
}
message DiagnosticResponse {