From 4a126b57ac6bb950d764851a27a5ddf4caad0b2a Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Mon, 12 Aug 2024 15:18:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E8=AE=BE=E5=A4=87=E7=8A=B6?= =?UTF-8?q?=E6=80=81proto=E6=B6=88=E6=81=AF=E4=B8=AD=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=AE=A1=E8=BD=B4=E5=8C=BA=E6=AE=B5=E7=8A=B6=E6=80=81=EF=BC=8C?= =?UTF-8?q?=E5=8E=9F=E2=80=9C=E6=89=80=E6=9C=89=E5=8C=BA=E6=AE=B5=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E2=80=9D=E6=94=B9=E4=B8=BA=E7=89=A9=E7=90=86=E5=8C=BA?= =?UTF-8?q?=E6=AE=B5=E7=8A=B6=E6=80=81=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/protos/device_state.proto b/protos/device_state.proto index b8337df..98ffb39 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -30,7 +30,7 @@ message LinkState{ repeated string trainId = 2; } -//区段状态 +//物理区段状态 message SectionState{ //区段索引 uint32 id = 1; @@ -45,6 +45,12 @@ message SectionState{ bool axlePdrst = 6; } +//计轴区段状态 +message AxleCountingSectionState { + uint32 id = 1; + bool occupied = 2; +} + //道岔状态 message SwitchState{ //道岔索引 @@ -816,7 +822,7 @@ message AllDevicesStatus{ repeated TrainMapState trainState = 1; // 所有道岔状态 repeated SwitchState switchState = 2; - // 所有类型区段状态 + // 物理区段状态 repeated SectionState sectionState = 3; // 所有继电器状态 repeated ReplyState replyState = 4; @@ -844,6 +850,8 @@ message AllDevicesStatus{ repeated CkmState fymStates = 15; // 洗车机状态 repeated XcjState xcjStates = 16; + // 计轴区段状态 + repeated AxleCountingSectionState axleCountingSection = 17; } //服务器端向前端推送的设备状态信息