Infineon Gateway
This is an IoT DEMO based on CY8CPROTO-062-4343Wdevelopment board + implementation.RT-Thread
This article will introduce how to build an IoT demo from scratch step by step.
The following figure is the overall design block diagram, using RW007for network communication, using MQTTthe protocol to connect to the One-Net IoT platform. Add the required software packages, components and other middleware to the main control chip to quickly build a device cloud demo.
1. Enter the command in msh onenet_mqtt_demo_start 【WI-Fi 名称】 【WI-Fi 密码】to create and start the demo thread


2. View the real-time refreshed data on the device debugging page of the cloud platform.

3. Enter the visualization website to view/send data uplink and downlink

OneNET: China Mobile's open IoT platform
USB-TTL: Connect to UART5 (TX: P5_1; RX: P5_0) baud rate 115200
WiFi network module: RW007

The corresponding relationship table between each IO interface and function:
CY8CPROTO-062-4343W Pin Name
Function
P6_2
BOOT0/CLK
P6_1
MISO
P6_0
MOSI
P12_0
BOOT1/CS
P5_7
INT/BUSY
P6_5
RESET
Open RT-Thread studio and import the development board sample project: Click the upper left corner of Studio
文件—>导入—>RT-Thread Studio项目到工作空间中

Select the root directory of this sample project to import

Enter
RT-Studiothe SDK manager and download the InfineonOpenOCDresource package.
Right-click the project and click
同步 scons 配置至项目
Compile, download, and verify the running results
Click the Build option in the upper left corner of the IDE to compile the project.

When the compilation is complete without error warnings, click
DebugorDownloadto debug/download.Note: If the serial terminal does not display any information after clicking Download and the download is successful, please manually press the reset button to restart the system.

Check system operation status
helpEnter commands such as ,ps,freeand so on in the serial terminallist_deviceto view the system operation status
Lianyun Configuration
Click
全部产品服务—>多协议接入to enter the configuration interface

Add products

Enter product information

Add a device

Enter device information

Enter
RT-Thread Studio, double-click under this projectRT-Thread Settingsto enter the project configuration interface

Compare
OneNetthe information and fill it into the configuration options



Compile, download, and verify the data reporting and sending functions of the IOT gateway.
Last updated
Was this helpful?