Data Structures | |
struct | client_hdr |
struct | iperf_stats |
struct | server_hdr |
struct | UDP_datagram |
Macros | |
#define | AP_STA_CONCURRENCY |
#define | HEADER_VERSION1 0x80000000 |
iPerf Settings More... | |
#define | HEADER_VERSION1 0x80000000 |
iPerf Settings More... | |
#define | IPERF_CLIENT_PORT 5001 |
#define | IPERF_SERVER_PORT 5001 |
#define | IPERF_WIFI_M2M_TX_TIME (9999) |
#define | IPERF_WIFI_SERVER_PORT (5001) |
#define | IPERF_WIFI_TCP_BUFFER_SIZE (1400) |
#define | IPERF_WIFI_UDP_BUFFER_SIZE (1400) |
#define | MAIN_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK /* < Security manner */ |
#define | MAIN_WLAN_PSK "12345678" /* < Password for Destination SSID */ |
#define | MAIN_WLAN_SSID "DEMO_AP" /* < Destination SSID */ |
Wi-Fi Settings. More... | |
#define | NUM_THREADS 1 |
#define | rMillion 1000000 |
#define | RUN_NOW 0x00000001 |
#define | SERVER_IP_ADDRESS "192.168.43.1" |
#define | TEST_TIME 1000 |
#define | TimeAdd(left, right) |
#define | TimeDifference(left, right) |
#define | UDP_RATE 40 * 1024 * 1024 |
#define | WEP_AUTH_TYPE WEP_ANY |
#define | WEP_CONN_PARAM {WEP_KEY_INDEX, WEP_KEY_SIZE, WEP_KEY, WEP_AUTH_TYPE} |
#define | WEP_KEY "1234567890" |
#define | WEP_KEY_INDEX M2M_WIFI_WEP_KEY_INDEX_1 |
#define | WEP_KEY_SIZE sizeof(WEP_KEY) |
Functions | |
void | iperf_tcp_client_task (void *argument) |
void | iperf_tcp_task (void *argument) |
TCP task function. More... | |
void | iperf_udp_task (void *argument) |
UDP task function. More... | |
#define AP_STA_CONCURRENCY |
#define HEADER_VERSION1 0x80000000 |
iPerf Settings
#define HEADER_VERSION1 0x80000000 |
iPerf Settings
#define IPERF_CLIENT_PORT 5001 |
Referenced by iperf_tcp_client_task().
#define IPERF_SERVER_PORT 5001 |
#define IPERF_WIFI_M2M_TX_TIME (9999) |
#define IPERF_WIFI_SERVER_PORT (5001) |
#define IPERF_WIFI_TCP_BUFFER_SIZE (1400) |
#define IPERF_WIFI_UDP_BUFFER_SIZE (1400) |
#define MAIN_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK /* < Security manner */ |
Referenced by iperf_tcp_client_task(), iperf_tcp_task(), and wifi_cb().
#define MAIN_WLAN_PSK "12345678" /* < Password for Destination SSID */ |
Referenced by iperf_tcp_client_task(), iperf_tcp_task(), and wifi_cb().
#define MAIN_WLAN_SSID "DEMO_AP" /* < Destination SSID */ |
Wi-Fi Settings.
Referenced by iperf_tcp_client_task(), iperf_tcp_task(), and wifi_cb().
#define NUM_THREADS 1 |
Referenced by iperf_tcp_client_task().
#define rMillion 1000000 |
#define RUN_NOW 0x00000001 |
#define SERVER_IP_ADDRESS "192.168.43.1" |
Referenced by iperf_tcp_client_task().
#define TEST_TIME 1000 |
Referenced by iperf_tcp_client_task().
#define TimeAdd | ( | left, | |
right | |||
) |
#define TimeDifference | ( | left, | |
right | |||
) |
#define UDP_RATE 40 * 1024 * 1024 |
#define WEP_AUTH_TYPE WEP_ANY |
#define WEP_CONN_PARAM {WEP_KEY_INDEX, WEP_KEY_SIZE, WEP_KEY, WEP_AUTH_TYPE} |
#define WEP_KEY "1234567890" |
#define WEP_KEY_INDEX M2M_WIFI_WEP_KEY_INDEX_1 |
#define WEP_KEY_SIZE sizeof(WEP_KEY) |
void iperf_tcp_client_task | ( | void * | argument | ) |
References buffer, client_hdr::bufferlen, BUFSIZE, iperf_state::chdr, E_CLOSED, ERR_OK, client_hdr::flags, HEADER_VERSION1, htonl, ioport_get_pin_level(), ipaddr_ntoa(), iperf, IPERF_CLIENT_PORT, IPERF_PORT, local_ip, M2M_WIFI_CH_ALL, m2m_wifi_connect(), MAIN_WLAN_AUTH, MAIN_WLAN_PSK, MAIN_WLAN_SSID, client_hdr::mAmount, client_hdr::mPort, client_hdr::mWinBand, net_init(), NUM_THREADS, client_hdr::numThreads, os_m2m_wifi_init(), osprintf(), param, tstrWifiInitParam::pfAppWifiCb, SERVER_IP_ADDRESS, SetServerIpAddr(), iperf_state::status, TCP_SND_BUF, TCP_WND, TEST_TIME, wifi_cb(), and xTaskGetTickCount().
void iperf_tcp_task | ( | void * | argument | ) |
TCP task function.
References BUFF_SIZE, buffer, BUFSIZE, delay_ms, E_WAITING, ERR_OK, iperf_state::flags, HEADER_VERSION1, ipaddr_ntoa(), iperf, IPERF_PORT, iperf_tcp_recv(), iperf_tcp_send(), local_ip, M2M_SUCCESS, M2M_WIFI_CH_ALL, m2m_wifi_connect(), m2m_wifi_send_ethernet_pkt(), MAIN_WLAN_AUTH, MAIN_WLAN_PSK, MAIN_WLAN_SSID, net_init(), NULL, os_m2m_wifi_init(), osprintf(), param, tstrWifiInitParam::pfAppWifiCb, STATION_INTERFACE, iperf_state::status, TCP_WND, vSemaphoreDelete, vTaskDelay(), wifi_cb(), xSemaphoreCreateCounting, xSemaphoreTake, and xTaskGetTickCount().
Referenced by main().
void iperf_udp_task | ( | void * | argument | ) |
UDP task function.
References ERR_OK, IPERF_PORT, iperf_udp_recv(), iperf_udp_send(), NULL, osprintf(), stats, and vTaskDelay().
Referenced by main().