Software virtual simulation method, device and electronic equipment

Through the dynamic mapping technology of logical ports and simulation ports, the problem of low simulation efficiency caused by different hardware port resources in PLC configuration software is solved, efficient simulation and scalability of multiple simulation entities are achieved, and the flexibility of the simulation system is improved. sex.

CN112486863BActive Publication Date: 2024-09-24GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011340176.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-25
Publication Date
2024-09-24
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

When writing existing PLC configuration software, code modifications need to be made based on different PLC hardware port resources, resulting in low simulation efficiency and difficulty in achieving scalable simulation of different entities.

Method used

By obtaining the mapping relationship between the logical port and the simulation port, the logical port is mapped to the simulation port, and program simulation is performed based on the mapping relationship. The adjustment of the mapping relationship is supported to adapt to different hardware configurations, and dynamic mapping of the logical port and the simulation port is realized.

Benefits of technology

It improves the simulation efficiency and scalability, allows one code to simulate multiple simulation entities, avoids frequent modifications to the simulation code, and enhances the flexibility and adaptability of the simulation system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112486863B
    Figure CN112486863B
Patent Text Reader

Abstract

The present invention provides a software virtual simulation method, device and electronic device, wherein the method comprises: in response to a simulation request for a target simulation program, obtaining a mapping relationship between a logical port and a simulation port; mapping the logical port in the target simulation program to the simulation port according to the pre-established mapping relationship between the logical port and the simulation port; and performing program simulation on the simulation entity associated with the mapped simulation port. The above scheme solves the existing problem of needing to write simulation codes separately when simulating different entities, thereby resulting in low simulation efficiency. In this scheme, only the mapping relationship needs to be modified to achieve the effect of simulating multiple simulation entities with one code, which effectively improves the simulation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a software virtual simulation method, device and electronic equipment. Background Art

[0002] Application programs written by PLC configuration software generally read input from the input port (Input) of the controlled hardware motherboard, then perform logical processing and send the output to the output port (Output).

[0003] When developing, you first need to determine the PLC hardware to be used. In the application code written by the configuration software, the port address to be used will be clearly specified when declaring variables. When developing an application, since the code's use of port resources is determined, the simulation is also implemented based on the corresponding PLC hardware.

[0004] In order to realize applications with the same functions, code modification is required when using different PLC hardware port resources, and the simulation is also based on the corresponding hardware IO resources.

[0005] There is currently no effective solution for improving the efficiency and scalability of simulation. Summary of the invention

[0006] The embodiments of the present invention provide a software virtual simulation method, device and electronic device to improve simulation efficiency and scalability of simulation programs.

[0007] On the one hand, a software virtual simulation method is provided, comprising:

[0008] In response to a simulation request for a target simulation program, obtaining a mapping relationship between a logical port and a simulation port;

[0009] According to the pre-established mapping relationship between the logical port and the simulation port, the logical port in the target simulation program is mapped to the simulation port;

[0010] Perform program simulation on the simulation entity associated with the mapped simulation port.

[0011] In one embodiment, after performing program simulation on the simulation entity associated with the mapped simulation port, the method further includes:

[0012] receiving a request for adjusting a mapping relationship between a logical port and an emulated port;

[0013] Modify the mapping relationship between the logical port and the emulation port according to the adjustment request;

[0014] According to the modified mapping relationship, program simulation is performed.

[0015] In one embodiment, the above method further comprises:

[0016] Obtain an imported logical port resource list or receive a customized logical port resource list during code development;

[0017] Using the imported logical port resource list or the customized logical port resource list received during the code development process as a logical port resource configuration table;

[0018] Obtaining the association relationship between the logical port and the simulation port input by the user;

[0019] Mapping is performed according to the logical port resource configuration table and the association relationship to obtain a mapping relationship between the logical port and the emulation port;

[0020] The mapping relationship between the logical port and the emulation port is stored in the form of a mapping table.

[0021] In one embodiment, the simulation entity includes at least one of the following: a software object, a hardware object, and a network entity.

[0022] On the other hand, a software virtual simulation device is provided, comprising:

[0023] A first acquisition module, configured to acquire a mapping relationship between a logical port and a simulation port in response to a simulation request for a target simulation program;

[0024] A first mapping module, used for mapping the logical port in the target simulation program to the simulation port according to a pre-established mapping relationship between the logical port and the simulation port;

[0025] The first simulation module is used to perform program simulation on the simulation entity associated with the mapped simulation port.

[0026] In one embodiment, the software virtual simulation device further includes:

[0027] A receiving module, used for receiving a request for adjusting the mapping relationship between the logical port and the simulation port after performing program simulation on the simulation entity associated with the mapped simulation port;

[0028] A modification module, used to modify the mapping relationship between the logical port and the simulation port according to the adjustment request;

[0029] The second simulation module is used to perform program simulation according to the modified mapping relationship.

[0030] In one embodiment, the software virtual simulation device further includes:

[0031] A second acquisition module is used to acquire an imported logical port resource list or receive a customized logical port resource list during code development;

[0032] A generation module, used to use an imported logical port resource list or a customized logical port resource list received during code development as a logical port resource configuration table;

[0033] A third acquisition module is used to acquire the association relationship between the logical port and the simulation port input by the user;

[0034] A second mapping module, used for performing mapping according to the logical port resource configuration table and the association relationship to obtain a mapping relationship between the logical port and the emulation port;

[0035] The storage module is used to store the mapping relationship between the logical port and the simulation port in the form of a mapping table.

[0036] On the other hand, an air conditioner is provided, comprising: the above-mentioned software virtual simulation device.

[0037] On the other hand, a network device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0038] On the other hand, a non-volatile computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0039] In the above embodiment, a logical port is set, and a mapping relationship between the logical port and the simulation port is established. The logical port is used in the simulation code. When simulating, only the mapping between the logical port and the simulation port is required. The logical port in the simulation code can be mapped to the simulation port of the simulation entity, thereby realizing program simulation of the simulation entity. The above scheme solves the existing problem of needing to write simulation codes separately when simulating different entities, thereby causing low simulation efficiency. In this scheme, only the mapping relationship needs to be modified to realize the effect of simulating multiple simulation entities with one code, which effectively improves the simulation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0041] Figure 1 is a method flow chart of a software virtual simulation method according to an embodiment of the present invention;

[0042] Figure 2 is an architecture diagram of a simulation system according to an embodiment of the present invention;

[0043] Figure 3 It is a structural block diagram of a software virtual simulation device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0045] For existing applications that want to achieve the same function, when using different PLC hardware port resources, code modification is required, which leads to a technical problem of low simulation efficiency.

[0046] In this example, a software virtual simulation method is provided, such as Figure 1 As shown, it may include:

[0047] Step 101: In response to a simulation request for a target simulation program, a mapping relationship between a logical port and a simulation port is obtained;

[0048] Step 102: mapping the logical port in the target simulation program to the simulation port according to the pre-established mapping relationship between the logical port and the simulation port;

[0049] Step 103: Perform program simulation on the simulation entity associated with the mapped simulation port.

[0050] In the above example, a logical port is set, and a mapping relationship between the logical port and the simulation port is established. The logical port is used in the simulation code. When simulating, only the mapping between the logical port and the simulation port is required. The logical port in the simulation code can be mapped to the simulation port of the simulation entity, thereby realizing program simulation of the simulation entity. The above solution solves the existing problem of needing to write simulation codes separately when simulating different entities, resulting in low simulation efficiency. In this solution, only the mapping relationship needs to be modified to achieve the effect of simulating multiple simulation entities with one code, effectively improving the simulation efficiency.

[0051] Because the mapping relationship between the logical port and the simulation port is set, when the same function of different entities needs to be simulated, only the mapping relationship between the logical port and the simulation port needs to be modified to achieve the simulation of the same function of different entities, without modifying the simulation code. Specifically, an adjustment request for the mapping relationship between the logical port and the simulation port can be received; according to the adjustment request, the mapping relationship between the logical port and the simulation port is modified; according to the modified mapping relationship, the program simulation is performed.

[0052] Furthermore, the mapping relationship between the above-mentioned logical port and the emulation port can be stored in the form of a mapping table. Specifically, obtain an imported logical port resource list or receive a customized logical port resource list during the code development process; use the imported logical port resource list or the customized logical port resource list received during the code development process as a logical port resource configuration table; obtain the association relationship between the logical port and the emulation port input by the user; perform mapping according to the logical port resource configuration table and the association relationship to obtain the mapping relationship between the logical port and the emulation port; store the mapping relationship between the logical port and the emulation port in the form of a mapping table.

[0053] The above-mentioned simulation entity may include but is not limited to at least one of the following: a software object, a hardware object, and a network entity.

[0054] The above method is described below in conjunction with a specific embodiment. However, it should be noted that this specific embodiment is only for better illustrating the present application and does not constitute an improper limitation on the present application.

[0055] In this example, the IO port is virtualized into a logical port, and the logical port resources are used in the code instead of the actual port resources. Then, the logical port is mapped to a variety of simulated hardware configurations. In other words, there is no need to modify the use of IO port resources in the existing code, and only a variety of simulated virtual hardware resource configurations need to be mapped to achieve simultaneous simulation of multiple virtual operating environments.

[0056] Specifically, the port resources of the controlled PLC hardware may be virtualized into logical ports, and the logical port resources may be used in the code.

[0057] For example, imagine a virtual PLC hardware with a virtual I0.0 resource, using V I0.0 as a direct variable, which is bound to A I0.0 or B I1.0 of the specific physical hardware A through mapping. When implementing, these different hardware configuration relationships can exist at the same time, and different hardware simulations can be switched by loading their respective mapping configuration relationships during simulation.

[0058] In this way, there is no need to modify the declaration of direct variables. You only need to map a physical hardware when needed to run on specific hardware. In this way, when the target hardware specifications and parameters are unknown during program development, or when the specifications and parameters need to be modified later, or when the hardware is damaged and needs to be replaced later, it can be replaced simply and conveniently by remapping, so that the verification simulation program function is normal and available.

[0059] Assume that V I0.0 was originally mapped to A I0.0, and later remapped to B I1.0. Similar operations are used for other variables. In this way, after simulating hardware A, switching to hardware B simulation can be very simple. Only one application and two mapping relationships are required.

[0060] That is, by mapping the logical port and the simulated virtual port resources, the binding dependency between the application and the specific PLC simulation can be removed, and the running simulation functions of different virtual hardware can be realized, which can be selected only through mapping. Through the mapping of logical ports to virtual ports, the virtual simulation entity can be pure software, simulated hardware, various target hardware, or even a network entity, which can easily expand various simulation function libraries and realize knowledge reuse.

[0061] In this example, a simulation system is provided, such as Figure 2 As shown, the following execution modules may be included:

[0062] The logical port resource management module M1 is used to manage logical port resources, implement addition, deletion, modification, and query, and read / store the logical port resource configuration table.

[0063] The simulation port resource management module M2 is used to manage the simulation port resources of the controlled PLC, realize the addition, deletion, modification and query, and read / store of the physical port configuration table.

[0064] The mapping management module M3 is used to manage the mapping relationship between the logical port and the simulation port, and realize the addition, deletion, modification, and query, and the reading / storage of the mapping table.

[0065] The simulation virtual entity definition module M4 is used to define the resource configuration and behavior of the virtual simulation entity.

[0066] The simulation virtual entity management module M5 is used to load the simulation virtual entity and manage its life cycle.

[0067] The simulation mapping operation scheduling module M6 is used to realize the interaction and scheduling of dynamic functions and data between the logical port and the simulation ports of different virtual simulation entities.

[0068] In this example, it involves logical ports, that is, abstract IO port resources for use by application code; simulation ports, that is, IO ports provided by virtual simulation entities; port mapping, that is, configuring the correspondence between logical ports and simulation ports; simulating virtual entities, that is, simulating the functions and characteristics of the virtualized entities, that is, simulating PLC hardware of different manufacturers and models.

[0069] When implemented, this may include:

[0070] 1) Developers define logical port resources:

[0071] Method 1: Developers can clearly and uniformly define logical port resources, for example, they can be imported from Excel or imported through the UI of the configuration software. Method 2: Developers freely define logical port resources when using them in the code, and the configuration software collects them. The logical port resources imported or defined by the developer form a logical port resource configuration table. Use logical ports in the code to define variables, for example: use logical ports when defining variables in ST code.

[0072] 2) The configuration software provides the mapping function and corresponding UI between the logical port and the simulated port, where the developer can perform the mapping between the two, including adding, deleting, modifying and checking, etc. The mapping result is saved as the simulated IO port mapping table.

[0073] 3) Define the functions and characteristics of various virtual simulation entities:

[0074] Hardware resource configuration (e.g., number of IO ports, addresses, technical parameters, etc.), CPU resources (e.g., number of cores, whether multi-core parallelism is possible), communication functions, etc., to achieve the execution behavior of the simulation application code. The logical port interacts with the simulation entity through the simulation port. The configuration software provides the corresponding definition UI interface, and the virtual simulation entity is encapsulated into a library, which is loaded by the configuration software in the form of a plug-in for easy expansion.

[0075] 4) Simulation mapping operation scheduling layer:

[0076] Realize dynamic function and data interaction between logical ports and simulation ports of different virtual simulation entities. For example: reading and writing of IO ports, sending and receiving of data, starting and stopping of simulation entities, switching or parallel scheduling of different simulation entities.

[0077] That is, in the above example, the simulation of the software is based on the virtualized resources in the software, from soft to hard, to simulate the execution of the application on different PLC hardware through remapping. First, the resources used in the application development software are virtualized, and then mapped to specific PLC hardware resources to simulate the behavior of the application on different target hardware.

[0078] Through the above solution, the purpose of improving the simulation effect and efficiency and improving the development efficiency can be achieved, and no specific PLC hardware configuration is required, no code changes are required, and multiple hardware configurations can be simulated at the same time. When applying, you only need to implement the virtual operation logic of different hardware configurations, and through port remapping, you can easily add new simulation virtual operation hardware configurations.

[0079] Based on the same inventive concept, a software virtual simulation device is also provided in the embodiment of the present invention, as described in the following embodiments. Since the principle of the software virtual simulation device to solve the problem is similar to the software virtual simulation method, the implementation of the software virtual simulation device can refer to the implementation of the software virtual simulation method, and the repetitions are not repeated. As used below, the term "unit" or "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented with software, the implementation of hardware, or a combination of software and hardware is also possible and conceived. Figure 3 is a structural block diagram of a software virtual simulation device according to an embodiment of the present invention, such as Figure 3 As shown, it may include: a first acquisition module 301, a first mapping module 302 and a first simulation module 303, and the structure is described below.

[0080] A first acquisition module 301 is used to acquire a mapping relationship between a logical port and a simulation port in response to a simulation request for a target simulation program;

[0081] A first mapping module 302, configured to map the logical port in the target simulation program to the simulation port according to a pre-established mapping relationship between the logical port and the simulation port;

[0082] The first simulation module 303 is used to perform program simulation on the simulation entity associated with the mapped simulation port.

[0083] In one embodiment, the above-mentioned software virtual simulation device may also include: a receiving module, which is used to receive an adjustment request for the mapping relationship between the logical port and the simulation port after the program simulation is performed on the simulation entity associated with the mapped simulation port; a modification module, which is used to modify the mapping relationship between the logical port and the simulation port according to the adjustment request; and a second simulation module, which is used to perform program simulation according to the modified mapping relationship.

[0084] In one embodiment, the above-mentioned software virtual simulation device may also include: a second acquisition module, used to obtain an imported logical port resource list or receive a customized logical port resource list during the code development process; a generation module, used to use the imported logical port resource list or the customized logical port resource list received during the code development process as a logical port resource configuration table; a third acquisition module, used to obtain the association relationship between the logical port input by the user and the simulation port; a second mapping module, used to perform mapping according to the logical port resource configuration table and the association relationship to obtain the mapping relationship between the logical port and the simulation port; a storage module, used to store the mapping relationship between the logical port and the simulation port in the form of a mapping table.

[0085] In one embodiment, the simulation entity may include but is not limited to at least one of the following: a software object, a hardware object, and a network entity.

[0086] In another embodiment, a software is provided, which is used to execute the technical solutions described in the above embodiments and preferred implementation modes.

[0087] In another embodiment, a storage medium is provided, in which the above software is stored. The storage medium includes but is not limited to: a CD, a floppy disk, a hard disk, an erasable memory, etc.

[0088] From the above description, it can be seen that the embodiment of the present invention achieves the following technical effects: setting a logical port, and establishing a mapping relationship between the logical port and the simulation port, using the logical port in the simulation code, and only needing to map the logical port with the simulation port during simulation, the logical port in the simulation code can be mapped to the simulation port of the simulation entity, thereby realizing program simulation of the simulation entity. The above scheme solves the existing problem of needing to write simulation codes separately when simulating different entities, thereby causing low simulation efficiency. In this scheme, only the mapping relationship needs to be modified to realize the effect of simulating multiple simulation entities with one code, effectively improving the simulation efficiency.

[0089] Although different specific embodiments are mentioned in the content of this application, this application is not limited to the situations described in the industry standards or embodiments, etc. Some industry standards or slightly modified implementation plans based on the implementation of the custom methods or embodiments can also achieve the same, equivalent or similar, or predictable implementation effects after deformation of the above embodiments. The embodiments of data acquisition, processing, output, judgment methods, etc. after these modifications or deformations can still fall within the scope of the optional implementation plans of this application.

[0090] Although the present application provides method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent a unique execution order. When the device or client product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "includes", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements.

[0091] The devices or modules described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described separately by dividing them into various modules according to their functions. Of course, when implementing this application, the functions of each module can be implemented in the same or more software and / or hardware, or the modules that implement the same function can be implemented by a combination of multiple sub-modules. The device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0092] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0093] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0094] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0095] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0096] Although the present application has been described through embodiments, those skilled in the art will appreciate that there are many modifications and changes to the present application without departing from the spirit of the present application. It is intended that the attached embodiments include these modifications and changes without departing from the present application.

Claims

1. A software virtual simulation method, characterized in that: include: In response to a simulation request for a target simulation program, obtaining a mapping relationship between a logical port and a simulation port; According to the pre-established mapping relationship between the logical port and the simulation port, the logical port in the target simulation program is mapped to the simulation port; Performing program simulation on the simulation entity associated with the mapped simulation port; After the simulation entity associated with the mapped simulation port is simulated, the method further includes: receiving a request for adjusting a mapping relationship between a logical port and an emulated port; Modify the mapping relationship between the logical port and the emulation port according to the adjustment request; Perform program simulation according to the modified mapping relationship; The software virtual simulation method also includes: Obtain an imported logical port resource list or receive a customized logical port resource list during code development; Using the imported logical port resource list or the customized logical port resource list received during the code development process as a logical port resource configuration table; Obtaining the association relationship between the logical port and the simulation port input by the user; Mapping is performed according to the logical port resource configuration table and the association relationship to obtain a mapping relationship between the logical port and the emulation port.

2. The method according to claim 1, characterized in that After mapping is performed according to the logical port resource configuration table and the association relationship to obtain the mapping relationship between the logical port and the emulation port, the method further includes: The mapping relationship between the logical port and the emulation port is stored in the form of a mapping table.

3. The method according to claim 1, characterized in that The simulation entity includes at least one of the following: a software object, a hardware object, and a network entity.

4. A software virtual simulation device, characterized in that: include: A first acquisition module, configured to acquire a mapping relationship between a logical port and a simulation port in response to a simulation request for a target simulation program; A first mapping module, used for mapping the logical port in the target simulation program to the simulation port according to a pre-established mapping relationship between the logical port and the simulation port; A first simulation module, used for performing program simulation on the simulation entity associated with the mapped simulation port; A receiving module, used for receiving a request for adjusting the mapping relationship between the logical port and the simulation port after performing program simulation on the simulation entity associated with the mapped simulation port; A modification module, used to modify the mapping relationship between the logical port and the simulation port according to the adjustment request; A second simulation module, used for performing program simulation according to the modified mapping relationship; The software virtual simulation device also includes: A second acquisition module is used to acquire an imported logical port resource list or receive a customized logical port resource list during code development; A generation module, used to use an imported logical port resource list or a customized logical port resource list received during code development as a logical port resource configuration table; A third acquisition module is used to acquire the association relationship between the logical port and the simulation port input by the user; The second mapping module is used to perform mapping according to the logical port resource configuration table and the association relationship to obtain a mapping relationship between the logical port and the emulation port.

5. The device according to claim 4, characterized in that Also includes: The storage module is used to store the mapping relationship between the logical port and the simulation port in the form of a mapping table.

6. An electronic device comprising: The software virtual simulation device according to any one of claims 4 to 5.

7. A network device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 3 when executing the computer program.

8. A non-volatile computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.