Data processing method and device and electronic equipment

By utilizing the information created by the second system when the operating system is running and independently executing instructions in target mode, stable storage and updating of BIOS configuration parameters are achieved, solving the problem of inconsistent BIOS configuration and improving user experience and configuration flexibility.

CN120803546APending Publication Date: 2025-10-17LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510900870.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

At the operating system stage, how to accurately set the BIOS configuration becomes a problem, and existing technologies may lead to inconsistent configurations and poor user experience.

Method used

By utilizing the first information created by the second system when the first system is running, instructions are executed independently of the first and second systems in target mode to achieve a mapping between a recognizable representation of a parameter and a parameter value, and the information is stably stored in the first storage for updating the configuration parameters in the second storage.

Benefits of technology

Ensure the accuracy and stability of BIOS configuration. Users can adjust parameters while the operating system is running without restarting the device, improving user experience and configuration flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803546A_ABST
    Figure CN120803546A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device and electronic equipment. The data processing method comprises the steps that first operation is obtained; the first operation is used for adjusting parameters managed by a second system and used for configuring the electronic equipment when the first system runs, and the second system is used for guiding the first system; obtaining first information from the first storage in response to the first operation; the first information is created when the second system guides the first system to run; and updating the second information in the second storage based on the first information.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and particularly relates to a data processing method and device and electronic equipment. BACKGROUND

[0002] In order to meet the automatic management requirements of large-scale computer systems, a BIOS (Basic Input Output System) configuration setting mode in an operating system (OS) stage is generated. However, how to accurately set the BIOS configuration in the operating system stage becomes a problem. SUMMARY

[0003] The technical scheme provided by the present application is as follows:

[0004] The first aspect of the present application provides a data processing method, comprising:

[0005] obtaining a first operation; the first operation is used for adjusting a parameter for configuring an electronic device managed by a second system when a first system runs, and the second system is used for booting the first system;

[0006] obtaining first information from a first storage in response to the first operation; the first information is created by the second system when booting the first system;

[0007] updating second information in a second storage based on the first information.

[0008] The first information is created by the following method:

[0009] when the second system runs, entering a target mode in response to a second operation; in the target mode, a processor of the electronic device executes instructions independently of the first system or the second system; the second operation is used for entering an interface of the second system to configure the electronic device;

[0010] in the target mode, creating the first information and storing the first information to the first storage.

[0011] The first information is obtained from the first storage, comprising:

[0012] entering the target mode, and obtaining the first information from the first storage in the target mode.

[0013] The first information is used for realizing a mapping between a recognizable representation of the parameter and a parameter value of the parameter in the second storage;

[0014] The second information in the second storage is updated based on the first information, comprising:

[0015] finding, based on the first information, a parameter value of a target parameter operated by the first operation in a second storage;

[0016] translating, based on the first information, an identifiable representation of the target parameter after modification by the first operation into a target parameter value;

[0017] replacing the parameter value of the target parameter in the second storage with the target parameter value.

[0018] The first operation includes:

[0019] In the first system running, in response to a trigger event, obtaining a parameter for configuring an electronic device from the second system;

[0020] Based on the parameter for configuring the electronic device, generating a display in the interactive interface of the first system;

[0021] Obtaining a modification operation for the target parameter in the interactive interface.

[0022] Another aspect of the present application provides a data processing apparatus, comprising a first module and a second module, wherein:

[0023] The first module is configured to obtain a first operation, and the first operation is used to adjust a parameter for configuring an electronic device managed by a second system in a first system running;

[0024] The second module is configured to obtain first information from a first storage; the first information is created by the second system when booting the first system running;

[0025] The second module is further configured to update second information in a second storage based on the first information.

[0026] The data processing apparatus further comprises a third module, wherein:

[0027] The third module is configured to write an operation code to an interrupt control port to generate a hardware interrupt signal, so that the processor enters a target mode in response to the hardware interrupt signal;

[0028] The second module is configured to update the second information in the second storage based on the first information in the target mode;

[0029] The first module communicates with the second module through the third module.

[0030] The data processing apparatus further comprises a fourth module, wherein:

[0031] The fourth module is configured to obtain a second operation, and the second operation is configured to enter an interface of the second system to configure the electronic device in response to the third module;

[0032] The second module is further configured to create first information and store the first information into the first storage in the target mode.

[0033] The third aspect of the present application provides an electronic device, comprising:

[0034] A first storage is configured to store first information, wherein the first information is created by a second system when booting a first system;

[0035] A second storage is configured to store second information.

[0036] A processor is configured to:

[0037] obtain a first operation, wherein the first operation is configured to adjust a parameter for configuring the electronic device managed by the second system when the first system is running;

[0038] obtain the first information from the first storage in response to the first operation;

[0039] update the second information in the second storage based on the first information.

[0040] The first storage comprises a random access memory which is only accessible in a target mode, and the processor executes instructions independently of the first system or the second system in the target mode. BRIEF DESCRIPTION OF DRAWINGS

[0041] The above and other features, advantages and aspects of embodiments of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:

[0042] Figure 1 A flowchart of a data processing method provided by Embodiment 1 of the present application;

[0043] Figure 2 A schematic diagram of a BIOS Setup interface provided by the present application;

[0044] Figure 3 A flowchart of a data processing method provided by Embodiment 4 of the present application;

[0045] Figure 4 A flowchart of a data processing method provided by Embodiment 5 of the present application;

[0046] Figure 5 A schematic diagram of an interactive interface displayed on a first system is provided for the present application;

[0047] Figure 6 A structural schematic diagram of a data processing apparatus is provided for the present application;

[0048] Figure 7 Another structural schematic diagram of a data processing apparatus is provided for the present application;

[0049] Figure 8 Still another structural schematic diagram of a data processing apparatus is provided for the present application. DETAILED DESCRIPTION

[0050] The embodiments of the present application are described below in conjunction with the accompanying drawings. The terms used in the embodiment part of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0051] The embodiments of the present application are described below in conjunction with the accompanying drawings. It is known to those of ordinary skill in the art that, as technology develops and new scenarios appear, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0052] The terms "first", "second", and the like in the present application are used to distinguish similar objects, and do not necessarily mean a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, which is only a distinguishing way used in the description of the embodiments of the present application to describe the objects with the same attributes. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, so that the processes, methods, systems, products or equipment containing a series of units do not have to be limited to those units, but can include other units not clearly listed or inherent to these processes, methods, products or equipment.

[0053] Reference Figure 1 A flowchart of a data processing method is provided for Embodiment 1 of the present application, as shown in Figure 1 The method can include, but is not limited to, the following steps:

[0054] Step S101, obtaining a first operation; the first operation is used to adjust a parameter for configuring an electronic device managed by a second system when a first system is running, and the second system is used to guide the first system.

[0055] The second system (e.g., BIOS or UEFI (Unified Extensible Firmware Interface)) can perform hardware initialization, self-check (POST), and boot the first system (e.g., operating system) when the electronic device (e.g., laptop, tablet, desktop, server, etc.) is started.

[0056] After the first system is running, the user can need to adjust the configuration parameters managed by the second system according to actual needs, such as adjusting the startup order, hardware performance settings, port state adjustment, etc. For example, when the user adds a new hard disk to the electronic device and wants to set it as the system startup disk or for storing important data, it is necessary to adjust the startup order in the BIOS. For example, the electronic device originally starts from the old hard disk, and after adding the new hard disk, the user wants the new hard disk to be the first startup device, so as to install a new operating system on the new hard disk or directly start the installed system from the new hard disk. At this time, after the operating system is running, the user can initiate the adjustment operation of the BIOS startup order configuration parameter in the operating system environment through a specific management tool or script, without the need to restart the electronic device to enter the BIOS Setup interface.

[0057] Alternatively, after upgrading the graphics card, there may be graphics card related setting options in some BIOS, such as the initial frequency of the graphics card, the memory allocation, etc. If the performance of the new graphics card is different from the old one, in order to fully exert the performance of the new graphics card or solve the compatibility problem, the user can need to adjust these BIOS configuration parameters after the operating system is running. For example, some high-end graphics cards can need to adjust the power management settings in the BIOS to ensure stable operation of the graphics card in high performance mode.

[0058] Alternatively, when using the electronic device, the user finds that a certain USB port is in a disabled state, causing the device connected to the port to not work normally. In order to enable the port, the user can also adjust the configuration parameter in the BIOS or UEFI that manages the state of the USB port to modify it from the disabled state to the enabled state when the operating system is running.

[0059] If the parameters for configuring the electronic device managed by the second system need to be adjusted when the first system is running, the first system needs to present the parameters first. In the embodiment, when the first system is running, an interface for interacting with the second system, such as a WMI (Windows Management Instrumentation) interface, can be invoked to obtain the identifiers of the parameters for configuring the electronic device from the second system. Meanwhile, the first information can be obtained from the first storage. Based on the first information, the second information corresponding to the identifiers of the parameters can be obtained from the second storage, and the second information can include the specific parameter values of the parameters for configuring the electronic device.

[0060] In addition, the identifiers of the parameters and the parameter values can be presented on the first system in an intuitive form based on the first information.

[0061] The first information can be created by the second system when booting the first system.

[0062] When the second system is running, once the first information created when booting the first system is stored in the first storage, the first storage will not release the stored first information after the booting process ends. This means that when the first system is started and enters the normal running stage, the first information in the first storage can still be accessed.

[0063] For each parameter presented by the first system, the first operation can be initiated in various ways.

[0064] For example, the user can initiate the first operation through specific management software. For example, the user starts the management software A, and if the user wants to view the status of the USB port, the management software A can obtain the identifiers of the status parameters of the ports such as USB Port 1 from the second system, obtain the first information from the first storage, based on the first information, obtain the parameter values corresponding to the identifiers of the status parameters of the ports such as USB Port 1 from the second storage, and present the identifiers of the status parameters of the ports such as USB Port 1 and the parameter values corresponding to the identifiers of the status parameters of the ports such as USB Port 1 in an intuitive form on the user interface of the management software A. Assuming that the parameter value corresponding to the status parameter of USB Port 1 is 0, the management software A displays it as "Disable" on the interface based on the first information.

[0065] When the user wants to enable USB Port 1, the status of USB Port 1 is modified from "Disable" to "Enable" on the user interface of the management software A.

[0066] Alternatively, the user can initiate the first operation by writing a script. For example, the user can write a WMI script containing the instruction of setting the USB Port 1 to the enabled state.

[0067] In step S102, the first information is obtained from the first storage in response to the first operation.

[0068] As mentioned in step S101, the first information can be used to present the parameters in an intuitive form in the first system in the stage of presenting the parameters to the user, so that the first system can present the parameters to the user in a friendly and understandable manner.

[0069] When the user initiates the first operation, i.e. modifies the parameters, the first information can also map the modification of the parameters made by the user on the first system to the second storage.

[0070] For example, when the user modifies the state of the USB Port 1 from "disable" to "enable" on the management software A, the management software A determines that the parameter value corresponding to the "enable" state is 1 according to the first information obtained from the first storage, and can determine the storage location of the USB Port 1 state parameter in the second storage, so as to prepare for accurately writing the modified parameter value into the second storage subsequently.

[0071] In step S103, the second information in the second storage is updated based on the first information.

[0072] The second information can contain specific parameter values of the parameters used to configure the electronic device, which can directly determine the working state and performance of the hardware device. For example, when the value of the USB Port 1 state parameter is 1, it indicates that the port is in the enabled state, and the device connected to the port can work normally; and when the value is 0, it indicates that the port is in the disabled state.

[0073] The second storage can include but is not limited to SPI ROM (Serial Peripheral Interface Read-Only Memory) or SPI flash (Serial Peripheral Interface Flash).

[0074] In the embodiment, updating the second information in the second storage based on the first information can make the second system detect the change of the second information in real time and adjust the configuration of the hardware device to meet different use requirements of the user.

[0075] For example, the management software A determines that the parameter value corresponding to "Enable" is 1 according to the first information, and then replaces the original parameter value 0 of the USB Port 1 state parameter in the second storage with 1. After the replacement with 1, the second system can detect that the original parameter value 0 of the USB Port 1 state parameter is replaced with 1, and the second system will switch the state from "Disable" to "Enable".

[0076] The effectiveness of the adjusted configuration can be different according to the type of the configuration. For example, for some configurations with high real-time requirements, such as USB port state, part of hardware performance parameters, etc., the configuration can take effect immediately after the configuration is updated, and the user can immediately experience the effect of the configuration change without restarting the electronic device. For some configurations involving system underlying architecture or with extremely high stability requirements, the configuration can take effect only after the electronic device is restarted to ensure that the system applies the new configuration in a stable environment.

[0077] In the embodiment, when the second system runs, the first information created when the first system runs is stored in the first storage. The first storage does not release the stored first information after the booting process is completed. This means that when the first system starts and enters the normal running stage, the first information in the first storage can still be accessed, i.e., the first information created by the second system is used, thereby effectively avoiding the inconsistency with the original configuration of the second system caused by repeated creation, and ensuring the accuracy of the configuration.

[0078] For example, in the BIOS (Basic Input Output System), the first information defines that the disabled USB state is mapped to 0x01 in the second storage, and the enabled USB state is mapped to 0x00 in the second storage. When the user modifies the state parameter of the USB through the first system, for example, from the enabled state to the disabled state, the BIOS will map the correct 0x01 to the SPIROM according to the first information in the first storage. When the second system runs, it will read the data in the SPIROM and correctly configure the USB state according to the correct value 0x01, set the USB to the disabled state, thereby meeting the user's needs.

[0079] However, if the WMI tool is used to create and manage relevant information, inconsistencies may occur with the first information in the BIOS. In the information created by the WMI tool, the enabled USB state is mistakenly mapped to 0x01 in the secondary storage, and the disabled USB state is mistakenly mapped to 0x00 in the secondary storage, which is completely opposite to the mapping in the BIOS. When the user uses the WMI tool again to change the USB state from enabled to disabled, the WMI tool will map 0x00 to the SPIROM according to its internal incorrect mapping rules. After the second system reads 0x00 in the SPI ROM, it mistakenly sets the USB state to enabled, which is contrary to the user's expected disabled state. This configuration inconsistency caused by different information creation methods not only prevents the hardware device from working as the user expects, but may also cause a series of system failures, seriously affecting the user's experience with the device.

[0080] However, by using the first information created by the second system when the first system is running, the first system can map the correct 0x01 to the SPIROM. In this way, the second system can accurately identify the USB disabled state corresponding to 0x01 and set the USB to disabled, which fully meets the user's needs.

[0081] As another optional embodiment of the present application, a data processing method is provided in Example 2 of the present application. This embodiment is mainly an implementation method of the first information in the above Example 1. The first information can be created in the following manner, but is not limited to:

[0082] Step S11: When the second system is running, in response to a second operation, entering a target mode; in the target mode, the processor of the electronic device executes instructions independently of the first system or the second system.

[0083] The second operation is used to enter the interface of the second system to configure the electronic device. The second operation can be pressing a specific function key during the startup of the electronic device. Different electronic device brands and models may have different function keys, with common ones including F2, F10, Del (Delete key), Esc, etc.

[0084] For example, Figure 2 As shown in the figure, after entering the BIOS Setup interface (i.e., the interface of the second system), the user will be presented with a series of menu options. Typically, the keyboard arrow keys (up, down, left, and right) are used to navigate between different menu items. For example, the up and down arrow keys can be used to select different configuration categories, such as "Main," "Advanced," "Security," and "Boot."

[0085] When the desired configuration category is navigated to, the left and right direction keys or the enter key are used to enter the specific configuration item list under the category. For example, under the "Boot" category, the user can see configuration items such as "Boot Device Priority". For each configuration item, a specific key on the keyboard can usually be used for modification.

[0086] Alternatively, assuming that the USB configuration is under the "Advanced" category, the user can use the up and down direction keys to find the "Advanced" option, and then press the enter key to enter the category. Under the "Advanced" category, the up and down direction keys are used to browse the various configuration items, and the USB-related configuration items are found, such as USB port 1 corresponding to Disable and USB port 2 corresponding to Enable. After the user positions the up and down direction keys to Disable of USB port 1, the space bar or enter key can be used to switch to Enable.

[0087] In the embodiment, the second system (e.g., BIOS) can write the first type of code into a first storage (e.g., a random access memory such as SMRAM (System Management RAM)) in the memory protected by hardware during the system startup initialization phase, and the first type of code can be used to handle critical tasks such as hardware monitoring, power management, and security operations. At the same time, the second system can mark the first storage as being usable only when entering a target mode (e.g., SMM mode) during the system startup initialization phase.

[0088] The target mode can be entered by the following method: when the second system is running, in response to a second operation, an operation code can be written to an interrupt control port to generate a hardware interrupt signal, so that the processor can enter the target mode in response to the hardware interrupt signal.

[0089] In the target mode, the processor can pause the execution of the code in the memory of the first system and the second system that is not hardware-isolated, and the processor only executes the code (e.g., the first type of code) in the first storage, i.e., the processor executes instructions independently of the first system or the second system.

[0090] Since the first type of code for handling critical tasks such as hardware monitoring, power management, and security operations is stored in the first storage, the first storage does not need to be released or reallocated after entering the first system, which ensures that the target mode can quickly respond and perform critical tasks at any time.

[0091] Based on the characteristic that the first storage is not released, the second system can also write a second type of code into the first storage during the system startup initialization phase. The second type of code can be used to create the first information and write the first information into the first storage. So that after entering the target mode, the processor can execute the second type of code in response to a second operation.

[0092] Corresponding to the second type of code, the second system can also write a third type of code into the first storage during the system startup initialization phase. The third type of code can be used to obtain the first information from the first storage.

[0093] Step S12, in the target mode, create the first information, and store the first information to the first storage.

[0094] After entering the first system, since the first storage will not be released, the first information can still be accessed.

[0095] In this embodiment, during the running of the electronic device, the codes of the first system (such as the operating system) and the second system (such as the BIOS) are constantly executed and modified in the memory. This dynamic running environment means that the data in the memory is in a state of frequent change, and any unexpected operation or system conflict can cause the data to be unstable or lost. And the first information, as the key data for accurately configuring the parameters of the electronic device, its stability and integrity are crucial.

[0096] In order to protect the safety of the first information, by entering the target mode (such as the SMM mode), the first information is stored into the first storage (such as the SMRAM) which is protected by hardware. The target mode provides a relatively independent and protected running environment, so that the storage process of the first information can avoid the complex and dynamic data interaction in the memory during the normal running of the first system and the second system. In this mode, the first information is safely written into the first storage, avoiding being accidentally overwritten or modified during the normal running of the first system or the second system.

[0097] And because the first storage will not be released after the boot process is completed, it provides a long-term stable storage space for the first information. No matter how the first system and the second system run and modify other data in the memory subsequently, the first information can always exist in the first storage and remain stable during the entire running of the electronic device. This stability ensures that the first information created by the second system can be directly and reliably used when the first system is running.

[0098] As another optional embodiment of the present application, a data processing method is provided for Embodiment 3 of the present application. This embodiment mainly provides an implementation of obtaining the first information from the first storage in Embodiment 2 above, which can include but is not limited to the following steps:

[0099] Step S21, enter the target mode, in which the first information is obtained from the first storage.

[0100] In this embodiment, in response to the first operation, an operation code can be written to the interrupt control port to generate a hardware interrupt signal, so that the processor can enter the target mode in response to the hardware interrupt signal.

[0101] In the target mode, the processor does not execute the code in the memory that is not hardware-isolated for the first system and the second system, but only executes the code in the first storage, and obtains the first information from the first storage when executing the third type of code in the first storage.

[0102] In the target mode, the processor does not execute the code in the memory that is not hardware-isolated for the first system and the second system, and such isolation ensures that the process of obtaining the first information is not affected by the complex and dynamic data interaction in the memory when the first system and the second system are normally running. For example, the data in the memory can change frequently due to various operations when the first system and the second system are normally running, and if the first information is directly obtained in such an environment, it is likely that incorrect or incomplete data will be obtained. In the target mode, since the processor only executes the code in the first storage, the operation of obtaining the first information can be ensured to be performed in a stable and reliable environment. On this basis, after updating the second information in the second storage based on the first information, the configuration can be accurately performed as expected, and the stability of the electronic device configuration is improved.

[0103] As another optional embodiment of the present application, referring to Figure 3 A flowchart of a data processing method provided in Embodiment 4 of the present application, this embodiment mainly implements one embodiment of the first information in Embodiment 1 above, and the first information can be but is not limited to used to implement the mapping between the identifiable representation of the parameter (such as the text displayed intuitively on the interface, such as “Disable”, “Enable”, etc.) and the parameter value of the parameter in the second storage (such as a specific binary value, such as 0x00, 0x01, etc.).

[0104] Correspondingly, step S103 can include but is not limited to the following steps:

[0105] Step S1031, based on the first information, find the parameter value of the target parameter operated by the first operation in the second storage.

[0106] In this embodiment, when the user initiates a first operation on the first system to modify a certain parameter (which can be regarded as a target parameter), the storage location of the target parameter in the second storage can be determined based on the mapping relationship between the identification of the parameter in the first information and the storage location in the second storage.

[0107] For example, when the user modifies the state of USB Port 1 (i.e., an embodiment of the target parameter) from “Disable” to “Enable” through the management software, the storage location of the state parameter of USB Port 1 in the second storage (such as SPI ROM) can be found according to the first information, i.e., the parameter value of the target parameter is found.

[0108] Step S1032, converting the identifiable representation of the target parameter after the first operation modification into a target parameter value based on the first information.

[0109] The modification of the parameter by the user on the first system is in the form of an identifiable representation, such as modifying the state of USB Port 1 from “Disable” to “Enable”. In this embodiment, the identifiable representation can be converted into the corresponding parameter value in the second storage according to the mapping relationship between the identifiable representation and the parameter value in the first information. For example, according to the first information, the parameter value corresponding to the “Enable” state is 1, and the parameter value corresponding to the “Disable” state is 0. Therefore, when the user modifies the state of USB Port 1 to “Enable”, it can be converted to parameter value 1 according to the first information.

[0110] Step S1033, replacing the parameter value of the target parameter in the second storage with the target parameter value.

[0111] After the replacement is completed, the second system can detect the change of the second information in real time, and adjust the configuration of the hardware device according to the new parameter value (i.e., the target parameter value).

[0112] In this embodiment, the entire process of embodiment 4 is described in detail taking adjusting the state of the USB port as an example. For example, the user views the state of the USB port through the management software and finds that USB Port 1 is in the “Disable” state and wants to modify it to the “Enable” state.

[0113] The processor finds the storage location of the state parameter of USB Port 1 in the SPI ROM (i.e., an embodiment of the second storage) according to the first information, and reads its current parameter value as 0.

[0114] The processor converts the "Enable" state to parameter value 1 according to the first information.

[0115] After determining the new parameter value 1, the processor replaces the parameter value of the USB Port 1 state parameter in the second storage from 0 to 1.

[0116] When the second system detects the change of the USB Port 1 state parameter, it switches its state from disabled to enabled. The user can connect a device to the USB Port 1 and use it normally without restarting the electronic device.

[0117] In this embodiment, the mapping between the identifiable representation of the parameter (such as intuitive text such as "Disable" and "Enable") and the binary value of the parameter in the second storage is realized through the first information. When the user operates the hardware parameter on the first system, he sees a simple and understandable natural language description, without the need to understand the underlying complex binary encoding rules. This design greatly reduces the operation threshold of the user, so that ordinary users can easily adjust the hardware parameters of the electronic device, and improves the user experience.

[0118] When the second system runs, as soon as it stores the first information created when the first system runs to the first storage, the first storage will not release the stored first information after the end of the booting process. This means that when the first system starts and enters the normal running stage, it can still access the first information in the first storage, that is, use the mapping relationship created by the second system, thereby effectively avoiding the inconsistency with the original configuration of the second system caused by repeated creation, and ensuring the accuracy of the configuration.

[0119] As another optional embodiment of the present application, referring to Figure 4 , a flowchart of a data processing method provided for Embodiment 5 of the present application, this embodiment mainly describes an implementation of step S101 in Embodiment 1 above. As shown in Figure 4 , step S101 can include but is not limited to the following steps:

[0120] Step S1011, when the first system runs, in response to a trigger event, obtaining a parameter for configuring an electronic device from the second system.

[0121] During the running of the first system (such as an operating system), the trigger event can be initiated by the user, for example, by clicking a specific button through a specific management software interface, so that the first system calls the WMI interface.

[0122] The first system can communicate with the second system (such as BIOS or UEFI) through a WMI interface, and send a request for obtaining configuration parameters to the second system. After receiving the request, the second system returns the currently managed parameters for configuring the electronic device to the first system. These parameters can include boot order, hardware performance settings, port status, etc.

[0123] Step S1012, based on the parameters for configuring the electronic device, generating an interactive interface displayed on the first system.

[0124] The interactive interface can display the identification of the parameters and the identifiable representation of the parameter values. Alternatively, the identification of the parameters, the identifiable representation of the parameter values and the parameter values can also be displayed.

[0125] In this embodiment, the interactive interface displayed on the first system supports multiple interaction modes such as mouse clicking, dragging, scroll bar, etc. Users can complete the configuration through simple mouse operations, such as selecting options by clicking the mouse, adjusting parameters by dragging the slider, etc., which is convenient and intuitive.

[0126] For example, the interactive interface displayed on the first system can adopt a graphical layout, which classifies and displays different types of parameters. For example, parameters related to booting the device (such as boot order, default boot device, etc.) are placed in a specific area of the interface, making it easy for users to quickly find and adjust the boot configuration. Similarly, hardware performance setting parameters (such as CPU overclocking options, initial frequency of graphics card, etc.) are also classified into another area, where users can fine-tune the hardware performance.

[0127] In addition, in order to further optimize the readability and usability of the interface, the interactive interface can also display different types of parameters in pages. For example, a "boot setting" page can be set up to display and adjust parameters related to booting; a "hardware performance" page can be set up to manage hardware performance settings; and a "port management" page can be set up to control the enable or disable state of each port (such as USB port, Ethernet port, etc.). Users can easily switch between different pages by clicking on the navigation tabs or buttons on the interface, so as to quickly locate the type of parameters that need to be modified.

[0128] When a user needs to modify a parameter, he or she can complete the operation by clicking, dragging or inputting a new value through the mouse, without the need to restart the electronic device and enter the BIOS Setup interface, greatly improving the flexibility and convenience of configuration.

[0129] Step S1013, obtaining a modification operation on a target parameter in the interactive interface.

[0130] The user can browse various parameters in the interactive interface and modify target parameters through mouse operations and the like. For example, if the user wants to modify the startup sequence, the user can find the corresponding parameter in the startup device area, and adjust the position of the device name in the startup sequence by dragging the device name with the mouse. Alternatively, if the user wants to modify the performance parameter of a certain hardware, such as the initial frequency of a graphics card, the user can find the parameter in the hardware performance setting area, and input a new value or adjust the value by using the up and down arrows by clicking the input box next to the parameter value.

[0131] For example, as shown in FIG. 1, the interactive interface is clearly divided into multiple functional areas, such as startup settings, hardware performance, port management, and the like. When the user wants to modify the state of USB port1, the user can first move the scroll bar in the interface (if the interface content is too much to be viewed at present) to quickly locate the port management area through mouse operations. In the port management area, the user can see a list of all ports, and the current state (such as enabled or disabled) of each port is usually displayed next to the port. After the user finds USB port1, the user can easily switch the enabled or disabled state of USB port1 by clicking the toggle button (such as a button with the words "enable / disable" or an icon representing the state, which will change after being clicked) next to the port state. Figure 5

[0132] In this embodiment, based on the parameters for configuring the electronic device, the interactive interface displayed on the first system is generated, and different types of parameters are displayed on the interactive interface, which can enable the user to quickly locate the required parameters and improve the efficiency of information acquisition.

[0133] In addition, the interactive interface supports multiple interaction modes such as mouse clicking, dragging, and scroll bar, and the user can complete parameter modification through simple mouse operations, such as selecting options by clicking the mouse, adjusting parameters by dragging the slider, or inputting new values by clicking the input box, and the like. The operation is more convenient and intuitive, the operation difficulty is reduced, the efficiency of parameter modification can be improved, and the user experience can be improved.

[0134] Next, the data processing apparatus provided by the present application is introduced. The data processing apparatus introduced below can be correspondingly referred to the data processing method introduced above.

[0135] Referring to Figure 6 , the data processing apparatus can include a first module 100 and a second module 200.

[0136] The first module 100 (which can be represented as WMI driver) is configured to obtain a first operation and communicate with the second module 200 in response to the first operation. The first operation is configured to adjust the parameters for configuring the electronic device managed by the second system when the first system is running.​

[0137] In the embodiment, the first operation can be an operation generated after invoking the WMI interface in the first system. For example, the modification operation on the target parameter in the interactive interface as described in Embodiment 5. The modification operation on the parameter in the form of pure text by the user when obtaining the parameter for configuring the electronic device from the second system and presenting each parameter in the form of pure text also belongs to the first operation. For example, the user can directly modify the parameter value or the recognizable representation in the pure text editing interface through the keyboard input.

[0138] The second module 200 (which can be represented as BIOS Hii driver) is configured to obtain first information from the first storage, wherein the first information is created by the second system when booting the first system.

[0139] The second module 200 is further configured to update second information in the second storage based on the first information.

[0140] In another embodiment of the present application, the data processing apparatus can include a first module 100, a second module 200 and a third module 300.

[0141] With reference to Figure 7 The third module 300 (which can be represented as SMI handler) can be configured to write an operation code to an interrupt control port to generate a hardware interrupt signal, so that the processor enters a target mode in response to the hardware interrupt signal.

[0142] The first module 100 can wake up the third module 300 in response to the first operation, and the third module 300 writes the operation code to the interrupt control port to generate the hardware interrupt signal.

[0143] The first module 100 communicates with the second module 200 through the third module 300. The first module 100 can pass the modification of the target parameter by the first operation to the second module 200 through the third module 300.

[0144] In the embodiment, the second module 200 can be obtained by encapsulating the second type of code and the third type of code as described above. The second module 200 can be stored in the first storage (such as SMRAM) protected by hardware. Among them, the first module 100 is responsible for responding to the first operation, and the third module 300 is responsible for writing the operation code to the interrupt control port. In order to ensure the efficient response capability of the first module 100 and the third module 300, the first module 100 and the third module 300 can be stored in a storage other than the first storage, such as a regular memory area other than the SMRAM in the memory.

[0145] In the target mode, the second module 200 in the first storage is executed independently of the first system and the second system, and can be used to update the second information in the second storage based on the first information in the target mode.

[0146] For example, the second module 200 can search for the parameter value of the target parameter operated by the first operation in the second storage based on the first information; and, based on the first information, convert the recognizable representation of the target parameter modified by the first operation into the target parameter value; and replace the parameter value of the target parameter in the second storage with the target parameter value.

[0147] In this embodiment, the processor is put into target mode by the third module 300, which can ensure that the second module 200 will not be affected by the complex and dynamic data interaction in the memory when the first system and the second system are running during the process of obtaining the first information and updating the first information in the second storage based on the first information. It is ensured that the acquisition of the first information and the update of the second information are carried out in a stable and reliable environment, and that the configuration can be executed accurately as expected, thereby improving the stability of the electronic device configuration.

[0148] Of course, in this embodiment, the first module 100, the second module 200, and the third module 300 can also be stored simultaneously in a hardware-protected first storage (such as SMRAM). In this storage mode, the second module 200 and the third module 300 can only serve as data channels, and the actual functions are performed by the first module 100. In this storage mode, an interrupt module in a conventional memory other than SMRAM can write an opcode to the interrupt control port to generate a hardware interrupt signal, so that the processor enters the target mode in response to the hardware interrupt signal. After entering the target mode, the first module 100 can directly obtain the first information from the first storage in response to the first operation, and update the second information in the second storage based on the first information.

[0149] Alternatively, only the first module 100 may be stored in a hardware-protected first storage (e.g., SMRAM). In this storage mode, an interrupt module in a conventional memory other than SMRAM can also write an opcode to the interrupt control port to generate a hardware interrupt signal, causing the processor to enter the target mode in response to the hardware interrupt signal. After entering the target mode, the first module 100 can directly obtain the first information from the first storage in response to the first operation, and update the second information in the second storage based on the first information.

[0150] In another embodiment of the present application, referring to Figure 8 , the data processing device may include: a first module 100, a second module 200, a third module 300 and a fourth module 400.

[0151] In this embodiment, the fourth module 400 (which may be expressed as a Setup driver) is used to obtain a second operation and communicate with the third module 300 in response to the second operation.

[0152] The second operation is used to enter the interface of the second system to configure the electronic device.

[0153] On the basis of the communication between the fourth module 400 and the third module 300, the third module 300 writes an operation code to the interrupt control port to generate a hardware interrupt signal, so that the processor can enter the target mode in response to the hardware interrupt signal.

[0154] The second module 200 is further configured to create first information in the target mode and store the first information in the first storage.

[0155] The detailed process of the second module 200 creating the first information in the target mode and storing the first information in the first storage can be referred to the relevant introduction of step S12 in the above embodiment 2, which will not be repeated here.

[0156] In this embodiment, through communication between the fourth module 400 and the third module 300, the third module 300 can cause the processor to enter a target mode. By entering the target mode (e.g., SMM mode), the second module 200 can store the first information in the first storage. This process avoids the complex and dynamic data interaction in the memory during normal operation of the first and second systems. In this mode, the first information is securely written to the first storage, preventing it from being accidentally overwritten or modified during normal operation of the first or second system.

[0157] Because the first storage is not released after the boot process completes, it provides a long-term, stable storage space for the first information. Regardless of how the first and second systems subsequently operate and modify other data in the memory, the first information remains in the first storage and remains stable throughout the operation of the electronic device. This stability ensures that while the first system is running, the first information created by the second system can be directly and reliably used.

[0158] In this embodiment, when the first module 100, the second module 200, and the third module 300 can also be stored simultaneously in the hardware-protected first storage (such as SMRAM), the fourth module 400 can write an operation code to the interrupt control port to generate a hardware interrupt signal, so that the processor enters the target mode in response to the hardware interrupt signal. After entering the target mode, the fourth module 400 can directly communicate with the second module 200. In the target mode, the second module 200 creates the first information and stores the first information in the first storage.

[0159] In another embodiment of the present application, an electronic device is provided, which can include a first storage, a second storage, and a processor.

[0160] The first storage is configured to store first information; the first information is created by a second system when booting a first system.

[0161] The second storage is configured to store second information.

[0162] The processor is configured to:

[0163] obtain a first operation; the first operation is used to adjust a parameter for configuring the electronic device managed by the second system when the first system is running;

[0164] obtain the first information from the first storage in response to the first operation;

[0165] update the second information in the second storage based on the first information.

[0166] In the embodiment, the first storage can include a random access memory which is only accessible in a target mode; in the target mode, the processor executes instructions independently of the first system or the second system.

[0167] It should be noted that the above-described apparatus embodiments are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment according to actual needs. In addition, the connection relationship between the modules in the apparatus embodiments provided by the present application indicates that there is a communication connection between them, which can be implemented as one or more communication buses or signal lines.

[0168] Those skilled in the art can clearly understand that the application can be implemented by means of software plus necessary universal hardware, and of course can also be implemented by means of dedicated hardware including special integrated circuit, special CPU, special memory, special component, etc. Generally, any function completed by computer program can be easily implemented by corresponding hardware, and the specific hardware structure for implementing the same function can also be various, such as analog circuit, digital circuit or special circuit, etc. However, for the application, software program implementation is a better embodiment. Based on such understanding, the technical solution of the application or the part of the application which makes contribution to the prior art can be embodied in the form of software product, which is stored in readable storage medium, such as computer floppy disk, U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a plurality of instructions for making a computer device (which can be personal computer, training device or network device, etc.) execute the method described in various embodiments of the application.

[0169] In the above embodiments, the implementation can be achieved by software, hardware, firmware or any combination thereof, entirely or partially. When implemented by software, the implementation can be achieved in the form of a computer program product, entirely or partially.

[0170] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the flow or function described in the embodiments of the application is generated entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions can be transmitted from one website, computer, training device or data center to another website, computer, training device or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be stored by the computer or a data storage device such as training device, data center, etc. integrated with one or more available media sets. The available medium can be magnetic medium (such as floppy disk, hard disk, magnetic tape), optical medium (such as DVD) or semiconductor medium (such as solid state disk (SSD)) etc.

Claims

1. A data processing method, comprising: Get the first operation; The first operation is used to adjust parameters for configuring the electronic device managed by the second system when the first system is running, and the second system is used to boot the first system; In response to the first operation, obtaining first information from a first storage; The first information is created by the second system when the second system boots the first system to run; The second information in the second storage is updated based on the first information.

2. The data processing method according to claim 1, wherein the first information is created by: When the second system is running, in response to a second operation, entering a target mode; in the target mode, the processor of the electronic device executes instructions independently of the first system or the second system; the second operation is used to enter the interface of the second system to configure the electronic device; In the target mode, first information is created and stored in the first storage.

3. The data processing method according to claim 2, wherein obtaining the first information from the first storage comprises: Entering the target mode, and in the target mode, obtaining the first information from the first storage.

4. The data processing method according to claim 1, wherein the first information is used to implement a mapping between a recognizable representation of the parameter and a parameter value of the parameter in the second storage; The updating of the second information in the second storage based on the first information includes: searching, in a second storage based on the first information, for a parameter value of a target parameter operated on by the first operation; Based on the first information, converting a recognizable representation of the target parameter modified by the first operation into a target parameter value; The parameter value of the target parameter in the second storage is replaced by the target parameter value.

5. The data processing method according to claim 1, wherein obtaining the first operation comprises: When the first system is running, in response to a trigger event, obtaining parameters for configuring the electronic device from the second system; Based on the parameters for configuring the electronic device, generating an interactive interface displayed on the first system; Obtain a modification operation for a target parameter in the interactive interface.

6. A data processing device, comprising a first module and a second module, wherein: The first module is configured to obtain a first operation and communicate with the second module in response to the first operation; the first operation is configured to adjust parameters managed by the second system for configuring the electronic device when the first system is running; The second module is configured to obtain first information from the first storage; The first information is created by the second system when the second system boots the first system to run; The second module is further configured to update second information in the second storage based on the first information.

7. The data processing device according to claim 6, further comprising a third module, wherein: The third module is used to write an operation code to the interrupt control port to generate a hardware interrupt signal, so that the processor enters the target mode in response to the hardware interrupt signal; The second module is configured to update second information in a second storage based on the first information in the target mode; The first module communicates with the second module through the third module.

8. The data processing device according to claim 7, further comprising a fourth module, wherein: The fourth module is configured to obtain a second operation and communicate with the third module in response to the second operation; the second operation is configured to enter the interface of the second system to configure the electronic device; The second module is further configured to create first information in the target mode and store the first information in the first storage.

9. An electronic device comprising: A first storage, configured to store first information; The first information is created by the second system when the second system boots the first system to run; a second storage, for storing second information; Processor for: Obtaining a first operation; wherein the first operation is used to adjust parameters for configuring the electronic device managed by the second system when the first system is running; In response to the first operation, obtaining the first information from the first storage; The second information in the second storage is updated based on the first information.

10. The electronic device according to claim 9, wherein the first storage comprises: Random access memory accessible only in target mode; In the target mode the processor executes instructions independently of the first system or the second system.