当前位置:网站首页>Mqtt.fx connects to Alibaba cloud Internet of things platform
Mqtt.fx connects to Alibaba cloud Internet of things platform
2022-07-28 17:33:00 【maosql】
Novice entry level mainly describes the general process and their understanding of learning
Forward thinking : Old engineer : Code is not the hardest , The plan is the most difficult . Make clear the plan 、 As long as the code learns it, it will , It will happen sooner or later, right ;
MQTT.fx It is used to debug Alibaba cloud , Just use this configuration , It's the same with SCM configuration , So at the beginning, you don't need to use the board directly. First, use this software to connect Alibaba cloud , Then use the same principle to get it on the board , This chapter focuses on using software to debug Alibaba cloud , SCM provides a general idea
outline :
Different microcontrollers (srm32 51 NXP...), //
Different transmission protocols (MQTT HTTPS 4G modbus...), //MQTT HTTPS It's all based on TCP/IP Application communication protocol on the Protocol ,modbus It is widely used in industry
Different ECs ( Alibaba cloud Hua Wei Yun OneNET( Originator )...), // Tencent cloud , Atomic cloud ( The punctual atoms )
They are similar in use , As long as you learn a way to understand the principle, you can draw inferences from one instance .
step :https://www.processon.com/view/link/6124549ce401fd5228f8f94a password :5555
Cloud configuration :( Here it means STM32 equipment Aliyun server MQTT agreement , The upper configuration is the same )
It can be concluded that the step is 1. Create products ->1.1 Add equipment 2. New projects ->2.1 New application
1. Create products :
Create success :
1.1 Add equipment ( Product selection required , Products must be created first )
Add success :
software test (MQTT.fx) Connect :
Alibaba cloud official website uses MQTT.fx Connect IOT connection steps :
https://help.aliyun.com/document_detail/140507.html
Refer to Alibaba cloud configuration as follows :
Certification certificate of equipment A triple
{
"id": "12345",
"version": "1.0",
"params": {
"Humidity":47.5,"Temperature":79},
"method": "thing.event.property.post"
}
Broker Address Connection domain name
Fixed format :${
YourProductKey}.iot-as-mqtt.${
YourRegionId}.aliyuncs.com.
${
YourProductKey}: Please replace with... Of the product to which the equipment belongs ProductKey. You can log in to the Internet of things platform console , Get... On the device details page of the corresponding instance .
${
YourRegionId}: See regions and zones , Replace with your Region ID.
Integrate :gcanzDyEJg5.iot-as-mqtt.cn-shanghai.aliyuncs.com
Port number :1883( Default )
Client ID MQTT Protocol fields for .
Fixed format :${
ClientID}|securemode=${
Mode},signmethod=${
SignMethod}|
${
ClientId}: equipment 、App or Web And so on Client ID Information .
${
Mode}: safe mode .
securemode=3:TCP Direct Mode , No need to set SSL/TLS Information .
securemode=2:TLS Direct Mode , Need to set up SSL/TLS Information .
${
SignMethod}: Algorithm type , Support hmacmd5 and hmacsha1.
Integrate :12345|securemode=3,signmethod=hmacsha1|
User Name
Fixed format :${
DeviceName}&${
ProductKey}
Integrate :Temp&gcanzDyEJg5
Password
Through the selected encryption method , With the equipment of DeviceSecret As the key ,
After splicing parameters and parameter values , Encryption generation Password.
Generate :86E2D19B4CD7E49A1DDC0961561268E1C78C4C90
How to publish data
Of published data Topic
/sys/gcantktaPzk/test/thing/event/property/post
** Publishing data needs to follow JSON Format , Otherwise, Alibaba cloud will receive errors when parsing **
JSON Format {
"id": "123",
"version": "1.0",
"params": {
"temperature":36
},
"method": "thing.event.property.post"
}
Receive Alibaba cloud data
receive data Topic
/gcantktaPzk/test/user/get


Single chip connection steps :
If you are not using Alibaba cloud dedicated WIFI Modules cannot be selected when creating products WIFi Of , If it is popular esp8266 Words , Or brush the firmware that can be connected to Alibaba cloud , Or choose cellular network 
summary : nothing
边栏推荐
- FreeRTOS learning notes
- Verilog 每日一题(VL26 简易秒表)
- 2021 年全国大学生数据统计与分析竞赛
- QR code generation of wechat applet with parameters
- Editor MAVON editor for offline use
- Verilog 每日一题(VL8 使用generate…for语句简化代码)
- How to protect image security during construction
- Selection of resistance in high speed circuit
- Iris framework practice of goweb development: project summary and review
- Blue Bridge Cup embedded competition resources and skills
猜你喜欢

Firewall protective wall

Master JVM interview topics and answers offer get soft (with learning roadmap)

Master the key points of JVM interview

Verilog daily question (vl26 simple stopwatch)

Asynchronous circuit design -- principle and example of synchronous pulser

Proof of the third scene (f) in 22 years

深度分享阿里(蚂蚁金服)技术面试流程,附前期准备,学习方向

面试官:算法刷题实录.pdf我居然答不上来

在PDF中插入文本水印

MySQL implements sorting according to custom (specified order)
随机推荐
Valarray Library Learning
AMQP协议详解
Application system log structure of elastic stack
Gray code and binary conversion and typical examples (4bits gray code counter)
Verilog 每日一题(VL4 移位运算与乘法)
【CDH】通过 ClouderaManager 配置CDH组件用 prometheus 监控采集JMX信息
Net framework
阿里P8架构师谈:成为架构师必须学好的七大知识点(含面试题)
No interactive operation of shell script
Verilog daily question (vl28 plus and minus counter)
QR code generation of wechat applet with parameters
高速电路中电容的选型和应用——详解
循环中使用switch在执行条件后使用break和continue的区别
Shell编程之Sed
[CDH] configure CDH components through clouderamanager and collect JMX information with Prometheus monitoring
Backup and restore of SNAT and DNAT firewall rules
将input type='file' 类型的图片文件转成base64
High speed circuit design practice -- Overview
@RequestParam使用
2021年4月份自考