blob: e0fccf2ea35be650569ee14789e0f4ed7ea7a0f9 [file] [log] [blame]
/**
* @file at_msg.h
* @brief ÌṩÁËÆ½Ì¨¶ÔÍâÏûÏ¢½Ó¿ÚºÍÏûÏ¢½á¹¹¶¨Òå
*
* 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 __LQ_MSG_H__
#define __LQ_MSG_H__
/*******************************************************************************
* Include header files *
******************************************************************************/
#include "message.h"
/*******************************************************************************
* Macro definitions *
******************************************************************************/
#define AT_CMD_MODE 0 //·Ç͸Ã÷ģʽÏÂatÃüÁî´«Êäģʽ
#define WRITE_DATA_MODE 1 //·Ç͸Ã÷ģʽÏÂwriteÁ÷³ÌÖеÄÊý¾Ý͸´«Ä£Ê½
#define TRANSPARENT_CMD_MODE 2 //͸Ã÷ģʽÏÂÃüÁîģʽ
#define TRANSPARENT_DATA_MODE 3 //͸Ã÷ģʽÏÂÊý¾Ýģʽ
#define FTP_DATA_MODE 4 //FTP PUT/GETÖеÄÊý¾Ý͸´«Ä£Ê½
/*******************************************************************************
* Type definitions *
******************************************************************************/
#ifndef DOXYGEN_SHOULD_SKIP_THIS
/**
* @brief at socketÏûÏ¢¿ªÊ¼
*/
enum lq_msg_type {
MSG_CMD_NETCON_REQ = MSG_CMD_LQ_BASE,//ÅäÖÃPDP¼¤»îÏà¹Ø²ÎÊý
MSG_CMD_NETCON_RSP,
MSG_CMD_NETACT_REQ,//PDP¼¤»îÈ¥¼¤»î
MSG_CMD_NETACT_RSP,
MSG_CMD_NETSRV_REQ,//ÅäÖ÷Ç͸Ã÷ģʽsocket²ÎÊý
MSG_CMD_NETSRV_RSP,
MSG_CMD_NETOPEN_REQ,//´´½¨·Ç͸Ã÷ģʽsocketÁ´½Ó
MSG_CMD_NETOPEN_RSP,
MSG_CMD_NETREAD_REQ,//¶ÁÈ¡·Ç͸Ã÷ģʽsocketÊý¾Ý
MSG_CMD_NETREAD_RSP,
MSG_CMD_SENDBUF_REQ,//ÇëÇó·¢ËÍ·Ç͸Ã÷ģʽsocketÊý¾Ý
MSG_CMD_SENDBUF_RSP,
MSG_CMD_NETWRITE_REQ,//µÃµ½¿É·¢ËÍÈ·ÈϺó·¢ËÍ´ý·¢Ë͵Ädata
MSG_CMD_NETWRITE_RSP,
MSG_CMD_NETCLOSE_REQ,//¹Ø±ÕÒ»¸ösocketÁ´½Ó
MSG_CMD_NETCLOSE_RSP,
MSG_CMD_NETPING_REQ,//pingÃüÁî
MSG_CMD_NETPING_RSP,
MSG_CMD_NETACCEPT_REQ,//µ±×÷Ϊserver¶ËÊÕµ½¿Í»§¶ËÁ¬½ÓÇëÇóʱ£¬¾ö¶¨½ÓÊÜ»ò¾Ü¾ø¸ÃÇëÇó
MSG_CMD_NETACCEPT_RSP,
MSG_CMD_NETCREATE_REQ,//´´½¨Í¸Ã÷ģʽsocketÁ´½Ó
MSG_CMD_NETCREATE_RSP,
MSG_CMD_NETURC_REQ,//ÉèÖÃÖ÷¶¯Éϱ¨¿ª¹Ø
MSG_CMD_NETURC_RSP,
MSG_CMD_IPFILTER_REQ,//µ±×÷Ϊserver¶Ëʱ£¬ÉèÖÃÔÊÐíÓëÆäÁ¬½ÓµÄIPµØÖ··¶Î§
MSG_CMD_IPFILTER_RSP,
MSG_CMD_NETACK_REQ,//²éѯijsocketµÄ·¢ËÍ»º´æÇøÕ¼ÓõĴóС¼°¿ÕÏеĴóС
MSG_CMD_NETACK_RSP,
MSG_CMD_TYPE_REQ,//²éѯ֧³ÖµÄ´«Êäģʽ ÍøÂçÖÆÊ½ ¸½¼Ó¹¦ÄÜ
MSG_CMD_TYPE_RSP,
MSG_CMD_NETACT_QUERY_REQ,//²éѯ×î½üÒ»´ÎµÄPDP¼¤»îÐÅÏ¢
MSG_CMD_NETACT_QUERY_RSP,
//MSG_CMD_NETACT_EQUAL_QUERY_REQ,
//MSG_CMD_NETACT_EQU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zte_ftpÏûÏ¢*/
MSG_CMD_FTPOPEN_REQ, //´ò¿ªÁ¬½Ó
MSG_CMD_FTPOPEN_RSP,
MSG_CMD_FTPSTATE_REQ, //Á¬½Ó״̬²éѯ
MSG_CMD_FTPSTATE_RSP,
MSG_CMD_FTPCLOSE_REQ, //¹Ø±ÕÁ¬½Ó
MSG_CMD_FTPCLOSE_RSP,
MSG_CMD_FTPSIZE_REQ, //»ñÈ¡Îļþ³ß´ç
MSG_CMD_FTPSIZE_RSP,
MSG_CMD_FTPGET_REQ, //ÎļþÏÂÔØ
MSG_CMD_FTPGET_RSP,
MSG_CMD_FTPPUT_REQ, //ÎļþÉÏ´«
MSG_CMD_FTPPUT_RSP,
MSG_CMD_FTPFOTA_REQ, //FTP FOTAÉý¼¶
MSG_CMD_FTPFOTA_RSP,
//¹úµç
MSG_CMD_MYBAND_SET_REQ,//GSMƵ¶ÎËø¶¨
MSG_CMD_MYBAND_QUERY_REQ,
MSG_CMD_GMR_QUERY_REQ,//Ä£¿é°æ±¾ºÅ»ñÈ¡
//Äϵç
MSG_CMD_MYSYSINFO_QUERY_REQ,//»ñÈ¡µ±Ç°ÍøÂç×¢²áÐÅÏ¢
MSG_CMD_MYNETINFO_QUERY_REQ,//ÍøÂçÑ¡ÔñģʽµÄ²éѯºÍÉèÖÃ
MSG_CMD_MYNETINFO_SET_REQ,
MSG_CMD_MYURCSYSINFO_INFORM_REQ,
MSG_CMD_MYGPSPOS_SET_REQ,
MSG_CMD_MYGPSPWR_SET_REQ,
/******************Êý¾Ý͸´«ÏìÓ¦********************/
MSG_CMD_PASSTHROUGH_RSP,
/******************͸Ã÷ģʽÏÂsocket¹Ø±Õ֪ͨÏûÏ¢********************/
MSG_CMD_TRANSPARENT_SOCKET_CLOSE_IND,
};
/* ¶¨Òå¿Í»§ÀàÐÍ */
typedef enum {
CUSTOMER_SDK = 0,
CUSTOMER_SDK_MIN,
CUSTOMER_YAOYUAN, /* Ò¢Ô¶cpe */
CUSTOMER_GUODIAN, /* ¹úµç */
CUSTOMER_NANDIAN /* Äϵç */
} CUSTOMER_TYPE;
#endif
#endif