Renesas CK-RX65N Getting Started Manual
Hide thumbs Also See for CK-RX65N:

Advertisement

Quick Links

CK-RX65N
SIM activation, Creating the trial account and using Dashboard with RYZ014A
or Ethernet Application for AWS - Getting Started Guide
Introduction
This document describes a system that uses the CK-RX65N Cloud Kit board from Renesas. This system
incorporates the CK-RX65N running Amazon FreeRTOS and via an Ethernet connection visualizes HS3001,
ZMOD4410, ZMOD4510, OB1203, ICP10101 and ICM20948 sensors information on Amazon Web Services
(AWS) and controls LEDs on the board.
There are two ways of connectivity for CK-RX65N. One is the Ethernet, second is the Cellular CAT M1 using
RYZ014A.This document shows both connectivity.
And this document shows the way of below items:
How to activate the SIM card
How to create the 10 USD of free trial account
How to operate and install the information of certification for cloud
How to see and run the sensor data on the dashboard
Web site
⚫ RX Cloud solution Web
https://www.renesas.com/rx-cloud
⚫ CK-RX65N Web
https://www.renesas.com/rx/ck-rx65n
R01QS0064EJ0130 Rev.1.30
June.02.23
that is contained the CK-RX65N
Figure 1 CK-RX65N(with RYZ014A Pmod)
Application Note
for AWS
Page 1 of 56

Advertisement

Table of Contents
loading

Summary of Contents for Renesas CK-RX65N

  • Page 1 ZMOD4410, ZMOD4510, OB1203, ICP10101 and ICM20948 sensors information on Amazon Web Services (AWS) and controls LEDs on the board. There are two ways of connectivity for CK-RX65N. One is the Ethernet, second is the Cellular CAT M1 using RYZ014A.This document shows both connectivity.
  • Page 2: Table Of Contents

    Data Publishing Interval Settings (Optional) ..................15 4.1.3 Running the Application Project ...................... 16 4.1.4 Running the application & activation of SIM card contain with CK-RX65N ........19 4.1.5 Activating a SIM card on Truphone ....................19 4.1.6 Activating a SIM card on MicroAI Launchpad.................. 23 For Users who use provided dashboard and AWS account of Kit ............
  • Page 3 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Revision History ..........................56 General Precautions in the Handling of Microprocessing Unit and Microcontroller Unit Products ..1 Notice ............................. 1 Corporate Headquarters .........................
  • Page 4: Terms

    AWS Amazon Web Service 2. Preparation 2.1 Hardware Configuration The hardware configuration of the demo project is listed in the table below. Item Content Description CK-RX65N Cloud Kit Target board for Please see detail CK-RX65N https://www.renesas.com/rx/ck- rx65n RYZ014A Cellular PMOD...
  • Page 5: System Diagram

    Figure 2 System Diagram 4. Connection to AWS The following preparation is necessary in order to connect CK-RX65N Cloud Kit to AWS. We provide the 10USD of AWS account to Users who buy the CK-RX65N. So, this document both case of way to connect AWS account.
  • Page 6: Common Users: To Import The Project, Activate Sim Card

    CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 4.1 Common users: To import the project, activate SIM card 4.1.1 Import the project Follow the steps below to prepare the software for the demo program.
  • Page 7 5.Click Browse…, then specify the root directory as follows. Figure 6 find the project And you can choose two types of connectivity and compiler when import the project. Please go to “ [Project Root folder]\projects\renesas\” folder R01QS0064EJ0130 Rev.1.30 Page 7 of 56...
  • Page 8 Figure 7 Project files This case, it explains when selecting “ rx65n-new-ck-cellular” of cellular project. Open the “ [Project Root folder]\projects\renesas\rx65n-new-ck-cellular\e2studio\aws_demos” folder If you use other one, please open “\aws_demos” folder of your selecting project. Figure 8 select the project folder Finally, click Finish.
  • Page 9 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 9 Finish the import the project R01QS0064EJ0130 Rev.1.30 Page 9 of 56 June.02.23...
  • Page 10 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 6.Check and set the SIM card information Doble click the “aws_demos.scfg” to open the smart configurator. Figure 10 Open the Smart Configurator R01QS0064EJ0130 Rev.1.30...
  • Page 11 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Information for setting SIM of Cellular driver when using contained SIM card in the kit Items Truphone MicroAi Launchpad APN(Access point name) iot.truphone.com...
  • Page 12 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 8. Apply Patch files This project must be patched after code generation. When running code generation, the source code will be overwritten by code generator.
  • Page 13 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 14 Build the project 10.Debug Configuration Figure 15 Configuration debugger 1/2 R01QS0064EJ0130 Rev.1.30 Page 13 of 56 June.02.23...
  • Page 14 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 16 Configuration debugger 2/2 R01QS0064EJ0130 Rev.1.30 Page 14 of 56 June.02.23...
  • Page 15: Data Publishing Interval Settings (Optional)

    CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Data Publishing Interval Settings (Optional) 4.1.2 Data publish interval can be set by the user. Default publishes interval time 10 Sec “mqtt_demo_mutual_auth.c”...
  • Page 16: Running The Application Project

    1. On the host PC, open Windows Device Manager. Expand Ports (COM & LPT), locate USB Serial Device (COMxx) and note down the COM port number for reference in the next step. Note: USB Serial Device drivers are required to communicate between the CK-RX65N board and the Figure 18. USB Serial Device in Windows Device Manager 2.
  • Page 17 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 3. Using the Setup menu, select Setup -> Terminal… and select “AUTO” as Reveive and “enable” local echo, as shown below.
  • Page 18 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 4. Using the Setup menu pull-down, select Serial port… and ensure that the speed is set to 115200, as shown below.
  • Page 19: Running The Application & Activation Of Sim Card Contain With Ck-Rx65N

    Figure 23. Get Version Information 4.1.4 Running the application & activation of SIM card contain with CK-RX65N This section explains how to activate SIM card that is contained in CK-RX65N.If you use ether, you can skip this step. Press ‘4’ to display CAT-M Information (IMEI &ICCID). This menu will communicate with the CAT- M module to obtain the IMEI and ICCID values needed for activating the SIM card.
  • Page 20 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 25. Activating the SIM Card on Truphone 2. Create a new Truphone Account by selecting Sign up (next to Don’t have an account yet?) and fill-in your full name, Email, and a password.
  • Page 21 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 27. Selecting the account type 4. Verify your email by entering the activation code sent to your email account.
  • Page 22 8. You will receive email confirmation when the SIM card activation is complete. The CK-RX65N kit and SIM card should be activated and can be validated on the Tera Term terminal. Note: The SIM card includes free credit for the first 90 days/50MB.
  • Page 23: Activating A Sim Card On Microai Launchpad

    1. Create a Launchpad account. Do so by registering on the sign-up page and verifying the account through the verification email sent after registration. 2. Login to the new Launchpad account and click on the Create Device Profile tile. Make sure Renesas CK-RX65N(or Renesas RSK-RX65N when missing CK-RX65N) is selected for the Device Type and CAT-M for the Connectivity Type.
  • Page 24 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 33. Input the information of Profile 3. On Data Schema, click Next. Figure 34. Data schema R01QS0064EJ0130 Rev.1.30 Page 24 of 56 June.02.23...
  • Page 25 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 4. On Select a Plan, apply any valid promo codes if applicable and click Next. Note: The SIM card includes free credit for the first 1 month/50MB. You can see credited information in invoice center on your account.
  • Page 26 Application for AWS - Getting Started Guide Figure 36. Input he payment method 6. Click the Register a Device tile to begin registering the CK-RX65N kit and SIM card. Select the device profile created from the device profile drop-down. R01QS0064EJ0130 Rev.1.30 Page 26 of 56 June.02.23...
  • Page 27 CK-RX65N” into the “Device ID”. Fill other fields as needed. Note: Please be careful, the “Device ID” cannot change after registration of this step. Figure 37. Registering a device of CK-RX65N on MicroAI Launchpad R01QS0064EJ0130 Rev.1.30 Page 27 of 56 June.02.23...
  • Page 28 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 38. Enter Device ID R01QS0064EJ0130 Rev.1.30 Page 28 of 56 June.02.23...
  • Page 29: For Users Who Use Provided Dashboard And Aws Account Of Kit

    Figure 39. Add new SIM Figure 40. Activating the SIM card on MicroAI Launchpad 10. Finish the device registration. The CK-RX65N kit and SIM card should be activated on the Launchpad platform and can be validated on the Tera Term terminal.
  • Page 30: Getting The Uuid Information Of The Board

    Cloud Dashboard. Figure 41. Getting Board UUID Information 4.2.2 To get the account 10USD of trial of AWS 1. Register/sign up at “https://renesas.cloud-ra-rx.com/” with an email account that was not used previously for signing up to an AWS account.
  • Page 31 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 2. Verify the AWS account in your email that you registered. 3. Wait for the status change on the registration page/ wait for provisioning to complete. May take up to 1 hour for the device to be active.
  • Page 32: Hardware Preparation

    Figure 45 Dashboard for this application Next step please see from 4.3 Hardware Preparation section 4.3 Hardware Preparation ✓ Connect micro-USB cables to debug port (J14 on the CK-RX65N board) ✓ Connect micro-USB cables to serial port (J20 on the CK-RX65N board) ✓...
  • Page 33: Software Preparation-Run Project From Ide

    CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 4.4 Software Preparation-Run Project from IDE 4.4.1 Storing the Device Certificate, Key, MQTT Broker endpoint and IoT Thing name Device Certificate, Device Private Key, MQTT Broker Endpoint and IOT Thing name needs to be stored in the data flash for the application to work.
  • Page 34 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 48. Accessing the Device Certificate Figure 49. Downloading the Device Certificate into the Data Flash R01QS0064EJ0130 Rev.1.30 Page 34 of 56...
  • Page 35 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 50. Status of the Downloaded Device Certificate into the Data Flash 4. To store the Device Key press the option ‘c’ and Click the “File” tab” of the Tera Term and “Send File”...
  • Page 36 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 6. To store the MQTT Broker end point, copy the end point string between the quotes xxxxxxxxxx.iot.us- east-1.amazonaws.com from the downloaded certificate link, press the option ‘d’ and Click the “Edit”...
  • Page 37 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 55. Storing the Thing Name into the Data Flash 8. Press option ‘f’ and ‘g’ to read and validate the stored information in the data flash.
  • Page 38 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 56. Welcome Screen on the Console Note: Sensor data will be able to read correctly after having stabilization time.
  • Page 39: For User Using Their Own Aws Account

    CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 4.5 For User using their own AWS Account Note: Complete the steps up to “Check AWS IoT endpoints.” Get an AWS account Get an AWS account ->...
  • Page 40 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 58 Search the IoT Core 1/2 Figure 59 Search the IoT Core 2/2 Create a security policy ➢ Secure -> Policies -> Create a policy R01QS0064EJ0130 Rev.1.30...
  • Page 41 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 60 Create the policy1/3 Figure 61 Create the policy2/3 R01QS0064EJ0130 Rev.1.30 Page 41 of 56 June.02.23...
  • Page 42 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Copy the code below "Version": "2012-10-17", "Statement": "Effect": "Allow", "Action": "iot:Connect", "Resource": "*" "Effect": "Allow", "Action": "iot:Publish", "Resource": "*"...
  • Page 43 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 62 Create the policy3/3 Register your device (thing) with AWS IoT ➢ Manage -> Things -> Register a thing Figure 63 Creating the things 1/5 R01QS0064EJ0130 Rev.1.30...
  • Page 44 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Creating AWS IoT things -> Create a single thing Figure 64 Creating the things 2/5 • Add your device to the thing name-> Next •...
  • Page 45 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 65 Creating the things 3/5 Auto-generate a new certificate R01QS0064EJ0130 Rev.1.30 Page 45 of 56 June.02.23...
  • Page 46 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 66 Creating the things 4/5 • Add a policy for your thing Figure 67 Creating the things 5/5 R01QS0064EJ0130 Rev.1.30...
  • Page 47 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Download A certificate for this thing/A public key/A private key Figure 68 Download A certificate for this thing/A public key/A private key R01QS0064EJ0130 Rev.1.30...
  • Page 48: For Install The Credential

    CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Check AWS IoT endpoints • Make a note of the endpoint in a text editor etc. (will be used later)
  • Page 49: About Connecting To Aws Iot

    Subscription of Messages. Note: This Application involves AWS MQTT IOT Core, user has an option to use the AWS IOT Dashboard for the Validation purpose, in addition to using the Renesas GUI based Dashboard for customized view of all the Sensor Data.
  • Page 50 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 70. Subscribe to a Topic Messages on the AWS IoT Screen Figure 71. Subscribed Messages on the AWS IoT Screen R01QS0064EJ0130 Rev.1.30...
  • Page 51: Led Alerts

    Will turn on GREEN in Tri-Color LED Example: Click Test->MQTT test client Figure 72 Publish the MQTT message 1/2 OB1203 SPO2 alert alerts: Based on SP02 value dashboard will send the alert messages to CK-RX65N kit via below topic Topic : aws/topic/set_spo2_led_data Message: {"Spo2_LED":"ON"}...
  • Page 52 CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide Figure 73 Publish the MQTT message 2/2 R01QS0064EJ0130 Rev.1.30 Page 52 of 56 June.02.23...
  • Page 53: Restrictions

    CK-RX65N SIM activation, Creating the trial account and using Dashboard with RYZ014A or Ethernet Application for AWS - Getting Started Guide 5. Restrictions 5.1 Communication time (Cellular version of Project) This version of the cellular project may disconnect when running for more than 10 hours.
  • Page 54: Note And Trouble Shooting

    6.3 About the trouble of current supply short when using RYZ014A If the CK-RX65N board is not powered through the Debug port (J14) the current available to the board may be limited to 100 mA. When using the supplied RYZ014A Pmod module with other code (found here:...
  • Page 55: Notes On Performing Firmware Update Over-The-Air On Aws Freertos

    Device (thing) names and credential information are overwritten. Processing of OTA fails after recovering from low power consumption mode. For more information, refer to the Tool News below. [Notes] RX Family Notes on Performing Firmware Update Over-The-Air on AWS FreeRTOS (renesas.com) R01QS0064EJ0130 Rev.1.30 Page 55 of 56...
  • Page 56: Revision History

    Application for AWS - Getting Started Guide Website and Support Visit the following vanity URLs to learn about key elements of the RX family, download components and related documentation, and get support. CK-RX65N Kit Information renesas.com/rx/ck-rx65n RX&RA Cloud Solutions renesas.com/cloudsolutions RX Cloud solution web renesas.com/rx-cloud...
  • Page 57: General Precautions In The Handling Of Microprocessing Unit And Microcontroller Unit Products

    Unit Products The following usage notes are applicable to all Microprocessing unit and Microcontroller unit products from Renesas. For detailed usage notes on the products covered by this document, refer to the relevant sections of the document as well as any technical updates that have been issued for the products.
  • Page 58: Notice

    Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or any third parties arising from the use of any Renesas Electronics product that is inconsistent with any Renesas Electronics data sheet, user’s manual or other Renesas Electronics document.

Table of Contents