X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=openxc.proto;h=c2b7f7c2159a4af5bb9fa6b8169112dd45226029;hb=68ce7c57c76496efb28c385428b0e2d797d8df74;hp=e0264c6b4a82b71900150b0f67a0ccafa800b3d9;hpb=d383e4cbc0bc89cd3bc3b69b0aa3ffc1862e9607;p=apps%2Fagl-service-can-low-level.git diff --git a/openxc.proto b/openxc.proto index e0264c6b..c2b7f7c2 100644 --- a/openxc.proto +++ b/openxc.proto @@ -28,14 +28,16 @@ message ControlCommand { DIAGNOSTIC = 3; PASSTHROUGH = 4; ACCEPTANCE_FILTER_BYPASS = 5; - MESSAGE_FORMAT = 6; + PAYLOAD_FORMAT = 6; + PREDEFINED_OBD2_REQUESTS = 7; } 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; + optional PayloadFormatCommand payload_format_command = 5; + optional PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6; } message DiagnosticControlCommand { @@ -55,13 +57,17 @@ message AcceptanceFilterBypassCommand { optional bool bypass = 2; } -message MessageFormatCommand { - enum MessageFormat { +message PayloadFormatCommand { + enum PayloadFormat { JSON = 1; - BINARY = 2; + PROTOBUF = 2; } - optional MessageFormat format = 1; + optional PayloadFormat format = 1; +} + +message PredefinedObd2RequestsCommand { + optional bool enabled = 1; } message CommandResponse {