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";
|
2024-02-06 12:07:17 +08:00
|
|
|
|
/*
|
2024-02-04 14:46:32 +08:00
|
|
|
|
message BypassOperationReq{
|
|
|
|
|
enum Operation{
|
|
|
|
|
bypass = 0; //旁路
|
|
|
|
|
bypass_reset = 1; // 旁路重置
|
|
|
|
|
}
|
|
|
|
|
enum BtnType{
|
|
|
|
|
esb_btn = 0;
|
|
|
|
|
ibp_btn = 1;
|
|
|
|
|
ibp_key = 2;
|
|
|
|
|
pls_btn = 3;
|
|
|
|
|
}
|
|
|
|
|
string simulationId = 1; // 仿真id
|
|
|
|
|
int32 mapId = 2; // 图id
|
|
|
|
|
uint32 deviceId = 3; // 设备id
|
|
|
|
|
string deviceCode = 5;//设备code
|
|
|
|
|
uint32 stationId = 6; //车站id
|
|
|
|
|
uint32 gateBoxId = 7;
|
|
|
|
|
BypassOperationReq.Operation operation = 8;
|
|
|
|
|
BypassOperationReq.BtnType btnType = 9;
|
|
|
|
|
}
|
2024-02-06 12:07:17 +08:00
|
|
|
|
*/
|
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 {
|
2024-01-18 11:26:58 +08:00
|
|
|
|
// 道岔操作
|
|
|
|
|
enum Operation {
|
|
|
|
|
Undefined = 0; // 未定义
|
|
|
|
|
SetParams = 1; // 设置参数
|
|
|
|
|
}
|
2024-01-18 10:34:39 +08:00
|
|
|
|
// 道岔强制
|
|
|
|
|
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 11:26:58 +08:00
|
|
|
|
Points.Operation operation = 4; // 道岔操作
|
2024-01-18 10:34:39 +08:00
|
|
|
|
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 11:26:58 +08:00
|
|
|
|
enum Operation {
|
|
|
|
|
Undefined = 0; // 未定义
|
|
|
|
|
SetParams = 1; // 设置参数
|
|
|
|
|
// Display = 1; //显示操作,如设置绿色、设置红黄色
|
|
|
|
|
// LightHFaultDs = 2; //设置红灯断丝故障
|
|
|
|
|
// LightUFaultDs = 3; //设置黄灯断丝故障
|
|
|
|
|
// LightLFaultDs = 4; //设置绿灯断丝故障
|
|
|
|
|
// LightAFaultDs = 5; //设置蓝灯断丝故障
|
|
|
|
|
// LightBFaultDs = 6; //设置白灯断丝故障
|
|
|
|
|
// LightHCancelDs = 7; //取消红灯断丝故障
|
|
|
|
|
// LightUCancelDs = 8; //取消黄灯断丝故障
|
|
|
|
|
// LightLCancelDs = 9; //取消绿灯断丝故障
|
|
|
|
|
// LightACancelDs = 10; //取消蓝灯断丝故障
|
|
|
|
|
// LightBCancelDs = 11; //取消白灯断丝故障
|
|
|
|
|
}
|
2024-01-18 10:34:39 +08:00
|
|
|
|
enum DS {
|
2024-01-18 11:26:58 +08:00
|
|
|
|
DS_H = 0; // 红灯断丝
|
|
|
|
|
DS_U = 1; // 黄灯断丝
|
|
|
|
|
DS_L = 2; // 绿灯断丝
|
|
|
|
|
DS_A = 3; // 蓝灯断丝
|
|
|
|
|
DS_B = 4; // 白灯断丝
|
2024-01-18 10:34:39 +08:00
|
|
|
|
}
|
|
|
|
|
// 信号机强制
|
|
|
|
|
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
|
2024-01-18 11:26:58 +08:00
|
|
|
|
Signal.Operation operation = 4; // 信号机操作
|
2024-01-18 10:34:39 +08:00
|
|
|
|
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 {
|
2024-01-22 15:55:44 +08:00
|
|
|
|
Undefined = 0; // 未定义
|
|
|
|
|
SetParams = 1; // 设置参数
|
|
|
|
|
// SetDrst = 0;//设置计轴直接复位
|
|
|
|
|
// CancelDrst = 1;//取消计轴直接复位
|
|
|
|
|
// SetPdrst = 2;//设置计轴预复位
|
|
|
|
|
// CancelPdrst = 3;//取消计轴预复位
|
2023-10-31 16:22:01 +08:00
|
|
|
|
SetFaultOcc = 4; //设置故障占用
|
2024-01-22 15:55:44 +08:00
|
|
|
|
// CancelFaultOcc = 5; //取消故障占用
|
2023-10-30 17:32:11 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-11-02 15:49:58 +08:00
|
|
|
|
|
2024-01-22 15:55:44 +08:00
|
|
|
|
message SectionOperationReq {
|
|
|
|
|
string simulationId = 1; // 仿真id
|
|
|
|
|
int32 mapId = 2; // 图id
|
|
|
|
|
uint32 deviceId = 3; // 设备id
|
|
|
|
|
Section.Operation operation = 4; // 区段操作
|
|
|
|
|
SectionParam param = 5; // 区段参数,当operation为SetParams时有效
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message SectionParam {
|
|
|
|
|
// bool faultOcc = 1; // 故障占用
|
|
|
|
|
bool mockDrst = 2; // 模拟CI计轴复位(临时)
|
|
|
|
|
bool mockPdrst = 3; // 模拟CI计轴预复位(临时)
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-02 15:49:58 +08:00
|
|
|
|
//屏蔽门
|
|
|
|
|
message Psd {
|
|
|
|
|
enum Operation {
|
|
|
|
|
Undefined = 0;
|
2024-01-23 16:45:04 +08:00
|
|
|
|
SetParams = 1; // 设置参数
|
|
|
|
|
}
|
|
|
|
|
enum Force {
|
|
|
|
|
F_NONE = 0; //无强制
|
|
|
|
|
F_ASD_KM = 1; //滑动门强制开门
|
|
|
|
|
F_ASD_GM = 2; //滑动门强制关门
|
|
|
|
|
}
|
|
|
|
|
enum Fault {
|
|
|
|
|
FA_NONE = 0; //无故障
|
|
|
|
|
FA_Obstacle = 1; //设置故障物
|
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; // 操作
|
2024-01-23 18:02:28 +08:00
|
|
|
|
PsdParam param = 5; // 屏蔽门参数,当operation为SetParams时有效
|
2024-01-23 16:45:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message PsdParam {
|
|
|
|
|
repeated int32 asdCodes = 1; // 涉及的滑动门的编号
|
|
|
|
|
Psd.Force force = 2; // 屏蔽门强制设置
|
|
|
|
|
Psd.Fault fault = 3; // 屏蔽门故障设置
|
2023-11-02 15:49:58 +08:00
|
|
|
|
}
|
2024-03-19 08:28:49 +08:00
|
|
|
|
|
|
|
|
|
//列车控制
|
|
|
|
|
message TrainControl{
|
|
|
|
|
string simulationId = 1; // 仿真id
|
2024-04-02 17:32:18 +08:00
|
|
|
|
string trainId = 2;
|
2024-03-19 08:28:49 +08:00
|
|
|
|
uint32 deviceId = 3;//设备id
|
|
|
|
|
TrainControlType controlType = 4;
|
2024-07-04 14:47:24 +08:00
|
|
|
|
ControlButton controlButton = 5; // 控制按钮
|
2024-03-19 08:28:49 +08:00
|
|
|
|
DriverKeySwitch driverKey = 6;
|
|
|
|
|
DirectionKeySwitch dirKey = 7; //方向
|
|
|
|
|
PushHandler handler = 8; //手柄
|
2024-07-04 14:47:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message ControlButton{
|
|
|
|
|
bool active = 1;
|
|
|
|
|
}
|
2024-03-19 08:28:49 +08:00
|
|
|
|
enum TrainControlType{
|
|
|
|
|
EMERGENT_BUTTON = 0; // 摁钮
|
|
|
|
|
DRIVER_KEY_SWITCH = 1; //驾驶端钥匙
|
|
|
|
|
DIRECTION_KEY_SWITCH = 2;//方向钥匙
|
|
|
|
|
HANDLER = 3; //手柄
|
|
|
|
|
}
|
2024-05-09 14:36:12 +08:00
|
|
|
|
enum Direction{
|
|
|
|
|
BACKWARD = 0; //后退
|
|
|
|
|
FORWARD = 1; //前进
|
|
|
|
|
NEUTRALWARD = 2;//中位
|
|
|
|
|
}
|
2024-03-19 08:28:49 +08:00
|
|
|
|
//紧急制动
|
|
|
|
|
message EmergentButton{
|
|
|
|
|
bool active = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//驾驶
|
|
|
|
|
message DriverKeySwitch{
|
|
|
|
|
bool val = 1; //0=关,1=开
|
2024-04-09 10:40:18 +08:00
|
|
|
|
|
2024-03-19 08:28:49 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
message DirectionKeySwitch{
|
|
|
|
|
uint32 val = 1; //0=后,1=前,2=中位
|
|
|
|
|
}
|
|
|
|
|
//牵引或制动手柄
|
|
|
|
|
message PushHandler{
|
|
|
|
|
int32 val = 1; // 牵引或制动 大于0是牵引,小于0是制动 整体按照整型传输(*100),使用时除以100
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2024-04-09 10:40:18 +08:00
|
|
|
|
|
2024-03-20 14:35:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message CkmOperationReq {
|
|
|
|
|
string simulationId = 1;
|
|
|
|
|
int32 mapId = 2;
|
|
|
|
|
uint32 deviceId = 3; //设备id(车库门id)
|
|
|
|
|
Ckm.Operation operation = 4; //车库门操作
|
|
|
|
|
CkmParam param = 5; //车库门参数,在operation为SetParams时有效
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Ckm {
|
|
|
|
|
enum Operation {
|
|
|
|
|
Undefined= 0;
|
|
|
|
|
SetParams = 1;
|
|
|
|
|
}
|
|
|
|
|
enum Force {
|
|
|
|
|
F_NONE = 0; //无强制
|
|
|
|
|
F_KM = 1; //强制开门
|
|
|
|
|
F_GM = 2; //强制关门
|
|
|
|
|
}
|
|
|
|
|
enum Fault {
|
|
|
|
|
FA_NONE = 0; //无故障
|
|
|
|
|
FA_State_Loss = 1; //状态丢失
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message CkmParam {
|
|
|
|
|
Ckm.Force force = 1;
|
|
|
|
|
Ckm.Fault fault = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-02 14:09:40 +08:00
|
|
|
|
message XcjOperationReq {
|
2024-03-20 14:35:34 +08:00
|
|
|
|
string simulationId = 1;
|
|
|
|
|
int32 mapId = 2;
|
2024-04-02 14:09:40 +08:00
|
|
|
|
uint32 deviceId = 3; //设备id(洗车机id)
|
|
|
|
|
Xcj.Operation operation = 4;
|
|
|
|
|
XcjParam param = 5; //洗车机参数,在operation为SetParams时有效
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message Xcj {
|
|
|
|
|
enum Operation {
|
|
|
|
|
Undefined= 0;
|
|
|
|
|
SetParams = 1;
|
|
|
|
|
}
|
|
|
|
|
enum Fault {
|
|
|
|
|
FA_NONE = 0; //无故障
|
|
|
|
|
FA_Fault = 1; //故障
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message XcjParam {
|
|
|
|
|
Xcj.Fault fault = 1;
|
2024-03-20 14:35:34 +08:00
|
|
|
|
}
|