2025-03-13 11:01:20 +08:00

49 lines
1.5 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//======================================================================================
// @file FBD.proto
// @brief 用于 fbd_editor 与 fbd_server 交互
// @author LiWeiWei
//======================================================================================
syntax="proto2";
package iot_idl;
// 消息类型枚举
enum enFbdMsgType
{
// 缩写定义:
// S2E Server To Editor服务端发给编辑端
// E2S Editor To Server编辑端发给服务端
// 请求调试数据消息总线Para1携带FBD Group ID
MT_FBD_E2S_DBG_REQ = 1;
// 回复调试数据消息总线Para1携带FBD Group ID
MT_FBD_S2E_DBG_REP = 2;
}
// fbd 调试数据
message SFBDDebugData
{
required string sInstanceName = 1; //图元实例名
required int32 nOutPortIndex = 2; //输出端口序号
required string sValue = 3; //值
required int32 nValid = 4; //值是否有效
}
// fbd_editor -> fbd_server 请求图的调试数据
message SFBDDebugRequest
{
required int32 nGroupId = 1; //组ID
required string sDiagramName = 2; //图名称
}
// fbd_server -> fbd_editor 响应图的调试数据
message SFBDDebugResponse
{
required int32 nGroupId = 1; //组ID
required string sDiagramName = 2; //图名称
required int64 nLastUpdateTime = 3; //图最后更新时间
repeated SFBDDebugData vecBlock = 4; //图元数据
}