diff --git a/protos/device_status.proto b/protos/device_status.proto index 03a7ddc..5fc1950 100644 --- a/protos/device_status.proto +++ b/protos/device_status.proto @@ -27,6 +27,8 @@ message Rtu { string id = 5; //集中站id int32 rtuId = 6; + //消息时间戳 + int64 timestamp = 7; } message Station { @@ -58,6 +60,8 @@ message Station { string id = 25; //集中站id int32 rtuId = 26; + //消息时间戳 + int64 timestamp = 27; } message Signal { @@ -88,6 +92,8 @@ message Signal { string id = 24; //集中站id int32 rtuId = 25; + //消息时间戳 + int64 timestamp = 26; } message Entry { @@ -98,6 +104,8 @@ message Entry { string id = 4; //集中站id int32 rtuId = 5; + //消息时间戳 + int64 timestamp = 6; } message Switch { @@ -134,6 +142,8 @@ message Switch { int32 speedLimit = 29; //集中站id int32 rtuId = 30; + //消息时间戳 + int64 timestamp = 31; } message Track { @@ -156,6 +166,8 @@ message Track { LimitType limitType = 14; //限速[1:CBTC限速/2:连锁限速/4:同时限速] //集中站id int32 rtuId = 15; + //消息时间戳 + int64 timestamp = 16; // track限速类型 enum LimitType { Unknown = 0; @@ -192,6 +204,8 @@ message Platform { int32 stopTime = 17; //集中站id int32 rtuId = 18; + //消息时间戳 + int64 timestamp = 19; } message Scada { @@ -202,6 +216,8 @@ message Scada { string id = 4; //集中站id int32 rtuId = 5; + //消息时间戳 + int64 timestamp = 6; } message WaterProofDoor { @@ -214,6 +230,8 @@ message WaterProofDoor { string id = 6; //集中站id int32 rtuId = 7; + //消息时间戳 + int64 timestamp = 8; } message WorkArea { @@ -222,6 +240,8 @@ message WorkArea { string id = 2; //集中站id int32 rtuId = 3; + //消息时间戳 + int64 timestamp = 4; } message Gama { @@ -230,6 +250,8 @@ message Gama { string id = 2; //集中站id int32 rtuId = 3; + //消息时间戳 + int64 timestamp = 4; } message TrainMode { diff --git a/protos/train.proto b/protos/train.proto index 2b35cda..6a2133c 100644 --- a/protos/train.proto +++ b/protos/train.proto @@ -51,6 +51,8 @@ message TrainInfo { TrainRemove remove = 21; TrainBlock block = 22; TrainRecord record = 23; + //消息时间戳 + int64 timestamp = 24; } message NccWindow{ int32 nccWindow = 1; @@ -73,6 +75,8 @@ message TrainRemove{ string trainIndex = 6; // 列车编组号 string groupId = 7; + //消息时间戳 + int64 timestamp = 8; } //2.7.13 列车阻塞消息 @@ -102,7 +106,8 @@ message TrainBlock{ // 1:列车阻塞 // 0:列车没有阻塞 int32 blockFlag = 10; - + //消息时间戳 + int64 timestamp = 11; } //列车报点消息 @@ -147,6 +152,7 @@ message TrainRecord{ bool recordType = 12; /** 到发时间(7) 时间戳 精确到秒 10位长度 */ int64 recordTime = 13; - + //消息时间戳 + int64 timestamp = 14; }