6.1.3.2 Running the Application

  1. Mount the AVR128DB48 Curiosity Nano host board and the RNWF11 Add On Board on Curiosity Nano base board at respective headers. For more details about the boards placement in the Curiosity Nano base, refer to the Figure 6-1.
  2. Connect the debugger USB port on the AVR128DB48 Curiosity Nano board to computer using a micro USB cable.
  3. Change the configuration. There are two options to change the configuration:
    1. Option 1: Change the configuration manually in the code.
      1. Open the code in MPLAB IDE v6.00 or higher and add Home AP and device information in the application code.
        • In rnwf_provision_service.h, add Wi-Fi configurations in PROV_AP_SSID, PROV_AP_PASSPHRASE, PROV_AP_SECURITY.
    2. Option 2: Change the configuration via MCC Melody.
  4. Save the changes, then build and program the project.
    Figure 6-6. Make and Program Device Main Project
  5. Open the Terminal application (for example, Tera Term or PuTTY) on the PC.
  6. 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
  7. Press the SW0 (Soft Reset) button on the host board.
  8. The board boots up in the Wi-Fi Provision Mode, as per the configurations given in Step 3. ProvisionMode SSID, IP address and Server port number will be available on the serial console as illustrated in the following figure.
    Figure 6-7. ProvisionMode Serial Logs
  9. Connect to the ProvisionMode SSID via third party STA (any Mobile Phone).
  10. 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.
    Note: Microchip’s “Wi-Fi Provisioning” application can be downloaded from Play store or App store.
    Figure 6-8. Connecting to Provisioning Page
  11. On the next page, provide Home-AP details, such as SSID, Security type and Password as illustrated in following figure and press Send.
    Figure 6-9. Provisioning Page
  12. 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.