CN114615313A - Data transmission method and device, computer equipment and readable storage medium - Google Patents

Data transmission method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN114615313A
CN114615313A CN202210220188.5A CN202210220188A CN114615313A CN 114615313 A CN114615313 A CN 114615313A CN 202210220188 A CN202210220188 A CN 202210220188A CN 114615313 A CN114615313 A CN 114615313A
Authority
CN
China
Prior art keywords
data
client
server
receiving
feedback information
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.)
Pending
Application number
CN202210220188.5A
Other languages
Chinese (zh)
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.)
Rootcloud Technology Co Ltd
Original Assignee
Rootcloud 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 Rootcloud Technology Co Ltd filed Critical Rootcloud Technology Co Ltd
Priority to CN202210220188.5A priority Critical patent/CN114615313A/en
Publication of CN114615313A publication Critical patent/CN114615313A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses a data transmission method, a data transmission device, computer equipment and a readable storage medium. The method is applied to a client, wherein the client comprises a first preset push subscription rule and a manufacturing execution system, and the method comprises the following steps: responding to the operation of the user based on the client, and sending a connection request to a server; receiving connection success feedback information sent by the server; sending first data to the server according to the first preset push subscription rule, wherein the first data is data of a manufacturing execution system; and receiving first success feedback information sent by the server. The data transmission method provided by the embodiment of the application can simply and quickly realize remote data interaction between the manufacturing execution system and the equipment under the conditions of improving the real-time performance of data and reducing the data transmission amount.

Description

Data transmission method and device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of data transmission, and in particular, to a data transmission method, an apparatus, a computer device, and a readable storage medium.
Background
In the prior art, a secondary development kit is provided by a device manufacturer for a Manufacturing Execution System (MES) mode or a local text file and database interaction mode to call data. On one hand, a secondary development kit provided by a device manufacturer has a large development amount and is seriously dependent on the device manufacturer, and can only be called locally, so that the problem of large development difficulty exists in remote calling; on the other hand, the local text file and data interaction mode has the problems of poor data real-time performance and large transmission data volume. Therefore, how to simply and quickly implement remote data interaction between a manufacturing execution system and equipment under the conditions of improving data real-time performance and reducing transmission data volume is a technical problem which needs to be solved at present.
Disclosure of Invention
One of the objectives of the present application is to provide a data transmission method, an apparatus, a computer device, and a readable storage medium, so as to solve the problem of how to simply and quickly implement remote data interaction between a manufacturing execution system and a device under the conditions of improving data real-time performance and reducing data transmission amount.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a client, where the client includes a first preset push subscription rule and a manufacturing execution system, and the method includes:
responding to the operation of the user based on the client, and sending a connection request to a server;
receiving connection success feedback information sent by the server;
sending first data to the server according to the first preset push subscription rule, wherein the first data is data of a manufacturing execution system;
and receiving first success feedback information sent by the server.
In an optional implementation manner, before receiving the connection success feedback information sent by the server, the method further includes:
receiving a verification identifier sent by the server, wherein the verification identifier comprises a first random number;
sending verification identification feedback information to the server, wherein the verification identification information comprises a second random number;
and sending the heartbeat packet data to the server.
In an optional embodiment, the client further includes a first preset receiving subscription rule, and the method further includes:
receiving second data sent by the server, wherein the second data comprises equipment information and product information;
and processing the second data according to the first preset receiving subscription rule, and sending second success feedback information to the server.
In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a server, where the server includes a second preset receiving subscription rule, and the method includes:
receiving a connection request sent by a client;
establishing a connection with the client;
sending feedback information of successful connection to the client;
receiving first data sent by the client, wherein the first data is data of a manufacturing execution system;
and processing the first data according to the second preset receiving subscription rule, and sending first success feedback information to the client.
In an optional implementation manner, the server includes a validation rule, and before sending the connection success feedback information to the client, the method further includes:
sending a verification identifier to the client, wherein the verification identifier comprises a first random number;
if verification identification feedback information is received within second preset time and the first random number is equal to a second random number, the verification is successful, wherein the verification identification information comprises the second random number;
and if the verification is successful and the heartbeat packet data sent by the client side is received within the first preset time, executing the step of sending the connection success feedback information to the client side.
In an optional implementation manner, the server further includes a second preset push subscription rule, and the method further includes:
sending second data to the client according to the second preset push subscription rule, wherein the second data comprises equipment information and product information;
and receiving second success feedback information sent by the client.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a client, where the client includes a first preset push subscription rule and a manufacturing execution system, and the apparatus includes:
the request sending module is used for responding to the operation of the user based on the client and sending a connection request to the server;
a connection success feedback information receiving module, configured to receive connection success feedback information sent by the server;
the data sending module is used for sending first data to the server according to the first preset push subscription rule, wherein the first data is data of a manufacturing execution system;
and the first success feedback information receiving module is used for receiving the first success feedback information sent by the server.
In a fourth aspect, an embodiment of the present application provides a data transmission device, which is applied to a server, where the server includes a second preset receiving subscription rule, and the device includes:
the request receiving module is used for receiving a connection request sent by a client;
the establishing module is used for establishing connection with the client;
the connection success feedback information sending module is used for sending connection success feedback information to the client;
the first data receiving module is used for receiving first data sent by the client, wherein the first data is data of a manufacturing execution system;
and the processing module is used for processing the first data according to the second preset receiving subscription rule and sending first success feedback information to the client.
In a fifth aspect, an embodiment of the present application provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, implements the data transmission method according to the first aspect or the data transmission method according to the second aspect.
In a sixth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data transmission method according to the first aspect or the data transmission method according to the second aspect.
The data transmission method, the data transmission device, the computer equipment and the readable storage medium are provided by the embodiment of the application. The method is applied to a client, wherein the client comprises a first preset push subscription rule and a manufacturing execution system, and the method comprises the following steps: responding to the operation of the user based on the client, and sending a connection request to a server; receiving connection success feedback information sent by the server; sending first data to the server according to the first preset push subscription rule, wherein the first data is data of a manufacturing execution system; and receiving first success feedback information sent by the client. According to the data transmission method provided by the embodiment of the application, the first data are sent to the server side according to the first preset push subscription rule, so that the remote data interaction between the manufacturing execution system and the equipment can be simply and quickly realized while the data instantaneity is improved and the data transmission amount is reduced.
Drawings
To more clearly illustrate the technical solutions of the present application, the drawings required for use in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of the present application. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic block diagram illustrating a flow of steps of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic block diagram illustrating a flow of steps of another data transmission method according to an embodiment of the present application;
fig. 3 is a schematic block diagram illustrating a structure of a data transmission apparatus according to an embodiment of the present application;
fig. 4 is a block diagram schematically illustrating a structure of another data transmission apparatus according to an embodiment of the present application.
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.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present application, are intended to indicate only specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present application belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments.
Example 1
Referring to fig. 1, fig. 1 is a schematic block diagram illustrating a flow of steps of a data transmission method according to an embodiment of the present application.
As shown in fig. 1, a data transmission method provided in an embodiment of the present application may be applied to a client, where the client includes a first preset push subscription rule and a Manufacturing Execution System (MES), and the method includes S110 to S140.
S110: and responding to the operation of the user based on the client, and sending a connection request to the server.
In this embodiment, the user clicks the establish connection option at the client. And the client responds to the click operation of the user on the connection establishment option and sends a connection request to the server. The server is provided with equipment.
S120: and receiving the connection success feedback information sent by the server.
In this embodiment, after the server establishes the connection with the client, the server sends the connection success feedback information to the client. After receiving the connection success feedback information, the client performs step 130.
In an optional implementation manner, in order to determine whether the client is connected to the server, before the receiving connection success feedback information sent by the server, the method further includes:
receiving a verification identifier sent by the server, wherein the verification identifier comprises a first random number;
sending verification identification feedback information to the server, wherein the verification identification information comprises a second random number;
and sending the heartbeat packet data to the server.
In this embodiment, the client determines whether the client is connected to the server by sending heartbeat packet data at regular time. The verification identification further comprises the name of the server side, and the verification identification information further comprises the name of the client side.
S130: and sending first data to the server according to the first preset push subscription rule, wherein the first data is data of a manufacturing execution system.
In this embodiment, the first preset push subscription rule includes a topic of subscription push, a subscription data timeout time, a subscription data set name, a maximum number of subscription data sets, and a subscription trigger mode. The trigger modes of the subscription include a value change mode and a timed transmission mode. When the subscribed trigger mode is the value change mode, the client clears the first data before pushing the first data to the server every time, and adds the changed data value and the corresponding data name into the first data. When the subscribed trigger mode is the timed transmission mode, the client does not empty the first data before pushing the first data to the server every time, and only replaces the corresponding value in the first data with the changed data value.
Preferably, the first data is a set including a data value and a data name.
Specifically, the data of the manufacturing execution system includes product information, product process information, and product quality information. And the server acquires the product information and the product process information from the client and then is used for production equipment.
Further, before the first data is sent to the server according to the first preset push subscription rule, the client generates a first session identifier.
It can be understood that, by the first preset push subscription rule, only changed data is sent to the server, so that the real-time performance of the data is improved, and the data transmission amount is reduced.
S140: and receiving first success feedback information sent by the server.
In this embodiment, the first data further includes a first session identifier, and the first successful feedback information includes the first session identifier. And the client receives the first success feedback information, which indicates that the first data is successfully sent to the server, namely, the remote data interaction between the manufacturing execution system and the equipment is realized.
In an optional implementation manner, if the first successful feedback information sent by the server is not received within a third preset time, the client repeatedly sends the first data to the server, and if the first successful feedback information sent by the server is not received within a fourth preset time, the client disconnects from the server, so that the safety and integrity of data transmission are ensured, and the problem that the client crashes due to other interference or malicious attack is prevented.
In an optional embodiment, the client further includes a first preset receiving subscription rule, and the method further includes:
receiving second data sent by the server, wherein the second data comprises equipment information and product information;
and processing the second data according to the first preset receiving subscription rule, and sending second success feedback information to the server.
In this embodiment, the first preset receiving subscription rule includes that the client compares the received second data with its own data, and if the own data has a corresponding update value in the second data, the data is updated; and if the data value of the user does not have the corresponding updating value in the second data, deleting the data name corresponding to the data value. The processed second data is stored in the client in a set form comprising data names and data values, and the second data is convenient to be called by subsequent quick query.
It can be understood that, after the client acquires the second data including the device information and the product information from the server, the quality of the device and the product can be detected through the second data.
The data transmission method provided by the embodiment of the application is applied to a client, the client comprises a first preset push subscription rule and a manufacturing execution system, and the method comprises the following steps: responding to the operation of the user based on the client, and sending a connection request to a server; receiving connection success feedback information sent by the server; sending first data to the server according to the first preset push subscription rule, wherein the first data is data of a manufacturing execution system; and receiving first success feedback information sent by the client. According to the data transmission method provided by the embodiment of the application, the first data are sent to the server side according to the first preset push subscription rule, so that the remote data interaction between the manufacturing execution system and the equipment can be simply and quickly realized while the data instantaneity is improved and the data transmission amount is reduced.
Example 2
Referring to fig. 2, fig. 2 is a schematic block diagram illustrating a flow of steps of another data transmission method according to an embodiment of the present application.
As shown in fig. 1, another data transmission method provided in this embodiment of the present application may be applied to a server, where the server includes a second preset receiving subscription rule, and the method includes S210 to S250.
S210: and receiving a connection request sent by the client.
In this embodiment, the server is provided with a device, and the client includes a manufacturing execution system.
S220: and establishing connection with the client.
In this embodiment, after receiving the connection request sent by the client, the server establishes a connection with the client, which lays a foundation for subsequent data transmission.
S230: and sending connection success feedback information to the client.
In this embodiment, the server sends a connection success feedback message to the client, so that the client sends the first data to the server.
In an optional implementation manner, in order to authenticate the client and ensure data security, the server includes an authentication rule, and before sending the connection success feedback information to the client, the method further includes:
sending a verification identifier to the client, wherein the verification identifier comprises a first random number;
and if verification identification feedback information is received within second preset time and the first random number is equal to a second random number, the verification is successful, wherein the verification identification information comprises the second random number.
And if the verification is successful and the heartbeat packet data sent by the client side is received within the first preset time, executing the step of sending the connection success feedback information to the client side.
Specifically, the verification identifier further includes a name of the server, and the verification identifier information further includes a name of the client. If the verification is successful and the heartbeat packet data sent by the client side is received within the first preset time, the client side is allowed to have the authority of acquiring the first data, and the client side and the server are in a connection state. At this time, the server sends a connection success feedback message to the client.
Further, if the verification fails, it is indicated that the client does not have the authority to acquire the first data, and at this time, the server disconnects from the client.
Further, if the verification identifier feedback information is not received within the second preset time, or the first random number is not equal to the second random number, the verification fails, and the server disconnects from the client.
S240: receiving first data sent by the client, wherein the first data is data of a manufacturing execution system.
Preferably, the first data is a set including a data value and a data name.
Specifically, the data of the manufacturing execution system includes product information, product process information, and product quality information. And the server side acquires the product information and the product process information from the client side and then is used for producing equipment.
S250: and processing the first data according to the second preset receiving subscription rule, and sending first success feedback information to the client.
In this embodiment, the second preset receiving subscription rule includes that the server compares the received first data with the data of the server, and if the data of the server has a corresponding update value in the first data, the data is updated; and if the data value of the user does not have the corresponding updating value in the first data, deleting the data name corresponding to the data value. The processed first data is stored in the server in a set form comprising data names and data values, and the first data is conveniently and quickly searched and called in the follow-up process.
In an optional implementation manner, the server further includes a second preset push subscription rule, and the method further includes:
sending second data to the client according to the second preset push subscription rule, wherein the second data comprises equipment information and product information;
and receiving second success feedback information sent by the client.
In this embodiment, the second preset push subscription rule includes a topic of subscription push, a subscription data timeout time, a subscription data set name, a maximum number of subscription data sets, and a subscription trigger mode. The trigger modes of the subscription include a value change mode and a timed transmission mode. When the subscribed trigger mode is the value change mode, the client clears the second data before pushing the second data to the server every time, and adds the changed data value and the corresponding data name into the second data. When the subscribed trigger mode is the timed transmission mode, the client does not empty the second data before pushing the second data to the server every time, and only replaces the corresponding value in the second data with the changed data value.
Further, before sending the second data to the client according to the second preset push subscription rule, the server generates a second session identifier. The second data further includes a second session identification, and the second success feedback information includes the second session identification.
It can be understood that after the server sends the second data including the device information and the product information to the client, the client can detect the quality of the device and the product through the second data.
In an optional implementation manner, if second success feedback information sent by the client is not received within a fifth preset time, the server repeatedly sends the second data to the client, and if the second success feedback information sent by the client is not received within a sixth preset time, the server disconnects the connection with the client, so that safety and integrity of data transmission are ensured, and the problem that the client crashes due to other interference or malicious attack is prevented.
The data transmission method provided by the embodiment of the application is applied to a server, the server comprises a second preset receiving subscription rule, and the method comprises the following steps: receiving a connection request sent by a client; establishing a connection with the client; sending feedback information of successful connection to the client; receiving first data sent by the client, wherein the first data is data of a manufacturing execution system; and processing the first data according to the second preset receiving subscription rule, and sending first success feedback information to the client. According to the data transmission method provided by the embodiment of the application, the first data are processed according to the second preset receiving subscription rule, and the processed first data are stored in the server in a set form comprising data names and data values, so that the first data can be conveniently and quickly searched and called subsequently.
Example 3
Referring to fig. 3, fig. 3 is a block diagram schematically illustrating a structure of a data transmission apparatus according to an embodiment of the present application. The data transmission apparatus 500 may be applied to a client including a first preset push subscription rule and a manufacturing execution system, and the data transmission apparatus 500 includes:
a request sending module 510, configured to send a connection request to a server in response to an operation of a user based on the client;
a connection success feedback information receiving module 520, configured to receive connection success feedback information sent by the server;
a data sending module 530, configured to send first data to the server according to the first preset push subscription rule, where the first data is data of a manufacturing execution system;
the first successful feedback information receiving module 540 is configured to receive the first successful feedback information sent by the server.
The above device is used for executing the method provided in embodiment 1, and the implementation principle and technical effect are similar, which are not described herein again.
Example 4
Referring to fig. 4, fig. 4 is a block diagram schematically illustrating a structure of a data transmission apparatus according to an embodiment of the present application. The data transmission apparatus 600 may be applied to a server, where the server includes a second preset receiving subscription rule, and the data transmission apparatus 600 includes:
a request receiving module 610, configured to receive a connection request sent by a client;
an establishing module 620, configured to establish a connection with the client;
a connection success feedback information sending module 630, configured to send connection success feedback information to the client;
a first data receiving module 640, configured to receive first data sent by the client, where the first data is data of a manufacturing execution system;
the processing module 650 is configured to process the first data according to the second preset receiving subscription rule, and send first success feedback information to the client.
The above device is used for executing the method provided in embodiment 2, and the implementation principle and technical effect are similar, and are not described herein again.
The embodiment of the present application further discloses a computer device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, implements the data transmission method according to embodiment 1 or the data transmission method according to embodiment 2.
An embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the data transmission method according to embodiment 1 or the data transmission method according to embodiment 2 is implemented.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A data transmission method is applied to a client, wherein the client comprises a first preset push subscription rule and a manufacturing execution system, and the method comprises the following steps:
responding to the operation of the user based on the client, and sending a connection request to a server;
receiving connection success feedback information sent by the server;
sending first data to the server according to the first preset push subscription rule, wherein the first data is data of a manufacturing execution system;
and receiving first success feedback information sent by the server.
2. The method according to claim 1, wherein before receiving the connection success feedback information sent by the server, the method further comprises:
receiving a verification identifier sent by the server, wherein the verification identifier comprises a first random number;
sending verification identification feedback information to the server, wherein the verification identification information comprises a second random number;
and sending the heartbeat packet data to the server.
3. The method of claim 1, wherein the client further comprises a first preset receiving subscription rule, and wherein the method further comprises:
receiving second data sent by the server, wherein the second data comprises equipment information and product information;
and processing the second data according to the first preset receiving subscription rule, and sending second success feedback information to the server.
4. A data transmission method is applied to a server, wherein the server comprises a second preset receiving subscription rule, and the method comprises the following steps:
receiving a connection request sent by a client;
establishing a connection with the client;
sending feedback information of successful connection to the client;
receiving first data sent by the client, wherein the first data is data of a manufacturing execution system;
and processing the first data according to the second preset receiving subscription rule, and sending first success feedback information to the client.
5. The method of claim 4, wherein the server includes a validation rule, and before sending the connection success feedback information to the client, the method further comprises:
sending a verification identifier to the client, wherein the verification identifier comprises a first random number;
if verification identification feedback information is received within second preset time and the first random number is equal to a second random number, the verification is successful, wherein the verification identification information comprises the second random number; and if the verification is successful and the heartbeat packet data sent by the client side is received within the first preset time, executing the step of sending the connection success feedback information to the client side.
6. The method of claim 4, wherein the server further comprises a second preset push subscription rule, and wherein the method further comprises:
sending second data to the client according to the second preset push subscription rule, wherein the second data comprises equipment information and product information;
and receiving second success feedback information sent by the client.
7. A data transmission apparatus, applied to a client including a first preset push subscription rule and a manufacturing execution system, the apparatus comprising:
the request sending module is used for responding to the operation of the user based on the client and sending a connection request to the server;
a connection success feedback information receiving module, configured to receive connection success feedback information sent by the server;
the data sending module is used for sending first data to the server according to the first preset push subscription rule, wherein the first data is data of a manufacturing execution system;
and the first success feedback information receiving module is used for receiving the first success feedback information sent by the server.
8. A data transmission apparatus, applied to a server, where the server includes a second preset receiving subscription rule, the apparatus includes:
the request receiving module is used for receiving a connection request sent by a client;
the establishing module is used for establishing connection with the client;
the connection success feedback information sending module is used for sending connection success feedback information to the client;
the first data receiving module is used for receiving first data sent by the client, wherein the first data is data of a manufacturing execution system;
and the processing module is used for processing the first data according to the second preset receiving subscription rule and sending first success feedback information to the client.
9. A computer device, characterized in that the computer device comprises a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the data transmission method of any one of claims 1 to 3 or the data transmission method of any one of claims 4 to 6.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the data transmission method according to any one of claims 1 to 3 or the data transmission method according to any one of claims 4 to 6.
CN202210220188.5A 2022-03-08 2022-03-08 Data transmission method and device, computer equipment and readable storage medium Pending CN114615313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210220188.5A CN114615313A (en) 2022-03-08 2022-03-08 Data transmission method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210220188.5A CN114615313A (en) 2022-03-08 2022-03-08 Data transmission method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114615313A true CN114615313A (en) 2022-06-10

Family

ID=81860622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210220188.5A Pending CN114615313A (en) 2022-03-08 2022-03-08 Data transmission method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114615313A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625722A (en) * 2002-04-30 2005-06-08 先进微装置公司 Agent reactive scheduling in an automated manufacturing environment
CN101790073A (en) * 2009-01-23 2010-07-28 北京永新视博数字电视技术有限公司 Method for establishing safety communication channel and communication device thereof
CN111031083A (en) * 2018-10-09 2020-04-17 中国科学院沈阳自动化研究所 Production data acquisition method in dual subscription mode
CN112019566A (en) * 2020-09-25 2020-12-01 中国农业银行股份有限公司 Data transmission method, server, client and computer storage medium
CN113641509A (en) * 2020-05-11 2021-11-12 长城汽车股份有限公司 Internet of things data processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625722A (en) * 2002-04-30 2005-06-08 先进微装置公司 Agent reactive scheduling in an automated manufacturing environment
CN101790073A (en) * 2009-01-23 2010-07-28 北京永新视博数字电视技术有限公司 Method for establishing safety communication channel and communication device thereof
CN111031083A (en) * 2018-10-09 2020-04-17 中国科学院沈阳自动化研究所 Production data acquisition method in dual subscription mode
CN113641509A (en) * 2020-05-11 2021-11-12 长城汽车股份有限公司 Internet of things data processing method and device
CN112019566A (en) * 2020-09-25 2020-12-01 中国农业银行股份有限公司 Data transmission method, server, client and computer storage medium

Similar Documents

Publication Publication Date Title
JP4122341B2 (en) System and method for session resetting between client terminal device and server
CN109688186B (en) Data interaction method, device, equipment and readable storage medium
CN108259618B (en) Synchronous data interaction processing method and device
CN111641554B (en) Message processing method and device and computer readable storage medium
CN104796406A (en) Method and device for identifying application
CN110674376A (en) Interface parameter checking method, device, equipment and computer readable storage medium
CN111835772B (en) User identity authentication method and device based on edge calculation
CA3064797A1 (en) Identity verification method and apparatus, and electronic device
CN107172112B (en) Computer file transmission method and device
CN113452770B (en) Data synchronization method, device, computer equipment and storage medium
CN112087475A (en) Message pushing method and device for cloud platform component application and message server
CN113342541A (en) Message consumption method and device, computing equipment and storage medium
CN110417615B (en) Check switch control method, device and equipment and computer readable storage medium
CN107425994B (en) Method, terminal and server for realizing remote parameter management
CN114615313A (en) Data transmission method and device, computer equipment and readable storage medium
CN114500237B (en) Communication method and system
CN113098978B (en) Data transmission method, device and medium
CN110011992B (en) System login method and electronic equipment
CN115134405B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN110460586B (en) In-vehicle node communication method, device, equipment and storage medium
CN117156474B (en) Remote intelligent operation and maintenance system and operation and maintenance method thereof
CN112769824B (en) Information transmission state updating method, terminal, device and storage medium
CN111918224B (en) Short message verification method, device, equipment and storage medium
CN113297569B (en) Attack processing method, equipment and storage medium based on Hash diagram
CN109861796B (en) Communication connection method, client, cloud 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