xian-ncc-da-message/protos/device_status.proto

353 lines
9.7 KiB
Protocol Buffer
Raw Normal View History

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-07-13 10:35:24 +08:00
enum DeviceType {
2023-06-26 09:56:38 +08:00
UNKNOW = 0;
RTU = 1;
STATION = 2;
SIGNAL = 3;
SWITCH = 4;
TRACK = 5;
ENTRY = 6;
PLATFORM = 7;
2023-07-04 15:15:46 +08:00
SCADA = 9;
WATERPROOF_DOOR = 11;
WORK_AREA = 12;
GAMA = 13;
//道岔物理区段,用于车辆在道岔时转换为对应的道岔物理区段
SWITCH_TRACK = 14;
2023-06-26 09:56:38 +08:00
}
2023-06-09 10:41:43 +08:00
2023-07-13 10:35:24 +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-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 6;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 7;
int32 lineId = 8;
//接受时间
int64 receiveTime = 9;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +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-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 26;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 27;
int32 lineId = 28;
//接受时间
int64 receiveTime = 29;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +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-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 25;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 26;
int32 lineId = 27;
//接受时间
int64 receiveTime = 28;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +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-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 5;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 6;
int32 lineId = 7;
//接受时间
int64 receiveTime = 8;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +08:00
message Switch {
2023-07-26 13:06:37 +08:00
bool ipSingleSwitchStusCiOccupied = 1; // 连锁报告道岔占用(非通信车占用- 红色)
bool ipSingleSwitchStusCbtcOccupied = 2; // CBTC报告道岔占用(粉)
bool ipSingleSwitchStusLocked = 3; // 道岔锁闭(白)
bool ipSingleSwitchStusFailLocked = 4; // 道岔故障锁闭(棕)
2023-07-13 10:35:24 +08:00
bool ipSingleSwitchStusNormal = 5; // 定位
bool ipSingleSwitchStusReverse = 6; // 反位
bool ipSingleSwitchStusBlocked1 = 7; // 单锁
bool ipSingleSwitchStusJammed = 8; // 挤岔
2023-07-19 11:19:20 +08:00
bool ipSingleSwitchStusExpectLock = 9; // 期望锁闭
bool ipSingleSwitchStusExpectUnlock = 10; // 期望锁闭解除
bool ipSingleSwitchStusExpectNormal = 11; // 期望道岔定位
bool ipSingleSwitchStusExpectReverse = 12; // 期望道岔反位
bool ipSingleSwitchStusExpectBlock = 13; // 期望道岔单锁
bool ipSingleSwitchStusExpectUnblock = 14; // 期望道岔解除单锁
bool ipSingleSwitchStusInRoute = 15; // 是否在进路中锁闭
bool ipSingleSwitchStusManualMode = 16; // 道岔为手动操作模式
2023-07-13 10:35:24 +08:00
bool ipSingleSwitchStusCut = 17; // 道岔切除
bool ipSingleSwitchStusAtcInvalid = 18; // 道岔区段被ATC报告失效
bool ipSingleSwitchStusOverlap = 19; // OVERLAP
bool ipSingleSwitchStusTsrCbtcMain = 20; // CBTC岔前限速
bool ipSingleSwitchStusTsrCbtcNormal = 21; // CBTC定位限速
bool ipSingleSwitchStusTsrCbtcReverse = 22; // CBTC反位限速
bool ipSingleSwitchStusTsrBmMain = 23; // BM岔前限速
bool ipSingleSwitchStusTsrBmNormal = 24; // BM定位限速
bool ipSingleSwitchStusTsrBmReverse = 25; // BM反位限速
2023-07-26 13:06:37 +08:00
bool ipSingleSwitchStusBlocked2 = 26; // 道岔封锁(单封)
2023-07-13 10:35:24 +08:00
bool ipSingleSwitchStusLostIndication = 27; // 道岔失表示
2023-06-09 17:55:34 +08:00
//设备唯一识别码,一般为设备名称
string id = 28;
//限速值KM/H
int32 speedLimit = 29;
2023-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 30;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 31;
int32 lineId = 32;
//接受时间
int64 receiveTime = 33;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +08:00
message Track {
2023-07-27 15:05:23 +08:00
bool ciOccupied = 1; //连锁报告区段占用
bool cbtcOccupied = 2; // CBTC报告区段占用
bool locked = 3; //锁闭
bool failLocked = 4; //故障锁闭
bool expectLock = 5; //进路办理中,期望锁闭
bool expectUnlock = 6; //进路取消中, 期望解除锁闭
bool inRoute = 7; //是否在进路中锁闭, 控制是否需要显示锁闭
bool cut = 8; //轨道切除
bool atcInvalid = 9; //轨道区段被ATC报告失效
bool overlap = 10; // OVERLAP
bool blocked = 11; //轨道区段封锁
2023-06-09 17:55:34 +08:00
//设备唯一识别码,一般为设备名称
string id = 12;
//限速
2023-06-12 09:58:15 +08:00
int32 speedLimit = 13;
2023-06-09 17:55:34 +08:00
//限速类型
2023-07-27 15:05:23 +08:00
LimitType limitType = 14; //限速[1:CBTC限速/2:连锁限速/4:同时限速]
2023-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 15;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 16;
int32 lineId = 17;
//接受时间
int64 receiveTime = 18;
2023-07-13 10:35:24 +08:00
// track限速类型
enum LimitType {
2023-06-12 09:58:15 +08:00
Unknown = 0;
//为1时CBTC限速
Cbtc = 1;
//为2时联锁限速
Interlock = 2;
//为4时同时限速。
CbtcInterlock = 4;
}
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +08:00
message Platform {
2023-06-09 17:55:34 +08:00
bool emergstop = 1;
bool trainberth = 2;
bool close = 3;
2024-11-22 15:26:14 +08:00
//上行方向车站扣车
2023-06-09 17:55:34 +08:00
bool upHold = 4;
2024-11-22 15:26:14 +08:00
//下行方向车站扣车
2023-06-09 17:55:34 +08:00
bool downHold = 5;
2024-11-22 15:26:14 +08:00
//上行方向中心扣车
2023-06-09 17:55:34 +08:00
bool upOccHold = 6;
2024-11-22 15:26:14 +08:00
//下行方向中心扣车
2023-06-09 17:55:34 +08:00
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-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 18;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 19;
int32 lineId = 20;
//接受时间
int64 receiveTime = 21;
2024-11-15 20:24:26 +08:00
//是否开始计时
bool bizWaitTimerGoing = 22;
//乘客等待开始时间(秒时间戳)
int64 bizWaitStartTimeSec = 23;
//乘客已经等待时间(秒数)
int64 bizWaitTimeSec = 24;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +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-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 5;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 6;
int32 lineId = 7;
//接受时间
int64 receiveTime = 8;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +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-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 7;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 8;
int32 lineId = 9;
//接受时间
int64 receiveTime = 10;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +08:00
message WorkArea {
2023-06-09 17:55:34 +08:00
bool ipStusWorkAreaEnable = 1;
//设备唯一识别码,一般为设备名称
string id = 2;
2023-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 3;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 4;
int32 lineId = 5;
//接受时间
int64 receiveTime = 6;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +08:00
message Gama {
2023-06-09 17:55:34 +08:00
bool ipStusGamaDisable = 1;
//设备唯一识别码,一般为设备名称
string id = 2;
2023-08-03 11:00:57 +08:00
//集中站id
int32 rtuId = 3;
2023-08-04 11:01:35 +08:00
//消息时间戳
int64 timestamp = 4;
int32 lineId = 5;
//接受时间
int64 receiveTime = 6;
2023-06-09 10:41:43 +08:00
}
2023-07-13 10:35:24 +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
//////////////////////////////////////////////////////////////////////
2023-07-13 10:35:24 +08:00
// 2.7.2 信息源网络状态消息
// NCC FEP与OCC FEP 间的网络连接状态
message OccNccFepNetwork {
2023-06-09 17:55:34 +08:00
//当前线路号
string id = 1;
2023-07-13 10:35:24 +08:00
// true 代表与当前线路号的信息源(server)连接正常
// false 代表断开
bool active = 2;
int32 lineId = 3;
2023-06-09 17:30:27 +08:00
}