2023-10-13 17:51:38 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package request;
|
2024-01-11 10:24:53 +08:00
|
|
|
option go_package = "joylink.club/bj-rtsts-server/dto/request_proto";
|
2023-10-13 17:51:38 +08:00
|
|
|
|
2024-01-09 11:22:22 +08:00
|
|
|
// 继电器
|
|
|
|
message Relay {
|
|
|
|
// 继电器操作
|
|
|
|
enum Operation {
|
|
|
|
Undefined = 0; // 未定义
|
|
|
|
ForceQw = 1; // 强制前接点位(吸起)
|
|
|
|
ForceHw = 2; // 强制后接点位(落下)
|
2024-01-09 14:15:35 +08:00
|
|
|
CancelForce = 3; // 取消强制
|
2024-01-09 11:22:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 继电器操作请求
|
|
|
|
message RelayOperationReq {
|
|
|
|
string simulationId = 1; // 仿真id
|
|
|
|
int32 mapId = 2; // 图id
|
|
|
|
uint32 deviceId = 3; // 设备id
|
|
|
|
Relay.Operation operation = 4; // 继电器操作
|
|
|
|
}
|
|
|
|
|
2023-10-13 17:51:38 +08:00
|
|
|
// 道岔
|
2024-01-18 10:34:39 +08:00
|
|
|
message Points {
|
|
|
|
// // 道岔操作
|
|
|
|
// enum Operation {
|
|
|
|
// Undefined = 0; // 未定义
|
|
|
|
// DC = 1; // 定操
|
|
|
|
// CancelDC = 2; // 取消定操
|
|
|
|
// FC = 3; // 反操
|
|
|
|
// CancelFC = 4; // 取消反操
|
|
|
|
// // SetSB = 5; // 设置失表故障
|
|
|
|
// // CancelSB = 6; // 取消失表故障
|
|
|
|
// // SetJC = 7; // 设置挤岔故障
|
|
|
|
// // CancelJC = 8; // 取消挤岔故障
|
|
|
|
// // ForceDw = 9; // 强制定位
|
|
|
|
// // ForceFw = 10; // 强制反位
|
|
|
|
// // CancelForce = 11; // 取消强制
|
|
|
|
// SetParams = 12; // 设置参数
|
|
|
|
// }
|
|
|
|
// 道岔强制
|
|
|
|
enum Force {
|
|
|
|
FP_NONE = 0; // 无强制
|
|
|
|
FP_DW = 1; // 定位
|
|
|
|
FP_FW = 2; // 反位
|
|
|
|
FP_SB = 3; // 失表
|
2023-10-30 17:32:11 +08:00
|
|
|
}
|
2023-10-13 17:51:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 道岔操作请求
|
2024-01-18 10:34:39 +08:00
|
|
|
message PointsOperationReq {
|
2023-10-30 17:32:11 +08:00
|
|
|
string simulationId = 1; // 仿真id
|
|
|
|
int32 mapId = 2; // 图id
|
2023-12-14 11:00:24 +08:00
|
|
|
uint32 deviceId = 3; // 设备id
|
2024-01-18 10:34:39 +08:00
|
|
|
// Points.Operation operation = 4; // 道岔操作
|
|
|
|
PointsParam param = 5; // 道岔参数,当operation为SetParams时有效
|
|
|
|
}
|
|
|
|
|
|
|
|
// 道岔参数
|
|
|
|
message PointsParam {
|
|
|
|
Points.Force forcePosition = 1; // 道岔强制
|
2023-10-13 17:51:38 +08:00
|
|
|
}
|
2023-10-19 14:15:01 +08:00
|
|
|
|
|
|
|
// 信号机
|
2023-10-30 17:32:11 +08:00
|
|
|
message Signal {
|
|
|
|
//信号机操作
|
2024-01-18 10:34:39 +08:00
|
|
|
// enum Operation {
|
|
|
|
// Undefined = 0; // 未定义
|
|
|
|
// Display = 1; //显示操作,如设置绿色、设置红黄色
|
|
|
|
// LightHFaultDs = 2; //设置红灯断丝故障
|
|
|
|
// LightUFaultDs = 3; //设置黄灯断丝故障
|
|
|
|
// LightLFaultDs = 4; //设置绿灯断丝故障
|
|
|
|
// LightAFaultDs = 5; //设置蓝灯断丝故障
|
|
|
|
// LightBFaultDs = 6; //设置白灯断丝故障
|
|
|
|
// LightHCancelDs = 7; //取消红灯断丝故障
|
|
|
|
// LightUCancelDs = 8; //取消黄灯断丝故障
|
|
|
|
// LightLCancelDs = 9; //取消绿灯断丝故障
|
|
|
|
// LightACancelDs = 10; //取消蓝灯断丝故障
|
|
|
|
// LightBCancelDs = 11; //取消白灯断丝故障
|
|
|
|
// }
|
|
|
|
enum DS {
|
|
|
|
DS_NONE = 0; // 无断丝
|
|
|
|
DS_H = 1; // 红灯断丝
|
|
|
|
DS_U = 2; // 黄灯断丝
|
|
|
|
DS_L = 3; // 绿灯断丝
|
|
|
|
DS_A = 4; // 蓝灯断丝
|
|
|
|
DS_B = 5; // 白灯断丝
|
|
|
|
}
|
|
|
|
// 信号机强制
|
|
|
|
enum Force {
|
|
|
|
SF_NONE = 0; // 无强制
|
|
|
|
SF_M = 1; // 灭灯
|
|
|
|
SF_H = 2; // 红灯
|
|
|
|
SF_U = 3; // 黄灯
|
|
|
|
SF_L = 4; // 绿灯
|
|
|
|
SF_HU = 5; // 红黄灯
|
|
|
|
SF_A = 6; // 蓝灯
|
|
|
|
SF_B = 7; // 白灯
|
2023-10-30 17:32:11 +08:00
|
|
|
}
|
2023-10-19 14:15:01 +08:00
|
|
|
}
|
2023-10-24 09:35:22 +08:00
|
|
|
|
2024-01-18 10:34:39 +08:00
|
|
|
message SignalOperationReq {
|
|
|
|
string simulationId = 1; // 仿真id
|
|
|
|
int32 mapId = 2; // 图id
|
|
|
|
uint32 deviceId = 3; // 设备id
|
|
|
|
// Signal.Operation operation = 4; // 信号机操作
|
|
|
|
SignalParam param = 5; // 信号机参数,当operation为SetParams时有效
|
|
|
|
}
|
|
|
|
|
|
|
|
message SignalParam {
|
|
|
|
Signal.Force force = 1; // 信号机强制
|
|
|
|
repeated Signal.DS dsList = 2; // 信号机断丝
|
|
|
|
}
|
|
|
|
|
2023-10-24 09:35:22 +08:00
|
|
|
// 区段
|
2023-10-30 17:32:11 +08:00
|
|
|
message Section {
|
|
|
|
//区段操作
|
2023-10-31 16:22:01 +08:00
|
|
|
enum Operation {
|
|
|
|
SetDrst = 0;//设置计轴直接复位
|
|
|
|
CancelDrst = 1;//取消计轴直接复位
|
|
|
|
SetPdrst = 2;//设置计轴预复位
|
|
|
|
CancelPdrst = 3;//取消计轴预复位
|
|
|
|
SetFaultOcc = 4; //设置故障占用
|
|
|
|
CancelFaultOcc = 5; //取消故障占用
|
2023-10-30 17:32:11 +08:00
|
|
|
}
|
|
|
|
}
|
2023-11-02 15:49:58 +08:00
|
|
|
|
|
|
|
//屏蔽门
|
|
|
|
message Psd {
|
|
|
|
enum Operation {
|
|
|
|
Undefined = 0;
|
2023-11-09 10:53:22 +08:00
|
|
|
//屏蔽门控制
|
2023-12-08 16:46:49 +08:00
|
|
|
// Km4 = 1; //四编组开门
|
|
|
|
// CancelKm4 = 2; //取消四编组开门
|
|
|
|
// Km8 = 3; //八编组开门
|
|
|
|
// CancelKm8 = 4; //取消八编组开门
|
|
|
|
// Gm = 5; //关门
|
|
|
|
// CancelGm = 6; //取消关门
|
|
|
|
// ForceKm4 = 7; //强制四编组开门
|
|
|
|
// ForceKm8 = 8; //强制八编组开门
|
|
|
|
// ForceGm = 9; //强制关门
|
|
|
|
Km = 1; //开门
|
|
|
|
CancelKm = 2; //取消开门
|
|
|
|
Gm = 3; //关门
|
|
|
|
CancelGm = 4; //取消关门
|
|
|
|
ForceKm = 5; //强制开门
|
|
|
|
ForceGm = 6; //强制关门
|
2023-11-06 10:52:53 +08:00
|
|
|
CancelForce = 10; //取消强制
|
2023-11-09 10:53:22 +08:00
|
|
|
//屏蔽门故障
|
2023-11-06 10:52:53 +08:00
|
|
|
AsdCannotOpen = 11; //滑动门无法开门
|
|
|
|
CancelAsdCannotOpen = 12; //取消滑动门无法开门
|
|
|
|
AsdCannotClose = 13; //滑动门无法关闭
|
|
|
|
CancelAsdCannotClose = 14; //取消滑动门无法关闭
|
2023-11-09 10:53:22 +08:00
|
|
|
//间隙探测
|
|
|
|
QDTC = 15; //启动探测
|
|
|
|
CancelQDTC = 16; //取消启动探测
|
|
|
|
TZTC = 17; //停止探测
|
|
|
|
CancelTZTC = 18; //取消停止探测
|
2023-11-02 15:49:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 屏蔽门操作请求
|
|
|
|
message PsdOperationReq {
|
|
|
|
string simulationId = 1; // 仿真id
|
|
|
|
int32 mapId = 2; // 图id
|
2023-12-14 11:00:24 +08:00
|
|
|
uint32 deviceId = 3; // 设备id
|
2023-11-02 15:49:58 +08:00
|
|
|
Psd.Operation operation = 4; // 操作
|
2023-11-03 10:41:46 +08:00
|
|
|
repeated int32 asdCodes = 5; //无法关闭/无法开启故障涉及的滑动门的编号
|
2023-12-08 16:46:49 +08:00
|
|
|
int32 group = 6; //开门操作的编组
|
2023-11-02 15:49:58 +08:00
|
|
|
}
|