CAT CELL "sf_cellular_api.h"

typedef enum e_sf_cellular_at_cmd_index
{
SF_CELLULAR_AT_CMD_INDEX_AT = , ///< Index for Command AT
SF_CELLULAR_AT_CMD_INDEX_ATZ0, ///< Index for Command ATZ0
SF_CELLULAR_AT_CMD_INDEX_AT_CREG_SET_0, ///< Index for Command to set AT+CREG
SF_CELLULAR_AT_CMD_INDEX_AT_CMEE_SET_0, ///< Index for Command to set AT+CMEE
SF_CELLULAR_AT_CMD_INDEX_AT_ECHO, ///< Index for Command ATE
SF_CELLULAR_AT_CMD_INDEX_AT_SAVE, ///< Index for Command AT&W
SF_CELLULAR_AT_CMD_INDEX_AT_CREG, ///< Index for Command AT+CREG
SF_CELLULAR_AT_CMD_INDEX_AT_CPIN_STATUS_GET, ///< Index for Command to get status of SIM lock
SF_CELLULAR_AT_CMD_INDEX_AT_ENTER_CPIN, ///< Index for Command to unlock SIM
SF_CELLULAR_AT_CMD_INDEX_AT_CPIN_SET, ///< Index for Command to set SIM PIN
SF_CELLULAR_AT_CMD_INDEX_AT_CGDCONT_SET, ///< Index for Command to set AT+CGDCOND
SF_CELLULAR_AT_CMD_INDEX_AT_CPOL_SET, ///< Index for Command to set AT+CPOL
SF_CELLULAR_AT_CMD_INDEX_AT_COPS_AUTO_SET, ///< Index for Command to set AUTO AT+COPS
SF_CELLULAR_AT_CMD_INDEX_AT_COPS_MANUAL_SET, ///< Index for Command to set Manual AT+COPS
SF_CELLULAR_AT_CMD_INDEX_AT_AIRPLANE_OFF, ///< Index for Command to set Airplane mode OFF
SF_CELLULAR_AT_CMD_INDEX_AT_AIRPLANE_ON, ///< Index for Command to set Airplane mode ON
SF_CELLULAR_AT_CMD_INDEX_AT_CONTEXT_ACTIVE, ///< Index for Command to activate context
SF_CELLULAR_AT_CMD_INDEX_AT_CONTEXT_DEACTIVE, ///< Index for Command to deactivate context
SF_CELLULAR_AT_CMD_INDEX_AT_CGDATA_ACTIVE, ///< Index for Command to activate Data mode
SF_CELLULAR_AT_CMD_INDEX_AT_CGDATA_DEACTIVE, ///< Index for Command to deactivate Data mode
SF_CELLULAR_AT_CMD_INDEX_AT_CSQ_GET, ///< Index for Command to get signal quality
SF_CELLULAR_AT_CMD_INDEX_AT_VER_GET, ///< Index for Command to get Modem stack Version
SF_CELLULAR_AT_CMD_INDEX_AT_CHIPSET_GET, ///< Index for Command to get chipset details
SF_CELLULAR_AT_CMD_INDEX_AT_IMEI_GET, ///< Index for Command to get IMEI number
SF_CELLULAR_AT_CMD_INDEX_AT_MANF_NAME_GET, ///< Index for Command to get manufacturer name
SF_CELLULAR_AT_CMD_INDEX_AT_SIMID_GET, ///< Index for Command to get SIM Card ID
SF_CELLULAR_AT_CMD_INDEX_AT_NET_TYPE_STATUS_GET, ///< Index for Command to get network type information
SF_CELLULAR_AT_CMD_INDEX_AT_NET_STATUS_GET, ///< Index for Command to get network status information
SF_CELLULAR_AT_CMD_INDEX_AT_LOCK_SIM, ///< Index for Command to lock SIM card
SF_CELLULAR_AT_CMD_INDEX_AT_UNLOCK_SIM, ///< Index for Command to unlock SIM card
SF_CELLULAR_AT_CMD_INDEX_AT_ENTER_DATA_MODE, ///< Index for Command to enter data mode
SF_CELLULAR_AT_CMD_INDEX_AT_EXIT_DATA_MODE, ///< Index for Command to exit data mode
SF_CELLULAR_AT_CMD_INDEX_AT_USERNAME_SET, ///< Index for Command to set username
SF_CELLULAR_AT_CMD_INDEX_AT_PASSWORD_SET, ///< Index for Command to set password
SF_CELLULAR_AT_CMD_INDEX_AT_AUTH_TYPE_SET, ///< Index for Command to set authorisation type
SF_CELLULAR_AT_CMD_INDEX_AT_AUTO_TIME_UPDATE_ENABLE_SET, ///< Index for Command to enable auto time update
SF_CELLULAR_AT_CMD_INDEX_AT_AUTO_TIME_UPDATE_DISABLE_SET, ///< Index for Command to disable auto time update
SF_CELLULAR_AT_CMD_INDEX_AT_EMPTY_APN_SET, ///< Index for Command to set empty APN
SF_CELLULAR_AT_CMD_INDEX_AT_GET_IP_ADDR, ///< Index for Command to get IP address
SF_A9500_AT_CMD_INDEX_AT_AUTO_SEARCH_WEB, ///< Index for command to auto search web >
SF_A9500_AT_CMD_INDEX_AT_LTE_SEARCH_WEB, ///<Index for command to search LTE web >
SF_A9500_AT_CMD_INDEX_AT_CPIN, ///<Index for command to check sim card>
SF_A9500_AT_CMD_INDEX_AT_CGDCONT, ///<Index for command to connect>
SF_A9500_AT_CMD_INDEX_AT_PSRAT, ///<Index for command to connect LTE>
SF_A9500_AT_CMD_INDEX_AT_ATD_DATA_CONNECTION, ///<Index for command to data connection>
} sf_cellular_at_cmd_index_t;

"sf_cellular_cat3.c"

const sf_cellular_at_cmd_set_t g_sf_cellular_cat3_cmd_set[] =
{
/** AT Command: To check module init */
[SF_CELLULAR_AT_CMD_INDEX_AT] =
{
.p_cmd = (uint8_t *) "AT\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_10,
.retry_delay = SF_CELLULAR_DELAY_500MS
},
/** AT Command to soft reset the module */
[SF_CELLULAR_AT_CMD_INDEX_ATZ0] =
{
.p_cmd = (uint8_t *) "ATZ0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
#if SF_CELLULAR_CAT3_TEUG
/** AT Command set to disable registration notification */
[SF_CELLULAR_AT_CMD_INDEX_AT_CREG_SET_0] =
{
.p_cmd = (uint8_t *) "AT+CREG=0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_10,
.retry_delay = SF_CELLULAR_DELAY_500MS
},
#endif
#if SF_CELLULAR_CAT3_TSVG
/** AT Command set to disable registration notification */
[SF_CELLULAR_AT_CMD_INDEX_AT_CREG_SET_0] =
{
.p_cmd = (uint8_t *) "AT+CGREG=0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_0,
.retry_delay = SF_CELLULAR_DELAY_0
},
#endif
/** AT Command set to disable the error details */
[SF_CELLULAR_AT_CMD_INDEX_AT_CMEE_SET_0] =
{
.p_cmd = (uint8_t *) "AT+CMEE=0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS
}, /** AT Command set to set echo off */
[SF_CELLULAR_AT_CMD_INDEX_AT_ECHO] =
{
.p_cmd = (uint8_t *) "ATE0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS,
},
/** AT Command set to save the current setting */
[SF_CELLULAR_AT_CMD_INDEX_AT_SAVE] =
{
.p_cmd = (uint8_t *) "AT&W\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_0,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
#if SF_CELLULAR_CAT3_TEUG
/** AT Command set to read registration status */
[SF_CELLULAR_AT_CMD_INDEX_AT_CREG] =
{
.p_cmd = (uint8_t *) "AT+CREG?\r\n",
.p_success_resp = (uint8_t *) "+CREG: 0,1",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_500MS
},
#endif
#if SF_CELLULAR_CAT3_TSVG
/** AT Command set to read registration status */
[SF_CELLULAR_AT_CMD_INDEX_AT_CREG] =
{
.p_cmd = (uint8_t *) "AT+CGREG?\r\n",
.p_success_resp = (uint8_t *) "+CGREG: 0,1",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_300MS
},
#endif
/** AT Command set to read SIM PIN status */
[SF_CELLULAR_AT_CMD_INDEX_AT_CPIN_STATUS_GET] =
{
.p_cmd = (uint8_t *) "AT+CPIN?\r\n",
.p_success_resp = (uint8_t *) "+CPIN",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS
},
/** AT Command set to enter SIM pin to unlock SIM */
[SF_CELLULAR_AT_CMD_INDEX_AT_ENTER_CPIN] =
{
.p_cmd = (uint8_t *) "AT+CPIN=\"",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS
},
/** AT Command set to change the SIM Pin used for lock/unlock SIM */
[SF_CELLULAR_AT_CMD_INDEX_AT_CPIN_SET] =
{
.p_cmd = (uint8_t *) "AT+CPWD=\"SC\",\"",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_300MS
},
/** AT Command set define PDP context */
[SF_CELLULAR_AT_CMD_INDEX_AT_CGDCONT_SET] =
{
.p_cmd = (uint8_t *) "AT+CGDCONT=",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_10,
.retry_delay = SF_CELLULAR_DELAY_500MS
},
/** AT Command set to set preferred operator list */
[SF_CELLULAR_AT_CMD_INDEX_AT_CPOL_SET] =
{
.p_cmd = (uint8_t *) "AT+CPOL=",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS
},
/** AT Command set to operator selection mode to auto */
[SF_CELLULAR_AT_CMD_INDEX_AT_COPS_AUTO_SET] =
{
.p_cmd = (uint8_t *) "AT+COPS=0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS
},
/** AT Command set to set operator selection mode to manual */
[SF_CELLULAR_AT_CMD_INDEX_AT_COPS_MANUAL_SET] =
{
.p_cmd = (uint8_t *) "AT+COPS=1",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS
},
#if SF_CELLULAR_CAT3_TEUG
/** AT Command set to set full function mode */
[SF_CELLULAR_AT_CMD_INDEX_AT_AIRPLANE_OFF] =
{
.p_cmd = (uint8_t *) "AT+CFUN=1,1\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS
},
#endif
#if SF_CELLULAR_CAT3_TSVG
/** AT Command set to set full function mode */
[SF_CELLULAR_AT_CMD_INDEX_AT_AIRPLANE_OFF] =
{
.p_cmd = (uint8_t *) "AT+CFUN=1,0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_1,
.retry_delay = SF_CELLULAR_DELAY_100MS
},
#endif
/** AT Command set to set airplane mode on */
[SF_CELLULAR_AT_CMD_INDEX_AT_AIRPLANE_ON] =
{
.p_cmd = (uint8_t *) "AT+CFUN=4,0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_2000MS,
},
/** AT Command set to activate the PDP context */
[SF_CELLULAR_AT_CMD_INDEX_AT_CONTEXT_ACTIVE] =
{
.p_cmd = (uint8_t *) "AT+CGACT=1,",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_10,
.retry_delay = SF_CELLULAR_DELAY_500MS
},
/** AT Command set to disable the PDP context */
[SF_CELLULAR_AT_CMD_INDEX_AT_CONTEXT_DEACTIVE] =
{
.p_cmd = (uint8_t *) "AT+CGACT=0,",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_300MS
},
/** AT Command set to start Data mode */
[SF_CELLULAR_AT_CMD_INDEX_AT_CGDATA_ACTIVE] =
{
.p_cmd = (uint8_t *) "AT+CGDATA=",
.p_success_resp = (uint8_t *) "CONNECT",
.max_resp_length = (uint16_t) sizeof("CONNECT XXXXXXXXXX\r\nOK\r\n"),
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_500MS
},
/** AT Command set to close Data mode */
[SF_CELLULAR_AT_CMD_INDEX_AT_CGDATA_DEACTIVE] =
{
.p_cmd = (uint8_t *) "+++",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_500MS
},
/** AT Command set to get the Cellular information */
[SF_CELLULAR_AT_CMD_INDEX_AT_CSQ_GET] =
{
.p_cmd = (uint8_t *) "AT+CSQ\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to get the Cellular version */
[SF_CELLULAR_AT_CMD_INDEX_AT_VER_GET] =
{
.p_cmd = (uint8_t *) "AT+CGMR\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to get the Cellular chipset number */
[SF_CELLULAR_AT_CMD_INDEX_AT_CHIPSET_GET] =
{
.p_cmd = (uint8_t *) "AT+CGMM\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
}, /** AT Command set to get the Cellular IMEI number */
[SF_CELLULAR_AT_CMD_INDEX_AT_IMEI_GET] =
{
.p_cmd = (uint8_t *) "AT+CGSN\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to get the Cellular manufacture name */
[SF_CELLULAR_AT_CMD_INDEX_AT_MANF_NAME_GET] =
{
.p_cmd = (uint8_t *) "AT+CGMI\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to get the Cellular SIM ID */
[SF_CELLULAR_AT_CMD_INDEX_AT_SIMID_GET] =
{
.p_cmd = (uint8_t *) "AT+ICCID\r\n",
.p_success_resp = (uint8_t *) "\r\n+CCID: ",
.max_resp_length = SF_CELLULAR_STR_LEN_64,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to get the Cellular network type */
[SF_CELLULAR_AT_CMD_INDEX_AT_NET_TYPE_STATUS_GET] =
{
.p_cmd = (uint8_t *) "AT#PSNT?\r\n",
.p_success_resp = (uint8_t *) "#PSNT: ",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
}, /** AT Command set to get the Cellular network status info */
[SF_CELLULAR_AT_CMD_INDEX_AT_NET_STATUS_GET] =
{
.p_cmd = (uint8_t *) "AT#RFSTS\r\n",
.p_success_resp = (uint8_t *) "#RFSTS",
.max_resp_length = SF_CELLULAR_RFSTS_RSP_LEN,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to Lock the SIM */
[SF_CELLULAR_AT_CMD_INDEX_AT_LOCK_SIM] =
{
.p_cmd = (uint8_t *) "AT+CLCK=\"SC\",1,\"",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to Unlock the SIM */
[SF_CELLULAR_AT_CMD_INDEX_AT_UNLOCK_SIM] =
{
.p_cmd = (uint8_t *) "AT+CLCK=\"SC\",0,\"",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
}, /** AT Command set to Cellular into Data Mode */
[SF_CELLULAR_AT_CMD_INDEX_AT_ENTER_DATA_MODE] =
{
.p_cmd = (uint8_t *) "ATD*99***",
.p_success_resp = (uint8_t *) "CONNECT ",
.max_resp_length = (uint16_t) sizeof("\r\nCONNECT xxxxxxxxx\r\n"),
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to exit Data Mode */
[SF_CELLULAR_AT_CMD_INDEX_AT_EXIT_DATA_MODE] =
{
.p_cmd = (uint8_t *) "+++",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to set user name */
[SF_CELLULAR_AT_CMD_INDEX_AT_USERNAME_SET] =
{
.p_cmd = (uint8_t *) "AT#USERID=\"",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to set user password */
[SF_CELLULAR_AT_CMD_INDEX_AT_PASSWORD_SET] =
{
.p_cmd = (uint8_t *) "AT#PASSW=\"",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to set Authentication Type */
[SF_CELLULAR_AT_CMD_INDEX_AT_AUTH_TYPE_SET] =
{
.p_cmd = (uint8_t *) "AT#GAUTH=",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to enable auto time zone update */
[SF_CELLULAR_AT_CMD_INDEX_AT_AUTO_TIME_UPDATE_ENABLE_SET] =
{
.p_cmd = (uint8_t *) "AT+CTZU=1\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to disable auto time zone update */
[SF_CELLULAR_AT_CMD_INDEX_AT_AUTO_TIME_UPDATE_DISABLE_SET] =
{
.p_cmd = (uint8_t *) "AT+CTZU=0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to set default pdp context configuration */
[SF_CELLULAR_AT_CMD_INDEX_AT_EMPTY_APN_SET] =
{
.p_cmd = (uint8_t *) "AT+CGDCONT=1,\"IPV4V6\",\"\",\"0.0.0.0\",0,0\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command set to get the IP address */
[SF_CELLULAR_AT_CMD_INDEX_AT_GET_IP_ADDR] =
{
.p_cmd = (uint8_t *) "AT+CGPADDR=",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_128,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
/** AT Command to set auto search web mode **/
[SF_A9500_AT_CMD_INDEX_AT_AUTO_SEARCH_WEB] =
{
.p_cmd = (uint8_t *) "AT+MODODR=5\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
}, /** AT Command to set search web mode **/
[SF_A9500_AT_CMD_INDEX_AT_LTE_SEARCH_WEB] =
{
.p_cmd = (uint8_t *) "AT+LTEOPMOD=2\r\n",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS }, /** AT command to check sim card **/
[SF_A9500_AT_CMD_INDEX_AT_CPIN] =
{
.p_cmd = (uint8_t *) "AT+CPIN?\r\n",
.p_success_resp = (uint8_t *) "READY",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_100MS
}, /** AT command set to connect **/
[SF_A9500_AT_CMD_INDEX_AT_CGDCONT] =
{
.p_cmd = (uint8_t *) "AT+CGDCONT=",
.p_success_resp = (uint8_t *) "OK",
.max_resp_length = SF_CELLULAR_STR_LEN_32,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_500MS
}, /** AT command connect to LTE web **/
[SF_A9500_AT_CMD_INDEX_AT_PSRAT] =
{
.p_cmd = (uint8_t *) "AT+PSRAT\r\n",
.p_success_resp = (uint8_t *) "LTE",
.max_resp_length = SF_CELLULAR_STR_LEN_128,
.retry = SF_CELLULAR_RETRY_VALUE_10,
.retry_delay = SF_CELLULAR_DELAY_500MS
}, /** AT command for data connection **/
[SF_A9500_AT_CMD_INDEX_AT_ATD_DATA_CONNECTION]
{ .p_cmd = (uint8_t *) "ATD*99***",
.p_success_resp = (uint8_t *) "CONNECT ",
.max_resp_length = SF_CELLULAR_STR_LEN_128,
.retry = SF_CELLULAR_RETRY_VALUE_5,
.retry_delay = SF_CELLULAR_DELAY_200MS
},
};

Renesas CAT CONFIG的更多相关文章

  1. 深入详解美团点评CAT跨语言服务监控(七)消息分析器与报表(二)

    CrossAnalyzer-调用链分析 在分布式环境中,应用是运行在独立的进程中的,有可能是不同的机器,或者不同的服务器进程.那么他们如果想要彼此联系在一起,形成一个调用链,在Cat中,CrossAn ...

  2. u-boot 2016.05 添加自己的board 以及config.h

    拿到一个uboot 后,我都想添加一个属于自己的board文件以及include/configs/*.h 文件. 如何添加这个些文件,今天来记录一下. 复制一份你所参考的板级文件,比如说board/v ...

  3. 大众点评CAT开源监控系统剖析

    参考文档: 大众点评的实时监控系统分析(一) CAT_source_analyze 透过CAT,来看分布式实时监控系统的设计与实现 深度剖析开源分布式监控CAT [分布式监控CAT] Client端源 ...

  4. CAT 监控搭建

    简介 CAT 是基于 Java 开发的实时应用监控平台,为美团点评提供了全面的实时监控告警服务. 已经在美团点评的基础架构中间件框架(MVC框架,RPC框架,数据库框架,缓存框架等,消息队列,配置系统 ...

  5. 【转】大众点评CAT开源监控系统剖析

    https://www.cnblogs.com/yeahwell/p/cat.html 参考文档: 大众点评的实时监控系统分析(一) CAT_source_analyze 透过CAT,来看分布式实时监 ...

  6. docker 安装cat

    1.下载cat cat 地址:https://github.com/dianping/cat 进入opt 创建cat文件夹 cd /opt/ mkdir cat cd cat 下载cat git cl ...

  7. elastic search使用总结

    1. elasticsearch安装 官方下载地址:https://www.elastic.co/downloads/elasticsearch 解压文件 elasticsearch-2.4.0.zi ...

  8. ARM学习 之 如何在向内核写入系统调用

    本文主要介绍两个例子:1-系统调用打印“hello kernel”  2-驱动开发板的蜂鸣器 使用的是友善之臂(Friendly ARM)的开发板,三星2440 =================== ...

  9. KVM 介绍(8):使用 libvirt 迁移 QEMU/KVM 虚机和 Nova 虚机 [Nova Libvirt QEMU/KVM Live Migration]

    学习 KVM 的系列文章: (1)介绍和安装 (2)CPU 和 内存虚拟化 (3)I/O QEMU 全虚拟化和准虚拟化(Para-virtulizaiton) (4)I/O PCI/PCIe设备直接分 ...

随机推荐

  1. 利用expect和sshpass完美非交互性执行远端命令

    yum install expect -y expect 参考:http://blog.csdn.net/snow_114/article/details/53245466 yum install s ...

  2. 练习-99乘法表 token生成器 翻译小工具

    一.99乘法表 1.1 技术点 记住: for 循环的使用,以及for的嵌套使用 range()的使用,掌握sep为负数的使用的使用. print() 函数的使用,默认的结尾的换行符 替换 end= ...

  3. Java进阶1. Synchronized 关键字

    Java进阶1. Synchronized 关键字 20131025 1.关于synchronized的简介: Synchronized 关键字代表对这个方法加锁,相当于不管那一个线程,运行到这个方法 ...

  4. 利用有道翻译Api实现英文翻译功能

    有道翻译提供了翻译和查词的数据接口.通过数据接口,您可以获得一段文本的翻译结果或者查词结果.       通过调用有道翻译API数据接口,您可以在您的网站或应用中更灵活地定制翻译和查词功能. 第一步: ...

  5. Linux内核源代码目录结构详解

    http://blog.csdn.net/u013014440/article/details/44024207

  6. D. Closest Equals(线段树)

    题目链接: D. Closest Equals time limit per test 3 seconds memory limit per test 256 megabytes input stan ...

  7. Python如何输出带颜色的文字

    print('\033[31m%s' % "这是前景色") 这是前景色 print('%s' % "这是前景色") 这是前景色 print('\033[1;31 ...

  8. Realm的常规使用与线程中的坑

    结识 Realm 的催化剂 在我们公司的项目迭代中,由于在之前的聊天这个模块关于用户信息的传值有问题,而之前因为项目经过很多开发者的手,且不提整体的架构有多混乱,就单说缓存这块,就是乱的不行,有的地方 ...

  9. 初用vue遇到的一些问题

    1.过滤器: filters: { search(list) { es5 var _self = this; //return list.filter(menu => menu.childs.n ...

  10. python 帮助和导入路径

    1 help('**'),查看函数用法,其中**为内置的函数 help(**.**),模块.函数,查看非内置函数 2 先添加路径到sys,再导入 import sys;sys.path.append( ...