Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 4.48 KB

File metadata and controls

79 lines (53 loc) · 4.48 KB

Wi-Fi CLI Example

This example project provides a Command Line Interface (CLI) to interact with the Wi-Fi FMAC driver and the LwIP APIs.

Requirements

Hardware Prerequisites

One of the supported platforms listed below is required to run the example:

Additionally, a PC is required to configure the board and it can also be used to load a binary file on the board, to compile the Simplicity Studio project or run a serial terminal.

Software Prerequisites

The required software includes:

  • Simplicity Studio v5 and the Gecko SDK Suite (4.0.0 or newer)
  • The example project and the Wi-Fi Full MAC driver (available in the Gecko Platform SDK)
  • (Optional) A Serial terminal to communicate with the board. For example, Tera Term or Putty

Install Simplicity Studio 5 and the Gecko SDK

Simplicity Studio 5 is a free software suite needed to start developing your application. To install Simplicity Studio 5, please follow this procedure by selecting the options [Install by connecting device(s)] and [Auto].

Set up your Kit and Get the Example

Please follow the instructions related to the platform suiting your case:

Note that at step 6, select Platform - Wi-Fi CLI on Micrium OS kernel instead of Platform - Wi-Fi Commissioning Micrium OS Kernel.

Start the Example

  1. Please follow this instruction Note that at step 5, the hex file name is wifi_cli_micriumos.hex

  2. Reset the board using the 'RESET' button. You should see the following output.

     FMAC Driver version    x.x.x
     WF200 Firmware version x.x.x
     WF200 initialization successful
     Wi-Fi CLI Application Example
     
     >
    
  3. The Wi-Fi cli project is ready to receive commands. You can start by the 'help' command to list available commands.

    The 'help' list below is provided as an indication. To access an up-to-date list, use the 'help' command on the target.

     help
     lwip                          lwip CLI commands
     reset                         Reset the host CPU
                                   [*] reset
     ping                          Send ICMP ECHO_REQUEST to network hosts
                                   [*] [-n nb] <ip>
     iperf                         Start a TCP iPerf test as a client or a server
                                   [*] iperf <-c ip [-t dur] [-p port] [-k] | -s>
     iperf_server_stop             Stop the running iPerf server
                                   [*] iperf_stop_server
     iperf_client_stop             Stop the running iPerf client
                                   [*] iperf_stop_client
     wifi                          Wifi CLI commands
    

Additionally, you can display a specific command help by entering:

@ [command] help