background image

 

 

Revision History 

Rev. 

Date 

Description 

Page 

Summary 

1.00 

Feb. 22, 2022 

— 

First edition issued 

 

 

 

 

Содержание SIMPLE DEMO

Страница 1: ...le a simplest button pressed operation will be recorded by MQTT server through publishing a message by MQTT client Through this guide and related demo you can easily start your development on DA16200 a Wi Fi module using AT command and EK RA6M4 an evaluation kit for RA6M4 MCU group Target Device EK RA6M4 R7FA6M4AF3CFB DA16200 PMOD Contents 1 Kit Contents 2 1 1 Hardware components 2 1 2 Software co...

Страница 2: ...d Category Item Remark Firmware RA6M4_DA16200_MQTT_CLIENT zip Compressed project file RA6M4_DA16200_MQTT_CLIENT mot Motorola S record file for programming RA6M4 chip Software e2 studio 2021 10 SSP v3 5 0 A GUI and related software package for RA6M4 development SEGGER J Link V7 52a A flash programmer for downloading file to RA6M4 meanwhile a tool using J Link RTT function to observe the state of th...

Страница 3: ...QTT client The topic of button with message is published to MQTT Server when the button S1 on EK board is pressed Make a smartphone a MQTT client subscribing button topic getting the status of button from MQTT Server 3 Set Up the Demo 3 1 Prerequisite Step 1 Connect your PC set as a MQTT Server later to a Wi Fi Router Open Windows Settings click Network Internet go to WLAN Set it to ON click show ...

Страница 4: ...ame unix socket path add line of listener 1883 below it signifying that the listening port number is 1883 Search allow_anonymous false delete to not allow anonymous logins Search password_file change it to password_file pwfile example setting the file location which involving account name and log in password Then set users name and password In the installation path right click mouse when holding d...

Страница 5: ...is necessary to subscribe this message for monitoring the entire information Step 4 Download MQTTool from App Store which is a MQTT client software on Iphone or something like this from Google Shop Here use MQTTool running on Iphone as an example Firstly open settings in Iphone select WLAN and choose the name of AP which is projected a Wi Fi signal by Wi Fi Router After connecting successfully the...

Страница 6: ...es connecting command and displays that a new connection from smartphone has been established Click Subscribe tab input button in topic blank which is designed by sample code click subscribe to subscribe to message based on this topic All message based on this topic sent by MQTT server will be received by MQTTool ...

Страница 7: ...ug MCU and SEGGER J Link firmware to provide the on board debug functionality so all the customer needs for debugging is a Micro USB cable Step 1 Insert Micro USB cable into Debug USB Micro B connector J10 establishing a debug channel Step 2 Modify the project according to the actual internet environment Import project into e2 studio open project src da16200_AT c find the array variables associate...

Страница 8: ...refer to 5 Customizing the Quick Start Example Project chapter of EK RA6M4 Quick Start Guide https www renesas com jp zh document qsg ek ra6m4 quick start guide language en If the project doesn t need to be modified or it has been updated and only needs to be downloaded to the target MCU please find the srec file in the debug folder under the project and modify the suffix to mot to get the type of...

Страница 9: ...me under JLink folder with this file Back to Download_Tool folder and click bmp bat file to program MCU This folder combines the version of J Link v7 52a in JLink folder involving all files at software installation and realizing all J Link operations Once programming begins Flash download interface appears like the picture below ...

Страница 10: ...powering off and on the system causing the program to run again While under debugging restart the program is necessary Step 2 Open JLinkRTTViewer exe in JLink folder which is unzipped at chapter 3 3 step 2 specify target device as R7FA6M4AF change RTT Control Block from Auto Detection to Search Range and input 0x20000604 0x1000 to the blank block shown below The first address of Search Range can b...

Страница 11: ...d MQTT operation After MQTT connection finished Green Led on EK RA6M4 lights Press S1 on EK RA6M4 publishes a message of button is pressed with topic of button to MQTT Server any subscribers subscribing this topic will receive this information smartphones are no exception Mosquitto software updates the current Wi Fi and MQTT connection state and message received from MQTT client ...

Страница 12: ... pressed If you want to observe AT Command use a UART to USB bridge and connect RXD of UART part to P410 pin on EK RA6M4 board open serial tool such as Tera Term and set the baud rate to 115200 Then AT command will pop up It s an auxiliary way to debug the program and of course as an option Summarize All described above is a simplest demo for a beginner If you want a more complex example please re...

Страница 13: ...enesas EK RA6M4 EK RA6M4 Evaluation Kit for RA6M4 MCU Group Renesas DA16200 DA16200 Dialog dialog semiconductor com DA16200MOD DA16200 Modules Dialog dialog semiconductor com Technical Updates Technical News The latest information can be downloaded from the Renesas Electronics Website Website and Support Renesas Electronics Website http www renesas com Inquiries http www renesas com contact ...

Страница 14: ...Revision History Rev Date Description Page Summary 1 00 Feb 22 2022 First edition issued ...

Страница 15: ...e for input signal during power off state as described in your product documentation 4 Handling of unused pins Handle unused pins in accordance with the directions given under handling of unused pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced near the LSI an...

Страница 16: ...ons failure or accident arising out of the use of Renesas Electronics products outside of such specified ranges 7 Although Renesas Electronics endeavors to improve the quality and reliability of Renesas Electronics products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Unless designated as a hi...

Страница 17: ...re intended for developers skilled in the art designing with Renesas products You are solely responsible for 1 selecting the appropriate products for your application 2 designing validating and testing your application and 3 ensuring your application meets applicable standards and any other safety security or other requirements These resources are subject to change without notice Renesas grants yo...

Отзывы: