当前位置:网站首页>CAT1 4G+Ethernet development board Tencent cloud mobile phone WeChat applet display temperature and delivery control
CAT1 4G+Ethernet development board Tencent cloud mobile phone WeChat applet display temperature and delivery control
2022-08-02 07:11:00 【LCIOT】
一、准备材料
二、设备接线
2.1放置4G卡
将EC200S-CN模块核心板从DTU开发板底板中拔下,将4G卡缺口处朝内插入.然后重新将EC200S-CN模块核心板插回DTU开发板底板.
2.2接入仿真器
接入仿真器,用于下载程序.
将仿真器用杜邦线按照下图接入DTU开发板底板,USB端接入电脑.
2.3 接入USB-232串口线
将USB-232串口线一端接入DTU开发板底板,另一端接入电脑.
2.4 接入电源适配器
将电源适配器一端接入DTU开发板底板,另一端接入插排,通电后,模块亮起.
三、Tencent cloud iot platform to create products、设备
3.1Enter the tencent cloud iot platform
百度搜索腾讯云,进入腾讯云官网:https://cloud.tencent.com/.
On the front page of search the Internet of things platform,Enter the tencent cloud iot platform.
点击立即使用.
Then sweep WeChat login code,完成实名认证,The development of the Internet of things platform.
3.2新建项目
In tencent cloud iot platform,Click on the public instance anywhere.
点击新建项目,Enter a project name and then click the save is complete the new project,Project description can take into consideration the fill in.
3.3创建产品
新建项目完毕后,开始创建产品.
Click on the item anywhere.
点击新建产品.
3.4自定义功能
Click on the product in any position,Can see the function of the product details.
When the product standard function is insufficient to meet demand,可以自定义功能.
Since now we define a function:Indoor current temperature.
Numerical range recommended limit is5000以上,例如:-100~5000.
Because if not insert18B20Temperature module,会发送4095,Value is not within the scope of the default don't show.
Define a custom function again:Relay lamp state.
After defined function,点击下一步.
3.5设备调试
Selected in the device development based on module development,Choice ofML302模块,After direct click next.
In the interactive development directly click next.
The next step into the equipment debugging,Because we don't have a current equipment,So click new equipment.
After the new equipment,To debug the equipment.点击在线调试,Can customize the function input expectations,Then click the send button to issued instructions.
You can see data in the equipment log has been sent to come over,This means we debug state.
四、下载程序
4.1设置仿真器
Setup program code and then set the emulator,Before downloading programs need to configure the emulator,If already set before you can skip this step.
4.2下载程序
Download the program before,先编译程序,See if program is wrong.
After the success of the compiler,开始下载程序.(注:Download the program must emulators, access to the computer).
五、Tencent cloud distributed control
We have learned with4GEthernet development board upload real-time temperature data to tencent cloud,If not we can see previous articles,Now we realize tencent cloud iot platform distributed control equipment.
在程序代码中:
“ t h i n g / u p / p r o p e r t y / I T Z 3 V K 8 J 1 L / 4 G N E T D S 18 B 20 " Said the hair,On the temperature; " thing/up/property/ITZ3VK8J1L/4GNETDS18B20" Said the hair,On the temperature; " thing/up/property/ITZ3VK8J1L/4GNETDS18B20"Said the hair,On the temperature;"thing/down/property/ITZ3VK8J1L/4GNETDS18B20” Said issued,Distributed controlpower_switch.
The air conditioning switch into open,Click send after you can see the board in the middle of the yellow lights up,Data can also see on a serial port tool issued by information.“power_switch”:1,表示亮,“power_switch”:0,表示灭.
This is tencent cloud distributed control.
六、Mobile WeChat small program control
In equipment debugging,有一个二维码.
打开微信添加“腾讯连连”小程序,使用“腾讯连连”Scan the qr code add equipment.
In tencent repeatedly click equipment,可以看到4GEthernet transmission of indoor temperature current development board,Also can adjust the air conditioning switch,With tencent cloud synchronization update.This is tencent cloud phone WeChat small program control.
通过应用开发,Can put the application management embedded in various kinds of application.
The application associated with the product.Associated with the product after,Can have access to distribution network equipment、绑定,控制等操作.
边栏推荐
- Nacos客户端启动出现9848端口错误分析(非版本升级问题)
- Toolbox App 1.25 新功能一览 | 版本更新
- Node installation and configuration of environment variables
- The stock price has repeatedly hit new lows, and the real estate SaaS giant is in trouble. How should Mingyuan Cloud transform and save itself?
- C# 编码规范手册
- MySQL索引常见面试题(2022版)
- Nacos installation configuration and single-machine deployment tutorial
- 有点奇怪!访问目的网址,主机能容器却不行
- C# FileInfo类
- MySQL高级学习笔记
猜你喜欢
Not annotated parameter overrides @NonNullApi parameter
Nacos installation configuration and single-machine deployment tutorial
mysql索引失效的常见9种原因详解
Not annotated parameter overrides @NonNullApi parameter
DNS的解析流程
MySQL Advanced Statements (1)
MySQL union query (multi-table query)
能与观众实时互动的Claper
[Cartoon] 2021 full score programmer behavior comparison table (latest version)
【21天学习挑战赛】顺序查找
随机推荐
MySQL union query (multi-table query)
MySQL联合查询(多表查询)
HCIP 第四天
leetcode-318.最大单词长度乘积
[Cartoon] 2021 full score programmer behavior comparison table (latest version)
MySQL经典50道练习题及全网最详细解析
MySQL high-level --- storage engine, index, lock
打卡day05
MySQL classic 50 practice questions and the most detailed analysis of the whole network
Specified URL is not reachable,caused by :‘Read timed out
MySQL(3)
Detailed explanation of 9 common reasons for MySQL index failure
nodejs的安装和全局配置(超详细哦)
有人开源全凭“为爱发电”,有人却用开源“搞到了钱”
能与观众实时互动的Claper
MySQL Advanced - MVCC (ultra-detailed finishing)
Py's mlxtend: a detailed guide to the introduction, installation, and usage of the mlxtend library
Analysis of port 9848 error at startup of Nacos client (non-version upgrade problem)
A detailed introduction to the deployment and usage of the Nacos registry
MySQL Advanced SQL Statements