6.3.2 Running the Application

  1. Mount the AVR128DB48 Curiosity Nano host board and the RNWF02 Add On Board on Curiosity Nano base board at respective headers. For more details about the boards placement in the Curiosity Nano base, see Figure 6-1.
  2. Connect the debugger USB port on the AVR128DB48 Curiosity Nano board to computer using a micro USB cable
  3. Open the project and launch MCC with Melody Content Manager Tool
  4. Configure the RNWF02 Wi-Fi ProvisionMode credentials, using the Wi-Fi settings configuration. For more details about the Wi-Fi settings configuration, See Figure 3-16
  5. Generate the code as illustrated below.
    Figure 6-16. Generating the Code
  6. Build and program the code to the hardware using MPLAB X IDE
    Figure 6-17. Programming the Board
  7. Open the Terminal application (for example, Tera Term or PuTTY) on the PC
  8. Connect to the host board COM port and configure the serial settings as follows:
    1. Baud: 115200
    2. Data: 8 Bits
    3. Parity: None
    4. Stop: 1 Bit
    5. Flow Control: None
  9. Press the SW0 (Soft Reset) button on the host board, see Figure 6-1.
  10. The board boots up in Wi-Fi ProvisionMode, as per the configurations given in Step 4. ProvisionMode SSID, IP address and Server port number will be available on the serial console as illustrated in the following figure. Connect to the ProvisionMode SSID via third party STA (any Mobile Phone).
    Figure 6-18. ProvisionMode Serial Logs
  11. After establishing a successful connection between mobile phone and the ProvisionMode SSID, open Wi-Fi Provisioning application in mobile phone and enter Server IP address and port number as illustrated below and press Connect.
    Figure 6-19. Connecting to Provisioning Page
  12. On the next page, provide Home-AP details such as SSID, Security type and Password as illustrated below and Press Send
    Figure 6-20. Provisioning Page
  13. After successful provisioning, the board will connect to the Home-AP and gets an IP address. This IP address is displayed on the serial console as illustrated below.
    Figure 6-21. STA Mode Serial Logs