This commit is contained in:
joylink_fanyuhong 2024-08-21 16:35:36 +08:00
commit 514b899f04

View File

@ -2,6 +2,7 @@ syntax = "proto3";
import "stationLayoutGraphics.proto";
import "common_data.proto";
import "request.proto";
package state;
option java_package = "club.joylink.bjrtss.ats.verify.protos";
option java_outer_classname = "DeviceStateProto";
@ -189,7 +190,7 @@ message TrainState{
int64 tailOffset = 21;
//
string tailDevicePort = 22;
// BTM状态
// BTM状态 -- 2024-08-12
BTMState btmState = 23;
TrainControlState tcc = 24;
TrainConnState connState = 25; //
@ -197,7 +198,18 @@ message TrainState{
VobcBtmState vobcBtm = 27;//vobc btm
string oldLink = 28;
int64 oldLinkOffset = 29;
TrainBtmCache btmBaliseCache = 30; //
}
message TrainBtmCache{
uint32 dsn = 1;
uint32 baliseCount = 2; //)0~255
uint32 messageCounter = 3; // ()0~255
string resendBaliseId = 4;
repeated BTMState baliseList = 5;
}
message VobcBtmState{
//
@ -456,6 +468,8 @@ message TrainVobcState {
bool lightDir2 = 80;
//
bool lightDriverActive = 81;
//
bool trainConnInitComplate = 82;
// request.TrainControl.Direction historyDir = 76; //使
}
@ -609,21 +623,18 @@ message TrainMapState{
BTMState btmState = 69;
TrainConnState connState = 70; //
}
message BtmStateCache{
repeated BTMState btmStateList = 1;
}
message BTMState {
uint32 dataSerialNumber = 1; //0~255
uint32 baliseCount = 2; //)0~255
uint32 messageCounter = 3; // ()0~255
string telegram = 4;//16
int64 distance =5; //BTM天线中心到应答器的距离mm
bool aboveBalise = 6; //BTM天线即将经过应答器
string baliseTelegramForPcSimResend = 7; //pc仿真暂存应答器回复数据
string telegram128 = 8 ;//12816
string baliseId = 9;
bool isSend = 10;//
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;//
}
//golang float类型数据序列化后丢失精度故使用string