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; } //服务器端向前端推送的设备状态信息