lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @file kwatch_msg.h |
| 3 | * @brief ¶¨Òå¶ùͯÊÖ±íºǫ́·þÎñÓëMMI½»»¥µÄÏûÏ¢½Ó¿Ú |
| 4 | * |
| 5 | * Copyright (C) 2017 Sanechips Technology Co., Ltd. |
| 6 | * @author |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef _KWATCH_MSG_H |
| 15 | #define _KWATCH_MSG_H |
| 16 | /******************************************************************************* |
| 17 | * Include header files * |
| 18 | ******************************************************************************/ |
| 19 | /* Include "app/include/message.h". */ |
| 20 | #include "message.h" |
| 21 | |
| 22 | /******************************************************************************* |
| 23 | * Macro definitions * |
| 24 | ******************************************************************************/ |
| 25 | #define KWATCH_MSG_BASE MSG_CMD_KWATCH_BASE //0x8001 |
| 26 | /******************************************************************************* |
| 27 | * Type definitions * |
| 28 | ******************************************************************************/ |
| 29 | enum { |
| 30 | /*ƽ̨¿Í»§¶ËÏûÏ¢*/ |
| 31 | //KWATCH_MSG_PLATFORM_CLIENT = KWATCH_MSG_BASE, |
| 32 | |
| 33 | //ÉèÖÃÀà |
| 34 | /*Êý¾ÝÉÏ´«¼ä¸ôÉèÖÃ,µ¥Î»·ÖÖÓ*/ |
| 35 | //KWATCH_MSG_SET_TIMEPERIOD_REQ, |
| 36 | //KWATCH_MSG_SET_TIMEPERIOD_RSP, |
| 37 | |
| 38 | /*²¦´òµç»°*/ |
| 39 | //KWATCH_MSG_CALL_REQ, |
| 40 | //KWATCH_MSG_CALL_RSP, |
| 41 | |
| 42 | TRACK_MSG_ID_START = KWATCH_MSG_BASE + 1, |
| 43 | TRACK_MSG_ID_SERVER_RECEIVE, |
| 44 | TRACK_MSG_ID_SERVER_SEND, |
| 45 | TRACK_MSG_ID_SLAVE_SERVER_RECEIVE, |
| 46 | TRACK_MSG_ID_SLAVE_SERVER_SEND, |
| 47 | TRACK_MSG_ID_REPORT_SERVER_RECEIVE, |
| 48 | TRACK_MSG_ID_REPORT_SERVER_SEND, |
| 49 | TRACK_MSG_ID_GPS_POWERON_REQ, |
| 50 | TRACK_MSG_ID_GPS_POWEROFF_REQ, |
| 51 | MSG_ID_GPS_NMEA_GGA, |
| 52 | MSG_ID_GPS_NMEA_GSA, |
| 53 | MSG_ID_GPS_NMEA_GSV, |
| 54 | MSG_ID_GPS_NMEA_RMC, |
| 55 | MSG_ID_GPS_NMEA_VTG, |
| 56 | MSG_ID_GPS_NMEA_ACCURACY, |
| 57 | TRACK_MSG_ID_UPLOAD, /*¶¨Ê±Éϱ¨*/ |
| 58 | TRACK_MSG_ID_LK_TIME_OUT, /*LK³¬Ê±¼ì²â*/ |
| 59 | TRACK_MSG_ID_LK_TIME_RESET_NET, /*LK³¬Ê±ÖØÖÃÍøÂç*/ |
| 60 | TRACK_MSG_SERVER_CHECK, /*Ö÷·þÎñÍøÂç¼ì²â*/ |
| 61 | TRACK_MSG_WEATHER_CHECK, /*ÌìÆø¼ì²é*/ |
| 62 | TRACK_MSG_SLAVE_SERVER_CHECK, /*ʱ¼ä·þÎñÆ÷ÍøÂç¼ì²â*/ |
| 63 | TRACK_MSG_ID_CR_TIMEOUT, |
| 64 | TRACK_MSG_ID_AGPS_CHECK, |
| 65 | TRACK_MSG_ID_UPLOAD_MODE_ONE, |
| 66 | TRACK_MSG_ID_UPLOAD_MODE_TWO, |
| 67 | TRACK_MSG_ID_UPLOAD_MODE_THREE, |
| 68 | TRACK_MSG_ID_ENCRYPT_ERR, |
| 69 | TRACK_MSG_ID_LOG_SAVE, |
| 70 | TRACK_MSG_ID_STOP_REMOTE_HEARTRATE, |
| 71 | TRACK_MSG_ID_DEV_UNBIN_TIME_OUT, |
| 72 | TRACK_MSG_ID_GET_AP, |
| 73 | TRACK_MSG_ID_PP_FRIEND, |
| 74 | TRACK_MSG_ID_END = KWATCH_MSG_BASE + 100, |
| 75 | /*ÒÔÉÏÏûÏ¢IDÖ÷ÒªÊǸøwatch_svrÄÚ²¿ÏûϢʹÓÃ*/ |
| 76 | /*ÒÔÏÂÏûÏ¢IDÖ÷ÒªÊǸøwatch_svrÓëÆäËü½ø³Ì¼äÏûϢʹÓÃ*/ |
| 77 | /*************************Èý»ùͬ´´ÏûÏ¢½Ó¿Ú************************/ |
| 78 | /*Êý¾ÝÉÏ´«¼ä¸ôÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_upload_infoºÍkwatch_common_result*/ |
| 79 | //KWATCH_MSG_SET_UPLOAD_REQ, |
| 80 | //KWATCH_MSG_SET_UPLOAD_RSP, |
| 81 | /*ÖÐÐĺÅÂëÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_center_infoºÍkwatch_common_result*/ |
| 82 | KWATCH_MSG_SET_CENTER_REQ, //02 |
| 83 | KWATCH_MSG_SET_CENTER_RSP, |
| 84 | /*¿ØÖÆÃÜÂëÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_pw_infoºÍkwatch_common_result*/ |
| 85 | KWATCH_MSG_SET_PW_REQ, |
| 86 | KWATCH_MSG_SET_PW_RSP, |
| 87 | /*¼àÌý(µ¥ÏòñöÌý)ÇëÇó£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_common_result¡£ËµÃ÷:ÖÕ¶Ë×Ô¶¯»Ø²¦ÖÐÐĺÅÂë*/ |
| 88 | KWATCH_MSG_OWL_REQ, |
| 89 | KWATCH_MSG_OWL_RSP, |
| 90 | /*SOSºÅÂëÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_sos_infoºÍkwatch_common_result*/ |
| 91 | KWATCH_MSG_SET_SOS_REQ, |
| 92 | KWATCH_MSG_SET_SOS_RSP, |
| 93 | /*ÓïÑÔºÍÊ±ÇøÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_lz_infoºÍkwatch_common_result*/ |
| 94 | KWATCH_MSG_SET_LZ_REQ, //10 |
| 95 | KWATCH_MSG_SET_LZ_RSP, |
| 96 | /*SOS¶ÌÐű¨¾¯¿ª¹Ø£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_sossms_infoºÍkwatch_common_result*/ |
| 97 | KWATCH_MSG_SET_SOSSMS_REQ, |
| 98 | KWATCH_MSG_SET_SOSSMS_RSP, |
| 99 | /*µÍµç¶ÌÐű¨¾¯¿ª¹Ø£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_lowbat_infoºÍkwatch_common_result*/ |
| 100 | KWATCH_MSG_SET_LOWBAT_REQ, |
| 101 | KWATCH_MSG_SET_LOWBAT_RSP, |
| 102 | /*°æ±¾²éѯ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_verno_info*/ |
| 103 | KWATCH_MSG_GET_VERNO_REQ, |
| 104 | KWATCH_MSG_GET_VERNO_RSP, |
| 105 | /*Á¢¼´¶¨Î»Ö¸ÁÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_common_result¡£ËµÃ÷:Á¢¼´»½ÐÑÖÕ¶ËGPSÄ£¿é£¬Á¬ÐøÒ»¶Îʱ¼äÒ»Ö±´¦ÓÚ¶¨Î»×´Ì¬*/ |
| 106 | KWATCH_MSG_CR_REQ, |
| 107 | KWATCH_MSG_CR_RSP, |
| 108 | /*¹Ø»úÖ¸ÁÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_common_result¡£*/ |
| 109 | KWATCH_MSG_POWEROFF_REQ, //20 |
| 110 | KWATCH_MSG_POWEROFF_RSP, |
| 111 | /*¼Æ²½Ê±¼ä¶ÎÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_walktime_infoºÍkwatch_common_result*/ |
| 112 | KWATCH_MSG_SET_WALKTIME_REQ, |
| 113 | KWATCH_MSG_SET_WALKTIME_RSP, |
| 114 | /*·¹ö¼ì²âʱ¼ä¶ÎÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_sleeptime_infoºÍkwatch_common_result*/ |
| 115 | KWATCH_MSG_SET_SLEEPTIME_REQ, |
| 116 | KWATCH_MSG_SET_SLEEPTIME_RSP, |
| 117 | /*Ãâ´òÈÅʱ¼ä¶ÎÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_silencetime_infoºÍkwatch_common_result*/ |
| 118 | KWATCH_MSG_SET_SILENCETIME_REQ, |
| 119 | KWATCH_MSG_SET_SILENCETIME_RSP, |
| 120 | /*ÕÒÊÖ±í£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_common_result¡£*/ |
| 121 | KWATCH_MSG_FIND_REQ, |
| 122 | KWATCH_MSG_FIND_RSP, |
| 123 | /*ÄÖÖÓÉèÖã¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_remind_infoºÍkwatch_common_result*/ |
| 124 | KWATCH_MSG_SET_REMIND_REQ, //30 |
| 125 | KWATCH_MSG_SET_REMIND_RSP, |
| 126 | /*µç»°±¾ÉèÖã¬ÓÃÓÚÉèÖÃǰ5¸öÁªÏµÈË£¬¼´ÁªÏµÈË1-5£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_phb_infoºÍkwatch_common_result*/ |
| 127 | KWATCH_MSG_SET_PHB_REQ, |
| 128 | KWATCH_MSG_SET_PHB_RSP, |
| 129 | /*µç»°±¾2ÉèÖã¬ÓÃÓÚÉèÖúó5¸öÁªÏµÈË£¬¼´ÁªÏµÈË6-10£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_phb_infoºÍkwatch_common_result*/ |
| 130 | KWATCH_MSG_SET_PHB2_REQ, |
| 131 | KWATCH_MSG_SET_PHB2_RSP, |
| 132 | /*¶Ô½²¹¦ÄÜ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_tk_infoºÍkwatch_common_result¡£ |
| 133 | ˵Ã÷:¸ÃÏûÏ¢ÓÃÀ´·¢ËͽÓÊÕµ½µÄƽ̨¶Ô½²Êý¾Ýµ½ÖÕ¶Ë£¬¸ÃÏûÏ¢ÊǺǫ́·þÎñ·¢Ë͸øUIµÄ*/ |
| 134 | KWATCH_MSG_RECV_TK_REQ, |
| 135 | KWATCH_MSG_RECV_TK_RSP, |
| 136 | /*¶Ô½²¹¦ÄÜ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_tk_infoºÍkwatch_common_result¡£ |
| 137 | ˵Ã÷:¸ÃÏûÏ¢ÓÃÀ´·¢ËÍÖն˶Խ²Êý¾Ýµ½Æ½Ì¨£¬¸ÃÏûÏ¢ÊÇUI·¢Ë͵½ºǫ́·þÎñµÄ*/ |
| 138 | KWATCH_MSG_SEND_TK_REQ, |
| 139 | KWATCH_MSG_SEND_TK_RSP, |
| 140 | /* ·¢¶ÌÐÅ£¬ÓÃÓÚÊÖ±í·þÎñͨ¹ýƽ̨ʵÏÖ·¢¶ÌÐŹ¦ÄÜ. */ |
| 141 | KWATCH_MSG_SEND_SMS_REQ, //40 |
| 142 | KWATCH_MSG_SEND_SMS_RSP, |
| 143 | /* ÏòÊÖ±í·þÎñת·¢Æ½Ì¨½ÓÊÕµ½µÄ¶ÌÐÅ. */ |
| 144 | KWATCH_MSG_FORWARD_SMS_REQ, |
| 145 | KWATCH_MSG_FORWARD_SMS_RSP, |
| 146 | /* SOS´òµç»°. */ |
| 147 | KWATCH_MSG_SOS_CALL_REQ, |
| 148 | KWATCH_MSG_SOS_CALL_RSP, |
| 149 | /* ÆÕͨ´òµç»°. */ |
| 150 | KWATCH_MSG_NORMAL_CALL_REQ, |
| 151 | KWATCH_MSG_NORMAL_CALL_RSP, |
| 152 | /* »ñÈ¡ÌìÆøÐÅÏ¢. */ |
| 153 | KWATCH_MSG_GET_WEATHER_INFO_REQ, |
| 154 | KWATCH_MSG_GET_WEATHER_INFO_RSP, |
| 155 | /* ½»ÅóÓÑ. */ |
| 156 | KWATCH_MSG_MAKE_FRIENDS_REQ, //50 |
| 157 | KWATCH_MSG_MAKE_FRIENDS_RSP, |
| 158 | /* »ñÈ¡°®ÐÄÊýÁ¿. */ |
| 159 | KWATCH_MSG_RED_HEART_REQ, |
| 160 | KWATCH_MSG_RED_HEART_RSP, |
| 161 | |
| 162 | KWATCH_MSG_SET_PROFILE_REQ, |
| 163 | KWATCH_MSG_SET_PROFILE_RSP, |
| 164 | |
| 165 | /* ·¢ËÍSOSʼþ֪ͨ */ |
| 166 | KWATCH_MSG_EXEC_SOS_REQ, |
| 167 | KWATCH_MSG_EXEC_SOS_RSP, |
| 168 | |
| 169 | /* ¼Æ²½ÐÅÏ¢»ñÈ¡ */ |
| 170 | KWATCH_MSG_GET_STEP_REQ, |
| 171 | KWATCH_MSG_GET_STEP_RSP, |
| 172 | |
| 173 | /* GPS */ |
| 174 | KWATCH_MSG_GPS_GPD_SET_REQ, //60 |
| 175 | KWATCH_MSG_GPS_PWR_SET_REQ, |
| 176 | KWATCH_MSG_GPS_COORDINATE_SET_REQ, |
| 177 | KWATCH_MSG_GPS_INQUIRE_REQ, |
| 178 | KWATCH_MSG_GPS_RSP, |
| 179 | |
| 180 | /* ÊÖ±í×¥ÅIJ¢ÉÏ´«ÕÕÆ¬ */ |
| 181 | /* watch_svrÏòÊÖ±íÉ豸·¢×¥ÅÄÏûÏ¢,ÎÞ²ÎÊý */ |
| 182 | KWATCH_MSG_SNAP_REQ, |
| 183 | /* ÊÖ±íÉ豸»Ø¸´×¥ÅÄÐÅÏ¢,·µ»Økwatch_snap_infoÀàÐÍÊý¾Ý */ |
| 184 | KWATCH_MSG_SNAP_RSP, |
| 185 | |
| 186 | /* ÏàÆ¬·ÖÏí */ |
| 187 | /* ÊÖ±íÉ豸Ïòwatch_svr·¢ËÍ·ÖÏíÏàÆ¬ÏûÏ¢,ÏûÏ¢Êý¾ÝÌåΪkwatch_share_photos_infoÀàÐÍ */ |
| 188 | KWATCH_MSG_SHARE_PHOTOS_REQ, |
| 189 | /* watch_svr»Ø¸´ÏàÆ¬·ÖÏí½á¹û */ |
| 190 | KWATCH_MSG_SHARE_PHOTOS_RSP, |
| 191 | |
| 192 | /* »Ö¸´³ö³§ÉèÖÃ */ |
| 193 | /* watch_svrÏòÊÖ±íÉ豸·¢Ëͻָ´³ö³§ÉèÖÃÏûÏ¢,ÎÞ²ÎÊý */ |
| 194 | KWATCH_MSG_FAC_RESET_REQ, |
| 195 | /* ÊÖ±íÉ豸´ð¸´»Ö¸´³ö³§Ö´Ðнá¹û */ |
| 196 | KWATCH_MSG_FAC_RESET_RSP, //70 |
| 197 | |
| 198 | /* ¶¨Ê±¿ª¹Ø»ú*/ |
| 199 | /* watch_svrÏòÊÖ±íÉ豸·¢ËͶ¨Ê±¿ª¹Ø»úÐÅÏ¢,kwatch_spof_info*/ |
| 200 | KWATCH_MSG_SPOF_REQ, |
| 201 | /*ÊÖ±íÉ豸·¢ËͶ¨Ê±¿ª¹Ø»úÉèÖýá¹û kwatch_common_result*/ |
| 202 | KWATCH_MSG_SPOF_RSP, |
| 203 | |
| 204 | /*mmi·¢ËÍÍøÂçÇл»£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_pdp_status_info*/ |
| 205 | KWATCH_MSG_PDP_STATUS_IND, |
| 206 | |
| 207 | /* ¹¤³Ìģʽ£ºG-Sensor²âÊÔ */ |
| 208 | /* ÊÖ±íÉ豸Ïòwatch_svr·¢Ë͹¤³ÌģʽG-Sensor²âÊÔÏûÏ¢ */ |
| 209 | KWATCH_MSG_GSENSOR_TEST_REQ, |
| 210 | /* watch_svrÏòÊÖ±íÉ豸·µ»ØG-sensor²âÊÔ½á¹ûÐÅÏ¢,·µ»Økwatch_gsensor_test_infoÀàÐÍÊý¾Ý */ |
| 211 | KWATCH_MSG_GSENSOR_TEST_RSP, |
| 212 | |
| 213 | /* ¹¤³Ìģʽ£ºGPS²âÊÔ */ |
| 214 | /* ÊÖ±íÉ豸Ïòwatch_svr·¢Ë͹¤³ÌģʽGPS²âÊÔÏûÏ¢ */ |
| 215 | KWATCH_MSG_GPS_TEST_REQ, |
| 216 | /* watch_svrÏòÊÖ±íÉ豸·µ»ØGPS²âÊÔ½á¹ûÐÅÏ¢,·µ»Økwatch_gps_test_infoÀàÐÍÊý¾Ý */ |
| 217 | KWATCH_MSG_GPS_TEST_RSP, |
| 218 | |
| 219 | /* ¹¤³Ìģʽ£ºWi-Fi²âÊÔ */ |
| 220 | /* ÊÖ±íÉ豸Ïòwatch_svr·¢Ë͹¤³ÌģʽWi-Fi²âÊÔÏûÏ¢ */ |
| 221 | KWATCH_MSG_WIFI_TEST_REQ, |
| 222 | /* watch_svrÏòÊÖ±íÉ豸·µ»ØWi-Fi²âÊÔ½á¹ûÐÅÏ¢,·µ»Økwatch_wifi_test_infoÀàÐÍÊý¾Ý */ |
| 223 | KWATCH_MSG_WIFI_TEST_RSP, |
| 224 | |
| 225 | /* »ùÕ¾¶¨Î»£ºLBSÐÅÏ¢Éϱ¨ */ |
| 226 | /* Ôݲ»Ê¹Óà */ |
| 227 | KWATCH_MSG_LBS_REQ, |
| 228 | /* ModemÏòwatch_svrת·¢µÄLBSÐÅÏ¢ */ |
| 229 | KWATCH_MSG_LBS_RSP, |
| 230 | |
| 231 | /*watch_svr ·¢ËͽûֹʹÓò¦ºÅÅÌ*/ |
| 232 | KWATCH_MSG_DIALER_FORBIDDEN_REQ, |
| 233 | |
| 234 | /* watch_svrÏòÊÖ±íÉ豸·¢ËÍ»ñÈ¡µç³ØÏà¹ØÐÅÏ¢ÏûÏ¢,ÎÞ²ÎÊý */ |
| 235 | KWATCH_MSG_BATTERY_INFO_REQ, |
| 236 | |
| 237 | /* ÊÖ±íÉ豸´ð¸´µç³ØÏà¹ØÏûÏ¢,²ÎÊýÓÉkwatch_battery_info½á¹¹¶¨Òå */ |
| 238 | KWATCH_MSG_BATTERY_INFO_RSP, |
| 239 | |
| 240 | /* MMI·¢ËÍPP½»ÓÑÇëÇó*/ |
| 241 | KWATCH_PP_FRIEND_REQ = KWATCH_MSG_LBS_RSP+100, |
| 242 | /* watch_svr ֪ͨMMI½»Óѽá¹û */ |
| 243 | KWATCH_PP_FRIEND_RSP, |
| 244 | |
| 245 | /*ºÃÓѹ¦ÄÜ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_friend_tk_infoºÍkwatch_common_result¡£ |
| 246 | ˵Ã÷:¸ÃÏûÏ¢ÓÃÀ´·¢ËͽÓÊÕµ½µÄƽ̨¶Ô½²Êý¾Ýµ½ÖÕ¶Ë£¬¸ÃÏûÏ¢ÊǺǫ́·þÎñ·¢Ë͸øUIµÄ*/ |
| 247 | KWATCH_MSG_RECV_FRIEND_TK_REQ, |
| 248 | KWATCH_MSG_RECV_FRIEND_TK_RSP, |
| 249 | |
| 250 | /*ºÃÓѹ¦ÄÜ£¬ÏàÓ¦Êý¾Ý½á¹¹ÐÅÏ¢kwatch_friend_tk_infoºÍkwatch_common_result¡£ |
| 251 | ˵Ã÷:¸ÃÏûÏ¢ÓÃÀ´·¢ËÍÖն˶Խ²Êý¾Ýµ½Æ½Ì¨£¬¸ÃÏûÏ¢ÊÇUI·¢Ë͵½ºǫ́·þÎñµÄ*/ |
| 252 | KWATCH_MSG_SEND_FRIEND_TK_REQ, |
| 253 | KWATCH_MSG_SEND_FRIEND_TK_RSP, |
| 254 | |
| 255 | /*mmi·¢ËͺÃÓÑɾ³ýÏûÏ¢*/ |
| 256 | KWATCH_MSG_PP_FRIEND_DEL_REQ, |
| 257 | /*watch_svr ·¢ËͺÃÓÑɾ³ý½á¹û*/ |
| 258 | KWATCH_MSG_PP_FRIEND_DEL_RSP, |
| 259 | |
| 260 | /*΢ÁĽÓÊÕÎÄ×ÖÐÅÏ¢*/ |
| 261 | KWATCH_TEXT_MSG_RECV_REQ, |
| 262 | KWATCH_TEXT_MSG_RECV_RSP, |
| 263 | |
| 264 | /*ÐÄÂÊѪѹ²âÁ¿*/ |
| 265 | KWATCH_HEARTRATE_MEASURE_REQ, /*MMI ·¢ËͲâÁ¿ÇëÇó ÏûÏ¢½á¹¹Ìå kwatch_heartrate_measure_req*/ |
| 266 | KWATCH_HEARTRATE_MEASURE_RSP, /*watch_svr ²âÁ¿½á¹û·¢Ë͸øMMI ÏûÏ¢½á¹¹Ìå kwatch_heartrate_info*/ |
| 267 | |
| 268 | KWATCH_POWER_SAVE_REQ, /*watch_svr ·¢ËÍÊ¡µçģʽ ÏûÏ¢½á¹¹Ìå kwatch_power_save_req*/ |
| 269 | |
| 270 | KWATCH_WIFI_AP_RSP, /*½ÓÊÜWIFI ɨÃè½á¹û*/ |
| 271 | KWATCH_MSG_WIFI_OPEN_REQ,/*WIFI ´ò¿ªÇëÇó*/ |
| 272 | KWATCH_MSG_WIFI_OPEN_RSP, |
| 273 | /*ÈÚÔÆÊÓÆµÍ¨»°*/ |
| 274 | KWATCH_PRYVCALL_REQ, /*APP¶ËÏòÊÖ±í·¢ÆðÊÓÆµÍ¨»°ÇëÇó watch_svr to mmi*/ |
| 275 | KWATCH_PRYVCALL_RSP, /*ÊÓÆµÍ¨»°ÇëÇó½á¹û״̬ mmi to watch_svr*/ |
| 276 | |
| 277 | KWATCH_RYVCALLCANCEL_REQ, /*APP¶ËÈ¡ÏûÏòÊÖ±í·¢ÆðÊÓÆµÍ¨»°ÇëÇó watch_svr to mmi*/ |
| 278 | |
| 279 | KWATCH_RYVCALLREFUSE_REQ, /*APP¶Ë¾Ü¾øÊÖ±íÊÓÆµÍ¨»°ÇëÇó watch_svr to mmi*/ |
| 280 | KWATCH_RYVCALLREFUSE_RSP, /*ÊÖ±í¾Ü½Óapp¶ËÊÓÆµÍ¨»°ÇëÇó mmi to watch_svr*/ |
| 281 | |
| 282 | KWATCH_WRYVCALL_RSP, /*ÊÖ±í¶ËÏòapp¶Ë·¢ÆðÊÓÆµÍ¨»°ÇëÇómmi to watch_svr*/ |
| 283 | KWATCH_WRYVCALL_REQ, /*app»Ø¸´ÊÖ±í¶ËÊÓÆµÍ¨»°ÇëÇó״̬watch_svr to mmi*/ |
| 284 | |
| 285 | KWATCH_UPRYROOMCOUNT_RSP, /*ÊÖ±í¶Ë½ø³ö·¿¼ä¶¼Ïòapp¶ËÉϱ¨·¿¼äÊ£ÓàÈËÊý mmi to watch_svr*/ |
| 286 | |
| 287 | KWATCH_RYCONFIG_REQ, /*·þÎñÆ÷¶ËÉèÖÃÊÖ±íÈÚÔÆsdk log¿ª¹Ø watch_svr to mmi*/ |
| 288 | |
| 289 | KWATCH_CLOCK_BJ_CHANGE, |
| 290 | }; |
| 291 | /*ÏìÓ¦½á¹û´íÎóÂë*/ |
| 292 | typedef enum { |
| 293 | KWATCH_RET_FAIL = -1,/*ʧ°Ü*/ |
| 294 | KWATCH_RET_OK = 0,/*³É¹¦*/ |
| 295 | /*¸ù¾ÝÐèÒªÌí¼ÓÆäËü´íÎóÂë*/ |
| 296 | } kwatch_result; |
| 297 | |
| 298 | /*ͨÓÃÏìÓ¦½á¹ûÊý¾Ý½á¹¹*/ |
| 299 | typedef struct { |
| 300 | /*²Î¼ûkwatch_result*/ |
| 301 | kwatch_result result; |
| 302 | } kwatch_common_result; |
| 303 | |
| 304 | #if 0 |
| 305 | /*Êý¾ÝÉÏ´«¼ä¸ôÉèÖÃÐÅÏ¢,ÓÃÓÚÉèÖÃÖն˶¨Ê±Éϱ¨µÄʱ¼ä¼ä¸ô*/ |
| 306 | typedef struct { |
| 307 | unsigned int period;/*µ¥Î»:·ÖÖÓ*/ |
| 308 | } kwatch_upload_info; |
| 309 | #endif |
| 310 | /*ÖÐÐĺÅÂëÉèÖÃÐÅÏ¢,ͨ¹ý¸ÃÊÖ»úºÅ¿ÉÒÔ·¢ËͶÌÐÅÖ¸Áî¡¢¼àÌýµÈ*/ |
| 311 | typedef struct { |
| 312 | char number[48];/*µç»°ºÅÂë*/ |
| 313 | } kwatch_center_info; |
| 314 | |
| 315 | /*¿ØÖÆÃÜÂëÉèÖÃÐÅÏ¢,·ÇÖÐÐĺÅÂë·¢ËͶÌÐÅÖ¸ÁîÐèÒªÌí¼ÓÃÜÂë*/ |
| 316 | typedef struct { |
| 317 | char password[32];/*ÃÜÂë*/ |
| 318 | } kwatch_pw_info; |
| 319 | |
| 320 | /*SOSºÅÂëÉèÖÃÐÅÏ¢£¬×î¶àÉèÖÃ3¸öSOSºÅÂë*/ |
| 321 | typedef struct { |
| 322 | char number1[48];/*SOSµç»°ºÅÂë1*/ |
| 323 | char number2[48];/*SOSµç»°ºÅÂë2*/ |
| 324 | char number3[48];/*SOSµç»°ºÅÂë3*/ |
| 325 | } kwatch_sos_info; |
| 326 | |
| 327 | /*ÓïÑÔºÍÊ±ÇøÉèÖÃÐÅÏ¢,ÓÃÓÚÉèÖÃÖÕ¶ËÓïÑÔºÍÊ±Çø*/ |
| 328 | typedef struct { |
| 329 | unsigned int languge;/*ÓïÑÔ£¬0-ÖÐÎÄ£»1-Ó¢ÎÄ*/ |
| 330 | unsigned int timezone;/*Ê±Çø*/ |
| 331 | } kwatch_lz_info; |
| 332 | |
| 333 | /*SOS¶ÌÐű¨¾¯¿ª¹ØÉèÖÃÐÅÏ¢,ÉèÖòúÉúSOS±¨¾¯ºóÊÇ·ñÏòSOSºÅÂë·¢ËͶÌÐÅ*/ |
| 334 | typedef struct { |
| 335 | unsigned int onoff;/*¿ª¹Ø£¬0-¹Ø±Õ£»1-´ò¿ª*/ |
| 336 | } kwatch_sossms_info; |
| 337 | /*µÍµç±¨¾¯¿ª¹ØÉèÖÃÐÅÏ¢,ÉèÖòúÉúµÍµç±¨¾¯ºóÊÇ·ñÏòÖÐÐĺÅÂë·¢ËͶÌÐÅ*/ |
| 338 | typedef struct { |
| 339 | unsigned int onoff;/*¿ª¹Ø£¬0-¹Ø±Õ£»1-´ò¿ª*/ |
| 340 | } kwatch_lowbat_info; |
| 341 | |
| 342 | /*Öն˰汾ÐÅÏ¢,ÓÃÓÚÉÏ´«°æ±¾ÐÅÏ¢*/ |
| 343 | typedef struct { |
| 344 | char version[128];/*°æ±¾ÐÅÏ¢*/ |
| 345 | } kwatch_verno_info; |
| 346 | |
| 347 | typedef struct { |
| 348 | unsigned char hour; /* 0~23 */ |
| 349 | unsigned char min; /* 0~59 */ |
| 350 | unsigned char sec; /* 0~59 */ |
| 351 | } kwatch_time; |
| 352 | /*¼Æ²½Ê±¼ä¶ÎÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖüƲ½´ò¿ªµÄʱ¼ä¶Î·¶Î§,×î¶àÉèÖÃ3¸ö*/ |
| 353 | typedef struct { |
| 354 | kwatch_time time1[2];/*ʱ¼ä¶Î1£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/ |
| 355 | kwatch_time time2[2];/*ʱ¼ä¶Î2£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/ |
| 356 | kwatch_time time3[2];/*ʱ¼ä¶Î3£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/ |
| 357 | } kwatch_walktime_info; |
| 358 | |
| 359 | /*·¹ö¼ì²âʱ¼ä¶ÎÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖ÷¹ö¼ì²âµÄʱ¼ä¶Î·¶Î§,×î¶àÉèÖÃ1¸ö*/ |
| 360 | typedef struct { |
| 361 | kwatch_time time[2];/*ʱ¼ä¶Î£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/ |
| 362 | } kwatch_sleeptime_info; |
| 363 | |
| 364 | /*Ãâ´òÈÅʱ¼ä¶ÎÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖÃÃâ´òÈÅʱ¼ä¶Î·¶Î§,×î¶àÉèÖÃ4¸ö*/ |
| 365 | typedef struct { |
| 366 | kwatch_time time1[2];/*ʱ¼ä¶Î1£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/ |
| 367 | kwatch_time time2[2];/*ʱ¼ä¶Î2£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/ |
| 368 | kwatch_time time3[2];/*ʱ¼ä¶Î3£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/ |
| 369 | kwatch_time time4[2];/*ʱ¼ä¶Î4£¬0-Æðʼʱ¼ä£»1-½áÊøÊ±¼ä*/ |
| 370 | } kwatch_silencetime_info; |
| 371 | |
| 372 | /*ÄÖÖÓÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖÃÖÕ¶ËÄÖÖÓ,×î¶àÉèÖÃ3¸ö*/ |
| 373 | typedef struct { |
| 374 | struct { |
| 375 | kwatch_time time;/*ʱ¼ä*/ |
| 376 | unsigned int onoff;/*¿ª¹Ø,0-¹Ø±Õ£»1-´ò¿ª*/ |
| 377 | unsigned int freq;/*ƵÂÊ*/ |
| 378 | unsigned int days; /*×Ô¶¨Òå*/ |
| 379 | } alarm[3]; |
| 380 | } kwatch_remind_info; |
| 381 | |
| 382 | /*×Ô¶¯¿ª¹Ø»úÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖÃÖÕ¶ËÄÖÖÓ,×î¶àÉèÖÃ3¸ö*/ |
| 383 | typedef struct { |
| 384 | kwatch_time time;/*ʱ¼ä*/ |
| 385 | unsigned int onoff;/*¿ª¹Ø,0-¹Ø±Õ£»1-´ò¿ª*/ |
| 386 | unsigned int type; |
| 387 | } kwatch_auto_poweronff_info; |
| 388 | |
| 389 | /*¶¨Ê±¿ª¹Ø»úÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖö¨Ê±¿ª¹Ø»ú*/ |
| 390 | typedef struct |
| 391 | { |
| 392 | kwatch_time time; /*ʱ¼ä*/ |
| 393 | unsigned int onoff;/*¿ª¹Ø,0-¹Ø±Õ£»1-´ò¿ª*/ |
| 394 | unsigned int freq;/*ƵÂÊ*/ |
| 395 | unsigned int days; /*×Ô¶¨Òå*/ |
| 396 | unsigned int spof; /*0Ϊ¿ª»ú 1Ϊ¹Ø»ú*/ |
| 397 | } kwatch_spof_info; |
| 398 | |
| 399 | |
| 400 | |
| 401 | |
| 402 | |
| 403 | /*µç»°±¾ÉèÖÃÐÅÏ¢£¬ÓÃÓÚÉèÖÃÖն˵绰±¾,ÿ´Î×î¶àÉèÖÃ5¸ö*/ |
| 404 | typedef struct { |
| 405 | int index; |
| 406 | struct { |
| 407 | char number[48];/*µç»°ºÅÂë*/ |
| 408 | char name[128];/*ÐÕÃû*/ |
| 409 | } contact[5]; |
| 410 | } kwatch_phb_info; |
| 411 | |
| 412 | /*¶Ô½²Êý¾ÝÐÅÏ¢*/ |
| 413 | typedef struct { |
| 414 | char contact_num[20]; /*APPÁªÏµÈ˺ÅÂë*/ |
| 415 | unsigned int x_type;/*²ÎÊýxΪ0´ú±íµ¥ÁÄ xΪ1´ú±íȺÁÄÏûÏ¢ xΪ2´ú±íºÃÓÑÏûÏ¢*/ |
| 416 | unsigned int type;/*ÒôƵÊý¾Ý¸ñʽ£¬0-±íʾAMR£»ÆäËü´ýÀ©Õ¹ 0xff:±íʾΪÎÄ×ÖÐÅÏ¢*/ |
| 417 | unsigned int datalen;/*ÒôƵÊý¾Ý³¤¶È*/ |
| 418 | char fpath[256]; /*ÒôƵÊý¾ÝÎļþ·¾¶*/ |
| 419 | } kwatch_tk_info; |
| 420 | |
| 421 | |
| 422 | /* µ¥ÏòñöÌýµÄÇëÇóÊý¾Ý */ |
| 423 | typedef struct { |
| 424 | char number[48];/*µ¥ÏòñöÌýºÅÂë*/ |
| 425 | } kwatch_owl_info; |
| 426 | |
| 427 | /*¼Æ²½ÐÅÏ¢,ÓÃÓڻظ´Éϲã²éѯ²½Êý¶¯×÷*/ |
| 428 | typedef struct { |
| 429 | long steps; /*²½ÊýÐÅÏ¢*/ |
| 430 | char isopen; /*0±íʾ¹Ø±Õ 1±íʾ´ò¿ª*/ |
| 431 | } kwatch_pedometer_info; |
| 432 | |
| 433 | typedef struct { |
| 434 | int numcnt; /* ÊÕ·¢ºÅÂë¸öÊý£¬·¢ËÍΪ 1~5¡£½ÓÊչ̶¨Îª1 */ |
| 435 | char number[5*40 + 1]; /* ÊÕ·¢ºÅÂ룬Ⱥ·¢¶à¸öºÅÂë¼äÒÔ','×÷Ϊ·Ö¸ô£¬½ÓÊչ̶¨Îª1¸öºÅÂë */ |
| 436 | unsigned char data[10*153*2 + 1];/* ÊÕ·¢¶ÌÐÅÄÚÈÝ£¬·¢ËÍ×î´óÖ§³Ö176£¬½ÓÊÕ×î´óÖ§³Ö 1530£¬GBK ±àÂë */ |
| 437 | } kwatch_snd_sms_info; |
| 438 | |
| 439 | typedef struct { |
| 440 | int call_type; /* ±êʶ²¦´òÀàÐÍ£¬0ΪÆÕͨµç»°£¬ºóÐøÐèÇó±ä¸ü¿ÉÀ©³ä */ |
| 441 | char number[48];/* Õý³£²¦´òµÄºÅÂë */ |
| 442 | } kwatch_call_info; |
| 443 | |
| 444 | typedef struct { |
| 445 | int weather_type; /* ÌìÆøÀàÐÍ£¬ÈçÓꡢѩ¡¢ÇçµÈ */ |
| 446 | int cur_temperature; /* µ±Ç°ÎÂ¶È */ |
| 447 | int min_temperature; /*µÍÎÂ*/ |
| 448 | int max_temperature; /*¸ßÎÂ*/ |
| 449 | char zone[64]; /*µØÇø³ÇÊÐÃû³Æ*/ |
| 450 | char date[20]; /*ÈÕÆÚ*/ |
| 451 | char time[20]; /*ʱ¼ä*/ |
| 452 | } kwatch_weather_info; |
| 453 | |
| 454 | typedef struct { |
| 455 | int type; /* 1,½»ÅóÓÑÓ¦ÓÃÆô¶¯£¬0£¬½»ÅóÓÑÓ¦ÓýáÊø */ |
| 456 | } kwatch_make_friends_info; |
| 457 | |
| 458 | typedef struct { |
| 459 | int counts; /* °®ÐÄÊýÁ¿ */ |
| 460 | } kwatch_red_heart_info; |
| 461 | |
| 462 | typedef struct{ |
| 463 | |
| 464 | int type; /*1.ÏìÁå¼°Õ𶯠2.½öÏìÁå 3.½öÕ𶯠4.¾²Òô*/ |
| 465 | |
| 466 | }kwatch_profile_info; |
| 467 | |
| 468 | |
| 469 | /* ÊÖ±íÉ豸»Ø¸´×¥ÅÄÐÅÏ¢ */ |
| 470 | typedef struct{ |
| 471 | /* Ö´Ðнá¹û */ |
| 472 | kwatch_common_result result; |
| 473 | /* ×¥ÅĵÄͼƬÃû³ÆÂ·¾¶ */ |
| 474 | char file_name[256]; |
| 475 | }kwatch_snap_info; |
| 476 | |
| 477 | /* ÊÖ±íÉ豸Ïòwatch_svr·¢ËÍ·ÖÏíÏàÆ¬ÏûÏ¢ */ |
| 478 | typedef struct{ |
| 479 | /* ·ÖÏíµÄͼƬÃû³ÆÂ·¾¶ */ |
| 480 | char file_name[256]; |
| 481 | }kwatch_share_photos_info; |
| 482 | |
| 483 | /* watch_svrÏòÊÖ±íÉ豸·µ»ØG-sensor²âÊÔ½á¹ûÐÅÏ¢ */ |
| 484 | typedef struct{ |
| 485 | /* Ö´Ðнá¹û */ |
| 486 | kwatch_common_result result; |
| 487 | /* G-Sensor²âÊÔ½á¹ûÐÅÏ¢£¬ÈçÈýÖáÊý¾ÝµÈ */ |
| 488 | char gsensor_info[256]; |
| 489 | }kwatch_gsensor_test_info; |
| 490 | |
| 491 | /* watch_svrÏòÊÖ±íÉ豸·µ»ØGPS²âÊÔ½á¹ûÐÅÏ¢ */ |
| 492 | typedef struct{ |
| 493 | /* Ö´Ðнá¹û */ |
| 494 | kwatch_common_result result; |
| 495 | /* GPS²âÊÔ½á¹ûÐÅÏ¢£¬ÈçÎÀÐÇÊýÁ¿¡¢ÐźÅÇ¿¶ÈµÈ */ |
| 496 | char gps_info[256]; |
| 497 | }kwatch_gps_test_info; |
| 498 | |
| 499 | /* watch_svrÏòÊÖ±íÉ豸·µ»ØWi-Fi²âÊÔ½á¹ûÐÅÏ¢ */ |
| 500 | typedef struct{ |
| 501 | /* Ö´Ðнá¹û */ |
| 502 | kwatch_common_result result; |
| 503 | /* Wi-Fi²âÊÔ½á¹ûÐÅÏ¢£¬ÈçÈȵãÃû³Æ¡¢ÐźÅÇ¿¶ÈµÈ */ |
| 504 | char wifi_info[256]; |
| 505 | }kwatch_wifi_test_info; |
| 506 | |
| 507 | #define WORK_TIME_TOTAL 36 |
| 508 | #define GPS_WORK_TIME_START 0 |
| 509 | #define SLEEP_TIME_START 12 |
| 510 | #define WALK_TIME_START 20 |
| 511 | #define SILENCE_TIME_START 28 |
| 512 | |
| 513 | typedef struct |
| 514 | { |
| 515 | unsigned int start_time[WORK_TIME_TOTAL]; |
| 516 | unsigned int end_time[WORK_TIME_TOTAL]; |
| 517 | }work_time_struct; |
| 518 | |
| 519 | |
| 520 | /*MMI·¢ËÍÍøÂçÇл»*/ |
| 521 | typedef struct{ |
| 522 | int result;/*1,¼¤»î;0,È¥¼¤»î*/ |
| 523 | }kwatch_pdp_status_info; |
| 524 | |
| 525 | /* ModemÏòwatch_svrת·¢µÄLBSÐÅÏ¢ */ |
| 526 | typedef struct{ |
| 527 | /* Ö´Ðнá¹û */ |
| 528 | kwatch_common_result result; |
| 529 | /* ModemÏòwatch_svrת·¢µÄLBSÐÅÏ¢ */ |
| 530 | char lbs_info[1280]; /* LBS AT·µ»ØµÄÊý¾Ý±£´æÔڸóÉÔ±±äÁ¿ÖÐ */ |
| 531 | }kwatch_lbs_info; |
| 532 | |
| 533 | |
| 534 | /*watch_svr·¢ËͲ¦ºÅÅÌ¿ª¹ØÇëÇó*/ |
| 535 | typedef struct{ |
| 536 | /* Ö´Ðнá¹û */ |
| 537 | unsigned int onoff; /*0:½ûÖ¹²¦ºÅÅÌ 1:¿ªÆô²¦ºÅÅÌ*/ |
| 538 | }kwatch_dialer_info; |
| 539 | |
| 540 | typedef struct{ |
| 541 | /* Ö´Ðнá¹û */ |
| 542 | kwatch_common_result result; |
| 543 | /* type&0x1 == 1 :ÊǶÔKWATCH_MSG_BATTERY_INFO_REQÏûÏ¢µÄÏìÓ¦·µ»ØÊý¾Ý; voltage,percentageÓÐЧ */ |
| 544 | /* type&0x2 == 1 :´ú±í³äµçÆ÷²åÈë¡¢°Î³ö¡¢µç³äÒÑÂúʱÖ÷¶¯Ïòwatch_svr·¢Ë͵Ä֪ͨ; battery_full, charger_pluginÓÐЧ */ |
| 545 | int type; |
| 546 | int voltage; /* µç³Øµçѹ£¬µ¥Î»ºÁ·ü */ |
| 547 | int percentage; /* µçÁ¿°Ù·Ö±È */ |
| 548 | int battery_full; /* µç³ØÒѳäÂúΪ1£¬Î´³äÂúΪ0 */ |
| 549 | int charger_plugin; /* ÎÞЧֵΪ-1, ²åÈëUSBֵΪ1, ²¦³öUSBֵΪ0 */ |
| 550 | }kwatch_battery_info; |
| 551 | |
| 552 | |
| 553 | |
| 554 | /*MMIÏòwatch_svr·¢Ëͽ»ÓÑÇëÇó*/ |
| 555 | typedef struct{ |
| 556 | /* Ö´Ðнá¹û */ |
| 557 | unsigned int onoff; /*0:½»ÓÑ¿ªÆô 1:½»ÓѹرÕ*/ |
| 558 | }kwatch_pp_req_info; |
| 559 | |
| 560 | /*APPÁªÏµÈËÐÅÏ¢*/ |
| 561 | typedef struct{ |
| 562 | int new_msg; /*0 ÒѶÁ 1:δ¶Á*/ |
| 563 | char friend_did[20]; /*APPÁªÏµÈ˺ÅÂë*/ |
| 564 | char friend_name[30];/*APPÁªÏµÈËÐÕÃû*/ |
| 565 | char friend_num[20]; /*APPÁªÏµÈ˺ÅÂë*/ |
| 566 | }kwatch_pp_info; |
| 567 | |
| 568 | /*watch_svrÏòMMI·¢Ëͽ»Óѽá¹û*/ |
| 569 | typedef struct{ |
| 570 | /* Ö´Ðнá¹û */ |
| 571 | unsigned int rst; /*0:½»Óѳɹ¦ 1:½»ÓÑʧ°Ü 2:ºÃÓÑÖØ¸´ 3:ɾ³ýºÃÓÑ*/ |
| 572 | char friend_did[20]; /*ºÃÓÑÉ豸ID*/ |
| 573 | char friend_num[20]; /*APPÁªÏµÈ˺ÅÂë*/ |
| 574 | char friend_name[30];/*APPÁªÏµÈËÐÕÃû*/ |
| 575 | }kwatch_pp_rsp_info; |
| 576 | |
| 577 | /*ºÃÓѶԽ²Êý¾ÝÐÅÏ¢*/ |
| 578 | typedef struct { |
| 579 | char did[20]; /*ºÃÓÑID*/ |
| 580 | unsigned int type;/*ÒôƵÊý¾Ý¸ñʽ£¬0-±íʾAMR£»ÆäËü´ýÀ©Õ¹*/ |
| 581 | unsigned int datalen;/*ÒôƵÊý¾Ý³¤¶È*/ |
| 582 | char fpath[256]; /*ÒôƵÊý¾ÝÎļþ·¾¶*/ |
| 583 | } kwatch_friend_tk_info; |
| 584 | |
| 585 | /*ºÃÓÑɾ³ý*/ |
| 586 | typedef struct{ |
| 587 | /* Ö´Ðнá¹û */ |
| 588 | unsigned int rst; /*ÓÃÓÚºÃÓÑɾ³ý»Ø¸´ 0:ɾ³ý³É¹¦ 1:ɾ³ýʧ°Ü 2:ͨ¹ýbblistÐÒéɾ³ýºÃÓÑ*/ |
| 589 | char friend_did[20]; /*ºÃÓÑÉ豸ID*/ |
| 590 | char friend_num[20]; /*APPÁªÏµÈ˺ÅÂë*/ |
| 591 | }kwatch_pp_del_info; |
| 592 | |
| 593 | /*APPÁªÏµÈËÐÅÏ¢*/ |
| 594 | typedef struct{ |
| 595 | int new_msg; /*0 ÒѶÁ 1:δ¶Á*/ |
| 596 | char contact_num[20]; /*APPÁªÏµÈ˺ÅÂë*/ |
| 597 | char contact_name[30];/*APPÁªÏµÈËÐÕÃû*/ |
| 598 | }appcontact_info; |
| 599 | |
| 600 | /*ÐÄÂÊѪѹ*/ |
| 601 | typedef struct{ |
| 602 | int rst; /*0 Õý³£²âÁ¿ -1:ÍÑÀë -2:ÆäËüʧ°Ü*/ |
| 603 | unsigned int heartrate; |
| 604 | unsigned int bloodpressure_low; |
| 605 | unsigned int bloodpressure_high; |
| 606 | }kwatch_heartrate_info; |
| 607 | |
| 608 | typedef struct{ |
| 609 | unsigned int enable; /*1´ò¿ª²âÁ¿ 0¹Ø±Õ²âÁ¿*/ |
| 610 | }kwatch_heartrate_measure_req; |
| 611 | |
| 612 | typedef struct{ |
| 613 | unsigned int enable; /*1½øÈëÊ¡µçģʽ 0Í˳öÊ¡µçģʽ*/ |
| 614 | }kwatch_power_save_req; |
| 615 | |
| 616 | /*watch_svrÈÚÔÆÊÓÆµÍ¨»°*/ |
| 617 | //app·¢ÆðÊÓÆµÁÄÌì |
| 618 | //KWATCH_PRYVCALL_REQ |
| 619 | typedef struct{ |
| 620 | unsigned int type; /*0:µ¥ÁÄ 1:ȺÁÄ*/ |
| 621 | char num[30]; /*·¢ÆðÁÄÌìÓû§ºÅÂë*/ |
| 622 | char room_num[30]; /*·¢ÆðȺÁÄ·¿¼äºÅ*/ |
| 623 | }kwatch_pryvcall_info; |
| 624 | //app·¢ÆðÊÓÆµÁÄÌì ÊÖ±í»Ø¸´×´Ì¬ |
| 625 | //KWATCH_PRYVCALL_RSP |
| 626 | typedef struct{ |
| 627 | unsigned int status; /*0 Ö§³Öµ±Ç°Í¨»°ÇëÇó 1 ÕýÔÚͨ»°ÖУ¬²»Ö§³Öµ±Ç°Í¨»°ÇëÇó*/ |
| 628 | }kwatch_pryvcall_req; |
| 629 | |
| 630 | //ÊÖ±í·¢ÆðÊÓÆµÁÄÌì |
| 631 | //KWATCH_WRYVCALL_RSP |
| 632 | typedef struct{ |
| 633 | unsigned int type; /*0:µ¥ÁÄ 1:ȺÁÄ*/ |
| 634 | char num[30]; /*·¢ÆðÁÄÌìÓû§ºÅÂë*/ |
| 635 | char room_num[30]; /*·¢ÆðÁÄÌì·¿¼äºÅ*/ |
| 636 | }kwatch_wryvcall_info; |
| 637 | //ÊÖ±í·¢ÆðÊÓÆµÁÄÌì app¶Ë»Ø¸´×´Ì¬ |
| 638 | //KWATCH_WRYVCALL_REQ |
| 639 | typedef struct{ |
| 640 | unsigned int status; /*0 ʧ°Ü 1 ³É¹¦ */ |
| 641 | }kwatch_wryvcall_req; |
| 642 | |
| 643 | //ÊÖ±í½ø³ö·¿¼äÉϱ¨app¶Ë |
| 644 | //KWATCH_UPRYROOMCOUNT_RSP |
| 645 | typedef struct{ |
| 646 | unsigned int type; /*0:µ¥ÁÄ 1:ȺÁÄ*/ |
| 647 | unsigned int count; /*·¿¼äÈËÊý*/ |
| 648 | char room_num[30]; /*·¢ÆðÁÄÌì·¿¼äºÅ*/ |
| 649 | }kwatch_upryroomcount_info; |
| 650 | |
| 651 | //ÊÖ±í/app¾Ü½Ó |
| 652 | //KWATCH_RYVCALLREFUSE_RSP |
| 653 | typedef struct{ |
| 654 | unsigned int type; /*0:µ¥ÁÄ 1:ȺÁÄ*/ |
| 655 | char num[30]; /*·¢ÆðÁÄÌìÓû§ºÅÂë*/ |
| 656 | char room_num[30]; /*·¢ÆðÁÄÌì·¿¼äºÅ*/ |
| 657 | }kwatch_ryvcallrefuse_info; |
| 658 | |
| 659 | // log ÅäÖÃ |
| 660 | //KWATCH_RYCONFIG_REQ |
| 661 | typedef struct{ |
| 662 | char config[30]; /*Àý£ºRYCONFIG = 0-1-0 ÈÕÖ¾¿ª¹Ø£º0£º¹Ø 1¿ª ĬÈÏ¿ª ÈÕÖ¾Îļþ´óС£ºµ¥Î»£ºM ĬÈÏ1M ÈÕÖ¾Éϱ¨±êʶ£º0£º²»Éϱ¨ 1Éϱ¨ ĬÈϲ»Éϱ¨*/ |
| 663 | }kwatch_ryconfig_info; |
| 664 | |
| 665 | struct resp_header//±£³ÖÏàӦͷÐÅÏ¢ |
| 666 | { |
| 667 | int status_code;//HTTP/1.1 '200' OK |
| 668 | char content_type[128];//Content-Type: application/gzip |
| 669 | long content_length;//Content-Length: 11683079 |
| 670 | char file_name[256]; |
| 671 | }; |
| 672 | |
| 673 | typedef struct{ |
| 674 | char name[20]; |
| 675 | int month; //01~12 |
| 676 | int day; //01~31 |
| 677 | int dayflow; |
| 678 | int dayflow_already; |
| 679 | int dayflow_on; |
| 680 | int monthflow; |
| 681 | int monthflow_already; |
| 682 | int monthflow_on; |
| 683 | int monthcount; |
| 684 | int countflow; |
| 685 | }nwflow_info; |
| 686 | |
| 687 | typedef struct{ |
| 688 | int year; |
| 689 | int month; //01~12 |
| 690 | int day; //01~31 |
| 691 | int hour; |
| 692 | int minute; |
| 693 | int second; |
| 694 | }nwpwrtime_info; |
| 695 | |
| 696 | |
| 697 | typedef enum { |
| 698 | SJTC_TIMER_ID_0=0, /*ģʽһ¶¨Ê±Éϱ¨*/ |
| 699 | SJTC_TIMER_ID_1, /*²»´øGPS¶¨Ê±Éϱ¨*/ |
| 700 | SJTC_TIMER_ID_2, /*lk³¬Ê±¼ì²â*/ |
| 701 | SJTC_TIMER_ID_3, /*ÍøÂçÁ¬½Ó¼ì²â*/ |
| 702 | SJTC_TIMER_ID_4, /*ÌìÆø¸üÐÂ*/ |
| 703 | SJTC_TIMER_ID_5, /*LKµÚÒ»´ÎÑÓʱ·¢ËÍ*/ |
| 704 | SJTC_TIMER_ID_6, /*ʱ¼ä·þÎñÆ÷ÍøÂç¼ì²â*/ |
| 705 | SJTC_TIMER_ID_7, /*ÑÓ³Ù·¢ËÍÓïÒô*/ |
| 706 | SJTC_TIMER_ID_8, /*»°·Ñ²éѯ*/ |
| 707 | SJTC_TIMER_ID_9, /*CRÖ¸Áʱ*/ |
| 708 | SJTC_TIMER_ID_10, /*TKQ*/ |
| 709 | SJTC_TIMER_ID_11, /*Êý¾ÝÉÏ´«*/ |
| 710 | SJTC_TIMER_ID_12, /*ÅäÖÃÉϱ¨*/ |
| 711 | SJTC_TIMER_ID_13, /*µÍµç±¨¾¯*/ |
| 712 | SJTC_TIMER_ID_14, /*ÅöÅöºÃÓÑÇëÇó*/ |
| 713 | SJTC_TIMER_ID_15, /*LK¼ä¸ô´¦Àí*/ |
| 714 | SJTC_TIMER_ID_16, /*¼ÓÃÜ*/ |
| 715 | SJTC_TIMER_ID_17, /*ÑÓʱ¹Ø»ú*/ |
| 716 | SJTC_TIMER_ID_18, /*AGPS*/ |
| 717 | SJTC_TIMER_ID_19, /*¼ÓÃܳö´í´¦Àí*/ |
| 718 | SJTC_TIMER_ID_20, /*¶ÌÐÅת·¢*/ |
| 719 | SJTC_TIMER_ID_21, /*ĬÈ϶¨Ê±¿ª¹Ø»ú*/ |
| 720 | SJTC_TIMER_ID_22, /*»ñÈ¡ÐÄÂÊÊý¾Ý*/ |
| 721 | SJTC_TIMER_ID_23, /*»»¿¨½â°ó³¬Ê±*/ |
| 722 | SJTC_TIMER_ID_24, /*WIFIËÑË÷*/ |
| 723 | SJTC_TIMER_ID_25, /*send AGPS*/ |
| 724 | SJTC_TIMER_ID_26, |
| 725 | SJTC_TIMER_ID_27, |
| 726 | SJTC_TIMER_ID_28, |
| 727 | SJTC_TIMER_ID_29, |
| 728 | SJTC_TIMER_ID_30, |
| 729 | }timer_id; |
| 730 | |
| 731 | /******************************************************************************* |
| 732 | * Global function declarations * |
| 733 | ******************************************************************************/ |
| 734 | |
| 735 | |
| 736 | |
| 737 | #endif /*_KWATCH_MSG_H*/ |
| 738 | |