WINC1500 Scan for and Connect to Available APs

 Objective

This lab demonstrates the ease of use of the WINC1500 module to enable wireless connectivity. We will connect the host MCU to a secure Acces Point (AP) using the WINC1500 module.

 Materials

Hardware Tools

Tool About Purchase
board-50px.png
ATWINC1500-XPRO
Development Board
ATSAMD21-XPRO-50px.png
SAM D21 Xplained Pro
Evaluation Kit

Software Tools

Tool About Installers
Installation
Instructions
Windows Linux Mac OSX
swtool-28px.png
Atmel® Studio
Integrated Development Environment
Advanced Software Framework v3 (ASF3)
Integrated Software Framework
Included with Atmel® Studio7 IDE

 Connection Diagram

WINC1500SAMD21.png

 Procedure

1

Create a New Example Project

Click on the Example Project button.

ExampleProject.png

2

Search for WINC1500 Projects

In the search box type in WINC1500 and then expand the example list tree to browse through the example projects.

SearchWINC1500.png

3

Select AP Example

Select the WINC1500 AP Scan Example. In this lab, we are using the SAMD21 Xplained Pro Board which means we have to select the 'WINC1500 AP Scan Example - SAMD21 Xplained Pro' option.

APExample.png

Click OK.

4

License Agreement

Accept the License Agreement and click Finish.

LicenseAgreement2.png

5

Build Project

Go to the 'Build' menu and select 'Build Solution'.

BuildSolution.png

6

Select the Debugger/Programmer

Click on None on (top right side of the screen) and under Selected programmer/debugger, select 'EDBG MSD'.

DebuggerSelection.png

7

Open a Terminal Window

Use the following serial port settings:

PortSettings.png

8

Program the Device

Press the Start Without Debugging button.

Start.png

When an update for the WINC module is provided, it usually combines the Wi-Fi software API for the host MCU and a binary firmware for the WINC module. To ensure the compatibility between the Wi-Fi software API on the host MCU and the WINC module, a major/minor/patch version number is used and verified at the Wi-Fi driver init. When a version mismatch is detected at startup, the Wi-Fi driver initialization fails and the m2m_wifi_init() function returns an error code:

Mismatch.png

If you see the Mismatch Firmware Version error, you will need to update the firmware on your module by following the instructions on the "WINC1500 Firmware Update" page.

9

List of available Access Points (APs)

After the project has been written to the device, you will see the list of available access points on the terminal program.

ListOfAPs.png

10

SSID and Password

If you would like the WINC1500 to connect to a specific network, go to line 49 of main.h and change the SSID to the name of the network you'd like to join. Also on line 51, change 12345678 to the correct password used to join the network.

SSID.png

11

Program the Device

Press the Start Without Debugging button.

StartWODebugging.png

12

Connection Successful

In the terminal window, you'll see that the connection was successful.

Connected.png

 Results

In this example, the Access Points are scanned and if a scanned AP matches the pre-configured AP in the application, the WINC1500 connects to it.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.