Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Hierarchical modbus communication system and method

The technology of a communication system and communication method is applied in the field of hierarchical MODBUS communication system, which can solve the problems of code structure redundancy, incompatibility with host and slave, etc., and achieve the effect of simplifying program code and improving versatility

Active Publication Date: 2021-07-27
正星科技股份有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a layered MODBUS communication system and method to solve the technical problems that the existing MODBUS communication method cannot be compatible with the master and slave, and the code structure is redundant

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hierarchical modbus communication system and method
  • Hierarchical modbus communication system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Embodiment 1: a kind of hierarchical MODBUS communication system, see figure 1 , including the communication hardware layer, protocol analysis layer, and device business processing layer; the communication hardware layer defines the electrical parameters of the device, and marks whether the connected device is a master device or a slave device. If it is a slave device, it will process the data flow of the slave device; after that is the protocol analysis layer, which is used to judge whether the data format sent and received by the communication hardware layer is legal, send the legal data to the business processing layer for execution, and discard the illegal data ,specific:

[0026] The communication hardware layer includes a hardware driver unit, a data transceiver unit, and a data organization unit. First, the hardware driver unit must provide power for the physical port of the device to enable it to start, and then set the master-slave attribute of the device. If i...

Embodiment 2

[0029] Embodiment 2: the realization of a kind of hierarchical MODBUS communication method, see figure 2 , including a case in which a device running a layered MODBUS communication method communicates with a common master and a common slave simultaneously, hereinafter "a device running a layered MODBUS communication protocol" is referred to as the present invention, and "common MODBUS master" is referred to for short Ordinary host, "ordinary MODBUS slave" is referred to as ordinary slave.

[0030] For ordinary slaves, after the physical port of the connection is determined, the present invention first drives the port at the communication hardware layer, and plans a buffer area for the physical port, writes a command flow processing function, and puts the data in a certain way. In the buffer area; then do some work bound to the hardware port: including setting the communication address, setting whether the device is a master device or a slave device, binding the hardware data ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a layered MODBUS communication system and method. The existing MODBUS communication mode cannot be compatible with the master and the slave, and the technical problems of code structure redundancy. The invention includes a communication hardware layer, a protocol analysis layer, and a device business processing layer; the communication hardware layer is used to specify the electrical parameters of the device and complete information interaction with the protocol analysis layer; the protocol analysis layer is used to judge the legality of the message sent by the communication hardware layer Sex; the device business processing layer is used to execute legal messages sent by the protocol analysis layer. A MODBUS communication method is also designed, including defining parameters at the hardware layer, identifying and judging messages at the analysis layer, and executing messages at the business layer. The beneficial technical effects of the present invention are: strong versatility, compatible with host and slave modes, and simple code structure.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a layered MODBUS communication system and method. Background technique [0002] MODBUS is a serial communication protocol widely used in the field of industrial control communication. MODBUS adopts "master-slave mode", and there can only be one master in one communication to control multiple slaves. This method has a relatively simple network structure and is easy to deploy and maintain, but it is not flexible enough in practical application and lacks compatibility. [0003] Chinese patent document: "CN103941700B-An automated process safety monitoring system based on Modbus protocol" discloses a system that enables slaves to communicate with each other, divides multiple slaves into several clusters, and selects one in each cluster A slave that can receive data from other slaves in the cluster, that is, a local area network communication is set between the slaves under the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/40H04L29/06
CPCH04L12/40H04L69/22H04L69/26H04L2012/40228
Inventor 郭德强周亮冯小娟郝芳娟袁显文魏金伟张燕李波
Owner 正星科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products