Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 3.04 KB

readme.md

File metadata and controls

47 lines (30 loc) · 3.04 KB

TLS Client Application

This RNWF02 application acts as a TLS Client. In this application, the device will securely connect with AWS S3 and tries to access/read the document. The RNWF02 will host a TLS Client in Wi-Fi STA mode. The user is required to configure the Wi-Fi credentials for Home-AP. The default application will connect to Home-AP and establish a connection with AWS S3.

Building the Application

To build this application, open the project file (tls_client/firmware/tls_client_sam_e54_xpro_rnwf02.X) in MPLAB X IDE. For more details on opening the project file in MPLAB X IDE, refer to the Opening the Project file. The following table provides details on the project file.

Project Name Description
tls_client_sam_e54_xpro_rnwf02.X MPLAB X project for SAM E54 Xplained Pro evaluation kit and RNWF02 Add On Board
  • In this application, the device will securely connect with AWS S3 and tries to access/read the document.

Running the Application


  1. Mount the RNWF02 Add On Board on SAM E54 Xplained Pro evaluation kit at respective header. For more details about the boards placement in the SAM E54 X-plained host board, see Figure 6-1

  2. Connect the debugger USB port on the SAM E54 Xplained Pro evaluation kit to computer using a micro-USB cable.

  3. Open the project and launch MCC Harmony3.

  4. Configure Home-AP credentials for STA mode, using the RNWF02 Wi-Fi configuration options. For more details about the Wi-Fi settings configuration, See Figure 1

  5. Generate the code as illustrated below

  6. Build and program the code to the hardware using MPLABX IDE

  7. Open the Terminal application (for example, Tera Term or PuTTY) on the PC Connect to the "EDBG Virtual 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
  8. Press the Reset button on the host board, see Figure   1.

  9. As the board boots up, it will connect to Home-AP and prints the IP address obtained. The board will establish a connection with AWS S3. After establishing a successful TLS server-client connection, the application will try to access/read the document listed.

    TLS Client Serial Logs

  10. Once the device receives entire document, Receive Complete message is printed on serial console as illustrated in the following figure.

    TLS Client Serial Logs