Access Point
45
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
WLAN
Table 4-3. Common Errors (continued)
Error
Value
Comments
SL_ERROR_WLAN_GET_NETWORK_LIST_EAGAIN
–2073
Scan was not enabled, one-shot scan is immediately
triggered and the user should fetch the scan results
again
SL_ERROR_WLAN_GET_PROFILE_INVALID_INDEX
–2074
Profile index is too high or does not exist
4.4
Access Point
4.4.1 General Description
Access point (AP) is supported by the SimpleLink Wi-Fi device. This mode is used mostly to set the
device network configuration. In AP mode, the unprovisioned SimpleLink Wi-Fi device wakes up initially as
an AP with an SSID defined by the equipment manufacturer. Before trying to connect to the home network
for the first time, the unprovisioned device creates a network of its own, allowing a PC or a smartphone to
connect to it directly and facilitate its initial configuration. AP mode supports up to four connected stations
and offers a secured connection. Managing the station connection can be done by using host commands
(distributes IP address, see connected stations, disconnect stations, add or remove stations from the black
list, and so on). Specific settings and modes of operation are unique for AP mode.
4.4.2 Configurations and Settings
The SimpleLink Wi-Fi device AP configuration is done by using the host driver API. Several configurations
exist for each specific use case. Some of the configurations are persistent according to the system-
persistent configuration, and some are persistent and nonpersistent, as specified in each configuration
specification (more information is in annex 2 Persistency). Not all configurations are mandatory because
the device has default values, according to
Table 4-4. AP Default Parameters
Configuration
Default Value
Interface
IPv4
Address
Static with the following parameters:
IP 10.123.45.1, Subnet mask: 255.255.255.0
Default gateway: 10.123.45.1, DNS: 10.123.45.1
AP TX power
0 (no back-off, maximum TX power)
Country code
EU (channels 1–13), default channel is 6
Connection policy
N/A
Calibration mode
Normal
Applications
DHCP server and HTTP server and MDNS and DNS server
4.4.2.1
Set Mode
AP mode is the default initial mode of the device. AP configuration is not effective until the device enters
into AP mode. This configuration requires a reset, and is persistent with no dependency on the system-
persistent configuration. If the device gets set to a different mode, and the AP mode is required again, the
following API should be called.
_i16 Role;
_i16 Status;
Status = sl_WlanSetMode(ROLE_AP);
if
( Status )
{
/* error */
}
sl_Stop(0);
Role = sl_Start(NULL,NULL,NULL);