WebBasedWiFiProvisioning


The SAMA5D27 WLSOM1 EK boards enables to configure the WiFi credentials over the HTML based webpage.
The WILC module comes up as a Access point and hosts a webpage. The web page allows the user to configure desired AP(router) configuration like SSID, Passphrase using a webpage.

The demo makes use of following components,

  1. WILC in AP mode
  2. Hostapd application
  3. DHCP Server
  4. NGINX Webserver
  5. Websocket Application

Demo block diagram:-
web-wifi-prov.jpg

Following are the steps to run the Web based WiFi Provisioning demo

  1. On power on reset, enter the following command:
    ./Start_AP.sh
    start_ap_cmd.jpg
  2. SoftAP SSID is “wilc1000_SoftAP” and it’s in open network. The SoftAP configuration can be modified by changing the configuration file in the Start_AP.sh script.
  3. User can connect any Wi-Fi device (laptop/mobile) to DUT for provisioning.
  4. SoftAP is configured with IP address as “192.168.0.1”(Buildroot build) or “192.168.1.1”(Yocto build). User can check with “ifconfig” command on serial terminal.
    soft_ap_ip_address.jpg
  5. User needs to open web browser from the connected (laptop/mobile)device and enter DUT IP address on URL.
  6. The webpage provides three option to user for provisioning the device,
    • Network Name: Desired AP SSID configuration
    • Pass Phrase: Desired AP Passphrase configuration. This field need to be empty for open network configuration.
    • Device Name: DUT name (user choice)
      webpage_wilc.jpg
  7. User needs to fill the details based on the AP configuration to which device needs to be connected and then press connect.
  8. On pressing Connect, device will save the configuration and reboot.
  9. On bootup, device enters STA mode and will make a connection with configured AP.
Topic attachments
I Attachment Action Size Date Who Comment
JPEGjpg start_ap_cmd.jpg manage 31.5 K 2021-01-29 - 18:23 HemanthTenkod  
JPEGjpg webpage_wilc.jpg manage 35.2 K 2020-04-16 - 03:05 HemanthTenkod  
r7 - 23 Feb 2021 - 18:38:25 - HemanthTenkod
 
Linux & Open Source related information for AT91 Smart ARM Microcontrollers

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

Atmel® and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. This site is powered by the TWiki collaboration platform

ARM® and others are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others.

Ideas, requests, contributions ? Connect to LinksToCommunities page.

Syndicate this siteRSS ATOM