当前位置:网站首页>[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!
边栏推荐
- Given an array, such as [7864, 284, 347, 7732, 8498], now you need to splice the numbers in the array to return the "largest possible number."
- 2022 届的应届生都找到工作了吗?做自媒体可以吗?
- 电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
- POJ2392 SpaceElevator [DP]
- Oracle database backup and recovery
- Archlinux install MySQL
- 给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」
- Windows set redis to start automatically
- Tree background data storage (using webmethod) [easy to understand]
- How to change the formula picture in the paper directly into the formula in word
猜你喜欢
Mysql索引优化实战一
Summary of SQL single table query 2020.7.27
Cloud native is devouring everything. How should developers deal with it?
B_ QuRT_ User_ Guide(36)
Vulnerability recurrence ----- 49. Apache airflow authentication bypass (cve-2020-17526)
Deep understanding of MySQL lock and transaction isolation level
进度播报|广州地铁七号线全线29台盾构机全部完成始发
Oracle-数据库的备份与恢复
UE4_ Ue5 panoramic camera
Digital procurement management system for fresh food industry: help fresh food enterprises solve procurement problems and implement online procurement throughout the process
随机推荐
Archlinux install MySQL
Force deduction solution summary 648 word replacement
B_QuRT_User_Guide(40)
Vs extension tool notes
Turbo introder common scripts
Explain
USB (XIV) 2022-04-12
Unity3d learning notes 4 - create mesh advanced interface
2022第六季完美童模陕西总决赛圆满落幕
CAIP2021 初赛VP
How to change the formula picture in the paper directly into the formula in word
Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
Coreseek:第二步建索引及測试
伸展树(一) - 图文解析与C语言实现
做自媒体视频剪辑怎么赚钱呢?
New potential energy of industrial integration, Xiamen station of city chain technology digital summit successfully held
Given an array, such as [7864, 284, 347, 7732, 8498], now you need to splice the numbers in the array to return the "largest possible number."
LDO稳压芯片-内部框图及选型参数
Matlab 信号处理【问答随笔·2】
Freelink open source call center design idea