A device function implementation method, device, device and storage medium
By determining the functions to be implemented on large computer equipment such as servers and setting parameters simultaneously, the problem of insufficient function effectiveness due to errors in setting the power-on policy is solved, and the accurate and efficient implementation of functions is achieved.
Patent Information
- Application Number
- CN202412000530.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-01
AI Technical Summary
On large computer equipment such as servers, when the device functions are realized through the interaction between the basic input and output system and the management controller, it is easy to cause errors in the storage and mutual synchronization of the power-on policy settings, resulting in insufficient functional effectiveness.
By determining the function to be implemented for the target device and setting parameters synchronously between the first device component and the second device component, comparison is performed to ensure that the parameters are consistent and ensure that the functions are implemented by the leading component.
The implementation plan of equipment functions has been optimized, and the leading items of function implementation have been clarified, avoiding the problem of unclear setting implementation plan and actual implementation plan due to unclear dominance.
Smart Images

Figure CN119739568A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for realizing device functions. Background Art
[0002] On large computer equipment such as servers, the design of a management controller will be introduced to implement some server configuration and monitoring functions through corresponding chips and functional codes.
[0003] In consideration of unified control of servers through management controllers, on large computer products such as servers equipped with management controllers, the target device functions to be realized will be actually controlled and realized through the management controller. In the realization of some functions, if the function is realized through the interaction of the basic input and output system and the management controller, it is easy to cause insufficient functional effectiveness due to the storage and mutual synchronization of power-on policy settings. For example, the actual setting is A, but due to errors in some links such as storage, acquisition, and synchronization, the function may eventually be realized according to policy B.
[0004] It can be seen that how to ensure that the device functions are implemented according to the actual settings is a problem that technical personnel in this field need to solve. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a method, apparatus, device and storage medium for realizing device functions, which can avoid the phenomenon that the set implementation scheme and the actual implementation scheme are unclear due to unclear dominant.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a method for realizing device functions, which is applied to a target device and includes:
[0007] Determine a target device function to be implemented of the target device; the target device function to be implemented is a device function that is implemented by the first device component of the target device;
[0008] If the target device function to be implemented needs to be implemented with the assistance of a second device component of the target device, synchronizing the second setting parameters for the target device function to be implemented in the second device component to the first device component, so that the first device component compares the second setting parameters with the local first setting parameters;
[0009] If the comparison result indicates that there is a difference between the second setting parameter and the first setting parameter, the first setting parameter is synchronized to the second device component so that the second device component assists in realizing the target device function to be realized based on the first setting parameter.
[0010] Optionally, if the target device function to be implemented needs to be implemented with the assistance of a second device component of the target device, then synchronizing the second setting parameters for the target device function to be implemented in the second device component to the first device component so that the first device component compares the second setting parameters with the local first setting parameters, further comprising:
[0011] Adding a target device function option to be implemented in the first device component setting item, and initiating a first confirmation prompt for the target device function to be implemented;
[0012] If a first confirmation instruction corresponding to the first confirmation prompt is received, parsing the confirmation instruction to obtain a first parsing result;
[0013] If the first analysis result indicates that the target device function to be implemented is dominated by the first device component, a second confirmation prompt is initiated to determine whether the target device function to be implemented needs to be assisted by the second device component.
[0014] Optionally, synchronizing the second setting parameters for the target device function to be implemented in the second device component to the first device component so that the first device component compares the second setting parameters with the local first setting parameters, including:
[0015] If a second confirmation instruction corresponding to the second confirmation prompt is received, the second confirmation instruction is parsed to obtain a second parsing result;
[0016] If the second analysis result indicates that the target device function to be implemented needs to be implemented with the assistance of the second device component, obtaining a second setting parameter of the second device component for the target device function to be implemented;
[0017] The second setting parameter is synchronized to the first device component, so that after receiving the second setting parameter, the first device component compares the second setting parameter with the local first setting parameter for the target device function to be implemented to obtain a corresponding comparison result.
[0018] Optionally, the device function implementation method of the present application further includes:
[0019] If the comparison result indicates that there is no difference between the second setting parameters and the first setting parameters, or the target device function to be implemented does not need to be assisted by the second device component, the target device function to be implemented is implemented by the first device component based on the first setting parameters.
[0020] Optionally, the first device component is a basic input / output system of the target device, and correspondingly, the second device component is a management controller of the target device;
[0021] Alternatively, the first device component is a management controller of the target device, and correspondingly, the second device component is a basic input / output system of the target device.
[0022] Optionally, the device function implementation method of the present application further includes:
[0023] Obtain system setting parameters of the operating system of the target device for the target device function to be implemented;
[0024] Sending the system setting parameters to the management controller so that the management controller performs parameter setting based on the system setting parameters to obtain a corresponding first target parameter; wherein, if the management controller is a first device component, the first target parameter is a first setting parameter; if the management controller is a second device component, the first target parameter is a second setting parameter;
[0025] The system setting parameters are synchronized to the basic input / output system through the management controller, so that the basic input / output system performs parameter setting based on the system setting parameters to obtain the second target parameter; wherein, if the basic input / output system is a first device component, the second target parameter is the first setting parameter; if the basic input / output system is a second device component, the second target parameter is the second setting parameter.
[0026] Optionally, the target device function to be implemented is a power-off recovery function of the target device.
[0027] In a second aspect, the present application discloses a device function implementation apparatus, which is applied to a target device, including:
[0028] A leading component confirmation module is used to determine a target device function to be implemented by the target device; the target device function to be implemented is a device function that is led by the first device component of the target device;
[0029] A parameter comparison module, for synchronizing the second setting parameters for the target device function to be implemented in the second device component to the first device component if the target device function to be implemented needs to be implemented with the assistance of the second device component of the target device, so that the first device component compares the second setting parameters with the local first setting parameters;
[0030] The parameter synchronization module is used to synchronize the first setting parameter to the second device component if the comparison result indicates that there is a difference between the second setting parameter and the first setting parameter, so that the second device component assists in realizing the target device function to be realized based on the first setting parameter.
[0031] In a third aspect, the present application discloses an electronic device, comprising:
[0032] Memory for storing computer programs;
[0033] The processor is used to execute the computer program to implement the steps of the aforementioned device function implementation method.
[0034] In a fourth aspect, the present application discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned device function implementation method are implemented.
[0035] In the present application, the target device function to be implemented of the target device can be determined; the target device function to be implemented is a device function that is mainly implemented by the first device component of the target device; if the target device function to be implemented needs to be assisted by the second device component of the target device, the second setting parameters for the target device function to be implemented in the second device component are synchronized to the first device component, so that the first device component compares the second setting parameters and the local first setting parameters; if the comparison result obtained indicates that there is a difference between the second setting parameters and the first setting parameters, the first setting parameters are synchronized to the second device component, so that the second device component assists in implementing the target device function to be implemented based on the first setting parameters.
[0036] Beneficial effects: It can be seen that, through the method of the present application, after determining the target device function to be implemented of the target device, the second setting parameters for the target device function to be implemented in the second device component can be synchronized to the first device component. After receiving the second setting parameters, the first device component needs to compare the local first setting parameters and the second setting parameters. If there is a difference between the second setting parameters and the first setting parameters, the first setting parameters need to be synchronized to the second device component, and then the second device component assists in implementing the target device function to be implemented based on the first setting parameters. In this way, the implementation plan of the device function can be optimized, the dominant item of the function implementation can be clarified, and the phenomenon that the set implementation plan and the actual implementation plan are unclear due to unclear dominance can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A flow chart of a method for implementing device functions provided by an embodiment of the present invention;
[0039] Figure 2 A timing diagram of a method for realizing device functions provided by an embodiment of the present invention;
[0040] Figure 3A flow chart of a specific method for implementing device functions provided by an embodiment of the present invention;
[0041] Figure 4 A timing diagram of another method for implementing device functions provided by an embodiment of the present invention;
[0042] Figure 5 A schematic diagram of a device structure for realizing device functions provided by an embodiment of the present invention;
[0043] Figure 6 A structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] In the prior art, for the purpose of uniformly controlling the server through a management controller, the device functions to be implemented will be actually controlled and implemented through the management controller. In the implementation of some functions, if the function is implemented through the interaction of the basic input and output system and the management controller, it is easy to cause insufficient functional effectiveness due to the storage and mutual synchronization of power-on policy settings.
[0046] In order to overcome the above technical problems, the present application discloses a method, apparatus, device and storage medium for realizing device functions, which can avoid the phenomenon that the set implementation scheme and the actual implementation scheme are unclear due to unclear dominant.
[0047] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0048] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0049] See also Figure 1 As shown, the present application discloses a method for realizing device functions, which is applied to a target device and includes:
[0050] Step S11, determining a target device function to be implemented of the target device; the target device function to be implemented is a device function that is mainly implemented by the first device component of the target device.
[0051] In this embodiment, it is necessary to determine the target device function to be implemented of the target device, wherein the target device function to be implemented is a device function that is mainly implemented by the first device component of the target device, such as Figure 2 As shown, after determining the target device function to be implemented, Figure 2 The function is the Restore AC Power Loss function, that is, the power-off recovery function. It is necessary to add the target device function option to be implemented in the first device component setting item, and initiate the first confirmation prompt for the target device function to be implemented. For example, if the first device component is BIOS (Basic Input Output System), it is necessary to add the option of the target device function to be implemented in the BIOS setting page, and initiate a confirmation prompt for whether to set the target device function to be implemented to be dominated by BIOS. It should be noted that the target device function to be implemented is a device function implemented by the first device component of the target device, and the target device function to be implemented includes but is not limited to the security setting function, the date setting function, the power setting function, etc. In this embodiment, the target device function to be implemented is the power-off recovery function of the target device, that is, the Restore AC Power Loss function, and the target device is a server device.
[0052] Furthermore, after receiving the first confirmation prompt, the user can issue a first confirmation instruction corresponding to the first confirmation prompt. If the target device receives the first confirmation instruction, the first confirmation instruction can be parsed to determine the first parsing result corresponding to the first confirmation instruction, and whether the target device function to be implemented is dominated by the first device component according to the first parsing result. If the first parsing result indicates that the target device function to be implemented is dominated by the first device component, it is necessary to initiate a second confirmation prompt to determine whether the target device function to be implemented needs to be assisted by the second device component. In this way, the dominant component for implementing the function can be confirmed according to the received instruction, thereby improving the accuracy of function implementation.
[0053] Step S12: If the target device function to be implemented needs to be assisted by the second device component of the target device, synchronize the second setting parameters for the target device function to be implemented in the second device component to the first device component, so that the first device component compares the second setting parameters with the local first setting parameters.
[0054] In this embodiment, after receiving the second confirmation prompt, the user can issue a second confirmation instruction corresponding to the second confirmation prompt. After receiving the second confirmation instruction, the target device can parse the second confirmation instruction to obtain a second parsing result. It should be noted that if the second parsing result indicates that the target device function to be implemented needs to be assisted by the second device component, it is necessary to obtain the second setting parameters of the second device component for the target device function to be implemented, and then synchronize the second setting parameters to the first device component through the second device component. Further, after receiving the second setting parameters, the first device component needs to compare the second setting parameters with the local first device parameters to determine whether there are different differences between the first device parameters and the second device parameters, and obtain the corresponding comparison results. In this way, the parameters of the non-dominant component can be synchronized to the dominant component, so that the dominant component can judge the parameters of the non-dominant component, and synchronize the local parameters to the non-dominant component when the parameters are inconsistent, so as to avoid the situation where the actual implementation plan is inconsistent with the set plan.
[0055] It should be noted that, considering that users have different usage habits, some users are more accustomed to using BMC (Baseboard Management Controller) for function settings compared to BIOS. Therefore, the first device component can be BIOS or BMC. Similarly, the second device component can be BIOS or BMC. Therefore, if the first device component is the basic input and output system of the target device, that is, BIOS, then the second device component is the management controller of the target device, which is the baseboard management controller, that is, BMC (Baseboard Management Controller) in this embodiment. On the other hand, if the first device component is the baseboard management controller of the target device, then the second device component is the basic input and output system of the target device. In this way, different setting requirements of users can be met, effectively improving the user experience.
[0056] Step S13: If the comparison result indicates that there is a difference between the second setting parameter and the first setting parameter, the first setting parameter is synchronized to the second device component so that the second device component assists in realizing the target device function to be realized based on the first setting parameter.
[0057] In this embodiment, if the comparison result of the obtained parameters indicates that there is a difference between the second setting parameter and the first setting parameter, it is necessary to synchronize the first setting parameter in the first device component to the second device component, so that the second device component can set the target device function to be implemented according to the first setting parameter of the first device component, so as to assist in realizing the target device function to be realized after the setting is completed. It should be noted that if the comparison result indicates that there is no difference between the second setting parameter and the first setting parameter, the target device function to be realized can be realized by the first device component based on the first setting parameter. It should be noted that the setting priority of the first device component is higher than that of the second setting component. Therefore, taking the first device component as BIOS as an example, when there is no difference between the second setting parameter and the first setting parameter, the target device function to be realized, that is, the power-off recovery function, can be realized directly by BIOS based on the first setting parameter. On the other hand, if the target device function to be implemented does not need to be assisted by a second device component, the target device function to be implemented is implemented by the first device component based on the first setting parameters, and the second device component does not need to be assisted in the implementation. That is, if the user sets the target device function to be implemented only by the first device component, the target device function to be implemented can also be implemented by the first device component based on the first setting parameters, and the second device component does not need to be assisted in the implementation.
[0058] It should be further explained that, according to user needs, the dominant result of the newly added target device function to be implemented can also be explicitly displayed on the POST interface information of the BIOS, and at the same time, the dominant result of the target device function to be implemented can be explicitly displayed on the WebUI (Website User Interface) interface of the BMC. This can help users understand which component is dominant in implementing the current target device function to be implemented.
[0059] Furthermore, when the device is powered off and recovered, the power-on status of the device can be recorded, and the power-on status information can be stored in the registers of the BMC and BIOS, and then it can be determined whether there is abnormal status information in the power-on status information. If there is abnormal status information, the abnormal status information needs to be saved and sent to the user end, and the abnormal status information can be displayed through the front end of the device, or sent to the user's mailbox by email. In this way, the user can promptly understand whether the power-on status during the power-off recovery process is in a normal state, or whether the power-on status of the device after the power-off recovery is in an abnormal state and the reason for the abnormal state, so as to adjust the abnormality in time.
[0060] In this embodiment, after determining the target device function to be implemented of the target device, the second setting parameter for the target device function to be implemented in the second device component can be synchronized to the first device component. After receiving the second setting parameter, the first device component needs to compare the local first setting parameter and the second setting parameter. If there is a difference between the second setting parameter and the first setting parameter, the first setting parameter needs to be synchronized to the second device component, and then the second device component assists in implementing the target device function to be implemented based on the first setting parameter. In this way, on the one hand, the implementation scheme of the device function can be optimized, the dominant item of the function implementation can be clarified, and the phenomenon of unclear implementation scheme and actual implementation scheme caused by unclear dominance can be avoided; on the other hand, the dominant component for implementing the function can be confirmed according to the received instruction to improve the accuracy of function implementation; on the other hand, the parameters of the non-dominant component can be synchronized to the dominant component, so that the dominant component can judge the parameters of the non-dominant component, and synchronize the local parameters to the non-dominant component when the parameters are inconsistent, so as to avoid the situation where the actual implementation scheme is inconsistent with the set scheme.
[0061] Based on the above embodiments, it can be known that, through the method of the present application, the target device function to be realized can be realized by the device component based on the parameters set by itself, but on the other hand, it can also be set under the operating system to realize the target device function to be realized. For this reason, this embodiment describes in detail how to set under the operating system to realize the target device function to be realized. Figure 3 As shown, the present application discloses a method for realizing device functions, which is applied to a target device and includes:
[0062] Step S21: Obtain system setting parameters of the operating system of the target device for the target device function to be implemented.
[0063] In this embodiment, Figure 4 As shown, the system setting parameters of the target device's operating system for the target device function to be implemented can be obtained, wherein the target device's operating system includes but is not limited to IPMI (Intelligent Platform Management Interface), Redfish, etc., and its implementation principle is that the user communicates with the BMC through the operating system level tool or CMD (command prompt), so that after the BMC receives the corresponding instruction, it determines the specific settings for the target device function to be implemented, and then the BMC passes the setting content to the BIOS, and then the BIOS implements the target device function to be implemented, or the BMC implements the target device function to be implemented.
[0064] Step S22: sending the system setting parameters to the management controller so that the management controller performs parameter setting based on the system setting parameters to obtain corresponding first target parameters.
[0065] In this embodiment, the system setting parameters of the operating system need to be sent to the management controller, which is the BMC in this embodiment. After receiving the system setting parameters, the BMC needs to parse the system setting parameters to determine the parameter settings of the operating system for the target device function to be implemented, and then perform its own parameter settings for the target device function to be implemented based on the parameter settings obtained by the analysis to determine the corresponding target parameters. It should be noted that if the BMC is the first device component, the first target parameter is the first setting parameter; if the BMC is the second device component, the first target parameter is the second setting parameter.
[0066] Step S23: synchronizing the system setting parameters to the basic input / output system through the management controller, so that the basic input / output system performs parameter setting based on the system setting parameters to obtain the second target parameters.
[0067] In this embodiment, a management controller is also required, that is, the system setting parameters are synchronized to the basic input and output system BIOS through the BMC, so that the BIOS can parse the system setting parameters to determine the parameter settings of the operating system for the target device function to be implemented, and then perform its own parameter settings for the target device function to be implemented according to the parameter settings obtained by the analysis to determine the corresponding target parameters, where if the basic input and output system is the first device component, the second target parameter is the first setting parameter, and if the basic input and output system is the second device component, the second target parameter is the second setting parameter. In this way, the setting of the target device function to be implemented in the target device can be implemented through the operating system, which expands the implementation scheme of the device function and effectively improves the user experience.
[0068] Furthermore, the target device function to be implemented can also be set up through other means, such as transmitting a setting signal to a baseboard management controller or a basic input / output system through a CPLD (Complex Programmable Logic Device), agreeing on a certain hardware signal, such as GPIO (General-purpose input / output), etc., to transmit the setting to the basic input / output system or baseboard management controller. If the signal is high, the basic input / output system is dominant, and if the signal is low, the baseboard management controller is dominant.
[0069] Step S24: synchronizing the second setting parameters for the target device function to be implemented in the second device component to the first device component, so that the first device component compares the second setting parameters with the local first setting parameters.
[0070] Step S25: If the comparison result indicates that there is a difference between the second setting parameter and the first setting parameter, the first setting parameter is synchronized to the second device component so that the second device component assists in realizing the target device function to be realized based on the first setting parameter.
[0071] It can be seen that in this embodiment, the system setting parameters of the target device operating system for the target device function to be realized can be obtained; then the system setting parameters are sent to the management controller so that the management controller performs parameter setting based on the system setting parameters to obtain the corresponding first target parameters, and the system setting parameters are synchronized to the basic input and output system through the management controller so that the basic input and output system performs parameter setting based on the system setting parameters to obtain the second target parameters, and then the second setting parameters for the target device function to be realized in the second device component are synchronized to the first device component so that the first device component compares the second setting parameters and the local first setting parameters, and finally, if the comparison result obtained indicates that there is a difference between the second setting parameters and the first setting parameters, the first setting parameters are synchronized to the second device component so that the second device component assists in realizing the target device function to be realized based on the first setting parameters. In this way, the setting of the target device function to be realized in the target device can be realized through the operating system, which expands the implementation scheme of the device function and effectively improves the user experience.
[0072] See also Figure 5 As shown, the present application discloses a device for realizing device functions, which is applied to a target device and includes:
[0073] A leading component confirmation module 11 is used to determine a target device function to be implemented of the target device; the target device function to be implemented is a device function that is led by the first device component of the target device;
[0074] A parameter comparison module 12 is used for synchronizing the second setting parameters for the target device function to be implemented in the second device component to the first device component if the target device function to be implemented needs to be implemented with the assistance of the second device component of the target device, so that the first device component compares the second setting parameters with the local first setting parameters;
[0075] The parameter synchronization module 13 is used to synchronize the first setting parameter to the second device component if the comparison result indicates that there is a difference between the second setting parameter and the first setting parameter, so that the second device component assists in realizing the target device function to be realized based on the first setting parameter.
[0076] In the present application, the target device function to be realized of the target device can be determined; the target device function to be realized is a device function that is realized by the first device component of the target device; if the target device function to be realized needs to be realized by the second device component of the target device, the second setting parameter for the target device function to be realized in the second device component is synchronized to the first device component, so that the first device component compares the second setting parameter and the local first setting parameter; if the comparison result obtained indicates that there is a difference between the second setting parameter and the first setting parameter, the first setting parameter is synchronized to the second device component, so that the second device component assists in realizing the target device function to be realized based on the first setting parameter. It can be seen that, through the method of the present application, after determining the target device function to be realized of the target device, the second setting parameter for the target device function to be realized in the second device component can be synchronized to the first device component, and the first device component needs to compare the local first setting parameter and the second setting parameter after receiving the second setting parameter. If there is a difference between the second setting parameter and the first setting parameter, the first setting parameter needs to be synchronized to the second device component, and then the second device component assists in realizing the target device function to be realized based on the first setting parameter. In this way, the implementation plan of the device function can be optimized, the dominant factor in function implementation can be clarified, and the phenomenon of ambiguity between the set implementation plan and the actual implementation plan due to unclear dominant factor can be avoided.
[0077] In some embodiments, the device function implementation means may further include:
[0078] A first confirmation prompt unit, used to add a target device function option to be implemented in the first device component setting item, and initiate a first confirmation prompt for the target device function to be implemented;
[0079] A first instruction parsing unit, configured to parse the confirmation instruction to obtain a first parsing result if a first confirmation instruction corresponding to the first confirmation prompt is received;
[0080] The second confirmation prompt unit is used to initiate a second confirmation prompt for whether the target device function to be implemented needs to be assisted by the second device component if the first analysis result indicates that the target device function to be implemented is dominated by the first device component.
[0081] In some embodiments, the leading component confirmation module 11 may specifically include:
[0082] a second instruction parsing unit, configured to parse the second confirmation instruction to obtain a second parsing result if a second confirmation instruction corresponding to the second confirmation prompt is received;
[0083] A first parameter acquisition unit is configured to acquire a second setting parameter of the second device component for the target device function to be implemented if the second analysis result indicates that the target device function to be implemented needs to be implemented with the assistance of the second device component;
[0084] The parameter comparison unit is used to synchronize the second setting parameter to the first device component, so that after receiving the second setting parameter, the first device component compares the second setting parameter with the local first setting parameter for the target device function to be implemented to obtain a corresponding comparison result.
[0085] In some embodiments, the device function implementation means may further include:
[0086] The function realization unit is used to realize the target device function to be realized based on the first setting parameters through the first device component if the comparison result indicates that there is no difference between the second setting parameters and the first setting parameters, or the target device function to be realized does not need to be realized with the assistance of the second device component.
[0087] In some embodiments, the first device component is a basic input / output system of the target device, and correspondingly, the second device component is a management controller of the target device;
[0088] Alternatively, the first device component is a management controller of the target device, and correspondingly, the second device component is a basic input / output system of the target device.
[0089] In some embodiments, the device function implementation means may further include:
[0090] A second parameter acquisition unit, used to acquire system setting parameters of the operating system of the target device for the target device function to be implemented;
[0091] A first parameter setting unit, configured to send the system setting parameter to the management controller, so that the management controller performs parameter setting based on the system setting parameter to obtain a corresponding first target parameter; wherein, if the management controller is a first device component, the first target parameter is a first setting parameter; if the management controller is a second device component, the first target parameter is a second setting parameter;
[0092] The second parameter setting unit is used to synchronize the system setting parameters to the basic input / output system through the management controller, so that the basic input / output system performs parameter setting based on the system setting parameters to obtain second target parameters; wherein, if the basic input / output system is a first device component, the second target parameter is the first setting parameter; if the basic input / output system is a second device component, the second target parameter is the second setting parameter.
[0093] In some embodiments, the target device function to be implemented is a power-off recovery function of the target device.
[0094] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the device function implementation method disclosed in any of the aforementioned embodiments. In addition, the electronic device in this embodiment may specifically be an electronic computer.
[0095] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0096] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0097] The operating system 221 is used to manage and control various hardware devices on the electronic device and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the device function implementation method performed by the electronic device disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0098] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the device function realization method disclosed above is realized. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.
[0099] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0100] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0101] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0102] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0103] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for realizing a device function, characterized in that: Applied to target devices, including: Determine a target device function to be implemented of the target device; the target device function to be implemented is a device function that is implemented by a first device component of the target device; If the target device function to be implemented needs to be assisted by a second device component of the target device, synchronizing the second setting parameters for the target device function to be implemented in the second device component to the first device component, so that the first device component compares the second setting parameters with the local first setting parameters; If the comparison result indicates that there is a difference between the second setting parameter and the first setting parameter, the first setting parameter is synchronized to the second device component so that the second device component assists in realizing the target device function to be realized based on the first setting parameter.
2. The device function implementation method according to claim 1, characterized in that: If the target device function to be implemented needs to be assisted by the second device component of the target device, then synchronizing the second setting parameters for the target device function to be implemented in the second device component to the first device component so that the first device component compares the second setting parameters with the local first setting parameters, further comprising: Adding a target device function option to be implemented in the first device component setting item, and initiating a first confirmation prompt for the target device function to be implemented; If a first confirmation instruction corresponding to the first confirmation prompt is received, parsing the confirmation instruction to obtain a first parsing result; If the first analysis result indicates that the target device function to be implemented is dominated by the first device component, a second confirmation prompt is initiated to determine whether the target device function to be implemented needs to be assisted by a second device component.
3. The device function implementation method according to claim 2, characterized in that: The step of synchronizing the second setting parameter for the target device function to be implemented in the second device component to the first device component so that the first device component compares the second setting parameter with the local first setting parameter includes: If a second confirmation instruction corresponding to the second confirmation prompt is received, parsing the second confirmation instruction to obtain a second parsing result; If the second analysis result indicates that the target device function to be implemented needs to be implemented with the assistance of the second device component, obtaining a second setting parameter of the second device component for the target device function to be implemented; The second setting parameter is synchronized to the first device component, so that after the first device component receives the second setting parameter, the second setting parameter and the local first setting parameter for the target device function to be implemented are compared to obtain a corresponding comparison result.
4. The device function implementation method according to claim 1, characterized in that: Also includes: If the comparison result indicates that there is no difference between the second setting parameters and the first setting parameters, or the target device function to be implemented does not need to be assisted by the second device component, the target device function to be implemented is implemented by the first device component based on the first setting parameters.
5. The device function implementation method according to claim 1, characterized in that: The first device component is a basic input and output system of the target device, and correspondingly, the second device component is a management controller of the target device; Alternatively, the first device component is a management controller of the target device, and correspondingly, the second device component is a basic input / output system of the target device.
6. The device function implementation method according to claim 5, characterized in that: Also includes: Obtaining system setting parameters of the operating system of the target device for the target device function to be implemented; Sending the system setting parameter to the management controller so that the management controller performs parameter setting based on the system setting parameter to obtain a corresponding first target parameter; wherein, if the management controller is the first device component, the first target parameter is the first setting parameter; if the management controller is the second device component, the first target parameter is the second setting parameter; The system setting parameters are synchronized to the basic input / output system through the management controller, so that the basic input / output system performs parameter setting based on the system setting parameters to obtain second target parameters; wherein, if the basic input / output system is the first device component, the second target parameter is the first setting parameter; if the basic input / output system is the second device component, the second target parameter is the second setting parameter.
7. The device function implementation method according to any one of claims 1 to 6, characterized in that: The target device function to be implemented is a power-off recovery function of the target device.
8. A device for realizing a device function, characterized in that: Applied to target devices, including: A leading component confirmation module, used to determine a target device function to be implemented of the target device; the target device function to be implemented is a device function that is led by the first device component of the target device; a parameter comparison module, configured to synchronize second setting parameters for the target device function to be implemented in the second device component to the first device component if the target device function to be implemented needs to be implemented with the assistance of the second device component of the target device, so that the first device component compares the second setting parameters with the local first setting parameters; A parameter synchronization module is used to synchronize the first setting parameter to the second device component if the comparison result indicates that there is a difference between the second setting parameter and the first setting parameter, so that the second device component assists in realizing the target device function to be realized based on the first setting parameter.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the device function implementation method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device function implementation method according to any one of claims 1 to 7 are implemented.