CAT CELL "sf_cellular_api.h"
typedef enum e_sf_cellular_at_cmd_index { SF_CELLULAR_AT_CMD_INDEX_AT = 0, ///< 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 ", .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 ", .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 ", .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 ", .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 ", .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 ", .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 ", .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? ", .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? ", .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? ", .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 ", .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 ", .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 ", .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 ", .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 OK "), .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 ", .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 ", .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 ", .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 ", .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 ", .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 ", .p_success_resp = (uint8_t *) " +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? ", .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 ", .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(" CONNECT xxxxxxxxx "), .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 ", .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 ", .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 ", .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 ", .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 ", .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? ", .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 ", .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 }, };