Common system of link library, control method and device of common system of link library
By storing multiple link libraries on the workstation and using a general-purpose device to communicate with multiple simulators, the problem of one-to-one configuration between link libraries and simulation platforms is solved, enabling link library sharing and multi-platform simulation, thus improving the user experience.
Patent Information
- Application Number
- CN202310645213.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2043-05-31
AI Technical Summary
In existing technologies, link libraries can only be configured one-to-one with the corresponding simulation platform, meaning users can only use one simulation platform for simulation, resulting in a poor user experience.
A general-purpose system for linking libraries is provided. Multiple linking libraries are stored on a workstation and communicated with multiple emulators using a general-purpose device, enabling the calling and sharing of any linking library among any emulator. The system is controlled and compiled using the RTLinux operating system and the GCC compiler.
It enables a many-to-many configuration of link libraries and simulation platforms, allowing users to perform simulations using different platforms and link libraries, thus improving the user experience.
Smart Images

Figure CN116756945B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of link library, in particular to a universal system of link library, a control method of the universal system of link library and a control device of the universal system of link library. BACKGROUND
[0002] At present, new energy manufacturers and product series are very rich, and the real-time simulation accuracy of new energy equipment depends on the digital simulation model provided by the manufacturer. At present, there are many mainstream real-time simulators, such as RTDS, RTLAB, HyperSim and ADPSS, etc. The existing scheme is to simulate the new energy grid equipment by the mainstream real-time simulator, and the new energy manufacturer develops a digital packaging model (link library) for a specific real-time simulator to simulate the new energy controller in real time.
[0003] However, in the current scheme, the link library can only be set one-to-one with the corresponding simulation platform (also known as simulator), and the user can only use one simulation platform for simulation, which results in poor user experience. SUMMARY
[0004] The main purpose of the present application is to provide a universal system of link library, a control method of the universal system of link library and a control device of the universal system of link library, so as to at least solve the problem that the link library in the prior art can only be set one-to-one with the corresponding simulation platform, the user can only use one simulation platform for simulation, and the user experience is poor.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a universal system of link library is provided, comprising: a workstation for storing a plurality of link libraries, wherein the link library is a collection of library files used by a link process; a plurality of simulators, each of which is used to implement hardware simulation; a universal device, which is respectively connected in communication with the workstation and a plurality of simulators, and is used to call any one of the link libraries and send the called link library to any one of the simulators.
[0006] Optionally, the universal device further comprises: a network interface, through which the universal device is connected in communication with the workstation, and through which the universal device receives the link library sent by the workstation; and a fiber interface, through which the universal device is connected in communication with a plurality of simulators respectively.
[0007] Optionally, the plurality of link libraries comprises an RTLAB link library, an ADPSS link library and a HyperSim link library, and the plurality of simulators comprises an RTDS simulator, an RTLAB simulator, an ADPSS simulator and a HyperSim simulator.
[0008] Optionally, the universal device further comprises an RTLinux operating system for providing a support function set of a hardware real-time process and controlling the simulation process; and a GCC compiler for compiling codes in cooperation with the RTLinux operating system.
[0009] According to another aspect of the present application, a control method of a universal system of any one of link libraries is provided, the method comprising: obtaining first interface information of a plurality of first calling interfaces, wherein the first calling interfaces correspond to the link libraries one by one, and the first calling interfaces are used to call the corresponding link libraries; obtaining second interface information of a second calling interface, wherein the second calling interface is used to call the first calling interfaces; and calling the first calling interfaces according to the second interface information by using the second calling interface, so that the called first calling interfaces call the link libraries corresponding to the first calling interfaces according to the first interface information.
[0010] Optionally, after obtaining the second interface information of the second calling interface, the method further comprises: obtaining a task scheduling list, wherein the task scheduling list comprises a plurality of tasks, and each of the tasks comprises a pre-called link library; and traversing the task scheduling list to sequentially execute the plurality of tasks.
[0011] Optionally, sequentially executing the plurality of tasks comprises: obtaining priorities of the plurality of tasks, and sequentially executing the plurality of tasks in a descending order of the priorities; and obtaining an association relationship of the plurality of tasks, and sequentially executing the plurality of tasks according to the association relationship, wherein the association relationship comprises a serial relationship and a parallel relationship, the serial relationship is a relationship that the plurality of tasks are executed in sequence, and the parallel relationship is a relationship that the plurality of tasks are executed in parallel.
[0012] Optionally, after calling the first calling interfaces according to the second interface information by using the second calling interface, so that the called first calling interfaces call the link libraries corresponding to the first calling interfaces according to the first interface information, the method further comprises: controlling the simulator corresponding to the link library to perform simulation; and determining that the simulator is abnormal in a case where a time length during which a reply of the simulator is not received is greater than or equal to a predetermined time length.
[0013] Optionally, after calling the first calling interfaces according to the second interface information by using the second calling interface, so that the called first calling interfaces call the link libraries corresponding to the first calling interfaces according to the first interface information, the method further comprises: in a case where an end command is received, stopping continuously calling the link libraries based on the end command, wherein the end command is generated by the workstation.
[0014] According to still another aspect of the present application, a control device of a universal system of any one of link libraries is provided, the device comprising: a first acquisition unit configured to acquire first interface information of a plurality of first calling interfaces, wherein the first calling interfaces correspond to the link libraries one by one, and the first calling interfaces are configured to call the corresponding link libraries; a second acquisition unit configured to acquire second interface information of a second calling interface, wherein the second calling interface is configured to call the first calling interfaces; and a first processing unit configured to call the first calling interfaces according to the second interface information by using the second calling interface, so that the called first calling interfaces call the link libraries corresponding to the first calling interfaces according to the first interface information.
[0015] By using the technical solution of the present application, a plurality of link libraries are combined, a plurality of simulators are also combined, any one of the link libraries is called by using a universal device, and the called link library is sent to any one of the simulators, so that the link libraries and the simulation platforms can be set in a many-to-many manner, i.e., the link libraries are shared, and then users can use different platforms and different link libraries for simulation, thereby improving the experience effect of the users. BRIEF DESCRIPTION OF DRAWINGS
[0016] The accompanying drawings, which form a part of the present description, are included to provide a further understanding of the application and are incorporated herein for explanation by way of exemplification. The present application will become more fully understood from the detailed description and accompanying drawings given below.
[0017] Figure 1 FIG. 1 shows a structure schematic diagram of a universal system of link libraries according to an embodiment of the present application;
[0018] Figure 2 FIG. 2 shows a hardware structure block diagram of a mobile terminal for implementing a control method of a universal system of link libraries according to an embodiment of the present application;
[0019] Figure 3 FIG. 3 shows a flow schematic diagram of a control method of a universal system of link libraries according to an embodiment of the present application;
[0020] Figure 4 FIG. 4 shows a software logic schematic diagram of a universal system of link libraries according to the universal system of link libraries of the present application;
[0021] Figure 5 FIG. 5 shows a structure block diagram of a control device of a universal system of link libraries according to an embodiment of the present application.
[0022] In the above drawings, the following reference signs are used:
[0023] 102, processor; 104, memory; 106, transmission device; 108, input / output device; 10, workstation; 11, link library; 12, emulator; 13, general device; 14, network interface; 15, fiber interface; 16, RTLinux operating system; 17, GCC compiler; 18, hardware. DETAILED DESCRIPTION
[0024] It should be noted that the embodiments and features in the present application can be combined with each other without conflict. The technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0025] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0027] For the convenience of description, the following describes some nouns or terms related to the embodiments of the present application:
[0028] New energy technology is the backbone of high technology, including nuclear power technology, solar energy technology, coal-fired, magnetic fluid power generation technology, geothermal energy technology, ocean energy technology, etc. Among them, nuclear power technology and solar energy technology are the main symbols of new energy technology. The development and utilization of nuclear power and solar energy break the traditional energy concept dominated by oil and coal, and open up a new era of energy. At present, the more mainstream is wind energy and solar energy, and the device that controls them is called a controller.
[0029] The photovoltaic controller is an automatic control device for charging the storage battery by the multi-path solar cell array and supplying the load by the storage battery in the solar power generation system. The photovoltaic controller uses the high-speed CPU microprocessor and the high-precision A / D analog-digital converter and is a microcomputer data acquisition and monitoring control system. The current working state of the photovoltaic system can be acquired quickly and in real time, the working information of the PV station can be obtained at any time, the historical data of the PV station can be accumulated in detail, the rationality of the PV system design can be evaluated and the reliability of the quality of the system components can be tested, and the accurate and sufficient basis is provided. In addition, the photovoltaic controller has the serial communication data transmission function and can perform the centralized management and the remote control on the multiple photovoltaic system sub-stations.
[0030] The wind power generation controller is used for adjusting and controlling the electric energy generated by the wind driven generator. The adjusted energy is sent to the direct current load or the alternating current load, the excess energy is charged to the storage battery according to the characteristic curve of the storage battery, when the generated electric energy cannot meet the needs of the load, the controller sends the electric energy of the storage battery to the load, when the storage battery is fully charged, the controller controls the storage battery not to be overcharged, when the electric energy stored in the storage battery is discharged, the controller controls the storage battery not to be over-discharged, and the storage battery is protected.
[0031] The controller uses the PWM stepless unloading mode to control the wind driven generator to intelligently charge the storage battery. When the electric energy generated by the wind driven generator exceeds the storage capacity of the storage battery, the control system must consume the excess energy. The ordinary control mode is to connect all the unloading devices, at this time, the storage battery is generally not fully charged, but the energy is completely consumed in the unloading devices, thereby causing the waste of energy. Some use the stage-by-stage connection of the unloading devices, the more stages, the better the control effect, but generally only five or six stages can be achieved, so the effect is still not ideal. The best control mode is to use the PWM (pulse width modulation) mode for stepless unloading, that is, the unloading can reach thousands of levels. Therefore, in the normal unloading condition, the voltage of the storage battery can be ensured to be stable at the floating charging voltage point, and only the excess electric energy is released to the unloading device. Therefore, the best charging characteristic of the storage battery is ensured, and the electric energy is fully utilized.
[0032] As introduced in the background, the link library in the prior art can only be set one-to-one with the corresponding simulation platform, and the user can only use one simulation platform for simulation, and the user experience effect is poor. To solve the above problems, the embodiments of the present application provide a universal system of link library, a control method of the universal system of link library, and a control device of the universal system of link library.
[0033] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
[0034] The present application provides a universal system of link library, as followsFigure 1 The system comprises:
[0035] a workstation 10 for storing a plurality of link libraries 11, wherein the link libraries 11 are a collection of library files used by a link process;
[0036] a plurality of emulators 12, wherein each of the emulators 12 is used to implement hardware emulation;
[0037] a general device 13 communicatively connected to the workstation 10 and the plurality of emulators 12, wherein the general device 13 is used to call any one of the link libraries 11 and send the called link library 11 to any one of the emulators 12.
[0038] In the system, the plurality of link libraries are combined, the plurality of emulators are also combined, any one of the link libraries is called by the general device, and the called link library is sent to any one of the emulators, so that the link libraries and the emulation platforms can be set in a many-to-many manner, that is, the link libraries are shared, and then users can use different platforms and different link libraries for emulation, thereby improving the experience effect of the users.
[0039] Currently, new energy manufacturers have no motivation to maintain so many new energy model link libraries of real-time emulation platforms. Currently, most manufacturers mainly provide link libraries of RTLAB or ADPSS real-time emulation platforms. The new energy controller link library of a specific real-time emulation platform can only be used for the platform and cannot be used for other real-time emulation platforms. For example, the link library.a file of RTLAB can only be used on RTLAB and cannot be used on RTDS, HyperSim, and ADPSS platforms
[0040] Specifically, the system can be applied to the new energy field and can be specifically applied to a photovoltaic controller, a wind power controller, or other controllers.
[0041] The workstation can be a computer or other operation platform used in daily life. The workstation is installed with a Window operation system and runs RTLink modeling software, is used for new energy link library IO port mapping, calculation task and CPU core binding, and control real-time task compilation, running, and monitoring control operations of a real-time emulation machine, and communicates with the real-time emulation machine through an Ethernet.
[0042] The general device is responsible for transparent forwarding of interface communication data between an RTDS emulator and a new energy link library. One SFP optical port between a real-time FPGA and the RTDS can transmit 64 32-bit digital quantities in full duplex mode. The real-time FPGA and the real-time emulation machine communicate through a gigabit Ethernet, and a data link layer self-defined protocol with very good real-time performance is used as a communication protocol.
[0043] The communication between the workstation (also referred to as a command workstation) and the emulators is based on a general device, and some interfaces can be provided to receive and send data. In the embodiment, as shown in Figure 1 The general device 13 further includes a network interface 14 and a fiber interface 15. The general device 13 is connected to the workstation 10 through the network interface 14, and receives the link library 11 sent by the workstation 10 through the network interface 14. The general device 13 is connected to the emulators 12 through the fiber interface 15.
[0044] In this scheme, the general device has a network interface and a fiber interface. The link library of the emulator sent by the workstation is received through the network interface, and the link library is sent to the emulator through the fiber interface, so that the emulator performs simulation based on the link library. In this way, the communication between the multiple link libraries and the multiple emulators can be further ensured.
[0045] The fiber interface can be a commonly used gigabit fiber interface in real-time emulators. Generally, an SFP optical module interface is used. Using this interface can enable the real-time emulator and the device to communicate once in each real-time simulation step.
[0046] The workstation and the network interface can communicate through the TCP / IP protocol.
[0047] In some embodiments, the multiple link libraries include an RTLAB link library, an ADPSS link library, and a HyperSim link library, and the multiple emulators include an RTDS emulator, an RTLAB emulator, an ADPSS emulator, and a HyperSim emulator. In this scheme, the above several emulators and link libraries are proposed, so that the above several link libraries can be shared, and the link library and the emulator do not need to be set one by one.
[0048] Specifically, the new energy controller link library refers to a dynamic or static link library compiled from the logic source code of a device for controlling new energy.
[0049] A dynamic link library (Dynamic Link Library or Dynamic-Link Library, abbreviated as DLL) is a way to implement the concept of a shared function library. The extension of these library functions is “.dll,.ocx (library containing ActiveX controls) or.drv (old system driver)”.
[0050] Static linking library old-fashioned use.lib file, the code in the library finally need to be connected to the executable file, so the static connection of the executable file is generally larger, such as: # pragma comment (lib, "XXX.lib").
[0051] The general device can also include a system on software to better control the process of simulation, and in the specific implementation process, as shown in Figure 1 The general device 13 also includes an RTLinux operating system 16 and a GCC compiler 17, the RTLinux operating system 16 is used to provide a set of support functions for hardware real-time processes, and control the simulation process; the GCC compiler 17 is used to realize the compilation of code in cooperation with the RTLinux operating system 16.
[0052] In the scheme, the RTLinux operating system is also configured in the general device, so that the process of simulation can be controlled, and the user can also understand the process of simulation, thereby further improving the experience effect of the user. The program code in the simulation process is compiled through the GCC compiler in cooperation with the RTLinux operating system, so that the compiled link library can be directly sent to the simulator for running.
[0053] The real-time Linux operating system based on x86-64 can also be installed in the device, which is used to run the new energy control protection link library in real time, and contains four SFP optical ports, which are used for joint real-time simulation with simulators such as RTDS.
[0054] The free and open source real-time Linux operating system is adopted, and the Linux kernel real-time patch preempt_rt is installed, and a series of optimization measures such as starting parameter optimization, manual allocation of kernel interrupts, adjustment of real-time task priority, and memory pre-allocation are adopted, so that the jitter of real-time tasks is greatly reduced, and the real-time performance of real-time tasks is guaranteed. It is found through testing that the jitter of long-term running is within 5us under the condition of 50us simulation step length. The architecture adopted by the real-time Linux operating system is Intel x86-64 architecture, which can support the loading and running of 32-bit and 64-bit new energy control protection link libraries. The static library.a file under the existing common RTLAB platform and the.so file under the ADPSS platform control protection link library are Intel x86-64 architecture, so they can be directly run without recompilation.
[0055] Specifically, the RTLink modeling software can also be run on the command workstation, which is used for new energy link library IO port mapping, calculation task and CPU core binding, and compilation, running, monitoring and recording of real-time tasks of the control real-time simulator. The real-time simulator communicates with the real-time simulator through Ethernet.
[0056] Specifically, as Figure 1 shown, the general device 13 can also include a memory, a hard disk, etc. hardware 18.
[0057] The method embodiments provided in the embodiments of the application can be executed in a mobile terminal, a computer terminal or similar computing device. Taking the case of running on a mobile terminal, Figure 2 is a hardware structure block diagram of a mobile terminal of a control method of a general system of a link library. As Figure 2 shown, the mobile terminal can include one or more (only one is shown in Figure 2 ) processor 102 (the processor 102 can include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned mobile terminal can also include a transmission device 106 for communication function and an input and output device 108. Those skilled in the art can understand, Figure 2 the structure shown is only schematic, which does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal can also include more or less components than Figure 2 shown, or have a different configuration from Figure 2 shown.
[0058] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as the computer program corresponding to the device information display method in the embodiments of the application. The processor 102 executes various function applications and data processing by running the computer program stored in the memory 104, that is, implements the above-mentioned method. The memory 104 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid state memories. In some examples, the memory 104 can further include a memory remotely arranged with respect to the processor 102, which can be connected to the mobile terminal through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof. The transmission device 106 is used to receive or send data via a network. The specific examples of the above-mentioned network can include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.
[0059] A control method of a general system of a link library running on a mobile terminal, a computer terminal or the like is provided in the embodiment. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0060] Figure 3 FIG. 1 is a flowchart of a control method of a general system of a link library according to an embodiment of the present application. As shown in the figure, the method comprises the following steps: Figure 3
[0061] In step S201, first interface information of a plurality of first calling interfaces is acquired, wherein the first calling interfaces correspond to the link libraries one by one, and the first calling interfaces are used to call the corresponding link libraries.
[0062] Specifically, a specific wrapping calling program can be written for the link libraries of specific platforms such as RTLAB, ADPSS and HyperSim, i.e., the first calling interfaces corresponding to different link libraries are written.
[0063] In step S202, second interface information of a second calling interface is acquired, wherein the second calling interface is used to call the first calling interfaces.
[0064] Specifically, a second calling interface can also be compiled, and the first calling interfaces can be called through the second calling interface in the future, so as to realize real-time calling of the link libraries of different platforms.
[0065] In step S203, the first calling interfaces are called according to the second interface information by using the second calling interface, so that the called first calling interfaces call the corresponding link libraries according to the first interface information.
[0066] Specifically, the real-time scheduling and running of the link libraries are realized through the second calling interface, so as to realize real-time calling of the link libraries of different platforms.
[0067] Through the embodiment, any first calling interface can be called through the second calling interface, so that the first calling interface can call the corresponding link library, so that the second calling interface can call any link library, so that the called link library can be sent to any simulator, so that the link library and the simulation platform can be set in a many-to-many manner, i.e., the link library is shared, and then the user can simulate with different platforms and different link libraries, so as to improve the experience effect of the user.
[0068] Specifically, the real-time communication of the real-time simulator can be realized through the optical fiber interface, and the real-time simulation operation can be realized with mainstream simulators RTDS, RTLAB, ADPSS and HyperSim.
[0069] Specifically, the software logic of the system is as shown in the figure. Figure 4 As shown in the figure, from the software logic, the system includes a linkage calling module, a linkage real-time scheduling operation module, a real-time simulator communication interface, a plurality of linkage libraries and a plurality of simulators. The arrow between the linkage calling module and the linkage library indicates the first calling interface and the network interface, the linkage real-time scheduling operation module is used to call the second calling interface, and the real-time simulator communication interface refers to the optical fiber interface and communicates with the plurality of simulators.
[0070] The second calling interface is a calling compatible layer, which can provide the same calling interface for different types of linkage libraries, because the calling interfaces of RTLAB, ADPSS and HyperSim are not necessarily the same. The specific method is to dynamically generate C language code for different types of linkage library calling modules, and then call GCC to compile into an executable file.
[0071] No matter whether there is one linkage library or a plurality of linkage libraries, for calling the linkage library, it is to complete a task, so a task scheduling list can be constructed, and the linkage library is scheduled according to the task in the task scheduling list. In the specific implementation process, after obtaining the second interface information of the second calling interface, the above method further includes the following steps: obtaining a task scheduling list, wherein the task scheduling list includes a plurality of tasks, and each task includes a pre-called linkage library; traversing the task scheduling list, and sequentially executing a plurality of tasks.
[0072] In this scheme, a plurality of tasks can be sequentially executed according to the task scheduling list, and the linkage library is called once for each execution of a task, so as to realize the linkage library required for running this simulation, and further, the process of calling can be controlled, and the order of calling is also reasonable.
[0073] Specifically, a timer and a task scheduling list can be set in the general device. Each linkage library has a different scheduling operation period, but is an integer multiple of the real-time simulation step length. The timer counts one real-time simulation step length each time, and the task scheduling list is traversed once, and the linkage library required for running this simulation step length is run in real time.
[0074] Further, for the scheduling task, a real-time task scheduler can be used for scheduling. The real-time task scheduler RTLinkD is a program running in the background in a non-real-time manner, and mainly functions to receive and execute instructions such as compilation, running, and stopping of the link library sent by the command workstation. RTLinkD is written in the GoLang programming language suitable for developing network concurrent programs, and is registered as a systemctl service under Linux, and is started automatically at boot, and resides in the background, and is automatically restarted when an abnormal exit is detected, to ensure long-term stable operation of RTLinkD.
[0075] In order to further efficiently and accurately execute multiple tasks, the application sequentially executes multiple tasks, which can be achieved by the following steps: obtaining the priority of multiple tasks, and executing multiple tasks in order from high to low priority; obtaining the association relationship of multiple tasks, and executing multiple tasks according to the association relationship, wherein the association relationship includes serial relationship and parallel relationship, the serial relationship is the relationship of multiple tasks executed in order, and the parallel relationship is the relationship of multiple tasks executed in parallel.
[0076] In this scheme, the association relationship between multiple tasks can also be determined. For tasks, there are serial and parallel relationships, multiple tasks can be executed in series, and also in parallel, so that multiple tasks can be efficiently and accurately executed according to the association relationship, and multiple tasks can also be efficiently and accurately executed according to their priority order, avoiding scheduling problems between multiple tasks.
[0077] During simulation, the simulator may also be abnormal, so the simulator can also be detected for abnormality. In some embodiments, after the second calling interface is called according to the second interface information, the first calling interface is called according to the first interface information, and the first calling interface corresponding to the link library is called, the method further includes the following steps: controlling the simulator corresponding to the link library to simulate; if the time length of the reply of the simulator is greater than or equal to the predetermined time length, it is determined that the simulator is abnormal.
[0078] In this scheme, during the use of the link library and the simulation of the simulator, the simulator should return a reply information whether it has received the file of the link library or the simulation has ended. After the link library is sent to the simulator, the timing starts. If the timing time length reaches the predetermined time length, it can be determined that the simulator is abnormal. This can realize the abnormal detection of the simulator, avoid the situation that the simulator cannot normally simulate for a long time, and cause the subsequent simulation process to be unable to run, and further improve the efficiency of the simulation.
[0079] Specifically, the predetermined time length can be 50us, and can also be other predetermined time lengths.
[0080] In the process of calling the link library, the process of calling the link library can also be stopped according to the user's instruction. In some embodiments, after the second calling interface is used to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information, the method further comprises the following steps: in the case of receiving an end command, stopping the process of continuously calling the link library based on the end command, wherein the end command is generated by the workstation.
[0081] In this scheme, the workstation can also send a stop end command, so that the process of calling the link library can be stopped in the case of receiving the end command, so that the user can control the process of calling the link library, and the user experience effect is further improved.
[0082] Specifically, in the case of receiving a start command, starting to call the link library based on the start command, wherein the start command is generated by the workstation.
[0083] Specifically, the working process of the system is as follows: after the workstation sends the link library of each platform such as RTDS and ADPSS to the general device through a network protocol such as HTTP protocol, the service program in the general device generates specific C language calling code according to the link library of each platform, and provides a unified link library calling interface (second calling interface), and these C language codes are compiled into (first calling interface) by GCC. Finally, the second calling interface is used to call the first calling interface, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
[0084] The process of configuring the new energy control and protection link library general device and running software is introduced as follows:
[0085] 1.1 New RTLink project
[0086] Right click on the blank area on the left side of the workspace -> New -> RTLink project, enter the project name in the pop-up dialog box, and click OK to create a project. The newly created project does not contain a link library.
[0087] 1.2 Set project sampling time
[0088] Double click the project to be set in the left side workspace, and open the project window on the right side of the workspace, and input the project sampling time, which is in us. This sampling time must be set to the same value as the RTDS simulation step length.
[0089] 1.3 Import Link Library
[0090] Right click on the project -> Import Link Library or right click on the project link library folder -> Import Link Library, then select the link library to be imported in the pop-up dialog box. You can also directly drag the link library file to the project link library folder icon.
[0091] After the link library is imported successfully, different icons will be displayed according to the situation. It can display 64-bit link library, 32-bit link library, link library with different functions, 64-bit function, and 32-bit function.
[0092] 1.4 Analyze Link Library
[0093] Analyzing link library refers to obtaining the input and output port number, dimension, etc. of the function. This operation requires an online real-time simulator to complete. No further operation can be performed on the link library before analyzing the link library. The icon of the link library function without analysis has a red question mark.
[0094] When importing a link library, if there is any online real-time simulator at this time, the link library will be automatically analyzed. If there is no online real-time simulator at this time, it will not be automatically analyzed, even if there is a real-time simulator online after importing the link library. In this case, only manual analysis of the link library can be performed. The specific method is to right click on the link library folder -> Analyze Link Library to analyze all unanalyzed link libraries in the project, or right click on a single link library -> Analyze Link Library to analyze only the single link library.
[0095] 1.5 Link Library Information Viewing
[0096] Double-click on the analyzed link library you want to view to open the link library viewing window. The information includes the number of input and output ports, dimensions, dialog parameter number, sampling period, etc. By default, the input and output port names of the function are meaningless names starting with In and Out. You can double-click the name to change it to a meaningful name, which is convenient for viewing the recording channel and observing the input variable value of the link library in real time.
[0097] 1.6 Set Target Real-Time Simulator
[0098] Drag one of the simulators on the real-time simulator to the target machine icon under the project folder. After successful setting, the real-time simulator name will be displayed on the right side of the target machine.
[0099] 1.7 Real-Time Simulator CPU Usage Number Setting
[0100] By default, the target real-time simulator uses 6 CPUs, which can be set by right-clicking -> setting CPU number on the target machine. The number can be filled according to actual needs, but it cannot exceed the authorized CPU number of the real-time simulator.
[0101] 1.8 CPU computing task allocation
[0102] CPU computing task allocation refers to the process of allocating functions in the link library to specific CPUs. The allocation method is simple, that is, dragging the functions under the link library to the specific CPU. The same CPU can be allocated multiple function instances, but the function instances allocated by each CPU should be as uniform as possible.
[0103] Note that 32-bit link library functions and 64-bit link library functions cannot be allocated to the same CPU for calculation.
[0104] 1.9 Link library function input and output port mapping configuration
[0105] Link library function input and output port mapping configuration refers to the process of mapping the input and output ports of the link library functions allocated to each CPU to the communication channels in the physical optical port. For the RTDS side, each optical port corresponds to a GT FPGA module, and each GT FPGA module can transmit 64 32-bit integers or floating-point numbers in each step.
[0106] Double-click the function under the CPU to open the link library function port mapping interface. In the interface, you need to set the optical port number, channel number, and channel type for each link library input and output port. Each optical port number corresponds to a physical SFP optical port, and the platform currently supports up to 4 optical ports, so the range is 1-4. The channel number is the channel number of the RTDS side GT FPGA, so the range is 1-64. The channel type is the channel type of the RTDS side GT FPGA, including float and int types, and the channel type must be set to the same as the channel type of the RTDS side GT FPGA. Note that if any port number or channel number is set to 0, it is considered that the port is not used. For input ports, the input value is always 0, and for output ports, the output values have no meaning.
[0107] 1.9.1 Quick port information setting
[0108] Under normal circumstances, you can directly double-click or click the optical port number, channel number, and then directly modify it with the keyboard. However, for regular optical port numbers and channel numbers, the following introduces several methods for quickly setting port information.
[0109] (1) Batch set to the same value.
[0110] Drag the mouse to select multiple optical port numbers or channel numbers, right click and select the set menu, then input the optical port numbers or channel numbers in the pop-up dialog box. Drag the mouse to select multiple optical port numbers or channel numbers, right click and select the set to 0 (or other value) menu. Drag the mouse to select multiple channel types, and select set to int or set to float.
[0111] (2) Batch set to incremental value.
[0112] First, manually set two consecutive optical port numbers or channel numbers, such as 1 and 2, then select them and right click -> increment, and input the increment number, such as 10, in the pop-up dialog box, then 3-12 will be automatically set. This method is very suitable for setting channel numbers with consecutive numbers.
[0113] (3) Batch set to incremental value.
[0114] First, drag the mouse to select the optical port numbers, channel numbers and channel types in batch, right click on the selected area, select copy in the pop-up shortcut menu, and finally right click in the place where you want to paste and select paste in the pop-up menu.
[0115] 1.9.2 Port multiplexing setting
[0116] For many input and output ports of the link library, they are switch signals, only 0 and 1 are possible, and it is too wasteful to use a 32-bit integer to transmit alone. RTLink supports mapping multiple input and output switch signals to a certain bit of a certain integer channel. The specific setting method is to right click on the channel type -> set to int low N bits.
[0117] 1.9.3 Time-sharing multiplexing port setting
[0118] If the sampling time of the project is 50us and the sampling time of the link library function is 250us, then the link library will run only once every 5 simulation steps on the RTDS side, and the link library does not run for 4 simulation steps, during which the data transmitted is not needed, wasting channel resources. If you need to run 5 instances of the link library function, and transmit the input and output of one link library function every simulation step, then the channel number of the previous link library can be used to transmit the input and output of 5 link library functions, saving a lot of channel resources. However, in order to identify different instances of the link library function, a special input and output channel is needed to transmit the ID of different instances of the link library function.
[0119] The specific setting method is to check the "time-sharing multiplexing port" checkbox in the input and output port mapping configuration interface of the link library function, then set the number of instances that need to be multiplexed, and finally specify the optical port number and channel number of the instance ID channel in the input and output port mapping. At the same time, a logic needs to be written on the RTDS side to input and output different instance data according to different instance IDs.
[0120] 1.10 Compilation and running of RTLink project
[0121] The dialog box for the project can be displayed.
[0122] 1.10.1 Build and run
[0123] Double-click the project, then there are build, execute and stop buttons in the Ribbon area, which control the compilation, running and stopping of the link library respectively. It is recommended to run the RTDS model first, and then run the link library model.
[0124] 1.10.2 Waveform recording
[0125] RTLink can record all input and output ports of a link library function instance. The specific method is to run the link library project model first, then double-click the link library function instance under the CPU, set the appropriate recording time in the opened input and output port mapping modeling, and finally click to trigger the recording.
[0126] The following verifies the new energy control and protection link library universal platform, as follows:
[0127] 2.1 Comparison test
[0128] The test uses a 12MW direct-drive wind turbine dynamic link library, and carries out simulation tests and comparative analysis under the following power ranges and fault conditions according to the test categories required by relevant standards. The analysis results are shown in Table 1.
[0129] Table 1
[0130]
[0131] For different channels, the measured values are different, and the measured values of each channel are shown in Table 2.
[0132] Table 2
[0133] Channel Units Measured values 1 p.u. Fundamental positive sequence voltage 2 p.u. Active power 3 p.u Reactive power 4 p.u. Reactive current
[0134] The following gives the simulation fault data comparison of different fault conditions under large and small power of 12MW direct-drive wind turbine dynamic link library. The blue curve is the simulation test result of calling dynamic link library by matlab, and the red curve is the joint simulation test result of calling dynamic link library by RTDS and RTLink.
[0135] 3.1.1 Simulation test results of small power
[0136] According to the above, the simulation test results of small power are obtained.
[0137] 3.1.2 Simulation test results of small power
[0138] According to the above, the simulation test results of large power are obtained.
[0139] In summary, in order to verify the accuracy of the platform, a small power comparison analysis is made by using a 12MW direct drive wind turbine dynamic link library. The comparison results show that the high and low penetration characteristics of the joint simulation of the platform and RTDS are highly consistent with the Matlab offline simulation, proving the feasibility and accuracy of the platform.
[0140] The embodiment of the application further provides a control device of a general system of a link library. It should be noted that the control device of the general system of the link library of the embodiment of the application can be used to execute the control method of the general system of the link library provided by the embodiment of the application. The device is used to realize the above-mentioned embodiments and preferred embodiments, and will not be described here. As used below, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the device described in the following embodiments is preferably realized in software, the realization of hardware, or a combination of software and hardware, is also possible and is conceived.
[0141] The control device of the general system of the link library provided by the embodiment of the application is introduced below.
[0142] Figure 5 is a structural block diagram of a control device of a general system of a link library according to the embodiment of the application. As shown in Figure 5 , the device comprises:
[0143] A first acquisition unit 100 is configured to acquire first interface information of a plurality of first calling interfaces, wherein the first calling interfaces correspond to the link libraries one by one, and the first calling interfaces are used to call the corresponding link libraries;
[0144] A second acquisition unit 200 is configured to acquire second interface information of a second calling interface, wherein the second calling interface is used to call the first calling interface;
[0145] A first processing unit 300 is configured to call the first calling interface according to the second interface information by using the second calling interface, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
[0146] By the embodiment, any first calling interface can be called through the second calling interface, so that the first calling interface can call the corresponding link library, so that the second calling interface can call any link library, so that the called link library can be sent to any simulator, so that the link library and the simulation platform can be set in a many-to-many manner, that is, the link library is shared, and then the user can simulate with different platforms and different link libraries, thereby improving the user experience effect.
[0147] No matter whether there is one link library or multiple link libraries, for calling the link library, a task is completed, so a task scheduling list can be constructed, and the link library is scheduled according to the task in the task scheduling list. In the specific implementation process, the above device further includes a third acquisition unit and a second processing unit. The third acquisition unit is configured to acquire a task scheduling list after acquiring the second interface information of the second calling interface. The task scheduling list includes multiple tasks, and each task includes a pre-called link library. The second processing unit is configured to traverse the task scheduling list and execute the multiple tasks in turn.
[0148] In the scheme, the multiple tasks can be executed in turn according to the task scheduling list, and the link library is called once for each execution of the task, so as to implement the link library required for running the simulation this time, and then the calling process can be controlled, and the calling order is reasonable.
[0149] In order to further efficiently and accurately execute multiple tasks, the second processing unit of the present application includes a first processing module and a second processing module. The first processing module is configured to acquire the priority of the multiple tasks and execute the multiple tasks in turn according to the priority from high to low. The second processing module is configured to acquire the association relationship of the multiple tasks and execute the multiple tasks in turn according to the association relationship. The association relationship includes a serial relationship and a parallel relationship. The serial relationship is a relationship in which the multiple tasks are executed in order. The parallel relationship is a relationship in which the multiple tasks are executed in parallel.
[0150] In the scheme, the association relationship between the multiple tasks can also be determined. For the task, there is a serial relationship and a parallel relationship. The multiple tasks can be executed in series and in parallel. In this way, the multiple tasks can be efficiently and accurately executed according to the association relationship, and the multiple tasks can also be efficiently and accurately executed according to the priority order, so that problems in the scheduling of the multiple tasks can be avoided.
[0151] In the simulation process, the simulator may also be abnormal, and therefore detection of whether the simulator is abnormal can be performed. In some embodiments, the device further includes a control unit and a determination unit. The control unit is configured to control the simulator corresponding to the link library to perform simulation after the first calling interface is called by the second calling interface according to the second interface information, so that the first calling interface called by the second calling interface calls the first calling interface corresponding to the link library according to the first interface information. The determination unit is configured to determine that the simulator is abnormal when a time length during which a reply of the simulator is not received is greater than or equal to a predetermined time length.
[0152] In this scheme, during the process of using the link library and the simulator for simulation, the simulator should return a reply information regardless of whether the link library file is received or the simulation is completed. After the link library is sent to the simulator, timing is started. If the time length reaches a predetermined time length, it can be determined that the simulator is abnormal. This can achieve abnormal detection of the simulator, avoid a situation in which the simulator cannot normally simulate for a long time, and further improve the efficiency of simulation.
[0153] During calling of the link library, the process of calling the link library can also be stopped according to an instruction of a user. In some embodiments, the device further includes a third processing unit. The third processing unit is configured to stop calling the link library based on an end command when the first calling interface is called by the second calling interface according to the second interface information, so that the first calling interface called by the second calling interface calls the first calling interface corresponding to the link library according to the first interface information, and the end command is generated by the workstation.
[0154] In this scheme, the workstation can also send the end command for stopping. When the end command is received, the process of calling the link library can be stopped. In this way, the user can control the process of calling the link library, and the experience effect of the user is further improved.
[0155] The control device of the universal system of the link library includes a processor and a memory. The first obtaining unit, the second obtaining unit, the first processing unit, and the like are stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions. The modules are located in the same processor. Alternatively, the modules are located in different processors in any combination.
[0156] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured. By adjusting kernel parameters, the problem in existing technologies where linked libraries can only be configured one-to-one with a corresponding simulation platform, resulting in a poor user experience as users can only use one simulation platform.
[0157] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0158] This invention provides a computer-readable storage medium including a stored program, wherein a control method for controlling the device where the computer-readable storage medium is located to execute the general system of the linked library when the program is running.
[0159] This invention provides a processor for running a program, wherein the program executes a control method for a general system of the linked library.
[0160] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements control method steps of a general system with at least the following linked libraries.
[0161] This application also provides a computer program product that, when executed on a data processing device, is adapted to perform control method steps for initializing a general system having at least the following linked libraries.
[0162] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0163] Those skilled in the art will appreciate that embodiments of the application can be readily used as software, hardware, or a combination of software and hardware. In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0164] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.
[0165] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.
[0166] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.
[0167] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0168] The memory can include non-persistent memory and / or volatile memory, such as a random access memory (RAM) including a cache area for the temporary storage of data. The memory can also include non-volatile memory, such as read only memory (ROM) for storing structural information and / or instruction code. Both persistent and non-persistent memory can be viewed as examples of computer readable media.
[0169] Computer-readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to computing devices. According to the definition herein, computer readable media does not include transitory media such as modulated data signals and carriers.
[0170] It should also be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0171] From the above description, it can be seen that the above-mentioned embodiments of the present application achieve the following technical effects:
[0172] 1) The universal system of the link library of the present application combines multiple link libraries and multiple simulators, calls any link library by using a universal device, and sends the called link library to any simulator. In this way, the link library and the simulation platform can be set in multiple-to-multiple, that is, the link library is shared, and then the user can use different platforms and different link libraries for simulation, thereby improving the user experience effect.
[0173] 2) The control method of the universal system of the link library of the present application can call any first calling interface through a second calling interface. In this way, the first calling interface can call the corresponding link library, so that the second calling interface can call any link library. In this way, the called link library can be sent to any simulator. In this way, the link library and the simulation platform can be set in multiple-to-multiple, that is, the link library is shared, and then the user can use different platforms and different link libraries for simulation, thereby improving the user experience effect.
[0174] 3) The control device of the general system of the link library of this application can call any one of the first call interfaces through the second call interface. In this way, the first call interface can call the corresponding link library, and the second call interface can call any link library. This allows the called link library to be sent to any simulator. In this way, the link library and the simulation platform can be set up in a many-to-many manner, that is, the link library is shared. As a result, users can use different platforms and different link libraries to perform simulation, thereby improving the user experience.
[0175] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A general system for linking libraries, characterized in that, include: A workstation is used to store multiple linked libraries. The linked libraries are a collection of library files used in the linking process. The linked libraries include dynamic link libraries and static link libraries. The static link libraries use .lib files, and the code in the library needs to be linked into the executable file. Multiple simulators, each of which is used to implement hardware simulation; A general-purpose device is communicatively connected to the workstation and multiple simulators respectively. The general-purpose device is used to call any one of the link libraries and send the called link library to any one of the simulators. The general-purpose device also includes: an RTLinux operating system, which provides a set of support functions for real-time hardware processes and controls the simulation process; and a GCC compiler, which works with the RTLinux operating system to compile code. The general-purpose device further includes: a network interface, through which the general-purpose device communicates with the workstation and receives the link library sent by the workstation; and an optical fiber interface, through which the general-purpose device communicates with multiple simulators respectively. A timer and a task scheduling list are set in the general device. Each link library has a different scheduling cycle, but they are all integer multiples of the real-time simulation step. Every time the timer counts a real-time simulation step, it traverses the task scheduling list once and runs the link library that needs to be run in this simulation step in real time. After the workstation sends the link libraries of each platform to the general device via network protocol, the service program resident in the general device generates specific C language calling code according to the link libraries of each platform and provides a unified second calling interface. This C language code is compiled into a first calling interface by GCC. Finally, the second calling interface is used to call the first calling interface, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
2. The general system for link libraries according to claim 1, characterized in that, The plurality of said link libraries include the RTLAB link library, the ADPSS link library, and the HyperSim link library, and the plurality of said simulators include the RTDS simulator, the RTLAB simulator, the ADPSS simulator, and the HyperSim simulator.
3. A control method for a general system with a library as described in claim 1 or 2, characterized in that, The method includes: Obtain first interface information of multiple first call interfaces, wherein each first call interface corresponds to a link library, and the first call interface is used to call the corresponding link library; Obtain the second interface information of the second calling interface, wherein the second calling interface is used to call the first calling interface; The second calling interface is used to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information; Control the simulator corresponding to the linked library to perform simulation; if the duration of not receiving a response from the simulator is greater than or equal to a predetermined duration, determine that the simulator is abnormal; After obtaining the second interface information of the second calling interface, the method further includes: obtaining a task scheduling list, wherein the task scheduling list includes multiple tasks, each of the tasks including the link library to be called; traversing the task scheduling list and executing the multiple tasks in sequence; Executing multiple tasks sequentially includes: obtaining the priorities of the multiple tasks and executing the multiple tasks sequentially in descending order of priority; obtaining the association relationship of the multiple tasks and executing the multiple tasks sequentially according to the association relationship, wherein the association relationship includes a serial relationship and a parallel relationship, the serial relationship being the relationship in which the multiple tasks are executed in sequence, and the parallel relationship being the relationship in which the multiple tasks are executed in parallel.
4. The method according to claim 3, characterized in that, After the second calling interface calls the first calling interface according to the second interface information, and the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information, the method further includes: Upon receiving an end command, the continued invocation of the link library is stopped based on the end command, wherein the end command is generated by the workstation.
5. A control device for a general system of the library of claim 1 or 2, characterized in that, The device includes: The first acquisition unit is used to acquire first interface information of multiple first call interfaces, wherein the first call interface corresponds one-to-one with the link library, and the first call interface is used to call the corresponding link library; The second acquisition unit is used to acquire the second interface information of the second calling interface, wherein the second calling interface is used to call the first calling interface; The first processing unit is configured to use the second calling interface to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information. A control unit is used to control the simulator corresponding to the linked library to perform simulation. The determining unit is configured to determine that the simulator is malfunctioning if the duration for which no response is received from the simulator is greater than or equal to a predetermined duration. The device further includes a third acquisition unit and a second processing unit. The third acquisition unit is used to acquire a task scheduling list after acquiring the second interface information of the second calling interface, wherein the task scheduling list includes multiple tasks, and each task includes the link library to be called in advance. The second processing unit is used to traverse the task scheduling list and execute the multiple tasks in sequence. The second processing unit includes a first processing module and a second processing module. The first processing module is used to obtain the priorities of multiple tasks and execute the multiple tasks sequentially in descending order of priority. The second processing module is used to obtain the association relationship of the multiple tasks and execute the multiple tasks sequentially according to the association relationship. The association relationship includes a serial relationship and a parallel relationship. The serial relationship is the relationship in which the multiple tasks are executed in sequence, and the parallel relationship is the relationship in which the multiple tasks are executed in parallel.
Citation Information
Patent Citations
Message middleware integration method for intelligent automobile multi-entity joint simulation
CN116010039A