aboutsummaryrefslogtreecommitdiffstats
path: root/build/resources/main/VehicleIntelligentDataCollector.proto
blob: 12f46d6703d94fda16e31fb8dc5d17518fd4e7da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
syntax = "proto3"; /**
*    <h2>Intelligent Data Collection</h2>
*    <p>This set of messages can be used for self describing messages using key value pairs, for dynamic data collection..</p>
*
*    <h3>Message Orchestration</h3>
* <p><img src="doc/images/Intelligent_Data_Collection.png" alt="HeaderMessage.puml"></p>
*
*    <h3>MQTT Topic Design</h3>
*    <table>
*    <thead>
*    <tr>
*    <th>Direction</th>
*    <th>Subscribe Topic</th>
*    <th>Publish Topic</th>
*    </tr>
*    </thead>
*    <tbody>
*    <tr>
*    <td>Vehicle to Cloud</td>
*    <td>data/#</td>
*    <td>data/device_id</td>
*    </tr>
*    <tr>
* <td>Cloud to Vehicle</td>
*    <td>device_id/data</td>
*    <td>device_id/data</td>
*    </tr>
*    </tbody>
*    </table>
*/
package messages;
import "messages/VehicleMessageHeader.proto";

message PublishData {
//  <p> Publish data in Key Value Pairs as defined in the data collection descriptor provided by offboard systems such as AWS IoT Fleetwise.
  VehicleMessageHeading vehicleMessageHeading = 1;
  repeated dataPayload DataPayload = 2;
}

message dataPayload {
  string key = 1;
  string stringValue = 2;
  double doubleValue =3;
  int32 intShortValue = 4;
  int64 intLongValue =5;
  bool boolValue = 6;
  bytes bytesValue = 7;
}

message PublishDataCollectionDescriptor {
  bytes dataCollectionScheme = 1;
}

message PublishVehicleModelMapping {
  bytes dataCollectionScheme = 1;
}