Commit 4d59c402 by xjp0422

no message

parent ebc5d776
No preview for this file type
......@@ -25,7 +25,6 @@ using uPLibrary.Networking.M2Mqtt;
using uPLibrary.Networking.M2Mqtt.Messages;
using System.Net.Sockets;
using Satllite.Protobuf.Agi;
using Satllite.Protobuf.TDSCmd;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.WellKnownTypes;
......@@ -76,7 +75,7 @@ namespace Mqtt_AGI
for (int messageNum = 0; messageNum < datastruct.Parameters.Count; ++messageNum)
{
Parameter = datastruct.Parameters[messageNum];
if(datastruct.Cmd == TDSCmd.Types.IID.AgiReport)
if(datastruct.InterfaceId == IID.AgiReport)
{
CalcReportReq CalcReport = Parameter.Unpack<CalcReportReq>();
string[] args = { CalcReport.StartDateTime,CalcReport.EndDateTime,
......@@ -89,7 +88,7 @@ namespace Mqtt_AGI
CalcReport.Line0,CalcReport.Line1,CalcReport.Line2};
calc_report(args);//轨道预报
}
else if (datastruct.Cmd == TDSCmd.Types.IID.AgiTle)
else if (datastruct.InterfaceId == IID.AgiTle)
{
CalcTleReq CalcTle = Parameter.Unpack<CalcTleReq>();
string[] args = { CalcTle.NoradID.ToString(), CalcTle.NoradName,
......@@ -241,9 +240,9 @@ namespace Mqtt_AGI
//初始化包配置
TDSCmd MessageSend =new TDSCmd();
MessageSend.Cmd = TDSCmd.Types.IID.AgiTleRespond;
MessageSend.DstSUID = Convert.ToUInt32(SerializeUid.SerilizeString(LevelUid, systemID.SERVER));
MessageSend.SrcSUID = Convert.ToUInt32(SerializeUid.SerilizeString(LevelUid, systemID.AGI));
MessageSend.InterfaceId = IID.AgiTleRespond;
MessageSend.DstSuid = Convert.ToUInt32(SerializeUid.SerilizeString(LevelUid, systemID.SERVER));
MessageSend.SrcSuid = Convert.ToUInt32(SerializeUid.SerilizeString(LevelUid, systemID.AGI));
MessageSend.ForwardFlag = 0;//不需要转发
//加载数据段
Any Parameter = Any.Pack(calctleret);
......@@ -567,9 +566,9 @@ namespace Mqtt_AGI
//protobuf begin
//初始化包配置
TDSCmd MessageSend = new TDSCmd();
MessageSend.Cmd = TDSCmd.Types.IID.AgiReportRespond;
MessageSend.DstSUID = Convert.ToUInt32(SerializeUid.SerilizeString(LevelUid, systemID.SERVER));
MessageSend.SrcSUID = Convert.ToUInt32(SerializeUid.SerilizeString(LevelUid, systemID.AGI));
MessageSend.InterfaceId = IID.AgiReportRespond;
MessageSend.DstSuid = Convert.ToUInt32(SerializeUid.SerilizeString(LevelUid, systemID.SERVER));
MessageSend.SrcSuid = Convert.ToUInt32(SerializeUid.SerilizeString(LevelUid, systemID.AGI));
MessageSend.ForwardFlag = 0;//不需要转发
//加载数据段
Any Parameter = Any.Pack(CalcReport);
......
/**
* @file cmmstruct.proto
* @brief TDSCmd define
* @author Fan Chuanlin, fanchuanlin@aliyun.com
* @version 1.0
* @date 2022-09-06
*/
syntax = "proto3";
import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
option go_package = "../protogo";
//成功失败 枚举
enum CodeValue
{
base_start = 0;
Succeed = 1;
Failed = 2;
}
enum IID
{
IID_Base = 0;
//====================== server =============================
IID_Server_Base = 10000;
// common
IID_Server_SyncEnd = 10001;
// satellite action
IID_Server_SatelliteList = 10101;
IID_Server_SatelliteList_respond = 10102;//list
IID_Server_SatelliteBaseUpdate = 10103;
IID_Server_SatelliteBaseUpdate_respond = 10104;
IID_Server_SatellitePriorityUpdate = 10105;
IID_Server_SatellitePriorityUpdate_respond = 10106;
IID_Server_SatellitePriorityList = 10107;
IID_Server_SatellitePriorityList_respond = 10108;
IID_Server_SatelliteAvailableUpdate = 10109;
IID_Server_SatelliteAvailableUpdate_respond = 10110;
IID_Server_SatelliteElementUpdate = 10111;
IID_Server_SatelliteElementUpdate_respond = 10112;
IID_Server_SatelliteElementLoad = 10113;
IID_Server_SatelliteElementLoad_respond = 10114;
IID_Server_SatelliteDel = 10115;
IID_Server_SatelliteDel_respond = 10116;
IID_Server_SatelliteInstantaneousRootUpdate = 10117;
IID_Server_SatelliteInstantaneousRootUpdate_respond = 10118;
IID_Server_SatelliteListSend = 10119;
IID_Server_SatelliteListSend_respond = 10120;
IID_Server_SatelliteListReceive = 10121;
IID_Server_SatelliteListReceive_respond = 10122;
// 卫星射频/解调参数
IID_Server_SatelliteWorkParamList = 10201;
IID_Server_SatelliteWorkParamList_respond = 10202;//list
IID_Server_SatelliteWorkParamUpdate = 10203;
IID_Server_SatelliteWorkParamUpdate_respond = 10204;
IID_Server_SatelliteWorkParamDel = 10205;
IID_Server_SatelliteWorkParamDel_respond = 10206;
IID_Server_SatelliteWorkParamListSend = 10207;
IID_Server_SatelliteWorkParamListSend_respond = 10208;
IID_Server_SatelliteWorkParamListReceive = 10209;
IID_Server_SatelliteWorkParamListReceive_respond = 10210;
// site action
IID_Server_SiteList = 10301;
IID_Server_SiteList_respond = 10302;//list
IID_Server_SiteUpdate = 10303;
IID_Server_SiteUpdate_respond = 10304;
IID_Server_SiteParamUpdate = 10305;
IID_Server_SiteParamUpdate_respond = 10306;
IID_Server_SiteDel = 10307;
IID_Server_SiteDel_respond = 10308;
IID_Server_SiteListSend = 10309;
IID_Server_SiteListSend_respond = 10310;
IID_Server_SiteListReceive = 10311;
IID_Server_SiteListReceive_respond = 10312;
// task action
IID_Server_TaskList = 10401;
IID_Server_TaskList_respond = 10402;//list
IID_Server_TaskForecast = 10403;
IID_Server_TaskForecast_respond = 10404;//list
IID_Server_TaskUpdate = 10405;
IID_Server_TaskUpdate_respond = 10406;
IID_Server_TaskDel = 10407;
IID_Server_TaskDel_respond = 10408;
IID_Server_TaskDetailDat = 10409;
IID_Server_TaskDetailDat_respond = 10410;//data
IID_Server_TaskDetailPoint = 10411;
IID_Server_TaskDetailPoint_respond = 10412;//data
IID_Server_TaskPause = 10413;
IID_Server_TaskPause_respond = 10414;
IID_Server_TaskRestart = 10415;
IID_Server_TaskRestart_respond = 10416;
IID_Server_TaskHandleConflict = 10417;
IID_Server_TaskHandleConflict_respond = 10418;//list
IID_Server_TaskHandModeSwitch = 10419;
IID_Server_TaskHandModeSwitch_respond = 10420;
IID_Server_TaskIndex = 10421;
IID_Server_TaskIndex_respond = 10422;//data
IID_Server_TaskListSend = 10423;
IID_Server_TaskListSend_respond = 10424;
IID_Server_TaskListReceive = 10425;
IID_Server_TaskListReceive_respond = 10426;
IID_Server_FileReceive = 10427;
IID_Server_FileReceive_respond = 10428;
IID_Server_TaskExecAnalysisResult = 105;
IID_Server_TaskExecAnalysisResult_respond = 10502;
IID_Server_TaskExecList = 10503;
IID_Server_TaskExecList_respond = 10504;//list
// more setting action
IID_Server_MoreSettingSet = 10601;
IID_Server_MoreSettingSet_respond = 10602;
IID_Server_MoreSettingGet = 10603;
IID_Server_MoreSettingGet_respond = 10604;// 正常-data ,获取存储规则-list
IID_Server_MoreSettingGetDefault = 10605;
IID_Server_MoreSettingGetDefault_respond = 10606;//data
IID_Server_MoreSettingDataSet = 10607;
IID_Server_MoreSettingDataSet_respond = 10608;
IID_Server_MoreSettingDataDel = 10609;
IID_Server_MoreSettingDataDel_respond = 10610;
// IID_Server_MoreSettingSend = 10611;
// IID_Server_MoreSettingSend_respond = 10612;
// IID_Server_MoreSettingReceive = 10613;
// IID_Server_MoreSettingReceive_respond = 10614;
// user action
IID_Server_Login = 10701;
IID_Server_Login_respond = 10702;//data
IID_Server_UserCreate = 10703;
IID_Server_UserCreate_respond = 10704;
IID_Server_UserUpdate = 10705;
IID_Server_UserUpdate_respond = 10706;
IID_Server_UserDel = 10707;
IID_Server_UserDel_respond = 10708;
IID_Server_UserList = 10709;
IID_Server_UserList_respond = 10710;//list
//====================== UI =============================
IID_UI_Base = 20000;
IID_UI_xxx = 20001;
IID_UI_xxx_respond = 20002;
//====================== Device =============================
IID_Device_Base = 30000;
IID_Device_DBC_CURD = 30001;
IID_Device_DBC_CURD_respond = 30002;
IID_Device_Xpro_TX_cmd = 30003;
IID_Device_Xpro_TX_cmd_respond = 30004;
IID_Device_Xpro_RX_cmd = 30005;
IID_Device_Xpro_RX_cmd_respond = 30006; //用不上
//====================== AGI =============================
IID_AGI_Base=4000;
IID_AGI_TLE=4001;
IID_AGI_TLE_respond=4002;
IID_AGI_Report=4003;
IID_AGI_Report_respond=4004;
//====================== OAM =============================
IID_OAM_Base = 50000;
// public use
IID_OAM_HeartBeat_RX = 50001;
IID_OAM_LOG_RX = 50003;
// OAM relay
IID_OAM_SysStatus_Relay = 50005;
IID_OAM_SysStatus_Relay_Respond = 50006;
IID_OAM_Performance_Relay = 50007;
IID_OAM_Performance_Relay_Respond = 50008;
IID_OAM_Alert_Start_Relay = 50009;
IID_OAM_Alert_Start_Relay_Respond = 50010;
IID_OAM_Alert_End_Relay = 50011;
IID_OAM_Alert_End_Relay_Respond = 50012;
IID_OAM_LOG_Relay = 50013;
IID_OAM_LOG_Relay_Respond = 50014;
// communicate with UI
IID_OAM_UI_SysStatus_Require = 50015;
IID_OAM_UI_SysStatus_Respond = 50016;
IID_OAM_UI_SysStatus_Update = 50017;
IID_OAM_UI_SysStatus_Update_Respond = 50018;
IID_OAM_UI_CurrentAlarms_Require = 50019;
IID_OAM_UI_CurrentAlarms_Respond = 50020;
IID_OAM_UI_CurrentAlarms_Start_Update = 50021;
IID_OAM_UI_CurrentAlarms_Start_Update_Respond = 50022;
IID_OAM_UI_CurrentAlarms_End_Update = 50023;
IID_OAM_UI_CurrentAlarms_End_Update_Respond = 50024;
IID_OAM_UI_HistoryAlarms_Require = 50025;
IID_OAM_UI_HistoryAlarms_Respond = 50026;
IID_OAM_UI_AlarmAttribution_Require = 50027;
IID_OAM_UI_AlarmAttribution_Respond = 50028;
IID_OAM_UI_AlarmAttribution_Update_Require = 50029;
IID_OAM_UI_AlarmAttribution_Update_Respond = 50030;
IID_OAM_UI_PerInfos_Require = 50031;
IID_OAM_UI_PerInfos_Respond = 50032;
IID_OAM_UI_PerAttribution_Require = 50033;
IID_OAM_UI_PerAttribution_Respond = 50034;
IID_OAM_UI_PerAttribution_Update_Require = 50035;
IID_OAM_UI_PerAttribution_Update_Respond = 50036;
IID_OAM_UI_LOG_Require = 50037;
IID_OAM_UI_LOG_Respond = 50038;
// communicate with Device
IID_OAM_Device_Alert_Start = 50039;
IID_OAM_Device_Alert_Start_Respond = 50040;
IID_OAM_Device_Alert_End = 50041;
IID_OAM_Device_Alert_End_Respond = 50042;
IID_OAM_Device_Performance_RX = 50043;
/*
......
xxxx id%2 == 1
xxxx_respond = id+1
*/
}
/// sub system define
enum BROKERAREA
{
BROKERAREA_LOCAL = 0;
BROKERAREA_CLOUD_LEVEL2 = 1;
BROKERAREA_CLOUD_LEVEL1 = 2;
}
enum SUBSYSTEM
{
SUBSYSTEM_base = 0;
SUBSYSTEM_Server = 1;
SUBSYSTEM_UI = 2;
SUBSYSTEM_Device = 3;
SUBSYSTEM_AGI = 4;
SUBSYSTEM_OAM = 5;
SUBSYSTEM_default = 6;
}
message TestParams
{
string key = 1;
string value = 2;
}
//设备状态枚举
enum Devistatus
{
Init_status = 0;
Online = 1;
Offline = 2;
Alarm = 3;
}
//心跳
message Heartbeat
{
uint32 suid = 1;
repeated IID iid_list = 2;
map<uint32, Devistatus> Dev_status = 3; //存放设备状态 <DEV_SUID,STATUS>
}
message TDSCmd
{
IID interface_id = 1;
uint32 dst_suid = 2;
uint32 src_suid = 3;
uint32 forward_flag = 4;
uint32 priority = 5; //报文优先级 可以优先发送
uint32 request_index = 6;
google.protobuf.Timestamp ts = 7;
repeated google.protobuf.Any parameters = 8;
}
......@@ -1942,6 +1942,9 @@ namespace Satllite.Protobuf.Agi {
private static readonly pb::FieldCodec<global::Satllite.Protobuf.Agi.Xxd> _repeated_xxds_codec
= pb::FieldCodec.ForMessage(10, global::Satllite.Protobuf.Agi.Xxd.Parser);
private readonly pbc::RepeatedField<global::Satllite.Protobuf.Agi.Xxd> xxds_ = new pbc::RepeatedField<global::Satllite.Protobuf.Agi.Xxd>();
/// <summary>
///星下点
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Satllite.Protobuf.Agi.Xxd> Xxds {
......@@ -1953,6 +1956,9 @@ namespace Satllite.Protobuf.Agi {
private static readonly pb::FieldCodec<global::Satllite.Protobuf.Agi.Task> _repeated_tasks_codec
= pb::FieldCodec.ForMessage(18, global::Satllite.Protobuf.Agi.Task.Parser);
private readonly pbc::RepeatedField<global::Satllite.Protobuf.Agi.Task> tasks_ = new pbc::RepeatedField<global::Satllite.Protobuf.Agi.Task>();
/// <summary>
///任务预报信息
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Satllite.Protobuf.Agi.Task> Tasks {
......@@ -2149,6 +2155,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "dt" field.</summary>
public const int DtFieldNumber = 1;
private string dt_ = "";
/// <summary>
///时间
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Dt {
......@@ -2161,6 +2170,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "lon" field.</summary>
public const int LonFieldNumber = 2;
private double lon_;
/// <summary>
///经度
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Lon {
......@@ -2173,6 +2185,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "lat" field.</summary>
public const int LatFieldNumber = 3;
private double lat_;
/// <summary>
///纬度
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Lat {
......@@ -2185,6 +2200,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "height" field.</summary>
public const int HeightFieldNumber = 4;
private double height_;
/// <summary>
///高度
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Height {
......@@ -2457,6 +2475,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "start" field.</summary>
public const int StartFieldNumber = 1;
private string start_ = "";
/// <summary>
///开始时间
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Start {
......@@ -2469,6 +2490,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "end" field.</summary>
public const int EndFieldNumber = 2;
private string end_ = "";
/// <summary>
///结束时间
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string End {
......@@ -2481,6 +2505,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "startAzi" field.</summary>
public const int StartAziFieldNumber = 3;
private double startAzi_;
/// <summary>
///开始方位角
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double StartAzi {
......@@ -2493,6 +2520,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "endAzi" field.</summary>
public const int EndAziFieldNumber = 4;
private double endAzi_;
/// <summary>
///结束方位角
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double EndAzi {
......@@ -2505,6 +2535,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "startEle" field.</summary>
public const int StartEleFieldNumber = 5;
private double startEle_;
/// <summary>
///开始俯仰角
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double StartEle {
......@@ -2517,6 +2550,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "maxEle" field.</summary>
public const int MaxEleFieldNumber = 6;
private double maxEle_;
/// <summary>
///最大俯仰角
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double MaxEle {
......@@ -2529,6 +2565,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "minDist" field.</summary>
public const int MinDistFieldNumber = 7;
private double minDist_;
/// <summary>
///最短距离
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double MinDist {
......@@ -2541,6 +2580,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "maxDist" field.</summary>
public const int MaxDistFieldNumber = 8;
private double maxDist_;
/// <summary>
///最大距离
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double MaxDist {
......@@ -2555,6 +2597,9 @@ namespace Satllite.Protobuf.Agi {
private static readonly pb::FieldCodec<global::Satllite.Protobuf.Agi.Obs> _repeated_obss_codec
= pb::FieldCodec.ForMessage(74, global::Satllite.Protobuf.Agi.Obs.Parser);
private readonly pbc::RepeatedField<global::Satllite.Protobuf.Agi.Obs> obss_ = new pbc::RepeatedField<global::Satllite.Protobuf.Agi.Obs>();
/// <summary>
///方位角俯仰角信息
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Satllite.Protobuf.Agi.Obs> Obss {
......@@ -2929,6 +2974,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "dt" field.</summary>
public const int DtFieldNumber = 1;
private string dt_ = "";
/// <summary>
///时间
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Dt {
......@@ -2941,6 +2989,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "azi" field.</summary>
public const int AziFieldNumber = 2;
private double azi_;
/// <summary>
///方位角
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Azi {
......@@ -2953,6 +3004,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "ele" field.</summary>
public const int EleFieldNumber = 3;
private double ele_;
/// <summary>
///俯仰角
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Ele {
......@@ -2965,6 +3019,9 @@ namespace Satllite.Protobuf.Agi {
/// <summary>Field number for the "range" field.</summary>
public const int RangeFieldNumber = 4;
private double range_;
/// <summary>
///距离
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Range {
......
/**
* @file cmmstruct.proto
* @brief TDSCmd define
* @author Fan Chuanlin, fanchuanlin@aliyun.com
* @version 1.0
* @date 2022-09-06
*/
syntax = "proto3";
import "google/protobuf/any.proto";
package satllite.protobuf.TDSCmd;
message TDSCmd{
enum IID{
IID_Base=0;
IID_Server_Base=1000;
IID_Server_xxx=1001;
IID_Server_xxx_respond=1002;
IID_UI_Base=2000;
IID_UI_xxx=2001;
IID_UI_xxx_respond=2002;
IID_Device_Base=3000;
IID_Device_xxx=3001;
IID_Device_xxx_respond=3002;
import "google/protobuf/timestamp.proto";
option go_package = "../protogo";
//成功失败 枚举
enum CodeValue
{
base_start = 0;
Succeed = 1;
Failed = 2;
}
enum IID
{
IID_Base = 0;
//====================== server =============================
IID_Server_Base = 10000;
// common
IID_Server_SyncEnd = 10001;
// satellite action
IID_Server_SatelliteList = 10101;
IID_Server_SatelliteList_respond = 10102;//list
IID_Server_SatelliteBaseUpdate = 10103;
IID_Server_SatelliteBaseUpdate_respond = 10104;
IID_Server_SatellitePriorityUpdate = 10105;
IID_Server_SatellitePriorityUpdate_respond = 10106;
IID_Server_SatellitePriorityList = 10107;
IID_Server_SatellitePriorityList_respond = 10108;
IID_Server_SatelliteAvailableUpdate = 10109;
IID_Server_SatelliteAvailableUpdate_respond = 10110;
IID_Server_SatelliteElementUpdate = 10111;
IID_Server_SatelliteElementUpdate_respond = 10112;
IID_Server_SatelliteElementLoad = 10113;
IID_Server_SatelliteElementLoad_respond = 10114;
IID_Server_SatelliteDel = 10115;
IID_Server_SatelliteDel_respond = 10116;
IID_Server_SatelliteInstantaneousRootUpdate = 10117;
IID_Server_SatelliteInstantaneousRootUpdate_respond = 10118;
IID_Server_SatelliteListSend = 10119;
IID_Server_SatelliteListSend_respond = 10120;
IID_Server_SatelliteListReceive = 10121;
IID_Server_SatelliteListReceive_respond = 10122;
// 卫星射频/解调参数
IID_Server_SatelliteWorkParamList = 10201;
IID_Server_SatelliteWorkParamList_respond = 10202;//list
IID_Server_SatelliteWorkParamUpdate = 10203;
IID_Server_SatelliteWorkParamUpdate_respond = 10204;
IID_Server_SatelliteWorkParamDel = 10205;
IID_Server_SatelliteWorkParamDel_respond = 10206;
IID_Server_SatelliteWorkParamListSend = 10207;
IID_Server_SatelliteWorkParamListSend_respond = 10208;
IID_Server_SatelliteWorkParamListReceive = 10209;
IID_Server_SatelliteWorkParamListReceive_respond = 10210;
// site action
IID_Server_SiteList = 10301;
IID_Server_SiteList_respond = 10302;//list
IID_Server_SiteUpdate = 10303;
IID_Server_SiteUpdate_respond = 10304;
IID_Server_SiteParamUpdate = 10305;
IID_Server_SiteParamUpdate_respond = 10306;
IID_Server_SiteDel = 10307;
IID_Server_SiteDel_respond = 10308;
IID_Server_SiteListSend = 10309;
IID_Server_SiteListSend_respond = 10310;
IID_Server_SiteListReceive = 10311;
IID_Server_SiteListReceive_respond = 10312;
// task action
IID_Server_TaskList = 10401;
IID_Server_TaskList_respond = 10402;//list
IID_Server_TaskForecast = 10403;
IID_Server_TaskForecast_respond = 10404;//list
IID_Server_TaskUpdate = 10405;
IID_Server_TaskUpdate_respond = 10406;
IID_Server_TaskDel = 10407;
IID_Server_TaskDel_respond = 10408;
IID_Server_TaskDetailDat = 10409;
IID_Server_TaskDetailDat_respond = 10410;//data
IID_Server_TaskDetailPoint = 10411;
IID_Server_TaskDetailPoint_respond = 10412;//data
IID_Server_TaskPause = 10413;
IID_Server_TaskPause_respond = 10414;
IID_Server_TaskRestart = 10415;
IID_Server_TaskRestart_respond = 10416;
IID_Server_TaskHandleConflict = 10417;
IID_Server_TaskHandleConflict_respond = 10418;//list
IID_Server_TaskHandModeSwitch = 10419;
IID_Server_TaskHandModeSwitch_respond = 10420;
IID_Server_TaskIndex = 10421;
IID_Server_TaskIndex_respond = 10422;//data
IID_Server_TaskListSend = 10423;
IID_Server_TaskListSend_respond = 10424;
IID_Server_TaskListReceive = 10425;
IID_Server_TaskListReceive_respond = 10426;
IID_Server_FileReceive = 10427;
IID_Server_FileReceive_respond = 10428;
IID_Server_TaskExecAnalysisResult = 105;
IID_Server_TaskExecAnalysisResult_respond = 10502;
IID_Server_TaskExecList = 10503;
IID_Server_TaskExecList_respond = 10504;//list
// more setting action
IID_Server_MoreSettingSet = 10601;
IID_Server_MoreSettingSet_respond = 10602;
IID_Server_MoreSettingGet = 10603;
IID_Server_MoreSettingGet_respond = 10604;// 正常-data ,获取存储规则-list
IID_Server_MoreSettingGetDefault = 10605;
IID_Server_MoreSettingGetDefault_respond = 10606;//data
IID_Server_MoreSettingDataSet = 10607;
IID_Server_MoreSettingDataSet_respond = 10608;
IID_Server_MoreSettingDataDel = 10609;
IID_Server_MoreSettingDataDel_respond = 10610;
// IID_Server_MoreSettingSend = 10611;
// IID_Server_MoreSettingSend_respond = 10612;
// IID_Server_MoreSettingReceive = 10613;
// IID_Server_MoreSettingReceive_respond = 10614;
// user action
IID_Server_Login = 10701;
IID_Server_Login_respond = 10702;//data
IID_Server_UserCreate = 10703;
IID_Server_UserCreate_respond = 10704;
IID_Server_UserUpdate = 10705;
IID_Server_UserUpdate_respond = 10706;
IID_Server_UserDel = 10707;
IID_Server_UserDel_respond = 10708;
IID_Server_UserList = 10709;
IID_Server_UserList_respond = 10710;//list
//====================== UI =============================
IID_UI_Base = 20000;
IID_UI_xxx = 20001;
IID_UI_xxx_respond = 20002;
//====================== Device =============================
IID_Device_Base = 30000;
IID_Device_DBC_CURD = 30001;
IID_Device_DBC_CURD_respond = 30002;
IID_Device_Xpro_TX_cmd = 30003;
IID_Device_Xpro_TX_cmd_respond = 30004;
IID_Device_Xpro_RX_cmd = 30005;
IID_Device_Xpro_RX_cmd_respond = 30006; //用不上
//====================== AGI =============================
IID_AGI_Base=4000;
IID_AGI_TLE=4001;
IID_AGI_TLE_respond=4002;
IID_AGI_Report=4003;
IID_AGI_Report_respond=4004;
//====================== OAM =============================
IID_OAM_Base = 50000;
// public use
IID_OAM_HeartBeat_RX = 50001;
IID_OAM_LOG_RX = 50003;
// OAM relay
IID_OAM_SysStatus_Relay = 50005;
IID_OAM_SysStatus_Relay_Respond = 50006;
IID_OAM_Performance_Relay = 50007;
IID_OAM_Performance_Relay_Respond = 50008;
IID_OAM_Alert_Start_Relay = 50009;
IID_OAM_Alert_Start_Relay_Respond = 50010;
IID_OAM_Alert_End_Relay = 50011;
IID_OAM_Alert_End_Relay_Respond = 50012;
IID_OAM_LOG_Relay = 50013;
IID_OAM_LOG_Relay_Respond = 50014;
// communicate with UI
IID_OAM_UI_SysStatus_Require = 50015;
IID_OAM_UI_SysStatus_Respond = 50016;
IID_OAM_UI_SysStatus_Update = 50017;
IID_OAM_UI_SysStatus_Update_Respond = 50018;
IID_OAM_UI_CurrentAlarms_Require = 50019;
IID_OAM_UI_CurrentAlarms_Respond = 50020;
IID_OAM_UI_CurrentAlarms_Start_Update = 50021;
IID_OAM_UI_CurrentAlarms_Start_Update_Respond = 50022;
IID_OAM_UI_CurrentAlarms_End_Update = 50023;
IID_OAM_UI_CurrentAlarms_End_Update_Respond = 50024;
IID_OAM_UI_HistoryAlarms_Require = 50025;
IID_OAM_UI_HistoryAlarms_Respond = 50026;
IID_OAM_UI_AlarmAttribution_Require = 50027;
IID_OAM_UI_AlarmAttribution_Respond = 50028;
IID_OAM_UI_AlarmAttribution_Update_Require = 50029;
IID_OAM_UI_AlarmAttribution_Update_Respond = 50030;
IID_OAM_UI_PerInfos_Require = 50031;
IID_OAM_UI_PerInfos_Respond = 50032;
IID_OAM_UI_PerAttribution_Require = 50033;
IID_OAM_UI_PerAttribution_Respond = 50034;
IID_OAM_UI_PerAttribution_Update_Require = 50035;
IID_OAM_UI_PerAttribution_Update_Respond = 50036;
IID_OAM_UI_LOG_Require = 50037;
IID_OAM_UI_LOG_Respond = 50038;
// communicate with Device
IID_OAM_Device_Alert_Start = 50039;
IID_OAM_Device_Alert_Start_Respond = 50040;
IID_OAM_Device_Alert_End = 50041;
IID_OAM_Device_Alert_End_Respond = 50042;
IID_OAM_Device_Performance_RX = 50043;
IID_OAM_Base=5000;
IID_OAM_xxx=5001;
IID_OAM_xxx_respond=5002;
}
IID Cmd=1;
uint32 DstSUID=2;
uint32 SrcSUID=3;
uint32 ForwardFlag=4;
repeated google.protobuf.Any Parameters=5;
/*
......
xxxx id%2 == 1
xxxx_respond = id+1
*/
}
/// sub system define
enum BROKERAREA
{
BROKERAREA_LOCAL = 0;
BROKERAREA_CLOUD_LEVEL2 = 1;
BROKERAREA_CLOUD_LEVEL1 = 2;
}
enum SUBSYSTEM
{
SUBSYSTEM_base = 0;
SUBSYSTEM_Server = 1;
SUBSYSTEM_UI = 2;
SUBSYSTEM_Device = 3;
SUBSYSTEM_AGI = 4;
SUBSYSTEM_OAM = 5;
SUBSYSTEM_default = 6;
}
message TestParams
{
string key = 1;
string value = 2;
}
//设备状态枚举
enum Devistatus
{
Init_status = 0;
Online = 1;
Offline = 2;
Alarm = 3;
}
//心跳
message Heartbeat
{
uint32 suid = 1;
repeated IID iid_list = 2;
map<uint32, Devistatus> Dev_status = 3; //存放设备状态 <DEV_SUID,STATUS>
}
message TDSCmd
{
IID interface_id = 1;
uint32 dst_suid = 2;
uint32 src_suid = 3;
uint32 forward_flag = 4;
uint32 priority = 5; //报文优先级 可以优先发送
uint32 request_index = 6;
google.protobuf.Timestamp ts = 7;
repeated google.protobuf.Any parameters = 8;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment