Method and apparatus for processing function hotkey information
By detecting the global variable status of the server BIOS, high-priority hotkey prompts are prioritized for display and execution, thus solving the problem of function hotkey prompts being overwritten and achieving precision and stability in function hotkey control.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2026-04-02
AI Technical Summary
During server startup, the hotkey prompts for basic system settings are easily overwritten by prompts for other new or custom settings, preventing the system from booting. How can an effective hotkey information processing scheme be designed to avoid overwriting high-priority prompts while ensuring the normal execution of other functions?
By detecting the current values of global variables during the power-on self-test phase of the basic input/output system, the current state of the function hotkeys is determined, and the corresponding system setting functions are triggered even when they are not triggered. High-priority hotkey prompts are displayed first to ensure the execution of high-priority hotkey functions, and the operating system is loaded when necessary.
The implementation precision and stability of function hotkeys have been improved, ensuring that high-priority hotkey prompts are not overwritten and that system settings functions are executed and loaded normally.
Smart Images

Figure CN2025097538_02042026_PF_FP_ABST
Abstract
Description
A functional hot key information processing method and device
[0001] Cross-reference to Related Applications
[0002] The present application claims priority to the Chinese patent application No. 202411377357.1, filed on September 30, 2024, and entitled "A functional hot key information processing method and device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] The present application relates to a functional hot key information processing method and device, and further relates to an electronic device, a non-transitory computer-readable storage medium and a computer program product. BACKGROUND
[0004] In recent years, with the rapid development of computer technology, servers are applied more and more widely in various fields. During the startup process of the server, various asset information or detailed configuration information will be displayed, and in addition to supporting display function, the Basic Input Output System (BIOS) of the server also supports a variety of system setting functions. For example, the server usually supports the function of entering the Setup interface of the BIOS through hot keys, the function of supporting quick start selection setting through hot keys, the function of supporting network startup through hot keys, and other system basic setting functions of entering the operating system. However, the functional hot key prompt information corresponding to the system basic setting function is easily covered by the functional hot key prompt information corresponding to other newly added system setting functions or custom setting functions, thereby causing the inability to enter the operating system. This is because only one functional hot key function will be executed when the functional hot key is pressed, so it is necessary to consider how to avoid covering the prompt information of the functional hot key with high priority and to ensure that the prompt information and actual function of the functional hot key of the other newly added functions take effect, and the functions of the hot keys cannot affect each other when pressed. Therefore, how to design a more effective functional hot key information processing scheme has become a technical problem to be solved at present. SUMMARY
[0005] According to an embodiment of the present application, in a first aspect, the present application provides a functional hot key information processing method, comprising:
[0006] detecting a current value of a first global variable corresponding to a first functional hot key when a Basic Input Output System is in a power-on self-test stage;
[0007] determining a current state corresponding to the first functional hot key according to the current value of the first global variable; and
[0008] In a case where the current state corresponding to the first function hot key is the untriggered state, the system setting function corresponding to the second function hot key is continuously triggered; the current value of the first global variable is detected again, and in a case where the current value of the first global variable indicates that the current state corresponding to the first function hot key is the untriggered state and the current state corresponding to the second function hot key is the triggered state, the system setting function corresponding to the second function hot key is executed.
[0009] In a second aspect, the present application further provides a function hot key information processing apparatus, comprising:
[0010] a current value detection unit configured to detect a current value of a first global variable corresponding to a first function hot key in a basic input output system (BIOS) in a power-on self-test (POST) stage;
[0011] a first function hot key state detection unit configured to determine a current state corresponding to the first function hot key according to the current value of the first global variable; and
[0012] a second function hot key detection and execution unit configured to, in a case where the current state corresponding to the first function hot key is the untriggered state, continuously trigger a system setting function corresponding to a second function hot key; and detect the current value of the first global variable again, and in a case where the current value of the first global variable indicates that the current state corresponding to the first function hot key is the untriggered state and the current state corresponding to the second function hot key is the triggered state, execute the system setting function corresponding to the second function hot key.
[0013] In a third aspect, the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the program to implement any one of the function hot key information processing methods.
[0014] In a fourth aspect, the present application further provides a non-transitory computer readable storage medium, having a computer program stored thereon, and the computer program is executable by a processor to implement any one of the function hot key information processing methods.
[0015] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, and the computer program is executable by a processor to implement any one of the function hot key information processing methods of the first aspect.
[0016] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features and advantages of the present application will become apparent from the description, the drawings, and the claims. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings described below are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0018] Fig. 1 is a flowchart of the functional hotkey information processing method according to some embodiments of the present application;
[0019] Fig. 2 is a flowchart of the functional hotkey information processing method according to some other embodiments of the present application;
[0020] Fig. 3 is a flowchart of the functional hotkey information processing method according to some other embodiments of the present application;
[0021] Fig. 4 is a structural diagram of the device physical connection according to some embodiments of the present application;
[0022] Fig. 5 is a structural diagram of the functional hotkey information processing apparatus according to some embodiments of the present application;
[0023] Fig. 6 is a structural diagram of the electronic device according to some embodiments of the present application;
[0024] Fig. 7 is a structural diagram of the non-transitory computer readable storage medium according to some embodiments of the present application;
[0025] Fig. 8 is a structural diagram of the computer program product according to some embodiments of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the present application more clear, the technical solutions of the present application will be described clearly and completely below in combination with the drawings in the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0027] The functional hotkey information processing method and apparatus of the present application will be described below in combination with Figs. 1-6, and the embodiments thereof will be described in detail.
[0028] The embodiments of the functional hotkey information processing method of the present application will be described in detail below. As shown in Fig. 1, it is one of the flowcharts of the functional hotkey information processing method provided by the present application, and the specific implementation process includes the following steps:
[0029] Step 101, detecting the current value of the first global variable corresponding to the first functional hotkey in the basic input / output system during the power-on self-test stage.
[0030] In the embodiment of the present application, in the case that the server is powered on, the current value of the first global variable corresponding to the first function hot key is detected when the basic input output system of the server is in the power-on self-test stage; the current value of the first global variable corresponding to the first function hot key is detected based on the stored first mapping relationship. The first mapping relationship is the corresponding relationship between the first function hot key and the first global variable; the first function hot key is the trigger key of the system basic setting function corresponding to the basic input output system. The system basic setting function is the system basic function supported by the first function hot key, such as the function of entering the Setup interface of the BIOS, the function of setting the quick start selection, the function of supporting the network start, etc.
[0031] It should be noted that before step 101 of the present application is executed, the mapping relationship between each function hot key and different global variables is constructed in advance, so as to determine the current state of the function hot key according to the current value of the global variable. Specifically, the first mapping relationship between the first function hot key and the first global variable is constructed, the second mapping relationship between the second function hot key and the second global variable is constructed, and the third mapping relationship between the third function hot key and the third global variable is constructed, and the first mapping relationship, the second mapping relationship and the third mapping relationship are stored. As shown in FIG. 2: BIT0 can be the first global variable (i.e. variable 0), BIT1 can be the second global variable (i.e. variable 1), and BIT2 can be the third global variable (i.e. variable 2); hot key 1 can be the first function hot key, hot key 2 can be the second function hot key, and hot key 3 can be the third function hot key. Correspondingly, the first mapping relationship between the first function hot key and the first global variable is to construct the mapping relationship between BIT0 or variable 0 and hot key 1, the second mapping relationship between the second function hot key and the second global variable is to construct the mapping relationship between BIT1 or variable 1 and hot key 2, and the third mapping relationship between the third function hot key and the third global variable is to construct the mapping relationship between BIT2 or variable 2 and hot key 3.
[0032] In addition, one 8-bit global variable can be set based on the basic input output system, or one 8-bit global variable can be set for hot key 1, hot key 2 and hot key 3 respectively. If it is one 8-bit global variable, BIT0 corresponds to hot key 1, BIT1 corresponds to hot key 2, and BIT2 corresponds to hot key 3.
[0033] Step 102, determining the current state corresponding to the first function hot key according to the current value of the first global variable.
[0034] Specifically, in the case that the current value of the first global variable is 0, it is determined that the first function hot key is in an untriggered state; in the case that the current value of the first global variable is 1, it is determined that the first function hot key is in a triggered state.
[0035] Step 103, in the case that the current state corresponding to the first function hot key is in an untriggered state, the system setting function corresponding to the second function hot key is triggered, and the current value of the first global variable is detected again; in the case that the current value of the first global variable indicates that the current state corresponding to the first function hot key is in an untriggered state and the current state corresponding to the second function hot key is in a triggered state, the system setting function corresponding to the second function hot key is executed, and the corresponding operating system is loaded. The second function hot key is a trigger key of the system setting function corresponding to the basic input and output system.
[0036] Specifically, in the case that the current state of the first function hot key is the untriggered state, the system setting function corresponding to the second function hot key is triggered, and in the process of displaying the prompt information of the second function hot key, the prompt information of the first function hot key is displayed preferentially, and the current value of the first global variable is detected again. In the case that the first function hot key is triggered according to the prompt information of the first function hot key displayed preferentially, the system basic setting function corresponding to the first function hot key is executed, the corresponding operating system is loaded, and the system setting function corresponding to the second function hot key and the system setting function corresponding to the third function hot key are prohibited to be triggered. In the case that the first function hot key is not triggered according to the prompt information of the first function hot key displayed preferentially, the system setting function corresponding to the second function hot key is executed, and the corresponding operating system is loaded. That is, in the case that the current value of the first global variable indicates that the current state of the first function hot key is the untriggered state, the current value of the second global variable corresponding to the second function hot key in the power-on self-test stage of the basic input / output system is detected; the current state of the second function hot key is determined according to the current value of the second global variable; if the current state of the second function hot key is the triggered state, the system setting function corresponding to the second function hot key is executed, and the system setting function corresponding to the third function hot key is prohibited to be triggered. In addition, in the case that the current state of the first function hot key is the triggered state, the system basic setting function corresponding to the first function hot key is executed, the corresponding operating system is loaded, and the system setting function corresponding to the second function hot key and the system setting function corresponding to the third function hot key are prohibited to be triggered; or in the case that the current value of the first global variable indicates that the current state of the first function hot key is the triggered state, the system basic setting function corresponding to the first function hot key is executed, the corresponding operating system is loaded, and the system setting function corresponding to the second function hot key and the system setting function corresponding to the third function hot key are prohibited to be triggered. The system setting function corresponding to the second function hot key and the system setting function corresponding to the third function hot key are both user-defined setting functions or user system-added setting functions.
[0037] For example, when the server is powered on, the first function hot key is prompted at the Post interface of the BIOS. Assuming that the first function hot key is hot key 1, when the hot key 1 is pressed, the following system setting functions, such as the TF (Trans-flash Card) card starting function, the system core component collection function, and the like, cannot be started by using the function hot key or by being prompted. If the hot key 1 is not pressed at the beginning of the starting, when the TF card starting function is executed, because the function of the hot key 1 is the system basic setting function, which is the first priority, the prompt information of the hot key 1 is still needed to be popped up when the TF card starting function is executed (that is, during the display of the prompt information of the second function hot key, the prompt information of the first function hot key is preferentially displayed). If the prompt information of the hot key 1 is popped up and the trigger key (such as the F12 key, the F2 key, or the F11 key) of the hot key 1 is pressed, the TF card starting function cannot be continued to be executed. If the hot key 1 is not pressed, when the hot key 2 (that is, the second function key) corresponding to the TF card starting function is pressed, the TF card starting function is executed, and the function module of the system core component collection function is not executed. At this time, the BIOS directly starts the operating system in the TF card to start.
[0038] As shown in Fig. 2, in the implementation process, when the server is powered on, the 8-bit global variable is set to 0 or 0x00 value by default (i.e. the Bit or variable corresponding to the hotkey information is set to 0 or 0x00), when the prompt information of hotkey 1 is displayed during the startup process of the server, the user presses hotkey 1 according to the prompt information, then the corresponding first global variable BIT0 is set to 1, which represents that hotkey 1 has been pressed; at this time, the actual function of hotkey 1 (i.e. the system basic setting function corresponding to hotkey 1) is executed, and the second global variable BIT2 and the third global variable BIT3 are still in the initial state value 0 or 0x00, when hotkey 2 and hotkey 3 are executed, because hotkey 1 has been pressed, the function corresponding to hotkey 2 and the function corresponding to hotkey 3 are not executed. If hotkey 1 is not pressed, the server continues to start and execute the function corresponding to hotkey 2, i.e. the function executed in the hotkey function module of the TF card, in this function module, the operation of displaying the prompt information of hotkey 1 is still executed, if hotkey 1 is pressed, the prompt information and function of hotkey 2 and hotkey 3 will not be executed, and the function of hotkey 1 is directly executed, such as directly starting to enter the setup interface of BIOS, if hotkey 1 is not pressed and hotkey 2 is pressed, BIT1 is set to 1 and the function of hotkey 2 is executed, BIT0 and BIT2 are still 0 and the functions of hotkey 1 and hotkey 3 are not executed, the BIOS continues to start and execute the function of hotkey 2 to enter the TF card and display the prompt information of hotkey 2, load the operating system of the TF card (i.e. TF card OS in Fig. 4).
[0039] Further, the current value of the second global variable corresponding to the second function hotkey is detected when the basic input / output system of the server is in the power-on self-test stage. According to the current value of the second global variable, the current state of the second function hotkey is determined. In the case that the current state of the first function hotkey is the untriggered state and the current state of the second function hotkey is the untriggered state, the system setting function corresponding to the third function hotkey is continued to start, when the system setting function corresponding to the third function hotkey is started, in the process of displaying the prompt information of the third function hotkey, the prompt information of the first function hotkey is also displayed preferentially, and the current value of the first global variable and the current value of the second global variable are detected again, if the current value of the first global variable is 0 and the current value of the second global variable is 0, it is determined that the current value of the first global variable represents that the current state of the first function hotkey is the untriggered state and the current value of the second global variable represents that the current state of the second function hotkey is the untriggered state, and the current state of the third function hotkey is triggered to be detected; in the case that the current state of the third function hotkey is the triggered state, the corresponding operating system is loaded, and after the operating system is loaded, the system setting function corresponding to the third function hotkey is executed. The system setting function corresponding to the third function hotkey is the setting of the one-key collection log function of some core component information under the system.
[0040] In the case that the current state corresponding to the first function hot key is the untriggered state and the current state corresponding to the second function hot key is the untriggered state, the process of starting the system setting function corresponding to the third function hot key includes: detecting the current value of the second global variable corresponding to the second function hot key when the basic input and output system is in the power-on self-test stage in the case that the current state corresponding to the first function hot key is the untriggered state; detecting the current value of the second global variable corresponding to the second function hot key based on the stored second mapping relationship; determining that the second function hot key is in the untriggered state in the case that the current value of the second global variable is 0; determining that the second function hot key is in the triggered state in the case that the current value of the second global variable is 1; the second mapping relationship is the corresponding relationship between the second function hot key and the second global variable; and continuing to start the system setting function corresponding to the third function hot key in the case that the current state corresponding to the second function hot key is the untriggered state. Further, detecting the current value of the third global variable corresponding to the third function hot key when the basic input and output system is in the power-on self-test stage; detecting the current value of the third global variable corresponding to the third function hot key based on the stored third mapping relationship; determining that the third function hot key is in the untriggered state in the case that the current value of the third global variable is 0; determining that the third function hot key is in the triggered state in the case that the current value of the third global variable is 1; the third mapping relationship is the corresponding relationship between the third function hot key and the third global variable. If the current state corresponding to the third function hot key is the triggered state, the corresponding operating system is loaded, and after the operating system is loaded, the system setting function corresponding to the third function hot key is executed.
[0041] Corresponding to the above example, if the hot key 1 of the BIOS and the hot key 2 (i.e. the second function hot key) corresponding to the start function of the TF card are not pressed during the start process of the server, the server continues to start and execute the function module of the one-key collection log function of collecting some core component information under the start system (i.e. the system setting function corresponding to the third function hot key). In this function module, the hot key 1 is still the first priority, i.e. the prompt information of the hot key 1 is displayed first, if the hot key 1 is pressed, the function corresponding to the hot key 1 (i.e. the system basic setting function corresponding to the hot key 1) is executed, i.e. entering the setup interface of the BIOS, if the hot key 1 is not pressed, the prompt information of the hot key 2 is displayed, if the hot key 2 is actually pressed, the function module of the hot key 2 (i.e. the system setting function corresponding to the hot key 2) is executed, the function module of the one-key collection log function of collecting some core component information under the start system is prohibited to be loaded and enabled, and the operating system is started, if the hot key 2 is not pressed, the server continues to start the operating system or the shell environment. It should be noted that the prompt information of the hot key 1 can be: Press F2 or <del>enter to Setup, Press F11 enter to BBS, Press F12 enter to PXE, the hotkey 1 (i.e. the key F12, the key F2, the key F11) can be modified and adjusted arbitrarily, and the functions realized by the hotkey 1 can not be the same, at this time, the three hotkey functions are collectively described as the hotkey 1. The prompt information of the hotkey 2 includes the prompt information of the hotkey 1, because the prompt information of the hotkey 1 is the first high priority, the prompt information of the hotkey 2 (such as CTR+F8) can be hidden by default, when the CTR+F8 is pressed, the prompt information will be prompted, that is, the CTR+F8 is Press enter to TF card information, and the TF card is executed to start the operating system to guide, at this time, the system setting functions and prompt information corresponding to the hotkey 1 and the hotkey 3 (i.e. the third function hotkey) will not be executed.
[0042] In the embodiment of the application, the prompt information of the first function hotkey is added in the one-key collection log function module of collecting some core component information in advance by using the method of adding or establishing the association relationship of the prompt information. The hotkey function module of the TF card is the function module corresponding to the start of the second function hotkey, and the function module of collecting some core component information under the system is the function module corresponding to the start of the third function hotkey. When the hotkey function module of the TF card is executed, the prompt information of the first function hotkey is preferentially displayed, and when the function module of collecting some core component information under the system is executed, the prompt information of the first function hotkey is also preferentially displayed. Thus, the prompt information of the first function hotkey is avoided to be covered when the hotkey function module of the TF card is executed, and the prompt information of the first function hotkey is also avoided to be covered when the function module of collecting some core component information under the system is executed, so that the mutual influence of the prompt information of the first function hotkey and the prompt information of the latter two function modules is ensured.
[0043] When neither hot key 1 nor hot key 2 is pressed, the one-key collection log function of the function module of the hot key 3 enabling system is executed at this time, and in the function module of the hot key 3, the prompt information of the hot key 1 needs to be executed again. If the hot key 1 is pressed, the function module of the hot key 1 is executed, if the hot key 1 is not pressed, the function module of the hot key 3 is executed, when the hot key 3 is pressed, the prompt information "Incollect Message in OS part is entering" is prompted, and the direct entry into the operating system is started, and the collection of the key log information of the core components under the system is executed. It should be noted that the function of the hot key 1 has the highest priority and always exists, and no matter how many hot key function modules and prompt information are added, the prompt information of the hot key 1 needs to be included and the function module of the hot key 1 needs to be confirmed to be normally executed with the first priority. The prompt information of the hot key information can be modified arbitrarily and is not limited in content, expression form, character, font, etc., and the corresponding hot key is pressed to execute the corresponding action and function. Corresponding to the above example, as shown in FIG. 3, if the hot key 1 and the hot key 2 are not pressed, the function module of the hot key 3 enabling system under the system is continued to be started to collect the core components, and in this function module, the hot key 1 is still the first priority. If the hot key 1 is pressed, BIT0 is set to 1, BIT2 and BIT3 are still 0, and the server enters the function of the hot key 1, such as entering the SETUP interface function of the BIOS. If the hot key 1 is not pressed and the hot key 2 is not pressed, BIT0 and BIT1 are still set to 0, at this time, only whether the hot key 3 is pressed needs to be paid attention to. If the hot key 3 is not pressed, the server continues to start and enters the OS or Shell environment; if the hot key 3 is pressed, BIT3 is set to 1, BIT0 and BIT2 are still 0, at this time, the BIOS loads the function module of the core component under the system and displays the prompt information of the hot key 3, and the server continues to start and executes the collection of the key information of the core components after the server enters the operating system. BIT0 can be replaced by all 8-bit variables 0, BIT1 can be replaced by all 8-bit variables 1, and BIT0 can be replaced by all 8-bit variables 2, which improves the accuracy of data transmission. The priority relationship involved in the present application can be as follows: hot key 1> hot key 2> hot key 3, hot key 1> hot key 2 (hot key 1> hot key 2)> hot key 3 (hot key 1> hot key 3).
[0044] In actual scenarios, the server displays various asset information or detailed configuration information during startup, such as CPU manufacturer, model, core number, version number, memory manufacturer, model, capacity, slot total number, actual memory slot number, compilation date, compilation time, product model, project name, and other key core information. At the same time, the BIOS of the server supports various system setting functions or function modules independently developed by manufacturers in addition to the display function. Generally speaking, no matter which server manufacturer, the function of entering the BIOS Setup interface by hot key, the function of supporting quick start selection setting by hot key, the function of supporting network start, and other system basic setting functions of entering the operating system are supported. However, some system setting functions need to verify the startup image or system or other special information during server startup. The function that is well known to everyone is the TPM function, that is, the encrypted startup verification function and other system setting functions. However, these system setting functions are basic functions of the server or hot key selection startup functions, and are not specific hot key selection functions of a manufacturer. The TF card function of the BMC end is also started by using the hot key prompt function to confirm the key trigger, and also supports the setting of the one-key collection log function of some core component information under the system. This function also needs to be prompted by hot key information and confirmed whether the hot key is pressed to trigger and install. The hot key prompt information of the two is hidden by default and needs to be triggered and displayed by pressing a special combination key. However, the first priority hot key prompt information is to press the Fx hot key (such as F2, F11, F12) or other hot keys to enter the BIOS Setup interface, but this prompt information is displayed separately during startup by default. Once this prompt information is covered by other function hot key prompt information, it will cause the server to fail to enter the operating system. Therefore, the present application needs to add the above-mentioned Fx hot key or other hot key prompt information of entering the BIOS Setup interface in the hot key function module of the TF card, and the hot key function of collecting core components under the system will also cover the above-mentioned prompt information. This is because only one hot key function will be executed when the hot key is pressed. In view of the implementation and specific requirements of the above functions, how to avoid covering the high-priority hot key prompt information and ensure that the prompt information and actual function of the latter two functions take effect and the hot key is pressed without affecting the functions of each other need to be considered.To this end, the application sets 1 eight-bit global variable or 3 independent global variables, judges whether hot key 1 is pressed in the post stage of BIOS startup with high priority, if not pressed, continues to execute the functions and prompt information of hot key 2 and hot key 3, if pressed, executes the display information of hot key 1 and prepares to execute the system basic setting function, such as entering the setup interface of BIOS, if hot key 1 is not pressed, continues to execute the function of hot key 2, which needs high priority to execute the judgment of hot key 1, if hot key 1 is not pressed, executes the key confirmation of hot key 2 again, if hot key 2 is pressed, executes the function module of hot key 2 and starts the operating system from the TF card, if hot key 2 is not pressed, continues to execute the function of hot key 3, which still judges whether the function key of hot key 1 has been pressed, if not pressed, continues to execute the function of hot key 3, if hot key 3 is pressed, loads the function of collecting core components under the system, if not pressed, normally starts, hot key 1 is the first high priority, which is the highest priority in the judgment process of hot key 2 or hot key 3. The application divides the information priority of each hot key function according to the level of hot key, especially hot key 1 is the first high priority at any time, including in the function implementation of hot key 2 and hot key 3, only when hot key 1 is not pressed, the judgment of the function keys of hot key 2 and hot key 3 is executed and the function loading of hot key 2 and hot key 3 is implemented, if hot key 1 is pressed at any time, the prompt information and start item selection of hot key 1 are executed with high priority, hot key 2 loads the function of TF card operating system, and hot key 3 loads the function of collecting key information of core components under the operating system. The scheme of increasing global variables to confirm and implement whether to load the corresponding function through multiple functions through hot keys effectively improves the precision and stability of the function control based on the function hot key.
[0045] The application combines some optional functions with hot key functions, safely opens the corresponding functions, is convenient and fast, and ensures that the function of hot key 1 is the highest priority, which needs to be placed in the first place in the functions of hot key 2 or hot key 3, if hot key 1 is not pressed, the functions of hot key 2 or hot key 3 can be executed, the function control of hot key 1 and hot key 2 and hot key 3 is realized by increasing global variables and refining the bit information of variables, which is simple and efficient, and ensures the stability and reliability of the hot key prompt information of the server.
[0046] The function hot key information processing method provided in the application comprises the following steps: detecting a current value of a first global variable corresponding to a first function hot key in a power-on self-test stage of a basic input / output system; determining a current state of the first function hot key according to the current value of the first global variable; in the case that the current state of the first function hot key is an untriggered state, triggering a system setting function corresponding to a second function hot key, and detecting the current value of the first global variable again; in the case that the current value of the first global variable indicates that the current state of the first function hot key is the untriggered state and the current state of the second function hot key is a triggered state, executing the system setting function corresponding to the second function hot key and loading a corresponding operating system; wherein the second function hot key is a trigger button of the system setting function corresponding to the basic input / output system, and the function hot key can effectively improve the precision and stability of function control based on the function hot key.
[0047] The function hot key information processing device provided in the application is described below, and the function hot key information processing device described below can be referred to in correspondence with the function hot key information processing method described above. Referring to FIG. 5, which is a structural schematic diagram of the function hot key information processing device provided in the application. The function hot key information processing device provided in the application specifically comprises the following parts:
[0048] The current value detection unit 501 is configured to detect a current value of a first global variable corresponding to a first function hot key in a power-on self-test stage of a basic input / output system.
[0049] The first function hot key state detection unit 502 is configured to determine a current state of the first function hot key according to the current value of the first global variable.
[0050] The second function hot key detection and execution unit 503 is configured to, in the case that the current state of the first function hot key is an untriggered state, trigger a system setting function corresponding to a second function hot key, detect the current value of the first global variable again, and in the case that the current value of the first global variable indicates that the current state of the first function hot key is the untriggered state and the current state of the second function hot key is a triggered state, execute the system setting function corresponding to the second function hot key; wherein the second function hot key is a trigger button of the system setting function corresponding to the basic input / output system.
[0051] The function hot key information processing device provided in the application further comprises:
[0052] The third function hot key detection and execution unit is configured to, in a case where the current state corresponding to the first function hot key is the untriggered state and the current state corresponding to the second function hot key is the untriggered state, continue to start the system setting function corresponding to the third function hot key, display the prompt information of the first function hot key when the system setting function corresponding to the third function hot key is started, and detect the current value of the first global variable and the current value of the second global variable again, in a case where the current value of the first global variable indicates that the current state corresponding to the first function hot key is the untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hot key is the untriggered state, detect the current state corresponding to the third function hot key; in a case where the current state corresponding to the third function hot key is the triggered state, load the corresponding operating system, and execute the system setting function corresponding to the third function hot key after loading the operating system.
[0053] The function hot key information processing device provided in the present application further comprises a first function hot key state execution unit configured to, in a case where the current state corresponding to the first function hot key is the triggered state, execute the system basic setting function corresponding to the first function hot key, load the corresponding operating system, and prohibit triggering the system setting function corresponding to the second function hot key and the system setting function corresponding to the third function hot key; or, in a case where the current value of the first global variable indicates that the current state corresponding to the first function hot key is the triggered state, execute the system basic setting function corresponding to the first function hot key, load the corresponding operating system, and prohibit triggering the system setting function corresponding to the second function hot key and the system setting function corresponding to the third function hot key.
[0054] The function hot key information processing device provided in the present application, the second function hot key detection and execution unit is specifically configured to, in a case where the current value of the first global variable indicates that the current state corresponding to the first function hot key is the untriggered state, detect the current value of the second global variable corresponding to the second function hot key when the basic input and output system is in the power-on self-test stage; determine the current state corresponding to the second function hot key according to the current value of the second global variable; if the current state corresponding to the second function hot key is the triggered state, execute the system setting function corresponding to the second function hot key, and prohibit triggering the system setting function corresponding to the third function hot key.
[0055] The function hot key information processing device provided in the present application, the third function hot key detection and execution unit is specifically configured to, in a case where the current state corresponding to the first function hot key is the untriggered state, detect the current value of the second global variable corresponding to the second function hot key when the basic input and output system is in the power-on self-test stage; determine the current state corresponding to the second function hot key according to the current value of the second global variable; if the current state corresponding to the second function hot key is the untriggered state, continue to start the system setting function corresponding to the third function hot key.
[0056] The functional hot key information processing device of the present application determines the current state corresponding to the second functional hot key according to the current value of the second global variable, including:
[0057] Based on the stored second mapping relationship, the current value of the second global variable corresponding to the second functional hot key is detected; in the case that the current value of the second global variable is 0, it is determined that the second functional hot key is in the untriggered state; in the case that the current value of the second global variable is 1, it is determined that the second functional hot key is in the triggered state; wherein the second mapping relationship is the corresponding relationship between the second functional hot key and the second global variable.
[0058] The functional hot key information processing device of the present application loads the corresponding operating system in the case that the current state corresponding to the third functional hot key is in the triggered state, and executes the system setting function corresponding to the third functional hot key after loading the operating system, specifically including: detecting the current value of the third global variable corresponding to the third functional hot key when the basic input and output system is in the power-on self-test stage; determining the current state corresponding to the third functional hot key according to the current value of the third global variable; if the current state corresponding to the third functional hot key is in the triggered state, then loading the corresponding operating system, and executing the system setting function corresponding to the third functional hot key after loading the operating system.
[0059] The functional hot key information processing device of the present application determines the current state corresponding to the third functional hot key according to the current value of the third global variable, including: based on the stored third mapping relationship, the current value of the third global variable corresponding to the third functional hot key is detected; in the case that the current value of the third global variable is 0, it is determined that the third functional hot key is in the untriggered state; in the case that the current value of the third global variable is 1, it is determined that the third functional hot key is in the triggered state; wherein the third mapping relationship is the corresponding relationship between the third functional hot key and the third global variable.
[0060] The functional hot key information processing device of the present application determines the current state corresponding to the first functional hot key according to the current value of the first global variable, including:
[0061] Based on the stored first mapping relationship, the current value of the first global variable corresponding to the first functional hot key is detected; in the case that the current value of the first global variable is 0, it is determined that the first functional hot key is in the untriggered state; in the case that the current value of the first global variable is 1, it is determined that the first functional hot key is in the triggered state; wherein the first mapping relationship is the corresponding relationship between the first functional hot key and the first global variable.
[0062] The functional hot key information processing device of the application further comprises a mapping relationship constructing and storing unit, configured to construct a first mapping relationship between the first functional hot key and the first global variable, a second mapping relationship between the second functional hot key and the second global variable, and a third mapping relationship between the third functional hot key and the third global variable, and store the first mapping relationship, the second mapping relationship and the third mapping relationship.
[0063] The functional hot key information processing device of the application detects the current value of the first global variable and the current value of the second global variable, and detects the current state of the third functional hot key when the current value of the first global variable indicates that the current state of the first functional hot key is the untriggered state and the current value of the second global variable indicates that the current state of the second functional hot key is the untriggered state, and specifically comprises:
[0064] The functional hot key information processing device of the application detects the current value of the first global variable and the current value of the second global variable, and determines that the current value of the first global variable indicates that the current state of the first functional hot key is the untriggered state and the current value of the second global variable indicates that the current state of the second functional hot key is the untriggered state when the current value of the first global variable is 0 and the current value of the second global variable is 0, and triggers the detection of the current state of the third functional hot key.
[0065] The functional hot key information processing device provided by the application detects the current value of the first global variable corresponding to the first functional hot key when the basic input / output system is in the power-on self-test stage; determines the current state of the first functional hot key according to the current value of the first global variable; wherein the first functional hot key is a trigger button of a system basic setting function corresponding to the basic input / output system; when the current state of the first functional hot key is the untriggered state, the system setting function corresponding to the second functional hot key is triggered and started, and the prompt information of the first functional hot key is displayed, the current value of the first global variable is detected again, and when the current value of the first global variable indicates that the current state of the first functional hot key is the untriggered state and the current state of the second functional hot key is the triggered state, the system setting function corresponding to the second functional hot key is executed, and the corresponding operating system is loaded; wherein the second functional hot key is a trigger button of a system setting function corresponding to the basic input / output system, which can effectively improve the precision and stability of the function control based on the functional hot key.
[0066] Fig. 6 shows a schematic diagram of an entity structure of an electronic device, as shown in Fig. 6, the electronic device (i.e., the electronic device) can include a processor 601, a communications interface 604, a memory 602, and a communications bus 603, wherein the processor 601, the communications interface 604, and the memory 602 complete communications with each other through the communications bus 603. The processor 601 can invoke the logical instructions in the memory 602 to execute the function hot key information processing method of any of the above embodiments.
[0067] In addition, the logical instructions in the memory 602 described above can be implemented in the form of a software function unit and sold or used as a stand-alone product, which can be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods related to the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0068] On the other hand, referring to Fig. 8, the present application also provides a computer program product, which includes a computer program, the computer program can be stored on a computer-readable storage medium, and the computer program can be executed by a processor to enable a computer to execute the function hot key information processing method provided by the method of any of the above embodiments.
[0069] In another aspect, referring to Fig. 7, the present application also provides a non-transitory computer-readable storage medium, which includes a stored program, wherein the program executes the function hot key information processing method provided by the method of any of the above embodiments when running.
[0070] The device embodiments described above are only schematic, wherein the units shown as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the present embodiment. Those skilled in the art can understand and implement it without creative labor.
[0071] Those skilled in the art can clearly understand the implementation of the various embodiments by means of software and the necessary general hardware platform from the above description of the embodiments, and of course, the embodiments can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that contributes to the technical solutions can be embodied in the form of a software product. The computer software product can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods involved in the various embodiments or some parts of the embodiments.
[0072] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing examples, or make equivalent replacement for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.< / del>
Claims
1. A functional hot key information processing method, characterized by, The method comprises: detecting a current value of a first global variable corresponding to a first function hot key in a basic input and output system during a power-on self-test stage; determining a current state of the first function hot key according to the current value of the first global variable; and in a case where the current state of the first function hot key is an untriggered state, continuing to trigger a system setting function corresponding to a second function hot key, and detecting again the current value of the first global variable, and in a case where the current value of the first global variable indicates that the current state of the first function hot key is the untriggered state and the current state of the second function hot key is a triggered state, executing the system setting function corresponding to the second function hot key and loading a corresponding operating system. The method further comprises:
2. The functional hot key information processing method according to claim 1, characterized by, in a case where the current state of the first function hot key is the untriggered state and the current state of the second function hot key is the untriggered state, continuing to trigger a system setting function corresponding to a third function hot key; when the system setting function corresponding to the third function hot key is triggered, displaying prompt information of the first function hot key, and detecting again the current value of the first global variable and the current value of a second global variable, and in a case where the current value of the first global variable indicates that the current state of the first function hot key is the untriggered state and the current value of the second global variable indicates that the current state of the second function hot key is the untriggered state, detecting a current state of the third function hot key; and in a case where the current state of the third function hot key is the triggered state, loading the corresponding operating system, and after loading the operating system, executing the system setting function corresponding to the third function hot key; wherein the second function hot key is a trigger key of a system setting function corresponding to the basic input and output system. The method further comprises: in a case where the current state of the first function hot key is the triggered state, executing a system basic setting function corresponding to the first function hot key, loading into the corresponding operating system, and prohibiting triggering of the system setting function corresponding to the second function hot key and the system setting function corresponding to the third function hot key; or 3. The functional hot key information processing method according to Claim 1, characterized by, in a case where the current value of the first global variable indicates that the current state of the first function hot key is the triggered state, executing the system basic setting function corresponding to the first function hot key, loading into the corresponding operating system, and prohibiting triggering of the system setting function corresponding to the second function hot key and the system setting function corresponding to the third function hot key. The executing the system setting function corresponding to the second function hot key and loading the corresponding operating system in a case where the current value of the first global variable indicates that the current state of the first function hot key is the untriggered state and the current state of the second function hot key is the triggered state comprises: detecting a current value of a second global variable corresponding to a second function hot key in the basic input and output system during the power-on self-test stage in a case where the current value of the first global variable indicates that the current state of the first function hot key is the untriggered state.
4. The functional hot key information processing method according to Claim 1, characterized by, determine a current state of the second function hot key according to the current value of the second global variable; and in response to the current state of the second function hot key being a triggered state, execute a system setting function corresponding to the second function hot key and disable triggering of a system setting function corresponding to a third function hot key.
5. The functional hot key information processing method according to Claim 2, characterized by, The case where the current state of the first function hot key is an untriggered state and the current state of the second function hot key is an untriggered state, the third function hot key corresponding to the system setting function is started, includes: In the case where the current state of the first function hot key is an untriggered state, detecting a current value of a second global variable corresponding to a second function hot key when the basic input and output system is in a power-on self-test phase; determine a current state of the second function hot key according to the current value of the second global variable; and in response to the current state of the second function hot key being an untriggered state, continue to start the system setting function corresponding to the third function hot key.
6. The functional hot key information processing method according to Claim 5, characterized by, The case where the current state of the first function hot key is an untriggered state and the current state of the second function hot key is an untriggered state, the third function hot key corresponding to the system setting function is started, includes: In the case where the current state of the first function hot key is an untriggered state, detecting a current value of a second global variable corresponding to a second function hot key when the basic input and output system is in a power-on self-test phase; determine a current state of the second function hot key according to the current value of the second global variable; and in response to the current state of the second function hot key being an untriggered state, continue to start the system setting function corresponding to the third function hot key.
7. The functional hot key information processing method according to Claim 2, characterized by, The case where the current state of the first function hot key is an untriggered state and the current state of the second function hot key is an untriggered state, the third function hot key corresponding to the system setting function is started, includes: In the case where the current state of the first function hot key is an untriggered state, detecting a current value of a second global variable corresponding to a second function hot key when the basic input and output system is in a power-on self-test phase; determine a current state of the second function hot key according to the current value of the second global variable; and in response to the current state of the second function hot key being an untriggered state, continue to start the system setting function corresponding to the third function hot key.
8. The functional hot key information processing method according to Claim 7, characterized by, The case where the current state of the first function hot key is an untriggered state and the current state of the second function hot key is an untriggered state, the third function hot key corresponding to the system setting function is started, includes: In the case where the current state of the first function hot key is an untriggered state, detecting a current value of a second global variable corresponding to a second function hot key when the basic input and output system is in a power-on self-test phase; determine a current state of the second function hot key according to the current value of the second global variable; and in response to the current state of the second function hot key being an untriggered state, continue to start the system setting function corresponding to the third function hot key.
9. The functional hot key information processing method according to Claim 1, characterized by, The case where the current state of the first function hot key is an untriggered state and the current state of the second function hot key is an untriggered state, the third function hot key corresponding to the system setting function is started, includes: In the case where the current state of the first function hot key is an untriggered state, detecting a current value of a second global variable corresponding to a second function hot key when the basic input and output system is in a power-on self-test phase; In a case that the current value of the first global variable is 0, it is determined that the first function hot key is in an untriggered state; and In a case that the current value of the first global variable is 1, it is determined that the first function hot key is in a triggered state; wherein the first mapping relationship is a corresponding relationship between the first function hot key and the first global variable.
10. The functional hot key information processing method according to Claim 1, characterized by, Before detecting the current value of the first global variable corresponding to the first function hot key when the basic input output system is in a power-on self-test stage, further comprising: Pre-constructing a first mapping relationship between the first function hot key and the first global variable, constructing a second mapping relationship between the second function hot key and the second global variable, and constructing a third mapping relationship between the third function hot key and the third global variable, and storing the first mapping relationship, the second mapping relationship, and the third mapping relationship.
11. The functional hot key information processing method according to Claim 2, characterized by, The detection of the current values of the first global variable and the second global variable, in a case that the current value of the first global variable indicates that the current state corresponding to the first function hot key is in an untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hot key is in an untriggered state, comprises: Detecting the current values of the first global variable and the second global variable, in response to the current value of the first global variable being 0 and the current value of the second global variable being 0, determining that the current value of the first global variable indicates that the current state corresponding to the first function hot key is in an untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hot key is in an untriggered state, triggering the detection of the current state corresponding to the third function hot key.
12. The functional hot key information processing method according to Claim 10, characterized by, The pre-construction of the first mapping relationship between the first function hot key and the first global variable, the construction of the second mapping relationship between the second function hot key and the second global variable, and the construction of the third mapping relationship between the third function hot key and the third global variable, comprise: Based on the basic input output system, setting 1 eight-bit global variable, a first part of the eight-bit global variable corresponds to the first function hot key, a second part of the eight-bit global variable corresponds to the second function hot key, and a third part of the eight-bit global variable corresponds to the third function hot key; or Setting 1 eight-bit global variable for the first function hot key, the second function hot key, and the third function hot key, respectively.
13. The functional hot key information processing method according to Claim 2, characterized by, The priority of the function and the prompt information corresponding to the first function hot key is the highest, and always exists in the power-on self-test stage of the basic input output system.
14. The functional hot key information processing method according to Claim 2, characterized by, The priority of the first function hot key is higher than that of the second function hot key, and the priority of the second function hot key is higher than that of the third function hot key.
15. The functional hot key information processing method according to Claim 1, characterized by, The first function hot key is a trigger button of a system basic setting function corresponding to the basic input output system. The system basic setting function supported by the first function hot key is at least one of a function of entering a Setup interface of a basic input / output system supported by the first function hot key, a function of setting a quick start selection supported by the first function hot key, and a function of network start supported by the first function hot key.
16. The functional hot key information processing method according to Claim 1, characterized by, The system setting function corresponding to the second function hot key is a user self-defined setting function or a user system new setting function.
17. A function hot key information processing apparatus, characterized by comprising: The system setting function corresponding to the second function hot key is a user self-defined setting function or a user system new setting function. The current value detection unit is configured to detect a current value of a first global variable corresponding to the first function hot key in a power-on self-test stage of the basic input / output system. The first function hot key state detection unit is configured to determine a current state of the first function hot key according to the current value of the first global variable. The second function hot key detection and execution unit is configured to, in a case where the current state of the first function hot key is an untriggered state, continue to trigger a system setting function corresponding to a second function hot key, and then detect the current value of the first global variable again, and in a case where the current value of the first global variable indicates that the current state of the first function hot key is the untriggered state and the current state of the second function hot key is a triggered state, execute the system setting function corresponding to the second function hot key and load a corresponding operating system. The processor executes the program to implement the function hot key information processing method according to any one of claims 1 to 11.
18. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, The computer program is executed by the processor to implement the function hot key information processing method according to any one of claims 1 to 16. 19.A non-transitory computer-readable storage medium having stored thereon a computer program. The computer program is executed by the processor to implement the function hot key information processing method according to any one of claims 1 to 16.
20. A computer program product comprising a computer program, characterized in that,
Citation Information
Patent Citations
Method for setting ROM-BIOS
CN101201746A
BIOS updating method
CN107402772A
BIOS (Basic Input / Output System) control option setting method and device and control mainboard
CN114385430A
Function hot key information processing method and device
CN118897697A
System and method for selecting starting apparatus by hot-key
CN1991756A