当前位置:网站首页>[STM32 + esp-12s connect Tencent cloud IOT development platform 1] creation of cloud platform and burning of at firmware
[STM32 + esp-12s connect Tencent cloud IOT development platform 1] creation of cloud platform and burning of at firmware
2022-07-07 23:32:00 【Little river god is tangled】
Tencent cloud IOT development platform creation and ESP-12S Firmware burning of
Preface
I used to use ESP-C3 The module has been connected to Alibaba cloud physical network platform , Today, let's play Tencent cloud IOT development platform , I heard that this platform can be used directly Tencent goes on and on App Or Tencent serial applet Direct control , There must be a lot of time left , Bloggers also played , Have a pretty good experience . The feeling is as follows :
1. The test tool is very friendly , Anxin can provide a good simulation MCU Of Windows Upper computer visualization software :loTDevTool:https://axk.coding.net/s/98cbbda6-ff1e-4c38-819d-325bce81bacc;
2. The connection process is simple , Only two instructions are needed to establish the connection ;
3. It's really possible to use mobile phones App To control .
It is said that there is also the function of mobile phone distribution network , But I didn't play either . Bloggers refer to the official blog of Anxin Ke for testing , At present, only ESP-12S This module , But it is a module after all , For connections STM32 or 51 SCM or other MCU Come on , It's a bit cumbersome . still ESP8266-01S It smells good ( Connected to Tencent cloud AT Firmware must 2M The above flash, therefore 01S To burn this firmware , It needs to be changed flash chip ).
One 、 Creation of Tencent cloud IOT development platform
Tencent cloud IOT development platform address :https://cloud.tencent.com/product/iotexplorer;
( If you don't register, you can register and authenticate first ), After you log in , Click on “ Use now ” Then the interface you see should be like this :
1. Create products
Don't talk much . Just look at the operation ( Mainly lazy screenshots ),
2. Configure products and create devices
This device is for testing , So I won't explain this configuration too much , After configuring once , Just match it according to your needs :
3. Device triplet description
After the device is created , It will be in the debugging interface “ Equipment information ” See device triples in , They are : product ID、 Device name and device key . This is a ESP-12S Important parameters for connecting the cloud . Specific viewing method :
Two 、ESP-12S Firmware burning
1. Firmware acquisition
If you have played ESP8266 AT Firmware students may have a doubt , Lexin officially has AT Firmware , Why should I find something else AT Firmware . First explain , Conventional AT Firmware can also be connected to Tencent cloud , But it will be more troublesome , So Lexin also released a version of firmware that can simply connect to Tencent cloud IOT development platform , Its instruction set can also be found in Lexin AT The user guide can be seen :AT User guide - Tencent cloud loT Instruction set ,
Anxinco ESP-12S Tencent cloud AT Firmware download address :
https://codechina.csdn.net/mirrors/ai-thinker-open/ai-thinker-open-qcloud-esp-wifi/-/tree/master/qcloud-iot-at-esp8266/QCloud_IoT_AT_ESP8266_FW
There are two versions , Bloggers use : QCloud_IoT_AT_ESP8266_v2.0.0_20200617_UART_15_13.bin It uses IO15 and IO13 Serial port version of .
2. Firmware burning
Burn firmware , You also need to use a tool :flash_download_tool
Download decompression , Run the only .exe file , Then follow the dot :
Just wait for the burning to complete . Press the reset button after burning .
3、 ... and 、 Connect the test
1. Connect WiFi
Previously, it was said that Anxin can provide a good testing tool :loTDevTool,
Be careful : The serial port of the firmware we use is :IO15-TXD and IO13-RXD, Default baud rate 115200, So onboard USB It doesn't work , External modules are required .
2. Connect Tencent cloud Internet of things development platform
Connecting Tencent cloud IOT development platform requires device triples , namely : product ID、 Device name and device key . How to check? Please turn to the first section . Fill the triples in the device parameters :
Remember that triples must not be wrong , No one can connect successfully . Blogger here is just a demonstration , Although the above figure is different from the triplet of cloud platform , But the actual configuration is the same ,
If always connected , But that tool shows that it is connected , The module can be reset , Then reopen the debugging tool , Reconnect the WiFi.
3. Subscribe to topics
Make sure it is connected , And the device is online .,
Topic explain :
subscribe :$thing/down/property/{ProductID}/{DeviceName}
Parameters :ProductID It's the product ID 、DeviceName It's the name of the device , Such as :
$thing/down/property/C9N29PAEXK/LED;
notes : Input Topic when , Can't use Space Start with , Otherwise, this is the result :
4. Release the news
Published and subscribed Topic It's just a little different , That's it down and up; Such as :
subscribe :$thing/down/property/{ProductID}/{DeviceName}
Release :$thing/up/property/{ProductID}/{DeviceName}
With Topic after , You need to send Json data , You can refer to : Tencent cloud data template Protocol , For your convenience , I will post LED Control data :
{
"method":"report",
"clientToken":"123",
"params":{
"led1":1
}
}
Four 、 Tencent goes on and on App control
You can go to the mobile app store to download Tencent goes on and on App,
After these two steps , You can debug on your mobile phone ESP-12S 了 , The back controls . As long as the process of connecting the cloud platform is simulated with a single chip microcomputer, the remote control of the single chip microcomputer can be achieved . This process will be put into the blog post later .
Pay more attention to , Neverlost ,Nice!
边栏推荐
- Matlab-SEIR传染病模型预测
- 【7.4】25. K 个一组翻转链表
- USB (XVI) 2022-04-28
- The efficient s2b2c e-commerce system helps electronic material enterprises improve their adaptability in this way
- PCI-Express接口的PCB布线规则
- 家用电器行业渠道商协同系统解决方案:助力家电企业快速实现渠道互联网化
- 移动端异构运算技术 - GPU OpenCL 编程(基础篇)
- 2021icpc Shanghai h.life is a game Kruskal reconstruction tree
- Mysql索引优化实战二
- B_QuRT_User_Guide(38)
猜你喜欢
经纬度PLT文件格式说明
MATLAB signal processing [Q & A essays · 2]
Puce à tension stabilisée LDO - schéma de bloc interne et paramètres de sélection du modèle
Senior programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization, and recommends collecting
LM12丨Rolling Heikin Ashi二重K线滤波器
SAP HR奖罚信息导出
Mobile heterogeneous computing technology - GPU OpenCL programming (basic)
Design and implementation of spark offline development framework
伸展树(一) - 图文解析与C语言实现
Extended tree (I) - graphic analysis and C language implementation
随机推荐
Solve the problem of duplicate request resource paths /o2o/shopadmin/o2o/shopadmin/getproductbyid
8.31 Tencent interview
Freelink open source call center design idea
Live-Server使用
Description of longitude and latitude PLT file format
LeeCode -- 6. Zigzag transformation
USB (XVIII) 2022-04-17
系统架构设计师备考经验分享:论文出题方向
三问TDM
Mysql索引优化实战二
B_ QuRT_ User_ Guide(40)
The 19th Zhejiang Provincial College Programming Contest VP record + supplementary questions
ROS2专题(03):ROS1和ROS2的区别【02】
Lm12 rolling heikin Ashi double K-line filter
Coreseek: the second step is index building and testing
生鲜行业数字化采购管理系统:助力生鲜企业解决采购难题,全程线上化采购执行
turbo intruder常用脚本
家用电器行业渠道商协同系统解决方案:助力家电企业快速实现渠道互联网化
How to change the formula picture in the paper directly into the formula in word
Technology at home and abroad people "see" the future of audio and video technology