unsigned int content_lenth = 0;
hal_rtc_t cur_time = {0};
int step_num = asl_pedometer_steps_get();
- int roll_num = 0;
+ int roll_num = mmi_sleep_roll_number_get();
int battery_percent = Hal_Battery_Get_Status();
content_buff = (unsigned char *)lv_mem_alloc(128);
return result;
}
+// 0-off; 1-on
+bool mmi_protocol_fzd_parse_SERVER_SET_LOW_BATTERY_SWITCH(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_LOW_BATTERY_SWITCH;
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ return false;
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ uint32_t value = atoi(next_buff);
+ mmi_low_battery_switch_set(value);
+
+ return result;
+}
+
+// 0-off; 1-on
+bool mmi_protocol_fzd_parse_SERVER_SET_FALL_DOWN_SWITCH(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_FALL_DOWN_SWITCH;
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ return false;
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ uint32_t value = atoi(next_buff);
+ mmi_fall_down_switch_set(value);
+
+ return result;
+}
+
+// 0-off; 1-on
+bool mmi_protocol_fzd_parse_SERVER_SET_TAKE_OFF_SWITCH(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_TAKE_OFF_SWITCH;
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ return false;
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ uint32_t value = atoi(next_buff);
+ mmi_take_off_switch_set(value);
+
+ return result;
+}
+
#ifdef __MMI_REMIND_WAKE_UP_SUPPORT__
//[XX*YYYY*0018*REMIND,08:10-1-1,08:10-1-2, 08:10-1-3-0111110]
//[SZKW*860132060004801*0034*REMIND,10:00-1-1,10:02-1-3-0111000,10:03-1-3-0111111]
result = true;
mmi_protocol_fzd_send_without_data(action);
- nv_watch_remind_wake_up_t t_data = {0};
+ nv_watch_remind_item_t t_data = {0};
char * group_str = NULL;
char * group_last = NULL;
char * temp_ptr = NULL;
//PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: temp_ptr1=%s,next_buff=%s\n", __FUNCTION__, __LINE__, group_str, next_buff);
while(NULL != group_str)
{
- t_data.remind_info[i].valid = 1;
-
temp_ptr = km_strtok_r(group_str, ":", &last);
t_data.remind_info[i].hour = atoi(temp_ptr);
t_data.remind_info[i].min = atoi(temp_ptr);
temp_ptr = km_strtok_r(NULL, "-", &last);
- t_data.remind_info[i].on_off = atoi(temp_ptr);
+ t_data.remind_info[i].is_valid = atoi(temp_ptr);
temp_ptr = km_strtok_r(NULL, "-", &last);
//PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: temp_ptr=%s,last=%s\n", __FUNCTION__, __LINE__, temp_ptr, last);
}
i++;
- if(NV_REMIND_WAKE_UP_MAX_NUM <= i)
+ if(NV_REMIND_ITEM_MAX_NUM <= i)
{
break;
}
}
#endif
+#ifdef __MMI_REMIND_SLEEP_SUPPORT__
+// [SZKW*876226002021592*001B*REMIND_CH_SLEEP,11:00-1-2,,]
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_SLEEP(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_REMIND_SLEEP;
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ return false;
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ nv_watch_remind_item_t t_data = {0};
+ char * group_str = NULL;
+ char * group_last = NULL;
+ char * temp_ptr = NULL;
+ char * last = NULL;
+ uint8_t i = 0;
+
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: next_buff=%s\n", __FUNCTION__, __LINE__, next_buff);
+ group_str = km_strtok_r(next_buff, ",", &group_last);
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: temp_ptr1=%s,next_buff=%s\n", __FUNCTION__, __LINE__, group_str, next_buff);
+ while(NULL != group_str)
+ {
+ temp_ptr = km_strtok_r(group_str, ":", &last);
+ t_data.remind_info[i].hour = atoi(temp_ptr);
+
+ temp_ptr = km_strtok_r(NULL, "-", &last);
+ t_data.remind_info[i].min = atoi(temp_ptr);
+
+ temp_ptr = km_strtok_r(NULL, "-", &last);
+ t_data.remind_info[i].is_valid = atoi(temp_ptr);
+
+ temp_ptr = km_strtok_r(NULL, "-", &last);
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: temp_ptr=%s,last=%s\n", __FUNCTION__, __LINE__, temp_ptr, last);
+ if(1 == atoi(temp_ptr))
+ {
+ t_data.remind_info[i].repeat_bitmap = 0;
+ }
+ else if(2 == atoi(temp_ptr))
+ {
+ t_data.remind_info[i].repeat_bitmap = 0xff;
+ }
+ else
+ {
+ //server_set_alarm[i].repeat_bitmap = 0xff;
+ t_data.remind_info[i].repeat_bitmap = 0x80;
+ if(NULL != last)
+ {
+ uint8_t j = 0;
+ for(j = 0; j < 7; j++)
+ {
+ //server_set_alarm[i].repeat_bitmap &= ((('0' == *(last + j)) ? 0 : 1) << j);
+ t_data.remind_info[i].repeat_bitmap |= ((('0' == *(last + j)) ? 0 : 1) << j);
+ }
+ }
+ }
+
+ i++;
+ if(NV_REMIND_ITEM_MAX_NUM <= i)
+ {
+ break;
+ }
+
+ group_str = km_strtok_r(NULL, ",", &group_last);
+ }
+
+ mmi_remind_sleep_data_set(&t_data);
+
+ return result;
+}
+#endif
+
+// [*REMIND_CH_REST,01:00-00:03,22:00-23:00]
+// [*REMIND_CH_REST,]
+#ifdef __MMI_REMIND_REST_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_REST(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_REMIND_REST;
+
+ nv_watch_remind_rest_t t_data = {0};
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ }
+ else
+ {
+ char * group_str = NULL;
+ char * group_last = NULL;
+ char * temp_ptr = NULL;
+ char * last = NULL;
+ uint8_t i = 0;
+
+ t_data.is_valid = 1;
+
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: next_buff=%s\n", __FUNCTION__, __LINE__, next_buff);
+ group_str = km_strtok_r(next_buff, ",", &group_last);
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: temp_ptr1=%s,next_buff=%s\n", __FUNCTION__, __LINE__, group_str, next_buff);
+ while(NULL != group_str)
+ {
+ temp_ptr = km_strtok_r(group_str, ":", &last);
+ t_data.remind_info[i].hour_begin = atoi(temp_ptr);
+
+ temp_ptr = km_strtok_r(NULL, "-", &last);
+ t_data.remind_info[i].min_begin = atoi(temp_ptr);
+
+ temp_ptr = km_strtok_r(NULL, ":", &last);
+ t_data.remind_info[i].hour_end = atoi(temp_ptr);
+
+ temp_ptr = km_strtok_r(NULL, "-", &last);
+ t_data.remind_info[i].min_end = atoi(temp_ptr);
+
+ i++;
+ if(NV_REMIND_REST_MAX_NUM <= i)
+ {
+ break;
+ }
+
+ group_str = km_strtok_r(NULL, ",", &group_last);
+ }
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ mmi_remind_rest_data_set(&t_data);
+
+ return result;
+}
+#endif
+
+// [*REMIND_CH_HOME,01:00] [*REMIND_CH_HOME,]
+#ifdef __MMI_REMIND_HOME_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_HOME(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_REMIND_HOME;
+
+ nv_watch_remind_home_t t_data = {0};
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ }
+ else
+ {
+ char * temp_ptr = NULL;
+
+ t_data.is_valid = 1;
+
+ temp_ptr = km_strtok_r(NULL, ":", &next_buff);
+ t_data.hour = atoi(temp_ptr);
+
+ temp_ptr = next_buff;
+ t_data.min = atoi(temp_ptr);
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ mmi_remind_home_data_set(&t_data);
+
+ return result;
+}
+#endif
+
+// [*REMIND_CH_MEDICINE,02:00,01:00,10:00]
+// [*REMIND_CH_MEDICINE,01:00,00:00]
+// [*REMIND_CH_MEDICINE,]
+#ifdef __MMI_REMIND_MEDICINE_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_MEDICINE(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_REMIND_MEDICINE;
+
+ nv_watch_remind_medicine_t t_data = {0};
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ }
+ else
+ {
+ char * group_str = NULL;
+ char * group_last = NULL;
+ char * temp_ptr = NULL;
+ char * last = NULL;
+ uint8_t i = 0;
+
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: next_buff=%s\n", __FUNCTION__, __LINE__, next_buff);
+ group_str = km_strtok_r(next_buff, ",", &group_last);
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: temp_ptr1=%s,next_buff=%s\n", __FUNCTION__, __LINE__, group_str, next_buff);
+ while(NULL != group_str)
+ {
+ t_data.remind_info[i].is_valid = 1;
+
+ temp_ptr = km_strtok_r(group_str, ":", &last);
+ t_data.remind_info[i].hour = atoi(temp_ptr);
+
+ temp_ptr = km_strtok_r(NULL, ":", &last);
+ t_data.remind_info[i].min = atoi(temp_ptr);
+
+ i++;
+ if(NV_REMIND_MEDICINE_MAX_NUM <= i)
+ {
+ break;
+ }
+
+ group_str = km_strtok_r(NULL, ",", &group_last);
+ }
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ mmi_remind_medicine_data_set(&t_data);
+
+ return result;
+}
+#endif
+
+// [*REMIND_CH_MEDICINE2,10:00-1,14:00-0,18:00-0,1111111]
+// [*REMIND_CH_MEDICINE2,09:00-1,14:00-0,18:00-1,1111111]
+#ifdef __MMI_REMIND_CUSTOM_MEDICINE_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_CUSTOM_MEDICINE(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_REMIND_CUSTOM_MEDICINE;
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ return false;
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ nv_watch_remind_custom_medicine_t t_data = {0};
+ char * group_str = NULL;
+ char * group_last = NULL;
+ char * temp_ptr = NULL;
+ char * last = NULL;
+ uint8_t i = 0;
+
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: next_buff=%s\n", __FUNCTION__, __LINE__, next_buff);
+ group_str = km_strtok_r(next_buff, ",", &group_last);
+ //PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: temp_ptr1=%s,next_buff=%s\n", __FUNCTION__, __LINE__, group_str, next_buff);
+ while(NULL != group_str)
+ {
+ temp_ptr = km_strtok_r(group_str, ":", &last);
+ t_data.remind_info[i].hour = atoi(temp_ptr);
+
+ temp_ptr = km_strtok_r(NULL, "-", &last);
+ t_data.remind_info[i].min = atoi(temp_ptr);
+
+ temp_ptr = last;
+ t_data.remind_info[i].is_valid = atoi(temp_ptr);
+
+ i++;
+ if(NV_REMIND_CUSTOM_MEDICINE_MAX_NUM <= i)
+ {
+ break;
+ }
+
+ group_str = km_strtok_r(NULL, ",", &group_last);
+ }
+
+ //server_set_alarm[i].repeat_bitmap = 0xff;
+ t_data.repeat_bitmap = 0x80;
+ if(NULL != group_last)
+ {
+ uint8_t j = 0;
+ for(j = 0; j < 7; j++)
+ {
+ //server_set_alarm[i].repeat_bitmap &= ((('0' == *(last + j)) ? 0 : 1) << j);
+ t_data.repeat_bitmap |= ((('0' == *(last + j)) ? 0 : 1) << j);
+ }
+ }
+
+ mmi_remind_custom_medicine_data_set(&t_data);
+
+ return result;
+}
+#endif
+
+// [*REMIND_CH_DRINK,4-1]
+#ifdef __MMI_REMIND_DRINK_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_DRINK(unsigned char * next_buff, unsigned int next_buff_len)
+{
+ bool result = false;
+ MMI_PROTOCOL_FZD_ACTION_ENUM action = MMI_FZD_SERVER_SET_REMIND_DRINK;
+
+ if(NULL == next_buff || 0 == next_buff_len)
+ {
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: \n", __FUNCTION__, __LINE__);
+ return false;
+ }
+
+ result = true;
+ mmi_protocol_fzd_send_without_data(action);
+
+ nv_watch_remind_drink_t t_data = {0};
+ char * temp_ptr = NULL;
+
+ temp_ptr = km_strtok_r(NULL, "-", &next_buff);
+ t_data.hour_value = atoi(temp_ptr);
+
+ temp_ptr = next_buff;
+ t_data.is_valid = atoi(temp_ptr);
+
+ mmi_remind_drink_data_set(&t_data);
+
+ return result;
+}
+#endif
+
+
#ifdef __MMI_CUSTOM_HENG_AI__
bool mmi_protocol_fzd_parse_SERVER_SET_HENG_AI_WAKE_NOW(unsigned char * next_buff, unsigned int next_buff_len)
{
#endif
MMI_FZD_SERVER_SET_DIAL_PAD_SWITCH,
MMI_FZD_SERVER_SET_WHITE_LIST_SWITCH,
+ MMI_FZD_SERVER_SET_LOW_BATTERY_SWITCH,
+ MMI_FZD_SERVER_SET_FALL_DOWN_SWITCH,
+ MMI_FZD_SERVER_SET_TAKE_OFF_SWITCH,
#ifdef __MMI_REMIND_WAKE_UP_SUPPORT__
MMI_FZD_SERVER_SET_REMIND_WAKE_UP,
#endif
-
+#ifdef __MMI_REMIND_SLEEP_SUPPORT__
+ MMI_FZD_SERVER_SET_REMIND_SLEEP,
+#endif
+#ifdef __MMI_REMIND_REST_SUPPORT__
+ MMI_FZD_SERVER_SET_REMIND_REST,
+#endif
+#ifdef __MMI_REMIND_HOME_SUPPORT__
+ MMI_FZD_SERVER_SET_REMIND_HOME,
+#endif
+#ifdef __MMI_REMIND_MEDICINE_SUPPORT__
+ MMI_FZD_SERVER_SET_REMIND_MEDICINE,
+#endif
+#ifdef __MMI_REMIND_CUSTOM_MEDICINE_SUPPORT__
+ MMI_FZD_SERVER_SET_REMIND_CUSTOM_MEDICINE,
+#endif
+#ifdef __MMI_REMIND_DRINK_SUPPORT__
+ MMI_FZD_SERVER_SET_REMIND_DRINK,
+#endif
#ifdef __MMI_CUSTOM_HENG_AI__
MMI_FZD_SERVER_SET_HENG_AI_WAKE_NOW,
MMI_FZD_SERVER_SET_HENG_AI_WAKE_RING_TYPE,
#endif
bool mmi_protocol_fzd_parse_SERVER_SET_DIAL_PAD_SWITCH(unsigned char * next_buff, unsigned int next_buff_len);
bool mmi_protocol_fzd_parse_SERVER_SET_WHITE_LIST_SWITCH(unsigned char * next_buff, unsigned int next_buff_len);
+bool mmi_protocol_fzd_parse_SERVER_SET_LOW_BATTERY_SWITCH(unsigned char * next_buff, unsigned int next_buff_len);
+bool mmi_protocol_fzd_parse_SERVER_SET_FALL_DOWN_SWITCH(unsigned char * next_buff, unsigned int next_buff_len);
+bool mmi_protocol_fzd_parse_SERVER_SET_TAKE_OFF_SWITCH(unsigned char * next_buff, unsigned int next_buff_len);
+
#ifdef __MMI_REMIND_WAKE_UP_SUPPORT__
bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_WAKE_UP(unsigned char * next_buff, unsigned int next_buff_len);
#endif
+#ifdef __MMI_REMIND_SLEEP_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_SLEEP(unsigned char * next_buff, unsigned int next_buff_len);
+#endif
+#ifdef __MMI_REMIND_REST_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_REST(unsigned char * next_buff, unsigned int next_buff_len);
+#endif
+#ifdef __MMI_REMIND_HOME_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_HOME(unsigned char * next_buff, unsigned int next_buff_len);
+#endif
+#ifdef __MMI_REMIND_MEDICINE_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_MEDICINE(unsigned char * next_buff, unsigned int next_buff_len);
+#endif
+#ifdef __MMI_REMIND_CUSTOM_MEDICINE_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_CUSTOM_MEDICINE(unsigned char * next_buff, unsigned int next_buff_len);
+#endif
+#ifdef __MMI_REMIND_DRINK_SUPPORT__
+bool mmi_protocol_fzd_parse_SERVER_SET_REMIND_DRINK(unsigned char * next_buff, unsigned int next_buff_len);
+#endif
#ifdef __MMI_CUSTOM_HENG_AI__
bool mmi_protocol_fzd_parse_SERVER_SET_HENG_AI_WAKE_NOW(unsigned char * next_buff, unsigned int next_buff_len);
bool mmi_protocol_fzd_parse_SERVER_SET_HENG_AI_WAKE_RING_TYPE(unsigned char * next_buff, unsigned int next_buff_len);
#endif
{MMI_FZD_SERVER_SET_DIAL_PAD_SWITCH, "KEYBRD"},
{MMI_FZD_SERVER_SET_WHITE_LIST_SWITCH, "WLKEY"},
+ {MMI_FZD_SERVER_SET_LOW_BATTERY_SWITCH, "LOWBAT"},
+ {MMI_FZD_SERVER_SET_FALL_DOWN_SWITCH, "FALLDOWN"},
+ {MMI_FZD_SERVER_SET_TAKE_OFF_SWITCH, "REMOVE"},
#ifdef __MMI_REMIND_WAKE_UP_SUPPORT__
{MMI_FZD_SERVER_SET_REMIND_WAKE_UP, "REMIND_CH_WAKEUP"},
#endif
+ #ifdef __MMI_REMIND_SLEEP_SUPPORT__
+ {MMI_FZD_SERVER_SET_REMIND_SLEEP, "REMIND_CH_SLEEP"},
+ #endif
+ #ifdef __MMI_REMIND_REST_SUPPORT__
+ {MMI_FZD_SERVER_SET_REMIND_REST, "REMIND_CH_REST"},
+ #endif
+ #ifdef __MMI_REMIND_HOME_SUPPORT__
+ {MMI_FZD_SERVER_SET_REMIND_HOME, "REMIND_CH_HOME"},
+ #endif
+ #ifdef __MMI_REMIND_MEDICINE_SUPPORT__
+ {MMI_FZD_SERVER_SET_REMIND_MEDICINE, "REMIND_CH_MEDICINE"},
+ #endif
+ #ifdef __MMI_REMIND_CUSTOM_MEDICINE_SUPPORT__
+ {MMI_FZD_SERVER_SET_REMIND_CUSTOM_MEDICINE, "REMIND_CH_MEDICINE2"},
+ #endif
+ #ifdef __MMI_REMIND_DRINK_SUPPORT__
+ {MMI_FZD_SERVER_SET_REMIND_DRINK, "REMIND_CH_DRINK"},
+ #endif
#ifdef __MMI_CUSTOM_HENG_AI__
{MMI_FZD_SERVER_SET_HENG_AI_WAKE_NOW, "HENG_AI_WAKE_NOW"},
{MMI_FZD_SERVER_SET_HENG_AI_WAKE_RING_TYPE, "HENG_AI_WAKE_RING_TYPE"},
case MMI_FZD_SERVER_SET_WHITE_LIST_SWITCH:
mmi_protocol_fzd_parse_SERVER_SET_WHITE_LIST_SWITCH(next_buff, next_buff_len);
break;
+
+ case MMI_FZD_SERVER_SET_LOW_BATTERY_SWITCH:
+ mmi_protocol_fzd_parse_SERVER_SET_LOW_BATTERY_SWITCH(next_buff, next_buff_len);
+ break;
+
+ case MMI_FZD_SERVER_SET_FALL_DOWN_SWITCH:
+ mmi_protocol_fzd_parse_SERVER_SET_FALL_DOWN_SWITCH(next_buff, next_buff_len);
+ break;
+
+ case MMI_FZD_SERVER_SET_TAKE_OFF_SWITCH:
+ mmi_protocol_fzd_parse_SERVER_SET_TAKE_OFF_SWITCH(next_buff, next_buff_len);
+ break;
#ifdef __MMI_REMIND_WAKE_UP_SUPPORT__
case MMI_FZD_SERVER_SET_REMIND_WAKE_UP:
mmi_protocol_fzd_parse_SERVER_SET_REMIND_WAKE_UP(next_buff, next_buff_len);
break;
#endif
+ #ifdef __MMI_REMIND_SLEEP_SUPPORT__
+ case MMI_FZD_SERVER_SET_REMIND_SLEEP:
+ mmi_protocol_fzd_parse_SERVER_SET_REMIND_SLEEP(next_buff, next_buff_len);
+ break;
+ #endif
+ #ifdef __MMI_REMIND_REST_SUPPORT__
+ case MMI_FZD_SERVER_SET_REMIND_REST:
+ mmi_protocol_fzd_parse_SERVER_SET_REMIND_REST(next_buff, next_buff_len);
+ break;
+ #endif
+ #ifdef __MMI_REMIND_HOME_SUPPORT__
+ case MMI_FZD_SERVER_SET_REMIND_HOME:
+ mmi_protocol_fzd_parse_SERVER_SET_REMIND_HOME(next_buff, next_buff_len);
+ break;
+ #endif
+ #ifdef __MMI_REMIND_MEDICINE_SUPPORT__
+ case MMI_FZD_SERVER_SET_REMIND_MEDICINE:
+ mmi_protocol_fzd_parse_SERVER_SET_REMIND_MEDICINE(next_buff, next_buff_len);
+ break;
+ #endif
+ #ifdef __MMI_REMIND_CUSTOM_MEDICINE_SUPPORT__
+ case MMI_FZD_SERVER_SET_REMIND_CUSTOM_MEDICINE:
+ mmi_protocol_fzd_parse_SERVER_SET_REMIND_CUSTOM_MEDICINE(next_buff, next_buff_len);
+ break;
+ #endif
+ #ifdef __MMI_REMIND_DRINK_SUPPORT__
+ case MMI_FZD_SERVER_SET_REMIND_DRINK:
+ mmi_protocol_fzd_parse_SERVER_SET_REMIND_DRINK(next_buff, next_buff_len);
+ break;
+ #endif
#ifdef __MMI_CUSTOM_HENG_AI__
case MMI_FZD_SERVER_SET_HENG_AI_WAKE_NOW: