161 lines
5.4 KiB
Protocol Buffer
161 lines
5.4 KiB
Protocol Buffer
//========================================================================================
|
||
// @file FesFwMesssage.proto
|
||
// @brief FES转发消息
|
||
// @author thxiao
|
||
//========================================================================================
|
||
syntax="proto2";
|
||
package iot_idl;
|
||
|
||
//========================================================================================
|
||
// 控制消息类型枚举
|
||
//========================================================================================
|
||
enum enFesFwCtrlMsgType
|
||
{
|
||
// 前置转发部分(控制命令)消息类型定义.
|
||
//====================================================================================
|
||
MT_FESFW_DO_REQ = 1; // 数字量控制请求
|
||
MT_FESFW_DO_RESP = 2; // 数字量控制响应
|
||
|
||
MT_FESFW_AO_REQ = 3; // 模拟量控制请求
|
||
MT_FESFW_AO_RESP = 4; // 模拟量控制响应
|
||
|
||
MT_FESFW_MO_REQ = 5; // 混合量控制请求
|
||
MT_FESFW_MO_RESP = 6; // 混合量控制响应
|
||
|
||
MT_FESFW_SETTING_REQ = 7; // 保护定值请求
|
||
MT_FESFW_SETTING_RESP = 8; // 保护定值响应
|
||
|
||
MT_FESWUFANG_STATUS_REPORT = 9; //五防状态报告
|
||
}
|
||
|
||
//Fes Forward Do\Ao\Mo Control struct
|
||
//========================================================================================
|
||
message SFesFwCtrlCmd
|
||
{
|
||
required int32 nFwSubSystem =1;
|
||
required int32 nFwRtuNo =2;
|
||
required int32 nFwPointNo =3;
|
||
required int32 nSubSystem =4;
|
||
required int32 nRtuNo =5;
|
||
required int32 nPointNo =6;
|
||
required int32 nRetStatus =7;
|
||
required int32 nCtrlActType =8;
|
||
required int32 niValue =9;
|
||
required float fValue =10;
|
||
required uint64 ulParam1 =11;
|
||
required uint64 ulParam2 =12;
|
||
required float fParam =13;
|
||
}
|
||
|
||
//Fes Forward Do\Ao\Mo Control respone/request package struct
|
||
//========================================================================================
|
||
message SFesFwCtrlPkg
|
||
{
|
||
required int32 nDataNum =1; //数据个数
|
||
optional int32 nResPara1 =2; //保留参数1
|
||
optional int32 nResPara2 =3; //保留参数2
|
||
repeated SFesFwCtrlCmd stCtrlCmd =4;
|
||
}
|
||
|
||
// Fes Forward DefCmd Pagkage Head
|
||
//========================================================================================
|
||
message SFesFwDefCmdPkgHead
|
||
{
|
||
required int32 nMessageID =1; //enFesFwCtrlMsgType
|
||
required int32 nDataNum =2; //数据个数
|
||
required int32 nFwSubSystem =3;
|
||
required int32 nFwRtuNo =4;
|
||
required int32 nSubSystem =5;
|
||
required int32 nRtuNo =6;
|
||
required int32 nDevID =7;
|
||
required int32 nRetStatus =8;
|
||
optional int32 nResPara1 =9; //保留参数1
|
||
optional int32 nResPara2 =10; //保留参数2
|
||
}
|
||
|
||
//Fes Forward Control struct
|
||
//========================================================================================
|
||
message SFesFwDefCmd
|
||
{
|
||
required string nstrName =1;
|
||
required string nStrValue =2;
|
||
}
|
||
|
||
//Fes Forward Do\Ao\Mo Control respone/request package struct
|
||
//========================================================================================
|
||
message SFesFwDefCmdPkg
|
||
{
|
||
required SFesFwDefCmdPkgHead stHead =1;
|
||
repeated SFesFwDefCmd stDefCmd =2;
|
||
}
|
||
|
||
|
||
//========================================================================================
|
||
// 数消息类型枚举
|
||
//========================================================================================
|
||
enum enFesFwDataMsgType
|
||
{
|
||
// Fes转发主备机间数据(全数据)响应消息类型定义.
|
||
//====================================================================================
|
||
MT_FESFW_RTU_DATA_REQUEST = 1; //全数据请求
|
||
MT_FESFW_RTU_DI_UPDATE = 2; //全遥信
|
||
MT_FESFW_RTU_AI_UPDATE = 3; //全遥测
|
||
MT_FESFW_RTU_MI_UPDATE = 4; //全混合量
|
||
MT_FESFW_RTU_ACC_UPDATE = 5; //全累积量
|
||
}
|
||
|
||
//FesFw AiValue struct
|
||
//========================================================================================
|
||
message SFesFwAiValue
|
||
{
|
||
required int32 nPointNo =1;
|
||
required float fValue =2;
|
||
required uint32 uStatus =3;
|
||
required uint64 ulTime =4;
|
||
}
|
||
|
||
//FesFw DiValue struct
|
||
//========================================================================================
|
||
message SFesFwDiValue
|
||
{
|
||
required int32 nPointNo =1;
|
||
required int32 nValue =2;
|
||
required uint32 uStatus =3;
|
||
required uint64 ulTime =4;
|
||
}
|
||
|
||
//FesFw AccValue struct
|
||
//========================================================================================
|
||
message SFesFwAccValue
|
||
{
|
||
required int32 nPointNo =1;
|
||
required double dValue =2;
|
||
required uint32 uStatus =3;
|
||
required uint64 ulTime =4;
|
||
}
|
||
|
||
//FesFw MiValue struct
|
||
//========================================================================================
|
||
message SFesFwMiValue
|
||
{
|
||
required int32 nPointNo =1;
|
||
required int32 nValue =2;
|
||
required uint32 uStatus =3;
|
||
required uint64 ulTime =4;
|
||
}
|
||
|
||
//Fes Forward wufang do status package struct
|
||
//========================================================================================
|
||
message SFesWfStatus
|
||
{
|
||
required int32 nSrcRtuNo =1;
|
||
required int32 nSrcPointNo =2;
|
||
required uint32 nStatus =3;
|
||
}
|
||
|
||
message SFesWfDoStatusPkg
|
||
{
|
||
repeated SFesWfStatus stDoStatus =1;
|
||
}
|
||
|