CN114553977A - Communication system of production equipment and upper system based on socket communication - Google Patents

Communication system of production equipment and upper system based on socket communication Download PDF

Info

Publication number
CN114553977A
CN114553977A CN202210437445.0A CN202210437445A CN114553977A CN 114553977 A CN114553977 A CN 114553977A CN 202210437445 A CN202210437445 A CN 202210437445A CN 114553977 A CN114553977 A CN 114553977A
Authority
CN
China
Prior art keywords
communication
module
submodule
upper system
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210437445.0A
Other languages
Chinese (zh)
Other versions
CN114553977B (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.)
Tongri Yunlian Information Technology Suzhou Co ltd
Original Assignee
Tongri Yunlian Information Technology Suzhou 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 Tongri Yunlian Information Technology Suzhou Co ltd filed Critical Tongri Yunlian Information Technology Suzhou Co ltd
Priority to CN202210437445.0A priority Critical patent/CN114553977B/en
Publication of CN114553977A publication Critical patent/CN114553977A/en
Application granted granted Critical
Publication of CN114553977B publication Critical patent/CN114553977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The communication system comprises a lower equipment module, an upper system module and an equipment application submodule, wherein the lower equipment module comprises the upper system module and the equipment application submodule; the data packaging submodule is used for translating and packaging the instructions and data output by the equipment application based on a preset communication protocol model to obtain a data transmission packet; a first communication submodule; a system application submodule; the data analysis submodule is used for analyzing the received data transmission packet based on a preset communication protocol model to acquire instructions and data; the second communication submodule has the effects that the lower device and the upper system can share the communication standard, and the development cost of the communication system is reduced.

Description

Communication system of production equipment and upper system based on socket communication
Technical Field
The application relates to the technical field of communication transmission systems, in particular to a communication system of production equipment and an upper system based on socket communication.
Background
With the continuous development of industrial technology and information technology, the automation degree of production equipment is higher and higher. In an automated production facility system, a host system for implementing control and scheduling is usually included, and a host system for implementing production jobs is also included. With the gradual development of production equipment, the requirements of an upper system on the acquisition and control of equipment data are more and more common. Data acquisition is usually required for the operating state, processing parameters, abnormal information, etc. of the production equipment.
At present, the common communication between the lower device and the upper system is developed based on the TCP/IP communication protocol. Specifically, the lower device and the upper system include various application layers for implementing actual functions, and an intermediate software abstraction layer is provided between the application layers and the TCP/IP protocol family communication, and the intermediate software abstraction layer may be a socket. The socket is used as a communication interface between the application layer and the communication protocol, and can abstract and organize data of the application layer to meet the specified protocol requirements.
In the process of implementing the present application, the inventors found that the above-mentioned technology has at least the following problems:
communication specifications between the lower device and the upper system are different in different industries, production parties and even different devices, and it is inefficient to develop different communication interfaces for different communication specifications.
Disclosure of Invention
In order to enable different lower devices and upper systems to share communication specifications and reduce development cost of an intelligent communication system, the application provides a communication system of production equipment and an upper system based on socket communication.
In a first aspect, the application provides a communication system of production equipment and upper system based on socket communication, which adopts the following technical scheme:
a communication system of production equipment and an upper system based on socket communication comprises a lower equipment module and an upper system module, wherein the lower equipment module comprises an equipment application submodule, a data encapsulation submodule and a first communication submodule;
the device application submodule is used for realizing the device application function of the lower device;
the data packaging submodule is used for translating and packaging the instructions and data output by the equipment application based on a preset communication protocol model to obtain a data transmission packet;
the first communication submodule is used for realizing data communication transmission between the lower equipment module and the upper system module;
the system application submodule is used for realizing the system application function of the upper system;
the data analysis submodule is used for analyzing the received data transmission packet based on a preset communication protocol model to acquire instructions and data;
and the second communication submodule is used for realizing data communication transmission between the lower equipment module and the upper system module.
By adopting the technical scheme, the data encapsulation submodule which is arranged in the lower equipment module and is used for encapsulating the application data of the lower equipment and the data analysis submodule which is arranged in the upper system module and is used for analyzing the application data form an encapsulation-analysis system based on a preset communication protocol model, which is beneficial to leading the data sent out by different lower equipment modules to follow the same communication standard, and further leading the upper system module to analyze according to the same communication standard, thus being capable of analyzing the data from different sources, being beneficial to avoiding the condition that each different equipment needs to develop the communication model independently and reducing the development cost of the communication system.
In a specific implementation manner, the lower device module further includes a first communication testing sub-module, the upper system module further includes a second communication testing sub-module, and the first communication testing sub-module and the second communication testing sub-module at least include functions of sending a communication testing signal and receiving and responding to the communication testing signal.
By adopting the technical scheme, a group of sub-modules for realizing communication signal testing are arranged in the lower equipment and the upper system, the testing of the communication condition between the lower equipment and the upper system is facilitated through the communication testing sub-modules, the communication environment is assisted to be mastered by the communication system, the step of processing the application data under the condition of communication failure is facilitated to be avoided, the waste of computing power in the system is avoided, the communication condition is timely mastered, the abnormal communication condition is timely recorded and fed back, the condition that the communication transmission cannot be obtained in the emergency condition is facilitated to be reduced, and the safety of the system is improved.
In a specific implementation manner, the upper system module includes a user verification sub-module, and the user verification sub-module is configured to compare and verify the identity information of the user to obtain a verification result.
By adopting the technical scheme, the user verification sub-module is arranged in the upper system module, so that the identity of an operator of the upper system can be verified, the possibility that an abnormal identity person controls the lower device can be reduced, and the safety of the system can be improved.
In a specific implementation manner, the upper system module includes an authority division submodule, and the authority division submodule is configured to open, according to an authentication result of a user, an operation authority of an application function corresponding to the authentication result to the user.
By adopting the technical scheme, besides the identity authentication, different use identities can correspond to different operation authorities due to multiple operation functions of the upper system, so that the operation authorities are distinguished and distributed, the flexibility of the use authorization of the upper system is improved, and the use efficiency of the communication system is improved sufficiently.
In one specific embodiment, the system application functions include at least equipment on-line and status, upper master control, process lot correlation, job control, equipment data, process recipe, and master control.
By adopting the technical scheme, the system application can comprise a plurality of functions, and the management and the control of the lower equipment are perfected.
In a specific implementation manner, the lower device module includes a device detection submodule, and the device detection submodule is configured to detect and control an operating condition of the lower device.
By adopting the technical scheme, the lower device comprises the device detection submodule for realizing the device detection function, so that the working condition of the device can be mastered in time, the control degree of the upper system on the lower device in the communication system can be further improved, and the working safety of the lower device can be improved.
In a specific implementation manner, the lower device module includes a device event reporting sub-module, and the device event reporting sub-module is configured to feed back a device event to the upper system module based on an operating condition of the lower device, where the device event includes at least a device abnormal event and a device alarm event.
By adopting the technical scheme, the abnormal event and the alarm event are reported, so that the method is helpful for helping a user of the upper system to master the working condition of the lower equipment in time, further improving the working safety of the lower equipment, and is also helpful for analyzing and preventing the fault condition through the data reported to the upper system, thereby further improving the safety of the lower equipment.
In a second aspect, the present application provides a communication method between a production device and an upper system based on socket communication, which adopts the following technical scheme:
a communication method of production equipment and an upper system based on socket communication comprises the following steps:
the lower equipment module acquires a data packet to be transmitted;
the lower equipment module translates and encapsulates the data packet based on a preset communication protocol model, obtains an encapsulated data packet and sends the encapsulated data packet to an upper system module;
after the upper system module receives the encapsulated data packet, analyzing the encapsulated data packet based on the same communication protocol model to obtain an analyzed data packet;
and after the upper system module acquires the analysis data packet, executing corresponding processing or response based on the analysis data packet.
By adopting the technical scheme, the data encapsulation submodule which is arranged in the lower equipment module and is used for encapsulating the application data of the lower equipment and the data analysis submodule which is arranged in the upper system module and is used for analyzing the application data form an encapsulation-analysis system based on a preset communication protocol model, which is beneficial to leading the data sent out by different lower equipment modules to follow the same communication standard, and further leading the upper system module to analyze according to the same communication standard, thus being capable of analyzing the data from different sources, being beneficial to avoiding the condition that each different equipment needs to develop the communication model independently and reducing the development cost of the communication system.
In a third aspect, the present application provides an intelligent terminal, which adopts the following technical scheme:
an intelligent terminal comprises a processor and a memory, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor so as to realize the communication method between the production equipment and the upper system based on socket communication in the first aspect.
By adopting the technical scheme, the processor in the intelligent terminal can realize the communication method between the production equipment and the upper system based on socket communication according to the related computer program stored in the memory, so that different lower equipment and the upper system can share the communication standard, and the development cost of the intelligent communication system is reduced.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, wherein at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the communication method between the socket communication-based production equipment and the upper system according to any one of the first aspects.
By adopting the technical scheme, corresponding programs can be stored, so that different lower devices and upper systems can share the communication standard, and the development cost of the intelligent communication system is reduced.
In summary, the present application includes at least one of the following beneficial technical effects:
the data encapsulation submodule which is arranged in the lower equipment module and used for encapsulating the application data of the lower equipment and the data analysis submodule which is arranged in the upper system module and used for analyzing the application data form an encapsulation-analysis system based on a preset communication protocol model, which is beneficial to leading the data sent out by different lower equipment modules to follow the same communication standard, and further leading the upper system module to analyze according to the same communication standard, thus being capable of analyzing the data from different sources, being beneficial to avoiding the condition that each different equipment needs to develop the communication model independently and reducing the development cost of the communication system;
the sub-modules for realizing the communication signal test are arranged in the lower equipment and the upper system, so that the test of the communication condition between the lower equipment and the upper system is realized by the communication test sub-modules, the communication environment is mastered by the auxiliary communication system, the step of processing the application data under the condition of communication failure is avoided, the waste of calculation power in the system is avoided, the communication condition is mastered in time, the abnormal communication condition is recorded and fed back in time, the situation that the communication transmission cannot be obtained in emergency is reduced, and the safety of the system is improved;
the report of the abnormal event and the alarm event is helpful for helping a user of the upper system to master the working condition of the lower equipment in time, so as to improve the working safety of the lower equipment, and is also helpful for analyzing and preventing the fault condition through the data reported to the upper system, so as to further improve the safety of the lower equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an architecture diagram of a communication system between a production facility based on socket communication and a host system shown in an embodiment of the present application;
fig. 2 is a flowchart of a communication method between a production device and an upper system based on socket communication in an embodiment of the present application;
fig. 3 is a schematic flow chart of a device connection state in a communication method between a production device and an upper system based on socket communication shown in an embodiment of the present application;
fig. 4 is a schematic structural diagram of the intelligent terminal shown in the embodiment of the present application.
Description of reference numerals: 1. a lower device module; 11. a device application sub-module; 12. a data encapsulation submodule; 13. a first communication submodule; 2. an upper system module; 21. a system application submodule; 22. a data analysis submodule; 23. and the second communication submodule.
Detailed Description
The present embodiments are only illustrative and not restrictive, and those skilled in the art can make modifications to the embodiments without inventive contribution as required after reading the present specification, but the technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to fig. 1 to 4 of the embodiments of the present application as long as they are protected by patent laws within the scope of the claims of the present application to make the objects, technical solutions and advantages of the embodiments of the present application clearer, and it is obvious that the described embodiments are a part of the embodiments of the present application, but not all of the embodiments.
The embodiment of the application provides a communication method of production equipment and an upper system based on socket communication, the method can be applied to a communication system of the production equipment and the upper system based on socket communication, an execution main body can be an intelligent terminal arranged in the upper system, and the execution main body is assisted by a detection device in lower equipment. As shown in fig. 1. The communication system of the production equipment and the upper system based on socket communication comprises an upper system module and a lower equipment module, wherein the lower equipment module can detect the running state and parameters of the equipment and collect data, the upper system module is in communication connection with the lower equipment module, the upper system module can process and respond to the data received from the lower equipment module, and the upper system module can also actively send a control instruction to the lower equipment module.
The process flow shown in fig. 2 will be described in detail below with reference to the specific embodiments, and the contents may be as follows:
step 201, the lower device module obtains a data packet to be transmitted.
In implementation, when a communication requirement exists between the lower device and the upper system, the lower device module can integrate and package data to be transmitted to form a data packet. Specifically, the communication requirement is determined based on the lower device application in the lower device module, the lower device application may include several aspects such as device status detection and device operation control, and when a scene requiring communication with the upper system is triggered in the execution process of the lower device application, the data acquisition step before communication is actively performed. In addition, the lower device module can respond to the signal of the upper system and passively acquire data and feed the data back to the upper system.
Therefore, the lower equipment module can obtain the data packet to be transmitted, and the data transmission between the lower equipment module and the upper system is convenient.
In a specific embodiment, since the upper system and the lower device are separately designed, if the communication is interrupted, the data processing and transmission are not valid, and accordingly, step 201 may further include the following processing: the lower equipment module sends a communication test signal to the upper system module, and the upper system module responds and returns a signal of successful communication based on the communication test signal after receiving the communication test signal.
In implementation, the step of the communication test may be initiated by the upper system module or initiated by the lower device module, and referring to fig. 3, taking the case that the lower device initiates the communication test, if the initiator does not receive a signal that the communication is successful within a preset time interval, the sender may determine that the communication between the upper system and the lower device is failed; if the online reply of the upper system module is received, the subsequent processing can be carried out.
Therefore, a group of sub-modules for realizing communication signal testing are arranged in the lower equipment and the upper system, so that the testing of the communication condition between the lower equipment and the upper system is facilitated through the communication testing sub-modules, the auxiliary communication system is facilitated to master the communication environment, the step of processing the application data under the condition of communication failure is facilitated to be avoided, and the waste of computing power in the system is avoided.
Step 202, the lower device module translates and encapsulates the data packet based on a preset communication protocol model, obtains an encapsulated data packet, and sends the encapsulated data packet to the upper system module.
In implementation, after the lower device module obtains the data packet to be transmitted, the data and the instruction in the data packet follow the initial data specification of the lower device, and the initial data specification may not be matched with the data specification of the upper system, and if the data packet is directly transmitted, the data packet sent out may not be normally interpreted and applied. Therefore, before the data packet is sent, the lower device module may translate the data packet so that the data or the instruction in the data packet conforms to the predetermined communication protocol model, and then encapsulate the translated data packet to obtain an encapsulated data packet. After the lower equipment module acquires the encapsulated data packet, the encapsulated data packet is sent to the upper system module, and the encapsulated data packet at the moment follows a preset communication protocol model, so that the data in the encapsulated data packet can be normally used after the upper system module receives the data.
Specifically, the preset communication protocol model may be defined and preset by a user, and since the communication relationship between the upper system module and the lower device module is bidirectional in the application, the communication protocol model is simultaneously applied to the upper system module and the lower device module. The data communication between the lower device and the upper system can be named, the active and passive directions initiated by the data communication process can be defined, and the data communication can be classified. According to the basic functions, the data communication functions can be divided into 7 categories, such as equipment connection and state (BME 0 XX), master control (BME 1 XX), processing lot correlation (BME 2 XX), job control (BME 3 XX), equipment data (BME 5 XX), process recipe (BME 6 XX), master control notification (BME 9 XX), and the like, so as to realize the complete functions of the automation equipment:
device on-line and status (BME 0 XX): a communication test request transmitted in both directions between the lower device and the upper system; the lower device sends a communication establishing request, a connection request, an off-line request, a device state change report and the like to the upper system;
master (BME 1 XX): a time synchronization request and the like sent by the lower device to the upper system; a master control command and the like sent by an upper system to a lower device;
batch correlation (BME 2 XX): the lower device sends a device login and logout, a material check, an ID matching, a carrier login and logout, a device information request and the like to the upper system;
job control (BME 3 XX): the lower device sends an operator authority check to the upper system;
device data (BME 5 XX): the lower device sends a device abnormal event report, a device alarm event report, a QC check result report, a device parameter report and the like to the upper system; a device parameter request sent by the upper system to the lower device;
process recipe (BME 6 XX): job inquiry and the like sent by the upper system to the lower equipment; an ID request and a file downloading request sent by the lower device to the upper system;
master notification (BME 9 XX): and the upper system issues abnormal information, warning information, notification information and the like to the lower equipment.
In addition, a start symbol, an end symbol, a field separator, a field list separator, etc. of the data communication may be defined.
In this way, the data sent by the lower device can be translated based on the communication specification shared between the lower device and the upper system, so that the data can be successfully transmitted and applied.
And 203, after the upper system module receives the encapsulated data packet, analyzing the encapsulated data packet based on the same communication protocol model to obtain an analyzed data packet.
In implementation, after the upper system module receives the encapsulated data packet sent by the lower device module, the encapsulated data packet may be analyzed based on the same preset communication protocol model to obtain an analyzed data packet, and the analyzed data packet also includes available data and instructions.
In one embodiment, the automated production equipment has a high requirement on safety, and an illegal operation may cause economic and even human injury loss, so correspondingly, the communication method between the production equipment based on socket communication and the upper system may further include the following processing: the upper system module acquires the identity information of the user, retrieves and contrasts the identity information with a preset user database, and acquires a verification result.
In implementation, when identity information matched with the user exists in the user database, the authentication can be regarded as successful, otherwise, the authentication can be regarded as failure. The upper system module can feed back the condition of the verification failure and refuse to receive the input information of the current user. When the verification is successful, the upper system module can assign the designated operation authority to the user according to the identity information of the user.
Like this, help verifying the operator's of upper system identity, and then reduce the possibility of unusual personnel of identity control subordinate's equipment, help improving the security of system, simultaneously, different use identities can correspond different operation authorities, distinguish and distribute the operation authority, help improving the flexibility on the upper system uses the authorization, help fully improving communication system's availability factor.
And 204, after the upper system module acquires the analysis data packet, executing corresponding processing or response based on the analysis data packet.
In implementation, after the upper system module obtains the parsing data packet, the upper system module may execute corresponding processing or respond based on available data and instructions in the parsing data packet.
In one embodiment, a fault may be sent during the operation of the device, and accordingly, step 204 may be followed by the following steps: acquiring the running state parameters of the lower equipment, and dividing the variation range of the running state parameters into normal, abnormal and alarm states; and feeding back the equipment events of the lower equipment to the upper system module based on the operation state parameters, wherein the equipment events at least comprise equipment abnormal events and equipment alarm events.
Therefore, the operation state of the lower equipment is detected and fed back, and the safety of the equipment is improved.
Based on the same technical concept, the embodiment of the invention also provides a communication system of production equipment and a host system based on socket communication, which comprises: the lower device module 1 comprises a device application submodule 11, a data encapsulation submodule 12 and a first communication submodule 13, and the upper system module 2 comprises a system application submodule 21, a data analysis submodule 22 and a second communication submodule 23;
the device application submodule 11 is configured to implement a device application function of the lower device;
the data encapsulation submodule 12 is configured to translate and encapsulate instructions and data output by the device application based on a preset communication protocol model, and obtain a data transmission packet;
the first communication sub-module 13 is configured to implement data communication transmission between the lower device module 1 and the upper system module 2;
the system application submodule 21 is configured to implement a system application function of the upper system;
the data analysis submodule 22 is configured to analyze the received data transmission packet based on a preset communication protocol model, and obtain an instruction and data;
the second communication submodule 23 is configured to implement data communication transmission between the lower device module 1 and the upper system module 2.
In a specific embodiment, the lower device module 1 further includes a first communication test sub-module, the upper system module 2 further includes a second communication test sub-module, and the first communication test sub-module and the second communication test sub-module at least include functions of sending a communication test signal and receiving and responding to the communication test signal.
In a specific embodiment, the upper system module 2 includes a user verification sub-module, and the user verification sub-module is configured to compare and verify the identity information of the user to obtain a verification result.
In a specific embodiment, the upper system module 2 includes an authority division submodule, and the authority division submodule is configured to open an operation authority of an application function corresponding to an authentication result to a user according to the authentication result of the user.
In one embodiment, the system application functions include at least equipment on-line and status, upper master control, process lot correlation, job control, equipment data, process recipe, and master control.
In a specific embodiment, the lower device module 1 includes a device detection sub-module, and the device detection sub-module is configured to detect and control the working condition of the lower device.
In a specific embodiment, the lower device module 1 includes a device event reporting sub-module, and the device event reporting sub-module is configured to feed back a device event to the upper system module 2 based on the working condition of the lower device, where the device event includes at least a device abnormal event and a device alarm event.
The embodiment of the application also discloses an intelligent terminal, and referring to fig. 4, the intelligent terminal includes a memory and a processor, and the memory stores a computer program which can be loaded by the processor and execute the communication method between the production equipment based on socket communication and the upper system.
Based on the same technical concept, the embodiment of the application further discloses a computer readable storage medium, which comprises various steps in the communication method flow for realizing the socket communication-based production equipment and the upper system when the computer readable storage medium is loaded and executed by the processor.
The computer-readable storage medium includes, for example: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, only the division of the functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the above described functions.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. With this understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
The above embodiments are only used to describe the technical solutions of the present application in detail, but the above embodiments are only used to help understanding the method and the core idea of the present application, and should not be construed as limiting the present application. Those skilled in the art should also appreciate that various modifications and substitutions can be made without departing from the scope of the present disclosure.

Claims (10)

1. The utility model provides a production facility and upper system's communication system based on socket communication which characterized in that: the device comprises a lower equipment module (1) and an upper system module (2), wherein the lower equipment module (1) comprises an equipment application submodule (11), a data packaging submodule (12) and a first communication submodule (13), and the upper system module (2) comprises a system application submodule (21), a data analysis submodule (22) and a second communication submodule (23);
the device application submodule (11) is used for realizing the device application function of the lower device;
the data packaging sub-module (12) is used for translating and packaging instructions and data output by equipment application based on a preset communication protocol model to obtain a data transmission packet;
the first communication sub-module (13) is used for realizing data communication transmission between the lower equipment module (1) and the upper system module (2);
the system application submodule (21) is used for realizing the system application function of the upper system;
the data analysis submodule (22) is used for analyzing the received data transmission packet based on a preset communication protocol model to acquire instructions and data;
and the second communication submodule (23) is used for realizing data communication transmission between the lower equipment module (1) and the upper system module (2).
2. The communication system of production equipment and upper system based on socket communication according to claim 1, characterized in that: the lower equipment module (1) further comprises a first communication test submodule, the upper system module (2) further comprises a second communication test submodule, and the first communication test submodule and the second communication test submodule at least comprise functions of sending communication test signals and receiving and responding the communication test signals.
3. The communication system of production equipment and upper system based on socket communication according to claim 1, characterized in that: the upper system module (2) comprises a user verification submodule, and the user verification submodule is used for comparing and verifying the identity information of the user to obtain a verification result.
4. The communication system of production equipment and upper system based on socket communication according to claim 3, characterized in that: the upper system module (2) comprises an authority division submodule, and the authority division submodule is used for opening the operation authority of the application function corresponding to the authentication result to the user according to the authentication result of the user.
5. The communication system of production equipment and upper system based on socket communication according to claim 1, characterized in that: the system application function at least comprises equipment connection and state, upper master control, processing batch correlation, operation control, equipment data, a process formula and master control.
6. The communication system of production equipment and upper system based on socket communication according to claim 1, characterized in that: the lower device module (1) comprises a device detection submodule, and the device detection submodule is used for detecting and controlling the working condition of the lower device.
7. The communication system of production equipment and upper system based on socket communication according to claim 6, characterized in that: the lower device module (1) comprises a device event reporting submodule, and the device event reporting submodule is used for feeding back a device event to the upper system module (2) based on the working condition of the lower device, wherein the device event at least comprises a device abnormal event and a device alarm event.
8. A communication method of production equipment and an upper system based on socket communication is characterized in that: the method comprises the following steps:
the lower equipment module acquires a data packet to be transmitted;
the lower equipment module translates and encapsulates the data packet based on a preset communication protocol model, obtains an encapsulated data packet and sends the encapsulated data packet to an upper system module;
after the upper system module receives the encapsulated data packet, analyzing the encapsulated data packet based on the same communication protocol model to obtain an analyzed data packet;
and after the upper system module acquires the analysis data packet, executing corresponding processing or response based on the analysis data packet.
9. An intelligent terminal, characterized in that the intelligent terminal comprises a processor and a memory, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the communication method between the production equipment and the upper system based on socket communication according to claim 8.
10. A computer-readable storage medium, wherein at least one instruction, at least one program, a code set, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the communication method between the production equipment and the upper system based on socket communication according to claim 8.
CN202210437445.0A 2022-04-25 2022-04-25 Communication system of production equipment and upper system based on socket communication Active CN114553977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210437445.0A CN114553977B (en) 2022-04-25 2022-04-25 Communication system of production equipment and upper system based on socket communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210437445.0A CN114553977B (en) 2022-04-25 2022-04-25 Communication system of production equipment and upper system based on socket communication

Publications (2)

Publication Number Publication Date
CN114553977A true CN114553977A (en) 2022-05-27
CN114553977B CN114553977B (en) 2023-06-20

Family

ID=81667571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210437445.0A Active CN114553977B (en) 2022-04-25 2022-04-25 Communication system of production equipment and upper system based on socket communication

Country Status (1)

Country Link
CN (1) CN114553977B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891795A (en) * 2012-10-11 2013-01-23 上海金自天正信息技术有限公司 Industrial security communication gateway
WO2017000424A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 Protocol detection method and apparatus
CN106603581A (en) * 2017-02-22 2017-04-26 欣旺达电子股份有限公司 A test method and device capable of supporting a plurality of communication protocols
CN113938529A (en) * 2021-08-30 2022-01-14 上海威派格智慧水务股份有限公司 Multi-protocol conversion access system and method
CN114217990A (en) * 2021-12-14 2022-03-22 苏州长风航空电子有限公司 Distributed hardware remote communication system based on UDP protocol and control method thereof
CN114244821A (en) * 2021-12-16 2022-03-25 北京百度网讯科技有限公司 Data processing method, device, equipment, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891795A (en) * 2012-10-11 2013-01-23 上海金自天正信息技术有限公司 Industrial security communication gateway
WO2017000424A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 Protocol detection method and apparatus
CN106603581A (en) * 2017-02-22 2017-04-26 欣旺达电子股份有限公司 A test method and device capable of supporting a plurality of communication protocols
CN113938529A (en) * 2021-08-30 2022-01-14 上海威派格智慧水务股份有限公司 Multi-protocol conversion access system and method
CN114217990A (en) * 2021-12-14 2022-03-22 苏州长风航空电子有限公司 Distributed hardware remote communication system based on UDP protocol and control method thereof
CN114244821A (en) * 2021-12-16 2022-03-25 北京百度网讯科技有限公司 Data processing method, device, equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114553977B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
EP1573407B1 (en) Method to increase the safety integrity level of a control system
CN1790208B (en) Secure data write apparatus and methods for use in safety instrumented process control systems
CN107450386B (en) Modular safety control device
CN101674285B (en) Single sign-on system and method thereof
US10574671B2 (en) Method for monitoring security in an automation network, and automation network
US20140280520A1 (en) System that provides for removal of middleware in an industrial automation environment
CN111552568B (en) Cloud service calling method and device
CN108604084B (en) Method and device for monitoring data processing and transmission in a security chain of a security system
CN115311825B (en) Method and device for pushing alarm data of PCB (printed circuit board) equipment, computer equipment and storage medium
US20150256962A1 (en) M2m gateway device and applying method thereof
JP2004227575A (en) Single signal transmission of safety-related process information
CN103678423A (en) Data file input system, device and method
CN114553977A (en) Communication system of production equipment and upper system based on socket communication
CN112866364A (en) Industrial internet cloud platform
CN111935079A (en) Method, device and system for calling cross-regional operation service of power distribution artificial intelligence engine
CN112787863B (en) Remote operation and maintenance secure communication method and device and computer readable storage medium
CN113342574A (en) Data processing method and device and electronic equipment
EP3982250A1 (en) Generation of code for a system
CN114884993B (en) Virtualized android system for enhancing data security
CN113992530B (en) Baud rate identification method, baud rate identification device, electronic equipment and storage medium
CN112016115B (en) Event subscription system based on block chain
CN115001133B (en) Intelligent power-off and power-on switching operation method and system in traction power supply system
CN114331370A (en) Shore bridge equipment management system
CN117873040A (en) Remote monitoring and fault diagnosis method for industrial control main board and related equipment
CN114925122A (en) Multi-source heterogeneous data standardization method suitable for manufacturing system

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