blob: 707f6a9c4d959df411dc3c345f0b70d7c5997851 [file] [log] [blame]
b.liud440f9f2025-04-18 10:44:31 +08001/*
2*
3* Author : lb
4* Date : 2021/11/4 14:08:32
5*
6*/
7#ifndef MBTK_AT_TABLES_H
8#define MBTK_AT_TABLES_H
9#define MBTK_PARAM_OPTIONAL utlAT_PARAMETER_PRESENCE_OPTIONAL
10#define MBTK_PARAM_REQUIRED utlAT_PARAMETER_PRESENCE_REQUIRED
11#define MBTK_PARAM_DECIMAL(optional) utlDEFINE_DECIMAL_AT_PARAMETER(utlAT_PARAMETER_ACCESS_READ_WRITE, optional)
12#define MBTK_PARAM_STRING(optional) utlDEFINE_STRING_AT_PARAMETER(utlAT_PARAMETER_ACCESS_READ_WRITE, optional)
13#define MBTK_PARAM_QSTRING(optional) utlDEFINE_QSTRING_AT_PARAMETER(utlAT_PARAMETER_ACCESS_READ_WRITE, optional)
14#define MBTK_AT_DEFINE(name, param_optional, syntax, at_process) \
15 utlDEFINE_EXTENDED_MBTK_AT_COMMAND(name, param_optional, syntax, at_process, at_process),
16#define MBTK_AT_DEFINE_VSYNTAX(name, param_optional, at_process) \
17 utlDEFINE_EXTENDED_VSYNTAX_MBTK_AT_COMMAND(name, param_optional, at_process, at_process, at_process),
18#endif /* MBTK_AT_TABLES_H */
19
20
21////////////////////////////////////Parameter Definition Start///////////////////////////////////////////////
22#ifdef MBTK_AT_COMMAND_PARAM
23static utlAtParameter_T atMTEST_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
24static utlAtParameter_T atSYSTIME_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
25static utlAtParameter_T atMTESTF_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
26static utlAtParameter_T atMSHELL_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
27static utlAtParameter_T atREVTEST_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
28static utlAtParameter_T atADC_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
29static utlAtParameter_T atGPIO_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
30static utlAtParameter_T atNETLED_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
31static utlAtParameter_T atGNSS_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
32static utlAtParameter_T atGNSSRESET_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
33static utlAtParameter_T atSYSSLEEP_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
34static utlAtParameter_T atMPORTCFG_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
35static utlAtParameter_T atURCECHO_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
36static utlAtParameter_T atMGPSTEST_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
37static utlAtParameter_T atMGPSC_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
38
39
40static utlAtParameter_T atCFTPPORT_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
41static utlAtParameter_T atCFTPUN_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
42static utlAtParameter_T atCFTPPW_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
43static utlAtParameter_T atCFTPTLS_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
44static utlAtParameter_T atCFTPSERV_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
45static utlAtParameter_T atCFTPTYPE_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
46static utlAtParameter_T atCFTPMKD_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
47static utlAtParameter_T atCFTPRMD_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
48static utlAtParameter_T atCFTPDEL_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
49static utlAtParameter_T atCFTPPUTFILE_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED),MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
50static utlAtParameter_T atCFTPPUT_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
51static utlAtParameter_T atCFTPGETFILE_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED),MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
52static utlAtParameter_T atCFTPGET_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
53static utlAtParameter_T atCFTPLIST_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
54
55#if 1//def MBTK_TCP_SUPPORT
56static utlAtParameter_T cipopen_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED),MBTK_PARAM_STRING(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
57static utlAtParameter_T cipclose_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
58static utlAtParameter_T cipsend_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_STRING(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_STRING(MBTK_PARAM_OPTIONAL)};
59static utlAtParameter_T ciprxget_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
60static utlAtParameter_T mcipcfgpl_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
61static utlAtParameter_T mcipcfg_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
62static utlAtParameter_T cipopquery_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
63
64#endif
65
66static utlAtParameter_T atCGDRT_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
67static utlAtParameter_T atCGSETV_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_OPTIONAL)};
68static utlAtParameter_T atMDUMP_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
69
70static utlAtParameter_T atHTTPRQH_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED), MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
71static utlAtParameter_T atHTTPPARA_params[] = { MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED), MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)\
72 ,MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED),MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
73static utlAtParameter_T atHTTPACTION_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
74static utlAtParameter_T atHTTPTYPE_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
75static utlAtParameter_T atHTTPREAD_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED)};
76static utlAtParameter_T atHTTPDATAEX_params[] = { MBTK_PARAM_DECIMAL(MBTK_PARAM_REQUIRED), MBTK_PARAM_STRING(MBTK_PARAM_REQUIRED)};
77
78#endif
79////////////////////////////////////Parameter Definition End/////////////////////////////////////////////////
80
81
82////////////////////////////////////Function Definition Start////////////////////////////////////////////////
83#ifdef MBTK_AT_COMMAND_FUNCTION
84utlReturnCode_T MBTK_AT_MTEST_PROCESS(const utlAtParameterOp_T op,
85 const char *command_name_p,
86 const utlAtParameterValue_P2c parameter_values_p,
87 const size_t num_parameters,
88 const char *info_text_p,
89 unsigned int *xid_p,
90 void *arg_p);
91utlReturnCode_T MBTK_AT_MINFO_PROCESS(const utlAtParameterOp_T op,
92 const char *command_name_p,
93 const utlAtParameterValue_P2c parameter_values_p,
94 const size_t num_parameters,
95 const char *info_text_p,
96 unsigned int *xid_p,
97 void *arg_p);
98
99utlReturnCode_T MBTK_AT_SYSTIME_PROCESS(const utlAtParameterOp_T op,
100 const char *command_name_p,
101 const utlAtParameterValue_P2c parameter_values_p,
102 const size_t num_parameters,
103 const char *info_text_p,
104 unsigned int *xid_p,
105 void *arg_p);
106
107utlReturnCode_T MBTK_AT_MTESTF_PROCESS(const utlAtParameterOp_T op,
108 const char *command_name_p,
109 const utlAtParameterValue_P2c parameter_values_p,
110 const size_t num_parameters,
111 const char *info_text_p,
112 unsigned int *xid_p,
113 void *arg_p);
114
115utlReturnCode_T MBTK_AT_MSHELL_PROCESS(const utlAtParameterOp_T op,
116 const char *command_name_p,
117 const utlAtParameterValue_P2c parameter_values_p,
118 const size_t num_parameters,
119 const char *info_text_p,
120 unsigned int *xid_p,
121 void *arg_p);
122utlReturnCode_T MBTK_AT_ISLKVRSCAN_PROCESS(const utlAtParameterOp_T op,
123 const char *command_name_p,
124 const utlAtParameterValue_P2c parameter_values_p,
125 const size_t num_parameters,
126 const char *info_text_p,
127 unsigned int *xid_p,
128 void *arg_p);
129utlReturnCode_T MBTK_AT_SDTEST_PROCESS(const utlAtParameterOp_T op,
130 const char *command_name_p,
131 const utlAtParameterValue_P2c parameter_values_p,
132 const size_t num_parameters,
133 const char *info_text_p,
134 unsigned int *xid_p,
135 void *arg_p);
136utlReturnCode_T MBTK_AT_SPKTEST_PROCESS(const utlAtParameterOp_T op,
137 const char *command_name_p,
138 const utlAtParameterValue_P2c parameter_values_p,
139 const size_t num_parameters,
140 const char *info_text_p,
141 unsigned int *xid_p,
142 void *arg_p);
143utlReturnCode_T MBTK_AT_MICTEST_PROCESS(const utlAtParameterOp_T op,
144 const char *command_name_p,
145 const utlAtParameterValue_P2c parameter_values_p,
146 const size_t num_parameters,
147 const char *info_text_p,
148 unsigned int *xid_p,
149 void *arg_p);
150utlReturnCode_T MBTK_AT_REVTEST_PROCESS(const utlAtParameterOp_T op,
151 const char *command_name_p,
152 const utlAtParameterValue_P2c parameter_values_p,
153 const size_t num_parameters,
154 const char *info_text_p,
155 unsigned int *xid_p,
156 void *arg_p);
157utlReturnCode_T MBTK_AT_GPIOTEST_PROCESS(const utlAtParameterOp_T op,
158 const char *command_name_p,
159 const utlAtParameterValue_P2c parameter_values_p,
160 const size_t num_parameters,
161 const char *info_text_p,
162 unsigned int *xid_p,
163 void *arg_p);
164utlReturnCode_T MBTK_AT_ADCGETV_PROCESS(const utlAtParameterOp_T op,
165 const char *command_name_p,
166 const utlAtParameterValue_P2c parameter_values_p,
167 const size_t num_parameters,
168 const char *info_text_p,
169 unsigned int *xid_p,
170 void *arg_p);
171
172utlReturnCode_T MBTK_AT_RGMIITEST_PROCESS(const utlAtParameterOp_T op,
173 const char *command_name_p,
174 const utlAtParameterValue_P2c parameter_values_p,
175 const size_t num_parameters,
176 const char *info_text_p,
177 unsigned int *xid_p,
178 void *arg_p);
179
180
181
182
183utlReturnCode_T MBTK_AT_CGNETLED_PROCESS(const utlAtParameterOp_T op,
184 const char *command_name_p,
185 const utlAtParameterValue_P2c parameter_values_p,
186 const size_t num_parameters,
187 const char *info_text_p,
188 unsigned int *xid_p,
189 void *arg_p);
190utlReturnCode_T MBTK_AT_SYSSLEEP_PROCESS(const utlAtParameterOp_T op,
191 const char *command_name_p,
192 const utlAtParameterValue_P2c parameter_values_p,
193 const size_t num_parameters,
194 const char *info_text_p,
195 unsigned int *xid_p,
196 void *arg_p);
197
198utlReturnCode_T MBTK_AT_MGPSC_PROCESS(const utlAtParameterOp_T op,
199 const char *command_name_p,
200 const utlAtParameterValue_P2c parameter_values_p,
201 const size_t num_parameters,
202 const char *info_text_p,
203 unsigned int *xid_p,
204 void *arg_p);
205
206utlReturnCode_T MBTK_AT_MPORTCFG_PROCESS(const utlAtParameterOp_T op,
207 const char *command_name_p,
208 const utlAtParameterValue_P2c parameter_values_p,
209 const size_t num_parameters,
210 const char *info_text_p,
211 unsigned int *xid_p,
212 void *arg_p);
213
214utlReturnCode_T MBTK_AT_MURCECHO_PROCESS(const utlAtParameterOp_T op,
215 const char *command_name_p,
216 const utlAtParameterValue_P2c parameter_values_p,
217 const size_t num_parameters,
218 const char *info_text_p,
219 unsigned int *xid_p,
220 void *arg_p);
221
222RETURNCODE_T MBTK_AT_READVER_PROCESS( const utlAtParameterOp_T op,
223 const char *command_name_p,
224 const utlAtParameterValue_P2c parameter_values_p,
225 const size_t num_parameters,
226 const char *info_text_p,
227 unsigned int *xid_p,
228 void *arg_p);
229
230
231utlReturnCode_T MBTK_AT_CFTPPORT_PROCESS(const utlAtParameterOp_T op,
232 const char *command_name_p,
233 const utlAtParameterValue_P2c parameter_values_p,
234 const size_t num_parameters,
235 const char *info_text_p,
236 unsigned int *xid_p,
237 void *arg_p);
238
239utlReturnCode_T MBTK_AT_CFTPUN_PROCESS(const utlAtParameterOp_T op,
240 const char *command_name_p,
241 const utlAtParameterValue_P2c parameter_values_p,
242 const size_t num_parameters,
243 const char *info_text_p,
244 unsigned int *xid_p,
245 void *arg_p);
246
247utlReturnCode_T MBTK_AT_CFTPPW_PROCESS(const utlAtParameterOp_T op,
248 const char *command_name_p,
249 const utlAtParameterValue_P2c parameter_values_p,
250 const size_t num_parameters,
251 const char *info_text_p,
252 unsigned int *xid_p,
253 void *arg_p);
254
255utlReturnCode_T MBTK_AT_CFTPTLS_PROCESS(const utlAtParameterOp_T op,
256 const char *command_name_p,
257 const utlAtParameterValue_P2c parameter_values_p,
258 const size_t num_parameters,
259 const char *info_text_p,
260 unsigned int *xid_p,
261 void *arg_p);
262
263utlReturnCode_T MBTK_AT_CFTPSERV_PROCESS(const utlAtParameterOp_T op,
264 const char *command_name_p,
265 const utlAtParameterValue_P2c parameter_values_p,
266 const size_t num_parameters,
267 const char *info_text_p,
268 unsigned int *xid_p,
269 void *arg_p);
270
271utlReturnCode_T MBTK_AT_CFTPTYPE_PROCESS(const utlAtParameterOp_T op,
272 const char *command_name_p,
273 const utlAtParameterValue_P2c parameter_values_p,
274 const size_t num_parameters,
275 const char *info_text_p,
276 unsigned int *xid_p,
277 void *arg_p);
278
279utlReturnCode_T MBTK_AT_CFTPMKD_PROCESS(const utlAtParameterOp_T op,
280 const char *command_name_p,
281 const utlAtParameterValue_P2c parameter_values_p,
282 const size_t num_parameters,
283 const char *info_text_p,
284 unsigned int *xid_p,
285 void *arg_p);
286
287utlReturnCode_T MBTK_AT_CFTPRMD_PROCESS(const utlAtParameterOp_T op,
288 const char *command_name_p,
289 const utlAtParameterValue_P2c parameter_values_p,
290 const size_t num_parameters,
291 const char *info_text_p,
292 unsigned int *xid_p,
293 void *arg_p);
294
295utlReturnCode_T MBTK_AT_CFTPDEL_PROCESS(const utlAtParameterOp_T op,
296 const char *command_name_p,
297 const utlAtParameterValue_P2c parameter_values_p,
298 const size_t num_parameters,
299 const char *info_text_p,
300 unsigned int *xid_p,
301 void *arg_p);
302
303utlReturnCode_T MBTK_AT_CFTPPUTFILE_PROCESS(const utlAtParameterOp_T op,
304 const char *command_name_p,
305 const utlAtParameterValue_P2c parameter_values_p,
306 const size_t num_parameters,
307 const char *info_text_p,
308 unsigned int *xid_p,
309 void *arg_p);
310
311utlReturnCode_T MBTK_AT_CFTPPUT_PROCESS(const utlAtParameterOp_T op,
312 const char *command_name_p,
313 const utlAtParameterValue_P2c parameter_values_p,
314 const size_t num_parameters,
315 const char *info_text_p,
316 unsigned int *xid_p,
317 void *arg_p);
318
319utlReturnCode_T MBTK_AT_CFTPGETFILE_PROCESS(const utlAtParameterOp_T op,
320 const char *command_name_p,
321 const utlAtParameterValue_P2c parameter_values_p,
322 const size_t num_parameters,
323 const char *info_text_p,
324 unsigned int *xid_p,
325 void *arg_p);
326
327utlReturnCode_T MBTK_AT_CFTPGET_PROCESS(const utlAtParameterOp_T op,
328 const char *command_name_p,
329 const utlAtParameterValue_P2c parameter_values_p,
330 const size_t num_parameters,
331 const char *info_text_p,
332 unsigned int *xid_p,
333 void *arg_p);
334
335utlReturnCode_T MBTK_AT_CFTPLIST_PROCESS(const utlAtParameterOp_T op,
336 const char *command_name_p,
337 const utlAtParameterValue_P2c parameter_values_p,
338 const size_t num_parameters,
339 const char *info_text_p,
340 unsigned int *xid_p,
341 void *arg_p);
342
343#if 1//def MBTK_TCP_SUPPORT
344utlReturnCode_T MBTK_AT_NETOPEN_PROCESS( const utlAtParameterOp_T op,
345 const char *command_name_p,
346 const utlAtParameterValue_P2c parameter_values_p,
347 const size_t num_parameters,
348 const char *info_text_p,
349 unsigned int *xid_p,
350 void *arg_p);
351
352utlReturnCode_T MBTK_AT_NETCLOSE_PROCESS( const utlAtParameterOp_T op,
353 const char *command_name_p,
354 const utlAtParameterValue_P2c parameter_values_p,
355 const size_t num_parameters,
356 const char *info_text_p,
357 unsigned int *xid_p,
358 void *arg_p);
359
360
361utlReturnCode_T MBTK_AT_CIPOPEN_PROCESS( const utlAtParameterOp_T op,
362 const char *command_name_p,
363 const utlAtParameterValue_P2c parameter_values_p,
364 const size_t num_parameters,
365 const char *info_text_p,
366 unsigned int *xid_p,
367 void *arg_p);
368
369utlReturnCode_T MBTK_AT_CIPCLOSE_PROCESS( const utlAtParameterOp_T op,
370 const char *command_name_p,
371 const utlAtParameterValue_P2c parameter_values_p,
372 const size_t num_parameters,
373 const char *info_text_p,
374 unsigned int *xid_p,
375 void *arg_p);
376
377
378utlReturnCode_T MBTK_AT_CIPSEND_PROCESS( const utlAtParameterOp_T op,
379 const char *command_name_p,
380 const utlAtParameterValue_P2c parameter_values_p,
381 const size_t num_parameters,
382 const char *info_text_p,
383 unsigned int *xid_p,
384 void *arg_p);
385
386utlReturnCode_T MBTK_AT_CIPRXGET_PROCESS( const utlAtParameterOp_T op,
387 const char *command_name_p,
388 const utlAtParameterValue_P2c parameter_values_p,
389 const size_t num_parameters,
390 const char *info_text_p,
391 unsigned int *xid_p,
392 void *arg_p);
393
394utlReturnCode_T MBTK_AT_MCIPCFGPL_PROCESS( const utlAtParameterOp_T op,
395 const char *command_name_p,
396 const utlAtParameterValue_P2c parameter_values_p,
397 const size_t num_parameters,
398 const char *info_text_p,
399 unsigned int *xid_p,
400 void *arg_p);
401
402utlReturnCode_T MBTK_AT_MCIPCFG_PROCESS( const utlAtParameterOp_T op,
403 const char *command_name_p,
404 const utlAtParameterValue_P2c parameter_values_p,
405 const size_t num_parameters,
406 const char *info_text_p,
407 unsigned int *xid_p,
408 void *arg_p);
409
410utlReturnCode_T MBTK_AT_USEDDATA_PROCESS( const utlAtParameterOp_T op,
411 const char *command_name_p,
412 const utlAtParameterValue_P2c parameter_values_p,
413 const size_t num_parameters,
414 const char *info_text_p,
415 unsigned int *xid_p,
416 void *arg_p);
417
418utlReturnCode_T MBTK_AT_CLEARDATA_PROCESS( const utlAtParameterOp_T op,
419 const char *command_name_p,
420 const utlAtParameterValue_P2c parameter_values_p,
421 const size_t num_parameters,
422 const char *info_text_p,
423 unsigned int *xid_p,
424 void *arg_p);
425
426utlReturnCode_T MBTK_AT_CIPOPQUERY_PROCESS( const utlAtParameterOp_T op,
427 const char *command_name_p,
428 const utlAtParameterValue_P2c parameter_values_p,
429 const size_t num_parameters,
430 const char *info_text_p,
431 unsigned int *xid_p,
432 void *arg_p);
433
434#endif
435utlReturnCode_T MBTK_AT_CGDRT_PROCESS(const utlAtParameterOp_T op,
436 const char *command_name_p,
437 const utlAtParameterValue_P2c parameter_values_p,
438 const size_t num_parameters,
439 const char *info_text_p,
440 unsigned int *xid_p,
441 void *arg_p);
442
443utlReturnCode_T MBTK_AT_CGSETV_PROCESS(const utlAtParameterOp_T op,
444 const char *command_name_p,
445 const utlAtParameterValue_P2c parameter_values_p,
446 const size_t num_parameters,
447 const char *info_text_p,
448 unsigned int *xid_p,
449 void *arg_p);
450
451utlReturnCode_T MBTK_AT_MDUMP_PROCESS(const utlAtParameterOp_T op,
452 const char *command_name_p,
453 const utlAtParameterValue_P2c parameter_values_p,
454 const size_t num_parameters,
455 const char *info_text_p,
456 unsigned int *xid_p,
457 void *arg_p);
458
459//MBTK_AT_HTTP_H
460utlReturnCode_T MBTK_AT_HTTPOPEN_PROCESS(const utlAtParameterOp_T op,
461 const char *command_name_p,
462 const utlAtParameterValue_P2c parameter_values_p,
463 const size_t num_parameters,
464 const char *info_text_p,
465 unsigned int *xid_p,
466 void *arg_p);
467
468utlReturnCode_T MBTK_AT_HTTPCLOSE_PROCESS(const utlAtParameterOp_T op,
469 const char *command_name_p,
470 const utlAtParameterValue_P2c parameter_values_p,
471 const size_t num_parameters,
472 const char *info_text_p,
473 unsigned int *xid_p,
474 void *arg_p);
475
476utlReturnCode_T MBTK_AT_HTTPSEND_PROCESS(const utlAtParameterOp_T op,
477 const char *command_name_p,
478 const utlAtParameterValue_P2c parameter_values_p,
479 const size_t num_parameters,
480 const char *info_text_p,
481 unsigned int *xid_p,
482 void *arg_p);
483
484utlReturnCode_T MBTK_AT_HTTPRQH_PROCESS(const utlAtParameterOp_T op,
485 const char *command_name_p,
486 const utlAtParameterValue_P2c parameter_values_p,
487 const size_t num_parameters,
488 const char *info_text_p,
489 unsigned int *xid_p,
490 void *arg_p);
491
492utlReturnCode_T MBTK_AT_HTTPACTION_PROCESS(const utlAtParameterOp_T op,
493 const char *command_name_p,
494 const utlAtParameterValue_P2c parameter_values_p,
495 const size_t num_parameters,
496 const char *info_text_p,
497 unsigned int *xid_p,
498 void *arg_p);
499
500utlReturnCode_T MBTK_AT_HTTPTYPE_PROCESS(const utlAtParameterOp_T op,
501 const char *command_name_p,
502 const utlAtParameterValue_P2c parameter_values_p,
503 const size_t num_parameters,
504 const char *info_text_p,
505 unsigned int *xid_p,
506 void *arg_p);
507
508utlReturnCode_T MBTK_AT_HTTPREAD_PROCESS(const utlAtParameterOp_T op,
509 const char *command_name_p,
510 const utlAtParameterValue_P2c parameter_values_p,
511 const size_t num_parameters,
512 const char *info_text_p,
513 unsigned int *xid_p,
514 void *arg_p);
515
516utlReturnCode_T MBTK_AT_HTTPDATAEX_PROCESS(const utlAtParameterOp_T op,
517 const char *command_name_p,
518 const utlAtParameterValue_P2c parameter_values_p,
519 const size_t num_parameters,
520 const char *info_text_p,
521 unsigned int *xid_p,
522 void *arg_p);
523
524utlReturnCode_T MBTK_AT_HTTPPARA_PROCESS(const utlAtParameterOp_T op,
525 const char *command_name_p,
526 const utlAtParameterValue_P2c parameter_values_p,
527 const size_t num_parameters,
528 const char *info_text_p,
529 unsigned int *xid_p,
530 void *arg_p);
531
532
533#endif
534////////////////////////////////////Function Definition End//////////////////////////////////////////////////
535
536
537////////////////////////////////////AT Definition Start/////////////////////////////////////////////////////
538#ifdef MBTK_AT_COMMAND_SHELL
539MBTK_AT_DEFINE("+MTEST", atMTEST_params, "+MTEST=(0-1),\"\"", MBTK_AT_MTEST_PROCESS)
540MBTK_AT_DEFINE("+MINFO", NULL, NULL, MBTK_AT_MINFO_PROCESS)
541MBTK_AT_DEFINE("+SYSTIME", atSYSTIME_params, "+SYSTIME=(0-2),\"\"", MBTK_AT_SYSTIME_PROCESS)
542MBTK_AT_DEFINE_VSYNTAX("+MTESTF", atMTESTF_params, MBTK_AT_MTESTF_PROCESS)
543
544MBTK_AT_DEFINE("+MSHELL", atMSHELL_params, "+MSHELL=\"\"", MBTK_AT_MSHELL_PROCESS)
545MBTK_AT_DEFINE("+ISLKVRSCAN", NULL, NULL, MBTK_AT_ISLKVRSCAN_PROCESS)
546MBTK_AT_DEFINE("+SDTEST", NULL, NULL, MBTK_AT_SDTEST_PROCESS)
547MBTK_AT_DEFINE("+SPKTEST", NULL, NULL, MBTK_AT_SPKTEST_PROCESS)
548MBTK_AT_DEFINE("+MICTEST", NULL, NULL, MBTK_AT_MICTEST_PROCESS)
549MBTK_AT_DEFINE("+REVTEST", atREVTEST_params, "+MTEST=(0-1),\"\"", MBTK_AT_REVTEST_PROCESS)
550MBTK_AT_DEFINE("+GPIOTEST", atGPIO_params, "+GPIOTEST=(0-1)", MBTK_AT_GPIOTEST_PROCESS)
551MBTK_AT_DEFINE("+ADCGETV", atADC_params, "+ADCGETV=(0-1)", MBTK_AT_ADCGETV_PROCESS)
552MBTK_AT_DEFINE("+RGMIITEST", NULL, NULL, MBTK_AT_RGMIITEST_PROCESS)
553
554MBTK_AT_DEFINE("+CGNETLED", atNETLED_params, "+CGNETLED=(0-1)", MBTK_AT_CGNETLED_PROCESS)
555MBTK_AT_DEFINE("*SYSSLEEP", NULL, NULL, MBTK_AT_SYSSLEEP_PROCESS)
556MBTK_AT_DEFINE("+SYSSLEEP", atSYSSLEEP_params, "+SYSSLEEP=(0-2)", MBTK_AT_SYSSLEEP_PROCESS)
557MBTK_AT_DEFINE("+MPORTCFG", atMPORTCFG_params, "+MPORTCFG=(0-2),(0-2)", MBTK_AT_MPORTCFG_PROCESS)
558MBTK_AT_DEFINE("+MURCECHO", atURCECHO_params, "+MURCECHO=(0-1)", MBTK_AT_MURCECHO_PROCESS)
559//MBTK_AT_DEFINE("+MGPSTEST", atMGPSTEST_params, "+MGPSTEST=(0-2),(0-180),(0-100)", MBTK_AT_MGPSTEST_PROCESS)
560MBTK_AT_DEFINE("*READVER", NULL, NULL, MBTK_AT_READVER_PROCESS)
561MBTK_AT_DEFINE("+MGPSC", atMGPSC_params, "+MGPSC=(0,1,5)", MBTK_AT_MGPSC_PROCESS)
562
563
564MBTK_AT_DEFINE("+CFTPPORT", atCFTPPORT_params, "+CFTPPORT: (list of supported <port>s) ", MBTK_AT_CFTPPORT_PROCESS)
565MBTK_AT_DEFINE("+CFTPUN", atCFTPUN_params, NULL, MBTK_AT_CFTPUN_PROCESS)
566MBTK_AT_DEFINE("+CFTPPW", atCFTPPW_params, NULL, MBTK_AT_CFTPPW_PROCESS)
567MBTK_AT_DEFINE("+CFTPTLS", atCFTPTLS_params, "+CFTPTLS: (0-2),(0-1)", MBTK_AT_CFTPTLS_PROCESS)
568MBTK_AT_DEFINE("+CFTPSERV", atCFTPSERV_params, NULL, MBTK_AT_CFTPSERV_PROCESS)
569MBTK_AT_DEFINE("+CFTPTYPE", atCFTPTYPE_params, "+CFTPTYPE: (\"I\",\"A\")", MBTK_AT_CFTPTYPE_PROCESS)
570MBTK_AT_DEFINE("+CFTPMKD", atCFTPMKD_params, NULL, MBTK_AT_CFTPMKD_PROCESS)
571MBTK_AT_DEFINE("+CFTPRMD", atCFTPRMD_params, NULL, MBTK_AT_CFTPRMD_PROCESS)
572MBTK_AT_DEFINE("+CFTPDELE", atCFTPDEL_params, NULL, MBTK_AT_CFTPDEL_PROCESS)
573MBTK_AT_DEFINE("+CFTPPUTFILE", atCFTPPUTFILE_params, "+CFTPPUTFILE: ,,(0-2147483647)", MBTK_AT_CFTPPUTFILE_PROCESS)
574MBTK_AT_DEFINE("+CFTPPUT", atCFTPPUT_params, "+CFTPPUT: ,(0-2147483647),(1-1500)", MBTK_AT_CFTPPUT_PROCESS)
575MBTK_AT_DEFINE("+CFTPGETFILE", atCFTPGETFILE_params, "+CFTPGETFILE: ,,(0-2147483647), (0-524288)", MBTK_AT_CFTPGETFILE_PROCESS)
576MBTK_AT_DEFINE("+CFTPGET", atCFTPGET_params, "+CFTPGET: ,(0-2147483647),(0-524288)", MBTK_AT_CFTPGET_PROCESS)
577MBTK_AT_DEFINE("+CFTPLIST", atCFTPLIST_params, NULL, MBTK_AT_CFTPLIST_PROCESS)
578
579#if 1//def MBTK_TCP_SUPPORT
580MBTK_AT_DEFINE_VSYNTAX("+NETOPEN", NULL, MBTK_AT_NETOPEN_PROCESS)
581MBTK_AT_DEFINE_VSYNTAX("+NETCLOSE", NULL, MBTK_AT_NETCLOSE_PROCESS)
582MBTK_AT_DEFINE("+CIPOPEN", cipopen_params, "+CIPOPEN: (list of supported <link_num>s), (list of supported<type>s)", MBTK_AT_CIPOPEN_PROCESS)
583MBTK_AT_DEFINE("+CIPCLOSE", cipclose_params, "+CIPOPEN: (list of supported <link_num>s)", MBTK_AT_CIPCLOSE_PROCESS)
584MBTK_AT_DEFINE("+CIPSEND", cipsend_params, "+CIPSEND: (list of supported <link_num>s), (list of supported <length>s)", MBTK_AT_CIPSEND_PROCESS)
585MBTK_AT_DEFINE("+CIPRXGET", ciprxget_params, "+CIPRXGET: (list of supported <mode>s), (list of supported<cid>s), (list of supported<len>s)", MBTK_AT_CIPRXGET_PROCESS)
586MBTK_AT_DEFINE("+MCIPCFGPL", mcipcfgpl_params, "+MCIPCFGPL:(list of supported <link_num>s), (list of supported <hex_support>s),(list of supported <ack_support>s), (list of supported <ssl_support>s, (list of supported <ignore_cert>s)", MBTK_AT_MCIPCFGPL_PROCESS)
587MBTK_AT_DEFINE("+MCIPCFG", mcipcfg_params, "+MCIPCFG: (list of supported <heartbeat_time>s), (list of supported <delay_time>ms)", MBTK_AT_MCIPCFG_PROCESS)
588MBTK_AT_DEFINE_VSYNTAX("+USEDDATA", NULL, MBTK_AT_USEDDATA_PROCESS)
589MBTK_AT_DEFINE_VSYNTAX("+CLEARDATA", NULL, MBTK_AT_CLEARDATA_PROCESS)
590MBTK_AT_DEFINE("+CIPOPQUERY", cipopquery_params, "+CIPOPQUERY: (0-3),(0-3),(0-3),(0-3)", MBTK_AT_CIPOPQUERY_PROCESS)
591#endif
592
593MBTK_AT_DEFINE("+CGDRT", atCGDRT_params, "+CGDRT: (0-139),(0-1)", MBTK_AT_CGDRT_PROCESS)
594MBTK_AT_DEFINE("+CGSETV", atCGSETV_params, "+CGSETV: (0-139),(0-1)", MBTK_AT_CGSETV_PROCESS)
595
596MBTK_AT_DEFINE("+MDUMP", atMDUMP_params, "+MDUMP=(0-1)", MBTK_AT_MDUMP_PROCESS)
597
598MBTK_AT_DEFINE("$HTTPOPEN", NULL, NULL, MBTK_AT_HTTPOPEN_PROCESS)
599MBTK_AT_DEFINE("$HTTPCLOSE", NULL, NULL, MBTK_AT_HTTPCLOSE_PROCESS)
600MBTK_AT_DEFINE("$HTTPSEND", NULL, NULL, MBTK_AT_HTTPSEND_PROCESS)
601MBTK_AT_DEFINE("$HTTPACTION", atHTTPACTION_params, "$HTTPACTION=(0-3)", MBTK_AT_HTTPACTION_PROCESS)
602MBTK_AT_DEFINE("$HTTPTYPE", atHTTPTYPE_params, "$HTTPTYPE=(0-1)", MBTK_AT_HTTPTYPE_PROCESS)
603MBTK_AT_DEFINE("$HTTPREAD", atHTTPREAD_params, "$HTTPREAD=(0-1),(0-512000)", MBTK_AT_HTTPREAD_PROCESS)
604MBTK_AT_DEFINE("$HTTPDATAEX", atHTTPDATAEX_params, "$HTTPDATAEX=(0-500),\"\"", MBTK_AT_HTTPDATAEX_PROCESS)
605MBTK_AT_DEFINE("$HTTPPARA", atHTTPPARA_params, "$HTTPPARA=\"\",(0-65535),(0-1), (0-1)", MBTK_AT_HTTPPARA_PROCESS)
606MBTK_AT_DEFINE("$HTTPRQH", atHTTPRQH_params, "$HTTPRQH=\"\", \"\"", MBTK_AT_HTTPRQH_PROCESS)
607
608
609#endif
610////////////////////////////////////AT Definition End///////////////////////////////////////////////////////