添加警告类型,设备状态添加线路id

This commit is contained in:
tiger_zhou 2023-08-17 14:03:26 +08:00
parent 68c46628cc
commit 7376f35cd1
3 changed files with 24 additions and 2 deletions

View File

@ -44,4 +44,14 @@ enum AlertType {
SWITCH_DW_LOST = 9; SWITCH_DW_LOST = 9;
// //
SWITCH_FW_LOST = 10; SWITCH_FW_LOST = 10;
//
AXLE_LED = 11;
//
AXLE_LED_RED = 12;
//
AXLE_LED_RED_MOST = 13;
//
AXLE_LED_ORANGE = 14;
//
AXLE_LED_ORANGE_MOST = 15;
} }

View File

@ -31,6 +31,7 @@ message Rtu {
int32 rtuId = 6; int32 rtuId = 6;
// //
int64 timestamp = 7; int64 timestamp = 7;
int32 lineId = 8;
} }
message Station { message Station {
@ -64,6 +65,7 @@ message Station {
int32 rtuId = 26; int32 rtuId = 26;
// //
int64 timestamp = 27; int64 timestamp = 27;
int32 lineId = 28;
} }
message Signal { message Signal {
@ -96,6 +98,7 @@ message Signal {
int32 rtuId = 25; int32 rtuId = 25;
// //
int64 timestamp = 26; int64 timestamp = 26;
int32 lineId = 27;
} }
message Entry { message Entry {
@ -108,6 +111,7 @@ message Entry {
int32 rtuId = 5; int32 rtuId = 5;
// //
int64 timestamp = 6; int64 timestamp = 6;
int32 lineId = 7;
} }
message Switch { message Switch {
@ -146,6 +150,7 @@ message Switch {
int32 rtuId = 30; int32 rtuId = 30;
// //
int64 timestamp = 31; int64 timestamp = 31;
int32 lineId = 32;
} }
message Track { message Track {
@ -170,6 +175,7 @@ message Track {
int32 rtuId = 15; int32 rtuId = 15;
// //
int64 timestamp = 16; int64 timestamp = 16;
int32 lineId = 17;
// track限速类型 // track限速类型
enum LimitType { enum LimitType {
Unknown = 0; Unknown = 0;
@ -208,6 +214,7 @@ message Platform {
int32 rtuId = 18; int32 rtuId = 18;
// //
int64 timestamp = 19; int64 timestamp = 19;
int32 lineId = 20;
} }
message Scada { message Scada {
@ -220,6 +227,7 @@ message Scada {
int32 rtuId = 5; int32 rtuId = 5;
// //
int64 timestamp = 6; int64 timestamp = 6;
int32 lineId = 7;
} }
message WaterProofDoor { message WaterProofDoor {
@ -234,6 +242,7 @@ message WaterProofDoor {
int32 rtuId = 7; int32 rtuId = 7;
// //
int64 timestamp = 8; int64 timestamp = 8;
int32 lineId = 9;
} }
message WorkArea { message WorkArea {
@ -244,6 +253,7 @@ message WorkArea {
int32 rtuId = 3; int32 rtuId = 3;
// //
int64 timestamp = 4; int64 timestamp = 4;
int32 lineId = 5;
} }
message Gama { message Gama {
@ -254,6 +264,7 @@ message Gama {
int32 rtuId = 3; int32 rtuId = 3;
// //
int64 timestamp = 4; int64 timestamp = 4;
int32 lineId = 5;
} }
message TrainMode { message TrainMode {
@ -305,4 +316,5 @@ message OccNccFepNetwork {
// true 线(server) // true 线(server)
// false // false
bool active = 2; bool active = 2;
int32 lineId = 3;
} }

View File

@ -212,7 +212,7 @@ message Section {
repeated string axleCountings = 7; // (&&) repeated string axleCountings = 7; // (&&)
repeated string children = 8; // id()/id() repeated string children = 8; // id()/id()
string destinationCode = 9; // string destinationCode = 9; //
bool turning = 10; // bool turning = 10; //
} }
/** 逻辑区段 */ /** 逻辑区段 */
@ -257,7 +257,7 @@ message RelatedRef {
DevicePort devicePort = 3; // DevicePort devicePort = 3; //
} }
message Separator { // message Separator {//
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
string separatorType = 3; string separatorType = 3;