当前位置:网站首页>Basic knowledge of Embedded Network - introduction of mqtt
Basic knowledge of Embedded Network - introduction of mqtt
2022-07-01 00:12:00 【Please trust me】
List of articles
Basic knowledge of network
IP And the role of ports
During network transmission , adopt IP And port to express yourself and the other side .
IP:IP Address , Include host number + network number . Used to represent a device connected to the Internet .
port : Ports represent transport layer to application layer , Data transmission channels , Each application corresponds to a different port .
Public network IP Not enough use
IP And ports are important , however IP Not enough use :
- In the home , In the company , Only routers have public networks IP
- Other computers are just local area networks IP, such as 192.168.x.x
- Your home computer , The company's computers ,IP All are 192.168.0.100, But they don't conflict : Because they are in different LAN ( The connected routers are different )
- Computers in the LAN access the public network , You need a router to help !

On a foreign visit , Router to help
a key :
IP And ports are important , however IP Not enough use : So we need a router to help .
How to help ?
client 1: To his own IP Address and port number ( hypothesis 192.168.200.11), And the domain name of the server to be accessed ( hypothesis :qq.com) To the router
Router 1: Router 1 Received the information from the client , Client side IP Replace the address and port number with your own public network IP, And send data to qq.com.qq.com Received a request , It will reply the data to the router
Router 1: Router 1 received qq.com The news will be in your own NAT The transformation mapping table looks up whether there is a device for this request , Send data to the device if there is . If not, lose the data .


So it's not hard to find out , Servers are needed as a bridge between two different LAN devices that send and receive messages from each other .
How to transmit data between the two sides ?
On the hardware
Both sides need to be connected to the Internet , mobile phone , And the development board .
Agreement on
The so-called agreement : It means that both the sender and the receiver reach an agreement . That is, the rules that both parties must abide by .
In the Internet of things ,MQTT More suitable for . Because its data size is very small , It's perfect for .
MQTT download
Recommended kawail-mqtt, It was written by a big cow in China , very nice.
kawail-mqtt, Consciousness is Kawaii MQTT, Lovely MQTT.
Domestic open source address Open source address


summary
Thank you very much for your teaching and answers , Thank you for your teaching .
It is highly recommended that you learn embedded , Hundreds of questions !
Official website of baiwen.com
边栏推荐
- Prospects of world digitalization and machine intelligence in the next decade
- 2022-2028 global rampant travel industry research and trend analysis report
- 2022-2028 global plant peptone industry research and trend analysis report
- Fund customer service
- How to close an open DNS resolver
- composer
- Schéma de transition asynchrone - générateur
- C language array interception, C string by array interception method (c/s)
- Understand target detection in one article: r-cnn, fast r-cnn, fast r-cnn, Yolo, SSD "suggestions collection"
- The college entrance examination in 2022 is over. Does anyone really think programmers don't need to study after work?
猜你喜欢

New trend of embedded software development: Devops

Netease cloud sign in lottery? That year I could sign in for 365 days. No? Look.

2022-2028 global ultra high purity electrolytic iron sheet industry research and trend analysis report

Redis - understand the master-slave replication mechanism

让企业数字化砸锅和IT主管背锅的软件供应链安全风险指北

How to edit special effects in VR panorama? How to display detailed functions?
![[designmode] factory pattern](/img/62/9be808b3e1c2139d564caa307fcd30.png)
[designmode] factory pattern

Implementation of OSD on Hisilicon platform (1)

In depth understanding of jetpack compose kernel: slottable system

SSM integration process (integration configuration, function module development, interface test)
随机推荐
How do it outsourcing resident personnel position their pain points?
Asynchronous transition scenario - generator
The programmer's girlfriend gave me a fatigue driving test
conv2d详解--在数组和图像中的使用
Why did kubernetes win? The changes in the container circle!
需求评审,测试人员应该发挥怎样的价值?两分钟让你不再懵逼
What value should testers play in requirements review? Two minutes will stop you from being stupid
[designmode] factory pattern
On the application of cluster analysis in work
2022-2028 global plant peptone industry research and trend analysis report
Using Excel to quickly generate SQL statements
2022-2028 global single travel industry research and trend analysis report
NATs cluster deployment
Never use redis expired monitoring to implement scheduled tasks!
Can SQL execution be written in tidb dashboard
In depth understanding of jetpack compose kernel: slottable system
The girlfriend said: if you want to understand the three MySQL logs, I will let you heiheihei!
1175. prime number arrangement / Sword finger offer II 104 Number of permutations
Fh6908a negative pole turn off synchronous rectification analog low voltage drop diode control IC chip tsot23-6 ultra low power rectifier 1W power consumption < 100ua static replacement mp6908
Ditto set global paste only text shortcuts