初始提交
This commit is contained in:
274
inc/cli/bt/iot_cli_msg_id_definition.h
Normal file
274
inc/cli/bt/iot_cli_msg_id_definition.h
Normal file
@@ -0,0 +1,274 @@
|
||||
/****************************************************************************
|
||||
|
||||
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
be copied by any method or incorporated into another program without
|
||||
the express written consent of Aerospace C.Power. This Information or any portion
|
||||
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
liability for its use in any way and conveys no license or title under
|
||||
any patent or copyright and makes no representation or warranty that this
|
||||
Information is free from patent or copyright infringement.
|
||||
|
||||
****************************************************************************/
|
||||
#ifndef IOT_CLI_MSG_ID_DEFINITION_H
|
||||
#define IOT_CLI_MSG_ID_DEFINITION_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*keep new msgid append to last*/
|
||||
typedef enum
|
||||
{
|
||||
CLI_MSGID_DEBUG_LOG_REPORT,
|
||||
CLI_MSGID_SET_DEBUG_LOG_LEVEL,
|
||||
|
||||
///---- HOSTinterface- ---begin
|
||||
CLI_MSGID_GET_TOPO,
|
||||
CLI_MSGID_GET_TOPO_RESP,
|
||||
CLI_MSGID_GET_ROLE,
|
||||
CLI_MSGID_GET_ROLE_RESP,
|
||||
CLI_MSGID_GET_METER_DATA,
|
||||
CLI_MSGID_GET_METER_DATA_RESP,
|
||||
CLI_MSGID_START_SEARCH_METER,
|
||||
CLI_MSGID_START_SEARCH_METER_RESP,
|
||||
CLI_MSGID_STOP_SEARCH_METER,
|
||||
CLI_MSGID_STOP_SEARCH_METER_RESP,
|
||||
CLI_MSGID_GETMETERLIST,
|
||||
CLI_MSGID_GETMETERLIST_RESP,
|
||||
CLI_MSGID_ONLINE,
|
||||
CLI_MSGID_ONLINE_RESP,
|
||||
CLI_MSGID_PING,
|
||||
CLI_MSGID_PING_ACK,
|
||||
CLI_MSGID_READ_PIB,
|
||||
CLI_MSGID_READ_PIB_RESP,
|
||||
CLI_MSGID_WRITE_PIB,
|
||||
CLI_MSGID_WRITE_PIB_ACK,
|
||||
CLI_MSGID_GETWHITELIST,
|
||||
CLI_MSGID_GETWHITELIST_RESP,
|
||||
CLI_MSGID_GETBLACKLIST,
|
||||
CLI_MSGID_GETBLACKLIST_RESP,
|
||||
///---- HOSTinterface ----end
|
||||
CLI_MSGID_SET_SNR,
|
||||
CLI_MSGID_FORCE_CRASH,
|
||||
CLI_MSGID_UPGRADE_START,
|
||||
CLI_MSGID_UPGRADE_START_ACK,
|
||||
CLI_MSGID_UPGRADE_DATA,
|
||||
CLI_MSGID_UPGRADE_DATA_ACK,
|
||||
CLI_MSGID_UPGRADE_STOP,
|
||||
CLI_MSGID_UPGRADE_STOP_ACK,
|
||||
CLI_MSGID_UPGRADE_COMMIT,
|
||||
CLI_MSGID_UPGRADE_COMMIT_ACK,
|
||||
CLI_MSGID_UPGRADE_RESET,
|
||||
CLI_MSGID_UPGRADE_RESET_ACK,
|
||||
|
||||
CLI_MSGID_UPGRADE_NOTIFY,
|
||||
CLI_MSGID_UPGRADE_NOTIFY_ACK,
|
||||
|
||||
CLI_MSGID_UART_TEST,
|
||||
CLI_MSGID_UART_TEST_RESP,
|
||||
|
||||
CLI_MSGID_SET_MODULE_DEBUG_LOG_LEVEL,
|
||||
CLI_MSGID_PARSER_LOG_FILE,
|
||||
|
||||
CLI_MSGID_UPGRADE_RESULT,
|
||||
CLI_MSGID_REMOTE_UPGRADE_START,
|
||||
CLI_MSGID_REMOTE_UPGRADE_START_ACK,
|
||||
CLI_MSGID_REMOTE_UPGRADE_DATA_REQUEST,
|
||||
CLI_MSGID_REMOTE_UPGRADE_DATA,
|
||||
CLI_MSGID_UPGRADE_DST_LIST,
|
||||
CLI_MSGID_UPGRADE_DST_LIST_ACK,
|
||||
CLI_MSGID_UPGRADE_PROGRESS,
|
||||
|
||||
CLI_MSGID_GET_LOG_FROM_FLASH,
|
||||
CLI_MSGID_TRANSFER_LOG_FROM_FLASH_START,
|
||||
CLI_MSGID_TRANSFERING_LOG_FROM_FLASH,
|
||||
CLI_MSGID_TRANSFER_LOG_FROM_FLASH_END,
|
||||
|
||||
CLI_MSGID_UPGRADE_DST_STATUS_QUERY,
|
||||
CLI_MSGID_UPGRADE_DST_STATUS_QUERY_ACK,
|
||||
CLI_MSGID_UPGRADE_DST_STATUS_LIST,
|
||||
CLI_MSGID_UPGRADE_DST_STATUS_LIST_ACK,
|
||||
|
||||
CLI_MSGID_ADD_WHITELIST,
|
||||
|
||||
CLI_MSGID_GET_REMOTE_LOG_FROM_FLASH,
|
||||
CLI_MSGID_SEND_REMOTE_LOG_SIZE_TO_CCO,
|
||||
CLI_MSGID_SEND_REMOTE_LOG_DATA_TO_CCO,
|
||||
|
||||
CLI_MSGID_UPGRADE_SATUS_UPDATE,
|
||||
CLI_MSGID_GET_LOG_FROM_FLASH_EX,
|
||||
|
||||
CLI_MSGID_GET_BAND_ID,
|
||||
CLI_MSGID_GET_BAND_ID_RESP,
|
||||
CLI_MSGID_SET_BAND_ID,
|
||||
CLI_MSGID_SET_BAND_ID_RESP,
|
||||
CLI_MSGID_SET_TX_POWER,
|
||||
CLI_MSGID_SET_TX_POWER_RESP,
|
||||
|
||||
CLI_MSGID_RATE_START,
|
||||
CLI_MSGID_RATE_START_ACK,
|
||||
CLI_MSGID_RATE_STOP,
|
||||
CLI_MSGID_RATE_STOP_ACK,
|
||||
CLI_MSGID_RATE_TEST,
|
||||
CLI_MSGID_RATE_TEST_RESP,
|
||||
|
||||
CLI_MSGID_GETWHITELIST_STATE,
|
||||
CLI_MSGID_GETWHITELIST_STATE_RESP,
|
||||
CLI_MSGID_RM_WHITELIST,
|
||||
CLI_MSGID_SET_WHITELIST_STATE,
|
||||
CLI_MSGID_ADD_WHITELIST_RESP,
|
||||
CLI_MSGID_RM_WHITELIST_RESP,
|
||||
CLI_MSGID_SET_WHITELIST_STATE_RESP,
|
||||
|
||||
CLI_MSGID_SG_UPGRADE_DATA,
|
||||
CLI_MSGID_SG_UPGRADE_DATA_ACK,
|
||||
|
||||
CLI_MSGID_SEARCH_MERLIST_RESP,
|
||||
CLI_MSGID_METERLIST_DATA_DONE_RESP,
|
||||
|
||||
CLI_MSGID_SWITCH_BOOT_PART,
|
||||
CLI_MSGID_SWITCH_BOOT_PART_ACK,
|
||||
|
||||
CLI_MSGID_TRANSFER_CLI_MSG,
|
||||
|
||||
CLI_MSGID_SET_PCO_SNR_CFG,
|
||||
CLI_MSGID_SET_PCO_SNR_CFG_ACK,
|
||||
|
||||
CLI_MSGID_CCO_NW_STATUS,
|
||||
|
||||
CLI_MSGID_USER_DATA,
|
||||
CLI_MSGID_USER_DATA_ACK,
|
||||
|
||||
CLI_MSGID_GET_METER_DATA_ACK,
|
||||
|
||||
CLI_MSGID_SET_CLI_UPGRADE_ENABLED,
|
||||
CLI_MSGID_SET_CLI_UPGRADE_ENABLED_ACK,
|
||||
|
||||
CLI_MSGID_OPPSITE_PHASE_NOTIFY,
|
||||
|
||||
CLI_MSGID_NEIGHBOR_INFO_QUERY,
|
||||
CLI_MSGID_NEIGHBOR_INFO_RESP,
|
||||
|
||||
CLI_MSGID_RPT_EVENT_DATA,
|
||||
|
||||
CLI_MSGID_SET_BAUD_RATE,
|
||||
CLI_MSGID_SET_BAUD_RATE_ACK,
|
||||
|
||||
CLI_MSGID_SET_TSFM_DETECT_STATE,
|
||||
CLI_MSGID_SET_TSFM_DETECT_STATE_ACK,
|
||||
CLI_MSGID_QUERY_TSFM_DETECT_STATE,
|
||||
CLI_MSGID_QUERY_TSFM_DETECT_STATE_RESP,
|
||||
|
||||
CLI_MSGID_ENABLE_DISCOVERY_MODE,
|
||||
CLI_MSGID_ENABLE_DISCOVERY_MODE_ACK,
|
||||
CLI_MSGID_DISCOVERY_NODE_RESP,
|
||||
CLI_MSGID_JOIN_NODE,
|
||||
CLI_MSGID_JOIN_NODE_ACK,
|
||||
|
||||
CLI_MSGID_NODE_IS_READY,
|
||||
CLI_MSGID_NODE_IS_READY_RESPONSE,
|
||||
|
||||
CLI_MSGID_SET_NID,
|
||||
CLI_MSGID_SET_NID_ACK,
|
||||
|
||||
CLI_MSGID_SET_VENDOR,
|
||||
CLI_MSGID_SET_VENDOR_ACK,
|
||||
CLI_MSGID_VENDOR_REPORT,
|
||||
|
||||
CLI_MSGID_SET_BUILD_INFO,
|
||||
CLI_MSGID_SET_BUILD_INFO_ACK,
|
||||
CLI_MSGID_BUILD_INFO_REPORT,
|
||||
|
||||
CLI_MSGID_GET_DBGLOG_LEVEL,
|
||||
CLI_MSGID_GET_DBGLOG_LEVEL_RESP,
|
||||
CLI_MSGID_GET_DBGLOG_MODULE_LEVEL,
|
||||
CLI_MSGID_GET_DBGLOG_MODULE_LEVEL_RESP,
|
||||
CLI_MSGID_GET_DBGLOG_MODULE_LIST,
|
||||
CLI_MSGID_GET_DBGLOG_MODULE_LIST_RESP,
|
||||
CLI_MSGID_SET_DEBUG_LOG_LEVEL_ACK,
|
||||
CLI_MSGID_START_STOP_LIVE_LOG_CAPTURE_ACK,
|
||||
CLI_MSGID_START_STOP_LIVE_LOG_CAPTURE,
|
||||
CLI_MSGID_SEND_LIVE_LOG,
|
||||
|
||||
CLI_MSGID_NEIGHBOR_NW_QUERY,
|
||||
CLI_MSGID_NEIGHBOR_NW_RESP,
|
||||
|
||||
CLI_MSGID_SET_EVENT_RPT_ENABLED,
|
||||
CLI_MSGID_SET_EVENT_RPT_ENABLED_ACK,
|
||||
|
||||
CLI_MSGID_SET_CCTT_DATA_ENABLED,
|
||||
CLI_MSGID_SET_CCTT_DATA_ENABLED_ACK,
|
||||
|
||||
CLI_MSG_SET_CON_MR_PARAM,
|
||||
CLI_MSG_SET_CON_MR_PARAM_ACK,
|
||||
CLI_MSG_QUERY_CON_MR_PARAM,
|
||||
CLI_MSG_QUERY_CON_MR_PARAM_RESP,
|
||||
|
||||
CLI_MSGID_PLC_MGR_ALIVE,
|
||||
CLI_MSGID_PLC_MGR_ALIVE_ACK,
|
||||
|
||||
CLI_MSGID_GET_METER_RT_DATA,
|
||||
CLI_MSGID_GET_METER_RT_DATA_REQ,
|
||||
|
||||
CLI_MSGID_GET_MISSED_TOPO,
|
||||
|
||||
CLI_MSGID_GET_REPORT_ACK,
|
||||
CLI_MSGID_SET_ADA_DUMP_PARAM,
|
||||
CLI_MSGID_SET_ADA_DUMP_PARAM_ACK,
|
||||
|
||||
/* tput test */
|
||||
CLI_MSGID_TPUT_CFG,
|
||||
CLI_MSGID_TPUT_CFG_ACK,
|
||||
|
||||
CLI_MSGID_TPUT_RLT,
|
||||
|
||||
CLI_MSGID_SET_ADA_DUMP_RESULT,
|
||||
|
||||
CLI_MSGID_SET_STOP_UPGRADE_RPT,
|
||||
|
||||
CLI_MSGID_UL_ACK,
|
||||
|
||||
CLI_MSGID_NW_STATUS_QUERY,
|
||||
/* note: The following two msg IDs are old obsolete commands
|
||||
* CLI_MSGID_RSVD1 -- CLI_MSGID_SET_TX_TONE_PARAM
|
||||
* CLI_MSGID_RSVD2 -- CLI_MSGID_SET_TX_TONE_PARAM_ACK
|
||||
*/
|
||||
CLI_MSGID_RSVD1,
|
||||
CLI_MSGID_RSVD2,
|
||||
|
||||
CLI_MSGID_READ_RAM,
|
||||
CLI_MSGID_RAM_INFO,
|
||||
CLI_MSGID_SET_RAM,
|
||||
CLI_MSGID_SET_RAM_ACK,
|
||||
|
||||
CLI_MSGID_MAC_FUN_TEST,
|
||||
CLI_MSGID_MAC_FUN_TEST_RESULT,
|
||||
|
||||
CLI_MSGID_SG_UPGRADE_STOP,
|
||||
CLI_MSGID_SG_UPGRADE_STOP_ACK,
|
||||
|
||||
CLI_MSGID_GET_OEM_MISC,
|
||||
CLI_MSGID_GET_OEM_MISC_INFO,
|
||||
|
||||
CLI_MSGID_MAX_NUM,
|
||||
} cli_msgid_t;
|
||||
|
||||
/*keep new module id append to last*/
|
||||
typedef enum
|
||||
{
|
||||
CLI_MODULEID_DEBUGLOG,
|
||||
CLI_MODULEID_COMMUNICATION,
|
||||
CLI_MODULEID_HOSTINTERFACE,
|
||||
CLI_MODULEID_FTM,
|
||||
CLI_MODULEID_MANUFACTURE_OP,
|
||||
CLI_MODULEID_MAX_NUM
|
||||
} cli_moduleid_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
189
inc/cli/iot_cli.h
Normal file
189
inc/cli/iot_cli.h
Normal file
@@ -0,0 +1,189 @@
|
||||
/****************************************************************************
|
||||
|
||||
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
be copied by any method or incorporated into another program without
|
||||
the express written consent of Aerospace C.Power. This Information or any portion
|
||||
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
liability for its use in any way and conveys no license or title under
|
||||
any patent or copyright and makes no representation or warranty that this
|
||||
Information is free from patent or copyright infringement.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef IOT_CLI_H
|
||||
#define IOT_CLI_H
|
||||
|
||||
/* os shim includes */
|
||||
#include "os_types.h"
|
||||
#include "os_lock.h"
|
||||
#include "os_task.h"
|
||||
#include "os_event.h"
|
||||
|
||||
#include "iot_config.h"
|
||||
#include "iot_queue.h"
|
||||
#include "iot_mem_pool.h"
|
||||
#include "iot_task.h"
|
||||
#include "iot_dbglog.h"
|
||||
#include "iot_pkt_api.h"
|
||||
|
||||
#include "communicator.h"
|
||||
|
||||
#include "iot_cli_type_definition.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct _cli_mini_mode_data
|
||||
{
|
||||
void *buffer;
|
||||
uint32_t len;
|
||||
} cli_mini_mode_data;
|
||||
|
||||
typedef struct _cli_cvg_inf
|
||||
{
|
||||
uint8_t cvg_role; //the role of the cvg
|
||||
} cli_cvg_info_t;
|
||||
|
||||
typedef struct _iot_cli_entry
|
||||
{
|
||||
commnucator_t commu;
|
||||
dbglog_info_t *dbglog;
|
||||
iot_task_h cli_task_h;
|
||||
cli_cvg_info_t local_info;
|
||||
uint8_t need_download_cli_to_flash : 1,
|
||||
/* enable commnucator */
|
||||
enable_commu : 1,
|
||||
/* reserved for further use */
|
||||
rsvd : 6;
|
||||
} iot_cli_t;
|
||||
|
||||
iot_task_msg_t *iot_cli_create_cli_msg(
|
||||
uint16_t id, iot_pkt_t *pkt);
|
||||
|
||||
uint32_t iot_cli_init(uint8_t interface_type, uint8_t ftm_mode);
|
||||
|
||||
/* pack for the structures in the whole file */
|
||||
#pragma pack(push) // save the pack status
|
||||
#pragma pack(1) // 1 byte align
|
||||
#if HW_PLATFORM == HW_PLATFORM_SIMU
|
||||
|
||||
typedef struct _snr_info
|
||||
{
|
||||
uint32_t ip_addr;
|
||||
uint32_t snr;
|
||||
uint32_t phase;
|
||||
uint32_t src_phase;
|
||||
} snr_info_t;
|
||||
|
||||
typedef struct _snr_hdr
|
||||
{
|
||||
uint32_t dest_addr;
|
||||
uint32_t num;
|
||||
uint32_t mode; //0:rf, 1:plc
|
||||
}snr_hdr_t;
|
||||
#endif
|
||||
|
||||
/*
|
||||
*the buffer is alloced by cli mode, and consided that some up-level mode need
|
||||
*access the buffer at another task, so give a param to tell if cli need free
|
||||
*the buffer or not, if need cli free the iot_pkt, please set the need_free
|
||||
* to true, by default the value of bool param is true
|
||||
*/
|
||||
typedef void(*FTM_MSG_HANDLER)(int msgid, iot_pkt_t* buffer, bool_t* need_free);
|
||||
|
||||
typedef void(*PT_BOARD_MSG_HANDLER)(int msgid, iot_pkt_t* buffer);
|
||||
|
||||
typedef void(*IC_TOOL_MSG_HANDLER)(int msgid, iot_pkt_t* buffer, uint32_t len);
|
||||
|
||||
typedef void(*CLI_REGULAR_LOG)();
|
||||
|
||||
void register_regular_log(CLI_REGULAR_LOG cb);
|
||||
|
||||
void register_ftm_recv_cb(FTM_MSG_HANDLER cb);
|
||||
|
||||
void register_pd_board_recv_cb(PT_BOARD_MSG_HANDLER cb);
|
||||
|
||||
void register_ic_tool_recv_cb(IC_TOOL_MSG_HANDLER cb);
|
||||
|
||||
void register_ic_rf_tool_recv_cb(IC_TOOL_MSG_HANDLER cb);
|
||||
|
||||
void cli_send_module_msg_with_sn(uint32_t moduleid, uint32_t msgid,
|
||||
uint8_t *buffer, uint32_t bufferlen, uint16_t sn, uint8_t *src_mac);
|
||||
void cli_send_module_msg(uint32_t moduleid, uint32_t msgid,
|
||||
uint8_t *buffer, uint32_t bufferlen);
|
||||
|
||||
/**
|
||||
* @brief iot_cli_pre_handle_data() - cli module pre handle communicator data.
|
||||
* @param buffer: communicator received data ptr.
|
||||
* @param len: data length.
|
||||
* @param type: communicator type , see - COMMUNICATOR_XXX.
|
||||
* @retval: ERR_OK - handle is ok.
|
||||
* others - handle is fail.
|
||||
*/
|
||||
uint32_t iot_cli_pre_handle_data(void *buffer, uint32_t len,
|
||||
interface_type_t type);
|
||||
|
||||
#define IOT_CLI_MSG_TYPE 1
|
||||
|
||||
#define IOT_CLI_SEND_MSG 1 /* send messages */
|
||||
#define IOT_CLI_REV_MSG 3 /* cli rx msg */
|
||||
#define IOT_CLI_HOST_MSG 4 /* cli host msg */
|
||||
#define IOT_CLI_LOG_TIMER 5 /* cli log timer */
|
||||
#define IOT_CLI_UPGRADE_TIMER 6 /* cli upgrade timer */
|
||||
#define IOT_CLI_SG_MSG 7 /* cli and smart grid msg */
|
||||
#define IOT_CLI_RATE_TEST_TIMER 8 /* cli rate test timer */
|
||||
#define IOT_CLI_SET_TIMER 9 /* cli set timer */
|
||||
#define IOT_CLI_ALIVE_TIMER 10 /* cli alive timer */
|
||||
#define IOT_CLI_ADA_MSG 11 /* cli ada msg */
|
||||
#define IOT_CLI_TPUT_MSG 12 /* cli handle tput msg */
|
||||
#define IOT_CLI_DUMP_TIMER 13 /* cli dump timer */
|
||||
#define IOT_CLI_UL_BUF_TIMER 14 /* cli ul buf timer */
|
||||
#define IOT_CLI_QUERY_HW_TIMER 15 /* cli query hw ver timer */
|
||||
#define IOT_CLI_MINI_UART_RECV 16 /* cli mini uart recv */
|
||||
#define IOT_CLI_RPT_TOPO_TIMER 17 /* cli rpt topo data timer */
|
||||
#define IOT_CLI_RX_APP_DATA_MSG 18 /* cli received data from app */
|
||||
#define IOT_CLI_BCAST_TX_DONE 19 /* cli upgrade bcast tx done */
|
||||
|
||||
#define IOT_CLI_QUEUE_TX 0
|
||||
#define IOT_CLI_QUEUE_RX 1
|
||||
#define IOT_CLI_QUEUE_HOST 2
|
||||
#define IOT_CLI_QUEUE_TIMER 3
|
||||
|
||||
#define MAC_IS_EMPTY(mac) \
|
||||
((!mac[0]) && (!mac[1]) && (!mac[2]) && \
|
||||
(!mac[3]) && (!mac[4]) && (!mac[5]))
|
||||
|
||||
#pragma pack(pop) // restore the pack status
|
||||
|
||||
/* iot_cli_queue_data - post a msg to iot_cli task with these data
|
||||
* @buffer: buffer containing data
|
||||
* @len: length of the buffer
|
||||
*/
|
||||
void iot_cli_queue_data(void *buffer, uint32_t len);
|
||||
|
||||
void send_tx_msg_to_cli_task(iot_pkt_t* data);
|
||||
|
||||
/**
|
||||
* @brief cli_add_msg_header() - fillwith cli packet.
|
||||
* @param input_buffer: src cli data ptr.
|
||||
* @param buffer_len: src cli data length.
|
||||
* @param moduleid: cli hdr moduleid.
|
||||
* @param msgid: cli hdr msgid.
|
||||
* @param sn: cli hdr sn.
|
||||
* @param output_buffer: desc cli data ptr.
|
||||
* @param out_len: fillwithed cli data total length.
|
||||
* @param src_mac: cli src mac.
|
||||
*/
|
||||
void cli_add_msg_header(void* input_buffer, uint32_t buffer_len,
|
||||
uint32_t moduleid, uint32_t msgid, uint16_t sn,
|
||||
uint8_t** output_buffer, uint32_t *out_len, uint8_t *src_mac);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
44
inc/cli/iot_cli_bt_communicator.h
Normal file
44
inc/cli/iot_cli_bt_communicator.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/****************************************************************************
|
||||
|
||||
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
be copied by any method or incorporated into another program without
|
||||
the express written consent of Aerospace C.Power. This Information or any portion
|
||||
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
liability for its use in any way and conveys no license or title under
|
||||
any patent or copyright and makes no representation or warranty that this
|
||||
Information is free from patent or copyright infringement.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef IOT_CLI_BT_COMMUNICATOR_H
|
||||
#define IOT_CLI_BT_COMMUNICATOR_H
|
||||
|
||||
/**
|
||||
* @brief iot_cli_bt_communicator_init() - init bt communicator.
|
||||
* @retval: ERR_OK - support bt cli communicator.
|
||||
* others - don't support bt cli communicator.
|
||||
*/
|
||||
uint32_t iot_cli_bt_communicator_init();
|
||||
|
||||
/**
|
||||
* @brief iot_cli_bt_communicator_send() - bt communicator send cli data.
|
||||
* @param pkt: send pkt ptr.
|
||||
*/
|
||||
void iot_cli_bt_communicator_send(iot_pkt_t *pkt);
|
||||
|
||||
/**
|
||||
* @brief iot_cli_bt_create_cli_msg() - bt communicator create cli data.
|
||||
* @param moduleid: cli hdr moduleid.
|
||||
* @param msgid: cli hdr msgid.
|
||||
* @param buffer: cli data ptr.
|
||||
* @param bufferlen: cli data length.
|
||||
* @param sn: cli hdr sn.
|
||||
* @retval: cli pkt data.
|
||||
*/
|
||||
iot_pkt_t* iot_cli_bt_create_cli_msg(uint32_t moduleid, uint32_t msgid,
|
||||
uint8_t *buffer, uint32_t bufferlen, uint16_t sn);
|
||||
|
||||
#endif /* IOT_CLI_BT_COMMUNICATOR_H */
|
30
inc/cli/iot_cli_common.h
Executable file
30
inc/cli/iot_cli_common.h
Executable file
@@ -0,0 +1,30 @@
|
||||
/****************************************************************************
|
||||
|
||||
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
be copied by any method or incorporated into another program without
|
||||
the express written consent of Aerospace C.Power. This Information or any portion
|
||||
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
liability for its use in any way and conveys no license or title under
|
||||
any patent or copyright and makes no representation or warranty that this
|
||||
Information is free from patent or copyright infringement.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef IOT_CLI_COMMON_H
|
||||
#define IOT_CLI_COMMON_H
|
||||
|
||||
#include "iot_cli_msg_id_definition.h"
|
||||
#include "iot_cli_type_definition.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* IOT_CLI_COMMON_H */
|
73
inc/cli/iot_cli_type_definition.h
Normal file
73
inc/cli/iot_cli_type_definition.h
Normal file
@@ -0,0 +1,73 @@
|
||||
/****************************************************************************
|
||||
|
||||
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
be copied by any method or incorporated into another program without
|
||||
the express written consent of Aerospace C.Power. This Information or any portion
|
||||
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
liability for its use in any way and conveys no license or title under
|
||||
any patent or copyright and makes no representation or warranty that this
|
||||
Information is free from patent or copyright infringement.
|
||||
|
||||
****************************************************************************/
|
||||
#ifndef IOT_CLI_MSG_TYPE_DEFINITION_H
|
||||
#define IOT_CLI_MSG_TYPE_DEFINITION_H
|
||||
|
||||
/* os shim includes */
|
||||
#include "os_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define CLI_MAC_ADDR_LEN (6)
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack (1)
|
||||
/** cli message header */
|
||||
typedef struct _cli_msg_hdr
|
||||
{
|
||||
/** source mac */
|
||||
uint8_t src_mac[CLI_MAC_ADDR_LEN];
|
||||
/** target mac */
|
||||
uint8_t target_mac[CLI_MAC_ADDR_LEN];
|
||||
/** module id */
|
||||
uint16_t module_id;
|
||||
/** crc check sum */
|
||||
uint16_t cli_crc;
|
||||
/** msg id */
|
||||
uint16_t msg_id;
|
||||
/** need receiver to auto ack */
|
||||
uint8_t auto_ack : 1,
|
||||
reserved1 : 7;
|
||||
uint8_t reserved2;
|
||||
/** message length */
|
||||
uint16_t msg_len;
|
||||
/** message sn */
|
||||
uint16_t sn;
|
||||
} cli_msg_hdr_t;
|
||||
|
||||
/** cli message ack */
|
||||
typedef struct _cli_msg_ack {
|
||||
/** message ack result */
|
||||
uint8_t result;
|
||||
/** reserved */
|
||||
uint8_t reserved;
|
||||
} cli_msg_ack_t;
|
||||
#pragma pack(pop)
|
||||
|
||||
#define CLI_MSG_HEADER_LEN (sizeof(cli_msg_hdr_t))
|
||||
#define CLI_MSG_PREAMBLE_LEN (2)
|
||||
#define CLI_MSG_BACK_LEN (2)
|
||||
#define CLI_MSG_PAYLOAD_MAX_LEN (200)
|
||||
|
||||
#define CLI_PREAMBLE_CODE (0x23)
|
||||
#define CLI_BACK_CODE (0x40)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
318
inc/cli/plc/iot_cli_msg_id_definition.h
Normal file
318
inc/cli/plc/iot_cli_msg_id_definition.h
Normal file
@@ -0,0 +1,318 @@
|
||||
/****************************************************************************
|
||||
|
||||
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
be copied by any method or incorporated into another program without
|
||||
the express written consent of Aerospace C.Power. This Information or any portion
|
||||
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
liability for its use in any way and conveys no license or title under
|
||||
any patent or copyright and makes no representation or warranty that this
|
||||
Information is free from patent or copyright infringement.
|
||||
|
||||
****************************************************************************/
|
||||
#ifndef IOT_CLI_MSG_ID_DEFINITION_H
|
||||
#define IOT_CLI_MSG_ID_DEFINITION_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*keep new msgid append to last*/
|
||||
typedef enum
|
||||
{
|
||||
CLI_MSGID_DEBUG_LOG_REPORT = 0,
|
||||
CLI_MSGID_SET_DEBUG_LOG_LEVEL = 1,
|
||||
|
||||
///---- HOSTinterface- ---begin
|
||||
CLI_MSGID_GET_TOPO = 2,
|
||||
CLI_MSGID_GET_TOPO_RESP = 3,
|
||||
CLI_MSGID_GET_ROLE = 4,
|
||||
CLI_MSGID_GET_ROLE_RESP = 5,
|
||||
CLI_MSGID_GET_METER_DATA = 6,
|
||||
CLI_MSGID_GET_METER_DATA_RESP = 7,
|
||||
CLI_MSGID_START_SEARCH_METER = 8,
|
||||
CLI_MSGID_START_SEARCH_METER_RESP = 9,
|
||||
CLI_MSGID_STOP_SEARCH_METER = 10,
|
||||
CLI_MSGID_STOP_SEARCH_METER_RESP = 11,
|
||||
CLI_MSGID_GETMETERLIST = 12,
|
||||
CLI_MSGID_GETMETERLIST_RESP = 13,
|
||||
CLI_MSGID_ONLINE = 14,
|
||||
CLI_MSGID_ONLINE_RESP = 15,
|
||||
CLI_MSGID_PING = 16,
|
||||
CLI_MSGID_PING_ACK = 17,
|
||||
CLI_MSGID_READ_PIB = 18,
|
||||
CLI_MSGID_READ_PIB_RESP = 19,
|
||||
CLI_MSGID_WRITE_PIB = 20,
|
||||
CLI_MSGID_WRITE_PIB_ACK = 21,
|
||||
CLI_MSGID_GETWHITELIST = 22,
|
||||
CLI_MSGID_GETWHITELIST_RESP = 23,
|
||||
CLI_MSGID_GETBLACKLIST = 24,
|
||||
CLI_MSGID_GETBLACKLIST_RESP = 25,
|
||||
///---- HOSTinterface ----end
|
||||
CLI_MSGID_SET_SNR = 26,
|
||||
CLI_MSGID_FORCE_CRASH = 27,
|
||||
CLI_MSGID_UPGRADE_START = 28,
|
||||
CLI_MSGID_UPGRADE_START_ACK = 29,
|
||||
CLI_MSGID_UPGRADE_DATA = 30,
|
||||
CLI_MSGID_UPGRADE_DATA_ACK = 31,
|
||||
CLI_MSGID_UPGRADE_STOP = 32,
|
||||
CLI_MSGID_UPGRADE_STOP_ACK = 33,
|
||||
CLI_MSGID_UPGRADE_COMMIT = 34,
|
||||
CLI_MSGID_UPGRADE_COMMIT_ACK = 35,
|
||||
CLI_MSGID_UPGRADE_RESET = 36,
|
||||
CLI_MSGID_UPGRADE_RESET_ACK = 37,
|
||||
|
||||
CLI_MSGID_UPGRADE_NOTIFY = 38,
|
||||
CLI_MSGID_UPGRADE_NOTIFY_ACK = 39,
|
||||
|
||||
CLI_MSGID_UART_TEST = 40,
|
||||
CLI_MSGID_UART_TEST_RESP = 41,
|
||||
|
||||
CLI_MSGID_SET_MODULE_DEBUG_LOG_LEVEL = 42,
|
||||
CLI_MSGID_PARSER_LOG_FILE = 43,
|
||||
|
||||
CLI_MSGID_UPGRADE_RESULT = 44,
|
||||
CLI_MSGID_REMOTE_UPGRADE_START = 45,
|
||||
CLI_MSGID_REMOTE_UPGRADE_START_ACK = 46,
|
||||
CLI_MSGID_REMOTE_UPGRADE_DATA_REQUEST = 47,
|
||||
CLI_MSGID_REMOTE_UPGRADE_DATA = 48,
|
||||
CLI_MSGID_UPGRADE_DST_LIST = 49,
|
||||
CLI_MSGID_UPGRADE_DST_LIST_ACK = 50,
|
||||
CLI_MSGID_UPGRADE_PROGRESS = 51,
|
||||
|
||||
CLI_MSGID_GET_LOG_FROM_FLASH = 52,
|
||||
CLI_MSGID_TRANSFER_LOG_FROM_FLASH_START = 53,
|
||||
CLI_MSGID_TRANSFERING_LOG_FROM_FLASH = 54,
|
||||
CLI_MSGID_TRANSFER_LOG_FROM_FLASH_END = 55,
|
||||
|
||||
CLI_MSGID_UPGRADE_DST_STATUS_QUERY = 56,
|
||||
CLI_MSGID_UPGRADE_DST_STATUS_QUERY_ACK = 57,
|
||||
CLI_MSGID_UPGRADE_DST_STATUS_LIST = 58,
|
||||
CLI_MSGID_UPGRADE_DST_STATUS_LIST_ACK = 59,
|
||||
|
||||
CLI_MSGID_ADD_WHITELIST = 60,
|
||||
|
||||
CLI_MSGID_GET_REMOTE_LOG_FROM_FLASH = 61,
|
||||
CLI_MSGID_SEND_REMOTE_LOG_SIZE_TO_CCO = 62,
|
||||
CLI_MSGID_SEND_REMOTE_LOG_DATA_TO_CCO = 63,
|
||||
|
||||
CLI_MSGID_UPGRADE_SATUS_UPDATE = 64,
|
||||
CLI_MSGID_GET_LOG_FROM_FLASH_EX = 65,
|
||||
|
||||
CLI_MSGID_GET_BAND_ID = 66,
|
||||
CLI_MSGID_GET_BAND_ID_RESP = 67,
|
||||
CLI_MSGID_SET_BAND_ID = 68,
|
||||
CLI_MSGID_SET_BAND_ID_RESP = 69,
|
||||
CLI_MSGID_SET_TX_POWER = 70,
|
||||
CLI_MSGID_SET_TX_POWER_RESP = 71,
|
||||
|
||||
CLI_MSGID_RATE_START = 72,
|
||||
CLI_MSGID_RATE_START_ACK = 73,
|
||||
CLI_MSGID_RATE_STOP = 74,
|
||||
CLI_MSGID_RATE_STOP_ACK = 75,
|
||||
CLI_MSGID_RATE_TEST = 76,
|
||||
CLI_MSGID_RATE_TEST_RESP = 77,
|
||||
|
||||
CLI_MSGID_GETWHITELIST_STATE = 78,
|
||||
CLI_MSGID_GETWHITELIST_STATE_RESP = 79,
|
||||
CLI_MSGID_RM_WHITELIST = 80,
|
||||
CLI_MSGID_SET_WHITELIST_STATE = 81,
|
||||
CLI_MSGID_ADD_WHITELIST_RESP = 82,
|
||||
CLI_MSGID_RM_WHITELIST_RESP = 83,
|
||||
CLI_MSGID_SET_WHITELIST_STATE_RESP = 84,
|
||||
|
||||
CLI_MSGID_SG_UPGRADE_DATA = 85,
|
||||
CLI_MSGID_SG_UPGRADE_DATA_ACK = 86,
|
||||
|
||||
CLI_MSGID_SEARCH_MERLIST_RESP = 87,
|
||||
CLI_MSGID_METERLIST_DATA_DONE_RESP = 88,
|
||||
|
||||
CLI_MSGID_SWITCH_BOOT_PART = 89,
|
||||
CLI_MSGID_SWITCH_BOOT_PART_ACK = 90,
|
||||
|
||||
CLI_MSGID_TRANSFER_CLI_MSG = 91,
|
||||
|
||||
CLI_MSGID_SET_PCO_SNR_CFG = 92,
|
||||
CLI_MSGID_SET_PCO_SNR_CFG_ACK = 93,
|
||||
|
||||
CLI_MSGID_CCO_NW_STATUS = 94,
|
||||
|
||||
CLI_MSGID_USER_DATA = 95,
|
||||
CLI_MSGID_USER_DATA_ACK = 96,
|
||||
|
||||
CLI_MSGID_GET_METER_DATA_ACK = 97,
|
||||
|
||||
CLI_MSGID_SET_CLI_UPGRADE_ENABLED = 98,
|
||||
CLI_MSGID_SET_CLI_UPGRADE_ENABLED_ACK = 99,
|
||||
|
||||
CLI_MSGID_OPPSITE_PHASE_NOTIFY = 100,
|
||||
|
||||
CLI_MSGID_NEIGHBOR_INFO_QUERY = 101,
|
||||
CLI_MSGID_NEIGHBOR_INFO_RESP = 102,
|
||||
|
||||
CLI_MSGID_RPT_EVENT_DATA = 103,
|
||||
|
||||
CLI_MSGID_SET_BAUD_RATE = 104,
|
||||
CLI_MSGID_SET_BAUD_RATE_ACK = 105,
|
||||
|
||||
CLI_MSGID_SET_TSFM_DETECT_STATE = 106,
|
||||
CLI_MSGID_SET_TSFM_DETECT_STATE_ACK = 107,
|
||||
CLI_MSGID_QUERY_TSFM_DETECT_STATE = 108,
|
||||
CLI_MSGID_QUERY_TSFM_DETECT_STATE_RESP = 109,
|
||||
|
||||
CLI_MSGID_ENABLE_DISCOVERY_MODE = 110,
|
||||
CLI_MSGID_ENABLE_DISCOVERY_MODE_ACK = 111,
|
||||
CLI_MSGID_DISCOVERY_NODE_RESP = 112,
|
||||
CLI_MSGID_JOIN_NODE = 113,
|
||||
CLI_MSGID_JOIN_NODE_ACK = 114,
|
||||
|
||||
CLI_MSGID_NODE_IS_READY = 115,
|
||||
CLI_MSGID_NODE_IS_READY_RESPONSE = 116,
|
||||
|
||||
CLI_MSGID_SET_NID = 117,
|
||||
CLI_MSGID_SET_NID_ACK = 118,
|
||||
|
||||
CLI_MSGID_SET_VENDOR = 119,
|
||||
CLI_MSGID_SET_VENDOR_ACK = 120,
|
||||
CLI_MSGID_VENDOR_REPORT = 121,
|
||||
|
||||
CLI_MSGID_SET_BUILD_INFO = 122,
|
||||
CLI_MSGID_SET_BUILD_INFO_ACK = 123,
|
||||
CLI_MSGID_BUILD_INFO_REPORT = 124,
|
||||
|
||||
CLI_MSGID_GET_DBGLOG_LEVEL = 125,
|
||||
CLI_MSGID_GET_DBGLOG_LEVEL_RESP = 126,
|
||||
CLI_MSGID_GET_DBGLOG_MODULE_LEVEL = 127,
|
||||
CLI_MSGID_GET_DBGLOG_MODULE_LEVEL_RESP = 128,
|
||||
CLI_MSGID_GET_DBGLOG_MODULE_LIST = 129,
|
||||
CLI_MSGID_GET_DBGLOG_MODULE_LIST_RESP = 130,
|
||||
CLI_MSGID_SET_DEBUG_LOG_LEVEL_ACK = 131,
|
||||
CLI_MSGID_START_STOP_LIVE_LOG_CAPTURE_ACK = 132,
|
||||
CLI_MSGID_START_STOP_LIVE_LOG_CAPTURE = 133,
|
||||
CLI_MSGID_SEND_LIVE_LOG = 134,
|
||||
|
||||
CLI_MSGID_NEIGHBOR_NW_QUERY = 135,
|
||||
CLI_MSGID_NEIGHBOR_NW_RESP = 136,
|
||||
|
||||
CLI_MSGID_SET_EVENT_RPT_ENABLED = 137,
|
||||
CLI_MSGID_SET_EVENT_RPT_ENABLED_ACK = 138,
|
||||
|
||||
CLI_MSGID_SET_CCTT_DATA_ENABLED = 139,
|
||||
CLI_MSGID_SET_CCTT_DATA_ENABLED_ACK = 140,
|
||||
|
||||
CLI_MSG_SET_CON_MR_PARAM = 141,
|
||||
CLI_MSG_SET_CON_MR_PARAM_ACK = 142,
|
||||
CLI_MSG_QUERY_CON_MR_PARAM = 143,
|
||||
CLI_MSG_QUERY_CON_MR_PARAM_RESP = 144,
|
||||
|
||||
CLI_MSGID_PLC_MGR_ALIVE = 145,
|
||||
CLI_MSGID_PLC_MGR_ALIVE_ACK = 146,
|
||||
|
||||
CLI_MSGID_GET_METER_RT_DATA = 147,
|
||||
CLI_MSGID_GET_METER_RT_DATA_REQ = 148,
|
||||
|
||||
CLI_MSGID_GET_MISSED_TOPO = 149,
|
||||
|
||||
CLI_MSGID_GET_REPORT_ACK = 150,
|
||||
CLI_MSGID_SET_ADA_DUMP_PARAM = 151,
|
||||
CLI_MSGID_SET_ADA_DUMP_PARAM_ACK = 152,
|
||||
|
||||
/* tput test */
|
||||
CLI_MSGID_TPUT_CFG = 153,
|
||||
CLI_MSGID_TPUT_CFG_ACK = 154,
|
||||
|
||||
CLI_MSGID_TPUT_RLT = 155,
|
||||
|
||||
CLI_MSGID_SET_ADA_DUMP_RESULT = 156,
|
||||
|
||||
CLI_MSGID_SET_STOP_UPGRADE_RPT = 157,
|
||||
|
||||
CLI_MSGID_UL_ACK = 158,
|
||||
|
||||
CLI_MSGID_NW_STATUS_QUERY = 159,
|
||||
|
||||
CLI_MSGID_SET_TX_TONE_PARAM = 160,
|
||||
CLI_MSGID_SET_TX_TONE_PARAM_ACK = 161,
|
||||
|
||||
CLI_MSGID_READ_RAM = 162,
|
||||
CLI_MSGID_RAM_INFO = 163,
|
||||
CLI_MSGID_SET_RAM = 164,
|
||||
CLI_MSGID_SET_RAM_ACK = 165,
|
||||
|
||||
CLI_MSGID_MAC_FUN_TEST = 166,
|
||||
CLI_MSGID_MAC_FUN_TEST_RESULT = 167,
|
||||
|
||||
CLI_MSGID_SG_UPGRADE_STOP = 168,
|
||||
CLI_MSGID_SG_UPGRADE_STOP_ACK = 169,
|
||||
|
||||
CLI_MSGID_GET_OEM_MISC = 170,
|
||||
CLI_MSGID_GET_OEM_MISC_INFO = 171,
|
||||
|
||||
CLI_MSGID_CTRL_DATA_DL = 172,
|
||||
CLI_MSGID_CTRL_DATA_DL_ACK = 173,
|
||||
|
||||
CLI_MSGID_CTRL_DATA_UL = 174,
|
||||
|
||||
CLI_MSGID_QUEYR_HW_VER = 175,
|
||||
CLI_MSGID_HW_VER_REPORT = 176,
|
||||
|
||||
CLI_MSGID_QUERY_ADA_DUMP_RESULT = 177,
|
||||
|
||||
CLI_MSGID_BD_START = 178,
|
||||
CLI_MSGID_BD_START_ACK = 179,
|
||||
|
||||
CLI_MSGID_BD_QUERY_STATE = 180,
|
||||
CLI_MSGID_BD_QUERY_STATE_ACK = 181,
|
||||
|
||||
CLI_MSGID_BD_QUERY_RET = 182,
|
||||
CLI_MSGID_BD_QUERY_RET_ACK = 183,
|
||||
|
||||
CLI_MSGID_SET_ESP = 184,
|
||||
CLI_MSGID_QUERY_ESP = 185,
|
||||
CLI_MSGID_SET_ESP_ACK = 186,
|
||||
|
||||
CLI_MSGID_GET_DEVICE_INFO = 187,
|
||||
CLI_MSGID_GET_DEVICE_INFO_RESP = 188,
|
||||
|
||||
CLI_MSGID_QUERY_NODE_INFO = 189,
|
||||
CLI_MSGID_NODE_INFO_RSP = 190,
|
||||
|
||||
CLI_MSGID_SEND_BROADCAST_DATA = 191,
|
||||
CLI_MSGID_SEND_BROADCAST_RSP = 192,
|
||||
|
||||
CLI_MSGID_SET_MAC = 193,
|
||||
CLI_MSGID_SET_MAC_ACK = 194,
|
||||
|
||||
CLI_MSGID_UPGRADE_NODE_INFO_QUERY = 195,
|
||||
CLI_MSGID_UPGRADE_NODE_INFO_RESPONSE = 196,
|
||||
|
||||
CLI_MSGID_SET_RF_CHANNEL = 197,
|
||||
CLI_MSGID_SET_RF_CHANNEL_RSP = 198,
|
||||
|
||||
CLI_MSGID_GET_LOCAL_INFO = 199,
|
||||
CLI_MSGID_GET_LOCAL_INFO_RESP = 200,
|
||||
|
||||
CLI_MSGID_TRANS_USER_LOCAL_PROTO_DATA = 201,
|
||||
CLI_MSGID_TRANS_USER_LOCAL_PROTO_DATA_RESP = 202,
|
||||
|
||||
CLI_MSGID_MAX_NUM,
|
||||
} cli_msgid_t;
|
||||
|
||||
/*keep new module id append to last*/
|
||||
typedef enum
|
||||
{
|
||||
CLI_MODULEID_DEBUGLOG,
|
||||
CLI_MODULEID_COMMUNICATION,
|
||||
CLI_MODULEID_HOSTINTERFACE,
|
||||
CLI_MODULEID_FTM,
|
||||
CLI_MODULEID_MANUFACTURE_OP,
|
||||
CLI_MODULEID_MAX_NUM
|
||||
} cli_moduleid_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user