A control method, control device, equipment and medium of a fan system
By decoupling library file development from application layer control logic in the wind turbine system, and using a general programming language to generate driver files and configuration files, the problem of cross-platform application of library files is solved, cross-platform calls are realized, development efficiency is improved and costs are reduced.
Patent Information
- Application Number
- CN202311152605.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-07
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-09-07
AI Technical Summary
The existing wind turbine system library files cannot be used across platforms, resulting in poor versatility. This necessitates redevelopment, which increases the development cycle and cost.
By decoupling library development from application-layer control logic, the application layer calls system-layer library files, and a general-purpose programming language is used to generate driver files and configuration files at the system layer, determine the target driver file and entry address, and achieve cross-platform calling.
It improves the versatility of library files, reduces redundant development work, increases development efficiency, and lowers costs.
Smart Images

Figure CN117108449B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of fan system control method, control device, equipment and medium. BACKGROUND
[0002] In the fan power generation control system, the library file is developed in the same platform as the control logic, which will lead to the cross-platform application of the library file due to the development platform factors (such as the programming language supported by the development platform, the inconsistency of data type definition, etc.), and the library file does not have universality. When the control program is applied cross-platform, a large number of library files need to be redeveloped. SUMMARY
[0003] In view of the problems existing in the prior art, the present application provides a fan system control method, control device, equipment and medium, which mainly solves the problems of difficult cross-platform application of the library file of the existing fan system and poor universality.
[0004] In order to achieve the above-mentioned purpose and other purposes, the technical scheme adopted by the present application is as follows.
[0005] The present application also provides a fan system control method, comprising: obtaining a to-be-queried parameter; determining a drive file of a library file matched with the to-be-queried parameter as a target drive file through an access system layer, so as to determine an entry address of the corresponding library file according to the target drive file; and transmitting a preset running parameter into the corresponding library file through the entry address, so as to obtain an execution result of the library file.
[0006] In an embodiment of the present application, before determining the drive file of the library file matched with the to-be-queried parameter through the access system layer, it further comprises: obtaining a library file; generating a drive file and a configuration file running in the system layer according to the library file, so as to determine the target drive file based on the drive file and the configuration file, wherein the configuration file is used to describe the storage location of the drive file in the system layer.
[0007] In an embodiment of the present application, determining the target drive file based on the drive file and the configuration file comprises: respectively accessing each drive file of the system layer according to the configuration file, so as to extract the library file handle in each drive file; and comparing the library file handle with the to-be-queried parameter to determine the target drive file.
[0008] In an embodiment of the present application, the way of extracting the library file handle in each drive file comprises: calling an application interface of the system layer, so as to extract the library file handle in each drive file through the application interface.
[0009] In an embodiment of the present application, before determining the entry address of the corresponding library file according to the target driver file, the method further comprises: generating a system symbol table according to the driver files of the library files, so as to determine the entry address of the corresponding library file by accessing the system symbol table, wherein the entry addresses of the library files are recorded in the system symbol table.
[0010] The present application also provides a control method of a fan system, comprising: obtaining a to-be-inquired parameter of an application layer; determining a driver file of a library file matched with the to-be-inquired parameter as a target driver file, and determining an entry address of the corresponding library file according to the target driver file; receiving preset running parameters input by the application layer based on the entry address, so that the corresponding library file runs according to the preset running parameters to obtain an execution result.
[0011] The present application also provides a control device of a fan system, comprising: an application input module, configured to obtain a to-be-inquired parameter; a system layer calling module, configured to determine a driver file of a library file matched with the to-be-inquired parameter as a target driver file by accessing a system layer, so as to determine an entry address of the corresponding library file according to the target driver file; and a data transmission module, configured to input preset running parameters into the corresponding library file through the entry address, so as to obtain an execution result of the library file.
[0012] The present application also provides a control device of a fan system, comprising: a system layer data transmission module, configured to obtain a to-be-inquired parameter of an application layer; a file query module, configured to determine a driver file of a library file matched with the to-be-inquired parameter as a target driver file, and determine an entry address of the corresponding library file according to the target driver file; and a library file running response module, configured to receive preset running parameters input by the application layer based on the entry address, so that the corresponding library file runs according to the preset running parameters to obtain an execution result.
[0013] The present application also provides a computer 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 control method of the fan system when executing the computer program.
[0014] The present application also provides a computer readable storage medium, having a computer program stored thereon, wherein the computer program is executable on a processor to implement the steps of the control method of the fan system.
[0015] As described above, the control method, control device, equipment and medium of the fan system have the following beneficial effects.
[0016] The application can decouple the control logic and the library file by applying the library file to the system layer, and the control logic of each application can be implemented by the application layer. The application layer can call the library file of the system layer to implement the corresponding function of the application layer control logic. In this way, the control logic and the library file can be decoupled. When the controller platform is switched, the library file of the system layer can be shared, the workload of repeated development of the library file can be avoided, the universality of the library file of the system layer can be improved, the application development workload can be reduced, and the application development efficiency can be improved. The application layer only needs to focus on the code development of the control logic layer. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 FIG. 1 is a flowchart of a control method of a fan system according to an embodiment of the present application.
[0018] Figure 2 FIG. 2 is a schematic diagram of a control architecture of a fan system according to an embodiment of the present application.
[0019] Figure 3 FIG. 3 is a flowchart of a control method of a fan system according to another embodiment of the present application.
[0020] Figure 4 FIG. 4 is a module diagram of a control device of a fan system according to an embodiment of the present application.
[0021] Figure 5 FIG. 5 is a module diagram of a control device of a fan system according to another embodiment of the present application.
[0022] Figure 6 FIG. 6 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] The embodiments of the present application will be described in detail hereinafter with specific reference to the attached drawings. The advantages and effects of the present application can be easily understood by those skilled in the art from the content disclosed in the specification. The present application can also be implemented or applied in different specific embodiments, and the details in the specification can be modified or changed based on different views and applications without departing from the spirit of the present application. It should be noted that the features in the following embodiments and the embodiments can be combined with each other without conflict.
[0024] It should be noted that the diagrams provided in the following embodiments only illustrate the basic concept of the present application in a schematic manner, and the diagrams only show the components related to the present application, not the number, shape and size of the components when actually implemented. The actual implementation of each component can be randomly changed in terms of type, number and proportion, and the component layout pattern can be more complex.
[0025] The inventors have found that:
[0026] In an embodiment, the fan system can include a system layer and an application layer. The application layer can be used to interface different controller platforms, switch the controller platform used to control the fan power generation as needed, and the control logic applied in different controller platforms differs. These control logics need a large number of functions and algorithms as support, which exist in the form of library files. The library files and control logics of the existing fan system are actually completed code development on the same platform. The library files between different control platforms cannot be applied across platforms and are not universal. When switching the controller platform, a large number of library files need to be redeveloped, greatly increasing the development cycle and development workload and investment cost.
[0027] Based on the problems existing in the prior art, the present application proposes a control method, a control device, equipment and a medium for a fan system. The technical solutions of the present application will be described in detail below in conjunction with specific embodiments.
[0028] Please refer to Figure 1 , Figure 1 The present application provides a flowchart of a control method for a fan system in an embodiment of the present application. The present application provides a control method for a fan system, which includes the following steps:
[0029] Step S100, obtaining a to-be-queried parameter.
[0030] In an embodiment, in order to improve the universality of the library file and reduce the workload of repeatedly developing the library file, the development of the library file can be decoupled from the development of the control logic of the application layer, so that the library file runs in the system layer and the applied control logic runs in the application layer. The library file is called and run through the interface of the application layer to realize the corresponding function. For the development of the library file, a development environment different from the control logic can be used. Specifically, a general high-level programming language (such as C language) can be used in a general development environment (such as VsCode) to realize the function, edit the corresponding code file, and obtain the universal library file through compiling the code file. The library file can run in the system layer, and the application layer can access the library file in the system layer through the interface calling mode. The programming language and programming environment used for developing the library file can be selected and adjusted according to actual application requirements, which is not limited here.
[0031] In an embodiment, after obtaining the corresponding library file through the general development environment, a corresponding driver file can be generated based on the library file. The driver file can include the library file handle, the entry address in the system layer hardware of the library file, etc. The library file handle can be a name code representing the library file or an identification identifier of the library file, etc. After obtaining the driver file of the library file, the driver file can be placed in a preset path of the system layer.
[0032] In an embodiment, a configuration file of each drive file can be generated at the system layer, and the configuration file is used to describe the storage location of the drive file. When the application layer needs to call the library file to implement the function of the application layer, the application layer can take the library file name, identifier and other parameters as the to-be-queried parameters, and the to-be-queried parameters are transmitted into the system layer. The system layer can query the drive file and the configuration file of the library file according to the to-be-queried parameters, and determine the target drive file matched with the to-be-queried parameters.
[0033] In step S110, the drive file of the library file matched with the to-be-queried parameters is determined as the target drive file by accessing the system layer, so as to determine the entry address of the corresponding library file according to the target drive file.
[0034] In an embodiment, the target drive file is determined based on the drive file and the configuration file, including: accessing each drive file of the system layer according to the configuration file, so as to extract the library file handle in each drive file; and comparing the library file handle with the to-be-queried parameters to determine the target drive file. Specifically, since the configuration file is mainly used to describe the existing path of the drive file, after the system layer receives the to-be-queried parameters transmitted by the application layer, the existing path of each drive file can be obtained by calling the configuration file, and then the drive file at the corresponding existing path is accessed to obtain the library file handle in the drive file. The library file handle is compared with the to-be-queried parameters. If they are consistent, the corresponding drive file is taken as the target drive file. If they are inconsistent, the next drive file is accessed by switching the path, until the target drive file is obtained.
[0035] In an embodiment, the system layer can provide an application interface, and the application layer can obtain the library file handle by calling the application interface of the system layer.
[0036] In an embodiment, a function module for interfacing with the system layer can be developed based on the development environment of the application layer. The application function module can be used to transmit the to-be-queried data to the system layer. Specifically, the FB_CallExtLib function in the application function module can be called to transmit the name of the library file to be called to the system layer, and the handle mode is obtained by CMD_GetLibHandle to find the library file handle in the system layer. After obtaining the library file handle, the drive file to which the library file handle belongs is taken as the target drive file, and the entry address of the library file in the target drive file is further extracted.
[0037] In an embodiment, before the entry address of the corresponding library file is determined according to the target drive file, the system symbol table is further generated according to the drive file of each library file, so as to determine the entry address of the corresponding library file by accessing the system symbol table, wherein the entry address of each library file is recorded in the system symbol table.
[0038] Specifically, since the system layer generates corresponding drive files for different library files, the drive files contain the entry address and other information of each library file, a system symbol table can be generated based on each drive file of the system layer, the system symbol table is mainly used to record the entry address information of each library file, the system symbol table can store the library file information in categories based on the categories of the library files, thereby improving the efficiency of table lookup. After determining the target drive file, the system symbol table can be accessed based on the handle of the target drive file to call the entry address of the corresponding library file.
[0039] In step S120, the preset running parameters are transmitted to the corresponding library file through the entry address to obtain the execution result of the library file.
[0040] In an embodiment, after obtaining the entry address of the library file, the FB_CallExtLib of the aforementioned application function module can be called again to transmit the running parameters required by the preset library file running to the library file through the entry address, and the library file function mode is called through the CMD_CallExtLib to realize the calling and running of the library file function, and the result of the library file after execution according to the given running parameters is transmitted back to the application layer in the form of return value. The general method of the application layer to call the library file of the system layer through the FB_CallExtLib function block is as follows:
[0041]
[0042]
[0043] Please refer to Figure 2 , Figure 2 is a control architecture schematic diagram of a fan system in an embodiment of the present application. The FB_CallExtLib of the application layer calls the configuration description file (i.e. the configuration file in the aforementioned step) of the system layer, and determines the library file to be called based on the configuration description file. The FB_CallExtLib first performs initialization FB_Init when calling the library file, and returns a failure code ERR_InitNotOK if the initialization fails, and further acquires the library file handle of the system layer through CMD_GetLibHandle if the initialization is successful, and returns an error code ERR_NoHandleFound if the corresponding library file does not exist in the system layer or the library file handle fails to be acquired due to other reasons. After obtaining the library file handle, the parameters required by the library file running can be transmitted to the corresponding library file of the system layer through CMD_CallExtLib, so that the library file returns the execution result after execution based on the transmitted parameters, thereby realizing the function required by the application layer.
[0044] Based on the technical solutions of the embodiments of the application, the development of the library file is decoupled from the development of the application layer control logic, the library file is developed and run at the system layer, the problem that the library file needs to be developed again when the fan system switching controller platform is switched is solved, the applicability of the library file is improved, the development amount is reduced, the development docking efficiency of the system layer and the application layer is improved, and the development cost is reduced.
[0045] Referring to Figure 3 , Figure 3 FIG. 2 is a flowchart of a control method of a fan system according to another embodiment of the application. The control method of the fan system includes the following steps.
[0046] In step S300, a to-be-queried parameter of an application layer is acquired.
[0047] In step S310, a drive file of a library file matched with the to-be-queried parameter is determined as a target drive file, and an entry address of a corresponding library file is determined according to the target drive file.
[0048] In step S320, a preset running parameter transmitted by the application layer is received based on the entry address, so that the corresponding library file runs according to the preset running parameter to obtain an execution result.
[0049] Figure 3 The control method shown in FIG. 2 takes the system layer as an execution subject, and its execution process is similar to that of the control method taking the application layer as an execution subject, and the detailed process is not described here.
[0050] In an embodiment, before the drive file of the library file matched with the to-be-queried parameter is determined, the method further includes: acquiring the library file; generating a drive file and a configuration file running at the system layer according to the library file, so as to determine the target drive file based on the drive file and the configuration file, wherein the configuration file is used to describe a storage location of the drive file at the system layer.
[0051] In an embodiment, the target drive file is determined based on the drive file and the configuration file, including: respectively accessing each drive file at the system layer according to the configuration file, so as to extract a library file handle in each drive file; and comparing the library file handle with the to-be-queried parameter to determine the target drive file.
[0052] In an embodiment, the library file handle in each drive file is extracted in the following manner: an application interface of the system layer is called, so as to extract the library file handle in each drive file through the application interface.
[0053] In an embodiment, before the entry address of the corresponding library file is determined according to the target drive file, the method further includes: generating a system symbol table according to the drive file of each library file, so as to determine the entry address of the corresponding library file by accessing the system symbol table, wherein the entry address of each library file is recorded in the system symbol table.
[0054] Referring to Figure 4 , Figure 4 A module diagram of a control device of a fan system in an embodiment of the present application, the control device comprising: an application input module 40 configured to obtain a query parameter; a system layer calling module 41 configured to determine a drive file of a library file matching the query parameter as a target drive file by accessing a system layer, and determine an entry address of the corresponding library file according to the target drive file; and a data transmission module 42 configured to transmit preset running parameters into the corresponding library file through the entry address to obtain an execution result of the library file.
[0055] In an embodiment, the system layer calling module 41 is further configured to, before determining the drive file of the library file matching the query parameter by accessing the system layer, further comprising: obtaining the library file; generating a drive file and a configuration file running in the system layer according to the library file, to determine the target drive file based on the drive file and the configuration file, wherein the configuration file is configured to describe a storage location of the drive file in the system layer.
[0056] In an embodiment, the system layer calling module 41 is further configured to determine the target drive file based on the drive file and the configuration file, comprising: accessing each drive file of the system layer according to the configuration file to extract a library file handle in each drive file; and comparing the library file handle with the query parameter to determine the target drive file.
[0057] In an embodiment, the system layer calling module 41 is further configured to extract the library file handle in each drive file, comprising: calling an application interface of the system layer to extract the library file handle in each drive file through the application interface.
[0058] In an embodiment, the system layer calling module 41 is further configured to, before determining the entry address of the corresponding library file according to the target drive file, further comprising: generating a system symbol table according to the drive file of each library file to determine the entry address of the corresponding library file by accessing the system symbol table, wherein the system symbol table records the entry address of each library file.
[0059] Referring to Figure 5 , Figure 5 A module diagram of a control device of a fan system in another embodiment of the present application, the control device comprising: a system layer data transmission module 50 configured to obtain a query parameter of an application layer; a file query module 51 configured to determine a drive file of a library file matching the query parameter as a target drive file, and determine an entry address of the corresponding library file according to the target drive file; and a library file running response module 52 configured to receive preset running parameters transmitted by the application layer based on the entry address, to make the corresponding library file run according to the preset running parameters to obtain an execution result.
[0060] In an embodiment, the file query module 51 is further configured to, before determining the target driver file based on the driver file and the configuration file, further comprises: obtaining the library file; generating the driver file and the configuration file running at the system layer based on the library file, wherein the configuration file is used to describe the storage location of the driver file at the system layer.
[0061] In an embodiment, the file query module 51 is further configured to, before determining the target driver file based on the driver file and the configuration file, further comprises: obtaining the library file; generating the driver file and the configuration file running at the system layer based on the library file, wherein the configuration file is used to describe the storage location of the driver file at the system layer.
[0062] In an embodiment, the file query module 51 is further configured to, before determining the target driver file based on the driver file and the configuration file, further comprises: obtaining the library file; generating the driver file and the configuration file running at the system layer based on the library file, wherein the configuration file is used to describe the storage location of the driver file at the system layer.
[0063] In an embodiment, the file query module 51 is further configured to, before determining the target driver file based on the driver file and the configuration file, further comprises: obtaining the library file; generating the driver file and the configuration file running at the system layer based on the library file, wherein the configuration file is used to describe the storage location of the driver file at the system layer.
[0064] The control method of the fan system can be implemented in the form of a computer program, which can run on a computer device as shown in Figure 6 The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0065] The modules in the control device of the fan system can be implemented by software, hardware, or a combination thereof. The modules can be embedded in or independent of the memory of the terminal in hardware form, or stored in the memory of the terminal in software form, so that the processor can call and execute the operations corresponding to the modules. The processor can be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, etc.
[0066] As shown in Figure 6 As shown in FIG. 8, an internal structure of a computer device in an embodiment is shown. The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: obtaining a query parameter; determining the driver file of the library file matching the query parameter as a target driver file by accessing the system layer; determining the entry address of the corresponding library file based on the target driver file; and transmitting a preset running parameter into the corresponding library file through the entry address to obtain the execution result of the library file.
[0067] In an embodiment, when the processor executes, the implemented method further comprises: obtaining the library file; generating the driver file and the configuration file based on the library file, wherein the configuration file is used to describe the storage location of the driver file in the system layer; and determining the target driver file based on the driver file and the configuration file.
[0068] In an embodiment, when the processor executes, the implemented method of determining the target driver file based on the driver file and the configuration file comprises: accessing each driver file in the system layer according to the configuration file to extract the library file handle in each driver file; and comparing the library file handle with the query parameter to determine the target driver file.
[0069] In an embodiment, when the processor executes, the implemented method of extracting the library file handle in each driver file comprises: calling an application interface of the system layer to extract the library file handle in each driver file through the application interface.
[0070] In an embodiment, when the processor executes, the implemented method of determining the entry address of the corresponding library file based on the target driver file further comprises: generating a system symbol table based on the driver file of each library file to determine the entry address of the corresponding library file by accessing the system symbol table, wherein the entry address of each library file is recorded in the system symbol table.
[0071] In an embodiment, the computer device can be used as a server, including but not limited to a stand-alone physical server, or a server cluster composed of multiple physical servers. The computer device can also be used as a terminal, including but not limited to a mobile phone, a tablet computer, a personal digital assistant, a smart device, etc. Figure 6 As shown in the figure, the computer device comprises a processor, a non-volatile storage medium, an internal memory, a display screen and a network interface connected through a system bus.
[0072] The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The non-volatile storage medium of the computer device stores an operating system and a computer program. The computer program can be executed by the processor to implement the control method of the fan system provided in each of the above embodiments. The internal memory of the computer device provides a cache running environment for the operating system and the computer program in the non-volatile storage medium. The display interface can display data through the display screen. The display screen can be a touch screen, such as a capacitive screen or an electronic screen, which can generate corresponding instructions by receiving the click operation of the control displayed on the touch screen.
[0073] Those skilled in the art can understand that Figure 6The structure of the computer device shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. A specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0074] In one embodiment, a computer readable storage medium is provided, and the computer program is stored on the computer readable storage medium. The computer program is executed by a processor to implement the following steps: obtaining a to-be-queried parameter; determining a drive file of a library file matched with the to-be-queried parameter as a target drive file through an access system layer, to determine an entry address of the corresponding library file according to the target drive file; and transmitting a preset running parameter into the corresponding library file through the entry address, to obtain an execution result of the library file.
[0075] In one embodiment, when the computer program is executed by the processor, the determination of the target drive file based on the drive file and the configuration file further includes: accessing each drive file of the system layer according to the configuration file, to extract a library file handle in each drive file; and comparing the library file handle with the to-be-queried parameter to determine the target drive file.
[0076] In one embodiment, when the computer program is executed by the processor, the determination of the target drive file based on the drive file and the configuration file further includes: accessing each drive file of the system layer according to the configuration file, to extract a library file handle in each drive file; and comparing the library file handle with the to-be-queried parameter to determine the target drive file.
[0077] In one embodiment, when the computer program is executed by the processor, the extraction of the library file handle in each drive file includes: calling an application interface of the system layer, to extract the library file handle in each drive file through the application interface.
[0078] In one embodiment, when the computer program is executed by the processor, the determination of the entry address of the corresponding library file according to the target drive file further includes: generating a system symbol table according to the drive file of each library file, to determine the entry address of the corresponding library file by accessing the system symbol table, wherein the entry address of each library file is recorded in the system symbol table.
[0079] The above embodiments are only illustrative of the principles and effects of the present application, and are not intended to limit the present application. Any person skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by those skilled in the art without departing from the spirit and technical thought of the present application should be covered by the claims of the present application.
Claims
1. A control method of a fan system, characterized by, The method comprises the following steps: obtaining a to-be-queried parameter; determining a drive file of a library file matched with the to-be-queried parameter as a target drive file through accessing a system layer, so as to determine an entry address of the corresponding library file according to the target drive file; before determining the drive file of the library file matched with the to-be-queried parameter, the method further comprises the following steps: obtaining a library file; generating a drive file and a configuration file running in the system layer according to the library file, so as to determine the target drive file based on the drive file and the configuration file, wherein the configuration file is used to describe a storage location of the drive file in the system layer; determining the target drive file based on the drive file and the configuration file comprises the following steps: accessing each drive file in the system layer respectively according to the configuration file, so as to extract a library file handle in each drive file; and comparing the library file handle with the to-be-queried parameter to determine the target drive file; transmitting a preset running parameter into the corresponding library file through the entry address, so as to obtain an execution result of the library file.
2. The control method of a fan system according to claim 1, characterized by, The method for extracting the library file handle in each drive file comprises the following steps: calling an application interface of the system layer, so as to extract the library file handle in each drive file through the application interface.
3. The control method of a fan system according to claim 1, characterized by, before determining the entry address of the corresponding library file according to the target drive file, the method further comprises the following steps: generating a system symbol table according to the drive file of each library file, so as to determine the entry address of the corresponding library file by accessing the system symbol table, wherein the entry address of each library file is recorded in the system symbol table.
4. A control method of a fan system, characterized by, The method comprises the following steps: obtaining a to-be-queried parameter of an application layer; determining a drive file of a library file matched with the to-be-queried parameter as a target drive file, and determining an entry address of the corresponding library file according to the target drive file; before determining the drive file of the library file matched with the to-be-queried parameter, the method further comprises the following steps: obtaining a library file; generating a drive file and a configuration file running in a system layer according to the library file, so as to determine the target drive file based on the drive file and the configuration file, wherein the configuration file is used to describe a storage location of the drive file in the system layer; and determining the target drive file based on the drive file and the configuration file comprises the following steps: accessing each drive file in the system layer respectively according to the configuration file, so as to extract a library file handle in each drive file; and comparing the library file handle with the to-be-queried parameter to determine the target drive file; receiving a preset running parameter transmitted by the application layer based on the entry address, so that the corresponding library file runs according to the preset running parameter to obtain an execution result.
5. A control device of a fan system, characterized by comprising: The method comprises the following steps: an application input module is used to obtain a to-be-queried parameter; a system layer calling module is used to determine a drive file of a library file matched with the to-be-queried parameter as a target drive file through accessing a system layer, so as to determine an entry address of the corresponding library file according to the target drive file; Before determining the driver file of the library file matched with the to-be-queried parameter by accessing the system layer, the method further includes: obtaining the library file; generating a driver file and a configuration file running at the system layer according to the library file, so as to determine the target driver file based on the driver file and the configuration file, wherein the configuration file is used to describe a storage location of the driver file at the system layer; and determining the target driver file based on the driver file and the configuration file includes: accessing each driver file at the system layer respectively according to the configuration file, so as to extract a library file handle in each driver file; and comparing the library file handle with the to-be-queried parameter to determine the target driver file. The data transmission module is configured to transmit preset running parameters to the corresponding library file through the entry address, so as to obtain an execution result of the library file.
6. A control device of a fan system, characterized by comprising: The method comprises the following steps: The system layer data transmission module is configured to obtain a to-be-queried parameter of an application layer. The file query module is configured to determine a driver file of a library file matched with the to-be-queried parameter as a target driver file, and determine an entry address of the corresponding library file according to the target driver file. Before determining the driver file of the library file matched with the to-be-queried parameter by accessing the system layer, the method further includes: obtaining the library file; generating a driver file and a configuration file running at the system layer according to the library file, so as to determine the target driver file based on the driver file and the configuration file, wherein the configuration file is used to describe a storage location of the driver file at the system layer; and determining the target driver file based on the driver file and the configuration file includes: accessing each driver file at the system layer respectively according to the configuration file, so as to extract a library file handle in each driver file; and comparing the library file handle with the to-be-queried parameter to determine the target driver file. The library file running response module is configured to receive preset running parameters transmitted by the application layer based on the entry address, so that the corresponding library file runs according to the preset running parameters to obtain an execution result.
7. A computer 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 control method of the fan system according to any one of claims 1 to 3 when executing the computer program.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the control method of the fan system according to any one of claims 1 to 3.
Citation Information
Patent Citations
Data access layer class generator
US20060155720A1
Method for using header files to call a shared library from a dynamic environment
US7428737B1