Search by Tags

WiFi configuration from program

 
Applicable for

Compare with Revision

Subscribe for this article updates

For information about Wi-Fi connectivity on Toradex modules refer this link. This article shows how to connect to a Wi-Fi network from user application.

Windows CE 7

Windows CE 7 provides Wi-Fi configuration support via Native Wi-Fi automatic configuration component and replaces the previous Windows Zero Configuration (WZC) Wi-Fi stack in Windows Embedded CE 6.0 R3.

This demo uses Native Wi-Fi APIs to configure the wireless network. You can refer Native Wi-Fi APIs from here.

NOTE:

  • Some Native Wi-Fi APIs returns "ERROR_ACCESS_DENIED" if Connection Manager is included in the OS design. So, for this demo Connection Manager should not be included in the WinCE 7 image. Connection manager can be disabled temporarily by using this registry. Import it using Regedit tool and save registry and then reboot.
  • Removing Connection manager from the OS design will also remove ActiveSync and FileSync because of their dependency on Connection manager. You can use application debugging over Ethernet as an alternative.

Steps to run demo on WinCE 7

  • Download project source code from here.
  • Build and deploy solution.
  • Run the application from program folder and enter preferred network, password and security type of the network.

Windows CE 5/6

In this demo OpenNETCF library V2.3.12004 is used to configure the wireless network. You can refer this link for more information.

Steps to run demo on WinCE 5/6

  • Download project source code from here.
  • Download and Install .NET Compact Framework directly to the FlashDisk of the device from here.
  • Navigate to Solution Explorer in visual studio > Right Click on Solution > Properties > Devices.
  • Uncheck "Deploy the Latest version of the .NET Compact Framework (including Service Packs)".
  • Build and deploy solution.