From c0f73e7b5d404e4c932711b44770b4e75ebbfe74 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Fri, 15 Mar 2024 16:03:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E5=89=8D=E7=AB=AF=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=88=97=E8=BD=A6=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E4=B8=89=E6=96=B9=E6=98=A0=E5=B0=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=8Aws=E8=BF=94=E5=9B=9E=E5=88=97=E8=BD=A6=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/protos/device_state.proto b/protos/device_state.proto index 41bec0c..63ddbc2 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -6,6 +6,7 @@ package state; option java_package = "club.joylink.bjrtss.ats.verify.protos"; option java_outer_classname = "DeviceStateProto"; option go_package = "joylink.club/bj-rtsts-server/dto/state_proto"; +//option go_package = "dto/state_proto;"; //状态定义面向物理层即只定义物理状态,不定义逻辑层状态 @@ -121,6 +122,17 @@ message StationState{ //车站索引 uint32 id = 1; } + +//列车连接状态 +message TrainConnState{ + bool conn = 1; + TrainConnType connType = 2; + enum TrainConnType{ + NONE = 0;//未知连接 + VOBC = 1; //半实物 + PC_SIM = 2; //PC仿真 + } +} //列车状态 message TrainState{ //列车索引 @@ -169,6 +181,8 @@ message TrainState{ string tailDevicePort = 22; // BTM状态 BTMState btmState = 23; + //列车连接三方状态 + TrainConnState connState = 24; } // 动力学列车状态 @@ -422,6 +436,7 @@ message TrainMapState{ string tailDevicePort = 68; // BTM状态 BTMState btmState = 69; + TrainConnState connState = 70; } message BTMState {