A method and device for processing function hotkey information
By detecting and processing the global variable values of the server BIOS during the power-on self-test stage, determining the status of the function hotkey and triggering the corresponding functions, the problem of insufficient accuracy and stability of the function hotkey information is solved, and the high priority function hotkey is ensured The prompt information is not overwritten, achieving improved accuracy and stability of functional control.
Patent Information
- Application Number
- CN202411377357.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-30
AI Technical Summary
In the prior art, the functional hotkey information processing scheme has poor accuracy and stability, which leads to the high-priority functional hotkey prompt information being easily overwritten by other functional hotkey prompt information, affecting the process of the system entering the operating system.
By detecting the global variable value of the basic input and output system during the power-on self-test stage, determine the current status of the function hotkey, and continue to trigger the system setting function of the next function hotkey in the untriggered state, ensuring the high priority function hotkey The prompt information is not overwritten, ensuring the independence and stability of the function when the hotkey is pressed.
It effectively improves the accuracy and stability of function control of function hotkeys, avoids the problem of overwriting of high-priority function hotkey prompt information, and ensures the normal loading of system settings functions and the startup of the operating system.
Smart Images

Figure CN118897697B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a function hotkey information processing method and device, and also to an electronic device, a non-transitory computer-readable storage medium and a computer program product. Background Art
[0002] In recent years, with the rapid development of computer technology, servers are increasingly widely used in various fields. During the startup process, the server will display various asset information or detailed configuration information. At the same time, the server's Basic Input Output System (BIOS) supports not only display functions but also a variety of system setting functions. For example, servers usually support hotkeys to enter the BIOS Setup interface, hotkeys to support quick startup selection settings, hotkeys to support network startup, and other basic system settings for entering the operating system. However, the function hotkey prompt information corresponding to the basic system settings function is easily overwritten by other system new settings functions or custom settings functions, resulting in the inability to enter the operating system. This is because only one function hotkey will be executed when the function hotkey is pressed. Therefore, it is necessary to consider how to avoid overwriting the prompt information of the high-priority function hotkey and ensure that the prompt information and actual functions of the function hotkeys of other newly added functions are effective and that the hotkeys cannot affect each other's functions when they are pressed. Therefore, how to design a more effective function hotkey information processing solution has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The present invention provides a function hotkey information processing method, which is used to solve the defect that the function hotkey information processing scheme in the prior art has high limitations, resulting in poor accuracy and stability of function control based on function hotkeys.
[0004] The present invention provides a function hotkey information processing method, comprising:
[0005] Detecting the current value of the first global variable corresponding to the first function hot key when the basic input and output system is in the power-on self-test stage;
[0006] Determining a current state corresponding to the first function hotkey according to a current value of the first global variable;
[0007] When the current state corresponding to the first function hot key is the untriggered state, continue to trigger and start the system setting function corresponding to the second function hot key; detect the current value of the first global variable again, and when 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 and load the corresponding operating system.
[0008] The function hotkey information processing method of the present invention further includes:
[0009] When the current state corresponding to the first function hot key is an untriggered state and the current state corresponding to the second function hot key is an untriggered state, continue to start the system setting function corresponding to the third function hot key;
[0010] When the system setting function corresponding to the third function hotkey is started, the prompt information of the first function hotkey is displayed, and the current value of the first global variable and the current value of the second global variable are detected again. When the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hotkey is an untriggered state, the current state corresponding to the third function hotkey is detected;
[0011] When the current state corresponding to the third function hotkey is a trigger state, loading a corresponding operating system, and after loading the operating system, executing a system setting function corresponding to the third function hotkey;
[0012] Wherein, the second function hot key is a trigger key of the system setting function corresponding to the basic input and output system.
[0013] The function hotkey information processing method described in the present invention also includes: when the current state corresponding to the first function hotkey is a trigger state, executing the system basic setting function corresponding to the first function hotkey, loading into the corresponding operating system, and prohibiting the triggering of the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey; or, when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is a trigger state, executing the system basic setting function corresponding to the first function hotkey, loading into the corresponding operating system, and prohibiting the triggering of the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey.
[0014] The function hotkey information processing method of the present invention, when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state, executes the system setting function corresponding to the second function hotkey and loads the corresponding operating system, including:
[0015] When the current value of the first global variable indicates that the current state corresponding to the first function hot key is an 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 a 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.
[0016] The function hotkey information processing method described in the present invention, when the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is an untriggered state, continues to start the system setting function corresponding to the third function hotkey, including: when the current state corresponding to the first function hotkey is an untriggered state, detecting the current value of the second global variable corresponding to the second function hotkey when the basic input and output system is in the power-on self-test stage; determining the current state corresponding to the second function hotkey according to the current value of the second global variable; if the current state corresponding to the second function hotkey is an untriggered state, continuing to start the system setting function corresponding to the third function hotkey.
[0017] The function hotkey information processing method of the present invention, wherein the current state corresponding to the second function hotkey is determined according to the current value of the second global variable, comprises:
[0018] Based on the stored second mapping relationship, the current value of the second global variable corresponding to the second function hot key is detected; when the current value of the second global variable is 0, the second function hot key is determined to be in an untriggered state; when the current value of the second global variable is 1, the second function hot key is determined to be in a triggered state; wherein the second mapping relationship is a corresponding relationship between the second function hot key and the second global variable.
[0019] The function hotkey information processing method described in the present invention, when the current state corresponding to the third function hotkey is a trigger 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, specifically including: detecting the current value of the third global variable corresponding to the third function hotkey when the basic input and output system is in the power-on self-test stage; determining the current state corresponding to the third function hotkey according to the current value of the third global variable; if the current state corresponding to the third function hotkey is a trigger state, loading the corresponding operating system, and after the operating system is loaded, executing the system setting function corresponding to the third function hotkey.
[0020] The function hotkey information processing method described in the present invention, determining the current state corresponding to the third function hotkey according to the current value of the third global variable, includes: based on the stored third mapping relationship, detecting the current value of the third global variable corresponding to the third function hotkey; when the current value of the third global variable is 0, determining that the third function hotkey is in an untriggered state; when the current value of the third global variable is 1, determining that the third function hotkey is in a triggered state; wherein the third mapping relationship is the correspondence between the third function hotkey and the third global variable.
[0021] The function hotkey information processing method of the present invention, wherein the current state corresponding to the first function hotkey is determined according to the current value of the first global variable, comprises:
[0022] Based on the stored first mapping relationship, the current value of the first global variable corresponding to the first function hot key is detected; when the current value of the first global variable is 0, the first function hot key is determined to be in an untriggered state; when the current value of the first global variable is 1, the first function hot key is determined to be in a triggered state; wherein the first mapping relationship is a corresponding relationship between the first function hot key and the first global variable.
[0023] The function hotkey information processing method described in the present invention, before detecting the current value of the first global variable corresponding to the first function hotkey when the basic input and output system is in the power-on self-test stage, also includes: pre-constructing a first mapping relationship between the first function hotkey and the first global variable, constructing a second mapping relationship between the second function hotkey and the second global variable, and constructing a third mapping relationship between the third function hotkey and the third global variable, and storing the first mapping relationship, the second mapping relationship and the third mapping relationship.
[0024] The function hotkey information processing method of the present invention, wherein the current value of the first global variable and the current value of the second global variable are detected, and when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hotkey is an untriggered state, detecting the current state corresponding to the third function hotkey specifically includes:
[0025] Detect the current value of the first global variable and the current value of the second global variable. If the current value of the first global variable is 0 and the current value of the second global variable is 0, determine that the current value of the first global variable indicates that the current state corresponding to the first function hot key is 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 an untriggered state, and trigger detection of the current state corresponding to the third function hot key.
[0026] The present invention also provides a function hotkey information processing device, comprising:
[0027] A current value detection unit, used to detect the current value of the first global variable corresponding to the first function hot key when the basic input and output system is in the power-on self-test stage;
[0028] A first function hotkey state detection unit, used for determining a current state corresponding to the first function hotkey according to a current value of the first global variable;
[0029] The second function hotkey detection and execution unit is used to continue to trigger and start the system setting function corresponding to the second function hotkey when the current state corresponding to the first function hotkey is an untriggered state; detect the current value of the first global variable again, and execute the system setting function corresponding to the second function hotkey when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state.
[0030] The function hot key information processing device of the present invention further includes:
[0031] The third function hot key detection and execution unit is used for:
[0032] When the current state corresponding to the first function hot key is an untriggered state and the current state corresponding to the second function hot key is an untriggered state, continue to start the system setting function corresponding to the third function hot key;
[0033] When the system setting function corresponding to the third function hotkey is started, the prompt information of the first function hotkey is displayed, and the current value of the first global variable and the current value of the second global variable are detected again;
[0034] When the current value of the first global variable indicates that the current state corresponding to the first function hot key is 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 an untriggered state, detecting the current state corresponding to the third function hot key;
[0035] When the current state corresponding to the third function hotkey is a trigger state, loading a corresponding operating system, and after loading the operating system, executing a system setting function corresponding to the third function hotkey;
[0036] Wherein, the second function hot key is a trigger key of the system setting function corresponding to the basic input and output system.
[0037] The function hotkey information processing device described in the present invention also includes: a first function hotkey state execution unit, which is used to execute the system basic setting function corresponding to the first function hotkey when the current state corresponding to the first function hotkey is a trigger state, load into the corresponding operating system, and prohibit triggering the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey; or, when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is a trigger state, execute the system basic setting function corresponding to the first function hotkey, load into the corresponding operating system, and prohibit triggering the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey.
[0038] The function hotkey information processing device described in the present invention, the second function hotkey detection and execution unit is specifically used to: when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state, detect the current value of the second global variable corresponding to the second function hotkey when the basic input and output system is in the power-on self-test stage; determine the current state corresponding to the second function hotkey according to the current value of the second global variable; if the current state corresponding to the second function hotkey is a triggered state, execute the system setting function corresponding to the second function hotkey, and prohibit triggering the system setting function corresponding to the third function hotkey.
[0039] The function hotkey information processing device described in the present invention, the third function hotkey detection and execution unit is specifically used to: when the current state corresponding to the first function hotkey is an untriggered state, detect the current value of the second global variable corresponding to the second function hotkey when the basic input and output system is in the power-on self-test stage; determine the current state corresponding to the second function hotkey according to the current value of the second global variable; if the current state corresponding to the second function hotkey is an untriggered state, continue to start the system setting function corresponding to the third function hotkey.
[0040] The function hotkey information processing device of the present invention, wherein the current state corresponding to the second function hotkey is determined according to the current value of the second global variable, comprises:
[0041] Based on the stored second mapping relationship, the current value of the second global variable corresponding to the second function hot key is detected; when the current value of the second global variable is 0, the second function hot key is determined to be in an untriggered state; when the current value of the second global variable is 1, the second function hot key is determined to be in a triggered state; wherein the second mapping relationship is a corresponding relationship between the second function hot key and the second global variable.
[0042] The function hotkey information processing device described in the present invention, when the current state corresponding to the third function hotkey is a trigger state, loads the corresponding operating system, and executes the system setting function corresponding to the third function hotkey after loading the operating system, specifically including: detecting the current value of the third global variable corresponding to the third function hotkey when the basic input and output system is in the power-on self-test stage; determining the current state corresponding to the third function hotkey according to the current value of the third global variable; if the current state corresponding to the third function hotkey is a trigger state, loads the corresponding operating system, and executes the system setting function corresponding to the third function hotkey after loading the operating system.
[0043] The function hotkey information processing device described in the present invention determines the current state corresponding to the third function hotkey according to the current value of the third global variable, including: based on the stored third mapping relationship, detecting the current value of the third global variable corresponding to the third function hotkey; when the current value of the third global variable is 0, determining that the third function hotkey is in an untriggered state; when the current value of the third global variable is 1, determining that the third function hotkey is in a triggered state; wherein the third mapping relationship is the correspondence between the third function hotkey and the third global variable.
[0044] The function hotkey information processing device of the present invention, wherein determining the current state corresponding to the first function hotkey according to the current value of the first global variable comprises:
[0045] Based on the stored first mapping relationship, the current value of the first global variable corresponding to the first function hot key is detected; when the current value of the first global variable is 0, the first function hot key is determined to be in an untriggered state; when the current value of the first global variable is 1, the first function hot key is determined to be in a triggered state; wherein the first mapping relationship is a corresponding relationship between the first function hot key and the first global variable.
[0046] The function hotkey information processing device described in the present invention, before detecting the current value of the first global variable corresponding to the first function hotkey when the basic input and output system is in the power-on self-test stage, also includes: a mapping relationship construction and storage unit, which is used to pre-construct a first mapping relationship between the first function hotkey and the first global variable, construct a second mapping relationship between the second function hotkey and the second global variable, and construct a third mapping relationship between the third function hotkey and the third global variable, and store the first mapping relationship, the second mapping relationship and the third mapping relationship.
[0047] The function hotkey information processing device of the present invention, wherein the detecting the current value of the first global variable and the current value of the second global variable, when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hotkey is an untriggered state, detecting the current state corresponding to the third function hotkey specifically includes:
[0048] Detect the current value of the first global variable and the current value of the second global variable. If the current value of the first global variable is 0 and the current value of the second global variable is 0, determine that the current value of the first global variable indicates that the current state corresponding to the first function hot key is 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 an untriggered state, and trigger detection of the current state corresponding to the third function hot key.
[0049] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above function hotkey information processing methods when executing the program.
[0050] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the function hotkey information processing method as described in any one of the above items is implemented.
[0051] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the function hot key information processing method as described in any one of the above items is implemented.
[0052] The function hotkey information processing method provided by the present invention detects the current value of the first global variable corresponding to the first function hotkey when the basic input and output system is in the power-on self-test stage; determines the current state corresponding to the first function hotkey according to the current value of the first global variable; when the current state corresponding to the first function hotkey is an untriggered state, continues to trigger and start the system setting function corresponding to the second function hotkey, detects the current value of the first global variable again, and when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state, executes the system setting function corresponding to the second function hotkey and loads the corresponding operating system; wherein the second function hotkey is a trigger button for the system setting function corresponding to the basic input and output system, which can effectively improve the accuracy and stability of function control based on function hotkeys. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 This is one of the flow charts of the function hotkey information processing method provided by the present invention.
[0055] Figure 2 This is the second flow chart of the function hot key information processing method provided by the present invention.
[0056] Figure 3 This is the third flow chart of the function hot key information processing method provided by the present invention.
[0057] Figure 4 It is a structural schematic diagram of the physical connection of the device provided by the present invention.
[0058] Figure 5 It is a structural schematic diagram of the function hot key information processing device provided by the present invention.
[0059] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] Combine the following Figure 1-Figure 6 The function hotkey information processing method and device of the present invention are described, and the embodiments thereof are described in detail.
[0062] The following is a detailed description of an embodiment of the function hotkey information processing method according to the present invention. Figure 1 As shown, it is one of the flow charts of the function hotkey information processing method provided by the present invention, and the specific implementation process includes the following steps:
[0063] Step 101: Detect the current value of a first global variable corresponding to a first function hot key when a basic input / output system is in a power-on self-test phase.
[0064] In an embodiment of the present invention, when the server is powered on, the current value of the first global variable corresponding to the first function hotkey in the power-on self-test phase of the basic input / output system of the server is detected; based on the stored first mapping relationship, the current value of the first global variable corresponding to the first function hotkey is detected. The first mapping relationship is the correspondence between the first function hotkey and the first global variable; the first function hotkey is a trigger key for the basic system setting function corresponding to the basic input / output system. The basic system setting function is a system basic function such as the Setup interface function of entering the BIOS supported by the first function hotkey, the quick start selection setting function supported by the first function hotkey, and the network startup support function of the first function hotkey.
[0065] It should be noted that before executing step 101 of the present invention, a mapping relationship between each function hotkey and different global variables is pre-constructed so as to determine the current state of the function hotkey according to the current value of the global variable. Specifically, it is necessary to pre-construct a first mapping relationship between the first function hotkey and the first global variable, a second mapping relationship between the second function hotkey and the second global variable, and a third mapping relationship between the third function hotkey and the third global variable, and store the first mapping relationship, the second mapping relationship, and the third mapping relationship. Figure 2 As shown: 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); the hotkey 1 can be the first function hotkey, the hotkey 2 can be the second function hotkey, and the hotkey 3 can be the third function hotkey. Accordingly, constructing the first mapping relationship between the first function hotkey and the first global variable is to construct the mapping relationship between BIT0 or variable 0 and hotkey 1, constructing the second mapping relationship between the second function hotkey and the second global variable is to construct the mapping relationship between BIT1 or variable 1 and hotkey 2, and constructing the third mapping relationship between the third function hotkey and the third global variable is to construct the mapping relationship between BIT2 or variable 2 and hotkey 3.
[0066] In addition, an 8-bit global variable can be set based on the basic input and output system, or an 8-bit global variable can be set for hotkey 1, hotkey 2, and hotkey 3 respectively. If it is an 8-bit global variable, BIT0 corresponds to hotkey 1, BIT1 corresponds to hotkey 2, and BIT2 corresponds to hotkey 3.
[0067] Step 102: Determine the current state corresponding to the first function hotkey according to the current value of the first global variable.
[0068] Specifically, when the current value of the first global variable is 0, it is determined that the first function hot key is in an untriggered state; when the current value of the first global variable is 1, it is determined that the first function hot key is in a triggered state.
[0069] Step 103: When the current state corresponding to the first function hotkey is not triggered, continue to trigger and start the system setting function corresponding to the second function hotkey, detect the current value of the first global variable again, and when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is not triggered and the current state corresponding to the second function hotkey is triggered, execute the system setting function corresponding to the second function hotkey and load the corresponding operating system. The second function hotkey is a trigger key for the system setting function corresponding to the basic input and output system.
[0070] Specifically, when the current state corresponding to the first function hotkey is an untriggered state, the system setting function corresponding to the second function hotkey continues to be triggered, and during the display of the prompt information of the second function hotkey, the prompt information of the first function hotkey is displayed first, and the current value of the first global variable is detected again. When the user triggers the first function hotkey according to the prompt information of the first function hotkey being displayed first, the system basic setting function corresponding to the first function hotkey is executed, the corresponding operating system is loaded, and the triggering of the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey is prohibited. When the user still fails to trigger the first function hotkey according to the prompt information of the first function hotkey being displayed first, the system setting function corresponding to the second function hotkey is executed, and the corresponding operating system is loaded. That is, when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is not triggered, the current value of the second global variable corresponding to the second function hotkey when the basic input and output system is in the power-on self-test stage is detected; according to the current value of the second global variable, the current state corresponding to the second function hotkey is determined; if the current state corresponding to the second function hotkey is triggered, the system setting function corresponding to the second function hotkey is executed, and the system setting function corresponding to the third function hotkey is prohibited from being triggered. In addition, when the current state corresponding to the first function hotkey is triggered, the system basic setting function corresponding to the first function hotkey is executed, the corresponding operating system is loaded, and the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey are prohibited from being triggered; or, when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is triggered, the system basic setting function corresponding to the first function hotkey is executed, the corresponding operating system is loaded, and the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey are prohibited from being triggered. The system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey are both user-defined setting functions or user system newly added setting functions.
[0071] For example, when the server is powered on, the prompt information of the first function hotkey will pop up in the BIOS Post interface. Assuming that the first function hotkey is hotkey 1, when hotkey 1 is pressed, the following system setting functions, such as TF (Trans-flash If the system setting functions such as the boot function of the TF card and the function of collecting core components under the system are not started, no prompt message will be popped up or the function hotkey will be used to start them again. The above two system setting functions cannot be started normally. If the hotkey 1 is not pressed at the beginning of the startup, when the TF card boot function is executed, because the function of hotkey 1 is the system basic setting function, it is the first priority. When the TF card boot function is executed, the prompt information of hotkey 1 still needs to be popped up (that is, in the process of displaying the prompt information of the second function hotkey, the prompt information of the first function hotkey is displayed first). If the prompt information of hotkey 1 is popped up and it is detected that the trigger key of hotkey 1 (such as key F12, key F2, key F11) has been pressed, the TF card boot function cannot be continued to be executed, which is consistent with the above situation; if hotkey 1 is not pressed, at this time, if the hotkey 2 corresponding to the TF card boot function (that is, the second function key) is pressed, the TF card boot function will be executed. At this time, the function module of the core collection component function under the system will not be executed. At this time, the BIOS directly starts to boot from the operating system in the TF card. The system setting function corresponding to the second function hotkey is to execute the startup function of the TF card, that is, to start the TF card function on the baseboard management controller (Baseboard Management Controller, BMC) side.
[0072] like Figure 2As shown, in the specific implementation process, when the server is powered on, the 8-bit global variable is set to 0 or 0x00 by default (that is, 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, and the corresponding first global variable BIT0 is set to 1, indicating that hotkey 1 has been pressed; at this time, the actual function of hotkey 1 (that is, 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 the initial state values 0 or 0x00. When hotkey 2 and hotkey 3 are executed, because hotkey 1 has been pressed, the functions corresponding to hotkey 2 and hotkey 3 are not executed. If hotkey 1 is not pressed, the server continues to start and execute the function corresponding to hotkey 2, that is, the function executed by 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 functions of hotkey 2 and hotkey 3 will no longer be executed, and the function of hotkey 1 will be 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 subsequent functions of hotkey 1 and hotkey 3 are not executed. 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 and start the operating system of the TF card (that is, Figure 4 TF card in OS).
[0073] Further, the current value of the second global variable corresponding to the second function hot key is detected when the basic input and 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 corresponding to the second function hot key is determined. When 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 system setting function corresponding to the third function hot key is continued to be started. When the system setting function corresponding to the third function hot key is started, during the display of the prompt information of the third function hot key, the prompt information of the first function hot key 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 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, and the current state corresponding to the third function hot key is triggered to detect; when 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. The system setting function corresponding to the third function hot key is the setting of a one-key log collection function for certain core component information under the system.
[0074] Among them, when the current state corresponding to the first function hotkey is the untriggered state and the current state corresponding to the second function hotkey is the untriggered state, the process of continuing to start the system setting function corresponding to the third function hotkey includes, when the current state corresponding to the first function hotkey is the untriggered state, detecting the current value of the second global variable corresponding to the second function hotkey during the power-on self-test phase of the basic input and output system; based on the stored second mapping relationship, detecting the current value of the second global variable corresponding to the second function hotkey; when the current value of the second global variable is 0, determining that the second function hotkey is in the untriggered state; when the current value of the second global variable is 1, determining that the second function hotkey is in the triggered state; wherein the second mapping relationship is the correspondence between the second function hotkey and the second global variable; if the current state corresponding to the second function hotkey is the untriggered state, continuing to start the system setting function corresponding to the third function hotkey. Furthermore, the current value of the third global variable corresponding to the third function hot key is detected when the basic input and output system is in the power-on self-test stage; based on the stored third mapping relationship, the current value of the third global variable corresponding to the third function hot key is detected; when the current value of the third global variable is 0, the third function hot key is determined to be in an untriggered state; when the current value of the third global variable is 1, the third function hot key is determined to be in a triggered state; wherein the third mapping relationship is the correspondence between the third function hot key and the third global variable. If the current state corresponding to the third function hot key is a 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.
[0075] Corresponding to the above example, if the BIOS hotkey 1 and the hotkey 2 (i.e., the second function hotkey) corresponding to the startup function of the TF card are not pressed during the server startup process, the server continues to start and executes the function module of the one-key log collection function for collecting certain core component information under the startup system (i.e., the system setting function corresponding to the third function hotkey). In this function module, hotkey 1 is still the first priority, that is, the prompt information of hotkey 1 is displayed first. If hotkey 1 is pressed, the function corresponding to hotkey 1 (i.e., the basic system setting function corresponding to hotkey 1) is executed, that is, for example, when entering the setup interface of BIOS, if hotkey 1 is not pressed, the prompt information of hotkey 2 is displayed. If the hotkey of hotkey 2 is actually pressed, the function module of hotkey 2 (i.e., the system setting function corresponding to hotkey 2) is executed, and the function module of one-key log collection function for collecting certain core component information under the system is prohibited from loading and enabling, and the operating system is started. If hotkey 2 is not pressed, the server continues to start and enter the operating system or shell environment. It should be noted that the prompt information example of hotkey 1 can be: Press F2 or<del>enter to Setup, Press F11 enter to BBS, Press F12 enter to PXE, here, hotkey 1 (i.e. key F12, key F2, key F11) can be modified and adjusted at will, and the functions realized by hotkey 1 can be different. At this time, there are 3 hotkey functions, which are uniformly expressed as hotkey 1. The prompt information of hotkey 2 includes the prompt information of hotkey 1, because the prompt information of hotkey 1 is the first highest priority, and the prompt information of hotkey 2 (such as CTR+F8) can be hidden by default. When pressing CTR+F8, a prompt information will be displayed, i.e. CTR+F8 is Press enter to TF card information, and the startup operating system of the TF card will be executed to boot. At this time, the system setting functions and prompt information corresponding to hotkey 1 and hotkey 3 (i.e. the third function hotkey) will not be executed.
[0076] In an embodiment of the present invention, the prompt information of the first function hot key is added in advance in the hot key function module of the TF card and the function module of the one-key log collection function for collecting certain core component information under the system by directly adding the prompt information or establishing an association relationship. The hot key function module of the TF card is the function module started corresponding to the second function hot key, and the function module of the one-key log collection function for collecting certain core component information under the system is the function module started corresponding to the third function hot key. When the hot key function module of the TF card is executed, the prompt information of the first function hot key is displayed first. In addition, when the function module of the one-key log collection function for collecting certain core component information under the system is executed, the prompt information of the first function hot key is also displayed first. Thereby, the prompt information of the first function hot key is avoided from being overwritten when the hot key function module of the TF card is executed, and the prompt information of the first function hot key is avoided from being overwritten when the function module of the one-key log collection function for collecting certain core component information under the system is executed, so as to ensure the mutual influence of the prompt information of the latter two function modules and the prompt information of the first function hot key.
[0077] When neither hotkey 1 nor hotkey 2 is pressed, the function module of hotkey 3, which enables the one-key log collection function of collecting certain core component information under the system, is executed. In the function module of hotkey 3, the prompt information of hotkey 1 needs to be executed again. If hotkey 1 is pressed, the function module of hotkey 1 is executed. If hotkey 1 is not pressed, the function module of hotkey 3 is executed. When hotkey 3 is pressed, the prompt information "Incollect Message in OS part is entering" is displayed, and the system is started to directly enter the operating system to collect key log information of core components under the collection system. It should be noted that the function of hotkey 1 has the highest priority and always exists. No matter what hotkey function modules and prompt information are added, the prompt information of hotkey 1 must be included and it must be confirmed that the function module of hotkey 1 can be executed normally and with the first priority. The prompt information of the hotkey information can be modified arbitrarily without restrictions on the content and expression form, characters, fonts, etc. The corresponding action and function are implemented after the corresponding hotkey is pressed. Corresponding to the above example, Figure 3 As shown, if hotkey 1 and hotkey 2 are not pressed, the function module for collecting core component functions under the system of enabling hotkey 3 will continue to be started. In this function module, hotkey 1 is still the first priority. If hotkey 1 is pressed, BIT0 is set to 1, BIT2 and BIT3 are still 0, and the server enters the function of executing hotkey 1, such as entering the SETUP interface function of BIOS. If hotkey 1 is not pressed and hotkey 2 is not pressed in step 3, BIT0 and BIT1 are still set to 0. At this time, you only need to pay attention to whether hotkey 3 is pressed. If hotkey 3 is not pressed, the server continues to start and enters the OS or Shell environment; if hotkey 3 is pressed, BIT3 is set to 1, BIT0 and BIT2 are still 0. At this time, the BIOS loads the function module for collecting core component functions under the system and displays the prompt information of hotkey 3. The server continues to start and executes the collection of key information of core components after the server enters the operating system. Among them, 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 described in the present invention can be as follows: hotkey 1>hotkey 2>hotkey 3, hotkey 1>hotkey 2 (hotkey 1>hotkey 2)>hotkey 3 (hotkey 1>hotkey 3).
[0078] In actual scenarios, the server will display various asset information or detailed configuration information during the startup process, such as the manufacturer, model, number of cores, version number of the CPU, the manufacturer, model, capacity, total number of slots, actual number of memory slots, compilation date, compilation time, product model, project name and other key core information. At the same time, in addition to supporting display functions, the server's BIOS also supports system setting functions or function modules independently developed by various manufacturers. Generally speaking, no matter which server manufacturer supports the hotkey to enter the BIOS Setup interface function, the hotkey to support the quick startup selection setting function, the hotkey to support the network startup function and other basic system setting functions to enter the operating system. However, some system setting functions require the startup image or system or other special information to be verified when the server is started. This function is well known as the TPM function, that is, the encrypted startup verification function and other system setting functions. However, these system setting functions are basic server functions or hotkey selection startup functions, not hotkey selection functions specific to a certain manufacturer. The hotkey prompt function will be used to start the TF card function on the BMC side to confirm the triggering. At the same time, it also supports the setting of one-key collection log function for certain core component information under the system. This function also requires hotkey prompt information and confirmation whether to press the hotkey to trigger and install. Both types of hotkey prompt information are hidden by default and require special key combinations to trigger and display. However, the first priority hotkey prompt information is to press the Fx hotkey (such as F2, F11, F12) or other hotkeys to enter the Setup interface of BIOS, but this prompt information is displayed separately during the startup process by default. Once this prompt information is overwritten by other function hotkey prompt information, it will lead to the inability to enter the operating system. Therefore, the present invention needs to add the above-mentioned Fx hotkey or other hotkey prompt information for entering the Setup interface of BIOS in the hotkey function module of the TF card. At the same time, the hotkey function of the core component collected under the system will also overwrite the above prompt information. This is because only one hotkey function will be executed when the hotkey is pressed. In view of the implementation and specific requirements of the above functions, it is necessary to consider how to avoid overwriting the high-priority hotkey prompt information and ensure that the prompt information and actual functions of the following two functions are effective and the hotkeys cannot affect each other's functions when pressed.To this end, the present invention sets an 8-bit global variable or three independent global variables, and judges whether hot key 1 is pressed with high priority in the Post stage of BIOS startup. If not pressed, the functions and prompt information of hot key 2 and hot key 3 are continued to be executed. If pressed, the display information of hot key 1 is executed and the basic setting function of the system is prepared to be executed, such as entering the Setup interface of BIOS. If hot key 1 is not pressed, the function of hot key 2 is continued to be executed. In the function of hot key 2, it is necessary to execute the judgment of hot key 1 with high priority. If hot key 1 is not pressed, the key confirmation of hot key 2 is executed. If hot key 2 is pressed, the function module of hot key 2 is executed and started from the operating system of TF card. If hot key 2 is not pressed, the function of hot key 3 is continued to be executed. In the function of hot key 3, it is still judged whether the function of hot key 1 has been pressed. If not pressed, the function of hot key 3 is continued to be executed. If hot key 3 is pressed, the function of collecting core components under the acquisition system is loaded and acquired. If not pressed, it is started normally. Hot key 1 is the first high priority, and it is the highest hot key high priority in both hot key 2 and hot key 3. The present invention divides the information priority of each hotkey function according to the level of the hotkey, especially hotkey 1 is the first highest priority at any time, including in the function realization of hotkey 2 and hotkey 3. Only when hotkey 1 is not pressed will the judgment of the function keys of hotkey 2 and hotkey 3 be executed and the function loading of hotkey 2 and hotkey 3 be realized. If hotkey 1 is pressed at any time, the prompt information and startup item selection of hotkey 1 will be executed with high priority. Hotkey 2 is the function of loading the TF card operating system, and hotkey 3 is the function of collecting key information of core components under the loading operating system. By adding global variables to confirm multiple functions through hotkeys and implementing the solution of whether to load corresponding functions, the accuracy and stability of function control based on function hotkeys are effectively improved.
[0079] The present invention combines the optional situation of certain functions with the hotkey function, and safely opens the corresponding function, which is convenient and fast. At the same time, it ensures that the function of hotkey 1 has the highest priority. Whether in the function of hotkey 2 or hotkey 3, the function of hotkey 1 needs to be placed in the first place. The function of hotkey 2 or hotkey 3 can only be executed if hotkey 1 is not pressed. The function control of hotkey 1, hotkey 2 and hotkey 3 is realized by adding global variables and refining the bit information of the variables. It is simple and efficient, and ensures the stability and reliability of the hotkey prompt information of the server.
[0080] The function hot key information processing device provided by the present invention is described below. The function hot key information processing device described below and the function hot key information processing method described above can be referred to in correspondence with each other. Figure 5 As shown, it is a schematic diagram of the structure of the function hot key information processing device provided by the present invention. The function hot key information processing device of the present invention specifically includes the following parts:
[0081] The current value detection unit 501 is used to detect the current value of the first global variable corresponding to the first function hot key when the basic input and output system is in the power-on self-test stage;
[0082] The first function hotkey state detection unit 502 is used to determine the current state corresponding to the first function hotkey according to the current value of the first global variable.
[0083] The second function hot key detection and execution unit 503 is used to continue to trigger and start the system setting function corresponding to the second function hot key when the current state corresponding to the first function hot key is an untriggered state, and to detect the current value of the first global variable again. When the current value of the first global variable indicates that the current state corresponding to the first function hot key is an untriggered state and the current state corresponding to the second function hot key is a triggered state, the system setting function corresponding to the second function hot key is executed; wherein the second function hot key is a trigger key for the system setting function corresponding to the basic input and output system.
[0084] The function hot key information processing device of the present invention further includes:
[0085] The third function hotkey detection and execution unit is used to continue to start the system setting function corresponding to the third function hotkey when the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is an untriggered state. When the system setting function corresponding to the third function hotkey is started, the prompt information of the first function hotkey is displayed, and the current value of the first global variable and the current value of the second global variable are detected again. When the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hotkey is an untriggered state, the current state corresponding to the third function hotkey is detected; when the current state corresponding to the third function hotkey is a 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.
[0086] The function hotkey information processing device described in the present invention also includes: a first function hotkey state execution unit, which is used to execute the system basic setting function corresponding to the first function hotkey when the current state corresponding to the first function hotkey is a trigger state, load into the corresponding operating system, and prohibit triggering the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey; or, when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is a trigger state, execute the system basic setting function corresponding to the first function hotkey, load into the corresponding operating system, and prohibit triggering the system setting function corresponding to the second function hotkey and the system setting function corresponding to the third function hotkey.
[0087] The function hotkey information processing device described in the present invention, the second function hotkey detection and execution unit is specifically used to: when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state, detect the current value of the second global variable corresponding to the second function hotkey when the basic input and output system is in the power-on self-test stage; determine the current state corresponding to the second function hotkey according to the current value of the second global variable; if the current state corresponding to the second function hotkey is a triggered state, execute the system setting function corresponding to the second function hotkey, and prohibit triggering the system setting function corresponding to the third function hotkey.
[0088] The function hotkey information processing device described in the present invention, the third function hotkey detection and execution unit is specifically used to: when the current state corresponding to the first function hotkey is an untriggered state, detect the current value of the second global variable corresponding to the second function hotkey when the basic input and output system is in the power-on self-test stage; determine the current state corresponding to the second function hotkey according to the current value of the second global variable; if the current state corresponding to the second function hotkey is an untriggered state, continue to start the system setting function corresponding to the third function hotkey.
[0089] The function hotkey information processing device of the present invention, wherein the current state corresponding to the second function hotkey is determined according to the current value of the second global variable, comprises:
[0090] Based on the stored second mapping relationship, the current value of the second global variable corresponding to the second function hot key is detected; when the current value of the second global variable is 0, the second function hot key is determined to be in an untriggered state; when the current value of the second global variable is 1, the second function hot key is determined to be in a triggered state; wherein the second mapping relationship is a corresponding relationship between the second function hot key and the second global variable.
[0091] The function hotkey information processing device described in the present invention, when the current state corresponding to the third function hotkey is a trigger state, loads the corresponding operating system, and executes the system setting function corresponding to the third function hotkey after loading the operating system, specifically including: detecting the current value of the third global variable corresponding to the third function hotkey when the basic input and output system is in the power-on self-test stage; determining the current state corresponding to the third function hotkey according to the current value of the third global variable; if the current state corresponding to the third function hotkey is a trigger state, loads the corresponding operating system, and executes the system setting function corresponding to the third function hotkey after loading the operating system.
[0092] The function hotkey information processing device described in the present invention determines the current state corresponding to the third function hotkey according to the current value of the third global variable, including: based on the stored third mapping relationship, detecting the current value of the third global variable corresponding to the third function hotkey; when the current value of the third global variable is 0, determining that the third function hotkey is in an untriggered state; when the current value of the third global variable is 1, determining that the third function hotkey is in a triggered state; wherein the third mapping relationship is the correspondence between the third function hotkey and the third global variable.
[0093] The function hotkey information processing device of the present invention, wherein determining the current state corresponding to the first function hotkey according to the current value of the first global variable comprises:
[0094] Based on the stored first mapping relationship, the current value of the first global variable corresponding to the first function hot key is detected; when the current value of the first global variable is 0, the first function hot key is determined to be in an untriggered state; when the current value of the first global variable is 1, the first function hot key is determined to be in a triggered state; wherein the first mapping relationship is a corresponding relationship between the first function hot key and the first global variable.
[0095] The function hotkey information processing device described in the present invention, before detecting the current value of the first global variable corresponding to the first function hotkey when the basic input and output system is in the power-on self-test stage, also includes: a mapping relationship construction and storage unit, which is used to pre-construct a first mapping relationship between the first function hotkey and the first global variable, construct a second mapping relationship between the second function hotkey and the second global variable, and construct a third mapping relationship between the third function hotkey and the third global variable, and store the first mapping relationship, the second mapping relationship and the third mapping relationship.
[0096] The function hotkey information processing device of the present invention, wherein the detecting the current value of the first global variable and the current value of the second global variable, when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hotkey is an untriggered state, detecting the current state corresponding to the third function hotkey specifically includes:
[0097] Detect the current value of the first global variable and the current value of the second global variable. If the current value of the first global variable is 0 and the current value of the second global variable is 0, determine that the current value of the first global variable indicates that the current state corresponding to the first function hot key is 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 an untriggered state, and trigger detection of the current state corresponding to the third function hot key.
[0098] The function hotkey information processing device provided by the present invention detects the current value of the first global variable corresponding to the first function hotkey when the basic input / output system is in the power-on self-test stage; determines the current state corresponding to the first function hotkey according to the current value of the first global variable; wherein the first function hotkey is a trigger key for the system basic setting function corresponding to the basic input / output system; when the current state corresponding to the first function hotkey is an untriggered state, continues to trigger and start the system setting function corresponding to the second function hotkey, displays the prompt information of the first function hotkey, detects the current value of the first global variable again, and when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state, executes the system setting function corresponding to the second function hotkey, and loads the corresponding operating system; wherein the second function hotkey is a trigger key for the system setting function corresponding to the basic input / output system, which can effectively improve the accuracy and stability of function control based on function hotkeys.
[0099] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device (ie, electronic device) may include: a processor (processor) 601, a communication interface (Communications Interface) 604, a memory (memory) 602 and a communication bus 603, wherein the processor 601, the communication interface 604, and the memory 602 communicate with each other via the communication bus 603. The processor 601 can call the logic instructions in the memory 602 to execute the function hotkey information processing method, which includes: detecting the current value of the first global variable corresponding to the first function hotkey when the basic input and output system is in the power-on self-test stage; determining the current state corresponding to the first function hotkey according to the current value of the first global variable; wherein the first function hotkey is a trigger key for the system basic setting function corresponding to the basic input and output system; when the current state corresponding to the first function hotkey is an untriggered state, continue to trigger and start the system setting function corresponding to the second function hotkey, and display the prompt information of the first function hotkey, and detect the current value of the first global variable again. When the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state, execute the system setting function corresponding to the second function hotkey, and load the corresponding operating system; wherein the second function hotkey is a trigger key for the system setting function corresponding to the basic input and output system.
[0100] In addition, the logic instructions in the above-mentioned memory 602 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0101] On the other hand, the present application also provides a computer program product, which includes a computer program, which can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the function hotkey information processing method provided by the above methods, the method comprising: detecting the current value of a first global variable corresponding to a first function hotkey when a basic input and output system is in a power-on self-test phase; determining the current state corresponding to the first function hotkey according to the current value of the first global variable; wherein the first function hotkey is a trigger key for a system basic setting function corresponding to the basic input and output system; when the current state corresponding to the first function hotkey is an untriggered state, continuing to trigger and start the system setting function corresponding to the second function hotkey, and displaying the prompt information of the first function hotkey, detecting the current value of the first global variable again, and when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state, executing the system setting function corresponding to the second function hotkey, and loading the corresponding operating system; wherein the second function hotkey is a trigger key for the system setting function corresponding to the basic input and output system.
[0102] On the other hand, the present application also provides a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein the program executes the function hotkey information processing method provided by the above methods when it is running, the method comprising: detecting the current value of a first global variable corresponding to a first function hotkey when a basic input / output system is in a power-on self-test phase; determining the current state corresponding to the first function hotkey according to the current value of the first global variable; wherein the first function hotkey is a trigger key for a system basic setting function corresponding to the basic input / output system; when the current state corresponding to the first function hotkey is an untriggered state, continuing to trigger and start the system setting function corresponding to the second function hotkey, and displaying the prompt information of the first function hotkey, detecting the current value of the first global variable again, and when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state, executing the system setting function corresponding to the second function hotkey, and loading the corresponding operating system; wherein the second function hotkey is a trigger key for the system setting function corresponding to the basic input / output system.
[0103] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.< / del>
Claims
1. A function hotkey information processing method, characterized in that: include: Detecting the current value of the first global variable corresponding to the first function hot key when the basic input and output system is in the power-on self-test stage; Determining a current state corresponding to the first function hotkey according to a current value of the first global variable; When the current state corresponding to the first function hot key is the untriggered state, continue to trigger and start the system setting function corresponding to the second function hot key; detect the current value of the first global variable again, and when 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 and load the corresponding operating system; The first function hot key is a trigger key for a system basic setting function corresponding to the basic input and output system; The basic system setting functions include the Setup interface function of entering the basic input and output system supported by the first function hotkey, the quick startup selection setting function supported by the first function hotkey, and the network startup support function of the first function hotkey; the system setting function corresponding to the second function hotkey is the user-defined setting function or the user system newly added setting function.
2. The function hotkey information processing method according to claim 1, characterized in that: Also includes: When the current state corresponding to the first function hot key is an untriggered state and the current state corresponding to the second function hot key is an untriggered state, continue to start the system setting function corresponding to the third function hot key; When the system setting function corresponding to the third function hotkey is started, the prompt information of the first function hotkey is displayed, and the current value of the first global variable and the current value of the second global variable are detected again. When the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current value of the second global variable indicates that the current state corresponding to the second function hotkey is an untriggered state, the current state corresponding to the third function hotkey is detected; When the current state corresponding to the third function hotkey is a trigger state, loading a corresponding operating system, and after loading the operating system, executing a system setting function corresponding to the third function hotkey; Wherein, the second function hot key is a trigger key of the system setting function corresponding to the basic input and output system.
3. The function hotkey information processing method according to claim 1, characterized in that: Also includes: When the current state corresponding to the first function hot key is the trigger state, the system basic setting function corresponding to the first function hot key is executed, loaded into the corresponding operating system, and the 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 is prohibited; or, when the current value of the first global variable indicates that the current state corresponding to the first function hot key is the trigger state, the system basic setting function corresponding to the first function hot key is executed, loaded into the corresponding operating system, and the 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 is prohibited.
4. The function hotkey information processing method according to claim 1, characterized in that: When the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state, executing the system setting function corresponding to the second function hotkey and loading the corresponding operating system include: When the current value of the first global variable indicates that the current state corresponding to the first function hot key is an 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 a 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.
5. The function hotkey information processing method according to claim 2, characterized in that: When the current state corresponding to the first function hot key is an untriggered state and the current state corresponding to the second function hot key is an untriggered state, continuing to start the system setting function corresponding to the third function hot key includes: When the current state corresponding to the first function hotkey is an untriggered state, detecting a current value of a second global variable corresponding to the second function hotkey when the basic input and output system is in a power-on self-test phase; Determining a current state corresponding to the second function hotkey according to a current value of the second global variable; If the current state corresponding to the second function hot key is an untriggered state, then continue to start the system setting function corresponding to the third function hot key.
6. The function hot key information processing method according to claim 5, characterized in that: Determining the current state corresponding to the second function hotkey according to the current value of the second global variable includes: Based on the stored second mapping relationship, detecting the current value of the second global variable corresponding to the second function hot key; when the current value of the second global variable is 0, determining that the second function hot key is in an untriggered state; When the current value of the second global variable is 1, determining that the second function hot key is in a triggered state; The second mapping relationship is a corresponding relationship between the second function hot key and the second global variable.
7. The function hotkey information processing method according to claim 2, characterized in that: When the current state corresponding to the third function hotkey is a trigger 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, specifically including: detecting the current value of the third global variable corresponding to the third function hotkey when the basic input and output system is in the power-on self-test stage; determining the current state corresponding to the third function hotkey according to the current value of the third global variable; if the current state corresponding to the third function hotkey is a trigger 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.
8. The function hot key information processing method according to claim 7, characterized in that: Determining the current state corresponding to the third function hotkey according to the current value of the third global variable includes: detecting the current value of the third global variable corresponding to the third function hotkey based on the stored third mapping relationship; when the current value of the third global variable is 0, determining that the third function hotkey is in an untriggered state; when the current value of the third global variable is 1, determining that the third function hotkey is in a triggered state; wherein the third mapping relationship is a correspondence between the third function hotkey and the third global variable.
9. The function hotkey information processing method according to claim 1, characterized in that: Determining the current state corresponding to the first function hotkey according to the current value of the first global variable includes: Based on the stored first mapping relationship, the current value of the first global variable corresponding to the first function hot key is detected; when the current value of the first global variable is 0, the first function hot key is determined to be in an untriggered state; when the current value of the first global variable is 1, the first function hot key is determined to be 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 function hotkey information processing method according to claim 1, characterized in that: Before detecting the current value of the first global variable corresponding to the first function hot key during the power-on self-test phase of the basic input / output system, the method also includes: 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 function hot key information processing method according to claim 2, characterized in that: The detecting the current value of the first global variable and the current value of the second global variable, and detecting the current state corresponding to the third function hot key when the current value of the first global variable indicates that the current state corresponding to the first function hot key is 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 an untriggered state, specifically includes: Detect the current value of the first global variable and the current value of the second global variable. If the current value of the first global variable is 0 and the current value of the second global variable is 0, determine that the current value of the first global variable indicates that the current state corresponding to the first function hot key is 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 an untriggered state, and trigger detection of the current state corresponding to the third function hot key.
12. A function hotkey information processing device, characterized in that: include: A current value detection unit, used to detect the current value of the first global variable corresponding to the first function hot key when the basic input and output system is in the power-on self-test stage; A first function hotkey state detection unit, used for determining a current state corresponding to the first function hotkey according to a current value of the first global variable; a second function hotkey detection and execution unit, configured to, when the current state corresponding to the first function hotkey is an untriggered state, continue to trigger and start the system setting function corresponding to the second function hotkey; detect the current value of the first global variable again, and when the current value of the first global variable indicates that the current state corresponding to the first function hotkey is an untriggered state and the current state corresponding to the second function hotkey is a triggered state, execute the system setting function corresponding to the second function hotkey and load the corresponding operating system; The first function hot key is a trigger key for a system basic setting function corresponding to the basic input and output system; The basic system setting functions include the Setup interface function of entering the basic input and output system supported by the first function hotkey, the quick startup selection setting function supported by the first function hotkey, and the network startup support function of the first function hotkey; the system setting function corresponding to the second function hotkey is the user-defined setting function or the user system newly added setting function.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the function hot key information processing method according to any one of claims 1 to 11 is implemented.
14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the function hot key information processing method according to any one of claims 1 to 11 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the function hot key information processing method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Method for setting ROM-BIOS
CN101201746A
Method for displaying BIOS debugging information and computer equipment applying method
CN105677546A
Hot key prompting method and electronic device
CN117631951A
System and method for selecting starting apparatus by hot-key
CN1991756A
