Execute Amazon FreeRTOS project and connect RX devices to AWS IoT - renesas/iot-reference-rx GitHub Wiki
Introduction
This section shows how to connect to AWS IoT Core and subscribe to topics in a FreeRTOS project for the RX family.
The precondition of this section:
The FreeRTOS project has been successfully built, including certification of things information registration with AWS.When you have not finished above preparation, please set up your environment referring the following link in advance.
For the latest information on using Free RTOS projects for RX, please refer to the Getting Start Guide.
- Register device to AWS IoT
- Creating and importing a FreeRTOS project
Importing a FreeRTOS project(zip)
Create a new FreeRTOS project - Configure the FreeRTOS project to connect to AWS IoT Core
- Execute Amazon FreeRTOS project and connect RX devices to AWS IoT [This page]
Configure the IoT Core control panel to check the messages from devices
- Subscribe to Topics in the IoT Core Control Panel
- Move to the IoT Core control panel
- Test -> MQTT test client -> Subscribe to a topic
-> Set "#" as a topic filter (wildcard) -> Subscribe
The sample program for Renesas evaluation boards with AWS Partner Device certification outputs debug logs.
The output UART channel depends on the evaluation board, 7please refer the getting started guide.
See GettingStartGude on the evaluation board for details.
- Connect the evaluation board to the PC with a USB cable (see GettingStartGude for each board for the USB port to be connected)
The output UART channel depends on the evaluation board, 7please refer the getting started guide. - Launch terminal software like TeraTerm on the PC and set the serial port settings as follows
Setting | Value |
---|---|
Speed | 115200bps |
Data length | 8bit |
Parity bit | none |
Stop bits | 1bit |
Flow control | none |
Download FreeRTOS project to RX MCU
- Press the "bug" icon in the upper left corner of the e2 studio screen
- Select "Switch" in the "Confirm Perspective Switch" window.
Execute program
- Press "Resume" button
- Check the breakpoint is set in the main() routine.
- Press "Resume" button
Check messages from devices in the IoT Core control panel
- Check that the messages defined by source code in the FreeRTOS project are displayed.
Note: Output messages are deferent from by the project.
e.g., "Hello World" "Task X publishing message XX"