6.1.7.4 Running the Application

  1. Open the project and launch Harmony3 configurator.
  2. Configure Home-AP credentials for STA mode, using the WINCS02 Wi-Fi configuration options. For more details about the Wi-Fi settings configuration, See Figure 3-64.
  3. Save configurations and generate code via MHC.
  4. Build and program the generated code into the hardware using its IDE.
  5. Open the Terminal application \(Ex.:Tera term\) on the computer.

    Connect to the "USB-FTDI" COM port and configure the serial settings as follows:

    • Baud : 115200
    • Data : 8 Bits
    • Parity : None
    • Stop : 1 Bit
    • Flow Control : None
  6. When the board is booting up, it connect to the targ Wi-Fi AP and the terminal (SAM9x75 console) show below log:
    Figure 6-35. boot_up_console
  7. Connect PC to the same network (same Wi-Fi AP), download iperf tool for the PC.
  8. Run iPerf tool on both the SAM9x75 Curisoity Development Board and PC to measure the network performance.

    The following table show the command used on the SAM9x75 Curiosity Board and PC

    TestDescriptionCommand on SAM9x75Command on PC
    TCP Uplink Transfer packets from SAM9x75 to PCiperf client tcp <IP_ADDRESS> <PORT_NUM> <NUM_OF_PACKET>iperf -s -i 1
    TCP Downlink Transfer packets from PC to SAM9x75iperf server tcp <PORT_NUM>iperf -c <IP_ADDRESS> -i 1
    UDP UplinkTransfer Packet from SAM9x75 to PCiperf client udp <IP_ADDRESS> <PORT_NUM> <PACKET_LEN> <NUM_OF_PACKET> <BPS_RATE>iperf -s -u -i 1
    UDP DownlinkTransfer packets from PC to SAM9x75iperf server udp <PORT_NUM>iperf -u -c <IP_ADDRESS> -i 1
  9. For example, to perform TCP Uplink test, run command "iperf -s -i 1 -p 6666" on PC command prompt
    Figure 6-36. tcp_uplink_pc
  10. On terminal (SAM9x75 console), run command "iperf client tcp <IP_ADDRESS> 6666 10000"
    Figure 6-37. tcp_uplink_sam9x75
  11. Another example, to perform UDP Uplink test, run command "iperf -s -u -i 1 -p 6666" on PC command prompt
    Figure 6-38. udp_uplink_pc
  12. On terminal (SAM9x75 console), run command "iperf client udp <IP_ADDRESS> 6666 1452 10000 10000000"

    The following picture show the result

    Figure 6-39. udp_uplink_sam9x75