diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-09-27 19:56:21 -0400 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-09-27 19:56:21 -0400 |
commit | e3162f7da4b6b5ad422bccdb9b2a4e1b144ab9c9 (patch) | |
tree | 8562c39987fad59481f60f7953a769fbcc31754b /openxc.proto | |
parent | edf010f735fcb8ace870b07b71db06c2c7cf2476 (diff) |
Add a command to change message format while running.
Diffstat (limited to 'openxc.proto')
-rw-r--r-- | openxc.proto | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openxc.proto b/openxc.proto index c7f75913..97a6ebb6 100644 --- a/openxc.proto +++ b/openxc.proto @@ -28,12 +28,14 @@ message ControlCommand { DIAGNOSTIC = 3; PASSTHROUGH = 4; ACCEPTANCE_FILTER_BYPASS = 5; + MESSAGE_FORMAT = 6; } optional Type type = 1; optional DiagnosticControlCommand diagnostic_request = 2; optional PassthroughModeControlCommand passthrough_mode_request = 3; optional AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4; + optional MessageFormatCommand message_format_command = 5; } message DiagnosticControlCommand { @@ -53,6 +55,16 @@ message AcceptanceFilterBypassCommand { optional bool bypass = 2; } +message MessageFormatCommand { + enum MessageFormat { + JSON = 1; + BINARY = 2; + } + + optional int32 bus = 1; + optional MessageFormat format = 2; +} + message CommandResponse { optional ControlCommand.Type type = 1; optional string message = 2; |