gengxin
author@CHENG <2393524978@qq.com>
Thu, 25 Jul 2024 03:42:39 +0000 (11:42 +0800)
committer@CHENG <2393524978@qq.com>
Thu, 25 Jul 2024 03:42:39 +0000 (11:42 +0800)
2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c
2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.h
2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd_content.c

index 415776e..3604f3a 100644 (file)
@@ -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
index 205da75..f5b12c0 100644 (file)
@@ -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
index 80f3f45..12a2820 100644 (file)
@@ -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;