From: @CHENG <2393524978@qq.com> Date: Thu, 25 Jul 2024 03:42:39 +0000 (+0800) Subject: gengxin X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=3a2ba842d79efb6d578e730ef619b5b333b28d7f;p=mirrors%2FASR3603_Z5.git gengxin --- diff --git a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c index 415776ef..3604f3ad 100644 --- a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c +++ b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c @@ -578,6 +578,8 @@ bool mmi_protocol_fzd_parse_LINK(unsigned char * next_buff, unsigned int next_bu mmi_protocol_fzd_action_get_app_qrcode(); + mmi_protocol_fzd_action_send_iccid(); + return true; } @@ -3931,6 +3933,25 @@ bool mmi_protocol_fzd_parse_ACTION_TCP_HTTP(unsigned char * next_buff, unsigned return result; } +bool mmi_protocol_fzd_action_send_iccid(void) +{ + bool result = false; + MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_ACTION_SEND_ICCID; + unsigned char content_buff[64] = {0}; + unsigned int content_lenth = 0; + + // iccid + char * p_iccid = app_adaptor_get_iccid_info_req(); + sprintf(content_buff, ",%s", p_iccid); + lv_mem_free(p_iccid); + + //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: %s\n", __FUNCTION__, __LINE__, content_buff); + + content_lenth = strlen(content_buff); + result = mmi_protocol_fzd_send_with_data(action, content_buff, content_lenth); + + return result; +} #endif diff --git a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.h b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.h index 205da754..f5b12c0d 100644 --- a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.h +++ b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.h @@ -206,6 +206,7 @@ MMI_FZD_ACTION_HENGAI_SLEEP_DATA_TEST, MMI_FZD_ACTION_HENGAI_TCMS_DATA, #endif MMI_FZD_ACTION_TCP_HTTP, + MMI_FZD_ACTION_SEND_ICCID, MMI_FZD_SERVER_SET_BOOTOFF, MMI_FZD_SEND_UP_REMIND, @@ -374,6 +375,7 @@ bool mmi_protocol_fzd_action_hengai_tcms_data(char * data_ptr, uint32_t data_len bool mmi_protocol_fzd_action_tcp_http(char * data_ptr, uint32_t data_len); bool mmi_protocol_fzd_parse_ACTION_TCP_HTTP(unsigned char * next_buff, unsigned int next_buff_len); +bool mmi_protocol_fzd_action_send_iccid(void); #endif diff --git a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd_content.c b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd_content.c index 80f3f450..12a28208 100644 --- a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd_content.c +++ b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd_content.c @@ -139,6 +139,7 @@ static unsigned char * mmi_protocol_fzd_action_string_get(MMI_PROTOCOL_FZD_ACTIO {MMI_FZD_ACTION_HENGAI_TCMS_DATA, "CNDOCD"}, #endif {MMI_FZD_ACTION_TCP_HTTP, "TCP_HTTP"}, + {MMI_FZD_ACTION_SEND_ICCID, "ICCID"}, {MMI_FZD_SERVER_SET_BOOTOFF, "BOOTOFF"}, {MMI_FZD_SEND_UP_REMIND, "UP_REMIND"}, @@ -475,6 +476,9 @@ static bool mmi_protocol_fzd_content_parse(unsigned char * content_ptr, unsigned mmi_protocol_fzd_parse_ACTION_TCP_HTTP(next_buff, next_buff_len); break; + case MMI_FZD_ACTION_SEND_ICCID: + break; + case MMI_FZD_SERVER_SET_BOOTOFF: mmi_protocol_fzd_parse_SERVER_SET_BOOTOFF(next_buff, next_buff_len); break;