/* * Copyright (c) 2015-2020 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ----------------------------------------------------------------------------- * * $Revision: V1.1.0 * * Project: CMSIS-Driver Validation * Title: WiFi driver validation configuration file * * ----------------------------------------------------------------------------- */ #ifndef DV_WIFI_CONFIG_H_ #define DV_WIFI_CONFIG_H_ //-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- // WiFi // WiFi driver validation configuration // Driver_WiFi# <0-255> // Choose the Driver_WiFi# instance to test. // For example to test Driver_WiFi0 select 0. #define DRV_WIFI 0 // Configuration // Configuration of valid settings for driver functionality testing // Station // Settings relevant for Station // SSID // SSID of network that Station will connect to #define WIFI_STA_SSID "SSID" // Password // Password of network that Station will connect to #define WIFI_STA_PASS "Password" // Security Type // <0=> Open <1=> WEP <2=> WPA <3=> WPA2 // Security type of network that Station will connect to #define WIFI_STA_SECURITY 3 // Channel // WiFi channel of network that Station will connect to // Value 0 means Autodetect #define WIFI_STA_CH 0 // WPS PIN // WiFi Protected Setup Personal Identification Number #define WIFI_STA_WPS_PIN "12345678" // // Access Point // Settings relevant for Access Point // SSID // SSID of created network #define WIFI_AP_SSID "CMSIS_DV" // Password // Password of created network #define WIFI_AP_PASS "Password" // Security Type // <0=> Open <1=> WEP <2=> WPA <3=> WPA2 // Security type of created network #define WIFI_AP_SECURITY 3 // Channel // WiFi channel of created network // Value 0 means Autoselect #define WIFI_AP_CH 0 // WPS PIN // WiFi Protected Setup Personal Identification Number #define WIFI_AP_WPS_PIN "12345678" // // Socket // Settings relevant for Socket testing // SockServer IP // Static IPv4 Address of SockServer #define WIFI_SOCKET_SERVER_IP "192.168.1.10" // Number of sockets // Number of sockets that driver supports // Default: 4 #define WIFI_SOCKET_MAX_NUM 4 // // // Tests // Enable / disable tests. // Control // Control functions tests #define WIFI_CONTROL_EN 1 // WIFI_GetVersion #define WIFI_GETVERSION_EN 1 // WIFI_GetCapabilities #define WIFI_GETCAPABILITIES_EN 1 // WIFI_Initialization/Uninitialization #define WIFI_INIT_UNINIT_EN 1 // WIFI_PowerControl #define WIFI_POWERCONTROL_EN 1 // WIFI_GetModuleInfo #define WIFI_GETMODULEINFO_EN 1 // // Management // Management functions tests #define WIFI_MANAGEMENT_EN 1 // WIFI_SetOption/GetOption #define WIFI_SETGETOPTION_EN 1 // ARM_WIFI_BSSID <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_BSSID_STA/WIFI_BSSID_AP (1E-30-6C-A2-45-5E) #define WIFI_SETGETOPTION_BSSID_EN 3 // ARM_WIFI_TX_POWER <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_TX_POWER_STA/WIFI_TX_POWER_AP (16) #define WIFI_SETGETOPTION_TX_POWER_EN 3 // ARM_WIFI_LP_TIMER <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_LP_TIMER_STA (10) #define WIFI_SETGETOPTION_LP_TIMER_EN 3 // ARM_WIFI_DTIM <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_DTIM_STA/WIFI_DTIM_AP (3) #define WIFI_SETGETOPTION_DTIM_EN 3 // ARM_WIFI_BEACON <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_BEACON_AP (2000) #define WIFI_SETGETOPTION_BEACON_EN 3 // ARM_WIFI_MAC <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_MAC_STA/WIFI_MAC_AP (1E-30-6C-A2-45-5E) #define WIFI_SETGETOPTION_MAC_EN 3 // ARM_WIFI_IP <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_IP_STA/WIFI_IP_AP (192.168.0.100) #define WIFI_SETGETOPTION_IP_EN 3 // ARM_WIFI_IP_SUBNET_MASK <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_IP_SUBNET_MASK_STA/WIFI_IP_SUBNET_MASK_AP (255.255.255.0) #define WIFI_SETGETOPTION_IP_SUBNET_MASK_EN 3 // ARM_WIFI_IP_GATEWAY <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_IP_GATEWAY_STA/WIFI_IP_GATEWAY_AP (192.168.0.254) #define WIFI_SETGETOPTION_IP_GATEWAY_EN 3 // ARM_WIFI_IP_DNS1 <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_IP_DNS1_STA/WIFI_IP_DNS1_AP (8.8.8.8) #define WIFI_SETGETOPTION_IP_DNS1_EN 3 // ARM_WIFI_IP_DNS2 <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_IP_DNS2_STA/WIFI_IP_DNS2_AP (8.8.4.4) #define WIFI_SETGETOPTION_IP_DNS2_EN 3 // ARM_WIFI_IP_DHCP <0=>Disabled <1=>Set <2=>Get <3=>Set/Get #define WIFI_SETGETOPTION_IP_DHCP_EN 3 // ARM_WIFI_IP_DHCP_POOL_BEGIN <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_IP_DHCP_POOL_BEGIN_AP (192.168.0.100) #define WIFI_SETGETOPTION_IP_DHCP_POOL_BEGIN_EN 3 // ARM_WIFI_IP_DHCP_POOL_END <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_IP_DHCP_POOL_END_AP (192.168.0.200) #define WIFI_SETGETOPTION_IP_DHCP_POOL_END_EN 3 // ARM_WIFI_IP_DHCP_LEASE_TIME <0=>Disabled <1=>Set <2=>Get <3=>Set/Get // Default test value is set in defines WIFI_IP_DHCP_LEASE_TIME_AP (3600) #define WIFI_SETGETOPTION_IP_DHCP_LEASE_TIME_EN 3 // // WIFI_Scan #define WIFI_SCAN_EN 1 #define WIFI_SCAN_MAX_NUM 10 // WIFI_Activate/Deactivate #define WIFI_ACT_DEACT_EN 1 // WIFI_IsConnected #define WIFI_ISCONNECTED_EN 1 // WIFI_GetNetInfo #define WIFI_GETNETINFO_EN 1 // // Management (requires user interaction) // Management functions tests that require user interaction #define WIFI_MANAGEMENT_USER_EN 0 // WIFI_Activate_AP // For this test please connect a WiFi client (for example mobile phone) to AP // and check if connection has succeeded #define WIFI_ACT_AP 1 // WPS #define WIFI_WPS_USER_EN 1 // WIFI_Activate_Station_WPS_PBC // For this test please start WPS Push-button method on WiFi AP (router) manually #define WIFI_ACT_STA_WPS_PBC 1 // WIFI_Activate_Station_WPS_PIN // For this test please configure WPS PIN method on WiFi AP (router) manually #define WIFI_ACT_STA_WPS_PIN 1 // WIFI_Activate_AP_WPS_PBC // For this test please connect a WiFi client (for example mobile phone) to AP with WPS Push-button method // and check if connection has succeeded #define WIFI_ACT_AP_WPS_PBC 1 // WIFI_Activate_AP_WPS_PIN // For this test please connect a WiFi client (for example mobile phone) to AP with WPS PIN method // and check if connection has succeeded #define WIFI_ACT_AP_WPS_PIN 1 // // // Socket API (requires SockServer) // Socket functions tests #define WIFI_SOCKET_EN 1 // WIFI_SocketCreate #define WIFI_SOCKETCREATE_EN 1 // WIFI_SocketBind #define WIFI_SOCKETBIND_EN 1 // WIFI_SocketListen #define WIFI_SOCKETLISTEN_EN 1 // WIFI_SocketAccept #define WIFI_SOCKETACCEPT_EN 1 // WIFI_SocketAccept_nbio #define WIFI_SOCKETACCEPT_NBIO_EN 1 // WIFI_SocketConnect #define WIFI_SOCKETCONNECT_EN 1 // WIFI_SocketConnect_nbio #define WIFI_SOCKETCONNECT_NBIO_EN 1 // WIFI_SocketRecv #define WIFI_SOCKETRECV_EN 1 // WIFI_SocketRecv_nbio #define WIFI_SOCKETRECV_NBIO_EN 1 // WIFI_SocketRecvFrom #define WIFI_SOCKETRECVFROM_EN 1 // WIFI_SocketRecvFrom_nbio #define WIFI_SOCKETRECVFROM_NBIO_EN 1 // WIFI_SocketSend #define WIFI_SOCKETSEND_EN 1 // WIFI_SocketSendTo #define WIFI_SOCKETSENDTO_EN 1 // WIFI_SocketGetSockName #define WIFI_SOCKETGETSOCKNAME_EN 1 // WIFI_SocketGetPeerName #define WIFI_SOCKETGETPEERNAME_EN 1 // WIFI_SocketGetOpt #define WIFI_SOCKETGETOPT_EN 1 // WIFI_SocketSetOpt #define WIFI_SOCKETSETOPT_EN 1 // WIFI_SocketClose #define WIFI_SOCKETCLOSE_EN 1 // WIFI_SocketGetHostByName #define WIFI_SOCKETGETHOSTBYNAME_EN 1 // WIFI_Ping #define WIFI_PING_EN 1 // // Socket Operation (requires SockServer) // Socket operation tests #define WIFI_SOCKET_OP_EN 1 // WIFI_Transfer_Fixed // Sends and receives in fixed size blocks #define WIFI_TRANSFER_FIXED_EN 1 // WIFI_Transfer_Incremental // Sends and receives in ascending size blocks #define WIFI_TRANSFER_INCREMENTAL_EN 1 // WIFI_Send_Fragmented // Sends several smaller blocks, receives one large block #define WIFI_SEND_FRAGMENTED_EN 1 // WIFI_Recv_Fragmented // Sends one large block, receives several smaller blocks #define WIFI_RECV_FRAGMENTED_EN 1 // WIFI_Test_Speed // Transmits data and measures transfer speed #define WIFI_TEST_SPEED_EN 1 // WIFI_Concurrent_Socket // Transmits data in two sockets simultaneously #define WIFI_CONCURRENT_SOCKET_EN 1 // WIFI_Downstream_Rate // Measures the downstream bandwidth #define WIFI_DOWNSTREAM_RATE_EN 1 // WIFI_Upstream_Rate // Measures the upstream bandwidth #define WIFI_UPSTREAM_RATE_EN 1 // // // // Configuration settings of test values for Set/GetOptions // BSSID #define WIFI_BSSID_STA "1E-30-6C-A2-45-5E" #define WIFI_BSSID_AP "1E-30-6C-A2-45-5E" // Radio transmitting power in dBm #define WIFI_TX_POWER_STA 16 #define WIFI_TX_POWER_AP 16 // Low-power deep-sleep time value in seconds #define WIFI_LP_TIMER_STA 10 // Delivery Traffic Indication Message interval value in beacons #define WIFI_DTIM_STA 3 #define WIFI_DTIM_AP 3 // Beacon interval value in milliseconds #define WIFI_BEACON_AP 2000 // Ethernet MAC Address in text representation #define WIFI_MAC_STA "1E-30-6C-A2-45-5E" #define WIFI_MAC_AP "1E-30-6C-A2-45-5E" // Static IPv4 Address in text representation #define WIFI_IP_STA "192.168.0.100" #define WIFI_IP_AP "192.168.0.100" // Local Subnet mask in text representation #define WIFI_IP_SUBNET_MASK_STA "255.255.255.0" #define WIFI_IP_SUBNET_MASK_AP "255.255.255.0" // IP Address of Default Gateway in text representation #define WIFI_IP_GATEWAY_STA "192.168.0.254" #define WIFI_IP_GATEWAY_AP "192.168.0.254" // IP Address of Primary DNS Server in text representation #define WIFI_IP_DNS1_STA "8.8.8.8" #define WIFI_IP_DNS1_AP "8.8.8.8" // IP Address of Secondary DNS Server in text representation #define WIFI_IP_DNS2_STA "8.8.4.4" #define WIFI_IP_DNS2_AP "8.8.4.4" // IP Address of DHCP server pool beginning in text representation #define WIFI_IP_DHCP_POOL_BEGIN_AP "192.168.0.100" // IP Address of DHCP server pool end in text representation #define WIFI_IP_DHCP_POOL_END_AP "192.168.0.200" // DHCP lease time value in seconds #define WIFI_IP_DHCP_LEASE_TIME_AP 3600 // Timeout configuration that can be used for adjusting tests to limitations of the WiFi Module (in ms) #define WIFI_SOCKET_TIMEOUT 2000 #define WIFI_SOCKET_TIMEOUT_LONG 35000 // Time that Access Point will wait for Client to connect to it (in ms) #define WIFI_AP_CLIENT_CON_TIMEOUT 120000 #endif /* DV_WIFI_CONFIG_H_ */