Software communication method, apparatus and device
Patent Information
- Application Number
- CN202311615569.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-11-28
AI Technical Summary
[0004]本发明提供一种软件通信方法、装置及设备,用于解决如PS之类的集成模拟优化平台与PLC之类的虚拟控制引擎之间的联调往往需要通过付费的通信模块如kepServer才能实现通信和通信数量级较大的时候通信较慢的问题
[0009]本发明提供的技术方案中,将至少一个第一类3D模型单体分别预存于所述虚拟控制引擎中,其中,所述每个第一类3D模型单体对应唯一的第一类指定信号;利用所述虚拟控制引擎对应的第一类应用程序,监控所述虚拟控制引擎中是否产生第一类指定信号,一旦监控到所述第一类指定信号的产生,则所述软件通信方法抓取所述第一类指定信号;为通信模块指定集成模拟优化平台侧与虚拟控制引擎侧,并利用所述通信模块将抓取到的所述第一类指定信号从所述虚拟控制引擎侧发送至所述集成模拟优化平台侧;将位于所述集成模拟优化平台侧的所述第一类指定信号进行格式转换以确保所述集成模拟优化平台可以识别读取,之后利用所述集成模拟优化平台对应的第二类应用程序,将所述第一类指定信号传递给所述集成模拟优化平台。本发明实施例实现了通过将至少一个第一类3D模型单体预存在虚拟控制引擎中,使抓取到的第一类指定信号的数量级变大,通过通信模块实现集成模拟优化平台与虚拟控制引擎之间的无硬件通信,进而提高大数量级的通信速度。
Smart Images

Figure CN117742984B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software communication technology, and in particular to a software communication method, apparatus, and device. Background Technology
[0002] A PLC (Programmable Logic Controller) is a digital electronic system specifically designed for industrial applications. It is a microprocessor-based digital controller used for automation control. PS (Process Simulation, an integrated simulation optimization platform) is software developed by Siemens for process simulation.
[0003] Typically, if you want to use the PS virtual debugging environment to debug the PLC program, communication between the two often requires a paid communication module such as kepServer. Even if communication is achieved through the above method, it can only support a small number of 3D models. When the number reaches tens of thousands or more, this communication becomes quite slow and cannot be used in practice. Summary of the Invention
[0004] This invention provides a software communication method, apparatus, and device to solve the problem that joint debugging between integrated simulation optimization platforms such as PS and virtual control engines such as PLC often requires the use of paid communication modules such as kepServer, and that communication is slow when the number of communication requests is large.
[0005] The first aspect of this invention provides a software communication method for integrating communication between a simulation optimization platform and a virtual control engine, comprising: pre-storing at least one first-type 3D model unit in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal; using a first-type application corresponding to the virtual control engine to monitor whether the first-type designated signal is generated in the virtual control engine, and once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal; designating the integrated simulation optimization platform side and the virtual control engine side for the communication module, and using the communication module to send the captured first-type designated signal from the virtual control engine side to the integrated simulation optimization platform side; converting the format of the first-type designated signal located on the integrated simulation optimization platform side to ensure that the integrated simulation optimization platform can recognize and read it, and then using a second-type application corresponding to the integrated simulation optimization platform to transmit the first-type designated signal to the integrated simulation optimization platform.
[0006] A second aspect of the present invention provides a software communication device for integrating communication between a simulation optimization platform and a virtual control engine, comprising: a pre-storage module for pre-storing at least one first-type 3D model unit in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal; a monitoring module for monitoring whether the first-type designated signal is generated in the virtual control engine using a first-type application corresponding to the virtual control engine, and once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal; a capture module for specifying the integrated simulation optimization platform side and the virtual control engine side for the communication module, and using the communication module to send the captured first-type designated signal from the virtual control engine side to the integrated simulation optimization platform side; and a transmission module for converting the format of the first-type designated signal located on the integrated simulation optimization platform side to ensure that the integrated simulation optimization platform can recognize and read it, and then using a second-type application corresponding to the integrated simulation optimization platform to transmit the first-type designated signal to the integrated simulation optimization platform.
[0007] A third aspect of the present invention provides a computer device, comprising: a memory and at least one processor, wherein the memory stores a computer program; the at least one processor invokes the computer program in the memory to cause the software communication device to execute the above-described software communication method.
[0008] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the software communication method described above.
[0009] In the technical solution provided by this invention, at least one first-type 3D model unit is pre-stored in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal. A first-type application corresponding to the virtual control engine is used to monitor whether a first-type designated signal is generated in the virtual control engine. Once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal. An integrated simulation optimization platform side and a virtual control engine side are designated for the communication module, and the captured first-type designated signal is sent from the virtual control engine side to the integrated simulation optimization platform side using the communication module. The first-type designated signal located on the integrated simulation optimization platform side is format-converted to ensure that the integrated simulation optimization platform can recognize and read it. Then, a second-type application corresponding to the integrated simulation optimization platform is used to transmit the first-type designated signal to the integrated simulation optimization platform. This embodiment of the invention achieves a significant increase in the number of captured first-type designated signals by pre-stored at least one first-type 3D model unit in the virtual control engine, and realizes hardware-free communication between the integrated simulation optimization platform and the virtual control engine through the communication module, thereby improving communication speed by a large margin. Attached Figure Description
[0010] Figure 1 This is a structural framework diagram of the software communication method in an embodiment of the present invention;
[0011] Figure 2 This is a schematic diagram of a framework structure of the communication module of the software communication method in an embodiment of the present invention;
[0012] Figure 3 This is a schematic diagram of one embodiment of the software communication method in this invention;
[0013] Figure 4 This is a timing diagram of a software communication method in an embodiment of the present invention;
[0014] Figure 5 This is a schematic diagram of another embodiment of the software communication method in this invention;
[0015] Figure 6 This is another timing diagram of the software communication method in an embodiment of the present invention;
[0016] Figure 7 This is a schematic diagram of one embodiment of the software communication device in this invention;
[0017] Figure 8 This is a schematic diagram of one embodiment of the software communication device in this invention. Detailed Implementation
[0018] This invention provides a software communication method, apparatus, and device. Through a software-based communication module, it enables communication between signals within an integrated simulation optimization platform and signals within a virtual control engine, thereby achieving hardware-free communication between the integrated simulation optimization platform and the virtual control engine. By pre-storing at least one first-type 3D model unit in the virtual control engine, the order of magnitude of the captured first-type specified signals is increased, thereby improving the speed of large-scale communication.
[0019] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0020] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 A conceptual framework diagram of the software communication method in this embodiment of the invention;
[0021] The aforementioned software communication method is used for communication between the integrated simulation optimization platform and the virtual control engine, and includes: PS (integrated simulation optimization platform), communication module and PLC (virtual control engine);
[0022] The aforementioned communication module captures the first type of specified signal generated internally by the PS through the PS-based API (Application Programming Interface), i.e., the application corresponding to the PS.
[0023] The aforementioned communication module captures the second type of specified signal generated internally by the PLC through the PLC-based API, i.e., the application program corresponding to the PLC.
[0024] The aforementioned communication module sends the first type of specified signal captured by the PS-based API to the PLC.
[0025] The aforementioned communication module sends the second type of specified signal captured by the PLC's API to the PS.
[0026] PS, mentioned above, is software for simulating technological processes. The essence of simulation is to realistically reproduce the various movements and postures of equipment during a technological process in a virtual environment. Therefore, to perform process simulations related to equipment, we must first make the equipment "move." The tool used in PS to define the kinematics of equipment is "KinematicsEditor." After setting the equipment model to modeling mode, we can use it to define the kinematics. Defining the kinematics of equipment is a process that requires creating kinematic chains of links and joints. The order of the kinematic chains is determined by the relationships between the links. Parent links precede child links in sequence. When a parent link moves, the child links will follow.
[0027] The basic components of a PLC can be divided into two main parts: the hardware system and the software system. In this application, PLC (Virtual Control Engine) refers to the PLC's software system. The software system refers to a complete set of programs that manage, control, and use the PLC to ensure its normal operation. The PLC software consists of system programs and user programs. The system program is the program that controls and completes various functions of the PLC, focusing on managing the PLC's various resources, controlling and coordinating the normal operation and relationships of various hardware components to fully utilize the efficiency of the entire programmable controller and facilitate direct use by users. The system program is designed and written by the PLC manufacturer and stored in the PLC's system memory; users cannot directly read, write, or modify it. The system program generally includes system diagnostic programs, input processing programs, compilers, information transmission programs, and monitoring programs. The user program is the control program written by the user according to the production process requirements. It focuses on application and the logical control relationship between inputs and outputs. The PLC user program is a program written by the user using the PLC's programming language according to the control requirements. In the application of PLC, the most important aspect is writing user programs using the PLC's programming language to achieve the control objectives.
[0028] Typically, the PS (Power Supply System) can create or import 3D models and perform simulation operations on these models; similarly, the PLC (Programmable Logic Controller) can create or import 3D models and perform simulation operations on these models. In some embodiments, there is a one-to-one correspondence between the 3D models in the PS and the 3D models in the PLC.
[0029] In PS, each 3D model has specific signals to indicate its position, motion state (displacement, velocity, acceleration, etc. in 3D space), and some are used to issue commands to other 3D models associated with it. Some of these signals are used to define or redefine the state of the 3D model and its related 3D models during the simulation process, some are used to change the logical relationship between the 3D model and the entire 3D model and / or its related 3D models, and some are used for other purposes. They are crucial information in the entire integrated simulation optimization platform. The first type of designated signals in PS includes, but is not limited to, the above information.
[0030] In a PLC, each 3D model has specific signals to indicate its position, motion state (displacement, velocity, acceleration, etc. in three-dimensional space), and some are used to issue commands to other 3D models associated with it. Some of these signals are used to define or redefine the state of the 3D model and its related 3D models during the simulation process, some are used to change the logical relationship between the 3D model and the entire 3D model and / or its related 3D models, and some are used for other purposes. They are crucial information in the entire integrated simulation optimization platform. The second type of designated signals inside the PLC includes, but is not limited to, the above information.
[0031] The aforementioned software communication methods also include: HMI (Human Machine Interface).
[0032] The aforementioned communication module captures the first type of specified signal generated inside the PLC through the PLC-based API, i.e., the application corresponding to the PLC, and sends the captured first type of specified signal to the HMI using the HMI-based API, i.e., the application corresponding to the HMI.
[0033] The aforementioned HMI serves as a medium for interaction and / or information exchange between the system and the user, enabling the conversion between the internal form of information and a human-readable form. For example, an HMI might be a touchscreen. When a user operates on a touchscreen HMI, it generates action commands related to the PLC. These action commands, after being transmitted to the PLC, can manipulate the pre-stored 3D models within the PLC, changing their state or relative position logic. The third type of instruction signals within the HMI includes, but is not limited to, the aforementioned action commands.
[0034] The aforementioned communication module captures the third type of specified signal generated internally by the HMI terminal through the HMI-based API, i.e., the application corresponding to the HMI, and sends it to the PLC using the PLC-based API and the PLC-based application.
[0035] In some embodiments, if the first type of specified signal inside the PLC and the third type of specified signal inside the HMI follow the same or similar rules, or if they can be recognized by each other without re-encoding, then the communication module can directly send the first type of specified signal inside the PLC to the HMI without transmitting it through the HMI's API; similarly, the communication module can directly send the third type of specified signal inside the HMI to the PLC without transmitting it through the PLC's API.
[0036] Please see Figure 2 A schematic diagram of a communication module of the software communication method in this embodiment of the invention;
[0037] The aforementioned communication modules include: a communication module with the PS side, a communication module with the software PLC side, and a hierarchical communication protocol framework module;
[0038] In some embodiments, the communication module further includes: a communication module with the HMI;
[0039] The aforementioned communication module with the PS can call the application corresponding to the PS, or has a pre-stored application corresponding to the PS; the aforementioned communication module with the PS can access the internal workings of the PS through the application corresponding to the PS, monitor and capture the first type of specified signal generated inside the PS;
[0040] The aforementioned communication module with the software PLC side is used to obtain signals sent by the software PLC terminal captured by the application program corresponding to the software PLC.
[0041] The aforementioned hierarchical communication protocol framework module is used to receive signals sent by the PS terminal and the software PLC terminal, and determine the corresponding target communication protocol based on the signals.
[0042] The aforementioned communication module also includes: a communication module with the HMI side;
[0043] The aforementioned communication module with the HMI side is used to obtain signals sent by the HMI terminal captured by the application corresponding to the HMI.
[0044] Please see Figure 3 One embodiment of the software communication method in this invention, the software communication method being used to integrate communication between a simulation optimization platform and a virtual control engine, includes:
[0045] Step 302: Pre-store at least one first-class 3D model unit in the virtual control engine, wherein each first-class 3D model unit corresponds to a unique first-class designated signal.
[0046] It is understood that the executing entity of this invention can be a terminal or a server, and no specific limitation is made here. This embodiment of the invention will be described using a server as an example.
[0047] The first type of 3D model unit mentioned above can be a 3D model unit pre-stored in the virtual control engine; a 3D model unit distinguishes objects individually, making them more suitable for use and calculation. For example, a 3D model unit can refer to a geographic scene such as an oblique photogrammetry 3D model or laser point cloud, which, through operations such as cutting, reconstruction, and vector overlay, constructs geographic entities into independent 3D objects that can independently express, attach attributes, and perform query statistics and analysis.
[0048] Step 304: Using the first type of application corresponding to the virtual control engine, monitor whether a first type of specified signal is generated in the virtual control engine. Once the generation of the first type of specified signal is detected, the software communication method captures the first type of specified signal.
[0049] The aforementioned first type of application can be any application corresponding to the virtual control engine; the aforementioned first type of specified signal can be a single signal or a group of signals. The aforementioned first type of application is used to monitor the first type of specified signal generated internally by the virtual control engine, and directly captures the first type of specified signal after its generation.
[0050] Optionally, the first type of designated signal includes sensor signals and / or action commands corresponding to the first type of 3D model unit.
[0051] The above action commands can be preset.
[0052] The sensor signals mentioned above can be basically divided into two categories: analog signals, namely voltage signals or current signals, which are used to provide analog input signals to devices such as PLCs.
[0053] For example, pressure transmitter signals, level transmitter signals, temperature transmitter signals, differential pressure transmitter signals, valve opening feedback signals, etc., are all analog signals.
[0054] Additional information: Standard voltage signals are typically 1V-5V, and standard current signals are typically 4mA-20mA. Of course, there are other voltage and current signals as well.
[0055] Digital signals: Types of digital signal sensors: valve open signal, valve close signal, proximity switch on / off signal, infrared sensing signal, etc.
[0056] Digital signals typically have two states, 0 and 1, which represent on or off, and are used to provide on / off signals to devices such as PLCs.
[0057] Step 306: Specify the integrated simulation optimization platform side and the virtual control engine side for the communication module, and use the communication module to send the captured first type of specified signal from the virtual control engine side to the integrated simulation optimization platform side.
[0058] The communication module includes an integrated simulation optimization platform side and a virtual control engine side; the integrated simulation optimization platform side and the virtual control engine side can communicate with each other using a communication protocol. The captured first type of specified signal is sent from the virtual control engine side to the integrated simulation optimization platform side.
[0059] The TCP / IP network model in the aforementioned layered communication protocol framework, which governs the numerous protocols that internet communication adheres to, is collectively referred to as TCP / IP. The TCP / IP network model, from top to bottom, consists of: Application Layer: providing application layer interfaces; common protocols include HTTP (Hypertext Transfer Protocol) and FTP (File Transfer Protocol); Transport Layer: enabling end-to-end computer connections; common protocols include TCP (Transmission Control Protocol) and UDP (User Datagram Protocol); Internet Layer: handling addressing and routing; common protocols include IP (Internet Protocol) and ICMP (Internet Control Message Protocol); and Network Interface Layer: handling binary data stream transmission and media access; common protocols include PPP (Point-to-Point Protocol).
[0060] Step 308: The first type of designated signal located on the integrated simulation optimization platform side is format converted to ensure that the integrated simulation optimization platform can recognize and read it. Then, the first type of designated signal is transmitted to the integrated simulation optimization platform using the second type of application corresponding to the integrated simulation optimization platform.
[0061] Because the signals generated by the integrated simulation optimization platform and the virtual control engine are different, they cannot communicate directly. Therefore, the first type of specified signal located on the integrated simulation optimization platform side undergoes format conversion to ensure that the integrated simulation optimization platform can recognize and read it. Then, the first type of specified signal is transmitted to the integrated simulation optimization platform using the second type of application corresponding to the integrated simulation optimization platform. The aforementioned second type of application can be any application corresponding to the integrated simulation optimization platform.
[0062] Optionally, by using the first type of application corresponding to the virtual control engine to monitor whether a first type of specified signal is generated in the virtual control engine, and once the generation of the first type of specified signal is detected, the software communication method captures the first type of specified signal, and the method further includes: using the third type of application corresponding to the human-machine interface to send the first type of specified signal to the human-machine interface.
[0063] The executing entity can send the first type of specified signal to the human-machine interface through the human-machine interface-specific API.
[0064] Optionally, the method also performs the following steps in parallel: using the third type of application corresponding to the human-machine interface to monitor whether a third type of designated signal is generated inside the human-machine interface; once the generation of the third type of designated signal is detected, the software communication method captures the third type of designated signal and immediately transmits the captured third type of designated signal to the virtual control engine through the first type of application.
[0065] The aforementioned third type of application can be any application corresponding to the human-machine interface; the aforementioned third type of application is used to monitor whether a third type of specified signal is generated inside the human-machine interface, and after it is generated, directly capture the third type of specified signal and transmit the third type of specified signal to the virtual control engine through the first type of application; the aforementioned third type of specified signal can be a single signal or a group of signals.
[0066] In this embodiment of the invention, at least one first-type 3D model unit is pre-stored in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal. A first-type application corresponding to the virtual control engine is used to monitor whether a first-type designated signal is generated in the virtual control engine. Once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal. An integrated simulation optimization platform side and a virtual control engine side are designated for the communication module, and the captured first-type designated signal is sent from the virtual control engine side to the integrated simulation optimization platform side using the communication module. The first-type designated signal located on the integrated simulation optimization platform side is format-converted to ensure that the integrated simulation optimization platform can recognize and read it. Then, a second-type application corresponding to the integrated simulation optimization platform is used to transmit the first-type designated signal to the integrated simulation optimization platform. This embodiment of the invention achieves a significant increase in the number of captured first-type designated signals by pre-stored at least one first-type 3D model unit in the virtual control engine, and enables hardware-free communication between the integrated simulation optimization platform and the virtual control engine through the communication module, thereby improving communication speed by a large margin.
[0067] Please see Figure 4 A timing diagram of a software communication method in an embodiment of the present invention;
[0068] The aforementioned software communication methods include: integrating a simulation optimization platform, a virtual control engine, and a communication module;
[0069] The aforementioned virtual control engine sometimes generates a first-type specified signal during operation;
[0070] The aforementioned communication module utilizes the first type of application corresponding to the virtual control engine to monitor whether a first type of specified signal is generated within the virtual control engine, and determines whether the first type of specified signal is detected. If no first type of specified signal is detected, it continues to monitor whether a first type of specified signal is generated within the virtual control engine. If the first type of specified signal is detected, it captures the first type of specified signal; uses the TCP / IP communication protocol to send the first type of specified signal to the integrated simulation optimization platform; uses the first type of application corresponding to the virtual control engine to perform format conversion on the first type of specified signal; and sends the converted first type of specified signal to the integrated simulation optimization platform.
[0071] The aforementioned integrated simulation optimization platform determines whether it has received the converted first-type designated signal; if not, the integrated simulation optimization platform continues to operate normally; if it has received the signal, it executes the received converted first-type designated signal.
[0072] Please see Figure 5 Another embodiment of the software communication method in this invention includes:
[0073] Step 502: Using the second type of application corresponding to the integrated simulation optimization platform, monitor whether a second type of specified signal is generated in the integrated simulation optimization platform. Once the generation of the second type of specified signal is detected, the software communication method captures the second type of specified signal.
[0074] The second type of application described above is used to monitor the second type of specified signals generated within the integrated simulation optimization platform, and directly captures the second type of specified signals after they are generated. The second type of specified signal can be a single signal or a group of signals.
[0075] Optionally, when using the second type of application corresponding to the integrated simulation optimization platform to monitor whether a second type of designated signal is generated in the integrated simulation optimization platform, and before the software communication method captures the second type of designated signal, the method further includes: pre-storing at least one second type of 3D model unit in the virtual control engine, wherein each second type of 3D model unit corresponds to a unique second type of designated signal.
[0076] The aforementioned second type of 3D model unit can be a 3D model unit pre-stored in the integrated simulation optimization platform.
[0077] Optionally, the second type of designated signal includes sensor signals and / or action commands corresponding to the second type of 3D model unit.
[0078] Optionally, the first type of 3D model unit corresponds one-to-one with the second type of 3D model unit.
[0079] Step 504: Specify the integrated simulation optimization platform side and the virtual control engine side for the communication module, and use the communication module to send the second type of specified signal from the integrated simulation optimization platform side to the virtual control engine side.
[0080] The captured second type of designated signal is sent from the integrated simulation optimization platform side to the virtual control engine side.
[0081] Step 506: Convert the format of the second type of designated signal located on the virtual control engine side to ensure that the virtual control engine can recognize and read it. Then, use the first type of application corresponding to the virtual control engine to transmit the second type of designated signal to the virtual control engine.
[0082] The second type of specified signal is converted into a signal that the virtual control engine can recognize. Then, the first type of application corresponding to the virtual control engine is used to transmit the second type of specified signal to the virtual control engine.
[0083] In this embodiment of the invention, a second type of application corresponding to the integrated simulation optimization platform is used to monitor whether a second type of specified signal is generated in the integrated simulation optimization platform. Once the generation of the second type of specified signal is detected, the software communication method captures the second type of specified signal; the communication module is configured to connect the integrated simulation optimization platform side and the virtual control engine side, and the communication module is used to send the second type of specified signal from the integrated simulation optimization platform side to the virtual control engine side; the format of the second type of specified signal located on the virtual control engine side is converted to ensure that the virtual control engine can recognize and read it, and then the first type of application corresponding to the virtual control engine is used to transmit the second type of specified signal to the virtual control engine. This embodiment of the invention achieves hardware-free communication between the integrated simulation optimization platform and the virtual control engine based on the detected specified signal and the corresponding target communication protocol.
[0084] Please see Figure 6 Another timing diagram of the software communication method in this embodiment of the invention;
[0085] The aforementioned software communication methods include: integrating a simulation optimization platform, a virtual control engine, and a communication module;
[0086] The aforementioned integrated simulation optimization platform sometimes generates a second type of specified signal during operation;
[0087] The aforementioned communication module utilizes the second type of application corresponding to the integrated simulation optimization platform to monitor whether a second type of specified signal is generated within the integrated simulation optimization platform, and determines whether the second type of specified signal is detected. If no second type of specified signal is detected, it continues to monitor whether a second type of specified signal is generated within the integrated simulation optimization platform. If the second type of specified signal is detected, it captures the second type of specified signal; uses the TCP / IP communication protocol to send the second type of specified signal to the virtual control engine side; uses the second type of application corresponding to the integrated simulation optimization platform to perform format conversion on the second type of specified signal; and sends the converted second type of specified signal to the virtual control engine.
[0088] The virtual control engine determines whether it has received the converted second type of designated signal; if it has not received it, the virtual control engine continues to operate normally; if it has received it, it executes the received converted second type of designated signal.
[0089] The software communication method in the embodiments of the present invention has been described above. The software communication device 700 in the embodiments of the present invention is described below. The software communication device 700 is used to integrate communication between the simulation optimization platform and the virtual control engine. Please refer to [link to relevant documentation]. Figure 7 One embodiment of the software communication device in this invention includes:
[0090] The pre-storage module 701 is used to pre-storage at least one first-type 3D model unit in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal;
[0091] The monitoring module 702 is used to monitor whether a first type of specified signal is generated in the virtual control engine using the first type of application corresponding to the virtual control engine. Once the generation of the first type of specified signal is detected, the software communication method captures the first type of specified signal.
[0092] The capture module 703 is used to specify the integrated simulation optimization platform side and the virtual control engine side for the communication module, and to use the communication module to send the captured first type of specified signal from the virtual control engine side to the integrated simulation optimization platform side;
[0093] The transmission module 704 is used to convert the format of the first type of specified signal located on the integrated simulation optimization platform side to ensure that the integrated simulation optimization platform can recognize and read it, and then use the second type of application corresponding to the integrated simulation optimization platform to transmit the first type of specified signal to the integrated simulation optimization platform.
[0094] The functions of each module in the above-mentioned software communication device correspond to the steps in the above-mentioned software communication method embodiments, and their functions and implementation processes will not be described in detail here.
[0095] Optionally, the device further executes the following steps in parallel: a second application monitoring module, used to monitor whether a second type of designated signal is generated in the integrated simulation optimization platform using a second type of application corresponding to the integrated simulation optimization platform; once the generation of the second type of designated signal is detected, the software communication method captures the second type of designated signal; a second application capture module, used to specify the integrated simulation optimization platform side and the virtual control engine side for the communication module, and use the communication module to send the second type of designated signal from the integrated simulation optimization platform side to the virtual control engine side; a second application transmission module, used to convert the format of the second type of designated signal located on the virtual control engine side to ensure that the virtual control engine can recognize and read it, and then use the first type of application corresponding to the virtual control engine to transmit the second type of designated signal to the virtual control engine.
[0096] Optionally, prior to the second application monitoring module, the device further includes a second pre-storage module, configured to pre-storage at least one second-type 3D model unit in the virtual control engine, wherein each second-type 3D model unit corresponds to a unique second-type designated signal.
[0097] Optionally, the first type of designated signal includes sensor signals and / or action commands corresponding to the first type of 3D model unit.
[0098] Optionally, the second type of designated signal includes sensor signals and / or action commands corresponding to the second type of 3D model unit.
[0099] Optionally, the first type of 3D model unit corresponds one-to-one with the second type of 3D model unit.
[0100] Optionally, after the second application monitoring module, the device further includes a sending module, used to send the first type of specified signal to the human-machine interface using a third type of application corresponding to the human-machine interface.
[0101] Optionally, the device also performs the following steps in parallel: a third type of application monitoring module, used to monitor whether a third type of designated signal is generated inside the human-machine interface using the third type of application corresponding to the human-machine interface; once the generation of the third type of designated signal is detected, the software communication method captures the third type of designated signal and immediately transmits the captured third type of designated signal to the virtual control engine through the first type of application.
[0102] In this embodiment of the invention, at least one first-type 3D model unit is pre-stored in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal. A first-type application corresponding to the virtual control engine is used to monitor whether a first-type designated signal is generated in the virtual control engine. Once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal. An integrated simulation optimization platform side and a virtual control engine side are designated for the communication module, and the captured first-type designated signal is sent from the virtual control engine side to the integrated simulation optimization platform side using the communication module. The first-type designated signal located on the integrated simulation optimization platform side is format-converted to ensure that the integrated simulation optimization platform can recognize and read it. Then, a second-type application corresponding to the integrated simulation optimization platform is used to transmit the first-type designated signal to the integrated simulation optimization platform. This embodiment of the invention achieves a significant increase in the number of captured first-type designated signals by pre-stored at least one first-type 3D model unit in the virtual control engine, and enables hardware-free communication between the integrated simulation optimization platform and the virtual control engine through the communication module, thereby improving communication speed by a large margin.
[0103] This embodiment also provides an electronic device, including a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-described software communication method. This electronic device can be a server or a terminal device.
[0104] See Figure 8 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores computer-executable instructions that can be executed by the processor 100. The processor 100 executes the computer-executable instructions to implement the above-described software communication method.
[0105] Furthermore, Figure 8 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0106] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0107] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0108] The processor in the aforementioned electronic device, by executing computer-executable instructions, can implement the following operations in the aforementioned software communication method: At least one first-type 3D model unit is pre-stored in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal; using a first-type application corresponding to the virtual control engine, the software communication method monitors whether a first-type designated signal is generated in the virtual control engine; once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal; an integrated simulation optimization platform side and a virtual control engine side are designated for the communication module, and the captured first-type designated signal is sent from the virtual control engine side to the integrated simulation optimization platform side using the communication module; the first-type designated signal located on the integrated simulation optimization platform side is format-converted to ensure that the integrated simulation optimization platform can recognize and read it, and then the first-type designated signal is transmitted to the integrated simulation optimization platform using a second-type application corresponding to the integrated simulation optimization platform.
[0109] In this method, at least one first-type 3D model unit is pre-stored in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal. A first-type application corresponding to the virtual control engine monitors whether a first-type designated signal is generated in the virtual control engine. Once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal. An integrated simulation optimization platform side and a virtual control engine side are designated for the communication module, and the captured first-type designated signal is sent from the virtual control engine side to the integrated simulation optimization platform side using the communication module. The first-type designated signal located on the integrated simulation optimization platform side undergoes format conversion to ensure that the integrated simulation optimization platform can recognize and read it. Then, a second-type application corresponding to the integrated simulation optimization platform transmits the first-type designated signal to the integrated simulation optimization platform. This embodiment of the invention achieves a significant increase in the number of captured first-type designated signals by pre-stored at least one first-type 3D model unit in the virtual control engine, and realizes hardware-free communication between the integrated simulation optimization platform and the virtual control engine through the communication module, thereby improving communication speed by a large margin.
[0110] This embodiment also provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-described software communication method.
[0111] The computer-executable instructions stored in the aforementioned computer-readable storage medium, when executed, enable the following operations in the aforementioned software communication method: At least one first-type 3D model unit is pre-stored in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal; using a first-type application corresponding to the virtual control engine, the method monitors whether a first-type designated signal is generated in the virtual control engine; once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal; the communication module is assigned to both the integrated simulation optimization platform side and the virtual control engine side, and the captured first-type designated signal is sent from the virtual control engine side to the integrated simulation optimization platform side using the communication module; the first-type designated signal located on the integrated simulation optimization platform side is format-converted to ensure that the integrated simulation optimization platform can recognize and read it, and then the first-type designated signal is transmitted to the integrated simulation optimization platform using a second-type application corresponding to the integrated simulation optimization platform.
[0112] In this method, at least one first-type 3D model unit is pre-stored in the virtual control engine, wherein each first-type 3D model unit corresponds to a unique first-type designated signal. A first-type application corresponding to the virtual control engine monitors whether a first-type designated signal is generated in the virtual control engine. Once the generation of the first-type designated signal is detected, the software communication method captures the first-type designated signal. An integrated simulation optimization platform side and a virtual control engine side are designated for the communication module, and the captured first-type designated signal is sent from the virtual control engine side to the integrated simulation optimization platform side using the communication module. The first-type designated signal located on the integrated simulation optimization platform side undergoes format conversion to ensure that the integrated simulation optimization platform can recognize and read it. Then, a second-type application corresponding to the integrated simulation optimization platform transmits the first-type designated signal to the integrated simulation optimization platform. This embodiment of the invention achieves a significant increase in the number of captured first-type designated signals by pre-stored at least one first-type 3D model unit in the virtual control engine, and realizes hardware-free communication between the integrated simulation optimization platform and the virtual control engine through the communication module, thereby improving communication speed by a large margin.
[0113] The computer program products of the software communication method, apparatus and electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0114] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0115] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0116] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0117] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0118] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A software communication method for integrating communication between a simulation optimization platform and a virtual control engine, characterized in that, This includes performing the following steps in sequence: At least one first-class 3D model unit is pre-stored in the virtual control engine, wherein each first-class 3D model unit corresponds to a unique first-class designated signal; Using the first type of application corresponding to the virtual control engine, monitor whether a first type of specified signal is generated in the virtual control engine. Once the generation of the first type of specified signal is detected, the software communication method captures the first type of specified signal. The communication module includes: a communication module with the integrated simulation optimization platform, a communication module with the software virtual control engine, a hierarchical communication protocol framework module, and a communication module with the human-machine interface; the integrated simulation optimization platform and the virtual control engine are designated for the communication module, and the first type of designated signal captured is sent from the virtual control engine to the integrated simulation optimization platform using the communication module; The first type of designated signal located on the integrated simulation optimization platform side is formatted to ensure that the integrated simulation optimization platform can recognize and read it. Then, the first type of designated signal is transmitted to the integrated simulation optimization platform using the second type of application corresponding to the integrated simulation optimization platform. By utilizing the first type of application corresponding to the virtual control engine, monitoring whether a first type of specified signal is generated in the virtual control engine; once the generation of the first type of specified signal is detected, after the software communication method captures the first type of specified signal, the method further includes: The first type of specified signal is sent to the human-machine interface using the third type of application corresponding to the human-machine interface; The method also performs the following steps in parallel and sequentially: Using the third type of application corresponding to the human-machine interface, the system monitors whether a third type of designated signal is generated inside the human-machine interface. Once the generation of the third type of designated signal is detected, the software communication method captures the third type of designated signal and immediately transmits the captured third type of designated signal to the virtual control engine through the first type of application.
2. The software communication method according to claim 1, characterized in that, The method also performs the following steps in parallel and sequentially: Using the second type of application corresponding to the integrated simulation optimization platform, the system monitors whether a second type of specified signal is generated in the integrated simulation optimization platform. Once the generation of the second type of specified signal is detected, the software communication method captures the second type of specified signal. The communication module is configured to connect the integrated simulation optimization platform side and the virtual control engine side, and the second type of specified signal is sent from the integrated simulation optimization platform side to the virtual control engine side using the communication module. The second type of designated signal located on the virtual control engine side is formatted to ensure that the virtual control engine can recognize and read it. Then, the second type of designated signal is transmitted to the virtual control engine using the first type of application corresponding to the virtual control engine.
3. The software communication method according to claim 2, characterized in that, In the second type of application corresponding to the integrated simulation optimization platform, the method monitors whether a second type of specified signal is generated in the integrated simulation optimization platform. Once the generation of the second type of specified signal is detected, before the software communication method captures the second type of specified signal, the method further includes: At least one second-type 3D model unit is pre-stored in the virtual control engine, wherein each second-type 3D model unit corresponds to a unique second-type designated signal.
4. The software communication method according to claim 1, characterized in that, The first type of designated signal includes sensor signals and / or action commands corresponding to the first type of 3D model unit.
5. The software communication method according to claim 3, characterized in that, The second type of designated signal includes sensor signals and / or action commands corresponding to the second type of 3D model unit.
6. The method according to claim 3, characterized in that, The first type of 3D model unit corresponds one-to-one with the second type of 3D model unit.
7. A software communication device for integrating communication between a simulation optimization platform and a virtual control engine, characterized in that, include: The pre-storage module is used to pre-storage at least one first-class 3D model unit in the virtual control engine, wherein each first-class 3D model unit corresponds to a unique first-class designated signal; The monitoring module is used to monitor whether a first type of specified signal is generated in the virtual control engine using the first type of application corresponding to the virtual control engine. Once the generation of the first type of specified signal is detected, the software communication method captures the first type of specified signal. The communication module includes: a communication module with the integrated simulation optimization platform, a communication module with the software virtual control engine, a hierarchical communication protocol framework module, and a communication module with the human-machine interface; a capture module is used to specify the integrated simulation optimization platform and the virtual control engine for the communication module, and to use the communication module to send the captured first type of specified signal from the virtual control engine to the integrated simulation optimization platform. The transmission module is used to convert the format of the first type of specified signal located on the integrated simulation optimization platform side to ensure that the integrated simulation optimization platform can recognize and read it, and then use the second type of application corresponding to the integrated simulation optimization platform to transmit the first type of specified signal to the integrated simulation optimization platform. The sending module is used to send the first type of specified signal to the human-machine interface using the third type of application corresponding to the human-machine interface; The monitoring module is used to monitor whether a third-type specified signal is generated inside the human-machine interface using the third type of application corresponding to the human-machine interface. Once the generation of the third-type specified signal is detected, the software communication method captures the third-type specified signal and immediately transmits the captured third-type specified signal to the virtual control engine through the first type of application.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Industrial network communication simulation
CN114488843A
Asynchronous communication method between simulation model and terminal
CN117097814A