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

Advertisement

Quick Links

CK-RX65N
Getting Started Guide with RYZ014A Azure Cellular Application
Introduction
This document describes a system that uses the CK-RX65N Cloud Kit board from Renesas. This system
incorporates the CK-RX65N running Azure RTOS and via an Ethernet/Cellular connection visualizes
HS3001, ZMOD4410, ZMOD4510, OB1203, ICP10101 and ICM20948 sensors information on Azure IoT
Explorer 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.
This document shows both connectivity.
And this document shows the way of below items.
-
How to activate the SIM card that is contained the CK-RX65N
-
How to operate and install the information of certification for cloud
-
How to see and run the sensor data on the Azure IoT viewer
Target Device
CK-RX65N
Web site
RX Cloud solution Web
CK-RX65N Web
Program and binary data
Program
Binary data
R01AN6870EJ0110 Rev.1.10
Jun.02.23
Figure 1. CK-RX65N(with RYZ014A Pmod)
Getting Started Guide
Page 1 of 52

Advertisement

Table of Contents
loading

Summary of Contents for Renesas CK-RX65N

  • Page 1 HS3001, ZMOD4410, ZMOD4510, OB1203, ICP10101 and ICM20948 sensors information on Azure IoT Explorer 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. This document shows both connectivity.
  • Page 2: Table Of Contents

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Contents Terms ............................3 Preparation ..........................3 Hardware Configuration ........................3 Software Configuration ........................3 Tera term Setting ..........................4 System Diagram ........................4 Activating a SIM card ....................... 5 Activating a SIM card on Truphone ..................... 5 Activating a SIM card on MicroAI Launchpad..................
  • Page 3: Terms

    Internet of Things 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 SIM card...
  • Page 4: Tera Term Setting

    115200 Data length Parity none Stop bits Flow Control none 3. System Diagram HS3001 Sensor ICP10101 Sensor CK-RX65N CloudKit OB1203 Sensor Azure Dashboard (Cellular/Ethernet Interface) ZMOD 44XX ICM20948 Sensor Sensor Figure 2. System Diagram R01AN6870EJ0110 Rev.1.10 Page 4 of 52...
  • Page 5: Activating A Sim Card

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 4. Activating a SIM card One of two SIM cards is included in this kit that is Truphone or MicroAI Launchpad. Please activate the SIM card as following steps depending on the included SIM card.
  • Page 6 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Figure 5. Selecting the account type 4. Verify your email by entering the activation code sent to your email account. Figure 6. Verifying the email 5. Complete the Profile information form – then select Create account.
  • Page 7 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 8: 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 9 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Renesas CK-RX65N Figure 11. Input the information of Profile 3. On Data Schema, click Next. R01AN6870EJ0110 Rev.1.10 Page 9 of 52 Jun.02.23...
  • Page 10 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Figure 12. Data schema 4. On Select a Plan, apply any valid promo codes if applicable and click Next. Note: The SIM card contained in Kit credit for first 1 month/50MB fee. You can see credited information in invoice center on your account.
  • Page 11 5. Provide a Payment Method and accept the terms and conditions. Click Finish. Figure 14. 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.
  • Page 12 ID”. Fill other fields as needed. card contain with Note: Please be careful, the “Device ID” cannot change after registration of this step. Figure 15. Registering a device of CK-RX65N on MicroAI Launchpad Figure 16. Enter Device ID R01AN6870EJ0110 Rev.1.10 Page 12 of 52 Jun.02.23...
  • Page 13 Figure 17. Add new SIM Figure 18. Activating the SIM card on MicroAI Launchpad 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 14: Azure Account And Credentials Creation

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 5. Azure Account and Credentials Creation 5.1 Install Azure CLI To prepare Azure cloud resources and connect a device to Azure, you can use Azure CLI. Azure CLI can be installed locally on your PC.
  • Page 15: Create An Iot Hub

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 5.2 Create an IoT Hub You can use Azure CLI to create an IoT hub that handles events and messaging for your device. Note 1: Before you start creating the IoT Hub you are required to have a login to your Azure Portal via web browser.
  • Page 16 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 3. Run the az group create command to create a resource group. The following command creates a resource group named MyRXResourceGroup in the westus region. 4. Note: Optionally, to set an alternate location, run az account list-locations to see available locations.
  • Page 17 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 6. After the IoT hub is created, view the JSON output in the console, and copy the hostName value to a safe place. You use this value in a later step. The hostName value looks like the following example: ⎯...
  • Page 18: Certificate Creation Process

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Certificate Creation Process You can use GIT BASH utility for this process. All OpenSSL commands and Self Signed Certificate creation process is given on this link. Steps as below 1. Set x509 configuration file for common name in cert.
  • Page 19 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 3. Embed Device ID in certificate This command will not give you any response if successfully executed. openssl req -new -days 365 -nodes -x509 -key privkey.pem -out cert.pem -config x509_config.cfg -subj "//CN=<Same as device Id>"...
  • Page 20 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 7. Check whether sample_device_identity.c is created. Figure 31. Convert der to hex array and set them in Sample_device_identity.c 8. Producing sample_device_cert_ptr and sample_device_private_key_ptr array containing device certificate and private key equivalent hex values along with length.
  • Page 21: View Device Properties

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Figure 33. Check the content of sample_device_identity.c 5.4 View Device Properties You can use the Azure IoT Explorer (https://docs.microsoft.com/en-us/azure/iot-pnp/howto-use-iot- explorer) to view and manage the properties of your devices. In the following steps, you'll add a connection to your IoT hub in IoT Explorer.
  • Page 22 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 2. Copy the connection string. 3. Open the Azure IoT Explorer and select IoT hubs > Add connection. 4. Paste the connection string into the Connection string box. 5. Select Save.
  • Page 23 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Figure 36. Editing System Environment Variable Figure 37. Adding System Environment Variable for Alternate Port - Azure IoT Explorer R01AN6870EJ0110 Rev.1.10 Page 23 of 52 Jun.02.23...
  • Page 24 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Figure 38. Added Alternate Port for Azure IoT Explorer If the connection succeeds, the Azure IoT Explorer switches to a Devices view and lists your device. Figure 39. Listed Devices R01AN6870EJ0110 Rev.1.10 Page 24 of 52 Jun.02.23...
  • Page 25: Register An Iot Hub Device

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 5.6 Register an IoT Hub Device In this section, you create a new device instance and register it with the IoT Hub you created. You will use the connection information for the newly registered device to securely connect your physical device in a later section.
  • Page 26: Prepare The Device

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application You can see your created device in Devices section of AZURE IoT Explorer Figure 42. Newly Created Device 5.7 Prepare the Device To connect the device to Azure, modify a configuration file for Azure IoT settings(of your Device ID and Hostname), build and flash the image to the device.
  • Page 27: Common Users: To Import The Project And Run

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 6. Common users: To import the project and Run 6.1 Import the project Follow the steps below to prepare the software for the demo program. 1. Extract the project files from the archive and copy them to the C drive.
  • Page 28 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 4. Click General → Existing Projects into Workspace → Next >. Figure 45. select Existing Projects into Workspace 5. Click Browse…, then specify the root directory as follows. Figure 46. find the project R01AN6870EJ0110 Rev.1.10...
  • Page 29 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application And you can choose two types of connectivity and compiler when import the project. Please go to “ [Project Root folder]\projects\renesas\” folder Detail of each project Project Name Compiler Connectivity rx65n-new-ck in the “ck_rx65n_azure_iot_pnp” zip...
  • Page 30 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 6. Finally, click Finish. (Note: Make sure Copy projects into workspace is unchecked. ) Figure 49. Finish the import the project R01AN6870EJ0110 Rev.1.10 Page 30 of 52 Jun.02.23...
  • Page 31 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 7. Check and set the SIM card information Doble click the “ckrx65n_pnp_ryz014a_ccrx.sfg” to open the smart configurator. Figure 50. Open the Smart Configurator R01AN6870EJ0110 Rev.1.10 Page 31 of 52 Jun.02.23...
  • Page 32 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 8. Execute code generation If you have changed the Smart Configurator settings, click Generate Code. Figure 51. Generate Code 9. Select Project → Build project and confirm that 0 errors are reported.
  • Page 33 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 10. Debug Configuration Figure 53. Configuration debugger 1/2 Figure 54. Configuration debugger 2/2 R01AN6870EJ0110 Rev.1.10 Page 33 of 52 Jun.02.23...
  • Page 34: Serial Terminal Settings

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Figure 55. Start Debug Figure . Run 6.2 Serial Terminal Settings 1. Open Device manager Figure 57. USB Serial Device in Windows Device Manager 2. Open Tera Term select New connection and select Serial and COMxx: USB Serial Device (COMxx) and click OK.
  • Page 35 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 3. Using the Setup menu pull-down, select Serial port… and ensure that the speed is set to 115200. Figure 59. Select 115200 on the Speed Pulldown Figure 60. Tera term settings Figure 61.
  • Page 36 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 4. Complete the connection. The Configuration CLI Menu will be displayed on the console as shown below. Note: Please reset the board by pressing the S1 user switch if the menu is not displayed.
  • Page 37: Storing Device Certificate, Host Name, Device Id

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 6.3 Storing Device Certificate, Host Name, Device ID Please reset the board by pressing the S1 user switch if the menu is not displayed. Figure 65. Main Menu 1. Press 2 on the Main Menu to display Data Flash related commands as shown in the following screenshots.
  • Page 38 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 4. Go to Tera Term->File->Send file Figure 68. Send file option in File Menu 5. Browse to the folder where X509 certificates are generated. Select cert.pem. Press Open. Figure 69. Browse, Select and Open the file to be written R01AN6870EJ0110 Rev.1.10...
  • Page 39 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 6. Status of Device Certificate Downloading as below Figure 70. Status of file writing process. 7. Similarly to store device private key press c in Data Flash menu, Go to Tera Term->File- >Send file Select file privkey.pem from the folder where you have generated Certificates.
  • Page 40 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application data. Figure 73. Scroll down and verify the data stored in DATA flash 11. Sensor Data Output on Serial Terminal Figure 74. Sensor Data on Serial Terminal R01AN6870EJ0110 Rev.1.10 Page 40 of 52...
  • Page 41: Send Device To Cloud Message

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 6.4 Send Device to Cloud Message With Azure IoT Explorer, you can view the flow of telemetry from your device to the cloud. To view telemetry in Azure IoT Explorer: 1. In IoT Explorer select Telemetry. Confirm that use built-in event hub is set to Yes.
  • Page 42 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application Figure 76. Device Telemetry Details In the terminal window, you can see that the message is received by the IoT Device. Figure 77. Serial Terminal Output R01AN6870EJ0110 Rev.1.10 Page 42 of 52...
  • Page 43: Iot Plug And Play Certification Requirements

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 7. IoT Plug and Play Certification Requirements This section outlines the device specific capabilities that will be represented in the Azure IoT Device catalog. A capability is singular device attribute that may be software implementation or combination of software and hardware implementations.
  • Page 44 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application [Required] DPS: The purpose of test is to check the device implements and supports IoT Hub Device Provisioning Service with one of the three attestation methods Name AzureCertified.DPS Target Availability Applies To Any device...
  • Page 45 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application [Required] Device models are published in public model repository Name IoTPnP.ModelRepo Target Available now Availability Applies To Any device Agnostic Validation Automated Type Validation All device models are required to be published in public repository. Device models are resolved via models available in public repository 1.
  • Page 46 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application [If implemented] Cloud to device: The purpose of test is to make sure messages can be sent from cloud to devices Name IoTPnP.C2D Target Available now Availability Applies To Leaf device/Edge device...
  • Page 47 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application [If implemented] Device twin property: The purpose of test is to make sure devices that send telemetry works with IoT Hub and supports some of the IoT Hub capabilities such as direct methods,...
  • Page 48: Azure Iot Central Architecture

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 8. Azure IoT Central architecture Devices Gateways Export data IoT Central is a ready-made environment that lets you quickly evaluate your IoT scenario. It's an application platform as a service (aPaaS) IoT solution and its primary interface is a web UI. There's also REST API that lets you interact with your application programmatically.
  • Page 49: View And Analyze Data

    CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application 8.1.1 View and analyze data In an IoT Central application, you can view and analyze data for individual devices or for aggregated data from multiple devices: • mapping to transform complex device telemetry into structured data inside IoT Central.
  • Page 50: Export Data

    9.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 51 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application R01AN6870EJ0110 Rev.1.10 Page 51 of 52 Jun.02.23...
  • Page 52: Revision History

    Getting Started Guide with RYZ014A Azure Cellular Application 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 53: 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 54: Notice

    12. It is the responsibility of the buyer or distributor of Renesas Electronics products, or any other party who distributes, disposes of, or otherwise sells or transfers the product to a third party, to notify such third party in advance of the contents and conditions set forth in this document.
  • Page 55 CK-RX65N Getting Started Guide with RYZ014A Azure Cellular Application © 2023 Renesas Electronics Corporation. All rights reserved.

Table of Contents