Compare commits

...

163 Commits

Author SHA1 Message Date
tiger_zhou
a6293366a1 列车动力学添加车组,仿真内添加列车添加车组 2024-10-15 09:16:34 +08:00
5b0baec461 [新增]11号线联锁、12号线联锁、12号计轴第三方通信服务的状态采集 2024-10-09 17:38:52 +08:00
tiger_zhou
76a91b6495 列车折返rm模式调整 2024-09-11 21:19:41 +08:00
tiger_zhou
35c2c8e774 折返速度调整 2024-09-11 13:28:55 +08:00
tiger_zhou
15470e0e4a 列车折返12号线激活调整 2024-09-10 18:05:03 +08:00
tiger_zhou
0a0de33fd1 折返 2024-09-10 18:00:43 +08:00
tiger_zhou
259b99e610 折返 2024-09-10 16:12:38 +08:00
tiger_zhou
4e275a7b14 折返 2024-09-10 15:37:39 +08:00
tiger_zhou
51ff8423a4 折返 2024-09-06 17:44:29 +08:00
tiger_zhou
1d7b93bfcc 折返 2024-09-06 17:13:20 +08:00
tiger_zhou
3d7da35731 列车11号线btm调整 2024-09-05 09:21:48 +08:00
tiger_zhou
7629f290ea 列车模型添加 紧急制动属性 2024-08-30 16:41:37 +08:00
tiger_zhou
c2e5cee82a 列车模型调整 2024-08-29 17:18:13 +08:00
tiger_zhou
4e34593810 列车btm调整重构 2024-08-29 16:51:16 +08:00
tiger_zhou
67d7d79c5a 列车模型添加最大时速,vobc状态添加ato亮灯属性 2024-08-29 16:08:19 +08:00
tiger_zhou
30019273c5 列车操控 2024-08-27 11:58:07 +08:00
tiger_zhou
94413167c0 列车btm调整重构 2024-08-21 18:02:53 +08:00
tiger_zhou
b7336a5bbe 列车btm调整重构 2024-08-21 17:19:06 +08:00
tiger_zhou
7cb7af10d9 列车btm调整重构 2024-08-21 17:17:18 +08:00
tiger_zhou
939b7a2604 列车btm调整重构 2024-08-21 17:03:17 +08:00
tiger_zhou
30f6530a92 列车btm调整重构 2024-08-21 16:51:41 +08:00
joylink_fanyuhong
514b899f04 Merge branch 'master' of http://120.46.212.6:3000/joylink/rts-sim-testing-message 2024-08-21 16:35:36 +08:00
joylink_fanyuhong
f775ffc700 添加公里标实际和设计数据 2024-08-21 16:35:33 +08:00
tiger_zhou
bc7ca44ffd 列车应答器调整 2024-08-15 14:54:15 +08:00
tiger_zhou
ec6c571a37 列车btm调整重构 2024-08-13 17:32:48 +08:00
tiger_zhou
61b489dcf8 应答器修改 2024-08-13 09:09:25 +08:00
fan
74bea4e995 设备联锁映射数据调整 2024-08-12 16:04:46 +08:00
4a126b57ac [修改]设备状态proto消息中增加计轴区段状态,原“所有区段状态”改为物理区段状态“ 2024-08-12 15:18:52 +08:00
a5ebb6869d Merge remote-tracking branch 'origin/master' 2024-08-07 14:54:17 +08:00
47ecc9c79f [补充]11号线联锁通信 2024-08-07 14:53:56 +08:00
tiger_zhou
b7bddc6226 列车控制连接版本记录1 2024-08-06 11:24:43 +08:00
tiger_zhou
fd4d5ee638 列车控制连接版本记录1 2024-08-05 16:32:20 +08:00
0c2a761310 [修改]北京12号线连锁rsd、sse、ssr编解码算法及交互流程 2024-07-29 13:53:45 +08:00
tiger_zhou
3a6df9a689 列车车载应答器调试初始 2024-07-25 14:55:45 +08:00
tiger_zhou
2f5d8c3cfd 列车控制连接 2024-07-19 14:10:44 +08:00
tiger_zhou
c4b27d48d0 列车控制连接 2024-07-19 08:58:02 +08:00
tiger_zhou
4437185ee9 列车控制连接,重新连接调整 2024-07-15 15:00:33 +08:00
joylink_fanyuhong
ed84266851 应答器添加leu数据 2024-07-11 16:12:31 +08:00
tiger_zhou
1e7e693004 12号线列车控制基本调试 2024-07-11 14:58:33 +08:00
tiger_zhou
6cdf88a92d Merge remote-tracking branch 'origin/master' 2024-07-04 17:27:02 +08:00
tiger_zhou
47ccdf29a5 列车控制消息 2024-07-04 17:26:46 +08:00
joylink_zhaoerwei
978bd7342d 灯增加初始状态 2024-07-04 17:25:03 +08:00
joylink_zhaoerwei
94d315b21b 列车驾驶台加灯 2024-07-04 15:33:46 +08:00
tiger_zhou
2ac805b054 列车控制btn调整 2024-07-04 14:47:24 +08:00
tiger_zhou
c0aa3ab5b7 列车调整连接12号线车载,静态情况 2024-07-04 09:26:37 +08:00
joylink_zhaoerwei
547b0b1baf 注释 2024-06-27 14:42:12 +08:00
joylink_zhaoerwei
5e5cbb28f4 增加位置为空的枚举 2024-06-27 14:38:02 +08:00
joylink_zhaoerwei
72dae3d905 注释 2024-06-27 14:10:16 +08:00
joylink_zhaoerwei
d0411e3a57 继电器默认初始位置 2024-06-27 13:52:26 +08:00
joylink_zhaoerwei
e0a400f1dd 增加关联设备的类型 2024-06-24 18:32:27 +08:00
c05e0ae0fe [新增]ecs物理区段增加区段电路组件及逻辑;
[修改]12号线联锁通信服务如果启动失败,则启动参数无法更换bug
2024-06-21 15:53:15 +08:00
fan
0844608c86 连锁映射数据调整 2024-06-12 17:36:26 +08:00
tiger_zhou
c1499de7bb btm vobc 模块功能 2024-06-06 17:57:29 +08:00
fan
fed626ac4b 连锁编号数据添加esb、扣车、无人折返按钮 2024-05-28 13:19:14 +08:00
fan
16d15c8515 添加扣车按钮&无人折返按钮 2024-05-27 20:43:53 +08:00
joylink_fanyuhong
f232ff605d 联锁映射暂提 2024-05-24 20:45:09 +08:00
tiger_zhou
189cabea72 列车pc仿真调整 2024-05-23 19:08:46 +08:00
tiger_zhou
b84f16bc34 列车pc仿真调整 2024-05-23 16:17:11 +08:00
tiger_zhou
aac1484a6f 列车激活方向调整 2024-05-20 15:21:22 +08:00
6d3ff5644e [新增]区段、Link、运营方向/位置之间互相转换的函数 2024-05-16 21:19:52 +08:00
tiger_zhou
0ed6b1d451 列车消息调整 2024-05-10 16:17:15 +08:00
tiger_zhou
e4c55ea4b6 列车控制调整 2024-05-09 14:36:12 +08:00
tiger_zhou
121134778a 仿真测试调试 2024-04-28 11:01:11 +08:00
tiger_zhou
56e1948393 列车pc仿真调整 2024-04-19 16:55:51 +08:00
tiger_zhou
acbfbf8b92 列车pc仿真调整 2024-04-16 17:26:37 +08:00
tiger_zhou
df112c4298 列车pc仿真调整 2024-04-12 09:56:47 +08:00
tiger_zhou
8919d6e5d6 列车pc仿真调整 2024-04-11 16:44:48 +08:00
tiger_zhou
7d576a6c69 列车pc仿真调整 2024-04-09 10:40:18 +08:00
tiger_zhou
dd445689f1 列车pc仿真测试调整 2024-04-09 08:55:32 +08:00
e4728f0f73 【新增】mqtt发送车库门门旁路状态 2024-04-07 14:48:32 +08:00
208bcaedcc Merge remote-tracking branch 'origin/master' 2024-04-03 16:05:07 +08:00
9bfc176447 【bug】车库门状态未发送
【新增】车库门增加本地/远程状态
2024-04-03 16:04:39 +08:00
joylink_fanyuhong
ee7cf29111 洗车机增加宽度 2024-04-03 10:32:56 +08:00
tiger_zhou
5dd8f8963e 列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态 2024-04-02 18:17:16 +08:00
tiger_zhou
aae4752230 Merge remote-tracking branch 'origin/master' 2024-04-02 17:32:35 +08:00
tiger_zhou
c23d536144 列车控制修改列车参数类型 2024-04-02 17:32:18 +08:00
78f0ddfd24 【bug】洗车机状态发送及洗车机操作 2024-04-02 15:59:54 +08:00
8117a06f1e 【新增】洗车机状态发送 2024-04-02 14:17:17 +08:00
eaa9de89c7 【新增】洗车机模型构建、ecs实体构建
【修改】洗车机ecs电路系统逻辑
2024-04-02 14:09:40 +08:00
joylink_fanyuhong
e64115ada3 洗车机添加属性 2024-04-02 11:28:08 +08:00
joylink_zhaoerwei
3c209fc66e 增加防淹门类型 2024-03-29 18:31:55 +08:00
f566f96c40 Merge remote-tracking branch 'origin/master' 2024-03-29 16:46:49 +08:00
d22b534a54 【修改】车库门继电器状态丢失的故障由应用层实现;不再影响继电器的实际状态;也不再导致门故障继电器接通; 2024-03-29 16:46:29 +08:00
joylink_zhaoerwei
4cac76b247 注掉old相关字段 2024-03-29 15:18:00 +08:00
4c3905b8eb 【新增】防淹门模型构建(暂时与车库门用相同模型)
【修改】因车库门PSL盘对象被删除,修改相应的构建逻辑
2024-03-29 14:59:19 +08:00
joylink_fanyuhong
a191e82832 添加防淹门 2024-03-28 10:26:17 +08:00
joylink_fanyuhong
ce9aa5fea3 车库门调整 2024-03-28 09:33:00 +08:00
joylink_fanyuhong
4c3937a7dc 合并防淹门车库门取消车库门按钮 2024-03-28 09:11:45 +08:00
f9034ba53d Merge remote-tracking branch 'origin/master' 2024-03-26 16:49:28 +08:00
8086bc2c8c 【新增】测试模块车库门状态proto定义及车库门状态发送逻辑
【删除】ecs的车库门状态及相关逻辑
2024-03-26 16:48:36 +08:00
9c420a826c 【新增】车库门PSL模型构建及相关ecs逻辑;
【改动】车库门ecs逻辑
2024-03-26 13:12:15 +08:00
joylink_fanyuhong
86b35d3ead 应答器添加原编号属性 2024-03-25 13:58:48 +08:00
joylink_fanyuhong
a1534096aa 修改车库门盒设备数据 2024-03-21 09:11:37 +08:00
b748c7ff3e 【新增】车库门及车库门控制盒操作接口 2024-03-20 14:35:34 +08:00
joylink_zhaoerwei
cd5946438c 去掉import "tccGraphics.proto"; 2024-03-19 14:19:44 +08:00
tiger_zhou
262639e34d 列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态 2024-03-19 11:06:43 +08:00
tiger_zhou
0b48d0e08b 列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态 2024-03-19 11:00:18 +08:00
tiger_zhou
0e19775ba6 列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态 2024-03-19 09:54:31 +08:00
tiger_zhou
a8b2c32c95 列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态 2024-03-19 08:35:03 +08:00
tiger_zhou
da14913835 列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态 2024-03-19 08:28:49 +08:00
joylink_zhaoerwei
6dff8221d5 列车控制室相关 2024-03-15 16:40:26 +08:00
tiger_zhou
29c7ca5906 Merge remote-tracking branch 'origin/master' 2024-03-15 16:04:30 +08:00
tiger_zhou
c0f73e7b5d 列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态 2024-03-15 16:03:46 +08:00
joylink_zhaoerwei
c92814fcf2 增加列车驾驶台图 2024-03-14 17:59:49 +08:00
joylink_fanyuhong
225f92b91c 添加防淹门 2024-03-12 15:21:15 +08:00
tiger_zhou
0a3e689486 速传,雷达输出数值功能 2024-03-12 13:58:57 +08:00
tiger_zhou
54033efdd9 速传,雷达输出数值功能 2024-03-11 16:15:02 +08:00
joylink_zhaoerwei
23162568a1 关联设备增加车库门和洗车机 2024-03-08 13:24:37 +08:00
fan
f3013d1079 Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-message 2024-03-08 10:41:51 +08:00
fan
e84865e4d2 添加洗车机 车库门 2024-03-08 10:41:46 +08:00
e80785b813 删除列车后可再次添加相同编号列车 2024-02-23 10:43:05 +08:00
8820c9f2ab 修改列车BTM信息的报文为最后收到的报文;修改BTM探测逻辑执行不需要【车载应答器天线功率放大器】为开启状态;修改车尾位置计算bug 2024-02-21 14:54:16 +08:00
ced6f855df 列车状态增加车尾设备端口 2024-02-21 09:14:13 +08:00
55e58e0d18 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	protos/stationLayoutGraphics.proto
2024-02-20 09:21:39 +08:00
63774c3fa8 修改PSL和IBP构建模型的逻辑 2024-02-20 09:20:50 +08:00
joylink_zhaoerwei
cfcd889ef0 注掉车站关联IBP地图Code 2024-02-19 18:14:16 +08:00
6e8fecb59b 滑动门状态增加{强制}字段 2024-02-18 14:49:09 +08:00
4135d9e411 滑动门增加{有障碍物}状态;屏蔽门{有障碍物}字段名修改 2024-02-18 10:06:57 +08:00
bfb647b26f 画布格子背景 2024-02-07 13:45:58 +08:00
46bff14741 增加车尾设备及偏移量状态赋值逻辑 2024-02-06 18:00:37 +08:00
6d3e36dba4 修改BTM状态字段位置 2024-02-06 16:52:38 +08:00
66e31ca84e Merge remote-tracking branch 'origin/master' 2024-02-06 16:42:36 +08:00
71be4e2c14 列车状态增加BTM状态(逻辑中为BTM状态字段赋值) 2024-02-06 16:39:55 +08:00
2831ac4bed 增加ipb按钮和psl按钮 2024-02-06 16:29:31 +08:00
4e3b2300d1 Merge remote-tracking branch 'origin/master' 2024-02-06 15:37:48 +08:00
32a1603d5e 列车状态增加BTM状态 2024-02-06 15:36:56 +08:00
86dcfd8208 去掉关联紧急关闭按钮地图Code 2024-02-06 12:21:19 +08:00
tiger_zhou
f23ca441ef 摁钮旁路及旁路复位还原 2024-02-06 12:07:17 +08:00
tiger_zhou
23c86dac30 Merge remote-tracking branch 'origin/master' 2024-02-06 10:50:43 +08:00
tiger_zhou
910f6bdd9e 摁钮旁路及旁路复位还原 2024-02-06 10:49:45 +08:00
42a7e9cc62 增加应答器停止发送报文故障;增加应答器工作状态状态;增加列车车尾位置(仅数据结构,无赋值逻辑) 2024-02-06 09:30:56 +08:00
tiger_zhou
936ecfec01 摁钮旁路及旁路复位protobuf复位定义 2024-02-04 14:46:32 +08:00
joylink_zhaoerwei
43814b9d0e 紧急关闭按钮地图Code 2024-02-02 17:18:32 +08:00
15c8b523c2 Merge remote-tracking branch 'origin/master' 2024-01-29 14:42:30 +08:00
8edda8b749 增加继电器驱采表状态;修改Repo构建时基础检查逻辑 2024-01-29 14:42:10 +08:00
tiger_zhou
0d5ac2472f 动力学参数变更 2024-01-29 13:24:53 +08:00
tiger_zhou
099d395898 加速计 2024-01-26 17:57:35 +08:00
tiger_zhou
1a75420f04 Merge remote-tracking branch 'origin/master' 2024-01-24 17:17:58 +08:00
tiger_zhou
e800ded2c3 雷达发送功能 2024-01-24 17:12:33 +08:00
11e81fe6e7 应答器增加可变报文状态 2024-01-24 17:06:33 +08:00
7b637f0f51 屏蔽门增加设置障碍物的逻辑、补全状态显示 2024-01-24 09:59:19 +08:00
ed7e0605c5 修改屏蔽门操作请求 2024-01-23 18:02:28 +08:00
54a5be2850 修改屏蔽门操作请求proto 2024-01-23 16:45:04 +08:00
bc70ae80a0 仿真状态调整 2024-01-22 18:09:24 +08:00
f5d7363c7b 区段添加计轴复位/预复位状态 2024-01-22 17:02:12 +08:00
bdd66d8625 区段操作请求调整 2024-01-22 15:55:44 +08:00
3a30efc9fe 修改proto文件[应答器固定用户报文]字段名 2024-01-22 11:27:07 +08:00
126ba5a761 应答器增加[固定报文]和[固定用户报文]状态及修改功能 2024-01-22 11:06:09 +08:00
3180214b10 信号机显示枚举调整
添加第三方接口服务状态消息
2024-01-19 14:22:15 +08:00
tiger_zhou
d2d4e85e34 动力学列车数据配置 2024-01-18 17:17:47 +08:00
tiger_zhou
13b90a8273 动力学列车数据配置 2024-01-18 17:12:57 +08:00
tiger_zhou
f9f2cabf35 动力学列车数据配置 2024-01-18 17:09:20 +08:00
tiger_zhou
c7ee997a5e 动力学列车数据配置 2024-01-18 16:04:56 +08:00
2db94f19b5 信号机、道岔状态调整 2024-01-18 14:12:09 +08:00
4faeb5e2d5 道岔、信号机操作消息调整 2024-01-18 11:26:58 +08:00
e35c9e5686 道岔、信号机操作请求参数 2024-01-18 10:34:39 +08:00
tiger_zhou
3ec969bbd2 动力学列车数据配置 2024-01-18 10:11:08 +08:00
tiger_zhou
8469ef8778 动力学列车数据配置 2024-01-17 17:02:17 +08:00
tiger_zhou
923e04f548 动力学列车数据配置 2024-01-17 16:02:59 +08:00
tiger_zhou
ff0352b2f8 Merge remote-tracking branch 'origin/master' 2024-01-16 16:33:14 +08:00
tiger_zhou
ac47366a34 动力学列车数据配置 2024-01-16 16:33:00 +08:00
fan
ec9ba5c1ea Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-message 2024-01-16 15:46:21 +08:00
fan
659a26757f 应答器数据修改 2024-01-16 15:46:16 +08:00
7 changed files with 1068 additions and 173 deletions

76
protos/common_data.proto Normal file
View File

@ -0,0 +1,76 @@
syntax = "proto3";
package common;
//option java_package = "club.joylink.bjrtss.ats.verify.protos";
//option java_outer_classname = "LayoutGraphicsProto";
option go_package = "joylink.club/bj-rtsts-server/dto/common_proto";
//
message TrainDynamicConfig{
//100=1ton
// int32 mass=1;
//A
float davisParamA=1;
// B
float davisParamB=2;
// C
float davisParamC=3;
//线R1
float curveResistanceParamR1=4;
// 线R2
float curveResistanceParamR2=5;
// 线R3
float curveResistanceParamR3=6;
// 线R4
float curveResistanceParamR4=7;
//
float revolvingMassParam=8;
//
bool jump=9;
//(m/s) 0
float slipA=10;
// (m/s) 0
float slipR=11;
// ms 0
int32 slipD=12;
// m/s20
float idlingA = 14;
// m/s30
float idlingR = 15;
// ms0
int32 idlingD = 16;
///mm
int32 stopSign=17;
///m/s0
float slide = 18;
}
//
message TrainEndsState{
//
bool speedSensorEnableA = 1;
bool speedSensorEnableB = 2;
//
bool radarEnable = 3;
///
float radarCheckSpeedDiff = 4;
//()
int32 radarCheckTime = 5;
//
bool accEnable = 6;
///
float accCheckSpeedDiff = 7;
//
int32 accCheckTime = 8;
// /
int32 accOutSpeed = 9;
// /
int32 radarOutSpeed = 10;
//
int64 radarCheckTimeOverAt = 11;
//
int64 accCheckTimeOverAt = 12;
}

View File

@ -1,10 +1,13 @@
syntax = "proto3"; syntax = "proto3";
import "stationLayoutGraphics.proto"; import "stationLayoutGraphics.proto";
import "common_data.proto";
import "request.proto";
package state; package state;
option java_package = "club.joylink.bjrtss.ats.verify.protos"; option java_package = "club.joylink.bjrtss.ats.verify.protos";
option java_outer_classname = "DeviceStateProto"; option java_outer_classname = "DeviceStateProto";
option go_package = "joylink.club/bj-rtsts-server/dto/state_proto"; option go_package = "joylink.club/bj-rtsts-server/dto/state_proto";
//option go_package = "dto/state_proto;";
// //
@ -28,7 +31,7 @@ message LinkState{
repeated string trainId = 2; repeated string trainId = 2;
} }
// //
message SectionState{ message SectionState{
// //
uint32 id = 1; uint32 id = 1;
@ -37,6 +40,16 @@ message SectionState{
bool occupied = 3; bool occupied = 3;
// //
bool axleFault = 4; bool axleFault = 4;
//
bool axleDrst = 5;
//
bool axlePdrst = 6;
}
//
message AxleCountingSectionState {
uint32 id = 1;
bool occupied = 2;
} }
// //
@ -51,30 +64,22 @@ message SwitchState{
bool dw = 4; bool dw = 4;
// //
bool fw = 5; bool fw = 5;
// () //
bool force = 6; request.PointsParam param = 6;
//
bool sb = 7;
//
bool dwsb = 8;
//
bool fwsb = 9;
//
bool jc = 10;
// //
bool qdc = 11; bool qdc = 7;
// //
bool qfc = 12; bool qfc = 8;
// //
bool qyc = 13; bool qyc = 9;
// //
bool dc = 14; bool dc = 10;
// //
bool fc = 15; bool fc = 11;
// //
bool yc = 16; bool yc = 12;
// //
bool occupied = 17; bool occupied = 13;
} }
// //
message SignalState{ message SignalState{
@ -82,27 +87,29 @@ message SignalState{
uint32 id = 1; uint32 id = 1;
// //
Signal.Aspect aspect = 2; Signal.Aspect aspect = 2;
//
request.SignalParam param = 3;
//
map<string, bool> relayStateMap = 4;
} }
// //
message Signal { message Signal {
// //
enum Aspect { enum Aspect {
// //
Non = 0; OFF = 0;
// //
OFF = 1; H = 1;
//绿 //绿
L = 2; L = 2;
//
H = 3;
// //
U = 4; U = 3;
// //
HU = 5; HU = 4;
// //
B = 6; B = 5;
// //
A = 7; A = 6;
} }
} }
@ -122,6 +129,22 @@ message StationState{
// //
uint32 id = 1; uint32 id = 1;
} }
//
message TrainConnState{
bool conn = 1;//
TrainConnType connType = 2;
uint32 TrainControlMapId = 3; //mapId
string typeName = 4;//
// map<string, SensorSpeedPulseCount> speedPulseCountMap = 5;//
enum TrainConnType{
NONE = 0;//
VOBC = 1; //
PC_SIM = 2; //PC仿真
/*PC_SIM_A = 3; //PC仿真
PC_SIM_B = 4; //PC仿真*/
}
}
// //
message TrainState{ message TrainState{
// //
@ -132,7 +155,7 @@ message TrainState{
float speed = 3; float speed = 3;
//,1=1mm //,1=1mm
int64 trainLength = 4; int64 trainLength = 4;
// //false
bool show = 5; bool show = 5;
// ID // ID
uint32 headDeviceId = 6; uint32 headDeviceId = 6;
@ -140,12 +163,12 @@ message TrainState{
int64 headOffset = 7; int64 headOffset = 7;
// //
string devicePort = 8; string devicePort = 8;
// (A-B,-> ) // (A-B,-> )
bool pointTo = 9; bool driftTo = 9;
// -> -> // -> ->
bool runDirection = 10; bool trainRunUp = 10;
// // 0=1= -> ,2= ->
bool headDirection = 11; uint32 trainActiveDirection = 11;
// //
TrainDynamicState dynamicState = 12; TrainDynamicState dynamicState = 12;
// //
@ -156,6 +179,67 @@ message TrainState{
int64 controlDelayTime = 15; int64 controlDelayTime = 15;
// //
int32 wheelDiameter = 16; int32 wheelDiameter = 16;
//
common.TrainDynamicConfig trainDynamicConfig = 17;
//A端
common.TrainEndsState trainEndsA = 18;
//B端
common.TrainEndsState trainEndsB = 19;
// ID
uint32 tailDeviceId = 20;
//
int64 tailOffset = 21;
//
string tailDevicePort = 22;
// BTM状态 -- 2024-08-12
// BTMState btmState = 23;
TrainControlState tcc = 24;
TrainConnState connState = 25; //
// SensorSpeedPulseCount pluseCount = 26;
// VobcBtmState vobcBtm = 27;//vobc btm
string oldLink = 28;
int64 oldLinkOffset = 29;
string oldTailLink = 30;
int64 oldTailLinkOffset = 31;
TrainBtmCache btmBaliseCacheA = 32; //
TrainBtmCache btmBaliseCacheB = 33; //
int32 TrainLoad = 34; //
float TrainMaxSpeed = 35; //
float TrainMaxAcc = 36; //
float TrainMaxBrake = 37; //
float TrainEmergencyBrake = 38;//
string projectCode = 39;
// TrainBtmCache BtmBaliseCache = 40;
TrainPort trainPort = 40; //
map<int32,SensorSpeedPulseCount> pulseCountMap = 41; // key = TrainPort
uint32 trainCoachNum = 42 ;//
enum TrainPort{
PORT_NONE = 0;
PORT_A=1;
PORT_B=2;
}
// map<bool,TrainVobcState> trainPortVS = 40;
}
//
message TrainBtmCache{
uint32 dsn = 1;
uint32 baliseCount = 2; //)0~255
uint32 messageCounter = 3; // ()0~255
string resendBaliseId = 4;
repeated BTMState baliseList = 5;
}
//
message SensorSpeedPulseCount{
uint32 pulseCount1 = 1;
// uint32 pulseCount2 = 2;
repeated float pulseCount3 = 3;
// repeated float pulseCount4 = 4;
} }
// //
@ -179,35 +263,39 @@ message TrainDynamicState {
bool upslope = 8; bool upslope = 8;
//,1 =true 0 =false //,1 =true 0 =false
bool runningUp = 9; bool runningUp = 9;
//NtotalResistance,1=1KN //NtotalResistance,1=1N
float runningResistanceSum = 10; float runningResistanceSum = 10;
//1NairResistance,1=1KN //1NairResistance,1=1N
float airResistance = 11; float airResistance = 11;
//2NslopeResistance,1=1KN //2NslopeResistance,1=1N
float rampResistance = 12; float rampResistance = 12;
//3线NcurveResistance,1=1KN //3线NcurveResistance,1=1N
float curveResistance = 13; float curveResistance = 13;
//m/sspeed,1=1km/h //m/sspeed,1=1m/s km/h
int32 speed = 14; int32 speed = 14;
//1m/sheadSpeed1,1=1km/h //1m/sheadSpeed1,1=1m/s km/h
int32 headSensorSpeed1 = 15; int32 headSensorSpeed1 = 15;
//2m/sheadSpeed2,1=1km/h //2m/sheadSpeed2,1=1m/s km/h
int32 headSensorSpeed2 = 16; int32 headSensorSpeed2 = 16;
//1m/stailSpeed1,1=1km/h //1m/stailSpeed1,1=1m/s km/h
int32 tailSensorSpeed1 = 17; int32 tailSensorSpeed1 = 17;
//2m/stailSpeed2,1=1km/h //2m/stailSpeed2,1=1m/s km/h
int32 tailSensorSpeed2 = 18; int32 tailSensorSpeed2 = 18;
//m/sheadRadarSpeed,1=1km/h //m/sheadRadarSpeed,1=1m/s km/h
int32 headRadarSpeed = 19; int32 headRadarSpeed = 19;
//m/stailRadarSpeed,1=1km/h //m/stailRadarSpeed,1=1m/s km/h
int32 tailRadarSpeed = 20; int32 tailRadarSpeed = 20;
// //
bool udpInterruption = 21; bool udpInterruption = 21;
// //
float acceleration = 22; float acceleration = 22;
//
// int32 Displacement = 23;
float Displacement = 23;
} }
// vobc发过来的列车信息 // vobc发过来的列车信息 ()
message TrainVobcState { message TrainVobcState {
// +1 // +1
int32 lifeSignal = 1; int32 lifeSignal = 1;
@ -261,6 +349,144 @@ message TrainVobcState {
bool udpInterruption = 25; bool udpInterruption = 25;
// //
int64 updateTime = 26; int64 updateTime = 26;
//
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 leftDoorState = 38;
//
bool rightDoorState = 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; //
// atp
bool atpCutSwitch = 76;
//
bool lightEmergencyBrakingStatus = 77;
//
bool lightTractionSafetyCircuit = 78;
//1
bool lightDir1 = 79;
//2
bool lightDir2 = 80;
//
bool lightDriverActive = 81;
//
bool trainConnInitComplate = 82;
//ato关右门
bool atoCloseRightDoor = 83;
bool lightAtoSend = 84;
//Ato运行级位
AtoStepLevel atoStepLevel = 85;
VobcBtmInfo vobcBtmInfo = 86;
// int64 lineInitTimeStamp12 = 87; //12线
// bool line12ConnErr = 88;//12线12线atp故障atp需要重启atp状态情况(atp故障时atp输出数字量返回的数据最后一个直接是0)
// bool trainConnInitComplateTc1 = 87;
// bool trainConnInitComplateTc2 = 88;
message VobcBtmInfo{
uint32 btmId = 1;
uint32 vobcId = 2;
uint32 vobcLifeId = 3;
}
enum AtoStepLevel{
ATO_STEP_LEVEL_NONE=0;
ATO_STEP_LEVEL_1 = 1;
ATO_STEP_LEVEL_2 = 2;
ATO_STEP_LEVEL_3 = 3;
ATO_STEP_LEVEL_4 = 4;
ATO_STEP_LEVEL_5 = 5;
ATO_STEP_LEVEL_6 = 6;
ATO_STEP_LEVEL_7 = 7;
}
} }
// //
@ -282,11 +508,15 @@ message TrainMapState{
// //
string devicePort = 8; string devicePort = 8;
// (A-B,-> ) // (A-B,-> )
bool pointTo = 9; // bool pointTo = 9;
bool driftTo = 9;
// -> -> // -> ->
bool runDirection = 10; // bool runDirection = 10;
bool trainRunUp = 10;
// //
bool headDirection = 11; // bool headDirection = 11;
// 0= 1=2=
uint32 trainActiveDirection = 11;
// //
int64 trainKilometer = 12; int64 trainKilometer = 12;
// //
@ -390,8 +620,103 @@ message TrainMapState{
bool allDoorClose = 60; bool allDoorClose = 60;
// //
bool vobcInterruption = 61; bool vobcInterruption = 61;
//
TrainDynamicConfigMqtt trainDynamicConfig = 62;
//A端
TrainEndsStateMqtt trainEndsA = 63;
//B端
TrainEndsStateMqtt trainEndsB = 64;
//
// int32 Displacement = 65;
float Displacement = 65;
// ID
uint32 tailDeviceId = 66;
//
int64 tailOffset = 67;
//
string tailDevicePort = 68;
// BTM状态
// BTMState btmState = 69;
TrainConnState connState = 69; //
} }
message BTMState {
string telegram = 1;//16
bool aboveBalise = 2; //BTM天线即将经过应答器
string baliseTelegramForPcSimResend = 3; //pc仿真暂存应答器回复数据
string telegram128 = 4 ;//12816
string baliseId = 5;
bool isSend = 6;//
bool unpack =7; //
int32 baliseType = 8; // model的类型一致
bool hasData =9; //
uint32 resendCount = 10;//
uint32 packageDataSN = 11;//11线
}
//golang float类型数据序列化后丢失精度故使用string
// common_data TrainDynamicConfig类型属性保持一致
message TrainDynamicConfigMqtt{
//A float
string davisParamA = 1;
// B float
string davisParamB = 2;
// C float
string davisParamC = 3;
//线R1 float
string curveResistanceParamR1 = 4;
// 线R2 float
string curveResistanceParamR2 = 5;
// 线R3 float
string curveResistanceParamR3 = 6;
// 线R4 float
string curveResistanceParamR4 = 7;
// float
string revolvingMassParam = 8;
//
bool jump = 9;
//(m/s) 0 float
string slipA = 10;
// (m/s) 0
string slipR = 11;
// ms 0
int32 slipD = 12;
// m/s20 float
string idlingA = 14;
// m/s30
string idlingR = 15;
// ms0
int32 idlingD = 16;
///mm
int32 stopSign = 17;
// /m/s0 float
string slide = 18 ;
//
// int32 trainLoad = 19;
}
//
message TrainEndsStateMqtt{
//
bool speedSensorEnableA = 1;
bool speedSensorEnableB = 2;
//
bool radarEnable = 3;
/// float
string radarCheckSpeedDiff = 4;
//()
int32 radarCheckTime = 5;
bool accEnable = 6;
///
string accCheckSpeedDiff = 7;
//
int32 accCheckTime = 8;
// /
int32 accOutSpeed = 9;
// /
int32 radarOutSpeed = 10;
}
// //
message ReplyState { message ReplyState {
// //
@ -400,6 +725,8 @@ message ReplyState {
bool xh = 2; bool xh = 2;
// //
string code = 3; string code = 3;
//
bool force = 4;
} }
// //
@ -407,6 +734,7 @@ message ButtonState {
uint32 id = 1; uint32 id = 1;
bool down = 2; bool down = 2;
bool active = 3; // bool active = 3; //
// bool bypass = 4; //
} }
// //
@ -426,6 +754,8 @@ message PsdState {
uint32 id = 1; //id uint32 id = 1; //id
repeated AsdState asdStates = 2; // repeated AsdState asdStates = 2; //
bool mgj = 3; // bool mgj = 3; //
request.PsdParam param = 4; //
bool zaw = 5; //
} }
// //
@ -434,12 +764,16 @@ message AsdState {
bool kmdw = 2; // bool kmdw = 2; //
bool gmdw = 3; // bool gmdw = 3; //
bool mgj = 4; // bool mgj = 4; //
bool zaw = 5; //
bool force = 6; ///
} }
// //
message KeyState { message KeyState {
uint32 id = 1; uint32 id = 1;
int32 gear = 2; int32 gear = 2;
// bool bypass = 3; //
} }
// //
@ -452,7 +786,46 @@ message MkxJState {
message BaliseState { message BaliseState {
uint32 id = 1; uint32 id = 1;
graphicData.KilometerSystem km = 2; // graphicData.KilometerSystem km = 2; //
string telegram = 3; //16 string fixedTelegram = 3; //
string fixedUserTelegram = 4; //
string variableTelegram = 5; //
string variableUserTelegram = 6; //
bool work = 7; //
}
//
message StationQc {
repeated State qdStates = 1; //
repeated State cjStates = 2; //
message State {
int32 row = 1; //
int32 col = 2; //
bool on = 3; //
}
}
//
message CkmState {
uint32 id = 1; //id
bool mgj = 2; //
request.CkmParam param = 3; //
bool local = 4; ///
bool mplj = 5; //
}
//
message XcjState {
uint32 id = 1; //id
request.XcjParam param = 2; //
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; //
} }
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
@ -477,7 +850,7 @@ message AllDevicesStatus{
repeated TrainMapState trainState = 1; repeated TrainMapState trainState = 1;
// //
repeated SwitchState switchState = 2; repeated SwitchState switchState = 2;
// //
repeated SectionState sectionState = 3; repeated SectionState sectionState = 3;
// //
repeated ReplyState replyState = 4; repeated ReplyState replyState = 4;
@ -497,6 +870,16 @@ message AllDevicesStatus{
repeated PlatformState platformState = 11; repeated PlatformState platformState = 11;
// //
repeated BaliseState baliseState = 12; repeated BaliseState baliseState = 12;
//
StationQc stationQc = 13;
//
repeated CkmState ckmStates = 14;
//
repeated CkmState fymStates = 15;
//
repeated XcjState xcjStates = 16;
//
repeated AxleCountingSectionState axleCountingSection = 17;
} }
// //
@ -514,15 +897,108 @@ message PushedDevicesStatus{
message SimulationStatus { message SimulationStatus {
enum SimulationState { enum SimulationState {
PAUSE = 0; Init = 0;
START = 1; Running = 1;
ERROR = 2; Pause = 2;
DESTROY = 3; Error = 3;
Destroy = 4;
} }
string simulationId = 1; string simulationId = 1;
SimulationState state = 2; SimulationState state = 2;
// string description = 3;
}
// 仿
message SimulationThirdPartyApiService {
enum Type {
//
Undefined = 0;
//
Dynamics = 1;
//
SemiPhysicalTrain = 2;
//pc仿真
Train_pc_sim = 3;
//
CI = 4;
//
AxleSection = 5;
}
//
enum State {
//
Normal = 0;
//
Error = 1;
}
//
repeated SimulationThirdPartyApiServiceState states = 1;
}
// 仿
message SimulationThirdPartyApiServiceState {
//
SimulationThirdPartyApiService.Type type = 1;
//
SimulationThirdPartyApiService.State state = 2;
//
string serviceName = 3;
}
//
message TrainControlState{
map<string,ControlButton> buttons = 1;
repeated DriverKeySwitch driverKey = 2; //
map<string,SwitchKeyChange> switchKeyMap = 3;
// DirectionKeySwitch dirKey = 3; //
PushHandler pushHandler = 4; //
map<string, ControlLight> lightMaps = 5;
// int64 lineInitTimeStamp12PortA = 6; //12线
// int64 lineInitTimeStamp12PortB = 7; //12线
// bool line12ConnErrPortA = 8;//12线12线atp故障atp需要重启atp状态情况(atp故障时atp输出数字量返回的数据最后一个直接是0)
// bool line12ConnErrPortB = 9;//12线12线atp故障atp需要重启atp状态情况(atp故障时atp输出数字量返回的数据最后一个直接是0)
// bool TrainConnInitComplatePortA = 10;
// bool TrainConnInitComplatePortB = 11;
// bool activeTrainA = 12;
// bool activeTrainB = 13;
// bool Line12ConnErr = 14;
// int64 lineInitTimeStamp12 = 15;
message ControlButton{
uint32 id = 1;
bool passed = 3;
}
message DriverKeySwitch{
uint32 id = 1;
bool val = 2; //0=1=
// request.DriverType dt = 3;
}
message SwitchKeyChange{
uint32 id = 1;
uint32 val = 2; //0=(mm)1=(AA),2=(AM)
}
//
message PushHandler{
uint32 id = 1;
int32 val = 2; // 00 (*100)使100
}
message ControlLight{
uint32 id = 1;
bool val = 2;
}
}
//
message TrainControlStateMsg{
repeated TrainControlState.ControlButton buttons = 1;
repeated TrainControlState.DriverKeySwitch driverKey = 2; //
repeated TrainControlState.SwitchKeyChange switchKeys = 3; //
TrainControlState.PushHandler pushHandler = 4; //
repeated TrainControlState.ControlLight lights = 5;
}
string description = 3;
}

View File

@ -13,4 +13,6 @@ enum PictureType {
IBP = 3; IBP = 3;
/** 列车数据 */ /** 列车数据 */
TrainData = 4; TrainData = 4;
/** 列车驾驶台 */
TrainControlCab = 5;
} }

View File

@ -39,6 +39,8 @@ message Relay {
string code = 2;// string code = 2;//
//string model = 3;// //string model = 3;//
ModelType newModel = 4;// ModelType newModel = 4;//
string showCode = 5;//
CjDataItem.PostionType defaultInitialPosition = 6;//
} }
/* 断相保护器 */ /* 断相保护器 */
@ -64,7 +66,7 @@ message DeviceRelateRelay {
} }
message Combinationtype { message Combinationtype {
string code = 1; string code = 1;
repeated string oldrefRelays = 2;// //repeated string oldrefRelays = 2;//
repeated uint32 refRelays = 3;// repeated uint32 refRelays = 3;//
} }
@ -93,8 +95,9 @@ message CjDataItem {
enum PostionType { enum PostionType {
Q=0; Q=0;
H=1; H=1;
NONE=2;
} }
string oldrelayId = 1;//Id //string oldrelayId = 1;//Id
PostionType position = 2;//QH对应着吸合 PostionType position = 2;//QH对应着吸合
uint32 relayId = 3;//Id uint32 relayId = 3;//Id
} }
@ -111,6 +114,6 @@ message QdDataSet {
} }
message QdData { message QdData {
repeated string oldrefRelays=1;//Id //repeated string oldrefRelays=1;//Id
repeated uint32 refRelays=2;//Id repeated uint32 refRelays=2;//Id
} }

View File

@ -2,6 +2,28 @@ syntax = "proto3";
package request; package request;
option go_package = "joylink.club/bj-rtsts-server/dto/request_proto"; option go_package = "joylink.club/bj-rtsts-server/dto/request_proto";
/*
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;
}
*/
// //
message Relay { message Relay {
@ -23,30 +45,33 @@ message RelayOperationReq {
} }
// //
message Turnout { message Points {
// //
enum Operation { enum Operation {
Undefined = 0; // Undefined = 0; //
DC = 1; // SetParams = 1; //
CancelDC = 2; // }
FC = 3; // //
CancelFC = 4; // enum Force {
SetSB = 5; // FP_NONE = 0; //
CancelSB = 6; // FP_DW = 1; //
SetJC = 7; // FP_FW = 2; //
CancelJC = 8; // FP_SB = 3; //
ForceDw = 9; //
ForceFw = 10; //
CancelForce = 11; //
} }
} }
// //
message TurnoutOperationReq { message PointsOperationReq {
string simulationId = 1; // 仿id string simulationId = 1; // 仿id
int32 mapId = 2; // id int32 mapId = 2; // id
uint32 deviceId = 3; // id uint32 deviceId = 3; // id
Turnout.Operation operation = 4; // Points.Operation operation = 4; //
PointsParam param = 5; // ,operation为SetParams时有效
}
//
message PointsParam {
Points.Force forcePosition = 1; //
} }
// //
@ -54,64 +79,95 @@ message Signal {
// //
enum Operation { enum Operation {
Undefined = 0; // Undefined = 0; //
Display = 1; //,绿 SetParams = 1; //
LightHFaultDs = 2; // // Display = 1; //,绿
LightUFaultDs = 3; // // LightHFaultDs = 2; //
LightLFaultDs = 4; //绿 // LightUFaultDs = 3; //
LightAFaultDs = 5; // // LightLFaultDs = 4; //绿
LightBFaultDs = 6; // // LightAFaultDs = 5; //
LightHCancelDs = 7; // // LightBFaultDs = 6; //
LightUCancelDs = 8; // // LightHCancelDs = 7; //
LightLCancelDs = 9; //绿 // LightUCancelDs = 8; //
LightACancelDs = 10; // // LightLCancelDs = 9; //绿
LightBCancelDs = 11; // // LightACancelDs = 10; //
// LightBCancelDs = 11; //
} }
enum DS {
DS_H = 0; //
DS_U = 1; //
DS_L = 2; // 绿
DS_A = 3; //
DS_B = 4; //
}
//
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; //
}
}
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; //
} }
// //
message Section { message Section {
// //
enum Operation { enum Operation {
SetDrst = 0;// Undefined = 0; //
CancelDrst = 1;// SetParams = 1; //
SetPdrst = 2;// // SetDrst = 0;//
CancelPdrst = 3;// // CancelDrst = 1;//
// SetPdrst = 2;//
// CancelPdrst = 3;//
SetFaultOcc = 4; // SetFaultOcc = 4; //
CancelFaultOcc = 5; // // CancelFaultOcc = 5; //
} }
} }
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计轴预复位()
}
// //
message Psd { message Psd {
enum Operation { enum Operation {
Undefined = 0; Undefined = 0;
// SetParams = 1; //
// Km4 = 1; // }
// CancelKm4 = 2; // enum Force {
// Km8 = 3; // F_NONE = 0; //
// CancelKm8 = 4; // F_ASD_KM = 1; //
// Gm = 5; // F_ASD_GM = 2; //
// CancelGm = 6; // }
// ForceKm4 = 7; // enum Fault {
// ForceKm8 = 8; // FA_NONE = 0; //
// ForceGm = 9; // FA_Obstacle = 1; //
Km = 1; //
CancelKm = 2; //
Gm = 3; //
CancelGm = 4; //
ForceKm = 5; //
ForceGm = 6; //
CancelForce = 10; //
//
AsdCannotOpen = 11; //
CancelAsdCannotOpen = 12; //
AsdCannotClose = 13; //
CancelAsdCannotClose = 14; //
//
QDTC = 15; //
CancelQDTC = 16; //
TZTC = 17; //
CancelTZTC = 18; //
} }
} }
@ -121,6 +177,114 @@ message PsdOperationReq {
int32 mapId = 2; // id int32 mapId = 2; // id
uint32 deviceId = 3; // id uint32 deviceId = 3; // id
Psd.Operation operation = 4; // Psd.Operation operation = 4; //
repeated int32 asdCodes = 5; /// PsdParam param = 5; // ,operation为SetParams时有效
int32 group = 6; // }
message PsdParam {
repeated int32 asdCodes = 1; //
Psd.Force force = 2; //
Psd.Fault fault = 3; //
}
//
message TrainControl{
string simulationId = 1; // 仿id
string trainId = 2;
uint32 deviceId = 3;//id
TrainControlType controlType = 4;
ControlButton controlButton = 5; //
DriverKeySwitch driverKey = 6;
SwitchKeyChange switchKey = 7; ///
PushHandler handler = 8; //
message ControlButton{
bool active = 1;
}
enum TrainControlType{
EMERGENT_BUTTON = 0; //
DRIVER_KEY_SWITCH = 1; //
DIRECTION_KEY_SWITCH = 2;//
HANDLER = 3; //
TRAIN_DOOR_MODE_CHANGE =4;//
}
enum KeyLocation{
KL_END = 0; //退 :mm模式
KL_FONT = 1; // :AA模式
KL_CENTER = 2;// :AM模式
}
//
message EmergentButton{
bool active = 1;
}
//
message DriverKeySwitch{
bool val = 1; //0=1=
}
message SwitchKeyChange{
uint32 val = 1; //0=(:MM)1=(:AA),2=(:AM)
}
//
message PushHandler{
int32 val = 1; // 00 (*100)使100
}
}
message CkmOperationReq {
string simulationId = 1;
int32 mapId = 2;
uint32 deviceId = 3; //idid
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;
}
message XcjOperationReq {
string simulationId = 1;
int32 mapId = 2;
uint32 deviceId = 3; //idid
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;
} }

View File

@ -1,6 +1,8 @@
syntax = "proto3"; syntax = "proto3";
package graphicData; package graphicData;
import "common_data.proto";
option java_package = "club.joylink.bjrtss.ats.verify.protos"; option java_package = "club.joylink.bjrtss.ats.verify.protos";
option java_outer_classname = "LayoutGraphicsProto"; option java_outer_classname = "LayoutGraphicsProto";
option go_package = "joylink.club/bj-rtsts-server/dto/data_proto"; option go_package = "joylink.club/bj-rtsts-server/dto/data_proto";
@ -25,7 +27,7 @@ message RtssGraphicStorage {
repeated LogicSection logicSections = 17; repeated LogicSection logicSections = 17;
repeated StopPosition stopPositions = 18; repeated StopPosition stopPositions = 18;
repeated SpksSwitch spksSwitchs = 19; repeated SpksSwitch spksSwitchs = 19;
repeated EsbButton esbButtons = 20; // repeated EsbButton esbButtons = 20; // ESB系统的象征物
repeated GatedBox gateBoxs = 21; // // repeated GatedBox gateBoxs = 21; // //
repeated Transponder transponders = 22; // repeated Transponder transponders = 22; //
repeated Slope slopes = 23; // repeated Slope slopes = 23; //
@ -36,7 +38,7 @@ message RtssGraphicStorage {
repeated TrackSection trackSections = 28; // repeated TrackSection trackSections = 28; //
repeated TrackLogicSection trackLogicSections = 29; // repeated TrackLogicSection trackLogicSections = 29; //
//UniqueIdType UniqueIdPrefix = 30;//-- //UniqueIdType UniqueIdPrefix = 30;//--
UniqueIdOfStationLayout UniqueIdPrefix = 31;//-- UniqueIdOfStationLayout UniqueIdPrefix = 31;//
repeated KilometerConvert kilometerConvertList = 32;// repeated KilometerConvert kilometerConvertList = 32;//
repeated ScreenDoor screenDoors = 33; repeated ScreenDoor screenDoors = 33;
repeated StationRelateDevice stationRelateDeviceList = 34; // repeated StationRelateDevice stationRelateDeviceList = 34; //
@ -48,6 +50,16 @@ message RtssGraphicStorage {
repeated AutoReturnBox autoReturnBoxs = 40; // repeated AutoReturnBox autoReturnBoxs = 40; //
repeated ConcentrationDividingLine concentrationDividingLines = 41; // 线 repeated ConcentrationDividingLine concentrationDividingLines = 41; // 线
repeated OtherLine otherLineList = 42; // 线 repeated OtherLine otherLineList = 42; // 线
repeated IbpBox ibpBoxs = 43; // ibp地图打开按钮
repeated PslBox pslBoxs = 44; // psl地图打开按钮
repeated CarWashing carWashings = 45; //
repeated GarageDoor garageDoors = 46; //
repeated GarageDoor floodGates = 47; //
//repeated GarageDoorBox garageDoorBoxes = 48; //Psl开启按钮
LianSuoData lianSuoData = 49; //
repeated HoldButton holdButtons = 50; //
repeated UnattengedButton unattengedButtons = 51; //
repeated KilometerMarkCalibration kilometerMarkCalibrations = 52; //
} }
message Canvas { message Canvas {
@ -59,6 +71,15 @@ message Canvas {
string backgroundColor = 3; string backgroundColor = 3;
// //
Transform viewportTransform = 4; Transform viewportTransform = 4;
//
Grid gridBackground = 5;
}
//
message Grid {
bool hasGrid = 1;
string lineColor = 2; // 线
int32 space = 3; //
} }
message Point { message Point {
@ -89,7 +110,7 @@ message ChildTransform {
} }
// //
message CommonInfo { message CommonInfo {
string oldid = 1; // string oldid = 1;
string graphicType = 2; string graphicType = 2;
Transform transform = 3; Transform transform = 3;
repeated ChildTransform childTransforms = 4; repeated ChildTransform childTransforms = 4;
@ -131,8 +152,8 @@ message ConcentrationDividingLine {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; // string code = 2; //
repeated Point points = 3; // repeated Point points = 3; //
string oldrefLeftStationId = 4;//id //string oldrefLeftStationId = 4;//id
string oldrefRightStationId = 5;//id //string oldrefRightStationId = 5;//id
repeated NodeConWithSec nodeConWithSecs = 6;// 线 repeated NodeConWithSec nodeConWithSecs = 6;// 线
bool isOtherLineConcentrationDividingLine = 7;//线线 bool isOtherLineConcentrationDividingLine = 7;//线线
uint32 refLeftStationId = 8;//id uint32 refLeftStationId = 8;//id
@ -158,8 +179,8 @@ message Platform {
//int32 refStationIndex = 6; // //int32 refStationIndex = 6; //
// repeated string centralizedStations = 7; // // repeated string centralizedStations = 7; //
//repeated RelatedRef platformRef = 8; // //repeated RelatedRef platformRef = 8; //
string oldrefStationId = 9; //id //string oldrefStationId = 9; //id
string oldrefSectionId = 10; //id //string oldrefSectionId = 10; //id
string refEsbRelayCode = 11;// string refEsbRelayCode = 11;//
TypeOfPlatform type = 12; // TypeOfPlatform type = 12; //
uint32 refStationId = 13; //id uint32 refStationId = 13; //id
@ -170,7 +191,7 @@ message ScreenDoor {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
//int32 sonDoorAmount = 3; // //int32 sonDoorAmount = 3; //
string oldrefPlatformId = 4; // //string oldrefPlatformId = 4; //
//repeated ScreenDoorGroup screenDoorGroupList = 5;// //repeated ScreenDoorGroup screenDoorGroupList = 5;//
uint32 refPlatformId = 6; // uint32 refPlatformId = 6; //
} }
@ -194,11 +215,11 @@ message Station {
// string kilometerCode = 5; // // string kilometerCode = 5; //
KilometerSystem kilometerSystem = 6; // KilometerSystem kilometerSystem = 6; //
// int32 index = 7; // int32 index = 7;
string refIbpMapCode = 8; // IBP地图Code //string refIbpMapCode = 8; // IBP地图Code
string stationName = 9; // string stationName = 9; //
string stationNameAcronym = 10; // string stationNameAcronym = 10; //
bool depots = 11; // bool depots = 11; //
repeated string oldmanageStations = 12; // -id //repeated string oldmanageStations = 12; // -id
repeated uint32 manageStations = 13; // -id repeated uint32 manageStations = 13; // -id
} }
@ -220,13 +241,13 @@ message AxleCounting {
// int32 index = 5; // // int32 index = 5; //
//bool invent = 6; //-- //bool invent = 6; //--
TypeDetectionPoint type = 7; // TypeDetectionPoint type = 7; //
repeated string oldcentralizedStations = 8; // Id列表 //repeated string oldcentralizedStations = 8; // Id列表
repeated uint32 centralizedStations = 9; // Id列表 repeated uint32 centralizedStations = 9; // Id列表
} }
message GenerateAxleCountingConfig { message GenerateAxleCountingConfig {
repeated string oldbbConnect = 1; //bb连接处生成计轴的道岔id() //repeated string oldbbConnect = 1; //bb连接处生成计轴的道岔id()
repeated string oldnoGenerateGroup = 2;// //repeated string oldnoGenerateGroup = 2;//
repeated uint32 bbConnect = 3; //bb连接处生成计轴的道岔id() repeated uint32 bbConnect = 3; //bb连接处生成计轴的道岔id()
repeated uint32 noGenerateGroup = 4;// repeated uint32 noGenerateGroup = 4;//
} }
@ -260,11 +281,11 @@ message Turnout { //(后端不关注)
// KilometerSystem kilometerSystem = 12; // // KilometerSystem kilometerSystem = 12; //
repeated KilometerSystem kilometerSystem = 13; // repeated KilometerSystem kilometerSystem = 13; //
// int32 index = 14; // // int32 index = 14; //
string oldpaTrackSectionId = 15; // A端轨道区段id //string oldpaTrackSectionId = 15; // A端轨道区段id
string oldpbTrackSectionId = 16; // B端轨道区段id //string oldpbTrackSectionId = 16; // B端轨道区段id
string oldpcTrackSectionId = 17; // C端轨道区段id //string oldpcTrackSectionId = 17; // C端轨道区段id
SwitchMachineType switchMachineType = 18; // SwitchMachineType switchMachineType = 18; //
repeated string oldcentralizedStations = 19; // Id列表 //repeated string oldcentralizedStations = 19; // Id列表
repeated uint32 centralizedStations = 20; // Id列表 repeated uint32 centralizedStations = 20; // Id列表
uint32 paTrackSectionId = 21; // A端轨道区段id uint32 paTrackSectionId = 21; // A端轨道区段id
uint32 pbTrackSectionId = 22; // B端轨道区段id uint32 pbTrackSectionId = 22; // B端轨道区段id
@ -292,7 +313,7 @@ message Signal {
KilometerSystem kilometerSystem = 6; KilometerSystem kilometerSystem = 6;
// int32 index = 7; // // int32 index = 7; //
RelatedRef refDev = 8; /// RelatedRef refDev = 8; ///
repeated string oldcentralizedStations = 9; // Id列表 //repeated string oldcentralizedStations = 9; // Id列表
// //
// //
// //
@ -341,12 +362,12 @@ message Section {
RelatedRef paRef = 4; // A端关联的设备()() RelatedRef paRef = 4; // A端关联的设备()()
RelatedRef pbRef = 5; // B端关联的设备()() RelatedRef pbRef = 5; // B端关联的设备()()
SectionType sectionType = 6; // SectionType sectionType = 6; //
repeated string oldaxleCountings = 7; // //repeated string oldaxleCountings = 7; //
// int32 index = 8; // // int32 index = 8; //
string oldtrackSectionId = 9; // id //string oldtrackSectionId = 9; // id
bool isCurve = 10; // 线 bool isCurve = 10; // 线
int32 segmentsCount = 12; // 线 int32 segmentsCount = 12; // 线
repeated string oldcentralizedStations = 13; // Id列表 //repeated string oldcentralizedStations = 13; // Id列表
RunningDirection normalRunningDirection = 14; // RunningDirection normalRunningDirection = 14; //
bool isTurnBackZone = 15; // bool isTurnBackZone = 15; //
Direction direction = 16; // Direction direction = 16; //
@ -358,10 +379,10 @@ message Section {
// //
message RelatedRef { message RelatedRef {
enum DeviceType { enum DeviceType {
Section = 0; Section = 0; //
Turnout = 1; Turnout = 1; //
TrainWindow = 2; TrainWindow = 2; //
AxleCounting = 3; AxleCounting = 3; //
SectionLink = 4; SectionLink = 4;
signal = 5; signal = 5;
station = 6; station = 6;
@ -369,6 +390,11 @@ message RelatedRef {
SignalFaultAlarm = 8; SignalFaultAlarm = 8;
Breakers = 9;// Breakers = 9;//
PowerScreen = 10;// PowerScreen = 10;//
GarageDoor = 11; //
CarWashing = 12; //
FloodGate = 13; //
Platform = 14; //
LS = 15;//
} }
enum DevicePort { enum DevicePort {
@ -378,14 +404,14 @@ message RelatedRef {
} }
DeviceType deviceType = 1; // DeviceType deviceType = 1; //
string oldid = 2; //ID //string oldid = 2; //ID
DevicePort devicePort = 3; // DevicePort devicePort = 3; //
uint32 id = 4; uint32 id = 4;
} }
// //
message TurnoutPosRef { message TurnoutPosRef {
string oldid = 1; //ID //string oldid = 1; //ID
int32 position = 2; //01 int32 position = 2; //01
uint32 id = 3; uint32 id = 3;
} }
@ -410,10 +436,15 @@ message Transponder { // 应答器
// int32 index = 4; // // int32 index = 4; //
KilometerSystem kilometerSystem = 5; // KilometerSystem kilometerSystem = 5; //
RelatedRef TransponderRef = 6; // RelatedRef TransponderRef = 6; //
repeated string oldcentralizedStations = 7; // Id列表 //repeated string oldcentralizedStations = 7; // Id列表
bytes fixedTelegram = 8;// // bytes fixedTelegram = 8;//
TransponderTypeEnum type = 9;// TransponderTypeEnum type = 9;//
repeated uint32 centralizedStations = 10; // Id列表 repeated uint32 centralizedStations = 10; // Id列表
string fixedTelegram = 11; //
string fixedUserTelegram = 12; //
string originalCode = 13; //
uint32 leuIndex = 14; //LEU的索引
uint32 leuInsideIndex = 15; // LEU内部的索引
} }
message SimpleRef { message SimpleRef {
@ -422,7 +453,7 @@ message SimpleRef {
AxleCounting = 1; AxleCounting = 1;
} }
DeviceType deviceType = 1; DeviceType deviceType = 1;
string oldid = 2; //string oldid = 2;
uint32 id = 3; uint32 id = 3;
} }
@ -456,9 +487,9 @@ message LogicSection { // 逻辑区段
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; // string code = 2; //
repeated Point points = 3; repeated Point points = 3;
string oldaxleSectionId = 4; // Id //string oldaxleSectionId = 4; // Id
// int32 index = 5; // // int32 index = 5; //
string oldturnoutId = 6; // idC端关联的轨道link //string oldturnoutId = 6; // idC端关联的轨道link
uint32 axleSectionId = 7; // Id uint32 axleSectionId = 7; // Id
uint32 turnoutId = 8; // idC端关联的轨道link uint32 turnoutId = 8; // idC端关联的轨道link
} }
@ -474,7 +505,7 @@ message TrackSection { //轨道区段
// int32 index = 4; // // int32 index = 4; //
TrackSectionType type = 5; // TrackSectionType type = 5; //
string destinationCode = 6; // string destinationCode = 6; //
repeated string oldtrackLogicSection = 7; //id() //repeated string oldtrackLogicSection = 7; //id()
// //id(/)(/) // //id(/)(/)
bool isCurve = 8; // 线 bool isCurve = 8; // 线
int32 segmentsCount = 9; // 线 int32 segmentsCount = 9; // 线
@ -509,9 +540,9 @@ message SpksSwitch {
bool flip = 3; // bool flip = 3; //
// int32 index = 4; // // int32 index = 4; //
// int32 refStand = 5; // // int32 refStand = 5; //
repeated string oldrefSections = 6; // id //repeated string oldrefSections = 6; // id
string oldrefStand = 7; // //string oldrefStand = 7; //
repeated uint32 refSections = 8; // id // repeated uint32 refSections = 8; // id
uint32 refStand = 9; // uint32 refStand = 9; //
} }
@ -521,8 +552,9 @@ message EsbButton {
bool flip = 3; // bool flip = 3; //
// int32 index = 4; // // int32 index = 4; //
// int32 refStand = 5; // // int32 refStand = 5; //
string oldrefStand = 6; // //string oldrefStand = 6; //
uint32 refStand = 7; // uint32 refStand = 7; //
//string refEsbButtonMapCode = 8; // Code--PSL地图
} }
message GatedBox { message GatedBox {
@ -530,11 +562,25 @@ message GatedBox {
string code = 2; string code = 2;
bool flip = 3; // bool flip = 3; //
// int32 index = 4; // // int32 index = 4; //
string oldrefScreenDoor = 5; // //string oldrefScreenDoor = 5; //
string refGatedBoxMapCode = 6; // Code string refGatedBoxMapCode = 6; // Code
uint32 refScreenDoor = 7; // uint32 refScreenDoor = 7; //
} }
message IbpBox {
CommonInfo common = 1;
string code = 2;
string refIbpMapCode = 3; // Ibp地图Code
uint32 refStationId = 4; // id
}
message PslBox {
CommonInfo common = 1;
string code = 2;
string refPslMapCode = 3; // Psl地图Code
uint32 refPlatformId = 4; // id
}
/** 坡度公里标 */ /** 坡度公里标 */
message SlopeKiloMarker { message SlopeKiloMarker {
CommonInfo common = 1; CommonInfo common = 1;
@ -548,7 +594,23 @@ message CurvatureKiloMarker {
string code = 2; string code = 2;
repeated KilometerSystem kilometerSystem = 4; // repeated KilometerSystem kilometerSystem = 4; //
} }
/** 车库门 */
message GarageDoor {
CommonInfo common = 1;
string code = 2;
uint32 linkSection = 3; //
repeated uint32 centralizedStations = 4; // Id列表;
string refPslMapCode = 5; // Psl地图的code
}
/** 洗车机 */
message CarWashing {
CommonInfo common = 1;
string code = 2;
uint32 linkSection = 3; //
repeated uint32 centralizedStations = 4; // Id列表;
uint32 duanNum = 5; //
uint32 width = 6; //
}
/** 信标 */ /** 信标 */
message Beacon { message Beacon {
enum BeaconType { enum BeaconType {
@ -565,7 +627,7 @@ message Slope {
CommonInfo common = 1; CommonInfo common = 1;
repeated Point points = 2; repeated Point points = 2;
sint32 slopeNumber = 3; //-- sint32 slopeNumber = 3; //--
repeated string oldrefDeviceId = 4; // () //repeated string oldrefDeviceId = 4; // ()
repeated uint32 refDeviceId = 5; // () repeated uint32 refDeviceId = 5; // ()
} }
@ -573,7 +635,7 @@ message Curvature {
CommonInfo common = 1; CommonInfo common = 1;
repeated Point points = 2; repeated Point points = 2;
sint32 curvatureNumber = 3; //线-- sint32 curvatureNumber = 3; //线--
repeated string oldrefDeviceId = 4; // 线() //repeated string oldrefDeviceId = 4; // 线()
repeated uint32 refDeviceId = 5; // 线() repeated uint32 refDeviceId = 5; // 线()
} }
@ -596,7 +658,7 @@ message Curvature {
message DepartureTimer { message DepartureTimer {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
string oldrefStand = 3; // //string oldrefStand = 3; //
string runDirection = 4; // string runDirection = 4; //
uint32 refStand = 5; // uint32 refStand = 5; //
} }
@ -606,7 +668,7 @@ message AutoReturnBox {
string code = 2; string code = 2;
bool flip = 3; // bool flip = 3; //
int32 index = 4; // int32 index = 4; //
string oldrefStand = 5; // //string oldrefStand = 5; //
uint32 refStand = 6; // uint32 refStand = 6; //
} }
@ -631,13 +693,13 @@ message StationRelateDevice {
} }
message DeviceCombinationtype { message DeviceCombinationtype {
string code = 1; string code = 1;
repeated string oldrefDevices = 2;// //repeated string oldrefDevices = 2;//
repeated uint32 refDevices = 3;// repeated uint32 refDevices = 3;//
} }
message SectionCodePoint { message SectionCodePoint {
string oldCentralizedStation = 1; // id //string oldCentralizedStation = 1; // id
repeated string oldsectionIds = 2; //id列表 //repeated string oldsectionIds = 2; //id列表
repeated uint32 sectionIds = 3; //id列表 repeated uint32 sectionIds = 3; //id列表
uint32 centralizedStation = 4; // id uint32 centralizedStation = 4; // id
} }
@ -653,14 +715,63 @@ message Train {
TrainModel trainModel = 1; // TrainModel trainModel = 1; //
int32 carriageLength = 2; // int32 carriageLength = 2; //
int32 totalLength = 3; // int32 totalLength = 3; //
int32 minDiameter = 4; // // int32 minDiameter = 4; //
int32 maxDiameter = 5; // // int32 maxDiameter = 5; //
string trainSets = 6; // string trainSets = 6; //
common.TrainDynamicConfig dynamicConfig = 7; //
// string trainControlMapCode = 8;
int32 trainControlMapId = 9;
int32 trainLoad = 10; //()
float trainMaxSpeed = 11; //(km/h)
float trainMaxAcc = 12; //(m/s^2)
float trainMaxBrake = 13; //(m/s^2)
float TrainEmergencyBrake = 14; //(m/s^2)
} }
// 线 // 线
message OtherLine { message OtherLine {
string name = 1; string name = 1;
repeated string oldids = 2; // id列表 //repeated string oldids = 2; // id列表
repeated uint32 ids = 3; // id列表 repeated uint32 ids = 3; // id列表
} }
//
message LianSuoIndexData {
uint32 id = 1; // id
uint32 index = 2; //
}
//
message LianSuoData {
repeated LianSuoIndexData stations = 1;
repeated LianSuoIndexData switchs = 2;
repeated LianSuoIndexData screenDoors = 3;
repeated LianSuoIndexData signals = 4;
// repeated LianSuoIndexData sections = 5;
repeated LianSuoIndexData floodGates = 6;
repeated LianSuoIndexData spksSwitchs = 7;
repeated LianSuoIndexData garageDoors = 8;
repeated LianSuoIndexData carWashing = 9;
repeated LianSuoIndexData esbButtons = 10;
repeated LianSuoIndexData holdButtons = 11;
repeated LianSuoIndexData unattengedButtons = 12;
repeated LianSuoIndexData acSections = 13; //
}
//
message UnattengedButton {
CommonInfo common = 1;
string code = 2;
bool flip = 3; //
uint32 refStand = 4; //
}
//
message HoldButton {
CommonInfo common = 1;
string code = 2;
bool flip = 3; //
uint32 refStand = 4; // A联站台
}
//
message KilometerMarkCalibration {
KilometerSystem actualKm = 1;
KilometerSystem designKm =2;
}

63
protos/tccGraphics.proto Normal file
View File

@ -0,0 +1,63 @@
syntax = "proto3";
import "stationLayoutGraphics.proto";
package tccGraphicData;
option go_package = "joylink.club/bj-rtsts-server/dto/data_proto";
message TccGraphicStorage {
graphicData.Canvas canvas = 1;
repeated TccButton tccButtons = 2;
repeated TccText tccTexts = 3;
repeated TccKey tccKeys = 4;
repeated TccHandle tccHandles = 5;
repeated TccLight tccLights = 6;
}
/** TCC按钮 */
message TccButton {
graphicData.CommonInfo common = 1;
string code = 2;
bool isSelfReset = 3;
}
/** TCC文字 */
message TccText {
graphicData.CommonInfo common = 1;
string code = 2;
string content = 3;
string color = 4;
int32 fontSize = 5;
}
/** TCC钥匙 */
message TccKey {
enum TccKeyType {
driverControllerActivationClint = 0; //
frontAndRearDirectionalControl = 1;//
trainDoorMode = 2;//
}
graphicData.CommonInfo common = 1;
string code = 2;
TccKeyType type = 3;
}
/** TCC手柄 */
message TccHandle {
graphicData.CommonInfo common = 1;
string code = 2;
}
/** TCC灯 */
message TccLight {
graphicData.CommonInfo common = 1;
string code = 2;
TccElementColor lightColor = 3;
bool activeLevel = 4;//
bool initialState = 5;//
}
enum TccElementColor {
green = 0;
red = 1;
blue = 2;
}