当前位置:网站首页>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
边栏推荐
- 让企业数字化砸锅和IT主管背锅的软件供应链安全风险指北
- Why did kubernetes win? The changes in the container circle!
- Error 2059 when Navicat connects to MySQL
- Ctfshow framework reproduction
- Flitter - sort list sort
- SSM integration process (integration configuration, function module development, interface test)
- Rhai - rust's embedded scripting engine
- 深入理解 Jetpack Compose 内核:SlotTable 系统
- CentOS 6.3 x64 PHP 5.2.6 扩展安装OpenSSL出错的解决方法
- Manage edge browser settings (ie mode, homepage binding, etc.) through group policy in the enterprise
猜你喜欢

深入理解 Jetpack Compose 内核:SlotTable 系统

Random ball size, random motion collision

Redis - understand the master-slave replication mechanism

Wordpress blog uses volcano engine veimagex for static resource CDN acceleration (free)

Vmware16 installing win11 virtual machine (the most complete step + stepping on the pit)

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

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

C WinForm program interface optimization example

2022-2028 global single travel industry research and trend analysis report

什么是SRM系统,如何规范公司内部采购流程
随机推荐
基金銷售行為規範及信息管理
lvm-snapshot:基于LVM快照的备份之准备工作
76 page comprehensive solution 2022 for smart Logistics Park (download attached)
2022-2028 global ICT test probe industry research and trend analysis report
Redis - cache penetration, cache breakdown, cache avalanche
C WinForm program interface optimization example
In depth understanding of jetpack compose kernel: slottable system
女朋友说:你要搞懂了MySQL三大日志,我就让你嘿嘿嘿!
Operation record of reinitialization instance of Dameng database
2022-2028 global rampant travel industry research and trend analysis report
2022-2028 global ultra high purity electrolytic iron powder industry research and trend analysis report
Can SQL execution be written in tidb dashboard
shell 同时执行多任务下载视频
"Experience" my understanding of user growth "new users"
[designmode] factory pattern
Reason why wechat payment wxpaypubhelper V3 callback XML is empty
How does the VR cloud exhibition hall bring vitality to offline entities? What are the functions?
Schéma de transition asynchrone - générateur
Vmware16 installing win11 virtual machine (the most complete step + stepping on the pit)
Dataloader source code_ DataLoader