[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/include/kwatch_msg.h b/ap/app/include/kwatch_msg.h
new file mode 100644
index 0000000..d10eeb4
--- /dev/null
+++ b/ap/app/include/kwatch_msg.h
@@ -0,0 +1,738 @@
+/**
+ * @file kwatch_msg.h
+ * @brief ¶¨Òå¶ùͯÊÖ±íºǫ́·þÎñÓëMMI½»»¥µÄÏûÏ¢½Ó¿Ú
+ *
+ * Copyright (C) 2017 Sanechips Technology Co., Ltd.
+ * @author
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+#ifndef _KWATCH_MSG_H
+#define _KWATCH_MSG_H
+/*******************************************************************************
+*                           Include header files                              *
+******************************************************************************/
+/* Include "app/include/message.h". */
+#include "message.h"
+
+/*******************************************************************************
+ *                             Macro definitions                               *
+ ******************************************************************************/
+#define KWATCH_MSG_BASE MSG_CMD_KWATCH_BASE //0x8001
+/*******************************************************************************
+ *                             Type definitions                                *
+ ******************************************************************************/
+enum {
+    /*ƽ̨¿Í»§¶ËÏûÏ¢*/
+    //KWATCH_MSG_PLATFORM_CLIENT = KWATCH_MSG_BASE,
+
+    //ÉèÖÃÀà
+    /*Êý¾ÝÉÏ´«¼ä¸ôÉèÖÃ,µ¥Î»·ÖÖÓ*/
+    //KWATCH_MSG_SET_TIMEPERIOD_REQ,
+    //KWATCH_MSG_SET_TIMEPERIOD_RSP,
+
+    /*²¦´òµç»°*/
+    //KWATCH_MSG_CALL_REQ,
+    //KWATCH_MSG_CALL_RSP,
+
+	TRACK_MSG_ID_START = KWATCH_MSG_BASE + 1,
+	TRACK_MSG_ID_SERVER_RECEIVE,
+	TRACK_MSG_ID_SERVER_SEND,
+	TRACK_MSG_ID_SLAVE_SERVER_RECEIVE,
+	TRACK_MSG_ID_SLAVE_SERVER_SEND,
+	TRACK_MSG_ID_REPORT_SERVER_RECEIVE,
+	TRACK_MSG_ID_REPORT_SERVER_SEND,
+	TRACK_MSG_ID_GPS_POWERON_REQ,
+	TRACK_MSG_ID_GPS_POWEROFF_REQ,
+	MSG_ID_GPS_NMEA_GGA,
+	MSG_ID_GPS_NMEA_GSA,
+	MSG_ID_GPS_NMEA_GSV,
+	MSG_ID_GPS_NMEA_RMC,
+	MSG_ID_GPS_NMEA_VTG,
+	MSG_ID_GPS_NMEA_ACCURACY,
+	TRACK_MSG_ID_UPLOAD,   /*¶¨Ê±Éϱ¨*/
+	TRACK_MSG_ID_LK_TIME_OUT,   /*LK³¬Ê±¼ì²â*/
+	TRACK_MSG_ID_LK_TIME_RESET_NET, /*LK³¬Ê±ÖØÖÃÍøÂç*/
+	TRACK_MSG_SERVER_CHECK,   /*Ö÷·þÎñÍøÂç¼ì²â*/
+	TRACK_MSG_WEATHER_CHECK,  /*ÌìÆø¼ì²é*/
+	TRACK_MSG_SLAVE_SERVER_CHECK,   /*ʱ¼ä·þÎñÆ÷ÍøÂç¼ì²â*/
+	TRACK_MSG_ID_CR_TIMEOUT,
+	TRACK_MSG_ID_AGPS_CHECK,
+	TRACK_MSG_ID_UPLOAD_MODE_ONE,
+	TRACK_MSG_ID_UPLOAD_MODE_TWO,
+	TRACK_MSG_ID_UPLOAD_MODE_THREE,
+	TRACK_MSG_ID_ENCRYPT_ERR,
+	TRACK_MSG_ID_LOG_SAVE,
+	TRACK_MSG_ID_STOP_REMOTE_HEARTRATE,
+	TRACK_MSG_ID_DEV_UNBIN_TIME_OUT,
+	TRACK_MSG_ID_GET_AP,
+	TRACK_MSG_ID_PP_FRIEND,
+	TRACK_MSG_ID_END = KWATCH_MSG_BASE + 100,
+	/*ÒÔÉÏÏûÏ¢IDÖ÷ÒªÊǸøwatch_svrÄÚ²¿ÏûϢʹÓÃ*/
+	/*ÒÔÏÂÏûÏ¢IDÖ÷ÒªÊǸøwatch_svrÓëÆäËü½ø³Ì¼äÏûϢʹÓÃ*/
+    /*************************Èý»ùͬ´´ÏûÏ¢½Ó¿Ú************************/
+    /*Êý¾ÝÉÏ´«¼ä¸ôÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_upload_infoºÍkwatch_common_result*/
+    //KWATCH_MSG_SET_UPLOAD_REQ,
+    //KWATCH_MSG_SET_UPLOAD_RSP,
+    /*ÖÐÐĺÅÂëÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_center_infoºÍkwatch_common_result*/
+	KWATCH_MSG_SET_CENTER_REQ,     //02
+    KWATCH_MSG_SET_CENTER_RSP,
+    /*¿ØÖÆÃÜÂëÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_pw_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_PW_REQ,
+    KWATCH_MSG_SET_PW_RSP,
+    /*¼àÌý(µ¥ÏòñöÌý)ÇëÇó£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_common_result¡£ËµÃ÷:ÖÕ¶Ë×Ô¶¯»Ø²¦ÖÐÐĺÅÂë*/
+    KWATCH_MSG_OWL_REQ,
+    KWATCH_MSG_OWL_RSP,
+    /*SOSºÅÂëÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_sos_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_SOS_REQ,
+    KWATCH_MSG_SET_SOS_RSP,
+    /*ÓïÑÔºÍÊ±ÇøÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_lz_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_LZ_REQ,    //10
+    KWATCH_MSG_SET_LZ_RSP,
+    /*SOS¶ÌÐű¨¾¯¿ª¹Ø£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_sossms_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_SOSSMS_REQ,
+    KWATCH_MSG_SET_SOSSMS_RSP,
+    /*µÍµç¶ÌÐű¨¾¯¿ª¹Ø£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_lowbat_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_LOWBAT_REQ,
+    KWATCH_MSG_SET_LOWBAT_RSP,
+    /*°æ±¾²éѯ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_verno_info*/
+    KWATCH_MSG_GET_VERNO_REQ,
+    KWATCH_MSG_GET_VERNO_RSP,
+    /*Á¢¼´¶¨Î»Ö¸ÁÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_common_result¡£ËµÃ÷:Á¢¼´»½ÐÑÖÕ¶ËGPSÄ£¿é£¬Á¬ÐøÒ»¶Îʱ¼äÒ»Ö±´¦ÓÚ¶¨Î»×´Ì¬*/
+    KWATCH_MSG_CR_REQ,
+    KWATCH_MSG_CR_RSP,
+    /*¹Ø»úÖ¸ÁÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_common_result¡£*/
+    KWATCH_MSG_POWEROFF_REQ,  //20
+    KWATCH_MSG_POWEROFF_RSP,
+    /*¼Æ²½Ê±¼ä¶ÎÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_walktime_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_WALKTIME_REQ,
+    KWATCH_MSG_SET_WALKTIME_RSP,
+    /*·­¹ö¼ì²âʱ¼ä¶ÎÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_sleeptime_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_SLEEPTIME_REQ,
+    KWATCH_MSG_SET_SLEEPTIME_RSP,
+    /*Ãâ´òÈÅʱ¼ä¶ÎÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_silencetime_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_SILENCETIME_REQ,
+    KWATCH_MSG_SET_SILENCETIME_RSP,
+    /*ÕÒÊÖ±í£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_common_result¡£*/
+    KWATCH_MSG_FIND_REQ,
+    KWATCH_MSG_FIND_RSP,
+    /*ÄÖÖÓÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_remind_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_REMIND_REQ,  //30
+    KWATCH_MSG_SET_REMIND_RSP,
+    /*µç»°±¾ÉèÖã¬ÓÃÓÚÉèÖÃǰ5¸öÁªÏµÈË£¬¼´ÁªÏµÈË1-5£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_phb_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_PHB_REQ,
+    KWATCH_MSG_SET_PHB_RSP,
+    /*µç»°±¾2ÉèÖã¬ÓÃÓÚÉèÖúó5¸öÁªÏµÈË£¬¼´ÁªÏµÈË6-10£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_phb_infoºÍkwatch_common_result*/
+    KWATCH_MSG_SET_PHB2_REQ,
+    KWATCH_MSG_SET_PHB2_RSP,
+    /*¶Ô½²¹¦ÄÜ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_tk_infoºÍkwatch_common_result¡£
+      ˵Ã÷:¸ÃÏûÏ¢ÓÃÀ´·¢ËͽÓÊÕµ½µÄƽ̨¶Ô½²Êý¾Ýµ½ÖÕ¶Ë£¬¸ÃÏûÏ¢ÊǺǫ́·þÎñ·¢Ë͸øUIµÄ*/
+    KWATCH_MSG_RECV_TK_REQ,
+    KWATCH_MSG_RECV_TK_RSP,
+    /*¶Ô½²¹¦ÄÜ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_tk_infoºÍkwatch_common_result¡£
+      ˵Ã÷:¸ÃÏûÏ¢ÓÃÀ´·¢ËÍÖն˶Խ²Êý¾Ýµ½Æ½Ì¨£¬¸ÃÏûÏ¢ÊÇUI·¢Ë͵½ºǫ́·þÎñµÄ*/
+    KWATCH_MSG_SEND_TK_REQ,
+    KWATCH_MSG_SEND_TK_RSP,
+    /* ·¢¶ÌÐÅ£¬ÓÃÓÚÊÖ±í·þÎñͨ¹ýƽ̨ʵÏÖ·¢¶ÌÐŹ¦ÄÜ. */
+    KWATCH_MSG_SEND_SMS_REQ,   //40
+    KWATCH_MSG_SEND_SMS_RSP,
+    /* ÏòÊÖ±í·þÎñת·¢Æ½Ì¨½ÓÊÕµ½µÄ¶ÌÐÅ. */
+    KWATCH_MSG_FORWARD_SMS_REQ,
+    KWATCH_MSG_FORWARD_SMS_RSP,
+    /* SOS´òµç»°. */
+    KWATCH_MSG_SOS_CALL_REQ,
+    KWATCH_MSG_SOS_CALL_RSP,
+    /* ÆÕͨ´òµç»°. */
+    KWATCH_MSG_NORMAL_CALL_REQ,
+    KWATCH_MSG_NORMAL_CALL_RSP,
+    /* »ñÈ¡ÌìÆøÐÅÏ¢. */
+    KWATCH_MSG_GET_WEATHER_INFO_REQ,
+    KWATCH_MSG_GET_WEATHER_INFO_RSP,
+    /* ½»ÅóÓÑ. */
+    KWATCH_MSG_MAKE_FRIENDS_REQ,   //50
+    KWATCH_MSG_MAKE_FRIENDS_RSP,
+    /* »ñÈ¡°®ÐÄÊýÁ¿. */
+    KWATCH_MSG_RED_HEART_REQ,
+    KWATCH_MSG_RED_HEART_RSP,
+
+	KWATCH_MSG_SET_PROFILE_REQ,
+	KWATCH_MSG_SET_PROFILE_RSP,
+
+	/* ·¢ËÍSOSʼþ֪ͨ */
+    KWATCH_MSG_EXEC_SOS_REQ,
+    KWATCH_MSG_EXEC_SOS_RSP,
+
+    /* ¼Æ²½ÐÅÏ¢»ñÈ¡ */
+    KWATCH_MSG_GET_STEP_REQ,
+    KWATCH_MSG_GET_STEP_RSP,
+
+	/* GPS */
+    KWATCH_MSG_GPS_GPD_SET_REQ, //60
+	KWATCH_MSG_GPS_PWR_SET_REQ,
+	KWATCH_MSG_GPS_COORDINATE_SET_REQ,
+	KWATCH_MSG_GPS_INQUIRE_REQ,
+	KWATCH_MSG_GPS_RSP,
+
+    /* ÊÖ±í×¥ÅIJ¢ÉÏ´«ÕÕÆ¬ */
+	/* watch_svrÏòÊÖ±íÉ豸·¢×¥ÅÄÏûÏ¢,ÎÞ²ÎÊý */
+	KWATCH_MSG_SNAP_REQ,
+	/* ÊÖ±íÉ豸»Ø¸´×¥ÅÄÐÅÏ¢,·µ»Økwatch_snap_infoÀàÐÍÊý¾Ý */
+	KWATCH_MSG_SNAP_RSP,
+
+    /* ÏàÆ¬·ÖÏí */
+	/* ÊÖ±íÉ豸Ïòwatch_svr·¢ËÍ·ÖÏíÏàÆ¬ÏûÏ¢,ÏûÏ¢Êý¾ÝÌåΪkwatch_share_photos_infoÀàÐÍ */
+	KWATCH_MSG_SHARE_PHOTOS_REQ,
+	/* watch_svr»Ø¸´ÏàÆ¬·ÖÏí½á¹û */
+	KWATCH_MSG_SHARE_PHOTOS_RSP,
+
+    /* »Ö¸´³ö³§ÉèÖÃ */
+	/* watch_svrÏòÊÖ±íÉ豸·¢Ëͻָ´³ö³§ÉèÖÃÏûÏ¢,ÎÞ²ÎÊý */
+	KWATCH_MSG_FAC_RESET_REQ,
+	/* ÊÖ±íÉ豸´ð¸´»Ö¸´³ö³§Ö´Ðнá¹û */
+	KWATCH_MSG_FAC_RESET_RSP,  //70
+
+    /* ¶¨Ê±¿ª¹Ø»ú*/
+    /* watch_svrÏòÊÖ±íÉ豸·¢ËͶ¨Ê±¿ª¹Ø»úÐÅÏ¢,kwatch_spof_info*/
+    KWATCH_MSG_SPOF_REQ,
+    /*ÊÖ±íÉ豸·¢ËͶ¨Ê±¿ª¹Ø»úÉèÖýá¹û kwatch_common_result*/
+    KWATCH_MSG_SPOF_RSP,
+
+	/*mmi·¢ËÍÍøÂçÇл»£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_pdp_status_info*/
+	KWATCH_MSG_PDP_STATUS_IND,
+
+    /* ¹¤³Ìģʽ£ºG-Sensor²âÊÔ */
+	/* ÊÖ±íÉ豸Ïòwatch_svr·¢Ë͹¤³ÌģʽG-Sensor²âÊÔÏûÏ¢ */
+	KWATCH_MSG_GSENSOR_TEST_REQ,
+	/* watch_svrÏòÊÖ±íÉ豸·µ»ØG-sensor²âÊÔ½á¹ûÐÅÏ¢,·µ»Økwatch_gsensor_test_infoÀàÐÍÊý¾Ý */
+	KWATCH_MSG_GSENSOR_TEST_RSP,
+
+    /* ¹¤³Ìģʽ£ºGPS²âÊÔ */
+	/* ÊÖ±íÉ豸Ïòwatch_svr·¢Ë͹¤³ÌģʽGPS²âÊÔÏûÏ¢ */
+	KWATCH_MSG_GPS_TEST_REQ,
+	/* watch_svrÏòÊÖ±íÉ豸·µ»ØGPS²âÊÔ½á¹ûÐÅÏ¢,·µ»Økwatch_gps_test_infoÀàÐÍÊý¾Ý */
+	KWATCH_MSG_GPS_TEST_RSP,
+
+    /* ¹¤³Ìģʽ£ºWi-Fi²âÊÔ */
+	/* ÊÖ±íÉ豸Ïòwatch_svr·¢Ë͹¤³ÌģʽWi-Fi²âÊÔÏûÏ¢ */
+	KWATCH_MSG_WIFI_TEST_REQ,
+	/* watch_svrÏòÊÖ±íÉ豸·µ»ØWi-Fi²âÊÔ½á¹ûÐÅÏ¢,·µ»Økwatch_wifi_test_infoÀàÐÍÊý¾Ý */
+	KWATCH_MSG_WIFI_TEST_RSP,
+
+	/* »ùÕ¾¶¨Î»£ºLBSÐÅÏ¢Éϱ¨ */
+	/* Ôݲ»Ê¹Óà */
+	KWATCH_MSG_LBS_REQ,
+	/* ModemÏòwatch_svrת·¢µÄLBSÐÅÏ¢ */
+	KWATCH_MSG_LBS_RSP,
+
+	/*watch_svr ·¢ËͽûֹʹÓò¦ºÅÅÌ*/
+	KWATCH_MSG_DIALER_FORBIDDEN_REQ,
+
+	/* watch_svrÏòÊÖ±íÉ豸·¢ËÍ»ñÈ¡µç³ØÏà¹ØÐÅÏ¢ÏûÏ¢,ÎÞ²ÎÊý */
+	KWATCH_MSG_BATTERY_INFO_REQ,
+
+	/* ÊÖ±íÉ豸´ð¸´µç³ØÏà¹ØÏûÏ¢,²ÎÊýÓÉkwatch_battery_info½á¹¹¶¨Òå */
+	KWATCH_MSG_BATTERY_INFO_RSP,
+
+	/* MMI·¢ËÍPP½»ÓÑÇëÇó*/
+	KWATCH_PP_FRIEND_REQ = KWATCH_MSG_LBS_RSP+100,
+	/* watch_svr ֪ͨMMI½»Óѽá¹û */
+	KWATCH_PP_FRIEND_RSP,
+
+	/*ºÃÓѹ¦ÄÜ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_friend_tk_infoºÍkwatch_common_result¡£
+      ˵Ã÷:¸ÃÏûÏ¢ÓÃÀ´·¢ËͽÓÊÕµ½µÄƽ̨¶Ô½²Êý¾Ýµ½ÖÕ¶Ë£¬¸ÃÏûÏ¢ÊǺǫ́·þÎñ·¢Ë͸øUIµÄ*/
+    KWATCH_MSG_RECV_FRIEND_TK_REQ,
+    KWATCH_MSG_RECV_FRIEND_TK_RSP,
+
+	/*ºÃÓѹ¦ÄÜ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_friend_tk_infoºÍkwatch_common_result¡£
+      ˵Ã÷:¸ÃÏûÏ¢ÓÃÀ´·¢ËÍÖն˶Խ²Êý¾Ýµ½Æ½Ì¨£¬¸ÃÏûÏ¢ÊÇUI·¢Ë͵½ºǫ́·þÎñµÄ*/
+    KWATCH_MSG_SEND_FRIEND_TK_REQ,
+    KWATCH_MSG_SEND_FRIEND_TK_RSP,
+
+	/*mmi·¢ËͺÃÓÑɾ³ýÏûÏ¢*/
+	KWATCH_MSG_PP_FRIEND_DEL_REQ,
+	/*watch_svr ·¢ËͺÃÓÑɾ³ý½á¹û*/
+	KWATCH_MSG_PP_FRIEND_DEL_RSP,
+
+	/*΢ÁĽÓÊÕÎÄ×ÖÐÅÏ¢*/
+    KWATCH_TEXT_MSG_RECV_REQ,
+    KWATCH_TEXT_MSG_RECV_RSP,
+
+	/*ÐÄÂÊѪѹ²âÁ¿*/
+	KWATCH_HEARTRATE_MEASURE_REQ,  /*MMI ·¢ËͲâÁ¿ÇëÇó ÏûÏ¢½á¹¹Ìå kwatch_heartrate_measure_req*/
+    KWATCH_HEARTRATE_MEASURE_RSP,  /*watch_svr ²âÁ¿½á¹û·¢Ë͸øMMI ÏûÏ¢½á¹¹Ìå kwatch_heartrate_info*/
+
+	KWATCH_POWER_SAVE_REQ,  /*watch_svr ·¢ËÍÊ¡µçģʽ ÏûÏ¢½á¹¹Ìå kwatch_power_save_req*/
+
+	KWATCH_WIFI_AP_RSP,  /*½ÓÊÜWIFI ɨÃè½á¹û*/
+	KWATCH_MSG_WIFI_OPEN_REQ,/*WIFI ´ò¿ªÇëÇó*/
+	KWATCH_MSG_WIFI_OPEN_RSP,
+	/*ÈÚÔÆÊÓÆµÍ¨»°*/
+	KWATCH_PRYVCALL_REQ,  /*APP¶ËÏòÊÖ±í·¢ÆðÊÓÆµÍ¨»°ÇëÇó watch_svr to mmi*/
+	KWATCH_PRYVCALL_RSP,  /*ÊÓÆµÍ¨»°ÇëÇó½á¹û״̬ mmi to watch_svr*/
+	
+	KWATCH_RYVCALLCANCEL_REQ,  /*APP¶ËÈ¡ÏûÏòÊÖ±í·¢ÆðÊÓÆµÍ¨»°ÇëÇó watch_svr to mmi*/
+	
+	KWATCH_RYVCALLREFUSE_REQ,  /*APP¶Ë¾Ü¾øÊÖ±íÊÓÆµÍ¨»°ÇëÇó watch_svr to mmi*/
+	KWATCH_RYVCALLREFUSE_RSP,  /*ÊÖ±í¾Ü½Óapp¶ËÊÓÆµÍ¨»°ÇëÇó mmi to watch_svr*/
+
+	KWATCH_WRYVCALL_RSP,  /*ÊÖ±í¶ËÏòapp¶Ë·¢ÆðÊÓÆµÍ¨»°ÇëÇómmi to watch_svr*/
+	KWATCH_WRYVCALL_REQ,  /*app»Ø¸´ÊÖ±í¶ËÊÓÆµÍ¨»°ÇëÇó״̬watch_svr to mmi*/
+
+	KWATCH_UPRYROOMCOUNT_RSP,  /*ÊÖ±í¶Ë½ø³ö·¿¼ä¶¼Ïòapp¶ËÉϱ¨·¿¼äÊ£ÓàÈËÊý mmi to watch_svr*/
+	
+	KWATCH_RYCONFIG_REQ,  /*·þÎñÆ÷¶ËÉèÖÃÊÖ±íÈÚÔÆsdk log¿ª¹Ø watch_svr to mmi*/
+	
+	KWATCH_CLOCK_BJ_CHANGE,
+};
+/*ÏìÓ¦½á¹û´íÎóÂë*/
+typedef enum {
+    KWATCH_RET_FAIL = -1,/*ʧ°Ü*/
+    KWATCH_RET_OK = 0,/*³É¹¦*/
+    /*¸ù¾ÝÐèÒªÌí¼ÓÆäËü´íÎóÂë*/
+} kwatch_result;
+
+/*ͨÓÃÏìÓ¦½á¹ûÊý¾Ý½á¹¹*/
+typedef struct {
+    /*²Î¼ûkwatch_result*/
+    kwatch_result result;
+} kwatch_common_result;
+
+#if 0
+/*Êý¾ÝÉÏ´«¼ä¸ôÉèÖÃÐÅÏ¢,ÓÃÓÚÉèÖÃÖն˶¨Ê±Éϱ¨µÄʱ¼ä¼ä¸ô*/
+typedef struct {
+    unsigned int period;/*µ¥Î»:·ÖÖÓ*/
+} kwatch_upload_info;
+#endif
+/*ÖÐÐĺÅÂëÉèÖÃÐÅÏ¢,ͨ¹ý¸ÃÊÖ»úºÅ¿ÉÒÔ·¢ËͶÌÐÅÖ¸Áî¡¢¼àÌýµÈ*/
+typedef struct {
+    char number[48];/*µç»°ºÅÂë*/
+} kwatch_center_info;
+
+/*¿ØÖÆÃÜÂëÉèÖÃÐÅÏ¢,·ÇÖÐÐĺÅÂë·¢ËͶÌÐÅÖ¸ÁîÐèÒªÌí¼ÓÃÜÂë*/
+typedef struct {
+    char password[32];/*ÃÜÂë*/
+} kwatch_pw_info;
+
+/*SOSºÅÂëÉèÖÃÐÅÏ¢£¬×î¶àÉèÖÃ3¸öSOSºÅÂë*/
+typedef struct {
+    char number1[48];/*SOSµç»°ºÅÂë1*/
+    char number2[48];/*SOSµç»°ºÅÂë2*/
+    char number3[48];/*SOSµç»°ºÅÂë3*/
+} kwatch_sos_info;
+
+/*ÓïÑÔºÍÊ±ÇøÉèÖÃÐÅÏ¢,ÓÃÓÚÉèÖÃÖÕ¶ËÓïÑÔºÍÊ±Çø*/
+typedef struct {
+    unsigned int languge;/*ÓïÑÔ£¬0-ÖÐÎÄ£»1-Ó¢ÎÄ*/
+    unsigned int timezone;/*Ê±Çø*/
+} kwatch_lz_info;
+
+/*SOS¶ÌÐű¨¾¯¿ª¹ØÉèÖÃÐÅÏ¢,ÉèÖòúÉúSOS±¨¾¯ºóÊÇ·ñÏòSOSºÅÂë·¢ËͶÌÐÅ*/
+typedef struct {
+    unsigned int onoff;/*¿ª¹Ø£¬0-¹Ø±Õ£»1-´ò¿ª*/
+} kwatch_sossms_info;
+/*µÍµç±¨¾¯¿ª¹ØÉèÖÃÐÅÏ¢,ÉèÖòúÉúµÍµç±¨¾¯ºóÊÇ·ñÏòÖÐÐĺÅÂë·¢ËͶÌÐÅ*/
+typedef struct {
+    unsigned int onoff;/*¿ª¹Ø£¬0-¹Ø±Õ£»1-´ò¿ª*/
+} kwatch_lowbat_info;
+
+/*Öն˰汾ÐÅÏ¢,ÓÃÓÚÉÏ´«°æ±¾ÐÅÏ¢*/
+typedef struct {
+    char version[128];/*°æ±¾ÐÅÏ¢*/
+} kwatch_verno_info;
+
+typedef struct {
+    unsigned char hour; /* 0~23 */
+    unsigned char min;  /* 0~59 */
+    unsigned char sec;  /* 0~59 */
+} kwatch_time;
+/*¼Æ²½Ê±¼ä¶ÎÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖüƲ½´ò¿ªµÄʱ¼ä¶Î·¶Î§,×î¶àÉèÖÃ3¸ö*/
+typedef struct {
+    kwatch_time time1[2];/*ʱ¼ä¶Î1£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/
+    kwatch_time time2[2];/*ʱ¼ä¶Î2£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/
+    kwatch_time time3[2];/*ʱ¼ä¶Î3£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/
+} kwatch_walktime_info;
+
+/*·­¹ö¼ì²âʱ¼ä¶ÎÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖ÷­¹ö¼ì²âµÄʱ¼ä¶Î·¶Î§,×î¶àÉèÖÃ1¸ö*/
+typedef struct {
+    kwatch_time time[2];/*ʱ¼ä¶Î£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/
+} kwatch_sleeptime_info;
+
+/*Ãâ´òÈÅʱ¼ä¶ÎÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖÃÃâ´òÈÅʱ¼ä¶Î·¶Î§,×î¶àÉèÖÃ4¸ö*/
+typedef struct {
+    kwatch_time time1[2];/*ʱ¼ä¶Î1£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/
+    kwatch_time time2[2];/*ʱ¼ä¶Î2£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/
+    kwatch_time time3[2];/*ʱ¼ä¶Î3£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/
+    kwatch_time time4[2];/*ʱ¼ä¶Î4£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/
+} kwatch_silencetime_info;
+
+/*ÄÖÖÓÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖÃÖÕ¶ËÄÖÖÓ,×î¶àÉèÖÃ3¸ö*/
+typedef struct {
+    struct {
+        kwatch_time time;/*ʱ¼ä*/
+        unsigned int onoff;/*¿ª¹Ø,0-¹Ø±Õ£»1-´ò¿ª*/
+        unsigned int freq;/*ƵÂÊ*/
+		unsigned int days; /*×Ô¶¨Òå*/
+    } alarm[3];
+} kwatch_remind_info;
+
+/*×Ô¶¯¿ª¹Ø»úÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖÃÖÕ¶ËÄÖÖÓ,×î¶àÉèÖÃ3¸ö*/
+typedef struct {
+		kwatch_time time;/*ʱ¼ä*/
+		unsigned int onoff;/*¿ª¹Ø,0-¹Ø±Õ£»1-´ò¿ª*/
+		unsigned int type;
+} kwatch_auto_poweronff_info;
+
+/*¶¨Ê±¿ª¹Ø»úÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖö¨Ê±¿ª¹Ø»ú*/
+typedef struct
+{
+    kwatch_time time;	/*ʱ¼ä*/
+    unsigned int onoff;/*¿ª¹Ø,0-¹Ø±Õ£»1-´ò¿ª*/
+    unsigned int freq;/*ƵÂÊ*/
+    unsigned int days; /*×Ô¶¨Òå*/
+    unsigned int spof; /*0Ϊ¿ª»ú 1Ϊ¹Ø»ú*/
+} kwatch_spof_info;
+
+
+
+
+
+/*µç»°±¾ÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖÃÖն˵绰±¾,ÿ´Î×î¶àÉèÖÃ5¸ö*/
+typedef struct {
+    int index;
+    struct {
+        char number[48];/*µç»°ºÅÂë*/
+        char name[128];/*ÐÕÃû*/
+    } contact[5];
+} kwatch_phb_info;
+
+/*¶Ô½²Êý¾ÝÐÅÏ¢*/
+typedef struct {
+	char contact_num[20]; /*APPÁªÏµÈ˺ÅÂë*/
+	unsigned int x_type;/*²ÎÊýxΪ0´ú±íµ¥ÁÄ  xΪ1´ú±íȺÁÄÏûÏ¢ xΪ2´ú±íºÃÓÑÏûÏ¢*/
+    unsigned int type;/*ÒôƵÊý¾Ý¸ñʽ£¬0-±íʾAMR£»ÆäËü´ýÀ©Õ¹  0xff:±íʾΪÎÄ×ÖÐÅÏ¢*/
+    unsigned int datalen;/*ÒôƵÊý¾Ý³¤¶È*/
+    char fpath[256];     /*ÒôƵÊý¾ÝÎļþ·¾¶*/
+} kwatch_tk_info;
+
+
+/* µ¥ÏòñöÌýµÄÇëÇóÊý¾Ý */
+typedef struct {
+    char number[48];/*µ¥ÏòñöÌýºÅÂë*/
+} kwatch_owl_info;
+
+/*¼Æ²½ÐÅÏ¢,ÓÃÓڻظ´Éϲã²éѯ²½Êý¶¯×÷*/
+typedef struct {
+    long steps;   /*²½ÊýÐÅÏ¢*/
+    char isopen; /*0±íʾ¹Ø±Õ 1±íʾ´ò¿ª*/
+} kwatch_pedometer_info;
+
+typedef struct {
+    int  numcnt;              /* ÊÕ·¢ºÅÂë¸öÊý£¬·¢ËÍΪ 1~5¡£½ÓÊչ̶¨Îª1 */
+    char number[5*40 + 1];    /* ÊÕ·¢ºÅÂ룬Ⱥ·¢¶à¸öºÅÂë¼äÒÔ','×÷Ϊ·Ö¸ô£¬½ÓÊչ̶¨Îª1¸öºÅÂë */
+    unsigned char data[10*153*2 + 1];/* ÊÕ·¢¶ÌÐÅÄÚÈÝ£¬·¢ËÍ×î´óÖ§³Ö176£¬½ÓÊÕ×î´óÖ§³Ö 1530£¬GBK ±àÂë */
+} kwatch_snd_sms_info;
+
+typedef struct {
+    int  call_type; /* ±êʶ²¦´òÀàÐÍ£¬0ΪÆÕͨµç»°£¬ºóÐøÐèÇó±ä¸ü¿ÉÀ©³ä */
+    char number[48];/* Õý³£²¦´òµÄºÅÂë */
+} kwatch_call_info;
+
+typedef struct {
+    int weather_type;    /* ÌìÆøÀàÐÍ£¬ÈçÓꡢѩ¡¢ÇçµÈ  */
+    int cur_temperature; /* µ±Ç°ÎÂ¶È */
+    int min_temperature; /*µÍÎÂ*/
+    int max_temperature; /*¸ßÎÂ*/
+    char zone[64];       /*µØÇø³ÇÊÐÃû³Æ*/
+	char date[20]; /*ÈÕÆÚ*/
+	char time[20]; /*ʱ¼ä*/
+} kwatch_weather_info;
+
+typedef struct {
+    int type; /* 1,½»ÅóÓÑÓ¦ÓÃÆô¶¯£¬0£¬½»ÅóÓÑÓ¦ÓýáÊø  */
+} kwatch_make_friends_info;
+
+typedef struct {
+    int counts; /* °®ÐÄÊýÁ¿  */
+} kwatch_red_heart_info;
+
+typedef struct{
+
+ int type;  /*1.ÏìÁå¼°Õ𶯠 2.½öÏìÁå 3.½öÕ𶯠4.¾²Òô*/
+
+}kwatch_profile_info;
+
+
+/* ÊÖ±íÉ豸»Ø¸´×¥ÅÄÐÅÏ¢ */
+typedef struct{
+    /* Ö´Ðнá¹û */
+    kwatch_common_result result;
+    /* ×¥ÅĵÄͼƬÃû³ÆÂ·¾¶ */
+    char file_name[256];
+}kwatch_snap_info;
+
+/* ÊÖ±íÉ豸Ïòwatch_svr·¢ËÍ·ÖÏíÏàÆ¬ÏûÏ¢ */
+typedef struct{
+    /* ·ÖÏíµÄͼƬÃû³ÆÂ·¾¶ */
+    char file_name[256];
+}kwatch_share_photos_info;
+
+/* watch_svrÏòÊÖ±íÉ豸·µ»ØG-sensor²âÊÔ½á¹ûÐÅÏ¢ */
+typedef struct{
+    /* Ö´Ðнá¹û */
+    kwatch_common_result result;
+    /* G-Sensor²âÊÔ½á¹ûÐÅÏ¢£¬ÈçÈýÖáÊý¾ÝµÈ */
+    char gsensor_info[256];
+}kwatch_gsensor_test_info;
+
+/* watch_svrÏòÊÖ±íÉ豸·µ»ØGPS²âÊÔ½á¹ûÐÅÏ¢ */
+typedef struct{
+    /* Ö´Ðнá¹û */
+    kwatch_common_result result;
+    /* GPS²âÊÔ½á¹ûÐÅÏ¢£¬ÈçÎÀÐÇÊýÁ¿¡¢ÐźÅÇ¿¶ÈµÈ */
+    char gps_info[256];
+}kwatch_gps_test_info;
+
+/* watch_svrÏòÊÖ±íÉ豸·µ»ØWi-Fi²âÊÔ½á¹ûÐÅÏ¢ */
+typedef struct{
+    /* Ö´Ðнá¹û */
+    kwatch_common_result result;
+    /* Wi-Fi²âÊÔ½á¹ûÐÅÏ¢£¬ÈçÈȵãÃû³Æ¡¢ÐźÅÇ¿¶ÈµÈ */
+    char wifi_info[256];
+}kwatch_wifi_test_info;
+
+#define WORK_TIME_TOTAL   36
+#define GPS_WORK_TIME_START 0
+#define SLEEP_TIME_START    12
+#define WALK_TIME_START    20
+#define SILENCE_TIME_START 28
+
+typedef struct
+{
+	unsigned int start_time[WORK_TIME_TOTAL];
+	unsigned int end_time[WORK_TIME_TOTAL];
+}work_time_struct;
+
+
+/*MMI·¢ËÍÍøÂçÇл»*/
+typedef struct{	
+	int result;/*1,¼¤»î;0,È¥¼¤»î*/
+}kwatch_pdp_status_info;
+
+/* ModemÏòwatch_svrת·¢µÄLBSÐÅÏ¢ */
+typedef struct{
+    /* Ö´Ðнá¹û */
+    kwatch_common_result result;
+    /* ModemÏòwatch_svrת·¢µÄLBSÐÅÏ¢ */
+    char lbs_info[1280]; /* LBS AT·µ»ØµÄÊý¾Ý±£´æÔڸóÉÔ±±äÁ¿ÖÐ */
+}kwatch_lbs_info;
+
+
+/*watch_svr·¢ËͲ¦ºÅÅÌ¿ª¹ØÇëÇó*/
+typedef struct{
+    /* Ö´Ðнá¹û */
+    unsigned int onoff;  /*0:½ûÖ¹²¦ºÅÅÌ  1:¿ªÆô²¦ºÅÅÌ*/
+}kwatch_dialer_info;
+
+typedef struct{
+    /* Ö´Ðнá¹û */
+    kwatch_common_result result;
+	/* type&0x1 == 1 :ÊǶÔKWATCH_MSG_BATTERY_INFO_REQÏûÏ¢µÄÏìÓ¦·µ»ØÊý¾Ý; voltage,percentageÓÐЧ */
+    /* type&0x2 == 1 :´ú±í³äµçÆ÷²åÈë¡¢°Î³ö¡¢µç³äÒÑÂúʱÖ÷¶¯Ïòwatch_svr·¢Ë͵Ä֪ͨ; battery_full, charger_pluginÓÐЧ */
+    int type; 
+    int voltage; /* µç³Øµçѹ£¬µ¥Î»ºÁ·ü */
+    int percentage; /* µçÁ¿°Ù·Ö±È */
+    int battery_full; /* µç³ØÒѳäÂúΪ1£¬Î´³äÂúΪ0 */
+    int charger_plugin; /* ÎÞЧֵΪ-1, ²åÈëUSBֵΪ1, ²¦³öUSBֵΪ0 */
+}kwatch_battery_info;
+
+
+
+/*MMIÏòwatch_svr·¢Ëͽ»ÓÑÇëÇó*/
+typedef struct{
+    /* Ö´Ðнá¹û */
+    unsigned int onoff;  /*0:½»ÓÑ¿ªÆô  1:½»ÓѹرÕ*/
+}kwatch_pp_req_info;
+
+/*APPÁªÏµÈËÐÅÏ¢*/
+typedef struct{
+	int new_msg;   /*0 ÒѶÁ  1:δ¶Á*/
+	char friend_did[20]; /*APPÁªÏµÈ˺ÅÂë*/
+	char friend_name[30];/*APPÁªÏµÈËÐÕÃû*/
+	char friend_num[20]; /*APPÁªÏµÈ˺ÅÂë*/
+}kwatch_pp_info;
+
+/*watch_svrÏòMMI·¢Ëͽ»Óѽá¹û*/
+typedef struct{
+    /* Ö´Ðнá¹û */
+    unsigned int rst;  /*0:½»Óѳɹ¦  1:½»ÓÑʧ°Ü  2:ºÃÓÑÖØ¸´  3:ɾ³ýºÃÓÑ*/
+	char friend_did[20]; /*ºÃÓÑÉ豸ID*/
+	char friend_num[20]; /*APPÁªÏµÈ˺ÅÂë*/
+	char friend_name[30];/*APPÁªÏµÈËÐÕÃû*/
+}kwatch_pp_rsp_info;
+
+/*ºÃÓѶԽ²Êý¾ÝÐÅÏ¢*/
+typedef struct {
+	char did[20];        /*ºÃÓÑID*/
+    unsigned int type;/*ÒôƵÊý¾Ý¸ñʽ£¬0-±íʾAMR£»ÆäËü´ýÀ©Õ¹*/
+    unsigned int datalen;/*ÒôƵÊý¾Ý³¤¶È*/
+    char fpath[256];     /*ÒôƵÊý¾ÝÎļþ·¾¶*/
+} kwatch_friend_tk_info;
+
+/*ºÃÓÑɾ³ý*/
+typedef struct{
+    /* Ö´Ðнá¹û */
+    unsigned int rst;  /*ÓÃÓÚºÃÓÑɾ³ý»Ø¸´ 0:ɾ³ý³É¹¦  1:ɾ³ýʧ°Ü  2:ͨ¹ýbblistЭÒéɾ³ýºÃÓÑ*/
+	char friend_did[20]; /*ºÃÓÑÉ豸ID*/
+	char friend_num[20]; /*APPÁªÏµÈ˺ÅÂë*/
+}kwatch_pp_del_info;
+
+/*APPÁªÏµÈËÐÅÏ¢*/
+typedef struct{
+	int new_msg;   /*0 ÒѶÁ  1:δ¶Á*/
+	char contact_num[20]; /*APPÁªÏµÈ˺ÅÂë*/
+	char contact_name[30];/*APPÁªÏµÈËÐÕÃû*/
+}appcontact_info;
+
+/*ÐÄÂÊѪѹ*/
+typedef struct{
+	int rst;   /*0 Õý³£²âÁ¿  -1:ÍÑÀë  -2:ÆäËüʧ°Ü*/
+	unsigned int heartrate;
+	unsigned int bloodpressure_low;
+	unsigned int bloodpressure_high;
+}kwatch_heartrate_info;
+
+typedef struct{
+	unsigned int enable;  /*1´ò¿ª²âÁ¿  0¹Ø±Õ²âÁ¿*/
+}kwatch_heartrate_measure_req;
+
+typedef struct{
+	unsigned int enable;  /*1½øÈëÊ¡µçģʽ  0Í˳öÊ¡µçģʽ*/
+}kwatch_power_save_req;
+
+/*watch_svrÈÚÔÆÊÓÆµÍ¨»°*/
+//app·¢ÆðÊÓÆµÁÄÌì
+//KWATCH_PRYVCALL_REQ
+typedef struct{
+    unsigned int type;  /*0:µ¥ÁÄ  1:ȺÁÄ*/
+	char num[30]; /*·¢ÆðÁÄÌìÓû§ºÅÂë*/
+	char room_num[30]; /*·¢ÆðȺÁÄ·¿¼äºÅ*/
+}kwatch_pryvcall_info;
+//app·¢ÆðÊÓÆµÁÄÌì ÊÖ±í»Ø¸´×´Ì¬
+//KWATCH_PRYVCALL_RSP
+typedef struct{
+    unsigned int status;  /*0  Ö§³Öµ±Ç°Í¨»°ÇëÇó   1  ÕýÔÚͨ»°ÖУ¬²»Ö§³Öµ±Ç°Í¨»°ÇëÇó*/
+}kwatch_pryvcall_req;
+
+//ÊÖ±í·¢ÆðÊÓÆµÁÄÌì
+//KWATCH_WRYVCALL_RSP
+typedef struct{
+    unsigned int type;  /*0:µ¥ÁÄ  1:ȺÁÄ*/
+	char num[30]; /*·¢ÆðÁÄÌìÓû§ºÅÂë*/
+	char room_num[30]; /*·¢ÆðÁÄÌì·¿¼äºÅ*/
+}kwatch_wryvcall_info;
+//ÊÖ±í·¢ÆðÊÓÆµÁÄÌì app¶Ë»Ø¸´×´Ì¬
+//KWATCH_WRYVCALL_REQ
+typedef struct{
+    unsigned int status;  /*0  ʧ°Ü  1  ³É¹¦ */
+}kwatch_wryvcall_req;
+
+//ÊÖ±í½ø³ö·¿¼äÉϱ¨app¶Ë
+//KWATCH_UPRYROOMCOUNT_RSP
+typedef struct{
+    unsigned int type;  /*0:µ¥ÁÄ  1:ȺÁÄ*/
+	unsigned int count; /*·¿¼äÈËÊý*/
+	char room_num[30]; /*·¢ÆðÁÄÌì·¿¼äºÅ*/
+}kwatch_upryroomcount_info;
+
+//ÊÖ±í/app¾Ü½Ó
+//KWATCH_RYVCALLREFUSE_RSP
+typedef struct{
+    unsigned int type;  /*0:µ¥ÁÄ  1:ȺÁÄ*/
+	char num[30]; /*·¢ÆðÁÄÌìÓû§ºÅÂë*/
+	char room_num[30]; /*·¢ÆðÁÄÌì·¿¼äºÅ*/
+}kwatch_ryvcallrefuse_info;
+
+// log ÅäÖÃ
+//KWATCH_RYCONFIG_REQ
+typedef struct{
+	char config[30]; /*Àý£ºRYCONFIG = 0-1-0 ÈÕÖ¾¿ª¹Ø£º0£º¹Ø  1¿ª  ĬÈÏ¿ª ÈÕÖ¾Îļþ´óС£ºµ¥Î»£ºM  ĬÈÏ1M  ÈÕÖ¾Éϱ¨±êʶ£º0£º²»Éϱ¨  1Éϱ¨  ĬÈϲ»Éϱ¨*/
+}kwatch_ryconfig_info;
+
+struct resp_header//±£³ÖÏàӦͷÐÅÏ¢
+{
+    int status_code;//HTTP/1.1 '200' OK
+    char content_type[128];//Content-Type: application/gzip
+    long content_length;//Content-Length: 11683079
+    char file_name[256];
+};
+
+typedef struct{
+	char name[20];
+    int month;         //01~12
+    int day;           //01~31 
+    int dayflow;
+	int dayflow_already; 
+	int dayflow_on;  
+	int monthflow; 
+	int monthflow_already;
+	int monthflow_on;
+	int monthcount;
+	int countflow;
+}nwflow_info;
+
+typedef struct{
+    int year;        
+    int month;         //01~12
+    int day;           //01~31 
+    int hour;         
+    int minute;         
+    int second;           
+}nwpwrtime_info;
+
+
+typedef enum {
+	SJTC_TIMER_ID_0=0,  /*ģʽһ¶¨Ê±Éϱ¨*/
+	SJTC_TIMER_ID_1,    /*²»´øGPS¶¨Ê±Éϱ¨*/
+	SJTC_TIMER_ID_2,    /*lk³¬Ê±¼ì²â*/
+	SJTC_TIMER_ID_3,    /*ÍøÂçÁ¬½Ó¼ì²â*/
+	SJTC_TIMER_ID_4,    /*ÌìÆø¸üÐÂ*/
+	SJTC_TIMER_ID_5,    /*LKµÚÒ»´ÎÑÓʱ·¢ËÍ*/
+	SJTC_TIMER_ID_6,    /*ʱ¼ä·þÎñÆ÷ÍøÂç¼ì²â*/
+	SJTC_TIMER_ID_7,    /*ÑÓ³Ù·¢ËÍÓïÒô*/
+	SJTC_TIMER_ID_8,    /*»°·Ñ²éѯ*/
+	SJTC_TIMER_ID_9,   /*CRÖ¸Áʱ*/
+	SJTC_TIMER_ID_10,  /*TKQ*/
+	SJTC_TIMER_ID_11,  /*Êý¾ÝÉÏ´«*/
+	SJTC_TIMER_ID_12,  /*ÅäÖÃÉϱ¨*/
+	SJTC_TIMER_ID_13,  /*µÍµç±¨¾¯*/
+	SJTC_TIMER_ID_14,  /*ÅöÅöºÃÓÑÇëÇó*/
+	SJTC_TIMER_ID_15,  /*LK¼ä¸ô´¦Àí*/ 
+	SJTC_TIMER_ID_16,  /*¼ÓÃÜ*/
+	SJTC_TIMER_ID_17,  /*ÑÓʱ¹Ø»ú*/
+	SJTC_TIMER_ID_18,  /*AGPS*/
+	SJTC_TIMER_ID_19,  /*¼ÓÃܳö´í´¦Àí*/
+	SJTC_TIMER_ID_20,  /*¶ÌÐÅת·¢*/
+	SJTC_TIMER_ID_21,  /*ĬÈ϶¨Ê±¿ª¹Ø»ú*/
+	SJTC_TIMER_ID_22,  /*»ñÈ¡ÐÄÂÊÊý¾Ý*/
+	SJTC_TIMER_ID_23,  /*»»¿¨½â°ó³¬Ê±*/
+	SJTC_TIMER_ID_24,  /*WIFIËÑË÷*/
+	SJTC_TIMER_ID_25,  /*send AGPS*/
+	SJTC_TIMER_ID_26,
+	SJTC_TIMER_ID_27,
+	SJTC_TIMER_ID_28,
+	SJTC_TIMER_ID_29,
+	SJTC_TIMER_ID_30,
+}timer_id;
+
+/*******************************************************************************
+ *                       Global function declarations                          *
+ ******************************************************************************/
+
+
+
+#endif /*_KWATCH_MSG_H*/
+