2023-06-09 10:41:43 +08:00
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package state; //模型的可变的状态数据
|
|
|
|
|
option java_package = "club.joylink.xiannccda.dto.protos";
|
|
|
|
|
option java_outer_classname = "DeviceStatusProto";
|
2023-06-26 09:56:38 +08:00
|
|
|
|
enum DeviceType{
|
|
|
|
|
UNKNOW = 0;
|
|
|
|
|
RTU = 1;
|
|
|
|
|
STATION = 2;
|
|
|
|
|
SIGNAL = 3;
|
|
|
|
|
SWITCH = 4;
|
|
|
|
|
TRACK = 5;
|
|
|
|
|
ENTRY = 6;
|
|
|
|
|
PLATFORM = 7;
|
|
|
|
|
SCADA = 8;
|
|
|
|
|
WATERPROOF_DOOR = 9;
|
|
|
|
|
WORK_AREA = 10;
|
|
|
|
|
GAMA = 11;
|
|
|
|
|
|
|
|
|
|
}
|
2023-06-09 10:41:43 +08:00
|
|
|
|
|
|
|
|
|
message Rtu{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool ipRtuStusDown = 1;
|
|
|
|
|
bool ipRtuStusInLocalCtrl = 2;
|
|
|
|
|
bool ipRtuStusInCentralCtrl = 3;
|
|
|
|
|
bool ipRtuStusInEmergencyCtrl = 4;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 5;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Station{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool ipStaStusTermMode1 = 1;
|
|
|
|
|
bool ipStaStusTermMode2 = 2;
|
|
|
|
|
bool ipStaStusTermMode3 = 3;
|
|
|
|
|
bool ipStaStusTermMode4 = 4;
|
|
|
|
|
bool ipStaStusTermMode5 = 5;
|
|
|
|
|
bool ipStaStusTermMode6 = 6;
|
|
|
|
|
bool ipStaStusExpectTermMode1 = 7;
|
|
|
|
|
bool ipStaStusExpectTermMode2 = 8;
|
|
|
|
|
bool ipStaStusExpectTermMode3 = 9;
|
|
|
|
|
bool ipStaStusExpectTermMode4 = 10;
|
|
|
|
|
bool ipStaStusExpectTermMode5 = 11;
|
|
|
|
|
bool ipStaStusExpectTermMode6 = 12;
|
|
|
|
|
bool ipStaStusInCycle1 = 13;
|
|
|
|
|
bool ipStaStusInCycle2 = 14;
|
|
|
|
|
bool ipStaStusInCycle3 = 15;
|
|
|
|
|
bool ipStaStusInCycle4 = 16;
|
|
|
|
|
bool ipStaStusInCycle5 = 17;
|
|
|
|
|
bool ipStaStusInCycle6 = 18;
|
|
|
|
|
bool ipStaStusExpectCycle1 = 19;
|
|
|
|
|
bool ipStaStusExpectCycle2 = 20;
|
|
|
|
|
bool ipStaStusExpectCycle3 = 21;
|
|
|
|
|
bool ipStaStusExpectCycle4 = 22;
|
|
|
|
|
bool ipStaStusExpectCycle5 = 23;
|
|
|
|
|
bool ipStaStusExpectCycle6 = 24;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 25;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Signal{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool redOpen = 1;
|
|
|
|
|
bool redFlash = 2;
|
|
|
|
|
bool greenOpen = 3;
|
|
|
|
|
bool greenFlash = 4;
|
|
|
|
|
bool yellowOpen = 5;
|
|
|
|
|
bool yellowFlash = 6;
|
|
|
|
|
bool whiteOpen = 7;
|
|
|
|
|
bool whiteFlash = 8;
|
|
|
|
|
bool blueOpen = 9;
|
|
|
|
|
bool blueFlash = 10;
|
|
|
|
|
bool fleetMode = 11;
|
|
|
|
|
bool ctrlFleetMode = 12;
|
|
|
|
|
bool autoMode = 13;
|
|
|
|
|
bool ctrlAutoMode = 14;
|
|
|
|
|
bool extinguish = 15;
|
|
|
|
|
bool approachLock = 16;
|
|
|
|
|
bool protectRoute = 17;
|
|
|
|
|
bool autoRouteDisable = 18;
|
|
|
|
|
bool callon = 19;
|
|
|
|
|
bool yellowYellow = 20;
|
|
|
|
|
bool yellowGreen = 21;
|
|
|
|
|
bool blocked = 22;
|
|
|
|
|
bool lampFailure = 23;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 24;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Entry{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool dirLeft = 1;
|
|
|
|
|
bool dirRight = 2;
|
|
|
|
|
bool dirLocked = 3;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 4;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Switch{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool ipSingleSwitchStusCiOccupied = 1;
|
|
|
|
|
bool ipSingleSwitchStusCbtcOccupied = 2;
|
|
|
|
|
bool ipSingleSwitchStusLocked = 3;
|
|
|
|
|
bool ipSingleSwitchStusFailLocked = 4;
|
|
|
|
|
bool ipSingleSwitchStusNormal = 5;
|
|
|
|
|
bool ipSingleSwitchStusReverse = 6;
|
|
|
|
|
bool ipSingleSwitchStusBlocked1 = 7;
|
|
|
|
|
bool ipSingleSwitchStusJammed = 8;
|
|
|
|
|
bool ipSingleSwitchStusExpectLock = 9;
|
|
|
|
|
bool ipSingleSwitchStusExpectUnlock = 10;
|
|
|
|
|
bool ipSingleSwitchStusExpectNormal = 11;
|
|
|
|
|
bool ipSingleSwitchStusExpectReverse = 12;
|
|
|
|
|
bool ipSingleSwitchStusExpectBlock = 13;
|
|
|
|
|
bool ipSingleSwitchStusExpectUnblock = 14;
|
|
|
|
|
bool ipSingleSwitchStusInRoute = 15;
|
|
|
|
|
bool ipSingleSwitchStusManualMode = 16;
|
|
|
|
|
bool ipSingleSwitchStusCut = 17;
|
|
|
|
|
bool ipSingleSwitchStusAtcInvalid = 18;
|
|
|
|
|
bool ipSingleSwitchStusOverlap = 19;
|
|
|
|
|
bool ipSingleSwitchStusTsrCbtcMain = 20;
|
|
|
|
|
bool ipSingleSwitchStusTsrCbtcNormal = 21;
|
|
|
|
|
bool ipSingleSwitchStusTsrCbtcReverse = 22;
|
|
|
|
|
bool ipSingleSwitchStusTsrBmMain = 23;
|
|
|
|
|
bool ipSingleSwitchStusTsrBmNormal = 24;
|
|
|
|
|
bool ipSingleSwitchStusTsrBmReverse = 25;
|
|
|
|
|
bool ipSingleSwitchStusBlocked2 = 26;
|
|
|
|
|
bool ipSingleSwitchStusLostIndication = 27;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 28;
|
|
|
|
|
//限速值KM/H
|
|
|
|
|
int32 speedLimit = 29;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Track{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool ciOccupied = 1;
|
|
|
|
|
bool cbtcOccupied = 2;
|
|
|
|
|
bool locked = 3;
|
|
|
|
|
bool failLocked = 4;
|
|
|
|
|
bool expectLock = 5;
|
|
|
|
|
bool expectUnlock = 6;
|
|
|
|
|
bool inRoute = 7;
|
|
|
|
|
bool cut = 8;
|
|
|
|
|
bool atcInvalid = 9;
|
|
|
|
|
bool overlap = 10;
|
|
|
|
|
bool blocked = 11;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 12;
|
|
|
|
|
//限速
|
2023-06-12 09:58:15 +08:00
|
|
|
|
int32 speedLimit = 13;
|
2023-06-09 17:55:34 +08:00
|
|
|
|
//限速类型
|
2023-06-12 09:58:15 +08:00
|
|
|
|
LimitType limitType = 14;
|
|
|
|
|
|
|
|
|
|
//track限速类型
|
|
|
|
|
enum LimitType{
|
|
|
|
|
Unknown = 0;
|
|
|
|
|
//为1时,CBTC限速
|
|
|
|
|
Cbtc = 1;
|
|
|
|
|
//为2时,联锁限速;
|
|
|
|
|
Interlock = 2;
|
|
|
|
|
//为4时,同时限速。
|
|
|
|
|
CbtcInterlock = 4;
|
|
|
|
|
}
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Platform{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool emergstop = 1;
|
|
|
|
|
bool trainberth = 2;
|
|
|
|
|
bool close = 3;
|
|
|
|
|
bool upHold = 4;
|
|
|
|
|
bool downHold = 5;
|
|
|
|
|
bool upOccHold = 6;
|
|
|
|
|
bool downOccHold = 7;
|
|
|
|
|
bool psdOpen = 8;
|
|
|
|
|
bool psdCut = 9;
|
|
|
|
|
bool upSkipstop = 10;
|
|
|
|
|
bool downSkipstop = 11;
|
|
|
|
|
bool upTrainSkipstop = 12;
|
|
|
|
|
bool downTrainSkipstop = 13;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 14;
|
|
|
|
|
//下一区间运行时间
|
|
|
|
|
int32 nextSectionRunTime = 15;
|
|
|
|
|
//下一区间运行等级
|
|
|
|
|
int32 nextSectionRunLevel = 16;
|
2023-06-12 10:26:54 +08:00
|
|
|
|
//停站时间
|
|
|
|
|
int32 stopTime = 17;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Scada{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool scadaOn = 1;
|
|
|
|
|
bool scadaSinglePower = 2;
|
|
|
|
|
bool scadaUnkown = 3;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 4;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message WaterProofDoor{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool doorClosed = 1;
|
|
|
|
|
bool doorExpectClose = 2;
|
|
|
|
|
bool doorAgreeClosed = 3;
|
|
|
|
|
bool doorClosing = 4;
|
|
|
|
|
bool doorOpenLock = 5;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 6;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message WorkArea{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool ipStusWorkAreaEnable = 1;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 2;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Gama{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool ipStusGamaDisable = 1;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 2;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TrainMode{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
bool ipModeTrainTypeManual = 1;
|
|
|
|
|
bool ipModeTrainTypeHead = 2;
|
|
|
|
|
bool ipModeTrainTypeSpecial = 3;
|
|
|
|
|
bool ipModeTrainTypeSchedule = 4;
|
|
|
|
|
bool ipModeTrainTypeRoute = 5;
|
|
|
|
|
bool ipModeTrainTypeShuttle = 6;
|
|
|
|
|
bool ipModeTrainTypeLineup = 7;
|
|
|
|
|
bool ipModeTrainSchdEarly = 8;
|
|
|
|
|
bool ipModeTrainSchdLate = 9;
|
|
|
|
|
bool ipModeTrainSkipstop = 10;
|
|
|
|
|
bool ipModeTrainCbtcMode = 11;
|
|
|
|
|
bool ipModeTrainAtpCut = 12;
|
|
|
|
|
bool ipModeTrainBerthed = 13;
|
|
|
|
|
bool ipModeTrainStoped = 14;
|
|
|
|
|
bool ipModeTrainHolded = 15;
|
|
|
|
|
bool ipModeTrainItama = 16;
|
|
|
|
|
bool ipModeTrainDirUp = 17;
|
|
|
|
|
bool ipModeTrainDirDown = 18;
|
|
|
|
|
bool ipModeTrainDirHeadUp = 19;
|
|
|
|
|
bool ipModeTrainDirHeadDown = 20;
|
|
|
|
|
bool ipModeTrainDoorOpen = 21;
|
|
|
|
|
bool ipModeTrainRsAlarm = 22;
|
|
|
|
|
bool ipModeTrainDoorAlarm = 23;
|
|
|
|
|
bool ipModeTrainEbAlarm = 24;
|
|
|
|
|
bool ipModeTrainIntegrityAlarm = 25;
|
|
|
|
|
bool ipModeTrainDriveModeAm = 26;
|
|
|
|
|
bool ipModeTrainDriveModeCm = 27;
|
|
|
|
|
bool ipModeTrainDriveModeRmf = 28;
|
|
|
|
|
bool ipModeTrainDriveModeDto = 29;
|
|
|
|
|
bool ipModeTrainDriveModeAtb = 30;
|
|
|
|
|
bool ipModeTrainDriveBlockAm = 31;
|
|
|
|
|
bool ipModeTrainDriveBlockCm = 32;
|
|
|
|
|
bool ipModeTrainDriveModeRmr = 33;
|
|
|
|
|
bool ipModeTrainDriveModeWash = 34;
|
|
|
|
|
//设备唯一识别码,一般为设备名称
|
|
|
|
|
string id = 35;
|
2023-06-09 10:41:43 +08:00
|
|
|
|
}
|
2023-06-09 17:30:27 +08:00
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
//2.7.2 信息源网络状态消息
|
|
|
|
|
//NCC FEP与OCC FEP 间的网络连接状态
|
|
|
|
|
message OccNccFepNetwork{
|
2023-06-09 17:55:34 +08:00
|
|
|
|
//当前线路号
|
|
|
|
|
string id = 1;
|
|
|
|
|
//true 代表与当前线路号的信息源(server)连接正常
|
|
|
|
|
//false 代表断开
|
|
|
|
|
bool active = 2;
|
2023-06-09 17:30:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-06-16 16:34:00 +08:00
|
|
|
|
|
|
|
|
|
|