Communication method and device based on communication protocol under master/slave mode

A technology of a communication protocol and a communication method is applied in the field of communication methods and devices based on communication protocols in master-slave mode, and can solve the problem that MODBUS TCP/IP hosts cannot read data from each other.

Inactive Publication Date: 2017-05-10
GREE ELECTRIC APPLIANCES INC
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present invention provides a communication method and device based on the communication protocol in the master-slave mode, so as to solve the problem that the MODBUS TCP / IP master and the MODBUS TCP / IP slave cannot read data from each other in the prior art. problem writing data

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
  • Communication method and device based on communication protocol under master/slave mode
  • Communication method and device based on communication protocol under master/slave mode
  • Communication method and device based on communication protocol under master/slave mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] In this embodiment, a communication method based on the communication protocol in the master-slave mode is provided, which is applied to a node based on the communication protocol in the master-slave mode, figure 2 is a flow chart of a communication method based on a communication protocol in a master-slave mode according to an embodiment of the present invention, such as figure 2 As shown, the process includes the following steps:

[0038] Step S201: receiving monitoring information;

[0039] Step S202: Set the node state to the server state according to the monitoring information. For example, after the client based on the communication protocol in the master-slave mode receives the monitoring information, the client is set to the server state, so that the client has the function of the server at the same time, and then the communication protocol based on the master-slave mode is enabled. Multiple nodes can read and write data to each other.

[0040] Through the ab...

Embodiment 2

[0065] In this embodiment, a communication device based on a communication protocol in a master-slave mode is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.

[0066] An embodiment of the present invention provides a communication device based on a communication protocol in a master-slave mode, which is applied to a node based on a communication protocol in the master-slave mode, such as Image 6 As shown, it includes: a receiving module 61 for receiving monitoring information; and a first setting module 62 for setting a node state to a...

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 provides a communication method and device based on a communication protocol under a master / slave mode. The method and device are applied to a node based on the communication protocol under the master / slave mode. The method disclosed by the invention comprises the following steps: receiving monitoring information; setting a node status as a server status according to the monitoring information; or comprises the following steps: acquiring an address of a target server; connecting to the target server according to the address of the target server, setting the node status as a client status, so that the client is provided with the function of the server; and the mutual reading and writing of data can be performed among multiple nodes based on the communication protocol under the master / slave mode.

Description

technical field [0001] The present invention relates to the field of communication technologies, in particular to a communication method and device based on a communication protocol in a master-slave mode. Background technique [0002] Modbus protocol is a communication protocol widely used in industry, and TCP / IP protocol is a communication protocol with extremely high coverage in the network. [0003] Modbus TCP / IP protocol enables industrial Ethernet data exchange. Combining the advantages of the above two protocols, longer transmission distance, stronger data transmission capability, and low implementation price are achieved by using common network components. At present, it has also been widely recognized by the application in industry. [0004] At present, modbus TCP / IP is mainly based on the one-master and multiple-slave mode similar to the modbus protocol in the network port communication, that is, a mode of one master and multiple slaves. Generally, the slave send...

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
IPC IPC(8): H04L12/40
CPCH04L12/40006H04L2012/40228
Inventor 刘维兵关富文钟金扬唐政清李涛韦国全
Owner GREE ELECTRIC APPLIANCES INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products