当前位置:网站首页>Analysis of Modbus Protocol in TCP communication
Analysis of Modbus Protocol in TCP communication
2022-04-22 06:10:00 【From deliberate to habit】
1.TCP
Application layer direction TCP Layer send is used for inter network transmission 、 use 8 Data stream represented by bit bytes , then TCP Partition the data stream into message segments of appropriate length ( The largest transmission unit of the data link layer of the network usually connected by the computer (MTU) The limitation of ). after TCP Pass the result package on to IP layer , It transmits the packet to the receiving entity through the network TCP layer .TCP In order to ensure no packet loss , Just give each package a serial number , At the same time, the serial number also ensures the sequential reception of packets sent to the receiving entity .
TCP/IP The hierarchical model is divided into four layers : application layer 、 Transport layer 、 The network layer 、 Data link layer .

2.TCP And modbus difference
The effect is different
1、modbus agreement :modbus The protocol enables the communication between controllers , And the controller communicates between the network and other devices .
2、tcp/ip agreement :modbus tcp/ip The protocol provides services between the transport layer and the network layer .
Transmission is different
1、modbus agreement :modbus The protocol transmission distance is short 、 Slow speed , The application is limited .
2、tcp/ip agreement :modbus tcp/ip Long protocol transmission distance 、 Fast transmission speed , So that it can be widely used .
TCP transmission modbus The data of , by modbus service ,TCP Different services are distinguished by port numbers , The port is equivalent to the house number of entering a building ,tcp Support modbus The port used is 502
3.modbus
encapsulation : Through encapsulation, the upper protocol uses the services provided by the lower protocol
TCP message : after TCP Encapsulated data
frame : Data encapsulated in the data link layer
modbus The four components of communication protocol :

版权声明
本文为[From deliberate to habit]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220542471209.html
边栏推荐
猜你喜欢

Part 84 leetcode sword refers to offer dynamic programming (I) Fibonacci sequence

pykmip测试

QT学习之代码颜色区别

第86篇 LeetCode剑指Offer动态规划(三)股票的最大利润

Part 85 leetcode sword refers to offer dynamic programming (II) frog jumping steps

ADC key for learning of Blue Bridge Cup embedded expansion board

Photoresist for learning of Blue Bridge Cup embedded expansion board

Blue Bridge Cup embedded expansion board learning lis302dl

动态内存管理、文件操作、预处理

MODBUS协议简记
随机推荐
I/O多路复用(select/poll/epoll)
ADC
Installation of QT learning
deep learning object detection 精选
AIX6. 1 compile OpenSSL
蓝桥杯嵌入式扩展板学习之ADC按键
Installing GCC on AIX and using
Jeecgboot online form development - control configuration
蓝桥杯嵌入式扩展板学习之LIS302DL
opencv代码
Rtl8367 learning note 2 - network configuration operation literacy
常见面试问题 - 3(操作系统)
c#catch错误信息自定义显示
Part 84 leetcode sword refers to offer dynamic programming (I) Fibonacci sequence
TXT text content is deleted one by one
QT学习之设置时间日期显示
Speed measurement based on 51 single chip microcomputer and Hall sensor
On the relationship between the Euler angle of RT matrix and the type of pose in Halcon in hand eye calibration
Experience of constructing H-bridge with MOS tube
Compiling OpenSSL on HP UNIX and using