summaryrefslogtreecommitdiffstats
path: root/openxc.proto
diff options
context:
space:
mode:
authorEric <emarsman@users.noreply.github.com>2016-03-17 11:45:28 -0400
committerEric <emarsman@users.noreply.github.com>2016-03-17 11:45:28 -0400
commit10925cf17bd22d406f31892cfcb7264de4024431 (patch)
treec54accc5ae4ff0c3e8cdc80cf0d6d51c31ca2b5f /openxc.proto
parent07abdd1ed8c3eaf4565a55ec9fcb805f3b6607c8 (diff)
parent3fdb20368c293dce5c69911f7024183191f86da2 (diff)
Merge pull request #27 from openxc/messagepackadditions
Prep for C5 SD & RTC support with Messagepackadditions
Diffstat (limited to 'openxc.proto')
-rw-r--r--openxc.proto14
1 files changed, 11 insertions, 3 deletions
diff --git a/openxc.proto b/openxc.proto
index bb54c770..80ffc507 100644
--- a/openxc.proto
+++ b/openxc.proto
@@ -13,7 +13,7 @@ message VehicleMessage {
optional DiagnosticResponse diagnostic_response = 4;
optional ControlCommand control_command = 5;
optional CommandResponse command_response = 6;
- optional uint32 uptime = 7;
+ optional uint64 timestamp = 7;
}
message CanMessage {
@@ -36,7 +36,9 @@ message ControlCommand {
ACCEPTANCE_FILTER_BYPASS = 5;
PAYLOAD_FORMAT = 6;
PREDEFINED_OBD2_REQUESTS = 7;
- MODEM_CONFIGURATION = 8;
+ MODEM_CONFIGURATION = 8;
+ RTC_CONFIGURATION = 9;
+ SD_MOUNT_STATUS = 10;
}
optional Type type = 1;
@@ -45,7 +47,8 @@ message ControlCommand {
optional AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
optional PayloadFormatCommand payload_format_command = 5;
optional PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
- optional ModemConfigurationCommand modem_configuration_command = 7;
+ optional ModemConfigurationCommand modem_configuration_command = 7;
+ optional RTCConfigurationCommand rtc_configuration_command = 8;
}
message DiagnosticControlCommand {
@@ -69,6 +72,7 @@ message PayloadFormatCommand {
enum PayloadFormat {
JSON = 1;
PROTOBUF = 2;
+ MESSAGEPACK = 3;
}
optional PayloadFormat format = 1;
@@ -114,6 +118,10 @@ message ModemConfigurationCommand {
optional ServerConnectSettings serverConnectSettings = 3;
}
+message RTCConfigurationCommand {
+ optional uint32 unix_time = 1;
+}
+
message CommandResponse {
optional ControlCommand.Type type = 1;
optional string message = 2;