2023-07-07 10:37:29 +08:00
|
|
|
|
syntax = "proto3";
|
2024-01-10 14:05:58 +08:00
|
|
|
|
import "stationLayoutGraphics.proto";
|
2024-01-17 17:02:17 +08:00
|
|
|
|
import "common_data.proto";
|
2024-01-18 14:12:09 +08:00
|
|
|
|
import "request.proto";
|
2023-07-07 10:37:29 +08:00
|
|
|
|
package state;
|
|
|
|
|
option java_package = "club.joylink.bjrtss.ats.verify.protos";
|
|
|
|
|
option java_outer_classname = "DeviceStateProto";
|
2024-01-11 10:24:53 +08:00
|
|
|
|
option go_package = "joylink.club/bj-rtsts-server/dto/state_proto";
|
2024-03-15 16:03:46 +08:00
|
|
|
|
//option go_package = "dto/state_proto;";
|
2023-07-07 10:37:29 +08:00
|
|
|
|
|
2024-01-10 14:05:58 +08:00
|
|
|
|
|
2023-07-07 10:37:29 +08:00
|
|
|
|
//状态定义面向物理层即只定义物理状态,不定义逻辑层状态
|
|
|
|
|
|
|
|
|
|
//区段类型
|
|
|
|
|
enum SectionType{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
Any = 0;
|
|
|
|
|
//计轴区段
|
|
|
|
|
Axle = 1;
|
|
|
|
|
//逻辑区段
|
|
|
|
|
Logic = 2;
|
|
|
|
|
//物理区段
|
|
|
|
|
Physic = 3;
|
2023-07-07 10:37:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-07-07 17:20:29 +08:00
|
|
|
|
//相邻端点定义的link的状态
|
|
|
|
|
message LinkState{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//link索引
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
//link上的列车id列表
|
|
|
|
|
repeated string trainId = 2;
|
2023-07-07 17:20:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-07-07 10:37:29 +08:00
|
|
|
|
//区段状态
|
|
|
|
|
message SectionState{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//区段索引
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
//区段占用
|
|
|
|
|
//true-占用;false-出清
|
|
|
|
|
bool occupied = 3;
|
|
|
|
|
//计轴故障
|
|
|
|
|
bool axleFault = 4;
|
2024-01-22 17:02:12 +08:00
|
|
|
|
// 计轴复位
|
|
|
|
|
bool axleDrst = 5;
|
|
|
|
|
// 计轴预复位
|
|
|
|
|
bool axlePdrst = 6;
|
2023-07-07 10:37:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//道岔状态
|
|
|
|
|
message SwitchState{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//道岔索引
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
//道岔处于定位(表示)
|
|
|
|
|
bool normal = 2;
|
|
|
|
|
//道岔处于反位(表示)
|
|
|
|
|
bool reverse = 3;
|
|
|
|
|
//道岔处于定位(实际)
|
|
|
|
|
bool dw = 4;
|
|
|
|
|
//道岔处于反位(实际)
|
|
|
|
|
bool fw = 5;
|
2024-01-18 14:12:09 +08:00
|
|
|
|
// 道岔设置参数
|
|
|
|
|
request.PointsParam param = 6;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 定操驱动
|
2024-01-18 14:12:09 +08:00
|
|
|
|
bool qdc = 7;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 反操驱动
|
2024-01-18 14:12:09 +08:00
|
|
|
|
bool qfc = 8;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 允许操驱动
|
2024-01-18 14:12:09 +08:00
|
|
|
|
bool qyc = 9;
|
|
|
|
|
// 定操采集
|
|
|
|
|
bool dc = 10;
|
|
|
|
|
// 反操采集
|
|
|
|
|
bool fc = 11;
|
|
|
|
|
// 允许操作采集
|
|
|
|
|
bool yc = 12;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 是否占用
|
2024-01-18 14:12:09 +08:00
|
|
|
|
bool occupied = 13;
|
2023-07-07 10:37:29 +08:00
|
|
|
|
}
|
2023-07-18 10:57:07 +08:00
|
|
|
|
//信号机状态
|
|
|
|
|
message SignalState{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//信号机索引
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
//信号机的灯列表
|
|
|
|
|
Signal.Aspect aspect = 2;
|
2024-01-18 14:12:09 +08:00
|
|
|
|
// 信号机设置参数
|
|
|
|
|
request.SignalParam param = 3;
|
|
|
|
|
// 信号机继电器状态
|
|
|
|
|
map<string, bool> relayStateMap = 4;
|
2023-07-18 10:57:07 +08:00
|
|
|
|
}
|
2023-10-13 15:53:32 +08:00
|
|
|
|
//信号机显示定义
|
2023-10-13 10:34:39 +08:00
|
|
|
|
message Signal {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//信号机显示枚举
|
|
|
|
|
enum Aspect {
|
2024-01-19 14:22:15 +08:00
|
|
|
|
//灭灯
|
|
|
|
|
OFF = 0;
|
|
|
|
|
//红
|
|
|
|
|
H = 1;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//绿灯亮
|
|
|
|
|
L = 2;
|
|
|
|
|
//黄
|
2024-01-19 14:22:15 +08:00
|
|
|
|
U = 3;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//红黄
|
2024-01-19 14:22:15 +08:00
|
|
|
|
HU = 4;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//白
|
2024-01-19 14:22:15 +08:00
|
|
|
|
B = 5;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//蓝
|
2024-01-19 14:22:15 +08:00
|
|
|
|
A = 6;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
}
|
2023-10-13 10:18:30 +08:00
|
|
|
|
}
|
2023-10-13 10:34:39 +08:00
|
|
|
|
|
2023-07-20 17:19:58 +08:00
|
|
|
|
//站台状态
|
|
|
|
|
message PlatformState{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//站台索引
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
// EMP继电器状态
|
|
|
|
|
bool empj = 2;
|
|
|
|
|
// SPKS继电器状态
|
|
|
|
|
repeated ReplyState spksState = 3;
|
|
|
|
|
// 门控箱继电器状态
|
|
|
|
|
MkxJState mkxJState = 4;
|
2023-07-20 17:19:58 +08:00
|
|
|
|
}
|
|
|
|
|
//车站状态
|
|
|
|
|
message StationState{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//车站索引
|
|
|
|
|
uint32 id = 1;
|
2023-07-20 17:19:58 +08:00
|
|
|
|
}
|
2024-03-15 16:03:46 +08:00
|
|
|
|
|
|
|
|
|
//列车连接状态
|
|
|
|
|
message TrainConnState{
|
2024-04-02 18:17:16 +08:00
|
|
|
|
bool conn = 1;//连接状态
|
2024-03-15 16:03:46 +08:00
|
|
|
|
TrainConnType connType = 2;
|
2024-03-19 11:06:43 +08:00
|
|
|
|
uint32 TrainControlMapId = 3; //关联的列车控制mapId
|
2024-03-15 16:03:46 +08:00
|
|
|
|
enum TrainConnType{
|
|
|
|
|
NONE = 0;//未知连接
|
|
|
|
|
VOBC = 1; //半实物
|
2024-05-23 16:17:11 +08:00
|
|
|
|
// PC_SIM = 2; //PC仿真
|
|
|
|
|
PC_SIM_A = 3; //PC仿真
|
|
|
|
|
PC_SIM_B = 4; //PC仿真
|
2024-03-15 16:03:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-07 10:37:29 +08:00
|
|
|
|
//列车状态
|
|
|
|
|
message TrainState{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//列车索引
|
|
|
|
|
string id = 1;
|
|
|
|
|
//列车初始link运行方向
|
|
|
|
|
bool up = 2;
|
|
|
|
|
// 列车初始速度
|
|
|
|
|
float speed = 3;
|
|
|
|
|
//列车长度,1=1mm
|
|
|
|
|
int64 trainLength = 4;
|
2024-02-23 10:43:05 +08:00
|
|
|
|
//列车是否显示(此状态仅在列车被删除时为false,若需更改用途需增加列车被删除状态)
|
2024-01-10 14:05:58 +08:00
|
|
|
|
bool show = 5;
|
|
|
|
|
// 列车车头所在设备ID
|
|
|
|
|
uint32 headDeviceId = 6;
|
|
|
|
|
// 列车车头所在设备偏移量
|
|
|
|
|
int64 headOffset = 7;
|
|
|
|
|
// 设备端口
|
|
|
|
|
string devicePort = 8;
|
2024-05-10 16:17:15 +08:00
|
|
|
|
// 位移方向指向(区段:A-B,道岔:-> 岔心)
|
|
|
|
|
bool driftTo = 9;
|
|
|
|
|
// 列车运营上下行(公里标 上行:小 -> 大,下行:大 -> 小)
|
|
|
|
|
bool trainRunUp = 10;
|
2024-05-20 15:21:22 +08:00
|
|
|
|
// 列车车头方向 0=未激活,1= 小 -> 大,2=大 -> 小
|
2024-05-10 16:17:15 +08:00
|
|
|
|
uint32 trainActiveDirection = 11;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 动力学信息
|
|
|
|
|
TrainDynamicState dynamicState = 12;
|
|
|
|
|
// 半实物信息
|
|
|
|
|
TrainVobcState vobcState = 13;
|
|
|
|
|
// 所在公里标
|
|
|
|
|
int64 trainKilometer = 14;
|
|
|
|
|
// 控制响应延时
|
|
|
|
|
int64 controlDelayTime = 15;
|
|
|
|
|
// 列车轮径
|
|
|
|
|
int32 wheelDiameter = 16;
|
2024-01-17 16:02:59 +08:00
|
|
|
|
//列车动力学配置
|
2024-01-17 17:02:17 +08:00
|
|
|
|
common.TrainDynamicConfig trainDynamicConfig = 17;
|
|
|
|
|
//列车A端
|
|
|
|
|
common.TrainEndsState trainEndsA = 18;
|
|
|
|
|
//列车B端
|
|
|
|
|
common.TrainEndsState trainEndsB = 19;
|
2024-02-06 18:00:37 +08:00
|
|
|
|
// 列车尾端所在设备ID
|
|
|
|
|
uint32 tailDeviceId = 20;
|
|
|
|
|
// 列车尾端所在设备偏移量
|
|
|
|
|
int64 tailOffset = 21;
|
2024-02-21 14:54:16 +08:00
|
|
|
|
// 列车尾端所在设备端口
|
|
|
|
|
string tailDevicePort = 22;
|
2024-02-06 16:39:55 +08:00
|
|
|
|
// BTM状态
|
2024-02-21 14:54:16 +08:00
|
|
|
|
BTMState btmState = 23;
|
2024-04-02 14:09:40 +08:00
|
|
|
|
TrainControlState tcc = 24;
|
2024-03-19 09:54:31 +08:00
|
|
|
|
TrainConnState connState = 25; //列车连接第三方状态
|
2024-04-09 08:55:32 +08:00
|
|
|
|
SensorSpeedPulseCount pluseCount = 26;
|
|
|
|
|
}
|
|
|
|
|
//速度传感器脉冲数
|
|
|
|
|
message SensorSpeedPulseCount{
|
|
|
|
|
uint32 pulseCount1 = 1;
|
|
|
|
|
uint32 pulseCount2 = 2;
|
2023-08-25 15:37:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 动力学列车状态
|
|
|
|
|
message TrainDynamicState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 生命信号 每个周期+1
|
|
|
|
|
int32 heartbeat = 1;
|
|
|
|
|
//车头所在link的索引
|
|
|
|
|
string headLinkId = 2;
|
|
|
|
|
//车头所在link内的偏移量,单位为mm
|
|
|
|
|
int64 headLinkOffset = 3;
|
|
|
|
|
//车尾所在link的索引
|
|
|
|
|
string tailLinkId = 4;
|
|
|
|
|
//车尾所在link内的偏移量,单位为mm
|
|
|
|
|
int64 tailLinkOffset = 5;
|
|
|
|
|
//列车所占用的link的索引的列表
|
|
|
|
|
//顺序为从车头到车尾
|
|
|
|
|
repeated string occupiedLinkIndex = 6;
|
|
|
|
|
//列车所在位置坡度值,1=1‰
|
|
|
|
|
int32 slope = 7;
|
|
|
|
|
//列车所在位置坡度走势,1=上坡true,0=下坡false
|
|
|
|
|
bool upslope = 8;
|
|
|
|
|
//列车当前运行方向,1 =上行true 0 =下行false
|
|
|
|
|
bool runningUp = 9;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//实际运行阻力(总)(N)totalResistance,1=1N
|
2024-01-10 14:05:58 +08:00
|
|
|
|
float runningResistanceSum = 10;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//阻力1(空气阻力)(N)airResistance,1=1N
|
2024-01-10 14:05:58 +08:00
|
|
|
|
float airResistance = 11;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//阻力2(坡道阻力)(N)slopeResistance,1=1N
|
2024-01-10 14:05:58 +08:00
|
|
|
|
float rampResistance = 12;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//阻力3(曲线阻力)(N)curveResistance,1=1N
|
2024-01-10 14:05:58 +08:00
|
|
|
|
float curveResistance = 13;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//列车运行速度(m/s)speed,1=1m/s 此处放置的是转换后的数据km/h
|
2024-01-10 14:05:58 +08:00
|
|
|
|
int32 speed = 14;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//头车速传1速度值(m/s)headSpeed1,1=1m/s 此处放置的是转换后的数据km/h
|
2024-01-10 14:05:58 +08:00
|
|
|
|
int32 headSensorSpeed1 = 15;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//头车速度2速度值(m/s)headSpeed2,1=1m/s 此处放置的是转换后的数据km/h
|
2024-01-10 14:05:58 +08:00
|
|
|
|
int32 headSensorSpeed2 = 16;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//尾车速传1速度值(m/s)tailSpeed1,1=1m/s 此处放置的是转换后的数据km/h
|
2024-01-10 14:05:58 +08:00
|
|
|
|
int32 tailSensorSpeed1 = 17;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//尾车速度2速度值(m/s)tailSpeed2,1=1m/s 此处放置的是转换后的数据km/h
|
2024-01-10 14:05:58 +08:00
|
|
|
|
int32 tailSensorSpeed2 = 18;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//头车雷达速度值(m/s)headRadarSpeed,1=1m/s 此处放置的是转换后的数据km/h
|
2024-01-10 14:05:58 +08:00
|
|
|
|
int32 headRadarSpeed = 19;
|
2024-01-24 17:12:33 +08:00
|
|
|
|
//尾车雷达速度值(m/s)tailRadarSpeed,1=1m/s 此处放置的是转换后的数据km/h
|
2024-01-10 14:05:58 +08:00
|
|
|
|
int32 tailRadarSpeed = 20;
|
|
|
|
|
// 通讯中断
|
|
|
|
|
bool udpInterruption = 21;
|
|
|
|
|
// 加速
|
|
|
|
|
float acceleration = 22;
|
2024-01-26 17:57:35 +08:00
|
|
|
|
//列车位移
|
|
|
|
|
int32 Displacement = 23;
|
2024-01-17 16:02:59 +08:00
|
|
|
|
|
2024-01-16 16:33:00 +08:00
|
|
|
|
}
|
2023-08-23 09:37:58 +08:00
|
|
|
|
|
2024-04-16 17:26:37 +08:00
|
|
|
|
// vobc发过来的列车信息 包括 (驾驶台和车载)
|
2023-08-23 09:37:58 +08:00
|
|
|
|
message TrainVobcState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 生命信号 每个周期+1
|
|
|
|
|
int32 lifeSignal = 1;
|
|
|
|
|
// TC1激活状态 1=激活
|
|
|
|
|
bool tc1Active = 2;
|
|
|
|
|
// TC2激活状态 1=激活
|
|
|
|
|
bool tc2Active = 3;
|
|
|
|
|
// 列车方向向前 1=方向向前
|
|
|
|
|
bool directionForward = 4;
|
|
|
|
|
// 列车方向向后 1=方向向后
|
|
|
|
|
bool directionBackward = 5;
|
|
|
|
|
// 列车牵引状态 1=牵引
|
|
|
|
|
bool tractionStatus = 6;
|
|
|
|
|
// 列车制动状态 1=制动
|
|
|
|
|
bool brakingStatus = 7;
|
|
|
|
|
// 列车紧急制动状态 1=紧急制动
|
|
|
|
|
bool emergencyBrakingStatus = 8;
|
|
|
|
|
// 列车折返状态(AR) 1=折返
|
|
|
|
|
bool turnbackStatus = 9;
|
|
|
|
|
// 跳跃状态 1=跳跃
|
|
|
|
|
bool jumpStatus = 10;
|
|
|
|
|
// ATO模式 1=ATO模式
|
|
|
|
|
bool ato = 11;
|
|
|
|
|
// FAM模式 1=FAM模式
|
|
|
|
|
bool fam = 12;
|
|
|
|
|
// CAM模式 1=CAM模式
|
|
|
|
|
bool cam = 13;
|
|
|
|
|
// 牵引安全回路 1=牵引安全切除
|
|
|
|
|
bool tractionSafetyCircuit = 14;
|
|
|
|
|
// 停放制动状态 1=停放施加
|
|
|
|
|
bool parkingBrakeStatus = 15;
|
|
|
|
|
// 保持制动状态 1=保持制动施加
|
|
|
|
|
bool maintainBrakeStatus = 16;
|
|
|
|
|
// 列车牵引力 100=1KN
|
|
|
|
|
int64 tractionForce = 17;
|
|
|
|
|
// 列车制动力 100=1KN
|
|
|
|
|
int64 brakeForce = 18;
|
|
|
|
|
//【列车载荷 100=1ton
|
|
|
|
|
int64 trainLoad = 19;
|
|
|
|
|
// 列车开左门指令 1=开门
|
|
|
|
|
bool leftDoorOpenCommand = 20;
|
|
|
|
|
// 列车开右门指令 1=开门
|
|
|
|
|
bool rightDoorOpenCommand = 21;
|
|
|
|
|
// 列车关左门指令 1=关门
|
|
|
|
|
bool leftDoorCloseCommand = 22;
|
|
|
|
|
// 列车关右门指令 1=关门
|
|
|
|
|
bool rightDoorCloseCommand = 23;
|
|
|
|
|
// 整列车门关好 1=门关好
|
|
|
|
|
bool allDoorClose = 24;
|
|
|
|
|
// 通讯中断
|
|
|
|
|
bool udpInterruption = 25;
|
|
|
|
|
// 更新时间
|
|
|
|
|
int64 updateTime = 26;
|
2024-04-02 18:17:16 +08:00
|
|
|
|
//强制门允许
|
|
|
|
|
bool forceDoorAllow = 27;
|
|
|
|
|
// 模式降级按钮
|
|
|
|
|
bool modeLevelDownBtn = 28;
|
|
|
|
|
// 确认按钮
|
|
|
|
|
bool confirmBtn = 29;
|
|
|
|
|
// 模式升级按钮
|
|
|
|
|
bool modeLevelUpBtn = 30;
|
|
|
|
|
// ATO发车按钮
|
|
|
|
|
bool atoSendTrainBtn = 31;
|
|
|
|
|
// 列车完整性
|
|
|
|
|
bool trainIntegrity = 32;
|
|
|
|
|
// 车载ATP/ATO旁路状态
|
|
|
|
|
bool atpOrAtoBypassState = 33;
|
|
|
|
|
// 车辆牵引已切除状态
|
|
|
|
|
// bool trainTractionCuted = 34;
|
|
|
|
|
// 障碍物检测按钮
|
|
|
|
|
bool obstacleCheckBtn = 35;
|
|
|
|
|
// 驾驶室激活反馈按钮
|
|
|
|
|
bool driverActiveReportBtn = 36;
|
|
|
|
|
// 制动重故障按钮
|
|
|
|
|
bool brakeHeavyFault = 37;
|
|
|
|
|
// 左门状态按钮
|
|
|
|
|
bool leftDoorStateBtn = 38;
|
|
|
|
|
// 右门状态按钮
|
|
|
|
|
bool rightDoorStateBtn = 39;
|
|
|
|
|
// 唤醒按钮
|
|
|
|
|
bool wakeUpBtn = 40;
|
|
|
|
|
// 检修按钮
|
|
|
|
|
bool overhaulBtn = 41;
|
|
|
|
|
// 欠压按钮
|
|
|
|
|
bool undervoltageBtn = 42;
|
|
|
|
|
// 休眠按钮
|
|
|
|
|
bool sleepBtn = 43;
|
|
|
|
|
// 紧急手柄拉下
|
|
|
|
|
bool emergentHandleDown = 44;
|
|
|
|
|
// 车门锁闭状态
|
|
|
|
|
bool doorLockState =45;
|
|
|
|
|
// 逃生门状态
|
|
|
|
|
bool lifeDoorState=46;
|
|
|
|
|
// 车辆低压上电状态
|
|
|
|
|
bool trainLowPowerResetState=47;
|
|
|
|
|
// ATP上电按钮
|
|
|
|
|
bool atpPowerOnBtn=48;
|
|
|
|
|
// AA自动开关门
|
|
|
|
|
bool doorModeAA=49;
|
|
|
|
|
//AM自开人关
|
|
|
|
|
bool doorModeAM=50;
|
|
|
|
|
// MM人开人关
|
|
|
|
|
bool doorModeMM=51;
|
|
|
|
|
// 外部紧急制动反馈
|
|
|
|
|
bool outerEmergentBrakeReport = 52;
|
|
|
|
|
// 车门外指示灯
|
|
|
|
|
bool trainDoorOutLed = 53;
|
|
|
|
|
|
|
|
|
|
//本端ATP控车
|
|
|
|
|
bool localAtpControl = 54;
|
|
|
|
|
//ATO制动命令输出
|
|
|
|
|
bool atoBrakeCommand = 55;
|
|
|
|
|
// ATO牵引命令输出
|
|
|
|
|
bool atoTractionCommandOut = 56;
|
|
|
|
|
//ATO惰行命令输出
|
|
|
|
|
bool atoLazyCommandOut = 57;
|
|
|
|
|
//// AR灯命令
|
|
|
|
|
// bool arLightCommand = 58;
|
|
|
|
|
//ATO保持制动
|
|
|
|
|
bool atoAlwaysBrake=59;
|
|
|
|
|
//ATO开左门
|
|
|
|
|
bool atoOpenLeftDoor=60;
|
|
|
|
|
//ATO开右门
|
|
|
|
|
bool atoOpenRightDoor=61;
|
|
|
|
|
//ATO关左门
|
|
|
|
|
bool atoCloseLeftDoor=62;
|
|
|
|
|
// 零速信号
|
|
|
|
|
bool noSpeedSigle = 63;
|
|
|
|
|
// 列车启动指示灯
|
|
|
|
|
bool trainStartedLed = 64;
|
|
|
|
|
// 常用制动
|
|
|
|
|
bool mostUseBrake = 65;
|
|
|
|
|
// 过分相输出
|
|
|
|
|
bool splittingOut = 66;
|
|
|
|
|
// 模式继电器
|
|
|
|
|
bool modeRelay = 67;
|
|
|
|
|
// 牵引有效
|
|
|
|
|
bool tractionEffective=68;
|
|
|
|
|
// 制动有效
|
|
|
|
|
bool brakeEffective=69;
|
|
|
|
|
// 制动隔离
|
|
|
|
|
bool brakeQuarantine=70;
|
|
|
|
|
// 停放制动缓解
|
|
|
|
|
bool stopNotAllBrake=71;
|
|
|
|
|
// ATO牵引指令1
|
|
|
|
|
bool atoTractionCommand1 = 72;
|
|
|
|
|
// ATO牵引指令2
|
|
|
|
|
bool atoTractionCommand2=73;
|
|
|
|
|
// ATO牵引指令3
|
|
|
|
|
bool atoTractionCommand3=74;
|
|
|
|
|
uint32 mockInfo = 75; //车载接口输出的模拟量信息
|
2024-05-09 14:36:12 +08:00
|
|
|
|
// request.TrainControl.Direction historyDir = 76; //历史行驶方向,用于列车操控时,方向旋钮更改方向时使用,不在前端显示
|
2023-07-07 10:37:29 +08:00
|
|
|
|
}
|
2023-07-11 16:06:34 +08:00
|
|
|
|
|
2023-12-14 16:31:36 +08:00
|
|
|
|
// 发给前端的列车状态
|
|
|
|
|
message TrainMapState{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//列车索引
|
|
|
|
|
string id = 1;
|
|
|
|
|
//列车初始link运行方向
|
|
|
|
|
bool up = 2;
|
|
|
|
|
// 列车初始速度
|
|
|
|
|
float initialSpeed = 3;
|
|
|
|
|
//列车长度,1=1mm
|
|
|
|
|
int64 trainLength = 4;
|
|
|
|
|
//列车是否显示
|
|
|
|
|
bool show = 5;
|
|
|
|
|
// 列车车头所在设备ID
|
|
|
|
|
uint32 headDeviceId = 6;
|
|
|
|
|
// 列车车头所在设备偏移量
|
|
|
|
|
int64 headOffset = 7;
|
|
|
|
|
// 设备端口
|
|
|
|
|
string devicePort = 8;
|
|
|
|
|
// 运行方向指向(区段:A-B,道岔:-> 岔心)
|
2024-05-10 16:17:15 +08:00
|
|
|
|
// bool pointTo = 9;
|
|
|
|
|
bool driftTo = 9;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 运行上下行(公里标 上行:小 -> 大,下行:大 -> 小)
|
2024-05-10 16:17:15 +08:00
|
|
|
|
// bool runDirection = 10;
|
|
|
|
|
bool trainRunUp = 10;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 列车车头方向
|
2024-05-10 16:17:15 +08:00
|
|
|
|
// bool headDirection = 11;
|
2024-05-20 15:21:22 +08:00
|
|
|
|
// 列车车头方向 0= 均为激活;1=向小,2=向大
|
2024-05-10 16:17:15 +08:00
|
|
|
|
uint32 trainActiveDirection = 11;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 所在公里标
|
|
|
|
|
int64 trainKilometer = 12;
|
|
|
|
|
// 控制响应延时
|
|
|
|
|
int64 controlDelayTime = 13;
|
|
|
|
|
// 列车轮径
|
|
|
|
|
int32 wheelDiameter = 14;
|
|
|
|
|
// 动力学信息
|
|
|
|
|
// 生命信号 每个周期+1
|
|
|
|
|
int32 dynamicHeartbeat = 15;
|
|
|
|
|
//车头所在link的索引
|
|
|
|
|
string headLinkId = 16;
|
|
|
|
|
//车头所在link内的偏移量,单位为mm
|
|
|
|
|
int64 headLinkOffset = 17;
|
|
|
|
|
//车尾所在link的索引
|
|
|
|
|
string tailLinkId = 18;
|
|
|
|
|
//车尾所在link内的偏移量,单位为mm
|
|
|
|
|
int64 tailLinkOffset = 19;
|
|
|
|
|
//列车所占用的link的索引的列表
|
|
|
|
|
//顺序为从车头到车尾
|
|
|
|
|
repeated string occupiedLinkIndex = 20;
|
|
|
|
|
//列车所在位置坡度值,1=1‰
|
|
|
|
|
int32 slope = 21;
|
|
|
|
|
//列车所在位置坡度走势,1=上坡true,0=下坡false
|
|
|
|
|
bool upslope = 22;
|
|
|
|
|
//列车当前运行方向,1 =上行true 0 =下行false
|
|
|
|
|
bool runningUp = 23;
|
|
|
|
|
//实际运行阻力(总)(N)totalResistance,1=1KN
|
|
|
|
|
float runningResistanceSum = 24;
|
|
|
|
|
//阻力1(空气阻力)(N)airResistance,1=1KN
|
|
|
|
|
float airResistance = 25;
|
|
|
|
|
//阻力2(坡道阻力)(N)slopeResistance,1=1KN
|
|
|
|
|
float rampResistance = 26;
|
|
|
|
|
//阻力3(曲线阻力)(N)curveResistance,1=1KN
|
|
|
|
|
float curveResistance = 27;
|
|
|
|
|
//列车运行速度(m/s)speed,1=1km/h
|
|
|
|
|
int32 speed = 28;
|
|
|
|
|
//头车速传1速度值(m/s)headSpeed1,1=1km/h
|
|
|
|
|
int32 headSensorSpeed1 = 29;
|
|
|
|
|
//头车速度2速度值(m/s)headSpeed2,1=1km/h
|
|
|
|
|
int32 headSensorSpeed2 = 30;
|
|
|
|
|
//尾车速传1速度值(m/s)tailSpeed1,1=1km/h
|
|
|
|
|
int32 tailSensorSpeed1 = 31;
|
|
|
|
|
//尾车速度2速度值(m/s)tailSpeed2,1=1km/h
|
|
|
|
|
int32 tailSensorSpeed2 = 32;
|
|
|
|
|
//头车雷达速度值(m/s)headRadarSpeed,1=1km/h
|
|
|
|
|
int32 headRadarSpeed = 33;
|
|
|
|
|
//尾车雷达速度值(m/s)tailRadarSpeed,1=1km/h
|
|
|
|
|
int32 tailRadarSpeed = 34;
|
|
|
|
|
// 通讯中断
|
|
|
|
|
bool dynamicInterruption = 35;
|
|
|
|
|
// 加速
|
|
|
|
|
float acceleration = 36;
|
|
|
|
|
// 半实物信息
|
|
|
|
|
// 生命信号 每个周期+1
|
|
|
|
|
int32 vobcLifeSignal = 37;
|
|
|
|
|
// TC1激活状态 1=激活
|
|
|
|
|
bool tc1Active = 38;
|
|
|
|
|
// TC2激活状态 1=激活
|
|
|
|
|
bool tc2Active = 39;
|
|
|
|
|
// 列车方向向前 1=方向向前
|
|
|
|
|
bool directionForward = 40;
|
|
|
|
|
// 列车方向向后 1=方向向后
|
|
|
|
|
bool directionBackward = 41;
|
|
|
|
|
// 列车牵引状态 1=牵引
|
|
|
|
|
bool tractionStatus = 42;
|
|
|
|
|
// 列车制动状态 1=制动
|
|
|
|
|
bool brakingStatus = 43;
|
|
|
|
|
// 列车紧急制动状态 1=紧急制动
|
|
|
|
|
bool emergencyBrakingStatus = 44;
|
|
|
|
|
// 列车折返状态(AR) 1=折返
|
|
|
|
|
bool turnbackStatus = 45;
|
|
|
|
|
// 跳跃状态 1=跳跃
|
|
|
|
|
bool jumpStatus = 46;
|
|
|
|
|
// ATO模式 1=ATO模式
|
|
|
|
|
bool ato = 47;
|
|
|
|
|
// FAM模式 1=FAM模式
|
|
|
|
|
bool fam = 48;
|
|
|
|
|
// CAM模式 1=CAM模式
|
|
|
|
|
bool cam = 49;
|
|
|
|
|
// 牵引安全回路 1=牵引安全切除
|
|
|
|
|
bool tractionSafetyCircuit = 50;
|
|
|
|
|
// 停放制动状态 1=停放施加
|
|
|
|
|
bool parkingBrakeStatus = 51;
|
|
|
|
|
// 保持制动状态 1=保持制动施加
|
|
|
|
|
bool maintainBrakeStatus = 52;
|
|
|
|
|
// 列车牵引力 100=1KN
|
|
|
|
|
int64 tractionForce = 53;
|
|
|
|
|
// 列车制动力 100=1KN
|
|
|
|
|
int64 brakeForce = 54;
|
|
|
|
|
//【列车载荷 100=1ton
|
|
|
|
|
int64 trainLoad = 55;
|
|
|
|
|
// 列车开左门指令 1=开门
|
|
|
|
|
bool leftDoorOpenCommand = 56;
|
|
|
|
|
// 列车开右门指令 1=开门
|
|
|
|
|
bool rightDoorOpenCommand = 57;
|
|
|
|
|
// 列车关左门指令 1=关门
|
|
|
|
|
bool leftDoorCloseCommand = 58;
|
|
|
|
|
// 列车关右门指令 1=关门
|
|
|
|
|
bool rightDoorCloseCommand = 59;
|
|
|
|
|
// 整列车门关好 1=门关好
|
|
|
|
|
bool allDoorClose = 60;
|
|
|
|
|
// 通讯中断
|
|
|
|
|
bool vobcInterruption = 61;
|
2024-01-18 10:11:08 +08:00
|
|
|
|
//列车动力学配置
|
2024-01-18 16:04:56 +08:00
|
|
|
|
TrainDynamicConfigMqtt trainDynamicConfig = 62;
|
2024-01-18 10:11:08 +08:00
|
|
|
|
//列车A端
|
2024-01-18 16:04:56 +08:00
|
|
|
|
TrainEndsStateMqtt trainEndsA = 63;
|
2024-01-18 10:11:08 +08:00
|
|
|
|
//列车B端
|
2024-01-18 16:04:56 +08:00
|
|
|
|
TrainEndsStateMqtt trainEndsB = 64;
|
2024-01-26 17:57:35 +08:00
|
|
|
|
//列车位移
|
2024-01-29 14:42:10 +08:00
|
|
|
|
int32 Displacement = 65;
|
2024-02-06 09:30:56 +08:00
|
|
|
|
// 列车车尾所在设备ID
|
|
|
|
|
uint32 tailDeviceId = 66;
|
|
|
|
|
// 列车车尾所在设备偏移量
|
|
|
|
|
int64 tailOffset = 67;
|
2024-02-21 09:14:13 +08:00
|
|
|
|
// 列车车尾所在设备端口
|
|
|
|
|
string tailDevicePort = 68;
|
2024-02-06 16:52:38 +08:00
|
|
|
|
// BTM状态
|
2024-02-21 09:14:13 +08:00
|
|
|
|
BTMState btmState = 69;
|
2024-03-19 09:54:31 +08:00
|
|
|
|
TrainConnState connState = 70; //列车连接第三方状态
|
2023-12-14 16:31:36 +08:00
|
|
|
|
}
|
2024-02-06 15:36:56 +08:00
|
|
|
|
|
|
|
|
|
message BTMState {
|
|
|
|
|
uint32 dataSerialNumber = 1; //数据流水号,0~255变化,每次加一
|
|
|
|
|
uint32 baliseCount = 2; //应答器计数(每过一个应答器加一,在同一个应答器内不变)(0~255)
|
|
|
|
|
uint32 messageCounter = 3; //报文计数器 (每解出一个报文加一)(0~255)
|
|
|
|
|
string telegram = 4;//报文(16进制字符串)
|
2024-04-02 18:17:16 +08:00
|
|
|
|
int64 distance =5; //BTM天线中心到应答器的距离,mm
|
|
|
|
|
bool aboveBalise = 6; //BTM天线即将经过应答器
|
|
|
|
|
string baliseTelegramForPcSimResend = 7; //列车pc仿真暂存应答器回复数据
|
2024-02-06 15:36:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-01-18 16:04:56 +08:00
|
|
|
|
//动力学相关参数返回数据,因golang float类型数据序列化后丢失精度故使用string
|
|
|
|
|
//此类型需要与 common_data 中的 TrainDynamicConfig类型属性保持一致
|
|
|
|
|
message TrainDynamicConfigMqtt{
|
2023-12-14 16:31:36 +08:00
|
|
|
|
|
2024-01-18 16:04:56 +08:00
|
|
|
|
//基本阻力参数A 原本数据:float
|
2024-01-24 09:59:19 +08:00
|
|
|
|
string davisParamA = 1;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
// 基本阻力参数B 原本数据:float
|
2024-01-24 09:59:19 +08:00
|
|
|
|
string davisParamB = 2;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
// 基本阻力参数C 原本数据:float
|
2024-01-24 09:59:19 +08:00
|
|
|
|
string davisParamC = 3;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
//曲线阻力参数R1 原本数据:float
|
2024-01-24 09:59:19 +08:00
|
|
|
|
string curveResistanceParamR1 = 4;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
// 曲线阻力参数R2 原本数据:float
|
2024-01-24 09:59:19 +08:00
|
|
|
|
string curveResistanceParamR2 = 5;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
// 曲线阻力参数R3 原本数据:float
|
2024-01-24 09:59:19 +08:00
|
|
|
|
string curveResistanceParamR3 = 6;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
// 曲线阻力参数R4 原本数据:float
|
2024-01-24 09:59:19 +08:00
|
|
|
|
string curveResistanceParamR4 = 7;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
//旋转质量参数 原本数据:float
|
2024-01-24 09:59:19 +08:00
|
|
|
|
string revolvingMassParam = 8;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
//是否跳跃
|
2024-01-24 09:59:19 +08:00
|
|
|
|
bool jump = 9;
|
2024-01-29 13:24:53 +08:00
|
|
|
|
//打滑加速度(m/s) 默认0 原本属性 float
|
2024-02-21 14:54:16 +08:00
|
|
|
|
string slipA = 10;
|
2024-01-29 13:24:53 +08:00
|
|
|
|
// 打滑冲击率(m/s) 默认0
|
2024-02-21 14:54:16 +08:00
|
|
|
|
string slipR = 11;
|
2024-01-29 13:24:53 +08:00
|
|
|
|
// 打滑持续时间ms 默认0
|
2024-02-21 14:54:16 +08:00
|
|
|
|
int32 slipD = 12;
|
2024-01-29 13:24:53 +08:00
|
|
|
|
// 空转加速度(m/s2),默认值:0 原本属性 float
|
|
|
|
|
string idlingA = 14;
|
|
|
|
|
// 空转冲击率(m/s3),默认值:0
|
|
|
|
|
string idlingR = 15;
|
|
|
|
|
// 空转持续时间(ms),默认值:0
|
|
|
|
|
int32 idlingD = 16;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
//过标/欠标(mm)(正数过标,负数欠标)
|
2024-01-29 13:24:53 +08:00
|
|
|
|
int32 stopSign = 17;
|
2024-02-21 14:54:16 +08:00
|
|
|
|
// 前溜/后溜(m/s)(正数前溜,负数后溜),默认值:0 原本属性 float
|
2024-01-29 13:24:53 +08:00
|
|
|
|
string slide = 18 ;
|
2024-04-12 09:56:47 +08:00
|
|
|
|
//列车载荷
|
|
|
|
|
// int32 trainLoad = 19;
|
2024-01-18 16:04:56 +08:00
|
|
|
|
}
|
|
|
|
|
//列车一端的状态
|
|
|
|
|
message TrainEndsStateMqtt{
|
|
|
|
|
//速度传感器
|
|
|
|
|
bool speedSensorEnableA = 1;
|
|
|
|
|
bool speedSensorEnableB = 2;
|
|
|
|
|
//雷达是否有效
|
|
|
|
|
bool radarEnable = 3;
|
2024-04-28 11:01:11 +08:00
|
|
|
|
//雷达测速差值(千米/小时) 原本数据:float
|
2024-01-18 16:04:56 +08:00
|
|
|
|
string radarCheckSpeedDiff = 4;
|
|
|
|
|
//雷达检测时间(秒)
|
|
|
|
|
int32 radarCheckTime = 5;
|
2024-01-26 17:57:35 +08:00
|
|
|
|
bool accEnable = 6;
|
|
|
|
|
//加速度测速差值(米/秒)
|
|
|
|
|
string accCheckSpeedDiff = 7;
|
|
|
|
|
//加速度持续时间
|
|
|
|
|
int32 accCheckTime = 8;
|
2024-04-28 11:01:11 +08:00
|
|
|
|
// 速传速度输出(千米/小时)
|
2024-03-12 13:58:57 +08:00
|
|
|
|
int32 accOutSpeed = 9;
|
2024-04-28 11:01:11 +08:00
|
|
|
|
// 雷达速度输出(千米/小时)
|
2024-03-12 13:58:57 +08:00
|
|
|
|
int32 radarOutSpeed = 10;
|
2024-04-28 11:01:11 +08:00
|
|
|
|
|
2024-01-18 16:04:56 +08:00
|
|
|
|
}
|
2023-09-27 17:04:13 +08:00
|
|
|
|
// 继电器状态
|
|
|
|
|
message ReplyState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 继电器索引
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
// 继电器吸合状态
|
|
|
|
|
bool xh = 2;
|
|
|
|
|
// 继电器编号
|
|
|
|
|
string code = 3;
|
2024-01-18 11:26:58 +08:00
|
|
|
|
// 是否强制
|
|
|
|
|
bool force = 4;
|
2023-09-27 17:04:13 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-10-17 15:46:27 +08:00
|
|
|
|
// 按钮状态
|
|
|
|
|
message ButtonState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
uint32 id = 1;
|
|
|
|
|
bool down = 2;
|
|
|
|
|
bool active = 3; // 带灯的按钮
|
2024-02-21 14:54:16 +08:00
|
|
|
|
// bool bypass = 4; //摁钮,钥匙 是否旁路
|
2023-10-17 15:46:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 警铃状态
|
|
|
|
|
message AlarmState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
uint32 id = 1;
|
|
|
|
|
bool active = 2;
|
2023-10-17 15:46:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 灯状态
|
|
|
|
|
message LightState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
uint32 id = 1;
|
|
|
|
|
bool active = 2;
|
2023-10-17 15:46:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-10-19 17:09:36 +08:00
|
|
|
|
// 屏蔽门状态
|
|
|
|
|
message PsdState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
uint32 id = 1; //屏蔽门的id
|
|
|
|
|
repeated AsdState asdStates = 2; //滑动门状态
|
|
|
|
|
bool mgj = 3; //屏蔽门整体的关闭(继电器)状态
|
2024-01-24 09:59:19 +08:00
|
|
|
|
request.PsdParam param = 4; //屏蔽门设置的参数
|
2024-02-18 10:06:57 +08:00
|
|
|
|
bool zaw = 5; //有障碍物
|
2023-11-03 10:41:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//滑动门状态
|
|
|
|
|
message AsdState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
int32 code = 1; //滑动门的编号
|
|
|
|
|
bool kmdw = 2; //开门到位(实际位置)
|
|
|
|
|
bool gmdw = 3; //关门到位(实际位置)
|
|
|
|
|
bool mgj = 4; //门关继电器
|
2024-02-18 10:06:57 +08:00
|
|
|
|
bool zaw = 5; //有障碍物
|
2024-02-18 14:49:09 +08:00
|
|
|
|
bool force = 6; //强制开/关门
|
2023-10-19 17:09:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-02-04 14:46:32 +08:00
|
|
|
|
|
2023-10-20 10:53:39 +08:00
|
|
|
|
// 钥匙状态
|
|
|
|
|
message KeyState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
uint32 id = 1;
|
|
|
|
|
int32 gear = 2;
|
2024-02-21 14:54:16 +08:00
|
|
|
|
// bool bypass = 3; //摁钮,钥匙 是否旁路
|
2023-10-20 10:53:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-11-06 17:42:42 +08:00
|
|
|
|
// 战场图门控箱继电器状态
|
|
|
|
|
message MkxJState {
|
2024-01-10 14:05:58 +08:00
|
|
|
|
string code = 1;
|
|
|
|
|
repeated ReplyState replyState = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 应答器状态
|
|
|
|
|
message BaliseState {
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
graphicData.KilometerSystem km = 2; //当前公里标
|
2024-01-22 11:06:09 +08:00
|
|
|
|
string fixedTelegram = 3; //固定报文
|
|
|
|
|
string fixedUserTelegram = 4; //固定用户报文
|
2024-01-24 17:06:33 +08:00
|
|
|
|
string variableTelegram = 5; //可变报文
|
|
|
|
|
string variableUserTelegram = 6; //可变用户报文
|
2024-02-06 09:30:56 +08:00
|
|
|
|
bool work = 7; //是否正常工作
|
2023-11-06 17:42:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-01-29 14:42:10 +08:00
|
|
|
|
// 车站联锁驱采状态
|
|
|
|
|
message StationQc {
|
|
|
|
|
repeated State qdStates = 1; //驱动状态
|
|
|
|
|
repeated State cjStates = 2; //采集状态
|
|
|
|
|
|
|
|
|
|
message State {
|
|
|
|
|
int32 row = 1; //行
|
|
|
|
|
int32 col = 2; //列
|
|
|
|
|
bool on = 3; //接通
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-26 16:48:36 +08:00
|
|
|
|
// 车库门
|
|
|
|
|
message CkmState {
|
|
|
|
|
uint32 id = 1; //车库门的id
|
|
|
|
|
bool mgj = 2; //车库门关闭继电器
|
2024-04-02 15:59:54 +08:00
|
|
|
|
request.CkmParam param = 3; //车库门设置的参数
|
2024-04-07 14:48:32 +08:00
|
|
|
|
bool local = 4; //本地/远程(门模式继电器)
|
|
|
|
|
bool mplj = 5; //门旁路继电器
|
2024-03-26 16:48:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-04-02 14:09:40 +08:00
|
|
|
|
// 洗车机
|
|
|
|
|
message XcjState {
|
|
|
|
|
uint32 id = 1; //车库门的id
|
2024-04-02 15:59:54 +08:00
|
|
|
|
request.XcjParam param = 2; //洗车机设置的参数
|
2024-04-02 14:09:40 +08:00
|
|
|
|
bool xqj = 3; //洗车请求
|
|
|
|
|
repeated bool twjList = 4; //停稳
|
|
|
|
|
bool tgqj = 5; //通过请求
|
|
|
|
|
bool xcjxj = 6; //洗车就绪
|
|
|
|
|
bool xcyxj = 7; //洗车允许
|
|
|
|
|
repeated bool cfjList = 8; //移动允许
|
|
|
|
|
bool jtj = 9; //紧急停车
|
|
|
|
|
bool tgyxj = 10; //通过允许
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-11 16:11:49 +08:00
|
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2023-07-11 16:06:34 +08:00
|
|
|
|
//仿真运行时状态变化量,当前时刻与上一时刻比较得到
|
|
|
|
|
message VariationStatus{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//新增或变化的列车的状态
|
|
|
|
|
repeated TrainMapState updatedTrain = 1;
|
|
|
|
|
//移除的列车的索引
|
|
|
|
|
repeated string removedTrainId = 2;
|
|
|
|
|
//状态发生变化的道岔
|
|
|
|
|
repeated SwitchState updatedSwitch = 3;
|
|
|
|
|
//状态发生变化的区段
|
|
|
|
|
repeated SectionState updatedSection = 4;
|
|
|
|
|
//状态发送变化的继电器
|
|
|
|
|
repeated ReplyState updatedReply = 5;
|
2023-07-11 16:06:34 +08:00
|
|
|
|
}
|
2023-07-11 16:11:49 +08:00
|
|
|
|
|
|
|
|
|
//仿真运行时的所有设备的状态
|
|
|
|
|
message AllDevicesStatus{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
// 所有列车状态
|
|
|
|
|
repeated TrainMapState trainState = 1;
|
|
|
|
|
// 所有道岔状态
|
|
|
|
|
repeated SwitchState switchState = 2;
|
|
|
|
|
// 所有类型区段状态
|
|
|
|
|
repeated SectionState sectionState = 3;
|
|
|
|
|
// 所有继电器状态
|
|
|
|
|
repeated ReplyState replyState = 4;
|
|
|
|
|
// 所有信号机状态
|
|
|
|
|
repeated SignalState signalState = 5;
|
|
|
|
|
// 按钮状态
|
|
|
|
|
repeated ButtonState buttonState = 6;
|
|
|
|
|
// 警铃状态
|
|
|
|
|
repeated AlarmState AlarmState = 7;
|
|
|
|
|
// 灯状态
|
|
|
|
|
repeated LightState LightState = 8;
|
|
|
|
|
// 屏蔽门状态
|
|
|
|
|
repeated PsdState psdState = 9;
|
|
|
|
|
// 钥匙状态
|
|
|
|
|
repeated KeyState KeyState = 10;
|
|
|
|
|
// 站场图站台状态
|
|
|
|
|
repeated PlatformState platformState = 11;
|
|
|
|
|
// 应答器状态
|
|
|
|
|
repeated BaliseState baliseState = 12;
|
2024-01-29 14:42:10 +08:00
|
|
|
|
// 车站联锁驱采状态
|
|
|
|
|
StationQc stationQc = 13;
|
2024-03-26 16:48:36 +08:00
|
|
|
|
// 车库门状态
|
|
|
|
|
repeated CkmState ckmStates = 14;
|
2024-03-29 14:59:19 +08:00
|
|
|
|
// 防淹门状态
|
|
|
|
|
repeated CkmState fymStates = 15;
|
2024-04-02 14:17:17 +08:00
|
|
|
|
// 洗车机状态
|
|
|
|
|
repeated XcjState xcjStates = 16;
|
2023-07-11 16:11:49 +08:00
|
|
|
|
}
|
2023-07-13 18:13:43 +08:00
|
|
|
|
|
|
|
|
|
//服务器端向前端推送的设备状态信息
|
|
|
|
|
message PushedDevicesStatus{
|
2024-01-10 14:05:58 +08:00
|
|
|
|
//true-全量设备状态信息,此时allStatus有效;
|
|
|
|
|
//false - 增量设备状态消息,此时varStatus有效
|
|
|
|
|
bool all = 1;
|
|
|
|
|
//增量设备状态消息
|
|
|
|
|
VariationStatus varStatus = 2;
|
|
|
|
|
//全量设备状态信息
|
|
|
|
|
AllDevicesStatus allStatus = 3;
|
2023-07-13 18:13:43 +08:00
|
|
|
|
}
|
2023-08-30 10:26:35 +08:00
|
|
|
|
|
|
|
|
|
// 仿真信息状态
|
|
|
|
|
message SimulationStatus {
|
2023-10-27 09:24:16 +08:00
|
|
|
|
|
2024-01-10 14:05:58 +08:00
|
|
|
|
enum SimulationState {
|
2024-01-22 18:09:24 +08:00
|
|
|
|
Init = 0;
|
|
|
|
|
Running = 1;
|
|
|
|
|
Pause = 2;
|
|
|
|
|
Error = 3;
|
|
|
|
|
Destroy = 4;
|
2024-01-10 14:05:58 +08:00
|
|
|
|
}
|
2023-08-30 10:26:35 +08:00
|
|
|
|
|
2024-01-10 14:05:58 +08:00
|
|
|
|
string simulationId = 1;
|
|
|
|
|
SimulationState state = 2;
|
2024-01-22 18:09:24 +08:00
|
|
|
|
// string description = 3;
|
2024-01-19 14:22:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 仿真在用的第三方接口状态列表
|
|
|
|
|
message SimulationThirdPartyApiService {
|
|
|
|
|
enum Type {
|
|
|
|
|
// 未定义
|
|
|
|
|
Undefined = 0;
|
|
|
|
|
// 与动力学接口服务
|
|
|
|
|
Dynamics = 1;
|
|
|
|
|
// 与半实物列车接口服务
|
|
|
|
|
SemiPhysicalTrain = 2;
|
2024-04-12 09:56:47 +08:00
|
|
|
|
//列车pc仿真
|
|
|
|
|
Train_pc_sim = 3;
|
2024-01-19 14:22:15 +08:00
|
|
|
|
}
|
|
|
|
|
// 服务状态
|
|
|
|
|
enum State {
|
|
|
|
|
// 服务正常
|
|
|
|
|
Normal = 0;
|
|
|
|
|
// 服务异常
|
|
|
|
|
Error = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 服务列表
|
|
|
|
|
repeated SimulationThirdPartyApiServiceState states = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 仿真第三方接口状态
|
|
|
|
|
message SimulationThirdPartyApiServiceState {
|
|
|
|
|
// 接口服务类型
|
|
|
|
|
SimulationThirdPartyApiService.Type type = 1;
|
|
|
|
|
// 服务状态
|
|
|
|
|
SimulationThirdPartyApiService.State state = 2;
|
|
|
|
|
}
|
2024-03-19 08:28:49 +08:00
|
|
|
|
|
2024-03-19 08:35:03 +08:00
|
|
|
|
//列车控制状态
|
2024-03-19 08:28:49 +08:00
|
|
|
|
message TrainControlState{
|
2024-03-19 09:54:31 +08:00
|
|
|
|
|
|
|
|
|
EmergentButton ebutton = 1; //紧急摁钮
|
|
|
|
|
repeated DriverKeySwitch driverKey = 2; //驾驶端激活
|
|
|
|
|
DirectionKeySwitch dirKey = 3; //接车运行方向
|
|
|
|
|
PushHandler pushHandler = 4; //牵引制动手柄
|
2024-03-19 08:28:49 +08:00
|
|
|
|
|
|
|
|
|
message EmergentButton{
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
bool passed = 3;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
message DriverKeySwitch{
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
bool val = 2; //0=关,1=开
|
2024-04-02 18:17:16 +08:00
|
|
|
|
// request.DriverType dt = 3;
|
2024-03-19 08:28:49 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
message DirectionKeySwitch{
|
|
|
|
|
uint32 id = 1;
|
2024-04-02 18:17:16 +08:00
|
|
|
|
uint32 val = 2; //0=后,1=前,2=中位
|
2024-03-19 08:28:49 +08:00
|
|
|
|
}
|
|
|
|
|
//牵引制动手柄
|
|
|
|
|
message PushHandler{
|
|
|
|
|
uint32 id = 1;
|
|
|
|
|
int32 val = 2; // 牵引或制动 大于0是牵引,小于0是制动 整体按照整型传输(*100),使用时除以100
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|