当前位置:网站首页>[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!
边栏推荐
- Three questions TDM
- 系统架构设计师备考经验分享:论文出题方向
- B_QuRT_User_Guide(36)
- The text editor of markdown class should add colors to fonts (including typora, CSDN, etc.)
- CAIP2021 初赛VP
- Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
- Entity层、DAO层、Service层、Controller层 先后顺序
- re1攻防世界逆向
- Have all the fresh students of 2022 found jobs? Is it OK to be we media?
- B_QuRT_User_Guide(36)
猜你喜欢

LDO voltage stabilizing chip - internal block diagram and selection parameters
![Ros2 topic (03): the difference between ros1 and ros2 [02]](/img/12/244ea30b5b141a0f47a54c08f4fe9f.png)
Ros2 topic (03): the difference between ros1 and ros2 [02]

三问TDM

SAP HR 社会工作经历 0023

List. How to achieve ascending and descending sort() 2020.8.6

产业共融新势能,城链科技数字峰会厦门站成功举办

Digital procurement management system for fresh food industry: help fresh food enterprises solve procurement problems and implement online procurement throughout the process

SAP 内存参数调优过程

Unity3d learning notes 5 - create sub mesh
![给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」](/img/21/2e99dd6173ab4925ec22290cd4a357.png)
给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」
随机推荐
2021icpc Shanghai h.life is a game Kruskal reconstruction tree
JS get the key and value of the object
经纬度PLT文件格式说明
SQL database execution problems
The text editor of markdown class should add colors to fonts (including typora, CSDN, etc.)
List. How to achieve ascending and descending sort() 2020.8.6
欢聚时代一面
Unity3d learning notes 5 - create sub mesh
How to generate unique file names
SAP HR 社会工作经历 0023
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
v-for遍历对象
HDU 4747 Mex「建议收藏」
Lm12 rolling heikin Ashi double K-line filter
POJ2392 SpaceElevator [DP]
Solution of intelligent supply chain collaboration platform in electronic equipment industry: solve inefficiency and enable digital upgrading of industry
One week learning summary of STL Standard Template Library
B_QuRT_User_Guide(39)
System design overview
树后台数据存储(採用webmethod)[通俗易懂]