blob: 434faea04bcb28219ea985e8c2b38426cc279960 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/**
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 __AT_MSG_H__
15#define __AT_MSG_H__
16
17
18/*******************************************************************************
19 * Include header files *
20 ******************************************************************************/
21#include "message.h"
22
23
24/*******************************************************************************
25 * Macro definitions *
26 ******************************************************************************/
27/* ÏÂÃæÈý¸öÏûÏ¢ÊÇÂú×ã¿Í»§ÐèÇó£¬ÊµÏÖ¿Í»§appͨ¹ýÏûÏ¢Ö±½Ó·¢ËÍATÃüÁî¡£
28 Ô­À´¶¨ÒåµÄÈý¸öÏûÏ¢Ãû²»ºÃÀí½â£¬µ«ÒѾ­Íâ·¢¸ø¿Í»§£¬²»ÔÙÐ޸ģ¬ÄÚ²¿Öض¨Òå³ÉºÃÀí½âµÄÏûÏ¢Ãû */
29#define MSG_CMD_SET_MSG_IS_FD MSG_CMD_AT_PORT_EXT
30#define MSG_CMD_SEND_ATREQ_BY_MSG MSG_CMD_AT_REQ
31#define MSG_CMD_SEND_ATRSP_BY_MSG MSG_CMD_AT_RSP
32
33
34/*******************************************************************************
35 * Type definitions *
36 ******************************************************************************/
37#ifndef DOXYGEN_SHOULD_SKIP_THIS
38/**
39 * @brief ƽ̨Íⲿ½Ó¿ÚÏûÏ¢½Ó¿Ú¶¨Òå
40 */
41enum at_msg_type {
42 AT_OUTER_MSG_BEG = MSG_CMD_ATCTL_BASE,
43
44 /*ͨ¹ý¸ÃÏûϢ֪ͨatctlÖ÷¿ØÍ¨¹ýÀ©Õ¹Ö÷¶¯Éϱ¨ATÃüÁîʵÏֺ˼äÄ£¿éÏûÏ¢´«µÝ*/
45 MSG_CMD_SOC_MSG_REQ,
46 MSG_CMD_AT_PORT_OPEN,//mux2USB²Ù×÷ MODULE_ID_DRVCOMMNGÄ£¿é·¢ËÍ
47 MSG_CMD_AT_PORT_CLOSE,//mux2USB²Ù×÷
48
49 MSG_CMD_CMUX_SET_REQ,
50 MSG_CMD_CMUX_SET_RSP,
51
52 MSG_CMD_ZSET_REQ,//TSP°æ±¾ÅäÖÃÉèÖÃ
53 MSG_CMD_ZSET_RSP,
54
55 /****************at_ctlÓëVOLTEÖ®¼äÏûÏ¢¶¨Òå*************************/
56 MSG_CMD_FD1_ATCTL_TO_VOLTE, //at_ctl·¢ËÍÇëÇóµ½VOLTE
57 MSG_CMD_FD1_VOLTE_TO_ATCTL, //VOLTE·µ»ØÇëÇóµÄÏìÓ¦»òÕß½«ÇëÇóԭ··µ»Ø
58 MSG_CMD_FD2_ATCTL_TO_VOLTE, //at_ctl·µ»ØÏìÓ¦µ½VOLTE
59 MSG_CMD_FD2_VOLTE_TO_ATCTL, //VOLTEÖ÷¶¯·¢ËÍÇëÇóµ½at_ctl
60 /**********************ÒÔÏÂΪPSÏà¹ØµÄÒµÎñÀàÇëÇó*********************************/
61 MSG_CMD_PPP_QUICK_DISCONNECT, //ÍøÂçÖ÷¶¯È¥¼¤»îʱ£¬ÓÉpppÄ£¿éÔÚlcpЭÉÌÍê³Éºó£¬Á¢¼´Í¨Öªat_ctl¶Ï¿ª²¦ºÅ//zhangfen ²»ÐèÒªat_ctl´¦Àí
62 MSG_CMD_QUERY_CSQ_REQ, //²éѯÐźÅÇ¿¶ÈÇëÇó
63 MSG_CMD_QUERY_SYSINFO_REQ, //sysinfo²éѯÇëÇó
64 MSG_CMD_QUERY_CEREG_REQ, //cereg²éѯÇëÇó
65 MSG_CMD_CSIM_AUTH_REQ, //csimÑéÖ¤ÇëÇó
66 MSG_CMD_CSIM_AUTH_RSP, //csimÑéÖ¤ÏìÓ¦
67 MSG_CMD_CARD_MODE_REQ, //¿¨Ä£Ê½Ê¶±ðÇëÇó
68 MSG_CMD_CARD_MODE_RSP, //¿¨Ä£Ê½Ê¶±ðÏìÓ¦
69 MSG_CMD_PIN_STATUS_REQ, //pinÂë״̬ÇëÇó
70 MSG_CMD_PIN_STATUS_RSP, //pinÂë״̬ÏìÓ¦
71 MSG_CMD_PIN_VERIFY_REQ, //pinÂëÑéÖ¤ÇëÇó
72 MSG_CMD_PIN_VERIFY_RSP, //pinÂëÑéÖ¤ÏìÓ¦
73 MSG_CMD_PIN_NUM_REQ, //pinÂëÊ£Óà´ÎÊý²éѯÇëÇó
74 MSG_CMD_PIN_NUM_RSP, //pinÂëÊ£Óà´ÎÊý²éѯÏìÓ¦
75 MSG_CMD_VERIFY_PIN_REQ, //webuiÇëÇópinÂëÑéÖ¤£¬¶ÔÓ¦½á¹¹ÌåT_zAt_CpinPukSet
76 MSG_CMD_VERIFY_PUK_REQ, //webuiÇëÇópukÂëÑéÖ¤,¶ÔÓ¦½á¹¹ÌåT_zAt_CpinPukSet
77 MSG_CMD_PIN_MANAGE_REQ, //webui pinÂë¹ÜÀí(´ò¿ª¡¢¹Ø±Õ¡¢ÐÞ¸Ä),¶ÔÓ¦½á¹¹ÌåT_zAt_PinManage
78 MSG_CMD_CRSM_REQ, //crsmÇëÇó
79 MSG_CMD_CRSM_RSP, //crsmÏìÓ¦
80 MSG_CMD_CIMI_REQ, //imsi²éѯÇëÇó
81 MSG_CMD_CIMI_RSP, //imsi²éѯÏìÓ¦
82 MSG_CMD_AIRMODE_SET_REQ, //½ø³ö·ÉÐÐģʽÉèÖÃ(1½ø,0³ö)
83 MSG_CMD_NET_SELECT_REQ, //webuiÑ¡ÔñÍøÂç(×Ô¶¯ËÑÍø¡¢ÊÖ¶¯ËÑÍø)
84 MSG_CMD_NETWORK_SET_REQ, //ÊÖ¶¯ËÑÍøºó£¬Ñ¡ÔñÍøÂç×¢²á
85 MSG_CMD_USSD_SET_REQ, //USSDÉèÖÃÇëÇó
86 MSG_CMD_USSD_CANCEL_REQ, //USSDÈ¡ÏûÇëÇó
87 MSG_CMD_CELL_LOCK_REQ, //LTEÏÂËø»ò½âËøÆµÇëÇó,WEBUIÔÝʱûÓÐÕâ¸ö¹¦ÄÜ
88 MSG_CMD_IMEI_REQ, //imeiºÅ²éѯÇëÇó
89 MSG_CMD_GET_MAC_REQ, //macµØÖ·»ñÈ¡
90
91 MSG_CMD_AT_PORT_EXT, //´ò¿ªÎ±atͨµÀ£¬atͨµÀ¾ä±úµÈÓÚÄ£¿éID
92 MSG_CMD_AT_REQ, //ÒÔÏûÏ¢·½Ê½·¢ËÍATÃüÁîÇëÇó
93 MSG_CMD_AT_RSP, //ÒÔÏûÏ¢·½Ê½·¢ËÍATÃüÁîÏìÓ¦
94 MSG_CMD_SEND_AT_TO_PS, //ÓÃÓÚ·¢ËÍÇëÇóAT×Ö·û´®¸øPS
95 MSG_CMD_SEND_REQAT_TO_FARPS, //Ó¦Ó÷¢ËÍÇëÇóAT×Ö·û´®¸øÍⲿMCU
96 MSG_CMD_SEND_AT_MSG_RSP, //¾ßÌåÓ¦ÓÃÄ£¿é·¢Ë͵ÄATÇëÇóÏûÏ¢¶ÔÓ¦µÄÓ¦´ðÏûÏ¢£¬°üÀ¨²éѯÖмä½á¹ûµÄÉϱ¨
97
98 MSG_CMD_SEND_REQ_TO_APP, //at_ctl½«Íⲿ·¢Ë͵ÄATÇëÇóÖ±½Ó͸´«¸øÓ¦ÓÃ
99 MSG_CMD_SEND_RSP_TO_OUTSIDE, //¹©Ó¦Ó÷¢ËÍ͸´«×Ö·û´®¸øÎïÀíͨµÀ£¬Ò»°ãÓÃÓÚ·¢ËÍÓ¦´ðAT×Ö·û´®¸øÍⲿMCU //sunquan1130
100
101
102
103 MSG_CMD_ZVERSION_REQ, //version²éѯÇëÇó zhangfen ´ýɾ³ý£¬ÏÖÔÚÓпª»ú´ÓCPͬ²½°æ±¾ºÅµ½AP£¬²»ÐèÒª²éѯÁË
104
105 MSG_CMD_PPP_AUTH_REQ, //ppp²¦ºÅ(δʵÏÖ) //zhangfen ´ýɾ³ý
106 MSG_CMD_PPP_DEAUTH_REQ, //pppÈ¥²¦ºÅ(δʵÏÖ) //zhangfen ´ýɾ³ý
107
108 MSG_CMD_APN_SET_REQ, //apnÉèÖÃÇëÇó//zhangfen at_ctlûÓÐ×¢²áÕâ¸öÏûÏ¢£¬È·¶¨ÐèÒª?
109
110
111 MSG_CMD_ZSODCP_REQ, //zhangfen ²»ÖªµÀÓÃ;£¬Ã»ÓÐʹÓà ´ýɾ³ý
112 MSG_CMD_EXT_ZSODCP_REQ, //zhangfen ²»ÖªµÀÓÃ;£¬Ã»ÓÐʹÓà ´ýɾ³ý
113
114 MSG_CMD_MDMVERSION_REQ,//MBBÀ©Õ¹at:²éѯmodem°æ±¾ºÅ
115 MSG_CMD_MDMVERSION_RSP,
116 MSG_CMD_LTE_TECH_REQ, //zeact LTE×ÓÖÆÊ½Ñ¡Ôñ
117 MSG_CMD_LTE_TECH_RSP,
118 MSG_CMD_NITZ_REQ, //ʱ¼äͬ²½
119 MSG_CMD_NITZ_RSP,
120 MSG_CMD_AMRWB_REQ, //VOLTE¸ßÇåÓïÒô
121 MSG_CMD_AMRWB_RSP,
122 /**********************ÒÔÏÂΪ·ÇPSÏà¹ØµÄÒµÎñÀàÇëÇó*******************************/
123 MSG_CMD_SYCTIME_SET_REQ, //cp²àʱ¼äÉèÖÃÇëÇó
124
125 MSG_CMD_FORCE_RAMDUMP_REQ, //Ç¿ÖÆËÀ»úÇëÇó zhangfen ûÓÐʹÓ㬴ýɾ³ý
126 MSG_CMD_UNLOCK_REQ, //½âËøÍøÇëÇó zhangfen WEBUIÓз¢ËÍ,at_ctlûÓд¦Àí£¬´ýɾ³ý
127
128 MSG_CMD_SSID_SET_REQ, //zhangfen SSIDºÅ±£´æÔÚCP²àNV£¬¶ÔÓ¦À©Õ¹ATÃüÁîAT+SSID=XXдCPµÄNV£¬ÈôNVÒÆµ½AP£¬¸ÃÏûÏ¢¿Éɾ³ý
129 MSG_CMD_SSID_SET_RSP, //zhangfen ´ýɾ³ý
130 MSG_CMD_WIFIKEY_SET_REQ, //zhangfen WIFIKEY±£´æÔÚCP²àNV£¬ÈôNVÒÆµ½AP£¬´ËÏûÏ¢¿ÉÒÔɾ³ý
131 MSG_CMD_WIFIKEY_SET_RSP, //zhangfen ͬÉÏ
132
133 /**********************ÒÔÏÂΪPSÏà¹ØµÄÖ÷¶¯Éϱ¨ÏûÏ¢ºê***********************************/
134 MSG_CMD_SIM_ABNORMAL_IND, //¿ª»ú²éѯÎÞ¿¨£¬¿¨Ë𻵣¬ÐèÒªPIN¡¢PUKʱÉϱ¨
135 MSG_CMD_PDP_STATUS_IND, //PDPÁ´Â·×´Ì¬Ö¸Ê¾ "1"PDP¼¤»î "0"PDPÈ¥¼¤»î
136 MSG_CMD_ZPBIC_IND, //¿¨³õʼ»¯Íê³ÉÉϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zAt_ZpbicRes
137 MSG_CMD_ZUSLOT_IND, //¿¨²å°ÎÐÅÏ¢Éϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zAt_ZuslotRes
138 MSG_CMD_CREG_IND, //ÍøÂç×¢²á³É¹¦ÏûÏ¢Éϱ¨£¬creg_stat=1 or 5
139
140
141 /**********************ÒÔÏÂΪpsÏà¹ØµÄ·þÎñ¶ËÇëÇóÏûÏ¢ºê***********************************/
142 SERVER_BASE,
143
144 SERVER_END,
145
146 /**********************ÒÔÏÂΪ·ÇPSÏà¹ØµÄ·þÎñ¶ËÇëÇóÏûÏ¢ºê*************************/
147 EXTAT_SERVER_BASE,
148
149 EXTAT_SERVER_END,
150
151 /**********************ÒÔÏÂΪ²»È·¶¨²¿·Ö,δʹÓ㬴ýɾ³ý*************************/
152 MSG_CMD_WEB_REQ_RESET_MODEM, //Ôݲ»È·¶¨
153 MSG_CMD_WEB_REQ_SERAILPORT_ON, //Ôݲ»È·¶¨
154 MSG_CMD_WEB_LOG_DIRECTION, //Ôݲ»È·¶¨
155 MSG_CMD_SIM_INIT_READY, //Ôݲ»È·¶¨,ÇëÒÆÖÁwifi
156 MSG_CMD_WEB_REQ_TCARDSET, //t¿¨ÉèÖã¬Ôݲ»È·¶¨
157 MSG_CMD_GET_LOG_DIR, //Ôݲ»È·¶¨
158 MSG_CMD_GET_LOG_DIR_OK, //Ôݲ»È·¶¨
159
160
161 /***************¶ÌÐÅÏà¹Ø begin******************************/
162 MSG_CMD_SENDSMS_REQ, //·¢ËͶÌÐÅÇëÇó ¶ÔÓ¦½á¹¹ÌåT_zSms_SendSmsReq
163 MSG_CMD_SENDSMS_RSP,
164 MSG_CMD_DELSMS_REQ, //ɾ³ý¶ÌÐÅÇëÇó ¶ÔÓ¦½á¹¹ÌåT_zSms_DelSmsReq
165 MSG_CMD_DELSMS_RSP,
166 MSG_CMD_STORAGE_CAP_REQ, //ÉÏ²ã´æ´¢ÄÜÁ¦ÇëÇó ¶ÔÓ¦½á¹¹ÌåT_zSms_StroageReq
167 MSG_CMD_STORAGE_CAP_RSP,
168 MSG_CMD_MODIFY_TAG_REQ, //Ð޸ĶÌÐÅ״̬ΪÒѶÁ ¶ÔÓ¦½á¹¹ÌåT_zSms_ModifyTagReq
169 MSG_CMD_MODIFY_TAG_RSP,
170 MSG_CMD_READSMS_REQ, //¶Á¶ÌÐÅÇëÇó ¶ÔÓ¦½á¹¹ÌåT_zSms_ReadSmsReq
171 MSG_CMD_READSMS_RSP, //¶Á¶ÌÐÅÏìÓ¦
172 MSG_CMD_SCA_SET_REQ, //SCAÉèÖÃÇëÇó ¶ÔÓ¦½á¹¹ÌåT_zSms_SetScaReq
173 MSG_CMD_SCA_SET_RSP,
174 MSG_CMD_NOTIFY_SET_REQ, //¶ÌÐÅ֪ͨģʽÉèÖà ¶ÔÓ¦½á¹¹ÌåT_zSms_NotifySetReq
175 MSG_CMD_NOTIFY_SET_RSP,
176 MSG_CMD_SMSACK_REQ, //È·È϶ÌÐÅ ¶ÔÓ¦½á¹¹ÌåT_zSms_SmsAckReq
177 MSG_CMD_SMSACK_RSP,
178 MSG_CMD_SMSINIT_REQ, //¶ÌÐÅÄ£¿é³õʼ»¯
179 MSG_CMD_SMSINIT_RSP,
180
181 MSG_CMD_NEWSMS_IND, //жÌÐÅÉϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zSms_SmsInd
182 MSG_CMD_NEWSMS_STATUS_IND, //жÌÐÅ״̬Éϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zSms_SmsInd
183 MSG_CMD_NEWSMS_INDEX_IND, //жÌÐÅindexÉϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zSms_SmsIndexInd
184 MSG_CMD_NEWSMS_STATUS_INDEX_IND,//жÌÐÅ״̬±¨¸æµ½´ïָʾ ¶ÔÓ¦½á¹¹ÌåT_zSms_SmsIndexInd
185 MSG_CMD_ZMGR_IND, //¶Á¶ÌÐÅÖмäÄÚÈÝÖ÷¶¯Éϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zSms_SmsInd
186 MSG_CMD_CSCA_IND, //¶ÌÐÅÖÐÐĽá¹ûÉϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zSms_CscaInd
187 MSG_CMD_ZMGL_IND, //¶ÌÐÅÁбíÐÅÏ¢Éϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zSms_SmsInd
188 MSG_CMD_CPMS_IND, //¶ÌÐÅ´æ´¢ÇøÒÑÓúÍ×ÜÈÝÁ¿Éϱ¨ ¶ÔÓ¦½á¹¹ÌåT_zSms_CpmsInd
189 /**************¶ÌÐÅÏà¹Ø end**************************/
190
191 /***ÃûƬ¼ÐÏà¹Ø begin****/
192 MSG_CMD_READ_PB_REQ,//¶ÁÈ¡µ¥ÌõÃûƬ¼ÐÇëÇó
193 MSG_CMD_READ_PB_RSP,//¶ÁÈ¡µ¥ÌõÃûƬ¼Ð»Ø¸´
194 MSG_CMD_ADD_MODIFY_PB_REQ,//Ð޸ĵ¥ÌõÃûƬ¼ÐÇëÇó
195 MSG_CMD_ADD_MODIFY_PB_RSP,//Ð޸ĵ¥ÌõÃûƬ¼Ð»Ø¸´
196 MSG_CMD_DELETE_PB_REQ,//ɾ³ýÃûƬ¼ÐÇëÇó
197 MSG_CMD_DELETE_PB_RSP,//ɾ³ýÃûƬ¼Ð»Ø¸´
198 MSG_CMD_PBINIT_REQ,//³õʼ»¯ÃûƬ¼ÐÇëÇó
199 MSG_CMD_PBINIT_RSP,//³õʼ»¯ÃûƬ¼Ð»Ø¸´
200 MSG_CMD_CPBS_IND,//²éѯpbÐÅÏ¢µÄ×Ü´æ´¢Æ÷¸öÊý¡¢ÒÑÓô洢Æ÷¸öÊýÐÅÏ¢
201 MSG_CMD_SCPBR_IND,//²éѯpbµÄÈÝÁ¿¼°´æ´¢ÀàÐÍ
202 MSG_CMD_SCPBR_READ_IND,//²éѯµ¥ÌõpbÐÅÏ¢Öмä¹ý³ÌÉϱ¨
203 /***ÃûƬ¼ÐÏà¹Ø end****/
204
205 //Ìṩ¸øccappʹÓÃ
206 MSG_CMD_ATD_DIAL_REQ,
207 MSG_CMD_ATD_DIAL_RSP,
208 MSG_CMD_ATA_REQ,
209 MSG_CMD_ATA_RSP,
210 MSG_CMD_CHUP_REQ,
211 MSG_CMD_CHUP_RSP,
212 MSG_CMD_VTS_REQ,
213 MSG_CMD_VTS_RSP,
214 MSG_CMD_ZIMSPLUS_REQ,
215 MSG_CMD_ZIMSPLUS_RSP,
216 MSG_CMD_CCFC_REQ,
217 MSG_CMD_CCFC_RSP,
218 MSG_CMD_CHLD_REQ,
219 MSG_CMD_CHLD_RSP,
220 MSG_CMD_CLCK_REQ,
221 MSG_CMD_CLCK_RSP,
222 MSG_CMD_SET_VPLOOP_REQ,
223 /****************/
224 //Ìṩ¸øccappʹÓÃ
225 MSG_CMD_DSCI_IND,
226 MSG_CMD_ZIMSPLUS_IND,
227 MSG_CMD_ZCPI,
228 MSG_CMD_ZVOICECHNL,
229
230 MSG_CMD_MODEMREG_INFO_REQ, //ÊÕµ½ZPBICºó´¥·¢Ð­ÒéÕ»¹Ì¶¨ÐÅÏ¢»ñȡʼþÁ´ZICCID CIMI CNUM
231 MSG_CMD_MODEMREG_INFO_RSP,
232 MSG_CMD_ROAM_STATUS_IND, //ÂþÓÎ״̬·¢Éú±ä»¯Ö¸Ê¾
233
234 /******************Ö÷¶¯Éϱ¨¼°Öмä½á¹ûÉϱ¨********************/
235 MSG_CMD_AUTO_RSP,
236
237 /***************************NV******************************/
238 MSG_CMD_SYNC_NV_REQ, //AP²à·¢ÆðNVͬ²½ÇëÇ󣬽«nvͬ²½µ½CP
239
240
241 /***************************AT_CTL******************************/
242 MSG_CMD_DATASWITCH_ON_REQ, //CPÊý¾Ý¿ª¹Ø(²¦ºÅÉÏÍø)֪ͨAP
243 MSG_CMD_DATASWITCH_OFF_REQ, //CPÊý¾Ý¿ª¹Ø(È¥²¦ºÅ)֪ͨAP
244
245 MSG_CMD_AT_FILTER_REQ, //AP֪ͨCPÐèÒª¹ýÂËÖ÷¶¯Éϱ¨µÄATÃüÁî
246 MSG_CMD_SYNC_ATCMD_STREAM, //AP²à·¢ÆðNVͬ²½£¬ÒòATÃüÁîÁ÷½Ï³¤ÇÒÃüÁ˫ÒýºÅ£¬µ¥¶Àͬ²½
247
248/**------------------------ÒÔÏÂÊÇOPENCPUµÄÏûÏ¢ID-----------------------------**/
249 MSG_CMD_PDP_ACT_REQ, //pdp¼¤»îÒµÎñÇëÇ󣬶ÔÓ¦½á¹¹ÌåAT_PDP_ACT_INFO
250 MSG_CMD_PDP_ACT_RSP, //pdp¼¤»îÒµÎñÏìÓ¦£¬¶ÔÓ¦½á¹¹ÌåAT_PDP_ACT_RSP
251 MSG_CMD_PDP_DEACT_REQ, //pdpÈ¥¼¤»îÒµÎñÇëÇ󣬶ÔÓ¦½á¹¹ÌåAT_PDP_DEACT_INFO
252 MSG_CMD_PDP_DEACT_RSP, //pdpÈ¥¼¤»îÒµÎñÏìÓ¦£¬¶ÔÓ¦½á¹¹ÌåAT_PDP_DEACT_RSP
253 MSG_CMD_PDP_DEACT_IND, //pdpÍøÂç²àÈ¥¼¤»îָʾ£¬ÏûϢЯ´øÈ¥¼¤»îµÄcidºÅ
254/**--------------------------------------------------------------------------**/
255 MSG_CMD_QUERY_CGDCONT_REQ, //оƬÈÏÖ¤°æ±¾²éѯcgdcontÏûÏ¢
256 MSG_CMD_ZUTR_REQ, //´¦ÀízupciµÄÏìÓ¦
257 MSG_CMD_QUERY_CGCONTRDP_REQ, //CGCONTRDP²éѯÇëÇó
258 MSG_CMD_ROAM_SET_REQ, //webuiÑ¡Ôñroam
259 MSG_CMD_ZCARDSWITCHIND_IND, //ZCARDSWITCHIND
260 MSG_CMD_VSIMDEBUG_IND, //VSIMDEBUG
261};
262#endif
263
264typedef struct {
265 int result; //´¦Àí½á¹û
266 int errcode; //´íÎóÂë
267 unsigned short msg_cmd;//ÏûÏ¢ÀàÐÍ
268 int extcid; //channel
269 int act_type; // 0 È¥¼¤»î 1 ¼¤»î
270 char ip[128];//ip
271 int urc_switch; //0 ¹Ø±ÕÖ÷¶¯Éϱ¨ 1 ´ò¿ªÖ÷¶¯Éϱ¨
272} AT_COMM_RSPMSG;
273
274//¶ÔÓ¦ÏûÏ¢MSG_CMD_SEND_AT_MSG_REQ
275struct app_send_req_at{
276 char atstr[MSG_DATA_MAX_LEN-12];
277 int str_len;//¸Ã±äÁ¿ÎªÁ˽â¾ö¶þ½øÖÆÂëÁ÷µÄÖ±½Ó·¢ËÍ£¬ÎÞ·¨Ö±½ÓʹÓÃstrlen
278 int timeout;
279};
280
281
282/*ÉϲãÓ¦ÓÃÐèÒªÒÔÏûÏ¢ÐÎʽ·¢ËÍÖ÷¶¯Éϱ¨ÃüÁîµ½Íⲿmcu*/
283typedef struct {
284 char autorsp_cmd[MSG_DATA_MAX_LEN-8]; //Êý×鳤¶ÈÊÇÏûÏ¢ÄÚÈÝ×î´ó³¤¶È¼õ2*intÀàÐ͵ij¤¶È
285 int len;
286} AT_AUTORSP_INFO;
287
288/*ÉϲãÓ¦Óô¦ÀíÍê͸´«Êý¾ÝºóµÄÏìÓ¦ÏûÏ¢*/
289typedef struct {
290 char rsp_cmd[MSG_DATA_MAX_LEN - 8];
291 int len;
292} AT_PASSTHROUGH_RSP;
293
294/* ¶ÔÓ¦VOLTEÓëAT_CTLÖ®¼ä½»»¥µÄÏûÏ¢MSG_CMD_FD2_VOLTE_TO_ATCTL/MSG_CMD_FD2_ATCTL_TO_VOLTE */
295typedef struct
296{
297 char msg_data[MSG_DATA_MAX_LEN-12];
298 int msg_len;
299 int at_fd;
300}VOLTE_MSG_DATA;
301
302
303#endif
304