diff --git a/protos/device_status.proto b/protos/device_status.proto index 5e1e16c..af7a554 100644 --- a/protos/device_status.proto +++ b/protos/device_status.proto @@ -9,6 +9,8 @@ message Rtu{ bool ipRtuStusInLocalCtrl = 2; bool ipRtuStusInCentralCtrl = 3; bool ipRtuStusInEmergencyCtrl = 4; + //设备唯一识别码,一般为设备名称 + string id = 6; } message Station{ @@ -36,6 +38,8 @@ message Station{ bool ipStaStusExpectCycle4 = 22; bool ipStaStusExpectCycle5 = 23; bool ipStaStusExpectCycle6 = 24; + //设备唯一识别码,一般为设备名称 + string id = 25; } message Signal{ @@ -62,12 +66,16 @@ message Signal{ bool yellowGreen = 21; bool blocked = 22; bool lampFailure = 23; + //设备唯一识别码,一般为设备名称 + string id = 24; } message Entry{ bool dirLeft = 1; bool dirRight = 2; bool dirLocked = 3; + //设备唯一识别码,一般为设备名称 + string id = 4; } message Switch{ @@ -98,6 +106,8 @@ message Switch{ bool ipSingleSwitchStusTsrBmReverse = 25; bool ipSingleSwitchStusBlocked2 = 26; bool ipSingleSwitchStusLostIndication = 27; + //设备唯一识别码,一般为设备名称 + string id = 28; } message Track{ @@ -112,6 +122,8 @@ message Track{ bool atcInvalid = 9; bool overlap = 10; bool blocked = 11; + //设备唯一识别码,一般为设备名称 + string id = 12; } message Platform{ @@ -128,12 +140,16 @@ message Platform{ bool downSkipstop = 11; bool upTrainSkipstop = 12; bool downTrainSkipstop = 13; + //设备唯一识别码,一般为设备名称 + string id = 14; } message Scada{ bool scadaOn = 1; bool scadaSinglePower = 2; bool scadaUnkown = 3; + //设备唯一识别码,一般为设备名称 + string id = 4; } message WaterProofDoor{ @@ -142,14 +158,20 @@ message WaterProofDoor{ bool doorAgreeClosed = 3; bool doorClosing = 4; bool doorOpenLock = 5; + //设备唯一识别码,一般为设备名称 + string id = 6; } message WorkArea{ bool ipStusWorkAreaEnable = 1; + //设备唯一识别码,一般为设备名称 + string id = 2; } message Gama{ bool ipStusGamaDisable = 1; + //设备唯一识别码,一般为设备名称 + string id = 2; } message TrainMode{ @@ -187,4 +209,6 @@ message TrainMode{ bool ipModeTrainDriveBlockCm = 32; bool ipModeTrainDriveModeRmr = 33; bool ipModeTrainDriveModeWash = 34; + //设备唯一识别码,一般为设备名称 + string id = 35; }