#include "common/include/nm_common.h"
#include "driver/include/m2m_types.h"
#include "driver/source/nmasic.h"
#include "lwip/def.h"
#include "lwip/netdb.h"
#include "os/include/net_init.h"
#include "asf.h"
#include "lwip/ping.h"
Data Structures | |
struct | at_cmd_parse_chrs |
struct | cmd |
struct | connect_status |
struct | str_At_Cmd |
struct | tstr_app_config |
struct | tstrFilterStat |
struct | tstrMonstats |
Macros | |
#define | ANT_MODE (ANTENNA2) |
#define | ANT_SWTCH_GPIO_CTRL_MODE (ANT_SWTCH_GPIO_DUAL) |
#define | ANTENNA_GPIO_NUM_1 (4) |
#define | ANTENNA_GPIO_NUM_2 (20) |
#define | AT_CMD_SEM |
#define | AT_HEADER "AT+" |
#define | AT_MAX_CMD_LENGTH (15) |
#define | AT_MAX_HOST_NAME (100) |
#define | AT_MAX_PARAM_LENGTH (250) |
#define | AT_MAX_PARAMETERS_COUNT (8) |
#define | AT_MAX_RX_BUFF_SIZE ((AT_MAX_PARAM_LENGTH * AT_MAX_PARAMETERS_COUNT) + AT_MAX_CMD_LENGTH) |
#define | AT_MIN_CMD_LENGTH (3) |
#define | AT_SEND_ERROR(val, cmdTxt) printf("\r\n+ERROR: %d\r\n,%s\r\n", val, (char *)cmdTxt) |
#define | AT_SEND_OK(cmdTxt) printf("\r\n+OK\r\n,%s\r\n", (char *)cmdTxt) |
#define | BASE_16 (16) |
#define | ENABLE_PRINT 1 |
#define | MAC_ANTENNA_DIVERSITY |
#define | MAIN_WLAN_DEVICE_NAME "WILC1000_P2P" /* < P2P Device Name */ |
P2P mode Settings. More... | |
#define | PRINT printf |
#define | TX_PWR_DBM_0 0 |
#define | TX_PWR_DBM_12 12 |
#define | TX_PWR_DBM_15 15 |
#define | TX_PWR_DBM_18 18 |
#define | TX_PWR_DBM_3 3 |
#define | TX_PWR_DBM_6 6 |
#define | TX_PWR_DBM_9 9 |
Typedefs | |
typedef struct str_At_Cmd | strAtCMD_Handler |
typedef sint8(* | tpf_at_cmd_handler )(tstrAt_cmd_content *, void *, uint8) |
typedef struct connect_status | tstr_test_conn_status |
typedef struct cmd | tstrAt_cmd_content |
typedef struct at_cmd_parse_chrs | tstrAt_cmd_parse_chrs |
Variables | |
enum { ... } | AT_CONTROL_SUBTYPE |
enum { ... } | AT_DATA_SUBTYPE |
tstr_test_conn_status | gstrAllStatus |
tstrM2MIPConfig | StaticIPcfg |
volatile tstrAt_cmd_content | temp_cmd_content |
#define ANT_MODE (ANTENNA2) |
Referenced by wilc_task_1().
#define ANT_SWTCH_GPIO_CTRL_MODE (ANT_SWTCH_GPIO_DUAL) |
Referenced by wilc_task_1().
#define ANTENNA_GPIO_NUM_1 (4) |
Referenced by atCmd_AntDiversity_Handler(), and wilc_task_1().
#define ANTENNA_GPIO_NUM_2 (20) |
Referenced by atCmd_AntDiversity_Handler(), and wilc_task_1().
#define AT_CMD_SEM |
#define AT_HEADER "AT+" |
Referenced by parse_cmd().
#define AT_MAX_CMD_LENGTH (15) |
Referenced by parse_cmd(), and wifi_cb().
#define AT_MAX_HOST_NAME (100) |
#define AT_MAX_PARAM_LENGTH (250) |
Referenced by parse_cmd().
#define AT_MAX_PARAMETERS_COUNT (8) |
Referenced by start_m2m_app().
#define AT_MAX_RX_BUFF_SIZE ((AT_MAX_PARAM_LENGTH * AT_MAX_PARAMETERS_COUNT) + AT_MAX_CMD_LENGTH) |
#define AT_MIN_CMD_LENGTH (3) |
Referenced by parse_cmd().
#define AT_SEND_ERROR | ( | val, | |
cmdTxt | |||
) | printf("\r\n+ERROR: %d\r\n,%s\r\n", val, (char *)cmdTxt) |
#define AT_SEND_OK | ( | cmdTxt | ) | printf("\r\n+OK\r\n,%s\r\n", (char *)cmdTxt) |
Referenced by atCmd_ApDisable_Handler(), atCmd_AppConfig_Handler(), atCmd_DisConnect_Handler(), atCmd_FileDownload_Handler(), atCmd_Iperf_Handler(), atCmd_MonDis_Handler(), atCmd_MonEn_Handler(), atCmd_P2pDisable_Handler(), atCmd_P2pEnable_Handler(), atCmd_PsMode_Handler(), atCmd_SetStaticIP_Handler(), atCmd_WpsDisable_Handler(), cmd_handler(), and wifi_cb().
#define BASE_16 (16) |
#define ENABLE_PRINT 1 |
#define MAC_ANTENNA_DIVERSITY |
#define MAIN_WLAN_DEVICE_NAME "WILC1000_P2P" /* < P2P Device Name */ |
P2P mode Settings.
Referenced by atCmd_P2pEnable_Handler().
#define PRINT printf |
Referenced by atCmd_ApDisable_Handler(), atCmd_ApEnable_Handler(), atCmd_AppConfig_Handler(), atCmd_Connect_Handler(), atCmd_CurRSSI_Handler(), atCmd_FileDownload_Handler(), atCmd_Help_Handler(), atCmd_HTTPCon_Handler(), atCmd_Inquiries_Handler(), atCmd_Iperf_Handler(), atCmd_P2pDisable_Handler(), atCmd_P2pEnable_Handler(), atCmd_P2pPIN_Handler(), atCmd_Reset_Handler(), atCmd_Scan_Handler(), atCmd_SetStaticIP_Handler(), atCmd_WpsConnect_Handler(), atCmd_WpsDisable_Handler(), and start_m2m_app().
#define TX_PWR_DBM_0 0 |
Referenced by atCmd_TxPwr_Handler().
#define TX_PWR_DBM_12 12 |
#define TX_PWR_DBM_15 15 |
#define TX_PWR_DBM_18 18 |
Referenced by atCmd_TxPwr_Handler().
#define TX_PWR_DBM_3 3 |
#define TX_PWR_DBM_6 6 |
#define TX_PWR_DBM_9 9 |
typedef struct str_At_Cmd strAtCMD_Handler |
typedef sint8(* tpf_at_cmd_handler)(tstrAt_cmd_content *, void *, uint8) |
typedef struct connect_status tstr_test_conn_status |
typedef struct cmd tstrAt_cmd_content |
typedef struct at_cmd_parse_chrs tstrAt_cmd_parse_chrs |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
enum at_cmd_error |
enum at_cmd_index |
enum at_cmd_status |
sint8 atCmd_AntDiversity_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_ApDisable_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_ERR_INVALID_OPERATION, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_ERR_OPERATION_NOT_COMPELETED, AT_INDEX_AP_DISABLE, AT_SEND_OK, cmd::au8Cmd, M2M_SUCCESS, os_m2m_wifi_disable_ap(), PRINT, SERVICE_DEV_IS_CONNECTED, SERVICE_IS_STOPPED, SERVICE_IS_UNDEFINED, connect_status::u8Ap_status, and cmd::u8NumOfParameters.
sint8 atCmd_ApEnable_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AP_INDEX_CHANNEL, AP_INDEX_SEC_KEY, AP_INDEX_SEC_TYPE, AP_INDEX_SSID, AP_INDEX_SSID_VISIBLE_MODE, AT_ERR_INVALID_ARGUMENTS, AT_ERR_INVALID_OPERATION, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_AP_ENABLE, cmd::au8ParamsList, tuniM2MWifiAuth::au8PSK, tstrM2MAPConfig::au8SSID, tstrM2mWifiWepParams::au8WepKey, GET_CH_ENUM_VAL, M2M_SUCCESS, M2M_WIFI_SEC_WEP, M2M_WIFI_SEC_WPA_PSK, NULL, os_m2m_wifi_enable_ap(), PRINT, SERVICE_IS_RUNNING, tuniM2MWifiAuth::strWepInfo, connect_status::u8Ap_status, tstrM2mWifiWepParams::u8KeyIndx, tstrM2mWifiWepParams::u8KeySz, tstrM2MAPConfig::u8ListenChannel, cmd::u8NumOfParameters, connect_status::u8P2p_status, tstrM2MAPConfig::u8SecType, tstrM2MAPConfig::u8SsidHide, connect_status::u8Sta_status, and tstrM2MAPConfig::uniAuth.
sint8 atCmd_AppConfig_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_CFG_INDEX_ECHO, AT_CFG_INDEX_HINT, AT_ERR_NO_ERROR, AT_ERR_NOT_REGISTERED_CFG, AT_ERR_NUM_OF_PARAMS, AT_INDEX_CONFIG, AT_MAX_CFG_CMD_COUNT, AT_SEND_OK, cmd::au8ParamsList, gaAt_CFG_Values_arr, M2M_INFO, PRINT, tstr_app_config::u8Disaply_hint, tstr_app_config::u8Echo_status, cmd::u8NumOfParameters, and tstr_app_config::u8Restart_app.
sint8 atCmd_ChipInfo_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
User define MAC Address.
References AT_ERR_NO_ERROR, M2M_MAC_ADDRES_LEN, nmi_get_chipid(), nmi_get_rfrevid(), os_m2m_wifi_get_mac_address(), os_m2m_wifi_get_otp_mac_address(), os_m2m_wifi_set_mac_address(), and osprintf().
sint8 atCmd_Connect_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_ERR_INVALID_OPERATION, AT_ERR_NUM_OF_PARAMS, AT_INDEX_CONN, cmd::au8ParamsList, tstr1xAuthCredentials::au8Passwd, tstr1xAuthCredentials::au8UserName, tstrM2mWifiWepParams::au8WepKey, str_uart_conn::channel, CONN_INDEX_CHANNEL, CONN_INDEX_SEC_KEY, CONN_INDEX_SEC_TYPE, CONN_INDEX_SSID, CONN_INDEX_SSID_LENGTH, GET_CH_ENUM_VAL, gstrConn, M2M_ERR_FAIL, M2M_INFO, M2M_WIFI_SEC_802_1X, M2M_WIFI_SEC_WEP, M2M_WIFI_SEC_WPA_PSK, NULL, os_m2m_wifi_connect(), PRINT, str_uart_conn::secKey, str_uart_conn::secType, SERVICE_IS_RUNNING, str_uart_conn::ssid, str_uart_conn::ssidLen, connect_status::u8Ap_status, tstrM2mWifiWepParams::u8KeyIndx, tstrM2mWifiWepParams::u8KeySz, cmd::u8NumOfParameters, connect_status::u8P2p_status, and connect_status::u8Sta_status.
sint8 atCmd_CurRSSI_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_DefaultConnect_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_DeinitGrowl_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_DeleteCID_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_DhcpReq_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_DisConnect_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_FileDownload_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_GetConnInfo_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
References os_m2m_wifi_get_connection_info().
sint8 atCmd_GetSysTime_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_GetVer_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_Help_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_ERR_NO_ERROR, and PRINT.
sint8 atCmd_HTTPCon_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
References at_cmd_task1_sem, AT_ERR_INVALID_ARGUMENTS, AT_ERR_INVALID_OPERATION, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_HTTPCON, atCmd_IsParameterNumericOnly(), cmd::au8ParamsList, M2M_SUCCESS, osprintf(), PRINT, SERVICE_IS_RUNNING, temp_cmd_content, connect_status::u8Ap_status, str_At_Cmd::u8NoOfParameters, cmd::u8NumOfParameters, connect_status::u8Sta_status, and xSemaphoreGive.
sint8 atCmd_InitGrowl_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_Inquiries_Handler | ( | tstrAt_cmd_content * | , |
strAtCMD_Handler * | |||
) |
References AT_ANT_DIV, AT_CHIP_INFO, AT_ERR_NO_ERROR, AT_ERR_NOT_REGISTERED_CMD, AT_FILEDOWNLOAD, AT_INDEX_AP_DISABLE, AT_INDEX_AP_ENABLE, AT_INDEX_CONFIG, AT_INDEX_CONN, AT_INDEX_DISCONN, AT_INDEX_HELP, AT_INDEX_HTTPCON, AT_INDEX_IPCON, AT_INDEX_IPERF, AT_INDEX_LIST, AT_INDEX_P2P_DISABLE, AT_INDEX_P2P_ENABLE, AT_INDEX_RESET, AT_INDEX_RSSI, AT_INDEX_SCAN, AT_INDEX_WPS_DISABLE, AT_INDEX_WPS_START, AT_MAX_COMMANDS_COUNT, AT_TX_PWR, str_At_Cmd::au8AtCMD, cmd::au8Cmd, and PRINT.
Referenced by start_m2m_app().
sint8 atCmd_IPCon_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References at_cmd_task1_sem, AT_ERR_INVALID_ARGUMENTS, AT_ERR_INVALID_OPERATION, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_IPCON, atCmd_IsParameterNumericOnly(), cmd::au8ParamsList, M2M_INFO, M2M_SUCCESS, NULL, osprintf(), SERVICE_IS_RUNNING, temp_cmd_content, connect_status::u8Ap_status, str_At_Cmd::u8NoOfParameters, cmd::u8NumOfParameters, connect_status::u8Sta_status, and xSemaphoreGive.
sint8 atCmd_Iperf_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
References at_cmd_task1_sem, AT_ERR_INVALID_ARGUMENTS, AT_ERR_INVALID_OPERATION, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_IPERF, AT_SEND_OK, cmd::au8Cmd, cmd::au8ParamsList, osprintf(), PRINT, SERVICE_IS_RUNNING, temp_cmd_content, connect_status::u8Ap_status, cmd::u8NumOfParameters, connect_status::u8Sta_status, and xSemaphoreGive.
References M2M_ERR_FAIL, M2M_SUCCESS, and NULL.
Referenced by atCmd_HTTPCon_Handler(), and atCmd_IPCon_Handler().
sint8 atCmd_List_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_ERR_NO_ERROR, AT_INDEX_CONFIG, AT_MAX_CFG_CMD_COUNT, AT_MAX_COMMANDS_COUNT, and gaAt_CFG_Values_arr.
sint8 atCmd_MonDis_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_MonEn_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
References Ascii2Hex(), AT_ERR_INVALID_ARGUMENTS, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_MON_EN, AT_MAX_CONTROL_SUBTYPE, AT_MAX_DATA_SUBTYPE, AT_MAX_MANGEMENT_SUBTYPE, AT_SEND_ERROR, AT_SEND_OK, tstrM2MWifiMonitorModeCtrl::au8BSSID, tstrM2MWifiMonitorModeCtrl::au8DstMacAddress, cmd::au8ParamsList, tstrM2MWifiMonitorModeCtrl::au8SrcMacAddress, CONTROL, DATA_BASICTYPE, GET_CH_ENUM_VAL, M2M_DBG, M2M_ERR_FAIL, M2M_SUCCESS, MANAGEMENT, os_m2m_wifi_enable_monitoring_mode(), tstrMonstats::s32Enabled, tstrFilterStat::s8Enabled, tstrMonstats::strFilterSubtype, StrMac2Bin(), tstrM2MWifiMonitorModeCtrl::u8ChannelID, tstrM2MWifiMonitorModeCtrl::u8EnRecvHdr, tstrM2MWifiMonitorModeCtrl::u8FrameSubtype, tstrM2MWifiMonitorModeCtrl::u8FrameType, str_At_Cmd::u8NoOfParameters, and cmd::u8NumOfParameters.
sint8 atCmd_NMA_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_P2pDisable_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_ERR_INVALID_OPERATION, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_ERR_OPERATION_NOT_COMPELETED, AT_INDEX_P2P_DISABLE, AT_SEND_OK, cmd::au8Cmd, M2M_SUCCESS, os_m2m_wifi_p2p_disconnect(), PRINT, SERVICE_DEV_IS_CONNECTED, SERVICE_IS_STOPPED, SERVICE_IS_UNDEFINED, cmd::u8NumOfParameters, and connect_status::u8P2p_status.
sint8 atCmd_P2pEnable_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_ERR_INVALID_ARGUMENTS, AT_ERR_INVALID_OPERATION, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_P2P_ENABLE, AT_SEND_OK, cmd::au8Cmd, cmd::au8ParamsList, tstrM2MP2PConnect::enuTrigger, GET_CH_ENUM_VAL, M2M_SUCCESS, MAIN_WLAN_DEVICE_NAME, os_m2m_wifi_p2p(), os_m2m_wifi_set_device_name(), os_m2m_wifi_set_p2p_control_ifc(), osprintf(), P2P_AP_CONCURRENCY_INTERFACE, P2P_INDEX_CFG_METHODS, P2P_INDEX_CHANNEL, P2P_INDEX_TRIGGER, P2P_STA_CONCURRENCY_INTERFACE, PRINT, SERVICE_IS_RUNNING, tstrM2MP2PConnect::u16WPS_CfgMethods, connect_status::u8Ap_status, tstrM2MP2PConnect::u8ListenChannel, cmd::u8NumOfParameters, connect_status::u8P2p_status, and connect_status::u8Sta_status.
sint8 atCmd_P2pPIN_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_Ping | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoreValue | ||
) |
References at_cmd_task1_sem, AT_ERR_INVALID_OPERATION, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_PING, cmd::au8ParamsList, gethostbyname, M2M_ERR, M2M_ERR_FAIL, M2M_INFO, NULL, SERVICE_IS_RUNNING, temp_cmd_content, connect_status::u8Ap_status, str_At_Cmd::u8NoOfParameters, cmd::u8NumOfParameters, connect_status::u8Sta_status, and xSemaphoreGive.
sint8 atCmd_ProvisionDisable_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_ProvisionEnable_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_Prowl_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_PsMode_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
References AT_ERR_INVALID_ARGUMENTS, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_PS_MODE, AT_SEND_ERROR, AT_SEND_OK, cmd::au8ParamsList, M2M_DBG, M2M_NO_PS, M2M_PRINT, M2M_PS_DEEP_AUTOMATIC, m2m_wifi_set_sleep_mode(), cmd::u8NumOfParameters, uart_is_rx_ready(), uart_read(), usart_start_tx_break(), and usart_stop_tx_break().
sint8 atCmd_Reset_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_INDEX_RESET, PRINT, str_At_Cmd::u8NoOfParameters, and cmd::u8NumOfParameters.
sint8 atCmd_Scan_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_ScanPassive_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_ScanSsidList_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_SendGrowl_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_SetPowerProfile_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_SetStaticIP_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
References AT_ERR_INVALID_ARGUMENTS, AT_ERR_NUM_OF_PARAMS, AT_INDEX_STATIC_IP, AT_SEND_OK, cmd::au8Cmd, cmd::au8ParamsList, htonl, M2M_SUCCESS, NULL, PRINT, StaticIPcfg, tstrM2MIPConfig::u32Gateway, tstrM2MIPConfig::u32StaticIP, str_At_Cmd::u8NoOfParameters, cmd::u8NumOfParameters, and use_static_IP.
sint8 atCmd_SocketDataStream_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_SslEnableCertExpirationCheck | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoreValue | ||
) |
sint8 atCmd_SslGlobalOption_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_TLS_CertTransfer_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_TLS_SetCipherSuite_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_TlsCrlAdd_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_TlsCrlReset_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_TlsCrlSend_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_TxPwr_Handler | ( | tstrAt_cmd_content * | data, |
void * | moreData, | ||
uint8 | useStoredValue | ||
) |
sint8 atCmd_WifiDirectDeinit_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_WifiDirectInit_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_WpsConnect_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
sint8 atCmd_WpsDisable_Handler | ( | tstrAt_cmd_content * | data, |
void * | , | ||
uint8 | |||
) |
References AT_SEND_ERROR, AT_SEND_OK, init_m2m_app(), M2M_ERR, M2M_INFO, M2M_SUCCESS, start_m2m_app(), and vTaskDelay().
Referenced by main().
References AT_MAX_COMMANDS_COUNT, and NULL.
Referenced by wifi_cb().
sint8 get_index_cmdHandler | ( | tstrAt_cmd_content * | , |
strAtCMD_Handler * | |||
) |
References AT_ERR_NO_ERROR, AT_ERR_NOT_REGISTERED_CMD, AT_MAX_COMMANDS_COUNT, str_At_Cmd::au8AtCMD, cmd::au8Cmd, and M2M_DBG.
Referenced by start_m2m_app().
References AT_CMD_STATUS_CHECK, AT_CMD_STATUS_IDLE, carriage_return, ESCAPE_CHAR, escape_command, gau8DataBuffer, gau8Rx_buffer, gu16Data_Index, gu8CmdStatus, gu8InvalidPrinted, gu8IsrFired, and RESET_VAR_TO_0.
Referenced by UART_Handler().
void init_at_cmd_handler | ( | strAtCMD_Handler * | ) |
References AT_MAX_COMMANDS_COUNT.
Referenced by init_m2m_app().
sint8 parse_cmd | ( | uint8 * | , |
tstrAt_cmd_content * | , | ||
tstrAt_cmd_parse_chrs | |||
) |
References AT_ERR_CHR_NUM_OF_CMD, AT_ERR_CMD_IS_INQUIRY, AT_ERR_INVALID_CMD, AT_ERR_NO_ERROR, AT_ERR_NUM_OF_PARAMS, AT_HEADER, AT_MAX_CMD_LENGTH, AT_MAX_PARAM_LENGTH, AT_MIN_CMD_LENGTH, cmd::au8Cmd, cmd::au8ParamsList, ESCAPE_CHAR, gau8DataBufferTemp, NULL, osprintf(), at_cmd_parse_chrs::u8Help_param_sep, at_cmd_parse_chrs::u8Num_ofParams_sep, cmd::u8NumOfParameters, at_cmd_parse_chrs::u8Params_enc_End_sep, at_cmd_parse_chrs::u8Params_enc_Start_sep, and at_cmd_parse_chrs::u8Params_sep.
Referenced by start_m2m_app().
void print_cmd_handler_arr | ( | strAtCMD_Handler * | ) |
References AT_MAX_COMMANDS_COUNT.
Referenced by init_m2m_app().
enum { ... } AT_CONTROL_SUBTYPE |
enum { ... } AT_DATA_SUBTYPE |
tstr_test_conn_status gstrAllStatus |
Referenced by init_m2m_app(), start_m2m_app(), and wifi_cb().
tstrM2MIPConfig StaticIPcfg |
Referenced by atCmd_SetStaticIP_Handler(), and wifi_cb().
volatile tstrAt_cmd_content temp_cmd_content |