summaryrefslogtreecommitdiffstats
path: root/openxc.proto
diff options
context:
space:
mode:
authorEric Marsman <emarsman@gmail.com>2016-02-29 16:34:44 +0000
committerEric Marsman <emarsman@gmail.com>2016-02-29 16:34:44 +0000
commit7dd8702c223c3509e216b72331fdf7a5375f48b7 (patch)
tree66cc82ee1a854fade27a0c39c20773e5a9ef97f3 /openxc.proto
parent77718cfc70f76b687154756344e1a52b6f734ec9 (diff)
parent8987262fa7e8510030d11e42edb4128868a6e81c (diff)
Merge branch 'messagepackadditions' of https://github.com/openxc/openxc-message-format into HEAD
Diffstat (limited to 'openxc.proto')
-rw-r--r--openxc.proto10
1 files changed, 9 insertions, 1 deletions
diff --git a/openxc.proto b/openxc.proto
index bb54c77..6d41325 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 {
@@ -37,6 +37,8 @@ message ControlCommand {
PAYLOAD_FORMAT = 6;
PREDEFINED_OBD2_REQUESTS = 7;
MODEM_CONFIGURATION = 8;
+ RTC_CONFIGURATION = 9;
+ SD_MOUNT_STATUS = 10;
}
optional Type type = 1;
@@ -46,6 +48,7 @@ message ControlCommand {
optional PayloadFormatCommand payload_format_command = 5;
optional PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
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;