lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @file at_msg.h |
| 3 | * @brief ÌṩÁËÆ½Ì¨¶ÔÍâÏûÏ¢½Ó¿ÚºÍÏûÏ¢½á¹¹¶¨Òå |
| 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 __LQ_MSG_H__ |
| 15 | #define __LQ_MSG_H__ |
| 16 | |
| 17 | |
| 18 | /******************************************************************************* |
| 19 | * Include header files * |
| 20 | ******************************************************************************/ |
| 21 | #include "message.h" |
| 22 | |
| 23 | |
| 24 | /******************************************************************************* |
| 25 | * Macro definitions * |
| 26 | ******************************************************************************/ |
| 27 | |
| 28 | #define AT_CMD_MODE 0 //·Ç͸Ã÷ģʽÏÂatÃüÁî´«Êäģʽ |
| 29 | #define WRITE_DATA_MODE 1 //·Ç͸Ã÷ģʽÏÂwriteÁ÷³ÌÖеÄÊý¾Ý͸´«Ä£Ê½ |
| 30 | #define TRANSPARENT_CMD_MODE 2 //͸Ã÷ģʽÏÂÃüÁîģʽ |
| 31 | #define TRANSPARENT_DATA_MODE 3 //͸Ã÷ģʽÏÂÊý¾Ýģʽ |
| 32 | #define FTP_DATA_MODE 4 //FTP PUT/GETÖеÄÊý¾Ý͸´«Ä£Ê½ |
| 33 | |
| 34 | |
| 35 | /******************************************************************************* |
| 36 | * Type definitions * |
| 37 | ******************************************************************************/ |
| 38 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 39 | /** |
| 40 | * @brief at socketÏûÏ¢¿ªÊ¼ |
| 41 | */ |
| 42 | enum lq_msg_type { |
| 43 | MSG_CMD_NETCON_REQ = MSG_CMD_LQ_BASE,//ÅäÖÃPDP¼¤»îÏà¹Ø²ÎÊý |
| 44 | MSG_CMD_NETCON_RSP, |
| 45 | MSG_CMD_NETACT_REQ,//PDP¼¤»îÈ¥¼¤»î |
| 46 | MSG_CMD_NETACT_RSP, |
| 47 | MSG_CMD_NETSRV_REQ,//ÅäÖ÷Ç͸Ã÷ģʽsocket²ÎÊý |
| 48 | MSG_CMD_NETSRV_RSP, |
| 49 | MSG_CMD_NETOPEN_REQ,//´´½¨·Ç͸Ã÷ģʽsocketÁ´½Ó |
| 50 | MSG_CMD_NETOPEN_RSP, |
| 51 | MSG_CMD_NETREAD_REQ,//¶ÁÈ¡·Ç͸Ã÷ģʽsocketÊý¾Ý |
| 52 | MSG_CMD_NETREAD_RSP, |
| 53 | MSG_CMD_SENDBUF_REQ,//ÇëÇó·¢ËÍ·Ç͸Ã÷ģʽsocketÊý¾Ý |
| 54 | MSG_CMD_SENDBUF_RSP, |
| 55 | MSG_CMD_NETWRITE_REQ,//µÃµ½¿É·¢ËÍÈ·ÈϺó·¢ËÍ´ý·¢Ë͵Ädata |
| 56 | MSG_CMD_NETWRITE_RSP, |
| 57 | MSG_CMD_NETCLOSE_REQ,//¹Ø±ÕÒ»¸ösocketÁ´½Ó |
| 58 | MSG_CMD_NETCLOSE_RSP, |
| 59 | MSG_CMD_NETPING_REQ,//pingÃüÁî |
| 60 | MSG_CMD_NETPING_RSP, |
| 61 | MSG_CMD_NETACCEPT_REQ,//µ±×÷Ϊserver¶ËÊÕµ½¿Í»§¶ËÁ¬½ÓÇëÇóʱ£¬¾ö¶¨½ÓÊÜ»ò¾Ü¾ø¸ÃÇëÇó |
| 62 | MSG_CMD_NETACCEPT_RSP, |
| 63 | MSG_CMD_NETCREATE_REQ,//´´½¨Í¸Ã÷ģʽsocketÁ´½Ó |
| 64 | MSG_CMD_NETCREATE_RSP, |
| 65 | MSG_CMD_NETURC_REQ,//ÉèÖÃÖ÷¶¯Éϱ¨¿ª¹Ø |
| 66 | MSG_CMD_NETURC_RSP, |
| 67 | MSG_CMD_IPFILTER_REQ,//µ±×÷Ϊserver¶Ëʱ£¬ÉèÖÃÔÊÐíÓëÆäÁ¬½ÓµÄIPµØÖ··¶Î§ |
| 68 | MSG_CMD_IPFILTER_RSP, |
| 69 | MSG_CMD_NETACK_REQ,//²éѯijsocketµÄ·¢ËÍ»º´æÇøÕ¼ÓõĴóС¼°¿ÕÏеĴóС |
| 70 | MSG_CMD_NETACK_RSP, |
| 71 | MSG_CMD_TYPE_REQ,//²éѯ֧³ÖµÄ´«Êäģʽ ÍøÂçÖÆÊ½ ¸½¼Ó¹¦ÄÜ |
| 72 | MSG_CMD_TYPE_RSP, |
| 73 | MSG_CMD_NETACT_QUERY_REQ,//²éѯ×î½üÒ»´ÎµÄPDP¼¤»îÐÅÏ¢ |
| 74 | MSG_CMD_NETACT_QUERY_RSP, |
| 75 | //MSG_CMD_NETACT_EQUAL_QUERY_REQ, |
| 76 | //MSG_CMD_NETACT_EQUAL_QUERY_RSP, |
| 77 | MSG_CMD_NETURC_QUERY_REQ,//²éѯÉèÖõÄÖ÷¶¯Éϱ¨¿ª¹Ø |
| 78 | MSG_CMD_NETURC_QUERY_RSP, |
| 79 | MSG_CMD_IPFILTER_QUERY_REQ,//²éѯÉèÖõÄIPµØÖ·¹ýÂËÐÅÏ¢ |
| 80 | MSG_CMD_IPFILTER_QUERY_RSP, |
| 81 | MSG_CMD_NETOPEN_QUERY_REQ,//²éѯNETOPEN²ÎÊý |
| 82 | MSG_CMD_NETOPEN_QUERY_RSP, |
| 83 | MSG_CMD_DATA_TO_CMD_MODE,//͸Ã÷ģʽÓÉÊý¾Ý̬Çе½ÃüÁî̬ |
| 84 | MSG_CMD_CMD_TO_DATA_MODE,//͸Ã÷ģʽÓÉÃüÁî̬Çе½Êý¾Ý̬ |
| 85 | MSG_CMD_SOCKETLED_REQ,/*ÍøÂçͬ²½ÐźŵƿØÖÆ£¬ÓÃÓÚÍâÖÃÐÒéÕ»socketÁ¬½Ó³É¹¦Ê±£¬LEDÐźŵÆÉÁ˸¿ØÖÆ*/ |
| 86 | MSG_CMD_SOCKETLED_RSP, |
| 87 | |
| 88 | //quectel |
| 89 | MSG_CMD_QIOPEN_REQ, |
| 90 | MSG_CMD_QIOPEN_RSP, |
| 91 | MSG_CMD_QICLOSE_REQ, |
| 92 | MSG_CMD_QICLOSE_RSP, |
| 93 | MSG_CMD_QISTATE_REQ, |
| 94 | MSG_CMD_QISTATE_RSP, |
| 95 | MSG_CMD_QISEND_REQ, |
| 96 | MSG_CMD_QISEND_RSP, |
| 97 | MSG_CMD_QISENDBUF_REQ, |
| 98 | MSG_CMD_QISENDBUF_RSP, |
| 99 | MSG_CMD_QIRD_REQ, |
| 100 | MSG_CMD_QIRD_RSP, |
| 101 | MSG_CMD_QISENDEX_REQ, |
| 102 | MSG_CMD_QISENDEX_RSP, |
| 103 | MSG_CMD_QISWTMD_REQ, |
| 104 | MSG_CMD_QISWTMD_RSP, |
| 105 | MSG_CMD_QIDNSCFG_REQ, |
| 106 | MSG_CMD_QIDNSCFG_RSP, |
| 107 | MSG_CMD_QIDNSGIP_REQ, |
| 108 | MSG_CMD_QIDNSGIP_RSP, |
| 109 | MSG_CMD_QIGETERROR_REQ, |
| 110 | MSG_CMD_QIGETERROR_RSP, |
| 111 | MSG_CMD_QPING_REQ, |
| 112 | MSG_CMD_QPING_RSP, |
| 113 | MSG_CMD_QIURC, |
| 114 | |
| 115 | /*zte_ftpÏûÏ¢*/ |
| 116 | MSG_CMD_FTPOPEN_REQ, //´ò¿ªÁ¬½Ó |
| 117 | MSG_CMD_FTPOPEN_RSP, |
| 118 | MSG_CMD_FTPSTATE_REQ, //Á¬½Ó״̬²éѯ |
| 119 | MSG_CMD_FTPSTATE_RSP, |
| 120 | MSG_CMD_FTPCLOSE_REQ, //¹Ø±ÕÁ¬½Ó |
| 121 | MSG_CMD_FTPCLOSE_RSP, |
| 122 | MSG_CMD_FTPSIZE_REQ, //»ñÈ¡Îļþ³ß´ç |
| 123 | MSG_CMD_FTPSIZE_RSP, |
| 124 | MSG_CMD_FTPGET_REQ, //ÎļþÏÂÔØ |
| 125 | MSG_CMD_FTPGET_RSP, |
| 126 | MSG_CMD_FTPPUT_REQ, //ÎļþÉÏ´« |
| 127 | MSG_CMD_FTPPUT_RSP, |
| 128 | MSG_CMD_FTPFOTA_REQ, //FTP FOTAÉý¼¶ |
| 129 | MSG_CMD_FTPFOTA_RSP, |
| 130 | |
| 131 | //¹úµç |
| 132 | MSG_CMD_MYBAND_SET_REQ,//GSMƵ¶ÎËø¶¨ |
| 133 | MSG_CMD_MYBAND_QUERY_REQ, |
| 134 | MSG_CMD_GMR_QUERY_REQ,//Ä£¿é°æ±¾ºÅ»ñÈ¡ |
| 135 | |
| 136 | //Äϵç |
| 137 | MSG_CMD_MYSYSINFO_QUERY_REQ,//»ñÈ¡µ±Ç°ÍøÂç×¢²áÐÅÏ¢ |
| 138 | MSG_CMD_MYNETINFO_QUERY_REQ,//ÍøÂçÑ¡ÔñģʽµÄ²éѯºÍÉèÖà |
| 139 | MSG_CMD_MYNETINFO_SET_REQ, |
| 140 | MSG_CMD_MYURCSYSINFO_INFORM_REQ, |
| 141 | MSG_CMD_MYGPSPOS_SET_REQ, |
| 142 | MSG_CMD_MYGPSPWR_SET_REQ, |
| 143 | |
| 144 | /******************Êý¾Ý͸´«ÏìÓ¦********************/ |
| 145 | MSG_CMD_PASSTHROUGH_RSP, |
| 146 | |
| 147 | /******************͸Ã÷ģʽÏÂsocket¹Ø±Õ֪ͨÏûÏ¢********************/ |
| 148 | MSG_CMD_TRANSPARENT_SOCKET_CLOSE_IND, |
| 149 | }; |
| 150 | |
| 151 | /* ¶¨Òå¿Í»§ÀàÐÍ */ |
| 152 | typedef enum { |
| 153 | CUSTOMER_SDK = 0, |
| 154 | CUSTOMER_SDK_MIN, |
| 155 | CUSTOMER_YAOYUAN, /* Ò¢Ô¶cpe */ |
| 156 | CUSTOMER_GUODIAN, /* ¹úµç */ |
| 157 | CUSTOMER_NANDIAN /* Äϵç */ |
| 158 | } CUSTOMER_TYPE; |
| 159 | |
| 160 | #endif |
| 161 | |
| 162 | #endif |
| 163 | |