6.1.3.2 Running the Application
- 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.
- Connect the debugger USB port on the AVR128DB48 Curiosity Nano board to computer using a micro USB cable.
- Change the configuration. There
are two options to change the configuration:
- Option 1: Change the
configuration manually in the code.
- 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 inPROV_AP_SSID
,PROV_AP_PASSPHRASE
,PROV_AP_SECURITY
.
- In
- Open the code in
MPLAB IDE v6.00 or higher and add Home AP and device information
in the application code.
- Option 2: Change the
configuration via MCC Melody.
- For more details
about Wi-Fi configurations, refer Figure 3-5.
- The
following fields can be configured via MCC Melody Wi-Fi
settings;
- SSID
- Passphrase
- Security Type
- The
following fields can be configured via MCC Melody Wi-Fi
settings;
- Refer to the Appendix A.4 - Merging Manual Changes Into Regenerated Code to understand how to merge code upon regeneration.
- For more details
about Wi-Fi configurations, refer Figure 3-5.
- Option 1: Change the
configuration manually in the code.
- Save the changes, then build and program the project.
- Open the Terminal application (for example, Tera Term or PuTTY) on the PC.
- Connect to the host board COM
port and configure the serial settings as follows:
- Baud – 115200
- Data – 8 Bits
- Parity – None
- Stop – 1 Bit
- Flow Control – None
- Press the SW0 (Soft Reset) button on the host board.
- 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.
- Connect to the ProvisionMode SSID via third party STA (any Mobile Phone).
- 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.
- On the next page, provide Home-AP details, such as SSID, Security type and Password as illustrated in following figure and press Send.
- 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.