CN114553977B - 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
CN114553977B
CN114553977B CN202210437445.0A CN202210437445A CN114553977B CN 114553977 B CN114553977 B CN 114553977B CN 202210437445 A CN202210437445 A CN 202210437445A CN 114553977 B CN114553977 B CN 114553977B
Authority
CN
China
Prior art keywords
module
communication
equipment
data
upper system
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
CN202210437445.0A
Other languages
Chinese (zh)
Other versions
CN114553977A (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)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The technical scheme is that the communication system of the production equipment and the upper system based on socket communication comprises a lower equipment module and an upper system module, and equipment application submodules; the data packaging sub-module is used for translating and packaging the instruction and the data output by the equipment application based on a preset communication protocol model to obtain a data transmission packet; a first communication sub-module; a system application sub-module; the data analysis sub-module is used for analyzing the received data transmission packet based on a preset communication protocol model to acquire instructions and data; the second communication sub-module has the effects that the lower equipment 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. An automated production facility system generally includes a higher-level system for realizing control and scheduling, and further includes a lower-level facility for realizing production jobs. With the gradual development of production equipment, the requirements of an upper system on equipment data acquisition and control are more and more common. Data acquisition is generally required for the operation state, processing parameters, abnormal information and the like of production equipment.
At present, communication between the lower-level equipment and the upper-level system is developed based on a TCP/IP communication protocol. Specifically, the lower device and the upper system include various application layers for realizing actual functions, and an intermediate software abstract layer is arranged between the application layers and the communication of the TCP/IP protocol family, and the intermediate software abstract layer can be a socket. The socket is used as a communication interface between the application layer and the communication protocol, and can abstract and organize the data of the application layer to meet the specified protocol requirements.
In carrying out the present application, the inventors have found that the above-described technique has at least the following problems:
the communication standards between the lower equipment and the upper system are different in different industries, production parties and even different equipment, and the efficiency of developing different communication interfaces for different communication standards is low.
Disclosure of Invention
In order to enable different lower-level devices and an upper-level system to share a communication standard, and reduce development cost of an intelligent communication system, the application provides a communication system of production equipment and the upper-level system based on socket communication.
In a first aspect, the present application provides a communication system between a production device and an upper system based on socket communication, which adopts the following technical scheme:
the communication system of the production equipment and the 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 sub-module, a data encapsulation sub-module and a first communication sub-module, and the upper system module comprises a system application sub-module, a data analysis sub-module and a second communication sub-module;
the equipment application submodule is used for realizing the equipment application function of the lower equipment;
the data packaging submodule is used for translating and packaging the instruction and the data output by the equipment application based on a preset communication protocol model to obtain a data transmission packet;
the first communication sub-module is used for realizing data communication transmission between the lower equipment module and the upper system module;
the system application sub-module is used for realizing the system application function of the upper system;
the data analysis sub-module is used for analyzing the received data transmission packet based on a preset communication protocol model to acquire an instruction and data;
and the second communication sub-module is used for realizing data communication transmission between the lower equipment module and the upper system module.
By adopting the technical scheme, the data packaging submodule for packaging the application data of the lower equipment arranged in the lower equipment module and the data analysis submodule for analyzing the application data arranged in the upper system module form a packaging-analysis system based on a preset communication protocol model, so that the data sent out by different lower equipment modules can conform to the same communication standard, the upper system module can analyze the data from different sources according to the same communication standard, the situation that each different equipment needs to independently develop the communication model is avoided, and the development cost of the communication system is reduced.
In a specific implementation manner, the lower equipment module further comprises a first communication test sub-module, the upper system module further comprises a second communication test sub-module, and the first communication test sub-module and the second communication test sub-module at least comprise functions of sending communication test signals and receiving and responding to the communication test signals.
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, so that the communication condition between the lower equipment and the upper system can be tested through the communication testing sub-modules, the communication environment can be mastered by the auxiliary communication system, the step of processing application data under the condition of communication failure can be reduced, the waste of calculation force in the system can be avoided, the communication condition can be mastered in time, the abnormal communication condition can be recorded and fed back in time, the occurrence of the condition that the emergency can not be transmitted by the communication can be reduced, and the safety of the system can be improved.
In a specific implementation manner, the upper system module includes a user verification sub-module, and the user verification sub-module is used for comparing and verifying identity information of a 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 the lower equipment is controlled by an identity abnormality person is further reduced, and the safety of the system can be improved.
In a specific implementation manner, the upper system module includes a permission dividing sub-module, and the permission dividing sub-module is configured to open an operation permission of an application function corresponding to an authentication result to a user according to the authentication result of the user.
By adopting the technical scheme, besides verifying the identity, as the operation functions of the upper system are more, different use identities can correspond to different operation authorities, the operation authorities are distinguished and distributed, the flexibility of the upper system in use authorization is improved, and the use efficiency of the communication system is fully improved.
In a specific embodiment, the system application functions include at least equipment connection and status, upper level master control, processing lot correlation, job control, equipment data, process recipe, and master control.
By adopting the technical scheme, the system application can comprise the functions, and is beneficial to perfecting management and control of lower equipment.
In a specific implementation manner, the lower equipment module comprises an equipment detection sub-module, and the equipment detection sub-module is used for detecting and controlling the working condition of the lower equipment.
By adopting the technical scheme, the equipment detection submodule for realizing the equipment detection function is included in the lower equipment, so that the working condition of the equipment can be mastered in time, the control degree of the upper system on the lower equipment in the communication system is improved, and the working safety of the lower equipment is improved.
In a specific implementation manner, the lower device module includes a device event reporting sub-module, where the device event reporting sub-module is configured to feed back a device event to the upper system module based on a working 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 a user of the upper system is helped to timely master the working condition of the lower equipment, the working safety of the lower equipment is further improved, in addition, the analysis and the prevention of the fault condition are helped to be carried out through the data reported to the upper system, and the safety of the lower equipment is further improved.
In a second aspect, the present application provides a method for communicating a production device with 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, acquires an encapsulated data packet, and sends the encapsulated data packet to the upper system module;
after receiving the encapsulated data packet, the upper system module analyzes the encapsulated data packet based on the same communication protocol model to obtain an analyzed data packet;
after the upper system module obtains the analysis data packet, corresponding processing or response is executed based on the analysis data packet.
By adopting the technical scheme, the data packaging submodule for packaging the application data of the lower equipment arranged in the lower equipment module and the data analysis submodule for analyzing the application data arranged in the upper system module form a packaging-analysis system based on a preset communication protocol model, so that the data sent out by different lower equipment modules can conform to the same communication standard, the upper system module can analyze the data from different sources according to the same communication standard, the situation that each different equipment needs to independently develop the communication model is avoided, and the development cost of the communication system is reduced.
In a third aspect, the present application provides an intelligent terminal, which adopts the following technical scheme:
an intelligent terminal, the intelligent terminal includes a processor and a memory, where at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, where 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 to implement a method for communicating a production device based on socket communication with an upper system according to any one of the first aspects.
By adopting the technical scheme, the processor in the intelligent terminal can realize the communication method of 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 scheme:
a computer-readable storage medium having stored therein at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by a processor to implement a method of communicating a socket-based production apparatus with an upper system according to any one of the first aspects.
By adopting the technical scheme, corresponding programs can be stored, so that different lower equipment and upper systems can share communication standards, 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 packaging submodule used for packaging application data of the lower equipment and arranged in the lower equipment module and the data analysis submodule used for analyzing the application data arranged in the upper system module form a packaging-analysis system based on a preset communication protocol model, so that the data sent out by different lower equipment modules can conform to the same communication standard, and further the upper system module can analyze the data from different sources according to the same communication standard, the situation that each different equipment needs to independently develop the communication model is avoided, and the development cost of the communication system is reduced;
a group of sub-modules for realizing communication signal testing are arranged in the lower equipment and the upper system, so that the communication condition between the lower equipment and the upper system can be tested through the communication testing sub-module, the communication environment can be mastered by the auxiliary communication system, the step of processing application data under the condition of communication failure can be reduced, the waste of calculation force in the system is avoided, the communication condition can be mastered in time, the abnormal communication condition can be recorded and fed back in time, the occurrence of the situation that the emergency cannot be obtained through communication transmission can be reduced, and the safety of the system can be improved;
reporting the abnormal event and the alarm event is helpful for helping a user of the upper system to timely master the working condition of the lower equipment, further improving the working safety of the lower equipment, analyzing and preventing the fault condition through the data reported to the upper system, and further improving the safety of the lower equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a diagram of a communication system of a production device and an upper system based on socket communication according to an embodiment of the present application;
fig. 2 is a flowchart of a method for 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 flow chart illustrating a connection state of equipment in a communication method between a production device and an upper system based on socket communication in the embodiment of the present application;
fig. 4 is a schematic structural diagram of an intelligent terminal shown in an embodiment of the present application.
Reference numerals illustrate: 1. a lower equipment module; 11. an equipment application sub-module; 12. a data encapsulation sub-module; 13. a first communication sub-module; 2. an upper system module; 21. a system application sub-module; 22. a data analysis sub-module; 23. and a second communication sub-module.
Detailed Description
The present embodiments are to be considered as merely illustrative and not restrictive, and modifications may occur to those skilled in the art upon reading the present specification and may be made without inventive faculty thereto, and it is to be understood that the embodiments are to be considered as part of the embodiments, rather than all of them, unless they are to be protected by the patent laws in the scope of the appended claims.
The embodiment of the application provides a communication method of production equipment and an upper system based on socket communication, which can be applied to a communication system of the production equipment and the upper system based on socket communication, wherein an execution main body can be an intelligent terminal arranged in the upper system and is assisted by a detection device in lower equipment. As can be seen 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 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 the data received from the lower equipment module, and the upper system module can also actively send control instructions to the lower equipment module.
The process flow shown in fig. 2 will be described in detail with reference to the specific embodiments, and the following may be included:
step 201, the lower device module obtains a data packet to be transmitted.
In implementation, when there is a communication requirement between the lower device and the upper system, the lower device module may integrate and package the data to be transmitted to form a data packet. Specifically, the communication requirement is determined based on a lower device application in the lower device module, where the lower device application may include several aspects such as device status detection and device operation control, and when the lower device application triggers a scenario that needs to communicate with an upper system during execution, a data acquisition step before communication is actively performed. In addition, the lower equipment module can also respond to the signal of the upper system to passively acquire data and feed back the data to the upper system.
Therefore, the lower equipment module can acquire the data packet to be transmitted, and data transmission between the lower equipment module and an upper system is facilitated.
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, so the following processing may be further included before step 201: the lower equipment module sends a communication test signal to the upper system module, and after the upper system module receives the communication test signal, the upper system module responds and returns a signal of successful communication based on the communication test signal.
In implementation, the step of communication test may be initiated by an upper system module or may be initiated by a lower device module, and referring to fig. 3, taking the lower device initiation of communication test as an example, 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 fails; if the online reply of the upper system module is received, the subsequent processing can be performed.
Therefore, a group of sub-modules for realizing the communication signal test are arranged in the lower equipment and the upper system, so that the communication condition between the lower equipment and the upper system can be tested through the communication test sub-modules, the communication environment can be mastered by the auxiliary communication system, the step of processing application data under the condition of communication failure can be reduced, and the waste of calculation force in the system can be 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 acquires the data packet to be transmitted, the data and the instruction in the data packet follow the initial data specification of the lower device, but the initial data specification cannot be matched with the data specification of the upper system, if the data packet to be transmitted may be possibly caused by direct transmission, the data packet cannot be interpreted and applied normally. Therefore, before the data packet is sent, the lower equipment module can translate the data packet so that the data or instructions in the data packet can conform to a preset 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 conforms to a preset communication protocol model, so that the upper system module can be ensured to normally use the data in the encapsulated data packet after receiving the encapsulated data packet.
Specifically, the preset communication protocol model can be defined and preset by a user, and because the communication relationship between the upper system module and the lower equipment module is bidirectional in application, the communication protocol model is applied in the upper system module and the lower equipment module at the same time. The method can name the data communication between the lower equipment and the upper system, define the active and passive directions of the initiation of the data communication flow and classify the data communication. According to basic functions, the functions of data communication can be divided into 7 categories, such as equipment connection and state (BME 0 XX), upper master control (BME 1 XX), processing batch correlation (BME 2 XX), operation control (BME 3 XX), equipment data (BME 5 XX), process formula (BME 6 XX), master control notification (BME 9 XX) and the like, so as to realize the complete functions of the automatic equipment:
device on line and status (BME 0 XX): a communication test request and the like transmitted in a two-way between the lower equipment and the upper system; a communication establishment request, a connection request, an off-line request, a device state change report and the like which are sent by lower-level devices to an upper-level system;
upper master (BME 1 XX): a time setting request and the like sent by lower equipment to an upper system; a master control command sent by the upper system to the lower equipment, and the like;
processing lot correlation (BME 2 XX): the lower equipment sends equipment login and logout, material inspection, ID matching, carrier login and logout, equipment information request and the like to the upper system;
job control (BME 3 XX): the lower equipment sends operator permission checking to the upper system;
device data (BME 5 XX): the lower level equipment sends an equipment abnormal event report, an equipment alarm event report, a QC check result report, an equipment parameter report and the like to the upper level system; a device parameter request sent by the upper system to the lower device, etc.;
process recipe (BME 6 XX): job inquiry and the like sent by the upper system to the lower equipment; an ID request, a file downloading request and the like sent by lower equipment to an 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-level equipment can be translated based on the communication specification shared between the lower-level equipment and the upper-level system, so that the data can be successfully transmitted and applied.
And 203, after receiving the encapsulated data packet, the upper system module analyzes 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 can be parsed based on the same preset communication protocol model to obtain a parsed data packet, and the parsed data packet is the available data and instructions.
In one embodiment, the automatic production equipment has high requirement on safety, and illegal operation may cause economic and even human injury, so that the corresponding communication method between the production equipment based on socket communication and the upper system can further comprise the following processing: the upper system module obtains the identity information of the user, and the identity information is searched and compared with a preset user database to obtain a verification result.
In practice, when identity information matched with the user exists in the user database, the user can be considered to be successful in verification, otherwise, the user can be considered to be failed in verification. The upper system module can feed back the verification failure condition and refuses to receive the input information of the current user. When the verification is successful, the upper system module can distribute the appointed operation authority to the user according to the identity information of the user.
Thus, the identity of an operator of the upper system is verified, the possibility that the lower equipment is controlled by personnel with abnormal identity is further reduced, the safety of the system is improved, meanwhile, different use identities can correspond to different operation authorities, the operation authorities are distinguished and distributed, the flexibility of the upper system in use authorization is improved, and the use efficiency of the communication system is fully improved.
And 204, after the upper system module acquires the analysis data packet, executing corresponding processing or response based on the analysis data packet.
In an implementation, after the upper system module obtains the parsed data packet, corresponding processing or responding may be performed based on available data and instructions in the parsed data packet.
In one embodiment, a fault may be sent during operation of the device, and accordingly, step 204 may include the following processing: acquiring operation state parameters of lower equipment, dividing the change range of the operation state parameters into normal, abnormal and alarm areas; and feeding back 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 running 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 the production equipment and the upper system based on socket communication, which comprises: the lower equipment module 1 and the upper system module 2, wherein the lower equipment module 1 comprises an equipment application sub-module 11, a data encapsulation sub-module 12 and a first communication sub-module 13, and the upper system module 2 comprises a system application sub-module 21, a data analysis sub-module 22 and a second communication sub-module 23;
the device application submodule 11 is used for realizing the device application function of the lower device;
the data encapsulation submodule 12 is configured to translate and encapsulate the instruction and the data output by the device application based on a preset communication protocol model, so as to 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 sub-module 21 is configured to implement a system application function of the upper system;
the data parsing sub-module 22 is configured to parse the received data transmission packet based on a preset communication protocol model, so as to obtain an instruction and data;
the second communication sub-module 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, and the upper system module 2 further includes a second communication test sub-module, where 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, where the user verification sub-module is configured to perform comparison verification on identity information of a user to obtain a verification result.
In a specific embodiment, the upper system module 2 includes a permission dividing sub-module, where the permission dividing sub-module is configured to open, according to an authentication result of a user, an operation permission of an application function corresponding to the authentication result to the user.
In a specific embodiment, the system application functions include at least equipment on-line and status, upper level 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, where the device detection sub-module is configured to detect and control a working condition of the lower device.
In a specific embodiment, the lower device module 1 includes a device event reporting sub-module, where the device event reporting sub-module is configured to feed back a device event to the upper system module 2 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.
The embodiment of the application also discloses an intelligent terminal, referring to fig. 4, the intelligent terminal comprises a memory and a processor, and the memory stores a computer program which can be loaded by the processor and execute the communication method of the production equipment and the upper system based on socket communication.
Based on the same technical concept, the embodiment of the application also discloses a computer readable storage medium, which comprises all steps in the communication method flow of the production equipment and the upper system based on socket communication, wherein the steps can be realized when the production equipment and the upper system are loaded and executed by a processor.
The computer-readable storage medium includes, for example: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be clearly understood by those skilled in the art that, for convenience and simplicity of description, only the above-mentioned division of each functional module is illustrated, in practical application, the above-mentioned functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above-mentioned functions, and the specific working processes of the above-mentioned system, device and unit may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding that the technical solution of the present application is essentially or partly contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
The foregoing embodiments are only used for describing the technical solution of the present application in detail, but the descriptions of the foregoing embodiments are only used for helping to understand the method and the core idea of the present application, and should not be construed as limiting the present application. Variations or alternatives that are readily contemplated by those skilled in the art within the scope of the present disclosure are intended to be encompassed within the scope of the present disclosure.

Claims (6)

1. A communication system of production equipment and an upper system based on socket communication is characterized in that: the system comprises a lower equipment module (1) and an upper system module (2), wherein the lower equipment module (1) comprises an equipment application sub-module (11), a data encapsulation sub-module (12) and a first communication sub-module (13), and the upper system module (2) comprises a system application sub-module (21), a data analysis sub-module (22) and a second communication sub-module (23);
the lower equipment module is used for acquiring a data packet to be transmitted; when the communication requirement exists between the lower equipment and the upper system, integrating and packaging the data to be transmitted by the lower equipment module to form a data packet; the communication requirement is determined based on a lower equipment application in a lower equipment module, the lower equipment application comprises equipment state detection and equipment operation control, and when the lower equipment application triggers a scene needing to communicate with an upper system in the executing process, data acquisition before communication is actively carried out;
the equipment application submodule (11) is used for realizing the equipment application function of the lower-level equipment;
the data packaging submodule (12) is used for translating and packaging the instruction and the data output by the 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 sub-module (21) is used for realizing the system application function of the upper system; the system application functions at least comprise equipment connection and state, upper master control, processing batch correlation, operation control, equipment data, process formula and master control notification;
the data analysis sub-module (22) is used for analyzing the received data transmission packet based on a preset communication protocol model to obtain instructions and data;
the second communication sub-module (23) is used for realizing data communication transmission between the lower equipment module (1) and the upper system module (2);
the lower equipment module (1) further comprises a first communication test sub-module, the upper system module (2) further comprises a second communication test sub-module, and the first communication test sub-module and the second communication test sub-module at least comprise functions of sending communication test signals and receiving and responding to the communication test signals;
the lower equipment module (1) comprises an equipment detection sub-module, and the equipment detection sub-module is used for detecting and controlling the working condition of lower equipment;
the lower equipment module (1) comprises an equipment event reporting sub-module, wherein the equipment event reporting sub-module is used for feeding back equipment events to the upper system module (2) based on the working condition of lower equipment, and the equipment events at least comprise equipment abnormal events and equipment alarm events;
the preset communication protocol model can name the data communication between the lower equipment module and the upper system module, define the active and passive directions initiated by the data communication flow and classify the data communication;
the preset communication protocol model can also define a start symbol, an end symbol, a field separator and a field list separator of data communication.
2. The socket communication-based communication system of production equipment and an upper system according to claim 1, wherein: the upper system module (2) comprises a user verification sub-module, and the user verification sub-module is used for comparing and verifying the identity information of the user so as to obtain a verification result.
3. The socket communication-based communication system of the production equipment and the upper system according to claim 2, wherein: the upper system module (2) comprises a permission dividing sub-module which is used for opening the operation permission of the application function corresponding to the verification result to the user according to the identity verification result of the user.
4. A communication method of production equipment and an upper system based on socket communication is characterized by comprising the following steps: the method comprises the following steps:
the lower equipment module acquires a data packet to be transmitted;
when the communication requirement exists between the lower equipment and the upper system, integrating and packaging the data to be transmitted by the lower equipment module to form a data packet; the communication requirement is determined based on a lower equipment application in a lower equipment module, the lower equipment application comprises equipment state detection and equipment operation control, and when the lower equipment application triggers a scene needing to communicate with an upper system in the executing process, data acquisition before communication is actively carried out;
the lower equipment module translates and encapsulates the data packet based on a preset communication protocol model, acquires an encapsulated data packet, and sends the encapsulated data packet to the upper system module;
after receiving the encapsulated data packet, the upper system module analyzes the encapsulated data packet based on the same communication protocol model to obtain an analyzed data packet;
after the upper system module obtains the analysis data packet, corresponding processing or response is executed based on the analysis data packet;
the lower equipment module further comprises: the lower equipment module sends a communication test signal to the upper system module, and after the upper system module receives the communication test signal, the upper system module responds and returns a signal of successful communication based on the communication test signal;
the preset communication protocol model can name the data communication between the lower equipment module and the upper system module, define the active and passive directions initiated by the data communication flow and classify the data communication; according to the basic functions, the data communication functions are divided into equipment connection and state, upper master control, processing batch correlation, operation control, equipment data, process formula and master control notification;
the preset communication protocol model can also define a start symbol, an end symbol, a field separator and a field list separator of data communication;
after the upper system module obtains the analysis data packet, the corresponding processing or response is executed based on the analysis data packet, and then the upper system module further comprises: acquiring operation state parameters of lower equipment, dividing the change range of the operation state parameters into normal, abnormal and alarm areas; and feeding back 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.
5. An intelligent terminal, characterized in that the intelligent terminal comprises a processor and a memory, 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 to realize a communication method between a production device based on socket communication and an upper system according to claim 4.
6. 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 a method for communicating a socket-based production apparatus with a host system according to claim 4.
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 CN114553977A (en) 2022-05-27
CN114553977B true 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891795B (en) * 2012-10-11 2016-12-21 上海金自天正信息技术有限公司 A kind of industrial security communication gateway
CN106330593B (en) * 2015-07-01 2021-03-26 中兴通讯股份有限公司 Protocol detection method and device
CN106603581B (en) * 2017-02-22 2020-04-07 欣旺达电子股份有限公司 Test method and device supporting multiple communication protocols
CN113938529A (en) * 2021-08-30 2022-01-14 上海威派格智慧水务股份有限公司 Multi-protocol conversion access system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114553977A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
EP1573407B1 (en) Method to increase the safety integrity level of a control system
US10574671B2 (en) Method for monitoring security in an automation network, and automation network
CN104243216A (en) Maintenance method and device of cluster server
CN108604084B (en) Method and device for monitoring data processing and transmission in a security chain of a security system
CN113360475B (en) Data operation and maintenance method, device and equipment based on intranet terminal and storage medium
CN115311825B (en) Method and device for pushing alarm data of PCB (printed circuit board) equipment, computer equipment and storage medium
KR20170120029A (en) Method and device for preventing manipulation of a data transmission
KR20150070191A (en) Method and system for removing fault of internet of things gateway
CN114553977B (en) Communication system of production equipment and upper system based on socket communication
CN113904955A (en) Detection method, device and system of data transmission link
CN116882125A (en) Method, device, equipment and storage medium for testing performance of vehicle chassis
CN111754653A (en) Embedded system on an aircraft for detecting and responding to incidents using logging
CN105491118B (en) A kind of avionics Ethernet data loading system
CN113589790B (en) Servo driver based on fingerprint of servo driver and controller safety access method
CN112787863B (en) Remote operation and maintenance secure communication method and device and computer readable storage medium
CN113238880A (en) File processing method and equipment based on RPA robot
US20160011932A1 (en) Method for Monitoring Software in a Road Vehicle
KR101609228B1 (en) Distributed device type-intelligent system based on real-time abnormality judgment and response capabilities software
CN113347022B (en) Civil aircraft airborne information system network security capability detection system and method
CN109743282B (en) Industrial control protocol-based high-risk safety risk identification method and device
US11928203B2 (en) Method and test environment for providing an application for a computer controlled component
CN117369398B (en) Pipeline verification centralized control method based on unified simplified control instruction set
CN113703308B (en) Multi-machine cooperative control method
CN115001821B (en) Communication safety protection system for numerical control machine tool based on USB communication
CN118400712A (en) Vehicle information synchronous processing method, vehicle management system, device and equipment

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