CN112422485A - Communication method and device of transmission control protocol - Google Patents

Communication method and device of transmission control protocol Download PDF

Info

Publication number
CN112422485A
CN112422485A CN201910784985.4A CN201910784985A CN112422485A CN 112422485 A CN112422485 A CN 112422485A CN 201910784985 A CN201910784985 A CN 201910784985A CN 112422485 A CN112422485 A CN 112422485A
Authority
CN
China
Prior art keywords
accessed
server
access request
registers
request message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910784985.4A
Other languages
Chinese (zh)
Other versions
CN112422485B (en
Inventor
尹二飞
徐珺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201910784985.4A priority Critical patent/CN112422485B/en
Publication of CN112422485A publication Critical patent/CN112422485A/en
Application granted granted Critical
Publication of CN112422485B publication Critical patent/CN112422485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a communication method and device of a transmission control protocol. In the method, a terminal sends a first access request message or a second access request message to a server to be accessed, which establishes TCP connection with the terminal; the first access request message comprises a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed; and receiving a first access response message or a second access response message sent by the server to be accessed. The method realizes the access to at least two registers to be accessed through one access request or an access request combination, and improves the communication efficiency.

Description

Communication method and device of transmission control protocol
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus for a transmission control protocol.
Background
The Modbus is a serial communication Protocol supporting the communication between the master station and the slave station, and a Transmission Control Protocol (TCP) bus of the Modbus has become a practical industrial standard due to the characteristics of open Protocol, simple implementation and high reliability, and is supported by products of a plurality of manufacturers. With the continuous development of information technology, a large amount of data communication is required to be performed by using the existing Modbus equipment in many application occasions, for example, the fault waveform record transmitted once in the power communication field may reach tens of MB, and the image data transmitted once in the video monitoring field may reach hundreds of MB. The master can issue commands on the ModbusTCP bus on which it is unique. The slave station can be provided with a plurality of slave stations, the slave station monitors the messages of the bus at any time and responds to the command of the master station by using the response message, namely the slave station can not issue the command and can only respond.
When a master station (or called terminal) and a slave station (or called server) of a ModbusTCP protocol communicate with each other, if the terminal performs different operations, such as read operation or write operation, on a plurality of registers in the same server, or when registers with discontinuous addresses exist in the plurality of registers, the terminal is required to send a plurality of access request messages to the same server, and information is exchanged between the server and the terminal according to a request-response format, so that the communication efficiency is low.
Disclosure of Invention
The embodiment of the application provides a communication method and device of a transmission control protocol, which solve the problems in the prior art and improve the communication efficiency between a server and a terminal.
In a first aspect, a communication method is provided, which may include:
the terminal sends a first access request message or a second access request message to a server to be accessed which establishes Transmission Control Protocol (TCP) connection with the terminal; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
receiving a first access response message or a second access response message sent by the server to be accessed; the first access response message comprises an operation result obtained by the server to be accessed executing the operation of the corresponding operation type on the register to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; the second access response message includes an operation result obtained by the to-be-accessed server executing the operation of the corresponding operation type on the to-be-accessed register corresponding to the address of the to-be-accessed register in each access request message.
In an optional implementation, before sending the first access request packet or the second access request packet to the server to be accessed, which establishes a TCP (transmission control protocol) connection with the terminal, the method further includes:
determining a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed according to preset configuration information;
and generating a first access request message or a second access request message according to the server identifier of the server to be accessed, the addresses of at least two registers to be accessed in the server to be accessed and the corresponding operation types for operating the at least two registers to be accessed.
In an optional implementation, generating a first access request packet according to the server identifier of the server to be accessed, the addresses of two registers to be accessed in the server to be accessed, and the corresponding operation types for operating the two registers to be accessed includes:
combining the operation type and the address corresponding to each register to be accessed in the at least two registers to be accessed to obtain the data operation combination of each register to be accessed;
combining the data operations of the at least two registers to be accessed to form a group of data operation chains according to a preset register operation sequence;
and generating a first access request message according to the server identifier of the server to be accessed and the data operation chain.
In an alternative implementation, the operation of the operation type comprises a write operation, a read operation, or a combination of the write operation and the read operation;
the operation result comprises an operation result of sequentially executing the write operation on the at least two registers to be accessed, an operation result of sequentially executing the read operation on the at least two registers to be accessed, or an operation result of sequentially executing the combination operation on the at least two registers to be accessed according to a preset register operation sequence.
In a second aspect, a communication method of a transmission control protocol is provided, which may include:
the method comprises the steps that a server to be accessed receives a first access request message or a second access request message sent by a terminal which establishes Transmission Control Protocol (TCP) connection with the server to be accessed; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
obtaining a first access response message of the first access request message according to the addresses of the at least two registers to be accessed in the first access request message and the corresponding operation types for operating the at least two registers to be accessed, wherein the first access response message comprises an operation result obtained by executing the corresponding operation types on the registers to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; or acquiring a second access response message of the second access request message according to the address of the register to be accessed of each access request message in the second access request message and the corresponding operation type for operating the second register to be accessed, wherein the second access response message comprises an operation result obtained by executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message;
and sending the first access response message or the second access response message to the terminal.
In a third aspect, a communication device of a transmission control protocol is provided, and the device may include: a transmitting unit and a receiving unit;
the sending unit is used for sending a first access request message or a second access request message to a server to be accessed which establishes Transmission Control Protocol (TCP) connection with the terminal; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
the receiving unit is used for receiving a first access response message or a second access response message sent by the server to be accessed; the first access response message comprises an operation result obtained by the server to be accessed executing the operation of the corresponding operation type on the register to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; the second access response message includes an operation result obtained by the to-be-accessed server executing the operation of the corresponding operation type on the to-be-accessed register corresponding to the address of the to-be-accessed register in each access request message.
In an optional implementation, the apparatus further comprises a determining unit and a generating unit;
the determining unit is configured to determine, according to preset configuration information, a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed, and corresponding operation types for operating the at least two registers to be accessed;
the generating unit is configured to generate a first access request packet or a second access request packet according to the server identifier of the server to be accessed, the addresses of at least two registers to be accessed in the server to be accessed, and the corresponding operation types for operating the at least two registers to be accessed.
In an optional implementation, the generating unit is specifically configured to combine an operation type and an address corresponding to each register to be accessed in the at least two registers to be accessed to obtain a data operation combination of each register to be accessed;
combining the data operations of the at least two registers to be accessed to form a group of data operation chains according to a preset register operation sequence;
and generating a first access request message according to the server identifier of the server to be accessed and the data operation chain.
In an alternative implementation, the operation of the operation type comprises a write operation, a read operation, or a combination of the write operation and the read operation;
the operation result comprises an operation result of sequentially executing the write operation on the at least two registers to be accessed, an operation result of sequentially executing the read operation on the at least two registers to be accessed, or an operation result of sequentially executing the combination operation on the at least two registers to be accessed according to a preset register operation sequence.
In a fourth aspect, a communication apparatus of a transmission control protocol is provided, the apparatus comprising: the device comprises a receiving unit, an acquiring unit and a sending unit;
the receiving unit is used for receiving a first access request message or a second access request message sent by a terminal establishing Transmission Control Protocol (TCP) connection with the server to be accessed; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
the obtaining unit is configured to obtain a first access response packet of the first access request packet according to the addresses of the at least two registers to be accessed in the first access request packet and the corresponding operation types for operating the at least two registers to be accessed, where the first access response packet includes an operation result obtained by performing operations of the corresponding operation types on the registers to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request packet; or acquiring a second access response message of the second access request message according to the address of the register to be accessed of each access request message in the second access request message and the corresponding operation type for operating the second register to be accessed, wherein the second access response message comprises an operation result obtained by executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message;
the sending unit is configured to send the first access response packet or the second access response packet to the terminal.
In a fifth aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other via the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the above first aspects or the method steps of the above second aspects when executing a program stored in a memory.
A sixth aspect provides a computer readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of any one of the above first aspects or the method steps of the above second aspect.
In the communication method of the transmission control protocol provided by the embodiment of the invention, a terminal sends a first access request message or a second access request message to a server to be accessed, which establishes TCP connection with the terminal; the first access request message comprises a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed; receiving a first access response message or a second access response message sent by a server to be accessed; the first access response message comprises operation results obtained by the server to be accessed executing the operation of the corresponding operation type on the registers to be accessed corresponding to the addresses of at least two registers to be accessed in the first access request message; the second access response message includes an operation result obtained by the server to be accessed executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message. In the method, the terminal sends an access request or an access request combination to the server to be accessed, so that the access to at least two registers to be accessed is realized, the access to the registers in a request-response mode in the prior art is overcome, and the communication efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of a message structure of a Modbus TCP according to an embodiment of the present invention;
fig. 2 is a schematic system architecture diagram of an application of a communication method of a transmission control protocol according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a communication method according to an embodiment of the present invention;
FIG. 4A is a block diagram illustrating a combination of data operations for a register to be accessed according to an embodiment of the present invention;
fig. 4B is a schematic structural diagram of an access request packet according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating another communication method of a transmission control protocol according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a communication method of another transmission control protocol according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a communication method of another transmission control protocol according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a communication device according to a transmission control protocol according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a communication device according to another transmission control protocol according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without any creative effort belong to the protection scope of the present application.
The following will describe the message structure of the Modbus TCP in detail:
as shown in fig. 1, the message structure of Modbus TCP includes a 2-byte current communication transaction identifier field, a 2-byte protocol identifier field, a 2-byte data length field, a 1-byte destination device address field, a 1-byte function code field, a variable-byte data field, and a 1-byte check field.
The current communication transaction identifier is used for distinguishing different communication data messages, and is generally required to be added with 1 to distinguish different communication data messages after each communication;
a protocol identifier, representing 0000 as modbus protocol;
the data length indicates the length of the data carried by the message;
a destination device address identifying an address of a remote server connected on a serial line or network;
a function code field to indicate which actions the server needs to perform. For example to read the status of an incoming switch, read the data content of a set of registers, write the data content of a set of registers, read the diagnostic status of a server, allow calling, logging, verifying a program in a slave device, etc. A read hold register as represented by code 03; code 04 represents the read input register; code 06 represents writing a single register; code 16 represents writing a plurality of registers.
The data field is data that the terminal needs to send to the server, or data that the server needs to return to the terminal. The specific meaning of the data is defined by the function code, and particularly, some function codes do not comprise a data area, and the size of the data area is 0. The data field comprises a message type field, an initial address field and a data quantity field. The message type is used for distinguishing a request message and a response message, wherein if 0 represents a request frame, 1 represents a response frame; the start address indicates a start address of reading or writing data.
For example, if the terminal requires the server to read a set of holding registers (function code 03), the data field specifies the starting register and the number of registers to read.
If the terminal writes a set of server registers (function code 10 hex), the data field indicates the starting address of the register to be written and the number of registers to be written, the number of bytes of data in the data field, the data to be written to the registers.
If no error occurs, the data field returned from the server contains the requested data. If an error occurs, the field contains an objection code, and the terminal application can be used to determine to take further action.
The data field may not be present (0 length) in a certain message. For example, the terminal requests the server to respond to the communication event record (function code 0B hex), and the server does not need any additional information.
And the check field is used for enabling the data receiving party to check whether an error occurs in the transmission process of the communication.
For example, message 000100000009041000000001020001, is represented as:
0001 (transaction identifier), 0000 (modbus protocol identifier), 0009 (subsequent byte number) 04 (device identifier, i.e. slave address), 10 (function code, write multiple holding register values), 0000 (start address, i.e. address 1), 0001 (number of write registers, 1), 02 (length of subsequent written data), 0001 (specifically written data).
The communication method provided by the embodiment of the present invention may be applied to the system architecture shown in fig. 2, where the system may include a server and a terminal, and a TCP communication connection is established between the server and the terminal.
The server can be an application server or a cloud server; the Terminal may be a User Equipment (UE) such as a Mobile phone, a smart phone, a laptop, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, a Mobile Station (MS), a Mobile Terminal (Mobile Terminal), etc. The terminal has the capability to communicate with one or more core networks via a Radio Access Network (RAN).
The preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 3 is a flowchart illustrating a communication method of a transmission control protocol according to an embodiment of the present invention. As shown in fig. 3, the method may include:
and step 310, the terminal sends a first access request message or a second access request message to a server to be accessed which establishes a Transmission Control Protocol (TCP) connection with the terminal.
Before executing the step, the terminal may generate a first access request packet or a second access request packet, and specifically includes the following steps:
the method comprises the steps that firstly, a terminal determines a server identification of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed according to preset configuration information.
The terminal receives preset configuration information and analyzes the preset configuration information to obtain a server identifier of the server to be accessed, addresses of a plurality of registers to be accessed in the server to be accessed, register types and operation types for operating the plurality of registers to be accessed.
The server to be accessed is a server which establishes a Transmission Control Protocol (TCP) connection with the terminal.
The addresses of the at least two registers to be accessed may comprise consecutive addresses of different registers to be accessed and at least two non-consecutive addresses of the same register, i.e. a consecutive address has one start address and a non-consecutive address has at least two start addresses.
The operation type of operation may include a write operation, a read operation, or a combination of a write operation and a read operation. It is to be understood that the operation type may also include operations such as call-in, record, and check, and the embodiments of the present invention are not limited herein.
The preset configuration information may also include register types, which may include a single register, a plurality of registers, a holding register, an input register, and the like.
And secondly, the terminal generates a first access request message or a second access request message according to the server identification of the server to be accessed, the addresses of at least two registers to be accessed in the server to be accessed and the corresponding operation types for operating the registers to be accessed.
The first access request message may include a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed, and corresponding operation types for operating the at least two registers to be accessed; the second access request message may include at least two access request messages, where each access request message includes a server identifier of a server to be accessed, an address of a register to be accessed in the server to be accessed, and a corresponding operation type for operating the register to be accessed;
that is to say, the first access request message is a message, the second access request message is a message combination of at least two access request messages, and each access request message in the second access request message has the same message structure as the access request message in the prior art.
(1) In order to improve the communication efficiency, the process of generating a first access request message by the terminal specifically includes:
the terminal combines the operation type and the address corresponding to each register to be accessed in at least two registers to be accessed to obtain the data operation combination of each register to be accessed; if a combined operation of a write operation and a read operation is to be performed on an address of the same register to be accessed in one register to be accessed, the operation type of the write operation needs to be combined with the address to obtain a first data operation combination, and the operation type of the read operation needs to be combined with the address to obtain a second data operation combination.
Combining the data operations of at least two registers to be accessed to form a group of data operation chains according to a preset register operation sequence; and generating a first access request message for at least two registers to be accessed according to the server identification and the data operation chain of the server to be accessed.
For example, the server to be accessed includes a register X to be accessed, a register Y to be accessed, and a register Z to be accessed, where the register X to be accessed is a holding register, the register Y to be accessed is an input register, the register Z to be accessed is a single register, the operation type for operating the register X to be accessed is a write operation, the operation type for operating the register Y to be accessed is a read operation, and the operation type for operating the register Z to be accessed is a write operation. The address of the register X to be accessed is two discontinuous addresses, which include two start addresses, start address 1 and start address 2. The register Y to be accessed and the register Z to be accessed are continuous addresses, and a starting address Y and a starting address Z exist respectively.
The terminal can determine that the function codes corresponding to the register X to be accessed, the register Y to be accessed and the register Z to be accessed are 03, 04 and 06 respectively according to the operation type.
And aiming at the register X to be accessed, the terminal combines 03 function codes with the initial address 1 and the initial address 2 of the register X to be accessed respectively to obtain two data operation combinations of the register X to be accessed.
Since the start address exists in the data field, the combination of data operations of the register to be accessed X, the register to be accessed Y, and the register to be accessed Z may be represented as shown in fig. 4A.
Based on fig. 4A, the terminal operates the register X to be accessed, the register Y to be accessed, and the register Z to be accessed according to the preset register operation sequence, so that the data operations of the three registers to be accessed are combined to form a group of data operation chains. Thus, the terminal generates a first access request message to at least two registers to be accessed according to the server identifier ID and the data operation chain of the server to be accessed, as shown in fig. 4B.
(2) The terminal may generate at least two access request messages in the second access request message according to the prior art, specifically:
the terminal generates an access request message corresponding to each register to be accessed, namely generates at least two access request messages according to the server identifier of the server to be accessed, the operation type corresponding to each register to be accessed in the at least two registers to be accessed and the addresses of the at least two registers to be accessed. In other words, in the prior art, one access request packet is generated for each data operation combination, that is, multiple discontinuous addresses of the same register to be accessed generate corresponding multiple access request packets, and continuous addresses of different registers to be accessed also generate access request packets corresponding to different registers to be accessed.
Returning to step 310, the terminal may send a first access request packet to the server to be accessed, or the terminal may send a second access request packet to the server to be accessed according to a preset register request sequence, that is, send at least two access request packets in the second access request packet to the server to be accessed in sequence.
It can be seen that, unlike the "request-response" in the prior art, when at least two access request messages are sequentially sent to the server to be accessed, the terminal does not need to wait for the response message of the access request message sent last time before sending the current access request message, thereby improving the communication efficiency.
Step 320, the server to be accessed obtains a first access response message corresponding to the first access request message or a second access response message corresponding to the second access request message according to the first access request message or the second access request message.
The server to be accessed acquires a first access response message of the first access request message according to the addresses of the at least two registers to be accessed in the first access request message and the corresponding operation types for operating the at least two registers to be accessed, wherein the first access response message comprises operation results obtained by executing the corresponding operation types on the registers to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message.
Or, the server to be accessed acquires a second access response message of the second access request message according to the address of the register to be accessed of each access request message in the second access request message and the corresponding operation type for operating the second register to be accessed, wherein the second access response message comprises an operation result obtained by executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message.
Step 330, the server to be accessed sends the first access response message or the second access response message to the terminal.
It will be appreciated that the message structure of the access response message is the same as the message structure of the corresponding access request message.
The following describes in detail by taking an example that the operation types are respectively a write operation type, a read operation type, and a combined operation type of write operation and read operation, and the terminal generates a first access request message for accessing at least two registers to be accessed.
As shown in fig. 5, the first access request message is used to uniformly perform a write operation on addresses of at least two registers to be accessed, and the communication method of the transmission control protocol may include:
step 501, the terminal sends a first access request message to a server to be accessed, which establishes a TCP connection with the terminal.
The first access request message includes addresses of at least two registers to be accessed and a write operation type for operating the at least two registers to be accessed.
Step 502, the server to be accessed analyzes the first access request message to obtain the addresses of the at least two registers to be accessed in the first access request message and the write operation type for operating the at least two registers to be accessed.
Step 503, the to-be-accessed server executes write operation on the addresses of the at least two to-be-accessed registers respectively, obtains write operation results corresponding to the at least two to-be-accessed registers, and generates a first access response message.
The first access response message comprises write operation results corresponding to at least two registers to be accessed.
Step 504, the server to be accessed sends a first access response message to the terminal.
As shown in fig. 6, the first access request message is used to uniformly perform a read operation on addresses of at least two registers to be accessed, and the communication method of the transmission control protocol may include:
step 601, the terminal sends a first access request message to a server to be accessed, which establishes a TCP connection with the terminal.
The first access request message includes addresses of at least two registers to be accessed and a read operation type for operating the at least two registers to be accessed.
Step 602, the server to be accessed analyzes the first access request message to obtain the addresses of the at least two registers to be accessed in the first access request message and the read operation type for operating the at least two registers to be accessed.
Step 603, the to-be-accessed server executes read operations on the addresses of the at least two to-be-accessed registers respectively to obtain read operation results corresponding to the at least two to-be-accessed registers, and generates a first access response message.
The first access response message comprises read operation results corresponding to at least two registers to be accessed.
Step 604, the server to be accessed sends a first access response message to the terminal.
As shown in fig. 7, the first access request message is used to uniformly perform a combined operation of a read operation and a write operation on addresses of at least two registers to be accessed, and the communication method of the transmission control protocol may include:
step 701, the terminal sends a first access request message to a server to be accessed, which establishes a TCP connection with the terminal.
The first access request message includes addresses of at least two registers to be accessed and a combined operation type of a read operation and a write operation that operate the at least two registers to be accessed.
Step 702, the server to be accessed analyzes the first access request message to obtain the addresses of at least two registers to be accessed in the first access request message and the combined operation type of the read operation and the write operation for operating the at least two registers to be accessed.
Step 703, the to-be-accessed server executes read operation and write operation on the addresses of the at least two to-be-accessed registers respectively, obtains a combined operation result of the read operation and the write operation corresponding to the at least two to-be-accessed registers, and generates a first access response message.
The first access response message comprises a combined operation result of the read operation and the write operation corresponding to at least two registers to be accessed.
Step 704, the server to be accessed sends a first access response message to the terminal.
In the communication method of the transmission control protocol provided by the embodiment of the invention, a terminal sends a first access request message or a second access request message to a server to be accessed, which establishes TCP connection with the terminal; the first access request message comprises a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed; receiving a first access response message or a second access response message sent by a server to be accessed; the first access response message comprises operation results obtained by the server to be accessed executing the operation of the corresponding operation type on the registers to be accessed corresponding to the addresses of at least two registers to be accessed in the first access request message; the second access response message includes an operation result obtained by the server to be accessed executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message. In the method, the terminal sends an access request or an access request combination to the server to be accessed, so that the access to at least two registers to be accessed is realized, the access to the registers in a request-response mode in the prior art is overcome, and the communication efficiency is improved.
Corresponding to the foregoing method, an embodiment of the present invention further provides a communication device for transmitting a control protocol, where as shown in fig. 8, the communication device includes: a transmitting unit 810 and a receiving unit 820;
a sending unit 810, configured to send a first access request packet or a second access request packet to a server to be accessed, where a TCP connection is established with the terminal; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
a receiving unit 820, configured to receive a first access response message or a second access response message sent by the server to be accessed; the first access response message comprises an operation result obtained by the server to be accessed executing the operation of the corresponding operation type on the register to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; the second access response message includes an operation result obtained by the to-be-accessed server executing the operation of the corresponding operation type on the to-be-accessed register corresponding to the address of the to-be-accessed register in each access request message.
In an alternative implementation, the apparatus further comprises a determining unit 830 and a generating unit 840;
a determining unit 830, configured to determine, according to preset configuration information, a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed, and corresponding operation types for operating the at least two registers to be accessed;
a generating unit 840, configured to generate a first access request packet or a second access request packet according to the server identifier of the server to be accessed, the addresses of at least two registers to be accessed in the server to be accessed, and the corresponding operation types for operating the at least two registers to be accessed.
In an optional implementation, the generating unit 840 is specifically configured to combine an operation type and an address corresponding to each register to be accessed in the at least two registers to be accessed to obtain a data operation combination of each register to be accessed;
combining the data operations of the at least two registers to be accessed to form a group of data operation chains according to a preset register operation sequence;
and generating a first access request message according to the server identifier of the server to be accessed and the data operation chain.
In an alternative implementation, the operation of the operation type comprises a write operation, a read operation, or a combination of the write operation and the read operation;
the operation result comprises an operation result of sequentially executing the write operation on the at least two registers to be accessed, an operation result of sequentially executing the read operation on the at least two registers to be accessed, or an operation result of sequentially executing the combination operation on the at least two registers to be accessed according to a preset register operation sequence.
The functions of the functional units of the communication device provided in the above embodiment of the present invention may be implemented by the above method steps, and therefore, detailed working processes and beneficial effects of the units in the communication device of the transmission control protocol provided in the embodiment of the present invention are not described herein again.
Corresponding to the foregoing method, an embodiment of the present invention further provides a communication device for transmitting a control protocol, where as shown in fig. 9, the communication device includes: a receiving unit 910, an obtaining unit 920 and a sending unit 930;
a receiving unit 910, configured to receive a first access request packet or a second access request packet sent by a terminal that establishes a TCP (transmission control protocol) connection with the server to be accessed; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
an obtaining unit 920, configured to obtain a first access response packet of the first access request packet according to the addresses of the at least two registers to be accessed in the first access request packet and the corresponding operation types for operating the at least two registers to be accessed, where the first access response packet includes an operation result obtained by performing operations of the corresponding operation types on the registers to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request packet; or acquiring a second access response message of the second access request message according to the address of the register to be accessed of each access request message in the second access request message and the corresponding operation type for operating the second register to be accessed, wherein the second access response message comprises an operation result obtained by executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message;
a sending unit 930, configured to send the first access response packet or the second access response packet to the terminal.
The functions of the functional units of the communication device provided in the above embodiment of the present invention may be implemented by the above method steps, and therefore, detailed working processes and beneficial effects of the units in the communication device of the transmission control protocol provided in the embodiment of the present invention are not described herein again.
An embodiment of the present invention further provides an electronic device, as shown in fig. 10, including a processor 1010, a communication interface 1020, a memory 1030, and a communication bus 1040, where the processor 1010, the communication interface 1020, and the memory 1030 complete communication with each other through the communication bus 1040.
A memory 1030 for storing a computer program;
the processor 1010, when executing the program stored in the memory 1030, implements the following steps:
sending a first access request message or a second access request message to a server to be accessed which establishes Transmission Control Protocol (TCP) connection with the terminal; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
receiving a first access response message or a second access response message sent by the server to be accessed; the first access response message comprises an operation result obtained by the server to be accessed executing the operation of the corresponding operation type on the register to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; the second access response message includes an operation result obtained by the to-be-accessed server executing the operation of the corresponding operation type on the to-be-accessed register corresponding to the address of the to-be-accessed register in each access request message.
In an optional implementation, before sending the first access request packet or the second access request packet to the server to be accessed, which establishes a TCP (transmission control protocol) connection with the terminal, the method further includes:
determining a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed according to preset configuration information;
and generating a first access request message or a second access request message according to the server identifier of the server to be accessed, the addresses of at least two registers to be accessed in the server to be accessed and the corresponding operation types for operating the at least two registers to be accessed.
In an optional implementation, generating a first access request packet according to the server identifier of the server to be accessed, the addresses of two registers to be accessed in the server to be accessed, and the corresponding operation types for operating the two registers to be accessed includes:
combining the operation type and the address corresponding to each register to be accessed in the at least two registers to be accessed to obtain the data operation combination of each register to be accessed;
combining the data operations of the at least two registers to be accessed to form a group of data operation chains according to a preset register operation sequence;
and generating a first access request message according to the server identifier of the server to be accessed and the data operation chain.
In an alternative implementation, the operation of the operation type comprises a write operation, a read operation, or a combination of the write operation and the read operation;
the operation result comprises an operation result of sequentially executing the write operation on the at least two registers to be accessed, an operation result of sequentially executing the read operation on the at least two registers to be accessed, or an operation result of sequentially executing the combination operation on the at least two registers to be accessed according to a preset register operation sequence.
Or, the following steps are executed:
receiving a first access request message or a second access request message sent by a terminal establishing Transmission Control Protocol (TCP) connection with the server to be accessed; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
obtaining a first access response message of the first access request message according to the addresses of the at least two registers to be accessed in the first access request message and the corresponding operation types for operating the at least two registers to be accessed, wherein the first access response message comprises an operation result obtained by executing the corresponding operation types on the registers to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; or acquiring a second access response message of the second access request message according to the address of the register to be accessed of each access request message in the second access request message and the corresponding operation type for operating the second register to be accessed, wherein the second access response message comprises an operation result obtained by executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message;
and sending the first access response message or the second access response message to the terminal.
The aforementioned communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Since the implementation and the beneficial effects of the problem solving of each device of the electronic device in the above embodiment can be realized by referring to each step in the embodiment shown in fig. 3, detailed working processes and beneficial effects of the electronic device provided by the embodiment of the present invention are not described herein again.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to execute the communication method of the transmission control protocol according to any one of the above embodiments.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer causes the computer to perform the communication method of the transmission control protocol according to any one of the above embodiments.
As will be appreciated by one of skill in the art, the embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
It is apparent that those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalents, the embodiments of the present application are also intended to include such modifications and variations.

Claims (10)

1. A method of communicating a transmission control protocol, the method comprising:
the terminal sends a first access request message or a second access request message to a server to be accessed which establishes Transmission Control Protocol (TCP) connection with the terminal; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
receiving a first access response message or a second access response message sent by the server to be accessed; the first access response message comprises an operation result obtained by the server to be accessed executing the operation of the corresponding operation type on the register to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; the second access response message includes an operation result obtained by the to-be-accessed server executing the operation of the corresponding operation type on the to-be-accessed register corresponding to the address of the to-be-accessed register in each access request message.
2. The method of claim 1, wherein before sending the first access request message or the second access request message to a server to be accessed that establishes a Transmission Control Protocol (TCP) connection with the terminal, the method further comprises:
determining a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed according to preset configuration information;
and generating a first access request message or a second access request message according to the server identifier of the server to be accessed, the addresses of at least two registers to be accessed in the server to be accessed and the corresponding operation types for operating the at least two registers to be accessed.
3. The method of claim 2, wherein generating a first access request packet according to the server identifier of the server to be accessed, the addresses of two registers to be accessed in the server to be accessed, and the corresponding operation types for operating the two registers to be accessed comprises:
combining the operation type and the address corresponding to each register to be accessed in the at least two registers to be accessed to obtain the data operation combination of each register to be accessed;
combining the data operations of the at least two registers to be accessed to form a group of data operation chains according to a preset register operation sequence;
and generating a first access request message according to the server identifier of the server to be accessed and the data operation chain.
4. The method of claim 2, wherein the operation of the operation type comprises a write operation, a read operation, or a combination of the write operation and the read operation;
the operation result comprises an operation result of sequentially executing the write operation on the at least two registers to be accessed, an operation result of sequentially executing the read operation on the at least two registers to be accessed, or an operation result of sequentially executing the combination operation on the at least two registers to be accessed according to a preset register operation sequence.
5. A method of communicating a transmission control protocol, the method comprising:
the method comprises the steps that a server to be accessed receives a first access request message or a second access request message sent by a terminal which establishes Transmission Control Protocol (TCP) connection with the server to be accessed; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
obtaining a first access response message of the first access request message according to the addresses of the at least two registers to be accessed in the first access request message and the corresponding operation types for operating the at least two registers to be accessed, wherein the first access response message comprises an operation result obtained by executing the corresponding operation types on the registers to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; or acquiring a second access response message of the second access request message according to the address of the register to be accessed of each access request message in the second access request message and the corresponding operation type for operating the second register to be accessed, wherein the second access response message comprises an operation result obtained by executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message;
and sending the first access response message or the second access response message to the terminal.
6. A transmission control protocol communication apparatus, comprising: a transmitting unit and a receiving unit;
the sending unit is used for sending a first access request message or a second access request message to a server to be accessed which establishes Transmission Control Protocol (TCP) connection with the terminal; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
the receiving unit is used for receiving a first access response message or a second access response message sent by the server to be accessed; the first access response message comprises an operation result obtained by the server to be accessed executing the operation of the corresponding operation type on the register to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request message; the second access response message includes an operation result obtained by the to-be-accessed server executing the operation of the corresponding operation type on the to-be-accessed register corresponding to the address of the to-be-accessed register in each access request message.
7. The apparatus of claim 6, further comprising a determining unit and a generating unit;
the determining unit is configured to determine, according to preset configuration information, a server identifier of a server to be accessed, addresses of at least two registers to be accessed in the server to be accessed, and corresponding operation types for operating the at least two registers to be accessed;
the generating unit is configured to generate a first access request packet or a second access request packet according to the server identifier of the server to be accessed, the addresses of at least two registers to be accessed in the server to be accessed, and the corresponding operation types for operating the at least two registers to be accessed.
8. A transmission control protocol communication apparatus, comprising: the device comprises a receiving unit, an acquiring unit and a sending unit;
the receiving unit is used for receiving a first access request message or a second access request message sent by a terminal establishing Transmission Control Protocol (TCP) connection with the server to be accessed; the first access request message comprises a server identifier of the server to be accessed, addresses of at least two registers to be accessed in the server to be accessed and corresponding operation types for operating the at least two registers to be accessed, the second access request message comprises at least two access request messages, and each access request message comprises the server identifier of the server to be accessed, the address of one register to be accessed in the server to be accessed and the corresponding operation type for operating the register to be accessed;
the obtaining unit is configured to obtain a first access response packet of the first access request packet according to the addresses of the at least two registers to be accessed in the first access request packet and the corresponding operation types for operating the at least two registers to be accessed, where the first access response packet includes an operation result obtained by performing operations of the corresponding operation types on the registers to be accessed corresponding to the addresses of the at least two registers to be accessed in the first access request packet; or acquiring a second access response message of the second access request message according to the address of the register to be accessed of each access request message in the second access request message and the corresponding operation type for operating the second register to be accessed, wherein the second access response message comprises an operation result obtained by executing the operation of the corresponding operation type on the register to be accessed corresponding to the address of the register to be accessed in each access request message;
the sending unit is configured to send the first access response packet or the second access response packet to the terminal.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 4 or the method steps of claim 5 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-4 or the method steps of claim 5.
CN201910784985.4A 2019-08-23 2019-08-23 Communication method and device of transmission control protocol Active CN112422485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910784985.4A CN112422485B (en) 2019-08-23 2019-08-23 Communication method and device of transmission control protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910784985.4A CN112422485B (en) 2019-08-23 2019-08-23 Communication method and device of transmission control protocol

Publications (2)

Publication Number Publication Date
CN112422485A true CN112422485A (en) 2021-02-26
CN112422485B CN112422485B (en) 2023-05-26

Family

ID=74779807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910784985.4A Active CN112422485B (en) 2019-08-23 2019-08-23 Communication method and device of transmission control protocol

Country Status (1)

Country Link
CN (1) CN112422485B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179216A (en) * 2021-04-23 2021-07-27 北京物芯科技有限责任公司 Remote configuration method of register, computer equipment and storage medium
CN113778415A (en) * 2021-11-11 2021-12-10 深圳市越疆科技有限公司 ModBus communication script generation method and device based on graphical programming

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103081412A (en) * 2010-09-08 2013-05-01 株式会社日立产机系统 Programmable logic controller
CN103546467A (en) * 2013-10-23 2014-01-29 上海爱控自动化设备有限公司 Method for transmitting Modbus RTU protocol on TCP/IP network
CN103929439A (en) * 2014-05-07 2014-07-16 昆山华恒焊接股份有限公司 Data transmission method and MODBUS server
CN105527881A (en) * 2014-09-30 2016-04-27 上海安川电动机器有限公司 Command processing method and device
CN106330601A (en) * 2016-08-19 2017-01-11 北京匡恩网络科技有限责任公司 Test case generating method and device
WO2017212036A1 (en) * 2016-06-10 2017-12-14 Schneider Electric Industries Sas Method and system for providing proxy service in an industrial system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103081412A (en) * 2010-09-08 2013-05-01 株式会社日立产机系统 Programmable logic controller
CN103546467A (en) * 2013-10-23 2014-01-29 上海爱控自动化设备有限公司 Method for transmitting Modbus RTU protocol on TCP/IP network
CN103929439A (en) * 2014-05-07 2014-07-16 昆山华恒焊接股份有限公司 Data transmission method and MODBUS server
CN105527881A (en) * 2014-09-30 2016-04-27 上海安川电动机器有限公司 Command processing method and device
WO2017212036A1 (en) * 2016-06-10 2017-12-14 Schneider Electric Industries Sas Method and system for providing proxy service in an industrial system
CN106330601A (en) * 2016-08-19 2017-01-11 北京匡恩网络科技有限责任公司 Test case generating method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179216A (en) * 2021-04-23 2021-07-27 北京物芯科技有限责任公司 Remote configuration method of register, computer equipment and storage medium
CN113778415A (en) * 2021-11-11 2021-12-10 深圳市越疆科技有限公司 ModBus communication script generation method and device based on graphical programming

Also Published As

Publication number Publication date
CN112422485B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN108965484B (en) Internet of things data transmission method, system and terminal
CN105141603B (en) Communication data transmission method and system
US20230080588A1 (en) Mqtt protocol simulation method and simulation device
CN111464419B (en) Data transmission control method based on bus network communication
CN111163130A (en) Network service system and data transmission method thereof
CN110312283B (en) Information processing method and device
CN109743757B (en) Data processing method and device, wireless module and Internet of things equipment
CN102750249B (en) The method that host computer communicates with slave computer, Apparatus and system
CN112422485B (en) Communication method and device of transmission control protocol
CN105487937A (en) RDMA (Remote Direct Memory Access) implementation method and device
KR102303424B1 (en) Direct memory access control device for at least one processing unit having a random access memory
CN110048865B (en) Bus data transmission method and device, electronic equipment and storage medium
CN109120731B (en) Universal communication method, system and device
CN113490154B (en) Broadcast data transmission method, device, terminal equipment and storage medium
CN111857546A (en) Method, network adapter and computer program product for processing data
CN110659143B (en) Communication method and device between containers and electronic equipment
CN110808909B (en) Message processing method and device across virtual systems
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN109800202B (en) PCIE (peripheral component interface express) -based data transmission system, method and device
CN107454021B (en) Communication method and device
CN113779021A (en) Data processing method, device, computer system and readable storage medium
CN113157610B (en) Data storage method and device, storage medium and electronic device
CN104850517A (en) Method and apparatus for transmitting packet data using DMA
CN116226027B (en) Data transmission system, method, device, communication equipment and storage medium
CN113055350A (en) Data transmission method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210226

Assignee: Beijing Shuili Intelligent Building Technology Co.,Ltd.

Assignor: KYLAND TECHNOLOGY Co.,Ltd.

Contract record no.: X2022990000047

Denomination of invention: A communication method and device of transmission control protocol

License type: Common License

Record date: 20220121

EE01 Entry into force of recordation of patent licensing contract
GR01 Patent grant
GR01 Patent grant