CN112527536B - MES data interaction control method and device, electronic equipment and storage medium - Google Patents

MES data interaction control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112527536B
CN112527536B CN202011625503.XA CN202011625503A CN112527536B CN 112527536 B CN112527536 B CN 112527536B CN 202011625503 A CN202011625503 A CN 202011625503A CN 112527536 B CN112527536 B CN 112527536B
Authority
CN
China
Prior art keywords
data
information
sender
receiver
sent
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.)
Active
Application number
CN202011625503.XA
Other languages
Chinese (zh)
Other versions
CN112527536A (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.)
Guangdong Xinxing Technology Co ltd
Original Assignee
Guangdong Xinxing 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 Guangdong Xinxing Technology Co ltd filed Critical Guangdong Xinxing Technology Co ltd
Priority to CN202011625503.XA priority Critical patent/CN112527536B/en
Publication of CN112527536A publication Critical patent/CN112527536A/en
Application granted granted Critical
Publication of CN112527536B publication Critical patent/CN112527536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Mining

Abstract

The invention provides an MES data interaction control method, a device, electronic equipment and a storage medium, which receive sending request information sent by a sender, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent; acquiring data interface format information of the sender from a server according to the system identifier of the sender; acquiring data interface format information of the receiver from a server according to the system identifier of the receiver; analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver; sending the structured data to be sent to the receiver; therefore, data interaction of the systems can be realized without unifying the data interface formats of the systems.

Description

MES data interaction control method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of production data management, in particular to a Manufacturing Execution System (MES) data interaction control method, a MES data interaction control device, electronic equipment and a storage medium.
Background
Manufacturing Execution System (MES) is a production information management system facing a manufacturing enterprise workshop execution layer. The MES can provide management modules for enterprises, such as manufacturing data management, planning scheduling management, production scheduling management, inventory management, quality management, human resource management, work center/equipment management, tool and tool management, purchasing management, cost management, project bulletin board management, production process control, bottom layer data integration analysis, upper layer data integration decomposition and the like, and create a solid, reliable, comprehensive and feasible manufacturing cooperative management platform for the enterprises.
As shown in fig. 4, the MES is located at an intermediate layer in the IT architecture of the manufacturing enterprise, and has close relation with other production management systems (e.g., ERP, WMS, PDM, CRM, field devices, field acquisition systems, etc.) in the enterprise, and the MES functions as an information integrator in the whole enterprise information management to acquire and provide real-time production data for other management systems, so how to effectively perform data intercommunication and data sharing with other information systems of the enterprise during the application implementation process of the MES is particularly important.
Currently, when an MES and other production management systems are networked, each production management system is generally required to perform data interaction with the MES according to a uniform data interface format, so that when an enterprise needs to use the MES and the other production management systems for networking to form a large management system, data interface transformation is often required to be performed on each production management system, the implementation cost is improved, and the implementation efficiency is reduced; after networking, each production management system cannot change the data interface format according to the self requirement (if the data interface format needs to be changed, all the systems can be changed together, the cost is high, the time consumption is long), and upgrading and reconstruction of each production management system are not facilitated.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, embodiments of the present application provide an MES data interaction control method, an MES data interaction control device, an electronic device, and a storage medium, which can implement data interaction of each system without unifying data interface formats of each system.
In a first aspect, an embodiment of the present application provides an MES data interaction control method, applied to an MES system, including the steps of:
A1. receiving sending request information sent by a sender, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent;
A2. acquiring data interface format information of the sender from a server according to the system identifier of the sender;
A3. acquiring data interface format information of the receiver from a server according to the system identifier of the receiver;
A4. analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver;
A5. and sending the structured data to be sent to the receiver.
In the MES data interaction control method, the system identifier is an industrial internet identifier; the server is an industrial internet identification analysis node.
In the MES data interaction control method, step a2 includes:
acquiring first associated information from a server according to the system identifier of the sender;
extracting the interface identification of the sender from the first associated information;
and acquiring the data interface format information of the sender from a server according to the interface identifier of the sender.
In the MES data interaction control method, step a3 includes:
acquiring second associated information from a server according to the system identifier of the receiver;
extracting the interface identification of the receiver from the second associated information;
and acquiring the data interface format information of the receiver from a server according to the interface identifier of the receiver.
In the MES data interaction control method, the request information further includes type information of data to be sent;
step a2 includes: acquiring data interface format information of the sender according to the type information of the data to be sent;
and/or the presence of a gas in the gas,
step a3 includes: and acquiring the data interface format information of the receiver according to the type information of the data to be sent.
In the MES data interaction control method, before step a4, the method further includes:
acquiring an encrypted public key of the sender from a server according to the system identifier of the sender;
and decrypting the data to be sent according to the encrypted public key of the sender.
In the MES data interaction control method, after the step a4, the method further includes:
acquiring an encrypted public key of the receiver from a server according to the system identifier of the receiver;
and encrypting the structured data to be sent according to the encryption public key of the receiver.
In a second aspect, an embodiment of the present application provides an MES data interaction control device, which is applied to an MES system, and includes:
the receiving module is used for receiving sending request information sent by a sender, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent;
the first acquisition module is used for acquiring the data interface format information of the sender from a server according to the system identifier of the sender;
the second acquisition module is used for acquiring the data interface format information of the receiver from the server according to the system identifier of the receiver;
the data processing module is used for analyzing the data to be sent according to the data interface format of the sender and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver;
and the sending module is used for sending the structured data to be sent to the receiver.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the steps of the MES data interaction control method by calling the computer program stored in the memory.
In a fourth aspect, embodiments of the present application provide a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, executes the steps of the MES data interaction control method as described above.
Has the advantages that:
according to the MES data interaction control method, the MES data interaction control device, the MES data interaction control electronic equipment and the MES data interaction control storage medium, sending request information sent by a sender is received, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent; acquiring data interface format information of the sender from a server according to the system identifier of the sender; acquiring data interface format information of the receiver from a server according to the system identifier of the receiver; analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver; sending the structured data to be sent to the receiver; therefore, data interaction of the systems can be realized without unifying the data interface formats of the systems.
Drawings
Fig. 1 is a flowchart of a method for generating a warehousing code according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a warehousing code generation device provided in an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
FIG. 4 is a diagram of the connection between the MES system and other production management systems.
Fig. 5 is a diagram of exemplary data interface format information.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The following disclosure provides embodiments or examples for implementing different configurations of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but those of ordinary skill in the art will recognize applications of other processes and/or uses of other materials.
Referring to fig. 1, an MES data interaction control method provided in an embodiment of the present application is applied to an MES system, and includes the steps of:
A1. receiving sending request information sent by a sender, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent;
A2. acquiring data interface format information of a sender from a server according to a system identifier of the sender;
A3. acquiring data interface format information of a receiver from a server according to a system identifier of the receiver;
A4. analyzing the data to be sent according to the data interface format of a sender, and then performing structured processing on the data to be sent according to the data interface format of a receiver;
A5. and sending the structured data to be sent to a receiver.
In practical applications, the sender may be any one of production management systems (such as, but not limited to, an enterprise resource planning system, a supply chain management system, a life cycle management system, a data acquisition monitoring system, an office automation system, a customer relationship management system, a warehouse management system, a product data management system, etc.) networked with the MES system, and the receiver may be any one of other production management systems networked with the MES system; the production management system connected with the MES system in a networking way can comprise a production management system inside an enterprise and can also comprise a system outside the enterprise; each production management system uploads the associated information containing the own data interface format information to the server in advance, and an association relation is established between one system identifier (belonging to a unique identifier) and the associated information in the server, so that the MES system can access the server according to the corresponding system identifier and acquire the corresponding associated information, thereby acquiring the data interface format information of the corresponding production management system according to the associated information, finally analyzing the data to be sent according to the data interface format of a sender and carrying out structuralization processing on the data to be sent again according to the data interface format of a receiver, so that the data format of the structuralized data to be sent conforms to the data interface format requirement of the receiver, and thus data interaction between the two production management systems is realized. Therefore, data interaction of the production management systems can be realized without unifying the data interface formats of the production management systems, data interface reconstruction of the production management systems is not needed, the networking implementation cost of the production management systems and the MES system is reduced, and the implementation efficiency is improved; moreover, when a certain production management system needs to change the data interface format (for example, when the system needs to be upgraded and modified, and the data interface format needs to be changed correspondingly), only the specific content of the associated information associated with the system identifier in the server needs to be modified, the system identifier does not need to be changed, and other systems do not need to be changed correspondingly, which is beneficial to reducing the cost of upgrading and modifying each production management system.
In some embodiments, the system identifier is an industrial internet identifier; the server identifies and analyzes nodes (such as secondary nodes and enterprise nodes) for the industrial Internet. In this embodiment, the system identifier is an identifier that meets the requirement of the corresponding server for the industrial internet identifier resolution node, and generally includes a prefix and a suffix, and the prefix and the suffix are separated by a match "/", where the prefix is a unique identifier assigned by the industrial internet identifier resolution node, and the suffix can be defined by the user. The enterprise may use the assigned prefix and the different suffixes to form different industrial internet identities, which may be used as system identities or other identities (e.g., interface identities) for the production management systems.
In fact, the server is not limited to be an industrial internet identifier resolution node, and may be a server established by an enterprise; because the industrial internet identification analysis system is a mature system with a large influence range, the industrial internet identification analysis node is used as the server, so that the implementation cost can be reduced, and the data interconnection and sharing between enterprises and other enterprises can be realized more conveniently.
In some embodiments, the sender can directly write the data interface format information of the sender as the information item of the associated information of the system identifier in the associated information in advance, so that the MES system can directly extract the data interface format information after acquiring the associated information; thus, in this embodiment, step a2 includes:
A201. acquiring first associated information from a server according to a system identifier of a sender;
A202. and extracting the data interface format information of the sender from the first associated information.
In other embodiments, the sender may generate an interface identifier in the server in advance (if the server is an industrial internet identifier parsing node, the interface identifier is an industrial internet identifier), store the data interface format information of the sender itself in the server as the associated information of the interface identifier, and then give the interface identifier in the associated information of the system identifier; after the MES system acquires the associated information according to the system identification, the MES system can extract the interface identification from the associated information, and further acquire corresponding data interface format information in the server according to the interface identification; thus, in this embodiment, step a2 includes:
A203. acquiring first associated information from a server according to a system identifier of a sender;
A204. extracting an interface identifier of a sender from the first associated information;
A205. and acquiring the data interface format information of the sender from the server according to the interface identifier of the sender.
In some embodiments, the receiving party can directly write the data interface format information of the receiving party in the associated information in advance as the information item of the associated information of the system identifier of the receiving party, so that the MES system can directly extract the data interface format information after acquiring the associated information; thus, in this embodiment, step a3 includes:
A301. acquiring second associated information from the server according to the system identifier of the receiver;
A302. and extracting the data interface format information of the receiver from the second associated information.
In other embodiments, the receiver may generate an interface identifier in the server in advance (if the server is an industrial internet identifier parsing node, the interface identifier is an industrial internet identifier), store the data interface format information of the receiver itself in the server as the associated information of the interface identifier, and then give the interface identifier in the associated information of the system identifier; after the MES system acquires the associated information according to the system identification, the MES system can extract the interface identification from the associated information, and further acquire corresponding data interface format information in the server according to the interface identification; thus, in this embodiment, step a3 includes:
A303. acquiring second associated information from the server according to the system identifier of the receiver;
A304. extracting the interface identification of the receiver from the second associated information;
A305. and acquiring the data interface format information of the receiver from the server according to the interface identifier of the receiver.
In fact, the data interface format of each production management system is not limited to one, and sometimes, the same production management system may set multiple data interface formats (for example, a data interface format for transmitting document data, a data interface format for transmitting video data, a data interface format for transmitting audio data, and the like, but not limited thereto), and select a corresponding data interface format according to a specific type of data to be transmitted for transmission, and if the data interface formats are multiple, if the data interface format information is directly written in the associated information as an information item of the associated information of the system identifier thereof, when it is necessary to change one of the data interface formats, it is easy to change another data interface format by an operation mistake: for example, a data interface format information shown in fig. 5 includes eight items of information, i.e., an interface function introduction item, an interface call address item, an interface name item, an entry parameter item, an Iinputdata data packet format item, an Outputdata packet format item, an exception code description item, and a call mode item, where if the data interface format information is directly written in the associated information as an information item of associated information of a system identifier, eight information items are added to the associated information of the system identifier every time there is one more data interface format information, and when one of the data interface formats is modified, an error is very likely to occur. And the interface identification is written in the associated information as the information item of the associated information of the system identification, when a certain data interface format needs to be changed, the content of the associated information of the system identification does not need to be changed, and only the data interface format information associated with the corresponding interface identification needs to be changed independently, which is beneficial to reducing the probability of changing errors.
As previously mentioned, there may be more than one data interface format for each production management system, and thus, in some preferred embodiments, the request information also includes type information of the data to be sent; thus, it is possible to prevent the occurrence of,
step a2 includes: acquiring data interface format information of a sender according to the type information of data to be sent (namely, step A202 comprises extracting the data interface format information of the sender from first associated information according to the type information of the data to be sent, or step A204 comprises extracting an interface identifier of the sender from the first associated information according to the type information of the data to be sent);
and/or the presence of a gas in the atmosphere,
step a3 includes: and acquiring the data interface format information of the receiver according to the type information of the data to be sent (namely step A302 comprises extracting the data interface format information of the receiver from the second associated information according to the type information of the data to be sent, or step A304 comprises extracting the interface identifier of the receiver from the second associated information according to the type information of the data to be sent).
In the associated information of the system identifier, an interface name information item may be added on the front side of each piece of data interface format information or interface identifier, and the content of the interface name information item may include at least one of chinese characters, english letters, numbers, and special symbols (for example, the name information item in the data interface format for transmitting document data is "interface 1", the name information item in the data interface format for transmitting video data is "interface 2", the name information item in the data interface format for transmitting audio data is "interface 3", and the like), so that the type information of the data to be transmitted included in the request information is corresponding interface name information; when the MES system receives the request information, it extracts the interface name information from it and obtains the data interface format information with the interface name matching with the interface name information in step A2 and/or step A3 (directly extracts the corresponding data interface format information from the associated information of the system identifier; or extracts the corresponding interface identifier from the associated information of the system identifier and obtains the data interface format information of the receiver from the server according to the interface identifier).
In order to ensure the security of data transmission, encrypted transmission may be performed on data to be sent, so that in some preferred embodiments, before step a4, the method further includes:
A6. acquiring an encrypted public key of a sender from a server according to a system identifier of the sender;
A7. and decrypting the data to be transmitted according to the encrypted public key of the transmitter.
The system identifier of the sender includes an encrypted public key of the sender, the sender encrypts data to be sent according to the encrypted public key and a preset encryption method before sending the data to be sent, and a specific encryption method can be set according to actual needs, which is not limited herein. Thus, step a6 includes: acquiring first associated information from a server according to a system identifier of a sender; an encrypted public key of the sender is extracted from the first association information. Under the condition of keeping the encryption method unchanged, the sender can change the encryption public key at any time according to the requirement, and the data transmission between the sender and the MES system is not influenced. In fact, the encrypted public key in the first association information may also be encrypted, so that step a6 further includes: decrypting the encrypted public key of the sender extracted from the first associated information; the decryption processing mode can be set according to actual needs.
In order to ensure the security of data transmission, encrypted transmission may be performed on data to be sent, so that in some preferred embodiments, after step a4, the method further includes:
A8. acquiring an encrypted public key of a receiver from a server according to a system identifier of the receiver;
A9. and encrypting the structured data to be sent according to the encryption public key of the receiver.
The association information of the system identifier of the receiver includes an encrypted public key of the sender, the MES system encrypts the data to be sent according to the encrypted public key and a preset encryption method (the encrypted public key and the preset encryption method may be different from or the same as the sender) before sending the data to be sent, and a specific encryption method may be set according to actual needs, which is not limited herein. Thus, step A8 includes: acquiring second associated information from the server according to the system identifier of the receiver; and extracting the encrypted public key of the receiver from the second associated information. Under the condition of keeping the encryption method unchanged, the receiver can change the encryption public key at any time according to the requirement without influencing the data transmission between the receiver and the MES system. In fact, the encrypted public key in the second association information may also be encrypted, so that step A8 further includes: decrypting the encrypted public key of the receiver extracted from the second associated information; the decryption processing mode can be set according to actual needs.
In practical applications, the sender may determine whether the data transmitted this time needs to be encrypted, so in some preferred embodiments, the request information further includes encryption status information, and the encryption status information is encryption information or non-encryption information; therefore, before step a4, it is determined whether the encryption status information is encryption information, and if so, steps a6, a7, A8, and a9 are executed.
Generally, if at least one of the sender and the receiver is a system outside an enterprise, encrypted transmission is usually required, but an operator may choose a non-encrypted transmission mode when encrypted transmission is required due to misoperation; in order to further improve the security of data transmission, in some embodiments, if the encryption state information is determined not to be encryption information in the foregoing steps, it is determined whether at least one of the sender and the receiver is an external system of the enterprise, and if so, a secret reminder is sent to the sender and the subsequent steps are cancelled or continued according to a response message sent back by the sender (steps a4, a 5). For example, if the sender returns a response signal for canceling the sending, the MES system cancels the execution of the subsequent steps; and if the sender returns the response signal which is continuously sent or does not return the response signal within the preset time, the MES system continuously executes the subsequent steps.
As can be seen from the above, the MES data interaction control method receives sending request information sent by a sender, where the sending request information includes a system identifier of the sender, a system identifier of a receiver, and data to be sent; acquiring data interface format information of the sender from a server according to the system identifier of the sender; acquiring data interface format information of the receiver from a server according to the system identifier of the receiver; analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver; sending the structured data to be sent to the receiver; therefore, data interaction of the systems can be realized without unifying the data interface formats of the systems.
In a second aspect, an embodiment of the present application provides an MES data interaction control device, which is applied to an MES system, and includes a receiving module 1, a first obtaining module 2, a second obtaining module 3, a data processing module 4, and a sending module 5;
the receiving module 1 is configured to receive sending request information sent by a sender, where the sending request information includes a system identifier of the sender, a system identifier of a receiver, and data to be sent;
the first obtaining module 2 is configured to obtain, from the server, data interface format information of the sender according to the system identifier of the sender;
the second obtaining module 3 is configured to obtain, from the server, data interface format information of the receiver according to the system identifier of the receiver;
the data processing module 4 is configured to analyze data to be sent according to a data interface format of a sender, and then perform structured processing on the data to be sent according to a data interface format of a receiver;
the sending module 5 is configured to send the structured data to be sent to a receiver.
In some embodiments, the system identifier is an industrial internet identifier; the server identifies and analyzes nodes (such as secondary nodes and enterprise nodes) for the industrial Internet. In this embodiment, the system identifier is an identifier that meets the requirement of the corresponding server for the industrial internet identifier resolution node, and generally includes a prefix and a suffix, and the prefix and the suffix are separated by a match "/", where the prefix is a unique identifier assigned by the industrial internet identifier resolution node, and the suffix can be defined by the user.
In some embodiments, the sender can directly write the data interface format information of the sender as the information item of the associated information of the system identifier in the associated information in advance, so that the MES system can directly extract the data interface format information after acquiring the associated information; in this embodiment, therefore, the first obtaining module 2 obtains the data interface format information of the sender from the server according to the system identifier of the sender,
acquiring first associated information from a server according to a system identifier of a sender;
and extracting the data interface format information of the sender from the first associated information.
In other embodiments, the sender may generate an interface identifier in the server in advance (if the server is an industrial internet identifier parsing node, the interface identifier is an industrial internet identifier), store the data interface format information of the sender itself in the server as the associated information of the interface identifier, and then give the interface identifier in the associated information of the system identifier; after the MES system acquires the associated information according to the system identification, the MES system can extract the interface identification from the associated information, and further acquire corresponding data interface format information in the server according to the interface identification; in this embodiment, therefore, the first obtaining module 2, when obtaining the data interface format information of the sender from the server according to the system identifier of the sender,
acquiring first associated information from a server according to a system identifier of a sender;
extracting the interface identification of the sender from the first associated information;
and acquiring the data interface format information of the sender from the server according to the interface identifier of the sender.
In some embodiments, the receiving party can directly write the data interface format information of the receiving party in the associated information in advance as the information item of the associated information of the system identifier of the receiving party, so that the MES system can directly extract the data interface format information after acquiring the associated information; in this embodiment, therefore, when the second obtaining module 3 obtains the data interface format information of the receiving party from the server according to the system identification of the receiving party,
acquiring second associated information from the server according to the system identifier of the receiver;
and extracting the data interface format information of the receiver from the second associated information.
In other embodiments, the receiver may generate an interface identifier in the server in advance (if the server is an industrial internet identifier parsing node, the interface identifier is an industrial internet identifier), store the data interface format information of the receiver itself in the server as the associated information of the interface identifier, and then give the interface identifier in the associated information of the system identifier; after the MES system acquires the associated information according to the system identification, the MES system can extract the interface identification from the associated information, and further acquire corresponding data interface format information in the server according to the interface identification; in this embodiment, therefore, when the second obtaining module 3 obtains the data interface format information of the receiving party from the server according to the system identification of the receiving party,
acquiring second associated information from the server according to the system identifier of the receiver;
extracting the interface identification of the receiver from the second associated information;
and acquiring the data interface format information of the receiver from the server according to the interface identifier of the receiver.
In practical applications, there may be more than one data interface format for each production management system (for example, but not limited to, a data interface format for transmitting document data, a data interface format for transmitting video data, a data interface format for transmitting audio data, etc.), so that, in some preferred embodiments, the request information further includes type information of data to be transmitted; as a result of this, it is possible to,
the first obtaining module 2 obtains the data interface format information of the sender from the server according to the system identification of the sender,
acquiring data interface format information of a sender according to the type information of the data to be sent (namely extracting the data interface format information of the sender from the first associated information according to the type information of the data to be sent or extracting an interface identifier of the sender from the first associated information according to the type information of the data to be sent);
and/or the presence of a gas in the gas,
the second obtaining module 3 obtains the data interface format information of the receiver from the server according to the system identification of the receiver,
and acquiring the data interface format information of the receiver according to the type information of the data to be sent (namely extracting the data interface format information of the receiver from the second associated information according to the type information of the data to be sent or extracting the interface identifier of the receiver from the second associated information according to the type information of the data to be sent).
In the associated information of the system identifier, an interface name information item may be added on the front side of each piece of data interface format information or interface identifier, and the content of the interface name information item may include at least one of chinese characters, english letters, numbers, and special symbols (for example, the name information item in the data interface format for transmitting document data is "interface 1", the name information item in the data interface format for transmitting video data is "interface 2", the name information item in the data interface format for transmitting audio data is "interface 3", and the like), so that the type information of the data to be transmitted included in the request information is corresponding interface name information; the first obtaining module 2 and/or the second obtaining module 3 are used for obtaining the data interface format information of which the interface name matches the interface name information (directly extracting the corresponding data interface format information from the associated information of the system identifier; or extracting the corresponding interface identifier from the associated information of the system identifier, and then obtaining the data interface format information of the receiver from the server according to the interface identifier).
In order to ensure the security of data transmission, data to be sent can be encrypted for transmission, so that in some preferred embodiments, the MES data interaction control device further includes:
the third obtaining module is used for obtaining the encrypted public key of the sender from the server according to the system identifier of the sender;
and the decryption module is used for decrypting the data to be transmitted (the data to be transmitted received from the sender) according to the encrypted public key of the sender.
The system identifier of the sender includes an encrypted public key of the sender, the sender encrypts data to be sent according to the encrypted public key and a preset encryption method before sending the data to be sent, and a specific encryption method can be set according to actual needs, which is not limited herein. Therefore, when the third obtaining module obtains the encrypted public key of the sender from the server according to the system identifier of the sender, the third obtaining module obtains the first associated information from the server according to the system identifier of the sender; an encrypted public key of the sender is extracted from the first association information. Under the condition of keeping the encryption method unchanged, the sender can change the encryption public key at any time according to the requirement, and the data transmission between the sender and the MES system is not influenced. In fact, the encrypted public key in the first association information may also be encrypted, so that the third obtaining module, when obtaining the encrypted public key of the sender from the server according to the system identifier of the sender, further: decrypting the encrypted public key of the sender extracted from the first associated information; the decryption processing mode can be set according to actual needs.
In order to ensure the security of data transmission, encrypted transmission can be performed on data to be sent, so that in some preferred embodiments, the MES data interaction control device further includes:
the fourth obtaining module is used for obtaining the encrypted public key of the receiver from the server according to the system identification of the receiver;
and the encryption module is used for encrypting the structured data to be sent according to the encryption public key of the receiver.
The association information of the system identifier of the receiver includes an encrypted public key of the sender, the MES system encrypts the data to be sent according to the encrypted public key and a preset encryption method (the encrypted public key and the preset encryption method may be different from or the same as the sender) before sending the data to be sent, and a specific encryption method may be set according to actual needs, which is not limited herein. Therefore, when the fourth obtaining module obtains the encrypted public key of the receiver from the server according to the system identifier of the receiver: acquiring second associated information from the server according to the system identifier of the receiver; and extracting the encrypted public key of the receiver from the second associated information. Under the condition of keeping the encryption method unchanged, the receiver can change the encryption public key at any time according to the requirement without influencing the data transmission between the receiver and the MES system. In fact, the encrypted public key in the second association information may also be encrypted, so that when the fourth obtaining module obtains the encrypted public key of the receiver from the server according to the system identifier of the receiver, the fourth obtaining module further: decrypting the encrypted public key of the receiver extracted from the second associated information; the decryption processing mode can be set according to actual needs.
In practical application, the sender may determine whether the data transmitted this time needs to be encrypted, so that, in some preferred embodiments, the request information further includes encryption status information, and the encryption status information is encryption information or non-encryption information; whereby the MES data interaction control means further comprises:
the first judgment module is used for judging whether the encryption state information is encryption information;
and only when the encryption state information is encryption information, the third acquisition module, the decryption module, the fourth acquisition module and the encryption module operate corresponding steps.
Generally, if at least one of the sender and the receiver is a system outside the enterprise, encrypted transmission is usually required, but an operator may choose a non-encrypted transmission mode when encrypted transmission is required due to misoperation; in order to further improve the security of data transmission, in some embodiments, the MES data interaction control device further includes:
the second judgment module is used for judging whether at least one of the sender and the receiver is a system outside the enterprise or not when the first judgment module judges that the encryption state information is not the encryption information;
and the first execution module is used for sending the confidential reminding information to the sender and enabling the data processing module 4 and the sending module 5 to cancel or continue to execute the subsequent steps according to the response information returned by the sender when at least one of the sender and the receiver is an enterprise external system. For example, if the sender returns a response signal for canceling sending, the processing module 4 and the sending module 5 cancel the execution of the subsequent steps; and if the sender returns the response signal which is continuously sent or does not return the response signal within the preset time, the processing module 4 and the sending module 5 cancel the continuous execution of the subsequent steps.
As can be seen from the above, the MES data interaction control device receives sending request information sent by a sender, where the sending request information includes a system identifier of the sender, a system identifier of a receiver, and data to be sent; acquiring data interface format information of the sender from a server according to the system identifier of the sender; acquiring data interface format information of the receiver from a server according to the system identifier of the receiver; analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver; sending the structured data to be sent to the receiver; therefore, data interaction of the systems can be realized without unifying the data interface formats of the systems.
Referring to fig. 3, an electronic device 100 is further provided in an embodiment of the present application, and includes a processor 101 and a memory 102, where the memory 102 stores a computer program, and the processor 101 is configured to execute the steps of the MES data interaction control method by calling the computer program stored in the memory 102.
The processor 101 is electrically connected to the memory 102. The processor 101 is a control center of the electronic device 100, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the electronic device.
The memory 102 may be used to store computer programs and data. The memory 102 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 101 executes various functional applications and data processing by calling a computer program stored in the memory 102.
In this embodiment, the processor 101 in the electronic device 100 loads instructions corresponding to one or more processes of the computer program into the memory 102, and the processor 101 runs the computer program stored in the memory 102 according to the following steps, so as to implement various functions: receiving sending request information sent by a sender, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent; acquiring data interface format information of the sender from a server according to the system identifier of the sender; acquiring data interface format information of the receiver from a server according to the system identifier of the receiver; analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver; and sending the structured data to be sent to the receiver.
As can be seen from the above, the electronic device receives the sending request information sent by the sender, where the sending request information includes the system identifier of the sender, the system identifier of the receiver, and the data to be sent; acquiring data interface format information of the sender from a server according to the system identifier of the sender; acquiring data interface format information of the receiver from a server according to the system identifier of the receiver; analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver; sending the structured data to be sent to the receiver; therefore, data interaction of the systems can be realized without unifying the data interface formats of the systems.
An embodiment of the present application further provides a storage medium, on which a computer program is stored, where the computer program runs the steps of the MES data interaction control method described above when being executed by a processor, so as to implement the following functions: receiving sending request information sent by a sender, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent; acquiring data interface format information of the sender from a server according to the system identifier of the sender; acquiring data interface format information of the receiver from a server according to the system identification of the receiver; analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver; and sending the structured data to be sent to the receiver.
The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, which are substantially the same as the present invention.

Claims (6)

1. An MES data interaction control method is applied to an MES system and is characterized by comprising the following steps:
A1. receiving sending request information sent by a sender, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent;
A2. acquiring data interface format information of the sender from a server according to the system identifier of the sender;
A3. acquiring data interface format information of the receiver from a server according to the system identifier of the receiver;
A4. analyzing the data to be sent according to the data interface format of the sender, and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver;
A5. sending the structured data to be sent to the receiver;
the system identification is an industrial internet identification; the server is an industrial internet identification analysis node; the industrial internet identification resolving node is a secondary node; the industrial internet identification analysis node stores data interface format information of a sender and data interface format information of a receiver;
the data interface format of the sender and the data interface format of the receiver are set to be various, the various data interface formats comprise a data interface format for transmitting document data, a data interface format for transmitting video data and a data interface format for transmitting audio data, and the data interface format of the data to be sent is determined by the sender according to the specific type selection of the data to be sent; the information item of the associated information of the system identification comprises interface identifications of various data interface formats corresponding to the system, the interface identifications are industrial internet identifications, and the associated information of the interface identifications is corresponding data interface format information;
step a2 includes:
A203. acquiring first associated information from a server according to the system identifier of the sender;
A204. extracting the interface identification of the sender from the first associated information;
A205. acquiring data interface format information of the sender from a server according to the interface identifier of the sender;
step a3 includes:
A303. acquiring second associated information from a server according to the system identifier of the receiver;
A304. extracting the interface identification of the receiver from the second associated information;
A305. acquiring data interface format information of the receiver from a server according to the interface identifier of the receiver;
the sending request information also comprises type information of data to be sent;
step a204 includes: extracting an interface identifier of a sender, which is matched with the type information of the data to be sent, from the first associated information according to the type information of the data to be sent;
step a304 includes: extracting an interface identifier of a receiver matched with the type information of the data to be sent from the second associated information according to the type information of the data to be sent;
the request information also comprises encrypted state information, and the encrypted state information is encrypted information or non-encrypted information;
before the step A4, the method also comprises the following steps:
judging whether the encryption state information is encryption information;
when judging that the encryption state information is not encryption information, judging whether at least one of the sender and the receiver is a system outside the enterprise;
when at least one of the sender and the receiver is a system outside the enterprise, sending a secret reminding message to the sender and canceling or continuing to execute the subsequent steps A4 and A5 according to a response message returned by the sender.
2. The MES data interaction control method of claim 1, wherein step a4 is preceded by:
acquiring an encrypted public key of the sender from a server according to the system identifier of the sender;
and decrypting the data to be sent according to the encrypted public key of the sender.
3. The MES data interaction control method of claim 1, wherein after step a4, the MES data interaction control method further comprises:
acquiring an encrypted public key of the receiver from a server according to the system identifier of the receiver;
and encrypting the structured data to be sent according to the encryption public key of the receiver.
4. An MES data interaction control device applied to an MES system, comprising:
the receiving module is used for receiving sending request information sent by a sender, wherein the sending request information comprises a system identifier of the sender, a system identifier of a receiver and data to be sent;
the first acquisition module is used for acquiring the data interface format information of the sender from a server according to the system identifier of the sender;
the second acquisition module is used for acquiring the data interface format information of the receiver from the server according to the system identifier of the receiver;
the data processing module is used for analyzing the data to be sent according to the data interface format of the sender and then carrying out structuralized processing on the data to be sent according to the data interface format of the receiver;
the sending module is used for sending the structured data to be sent to the receiver;
the system identification is an industrial internet identification; the server is an industrial internet identification analysis node; the industrial internet identification resolving node is a secondary node; the industrial internet identification analysis node stores data interface format information of a sender and data interface format information of a receiver;
the data interface format of the sender and the data interface format of the receiver are multiple, and the multiple data interface formats comprise a data interface format for transmitting document data, a data interface format for transmitting video data and a data interface format for transmitting audio data; the information item of the associated information of the system identification comprises interface identifications corresponding to various data interface formats of the system, the interface identifications are industrial internet identifications, an interface name information item is arranged on the front side of each interface identification, and the associated information of the interface identifications is corresponding data interface format information;
the first obtaining module obtains the data interface format information of the sender from the server according to the system identification of the sender,
acquiring first associated information from a server according to a system identifier of a sender;
extracting the interface identification of the sender from the first associated information;
acquiring data interface format information of a sender from a server according to an interface identifier of the sender;
the second obtaining module obtains the data interface format information of the receiver from the server according to the system identification of the receiver,
acquiring second associated information from the server according to the system identifier of the receiver;
extracting the interface identification of the receiver from the second associated information;
acquiring data interface format information of a receiver from a server according to an interface identifier of the receiver;
the sending request information also comprises type information of data to be sent;
when the first obtaining module extracts the interface identifier of the sender from the first association information: extracting an interface identifier of a sender, which is matched with the type information of the data to be sent, from the first associated information according to the type information of the data to be sent;
when the second obtaining module extracts the interface identifier of the receiver from the second associated information: extracting an interface identifier of a receiver matched with the type information of the data to be sent from the second associated information according to the type information of the data to be sent;
the request information also comprises encrypted state information, and the encrypted state information is encrypted information or non-encrypted information;
further comprising:
the first judging module is used for judging whether the encryption state information is encryption information or not;
the second judging module is used for judging whether at least one of the sender and the receiver is a system outside the enterprise or not when the first judging module judges that the encryption state information is not the encryption information;
and the first execution module is used for sending the confidential reminding information to the sender and enabling the data processing module and the sending module to cancel or continue to execute subsequent steps according to response information returned by the sender when at least one of the sender and the receiver is an enterprise external system.
5. An electronic device comprising a processor and a memory, said memory having stored therein a computer program, said processor being adapted to perform the steps of the MES data interaction control method of any of claims 1-3 by invoking said computer program stored in said memory.
6. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the MES data interaction control method according to any of claims 1-3.
CN202011625503.XA 2020-12-31 2020-12-31 MES data interaction control method and device, electronic equipment and storage medium Active CN112527536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011625503.XA CN112527536B (en) 2020-12-31 2020-12-31 MES data interaction control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011625503.XA CN112527536B (en) 2020-12-31 2020-12-31 MES data interaction control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112527536A CN112527536A (en) 2021-03-19
CN112527536B true CN112527536B (en) 2022-06-10

Family

ID=74977568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011625503.XA Active CN112527536B (en) 2020-12-31 2020-12-31 MES data interaction control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112527536B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422563A (en) * 2021-12-29 2022-04-29 海南同享数字科技有限公司 Method, device, equipment and storage medium for calling background data by page

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087269A (en) * 2006-06-09 2007-12-12 华为技术有限公司 Method and system for transmitting message service data
CN105913165A (en) * 2016-03-23 2016-08-31 马俊 Label integrated data real-time acquisition conversion system and method
CN109768979A (en) * 2019-01-16 2019-05-17 广东万丈金数信息技术股份有限公司 Data encryption and transmission method, device, computer equipment and storage medium
KR20190135299A (en) * 2018-05-28 2019-12-06 주식회사 이유랩 Web based control monitoring intergrated system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384007A (en) * 2008-09-28 2009-03-11 深圳华为通信技术有限公司 Inter-network data transmission method, apparatus and communication device and system
EP3296864A1 (en) * 2016-09-20 2018-03-21 Siemens Aktiengesellschaft Storing and retrieving documentation
CN107634948A (en) * 2017-09-19 2018-01-26 金在(北京)金融信息服务有限公司 Method for interchanging data and system
CN108989422A (en) * 2018-07-12 2018-12-11 中国建设银行股份有限公司 A kind of message and document handling method and system
CN111382579A (en) * 2020-01-13 2020-07-07 中船第九设计研究院工程有限公司 Data preprocessing verification platform of ship pipeline manufacturing execution system
CN112055078B (en) * 2020-09-02 2023-10-03 数字广东网络建设有限公司 Data transmission method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087269A (en) * 2006-06-09 2007-12-12 华为技术有限公司 Method and system for transmitting message service data
CN105913165A (en) * 2016-03-23 2016-08-31 马俊 Label integrated data real-time acquisition conversion system and method
KR20190135299A (en) * 2018-05-28 2019-12-06 주식회사 이유랩 Web based control monitoring intergrated system
CN109768979A (en) * 2019-01-16 2019-05-17 广东万丈金数信息技术股份有限公司 Data encryption and transmission method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于XML/OPC的ERP/MES/底层控制集成系统研究;马万太 等;《机械科学与技术》;20050330;第24卷(第3期);第295、346-349页 *

Also Published As

Publication number Publication date
CN112527536A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
US10868676B2 (en) Computerized apparatus for secure serialization of supply chain product units
CN108923908B (en) Authorization processing method, device, equipment and storage medium
US7538664B2 (en) Customized industrial alarms
US20160164884A1 (en) Cryptographic verification of provenance in a supply chain
US20190258986A1 (en) Secure distributed supply chain transactional management system
CN108960863A (en) A kind of food block chain retroactive method, device and electronic equipment
US20130024686A1 (en) Systems and methods for secure communication using a communication encryption bios based upon a message specific identifier
CN105577648A (en) Method for obtaining and sending short message identifying code, calculating device and mobile terminal
CN111026725A (en) Data processing method and device for consumption data, computer equipment and storage medium
CN111488372A (en) Data processing method, device and storage medium
CN112527536B (en) MES data interaction control method and device, electronic equipment and storage medium
CN108062713B (en) Annuity data file obtaining method and device, computer equipment and storage medium
CN114723377B (en) Goods receiving and dispatching management method, system, device and electronic equipment
CN114492491B (en) Data management system for NFC label application
Hinterberger et al. Iot device identification and recognition (iotag)
CN115423273A (en) Enterprise heterogeneous system integration method, device, equipment and storage medium
CN115567583A (en) Equipment communication method and device and electronic equipment
CN113611013A (en) Data transfer method, system and device
CN114070624A (en) Message monitoring method and device, electronic equipment and medium
US11582345B2 (en) Context data management interface for contact center
Çakmakçı et al. Central Security Incident Management Platform in Industry 4.0 with Threat Intelligence Interface
CN112016115B (en) Event subscription system based on block chain
CN115242511B (en) Multi-environment application management platform and management method
CN101084487A (en) Method for guaranteeing freshness of results for queries against a non-secure data store
CN112988193B (en) Code update identification method and device, computer 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
GR01 Patent grant
GR01 Patent grant