列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态

This commit is contained in:
tiger_zhou 2024-03-19 08:28:49 +08:00
parent 6dff8221d5
commit da14913835
3 changed files with 81 additions and 8 deletions

View File

@ -2,6 +2,7 @@ syntax = "proto3";
import "stationLayoutGraphics.proto";
import "common_data.proto";
import "request.proto";
import "tccGraphics.proto";
package state;
option java_package = "club.joylink.bjrtss.ats.verify.protos";
option java_outer_classname = "DeviceStateProto";
@ -181,8 +182,7 @@ message TrainState{
string tailDevicePort = 22;
// BTM状态
BTMState btmState = 23;
//
TrainConnState connState = 24;
TrainControlState tcc = 24;
}
//
@ -436,7 +436,7 @@ message TrainMapState{
string tailDevicePort = 68;
// BTM状态
BTMState btmState = 69;
TrainConnState connState = 70;
}
message BTMState {
@ -696,3 +696,34 @@ message SimulationThirdPartyApiServiceState {
//
SimulationThirdPartyApiService.State state = 2;
}
message TrainControlState{
TrainConnState connState = 1;
EmergentButton ebutton = 2;
repeated DriverKeySwitch driverKey = 3;
DirectionKeySwitch dirKey = 4;
PushHandler pushHandler = 5;
message EmergentButton{
uint32 id = 1;
bool passed = 3;
}
message DriverKeySwitch{
uint32 id = 1;
bool val = 2; //0=1=
request.DriverType dt = 3;
}
message DirectionKeySwitch{
uint32 id = 1;
uint32 val = 2; //0=1=,2=
}
//
message PushHandler{
uint32 id = 1;
int32 val = 2; // 00 (*100)使100
}
}

View File

@ -185,3 +185,45 @@ message PsdParam {
Psd.Force force = 2; //
Psd.Fault fault = 3; //
}
//
message TrainControl{
string simulationId = 1; // 仿id
uint32 trainId = 2;
uint32 deviceId = 3;//id
TrainControlType controlType = 4;
EmergentButton button = 5;//
DriverKeySwitch driverKey = 6;
DirectionKeySwitch dirKey = 7; //
PushHandler handler = 8; //
enum TrainControlType{
EMERGENT_BUTTON = 0; //
DRIVER_KEY_SWITCH = 1; //
DIRECTION_KEY_SWITCH = 2;//
HANDLER = 3; //
}
//
message EmergentButton{
bool active = 1;
}
//
message DriverKeySwitch{
bool val = 1; //0=1=
DriverType dt = 2;
}
message DirectionKeySwitch{
uint32 val = 1; //0=1=,2=
}
//
message PushHandler{
int32 val = 1; // 00 (*100)使100
}
}
enum DriverType{
ONE_END = 0;
TWO_END = 1;
}

View File

@ -30,16 +30,16 @@ message TccText {
/** TCC钥匙 */
message TccKey {
enum TccKeyType {
driverControllerActivationClint = 0; //
frontAndRearDirectionalControl = 1;//
}
graphicData.CommonInfo common = 1;
string code = 2;
TccKeyType type = 3;
}
enum TccKeyType {
driverControllerActivationClint = 0; //
frontAndRearDirectionalControl = 1;//
}
/** TCC手柄 */
message TccHandle {
graphicData.CommonInfo common = 1;