NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
WiLink8 WLAN Demo: Android
Contents
Enabling Wi-Fi[edit]
- To turn on Wi-Fi, browse to "App Launcher" -> "Settings" -> "Wi-Fi".
- Enable Wi-Fi by sliding the ON/OFF tab to the ON position and wait for few seconds.
- The device scans for the available APs and displays them.
- Connect to desired AP by clicking on its name and enter required details (username/key etc) and click Connect
- The following appears on console
[ 1270.525207] wl1271: loaded [ 1271.494323] wl1271: firmware booted (Rev 6.3.6.0.79_2) [ 1271.499694] wl1271: Driver version: R4_SP2_03_00 [ 1336.340881] cfg80211: Calling CRDA for country: IN [ 1336.379425] cfg80211: Regulatory domain changed to country: IN [ 1336.385559] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 1336.394287] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm) [ 1336.402160] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm) [ 1336.410064] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm) [ 1336.417968] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 2000 mBm) [ 1340.068145] wl1271: Association completed.
- when successfully connected, you will see status as connected under the respective AP name
Disabling Wi-Fi[edit]
- To turn off Wi-Fi, browse to "App Launcher" -> "Settings" -> "Wi-Fi".
- Disable Wi-Fi by sliding the ON/OFF tab to the OFF position.
- Following message appears on console and the Wi-Fi status is shown as OFF.
[ 1459.324127] cfg80211: Calling CRDA to update world regulatory domain [ 1459.381622] cfg80211: World regulatory domain updated: [ 1459.386993] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 1459.395721] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1459.403991] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 1459.412261] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 1459.420501] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1459.428741] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 1459.438476] wl1271: down
Wi-Fi Hostspot (SoftAP)[edit]
TI-Android-ICS-4.0.3-DevKit-3.0.1 supports Wi-Fi hostspot (SoftAP) feature with TI WL1271 Wireless module.
- To turn on Wi-Fi hotspot, browse to "App Launcher" -> "Settings" -> "More..." -> "Portable hotspot"
- Click "Configure Wi-Fi hotspot" to configure the hotspot settings..

- Click the checkbox next to "Portable Wi-Fi hotspot" to start hotspot. You will see the message "Tethering or hotspot active" in the notification bar once the hotspot is fully functional.
- The following screenshot shows the hotspot being detected from another evm.

Wi-Fi Direct[edit]
TI-Android-ICS-4.0.3-DevKit-3.0.1 supports Wi-Fi Direct with TI WL1271 Wireless module.
- To turn on Wi-Fi direct, browse to "App Launcher" -> "Settings" -> "More..."
- Click checkbox next to "Wi-Fi direct".
- After Wi-Fi direct is enabled, click "Wi-Fi direct: Set up peer-to-peer connections". This window shows any nearby devices with Wi-Fi direct enabled.

Changing WLAN MAC Address[edit]
The devices loaded with TI-Android-ICS-4.0.3-DevKit-3.0.1 will have the same MAC address which is encoded in wl1271-nvs.bin file. This may result in Wi-Fi not operating correctly when multiple devices are simultaneously in use. For optimum results, we recommend to modify the MAC address to ensure unique MAC for the devices before use

To change the MAC address, perform the following on the serial console of device:
- First get the current MAC address for WLAN:
root@android:/ # calibrator get nvs_mac /system/etc/firmware/ti-connectivity/wl1271-nvs.bin
- Then update the MAC address for WLAN:
root@android:/ # calibrator set nvs_mac /system/etc/firmware/ti-connectivity/wl1271-nvs.bin <MAC Address>
You need to reboot the board after changing the MAC address.