342 lines
4.8 KiB
Protocol Buffer
342 lines
4.8 KiB
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
message StateMsg
|
||
|
{
|
||
|
enum PrintState
|
||
|
{
|
||
|
STANDBY = 0;
|
||
|
STANDBY_PAUSE = 1;
|
||
|
STANDBY_STOP = 2;
|
||
|
PREPRINT = 3;
|
||
|
PRINTING = 4;
|
||
|
FINISH = 5;
|
||
|
PAUSE = 6;
|
||
|
STOP = 7;
|
||
|
};
|
||
|
float oxygenValue=1;
|
||
|
float ambientTemp=2;
|
||
|
float innerTemp=3;
|
||
|
float windValue=4;
|
||
|
float platformTempValue=5;
|
||
|
float platformTempSettingValue=6;
|
||
|
float moldPos=7;
|
||
|
float powderPos=8;
|
||
|
float armPos=9;
|
||
|
PrintState printState=10;
|
||
|
int32 layerIndex=11;
|
||
|
int32 limitFlag=12;
|
||
|
string machineId=13;
|
||
|
bool isDoorClose=14;
|
||
|
uint32 accTime=15;
|
||
|
uint32 remainTime=16;
|
||
|
uint32 totalTime=17;
|
||
|
int32 layerCount=18;
|
||
|
int64 printTime=19;
|
||
|
string material=20;
|
||
|
}
|
||
|
|
||
|
message JobInfoMsg
|
||
|
{
|
||
|
string name=1;
|
||
|
float xSize=2;
|
||
|
float ySize=3;
|
||
|
float zSize=4;
|
||
|
string material=5;
|
||
|
float layerThickness=6;
|
||
|
uint32 layerCount=7;
|
||
|
uint32 componentCount=8;
|
||
|
float volume=9;
|
||
|
float supportVolume=10;
|
||
|
string jid=11;
|
||
|
}
|
||
|
|
||
|
message JobStateMsg
|
||
|
{
|
||
|
uint64 jobId=1;
|
||
|
string uId=2;
|
||
|
string name=3;
|
||
|
int64 startTime=4;
|
||
|
int64 stopTime=5;
|
||
|
uint32 deoxygenSecond=6;
|
||
|
uint32 spendSecond=7;
|
||
|
float moldPos=8;
|
||
|
uint32 printLayerIndex=9;
|
||
|
bool isFinish=10;
|
||
|
bool isContinue=11;
|
||
|
bool isInvalid=12;
|
||
|
|
||
|
enum JobState
|
||
|
{
|
||
|
START = 0;
|
||
|
STOP = 1;
|
||
|
}
|
||
|
JobState jobState=13;
|
||
|
string machineId=14;
|
||
|
JobInfoMsg jobInfo=15;
|
||
|
}
|
||
|
|
||
|
message MachineMsg
|
||
|
{
|
||
|
string machineId=1;
|
||
|
|
||
|
enum MachineType
|
||
|
{
|
||
|
HBD_100 = 0;
|
||
|
HBD_280 = 1;
|
||
|
HBD_80 = 2;
|
||
|
HBD_150 = 3;
|
||
|
HBD_280T = 4;
|
||
|
HBD_200D = 5;
|
||
|
HBD_350 = 6;
|
||
|
HBD_150T = 7;
|
||
|
}
|
||
|
MachineType machineType=2;
|
||
|
|
||
|
enum PurifierType
|
||
|
{
|
||
|
HBD_PURIFIER_1 = 0;
|
||
|
XT = 1;
|
||
|
HBD_PURIFIER_2 = 2;
|
||
|
}
|
||
|
PurifierType purifierType=3;
|
||
|
|
||
|
int64 lastStartTime=4;
|
||
|
int64 lastShutdownTime=5;
|
||
|
int32 language=6;
|
||
|
bool isOnline=7;
|
||
|
string password=8;
|
||
|
string name=9;
|
||
|
string location=10;
|
||
|
}
|
||
|
|
||
|
message ErrorMsg
|
||
|
{
|
||
|
enum ErrorType
|
||
|
{
|
||
|
STOP = 0;
|
||
|
PAUSE = 1;
|
||
|
}
|
||
|
ErrorType errorType=1;
|
||
|
string errorMsg=2;
|
||
|
int64 occurTime=3;
|
||
|
string machineId=4;
|
||
|
}
|
||
|
|
||
|
message ParameterMsg
|
||
|
{
|
||
|
string type=1;
|
||
|
float laserSpeed=2;
|
||
|
float laserPower=3;
|
||
|
float laserDiameter=4;
|
||
|
}
|
||
|
|
||
|
message PartMsg
|
||
|
{
|
||
|
string name=1;
|
||
|
repeated ParameterMsg param=2;
|
||
|
}
|
||
|
|
||
|
message JobMsg
|
||
|
{
|
||
|
JobInfoMsg jobInfoMsg=1;
|
||
|
repeated PartMsg partMsg=2;
|
||
|
string machineId=3;
|
||
|
}
|
||
|
|
||
|
message LayerDataRespMsg
|
||
|
{
|
||
|
string machineId=1;
|
||
|
int32 type=2;
|
||
|
int32 partId=3;
|
||
|
uint32 total=4;
|
||
|
uint32 index=5;
|
||
|
repeated float data=6;
|
||
|
bytes datas=7;
|
||
|
string paramType=8;
|
||
|
}
|
||
|
|
||
|
message DataBlockMsg
|
||
|
{
|
||
|
int32 type=1;
|
||
|
repeated float data=2;
|
||
|
}
|
||
|
|
||
|
message LayerDataBlockMsg
|
||
|
{
|
||
|
string machineId=1;
|
||
|
string jobName=2;
|
||
|
string jobUid=3;
|
||
|
uint32 layerCount=4;
|
||
|
float thickness=5;
|
||
|
uint32 layerIndex=6;
|
||
|
repeated DataBlockMsg dataBlocks=7;
|
||
|
}
|
||
|
|
||
|
message JobParamMsg
|
||
|
{
|
||
|
string machineId=1;
|
||
|
string jobName=2;
|
||
|
string jobUid=3;
|
||
|
uint32 layerCount=4;
|
||
|
float thickness=5;
|
||
|
repeated PartMsg parts=6;
|
||
|
}
|
||
|
|
||
|
message LayerDataReqMsg
|
||
|
{
|
||
|
string machineId=1;
|
||
|
uint32 layerIndex=2;
|
||
|
}
|
||
|
|
||
|
message ResponseState
|
||
|
{
|
||
|
repeated StateMsg stateMsg=1;
|
||
|
}
|
||
|
|
||
|
message CameraDataMsg
|
||
|
{
|
||
|
string machineId=1;
|
||
|
uint32 width=2;
|
||
|
uint32 height=3;
|
||
|
bytes datas=4;
|
||
|
}
|
||
|
|
||
|
message AlarmMsg
|
||
|
{
|
||
|
string time=1;
|
||
|
string task=2;
|
||
|
string type=3;
|
||
|
string detail=4;
|
||
|
}
|
||
|
|
||
|
message AlarmsMsg
|
||
|
{
|
||
|
repeated AlarmMsg alarms=1;
|
||
|
}
|
||
|
|
||
|
message TaskMsg
|
||
|
{
|
||
|
int64 id=1;
|
||
|
string name=2;
|
||
|
string beginTime=3;
|
||
|
string endTime=4;
|
||
|
int64 deoxygenMinute=5;
|
||
|
int64 totalUseTime=6;
|
||
|
float logMoldPosition=7;
|
||
|
uint32 finishLayer=8;
|
||
|
bool isFinish=9;
|
||
|
bool isContinuePrint=10;
|
||
|
}
|
||
|
|
||
|
message TasksMsg
|
||
|
{
|
||
|
repeated TaskMsg tasks=1;
|
||
|
}
|
||
|
|
||
|
message LayerStateMsg
|
||
|
{
|
||
|
string layerDateTime=1;
|
||
|
uint32 layerIndex=2;
|
||
|
float logMoldPosition=3;
|
||
|
float logOxygen=4;
|
||
|
float logInnerTemp=5;
|
||
|
float logPlateTemp=6;
|
||
|
float windSpeed=7;
|
||
|
float innerPressure=8;
|
||
|
float fanFreq=9;
|
||
|
float humidity=10;
|
||
|
float waterTemp=11;
|
||
|
}
|
||
|
|
||
|
message LayerStatesMsg
|
||
|
{
|
||
|
repeated LayerStateMsg layerStates=1;
|
||
|
}
|
||
|
|
||
|
message LayerImageMsg
|
||
|
{
|
||
|
int64 id=1;
|
||
|
uint32 layer=2;
|
||
|
string type=3;
|
||
|
}
|
||
|
|
||
|
message LayerImagesMsg
|
||
|
{
|
||
|
repeated LayerImageMsg images=1;
|
||
|
}
|
||
|
|
||
|
message LayerImageDataMsg
|
||
|
{
|
||
|
uint64 imageSize=1;
|
||
|
bytes imageData=2;
|
||
|
}
|
||
|
|
||
|
message LayerLoadCurveMsg
|
||
|
{
|
||
|
int64 id=1;
|
||
|
uint32 layer=2;
|
||
|
string coverType=3;
|
||
|
}
|
||
|
|
||
|
message LayerLoadCurvesMsg
|
||
|
{
|
||
|
repeated LayerLoadCurveMsg loadCurves=1;
|
||
|
}
|
||
|
|
||
|
message LayerLoadCurveDataMsg
|
||
|
{
|
||
|
repeated float mold=1;
|
||
|
repeated float powder=2;
|
||
|
repeated float arm=3;
|
||
|
}
|
||
|
|
||
|
message LogReqMsg
|
||
|
{
|
||
|
enum LogType
|
||
|
{
|
||
|
ALARM = 0;
|
||
|
TASK = 1;
|
||
|
LAYERSTATE = 2;
|
||
|
LAYERIMAGE = 3;
|
||
|
IMAGE = 4;
|
||
|
LAYERLOADCURVE = 5;
|
||
|
LOADCURVE = 6;
|
||
|
};
|
||
|
LogType type=1;
|
||
|
uint32 index=2;
|
||
|
uint32 pageSize=3;
|
||
|
}
|
||
|
|
||
|
message LogRespMsg
|
||
|
{
|
||
|
uint32 index=1;
|
||
|
uint32 pageSize=2;
|
||
|
uint32 total=3;
|
||
|
|
||
|
oneof logresp
|
||
|
{
|
||
|
AlarmsMsg alarms=4;
|
||
|
TasksMsg tasks=5;
|
||
|
LayerStatesMsg states=6;
|
||
|
LayerImagesMsg images=7;
|
||
|
LayerImageDataMsg imageData=8;
|
||
|
LayerLoadCurvesMsg loadCurves=9;
|
||
|
LayerLoadCurveDataMsg loadCurveData=10;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
message LogFetchReqMsg
|
||
|
{
|
||
|
enum LogType
|
||
|
{
|
||
|
ALARM = 0;
|
||
|
TASKLIST = 1;
|
||
|
TASK = 2;
|
||
|
};
|
||
|
LogType type=1;
|
||
|
int64 begin=2;
|
||
|
int64 end=3;
|
||
|
}
|
||
|
|