添加装置重启功能和控制位写入功能
This commit is contained in:
@@ -320,6 +320,17 @@ struct LD_info_t{
|
||||
//录波
|
||||
};
|
||||
|
||||
//装置控制初始化
|
||||
typedef struct
|
||||
{
|
||||
ST_BOOLEAN inited;
|
||||
|
||||
ST_INT ledrs_oper_type_id;
|
||||
ST_INT reboot_oper_type_id;
|
||||
ST_INT reset_oper_type_id;
|
||||
|
||||
} MMS_OPER_TYPE_CACHE;
|
||||
|
||||
struct ied_usr_t{
|
||||
LD_info_t *LD_info; /**< LD数组 */
|
||||
int dev_idx; /**< 设备序号 */
|
||||
@@ -346,6 +357,8 @@ struct ied_usr_t{
|
||||
|
||||
bool lastconnectstat;//lnk20250704
|
||||
bool has_logged_disconnect;//lnk20250704
|
||||
|
||||
MMS_OPER_TYPE_CACHE oper_type_cache;
|
||||
};
|
||||
|
||||
|
||||
@@ -533,24 +546,35 @@ int parse_file_names_by_fltnum(int fltnum, char* domname, char** filenames, int
|
||||
QVVR_t* find_qvvr_by_trig_tm(LD_info_t* LD_info,long long trig_tm);
|
||||
|
||||
void HandleFileDirReqForChannel(chnl_usr_t *chnl_usr);
|
||||
void InitLedrsOperTypeForChannel(chnl_usr_t *chnl_usr);
|
||||
|
||||
//lnk20250508添加重启装置函数
|
||||
//根据抓包显示oper的data结构有6个item
|
||||
typedef struct
|
||||
typedef struct
|
||||
{
|
||||
ST_BOOLEAN ctlVal; //0:不重启 1:重启
|
||||
ST_BOOLEAN ctlVal;
|
||||
|
||||
struct
|
||||
{
|
||||
ST_INT8 orCat;
|
||||
ST_CHAR orIdent[1]; // 空字符串
|
||||
ST_INT16 orCat;
|
||||
|
||||
struct
|
||||
{
|
||||
ST_INT16 len;
|
||||
ST_UINT8 data[64];
|
||||
} orIdent;
|
||||
|
||||
} origin;
|
||||
|
||||
ST_UINT8 ctlNum;
|
||||
ST_UINT32 ctlNum;
|
||||
|
||||
MMS_UTC_TIME T;
|
||||
|
||||
ST_BOOLEAN Test;
|
||||
ST_UCHAR Check[1]; // bit-string 00
|
||||
} LEDRs_Oper_t;
|
||||
|
||||
ST_UCHAR Check[2];
|
||||
|
||||
} Control_Oper_t;
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user