Computer interface guided interaction method

By directly displaying and manipulating the default values ​​and functions of GPIO registers on server devices through a unified and extensible firmware interface, the problem of insufficient integration of GPIO technology in the prior art is solved, and efficient GPIO state management and permanent storage without additional tools and knowledge are achieved.

CN116414465BActive Publication Date: 2026-11-27JABIL CIRCUIT (SINGAPORE) PTE LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111636664.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2026-11-27
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

In existing technologies, GPIO technology lacks an integrated system, resulting in the need for additional hardware tools and time-consuming learning of register addresses, and GPIO values ​​are cleared after system restart.

Method used

A series of command-line modes and interactive modes are executed through the Unified Extensible Firmware Interface (UEFI) on the server device, displaying the default values ​​and functions of GPIO registers directly on the display, and supporting reading and writing GPIO status. The UEFI is used to receive read and write command parameters and update GPIO values ​​to be retained after system reboot.

Benefits of technology

It enables reading and writing GPIO status without additional tools or domain knowledge, and the GPIO values ​​are permanently saved after system restart, improving work efficiency and simplifying the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116414465B_ABST
    Figure CN116414465B_ABST
Patent Text Reader

Abstract

A computer interface guiding interactive method is executed by a server device and prompted on a display, the server device comprising a processor, the computer interface guiding interactive method comprising the following steps: (B) the processor executes a unified extensible firmware interface operating in a command line mode to generate a prompt screen on the display, the prompt screen being related to guiding a user end input; (C) when the unified extensible firmware interface receives a read command parameter line indicating reading a register content of a general input / output port, the unified extensible firmware interface generates a screen related to an original default value of a register of the general input / output port, and the screen is displayed on the display, each original default value corresponding to a port function; (D) when receiving a write command parameter line, the unified extensible firmware interface is used to receive a write value related to the register of the corresponding general input / output port, and the original default value is updated according to the write value. According to the reserved command parameter, the BIOS is communicated, so that the GPIO setting is not cleared by the BIOS when the system is restarted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a computer interaction technology, and more particularly to a computer interface guided interaction method. Background Technology

[0002] Currently, the technology for reading general purpose input / output ports (hereinafter referred to as GPIO) is based on some tools available on the market for accessing registers. The lack of an integrated system results in the following disadvantages: additional hardware tools / operating systems are required, and time is spent studying relevant documents to learn how to calculate its register address. The work efficiency is extremely low, and the modified GPIO value will be cleared by the basic input / output system (BIOS) and replaced with the initial value the next time the system is restarted. Summary of the Invention

[0003] The purpose of this invention is to provide a computer interface guidance and interaction method to solve the problems of the prior art.

[0004] The computer interface guidance and interaction method of the present invention is executed by a server device and displayed on a monitor. The server device includes a processor. The computer interface guidance and interaction method includes the following steps: Step (B) The processor executes a unified extensible firmware interface in a command-line mode. The command-line mode is used to generate a prompt screen on the monitor, which is related to guiding a user input. Step (C) When the unified extensible firmware interface receives a read command parameter line indicating that the contents of a register of a general input / output port are read, the unified extensible firmware interface generates a screen with a default value for the register of the general input / output port, and the screen is displayed on the monitor. Each default value corresponds to a port function. Step (D) When the unified extensible firmware interface receives a write command parameter line indicating that the contents of a register of a general input / output port are written, the unified extensible firmware interface receives a write value for the register of the corresponding general input / output port, and updates the default value once according to the write value. The definition of once is that the write value is restored to the default value after each power-off.

[0005] Preferably, the computer interface guided interaction method further includes the following steps: Step (E) When the Unified Extensible Firmware Interface receives a general overview command parameter list instructing the reading of all general input / output port groups, the Unified Extensible Firmware Interface generates a screen displaying a summary of the contents of all general input / output port groups. Step (F) When the Unified Extensible Firmware Interface receives a specific overview command parameter list instructing the reading of the register contents of a specific general input / output port, the Unified Extensible Firmware Interface generates a screen displaying a summary of the contents of that specific general input / output port group.

[0006] Preferably, the computer interface guided interactive method further includes the following steps: Step (G) The processor executes a unified extensible firmware interface in an interactive mode, a command-line mode to generate a prompt screen on the display, the prompt screen being related to guiding a user input parameter. Step (H) When the unified extensible firmware interface receives a read command parameter indicating that the contents of a register of a general-purpose input / output port are read, the unified extensible firmware interface generates a screen showing the original default values ​​of the registers of the general-purpose input / output port, and the screen is displayed on the display, each original default value corresponding to a port function. Step (I) When the unified extensible firmware interface receives a write command parameter indicating that the contents of a register of a general-purpose input / output port are written, the unified extensible firmware interface receives a write value for the register of the corresponding general-purpose input / output port, and updates the original default value once based on the write value.

[0007] Preferably, step (I) includes the following sub-steps: Sub-step (I1) The Unified Extensible Firmware Interface executes a read port value function to obtain the current setting value of the corresponding register, which is the original default value, and the register includes multiple bits. Sub-step (I2) The Unified Extensible Firmware Interface determines which bit needs to be set based on a string of write command parameters. Sub-step (I3) The Unified Extensible Firmware Interface determines the value of the bit to be set based on a string of write command parameters. Sub-step (I4) The Unified Extensible Firmware Interface executes a set port value function to set the value of the bit to be set. Sub-step (I5) The Unified Extensible Firmware Interface executes a read port value function to obtain the current setting value of the corresponding register, which is the write value.

[0008] Preferably, the computer interface guided interaction method further includes the following steps: Step (J) When the Unified Extensible Firmware Interface receives a help command parameter indicating the function corresponding to each parameter, the Unified Extensible Firmware Interface generates a screen corresponding to the function of each parameter, and the screen is displayed on the display.

[0009] Preferably, step (C) includes the following sub-steps: Sub-step (C1) When the Unified Extensible Firmware Interface receives an input parameter indicating an identifier for a target port. Sub-step (C2) The Unified Extensible Firmware Interface generates an address for the target port based on the input parameter and an address calculation formula. Sub-step (C3) The Unified Extensible Firmware Interface generates the original default values ​​of the corresponding registers based on the address of the target port. Sub-step (C4) When the Unified Extensible Firmware Interface receives a read command parameter, it generates a screen including the original default values ​​of the corresponding registers.

[0010] A preferred formula for calculating the address of sub-step (C) is: MmioRead32 (PCH_PCR_BASE_ADDRESS + ((Target port ID ofcommunity<<16)+ Offset)), In the formula, MmioRead32 is defined as a function that reads the 32-bit MMIO register at a specified address, PCH_PCR_BASE_ADDRESS is defined as the starting address of the platform path controller register, community is defined as a group of general-purpose input / output ports that includes multiple groups, Target port ID is defined as the identifier of each group, and Offset is defined as the register offset value of the general-purpose input / output port.

[0011] Preferably, the computer interface-guided interactive method further includes the following steps: Step (K) The Unified Extensible Firmware Interface receives a reserved command parameter, wherein a setting value of the reserved command parameter indicates whether the value of the corresponding register is a reserved setting or a non-reserved setting. Step (L) When the value of the reserved command parameter indicates a reserved setting (logic 1), the Unified Extensible Firmware Interface makes the value of the corresponding register independent of system initialization.

[0012] Preferably, step (B) includes the following steps: Step (A1) When the interface-guided interactive device is in a power-on mode, a startup signal is generated. Step (A2) The processor prepares to load a shell software of the Unified Extensible Firmware Interface (UEMI) based on the startup signal. Step (A3) The processor determines whether a first version of the shell software has been successfully loaded. Step (A4) If the first version has been successfully loaded, the processor executes the shell software to read an identification code of the platform path controller to determine the model of the platform path controller. Step (A5) The processor loads a corresponding platform register table based on the model, the platform register table recording the original default values ​​of the registers of each general purpose input / output port. Step (A6) The UEMI determines whether an input indicating command-line parameters has been received, and generates a determination result. If the determination result indicates that an input indicating command-line parameters has been received, then proceed to step (B).

[0013] The beneficial effects of this invention are as follows: by using a unified and extensible firmware interface to receive read command parameters and write command parameters, the original default value of the GPIO register can be generated and displayed on the screen, and the original default value can be updated according to the setting value of the command parameters, so that users can read / write the GPIO status without studying relevant technical documents or having domain knowledge. Attached Figure Description

[0014] Figure 1This is a system block diagram of an embodiment of the server device with interface-guided interactive function of the present invention; Figure 2 This is a flowchart of the computer interface guided interaction method of this embodiment; Figure 3 This is a schematic diagram of the prompt screen in this embodiment; Figure 4 This is a flowchart of a sub-step for reading the command in this embodiment; Figure 5 This is a schematic diagram of a detailed mode of this embodiment; Figure 6 This is a schematic diagram of the group mode in this embodiment; Figure 7 This is a flowchart of a writing command sub-step in this embodiment; Figure 8 This is a flowchart of a sub-step for preserving command parameters in this embodiment. Detailed Implementation

[0015] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0016] See Figure 1 According to an embodiment of the server device with interface-guided interactive function of the present invention, the server device is electrically connected to a display 4 and includes a processor 2, a Platform Controller Hub (PCH) 3 electrically connected to the processor 2, and multiple General-purpose input / output (GPIO) groups (e.g., named GPP_A, GPP_B, etc.) 5 electrically connected to the Platform Controller Hub 3. Each GPIO group 5 includes multiple GPIO ports (not shown in the figure), and each GPIO port has a register with 32 bits for storing a GPIO value, which is an original default value of the register of the GPIO port that can be read or written.

[0017] like Figure 2 As shown, the interface-guided interactive device executes a computer interface-guided interactive method, including steps A1~A6 and B~L.

[0018] Step (A1) When the server device is in a power-on mode, a startup signal is generated.

[0019] Step (A2) Processor 2 prepares to load a shell software of Unified Extensible Firmware Interface (UEFI) according to the startup signal. The shell software is software used to provide a user interface.

[0020] Step (A3) Processor 2 determines whether loading a first version of the shell software (e.g., Shell 2.0: OpenProtocol (EFI_SHELL_PARAMETERS_PROTOCOL_GUID)) was successful. If yes, proceed to step (A4); otherwise, proceed to step (A7).

[0021] If the first version is successfully loaded in step (A4), processor 2 executes shell software to read the platform path controller identification code (PCH device ID, e.g., 1B80~1B9F) to determine the model of platform path controller 3. Each model corresponds to a register table, currently supporting Intel Whitley and Eagle Stream platforms. The system also informs the user of the current PCH stepping (ES / QS sample), Engineer Sample / Qualification Sample.

[0022] Step (A5): Processor 2 loads the corresponding platform register table according to the model, such as the first platform generation (Emmitsburg Lewisburg table, abbreviated as EBG) and the second platform generation (Lewisburg table, abbreviated as LBG). The platform register table records the GPIO values ​​of the registers of each general purpose input / output port. The GPIO values ​​of the registers are the 32 bits (bit 0–bit 31) of the register. For example, by reading the contents of bits 0–bit 31 of the Pad Configuration DW0 register, the contents are used to indicate the current GPIO status.

[0023] Step (A6) The Unified Extensible Firmware Interface determines whether it has received an input of a command line argument and generates a determination result. If the determination result is that the input of the command line argument has been received, then proceed to step (B).

[0024] If loading the first version fails in step (A7), processor 2 determines whether loading the second version of the shell software (Shell 1.0: OpenProtocol (SHELL_INTERFACE_PROTOCOL_GUID)) is successful. If it is, proceed to step (A4); otherwise, end the process.

[0025] Step (B) Processor 2 executes a unified extensible firmware interface operation in command mode, which generates a prompt screen on the display, such as... Figure 3 As shown, the prompt screen guides a user to input command parameters.

[0026] Step (C) When the Unified Extensible Firmware Interface receives a read command parameter list (e.g., get) indicating that the contents of a register of a general-purpose input / output port should be read, the Unified Extensible Firmware Interface generates a screen showing a GPIO value associated with the register of the general-purpose input / output port, and the screen is displayed on display 4. Each GPIO value corresponds to a port function. The read command parameter list is a complete instruction consisting of multiple read command parameters. For example, the definition of JGPIO.efi –get b 20 is JGPIO.efi –get [GPIO group] [GPIO number].

[0027] (D) When the Unified Extensible Firmware Interface (UEFI) receives a write command parameter list indicating that the contents of a register of a general-purpose input / output (GPIO) port should be written, the UEFI receives a new GPIO value for the register corresponding to the GPIO port and updates the original GPIO value once according to the set value. "Once" means that after each power-off, the new GPIO value reverts to the original GPIO value. The new GPIO value is a write value that modifies the contents of a register bit. The write command parameter list is a complete instruction consisting of multiple write command parameters. For example, JGPIO.efi –set b 20 all 0x44000201 is defined as JGPIO.efi –set [GPIO group] [GPIO number]all [value to be written].

[0028] (E) When the Unified Extensible Firmware Interface receives a summary command parameter (e.g., all) indicating that all general input / output port groups should be read, the Unified Extensible Firmware Interface generates a screen with a summary of all general input / output port groups and displays the screen on display 4.

[0029] (F) When the Unified Extensible Firmware Interface receives a specific summary command parameter (e.g., a~s) that indicates reading the register contents of a particular general input / output port, the Unified Extensible Firmware Interface generates a screen with a summary of the contents of the particular general input / output port group and displays the screen on display 4.

[0030] like Figure 4 As shown, the detailed steps (C), (E), and (F) include the following sub-steps: (C1) When the Unified Extensible Firmware Interface receives an input parameter indicating an identifier for a target port, the input parameter may include any of the following: read command parameter list (e.g., get), specific summary command parameter (e.g., a~s), or general summary command parameter (e.g., all).

[0031] (C2) The Unified Extensible Firmware Interface generates the address of a target port based on the input parameters and an address calculation formula. The address calculation formula for sub-step (C) is as follows: MmioRead32 (PCH_PCR_BASE_ADDRESS + ((Target port ID ofcommunity<<16)+ Offset)), In the formula, MmioRead32 is defined as a function that reads the 32-bit MMIO register at a specified address, PCH_PCR_BASE_ADDRESS is defined as the starting address of the platform path controller register, community is defined as a group of general purpose input / output ports including multiple groups, Target port ID is defined as the identification code of each group, and Offset is defined as the register offset value of the general purpose input / output port (the DW0 register offset of different root GPIOs).

[0032] (C3) The Unified Extensible Firmware Interface generates the corresponding GPIO value of the register based on the address of the target port.

[0033] (C4) When the Unified Extensible Firmware Interface receives a read command parameter that is about a detail mode, it generates a screen showing the GPIO value of each bit of the corresponding register. See [link / reference]. Figure 5 And the screen is displayed on monitor 4. Here we will further explain the detailed operation of sub-steps (C1) to C(4) corresponding to step (C).

[0034] (F4) When the Unified Extensible Firmware Interface receives a read command parameter related to a group mode, it generates a screen displaying the GPIO values ​​of the registers for the corresponding GPIO group. (See also...) Figure 6And the screen is displayed on monitor 4. Here we will further explain the detailed operation of sub-steps (C1) to C(3) and (F4) corresponding to step (F).

[0035] (E4) When the Unified Extensible Firmware Interface receives a read command parameter that is about an All mode, a screen containing a summary of all general purpose input / output port groups is generated and displayed on display 4. Further explanation is provided below of the detailed implementation of sub-steps (C1) to C(3), and (E4) corresponding to step (E).

[0036] (G) The processor executes a unified extensible firmware interface in an interactive mode, which generates a prompt screen on the display screen that is related to guiding a user to input parameters in stages. (H) When the Unified Extensible Firmware Interface receives a read command parameter (e.g., g) that indicates reading the contents of a register of a general input / output port, the Unified Extensible Firmware Interface generates a screen of a GPIO value associated with a register of the general input / output port and displays the screen on the display, with each GPIO value corresponding to a port function. (I) When the Unified Extensible Firmware Interface (UEMI) receives a write command parameter (e.g., s) indicating that the contents of a register of a general-purpose input / output (GPIO) port should be written, the UEMI receives a GPIO value corresponding to the register of the corresponding GPIO port, and updates the original GPIO value once based on the new GPIO value. "Once" means that after each power-off, the new GPIO value in the register reverts to the original GPIO value. The new GPIO value is a write value that modifies the contents of the register bits. For example... Figure 7 As shown, step (I) includes the following sub-steps: (I1) The Unified Extensible Firmware Interface executes a GetPadValue function to obtain the current setting value of the corresponding GPIO register. The current setting value is the original GPIO value, which is the original default value of the register. The GPIO register includes multiple bits.

[0037] (I2) The unified and extensible firmware interface determines which bit needs to be set based on a string of write command parameters.

[0038] (I3) The unified and extensible firmware interface determines the value of the bit to be set based on a string of write command parameters.

[0039] (I4) The Unified Extensible Firmware Interface executes a SetPadValue function to set the value of the required bit, such as "DW0 register".

[0040] The function for setting port values ​​has the following formula: MmioWrite32 (PCH_PCR_BASE_ADDRESS + (Target port ID of community<<16)+ Offset + Index RegOffset, value) The following further explains this formula, MmioWrite32: a function that writes a value to a 32-bit MMIO register at a specified address.

[0041] The formula's PCH_PCR_BASE_ADDRESS: is the starting address defined according to the PCH specification, for example, 0xFD000000.

[0042] The formula's Community: Multiple GPIO groups will form a group.

[0043] Formula Target port ID: Each group has its own identifier (ID).

[0044] The formula's Offset: The offset of the DW0 register for different GPIOs, used to set the GPIO register - PadConfiguration DW0.

[0045] The Value of the formula: The value to be written, calculated by the formula BitFieldWrite.

[0046] The formula BitFieldWrite is used to modify the bit range of a specified memory address, such as bit1 to bit2.

[0047] The formula for BitFieldWrite is as follows: Value | ((OrData< <StartBit)&~((UINTN) -2<<EndBit)) Value: The original value at this location, which can be obtained using the GetPadValue function. StartBit: The starting bit to be modified. EndBit: The end bit to be modified. Refer to Table 1 for examples illustrating the GPIO register settings.

[0048] Table 1 The definition of Pmode in Table 1 is: select the function of this GPIO, either as a general GPIO or a native function. The definition of native function is: refer to the PCH specification to define the different native functions of each GPIO, such as being used as an input clock signal.

[0049] The definition of Direction in Table 1 is: GPIO input (IN) or output (OUT).

[0050] The definition of Inversion in Table 1 is: reverse, non-reverse. This bit is used to determine whether the selected GPIO port state should go through the polarity reversal stage.

[0051] The definition of TX state in Table 1 is: the output state is either logic high or logic low.

[0052] The definition of Level edge in Table 1: determines whether the internal RX state should be passed to the next logic stage as is, as a pulse (Edge) or a level signal (Level).

[0053] The definition of Reset by in Table 1 specifies which type of reset signal will be used to reset the initial value.

[0054] Sub-step (I5) The Unified Extensible Firmware Interface executes the read port value function to obtain a current setting value of the corresponding register. The current setting value is an update GPIO value, which is the write value.

[0055] In step (J), when the Unified Extensible Firmware Interface receives a help command parameter indicating the function corresponding to each parameter, the Unified Extensible Firmware Interface generates a screen corresponding to the function of each parameter, and the screen is displayed on the monitor.

[0056] Step (K) The Unified Extensible Firmware Interface receives a reserved command parameter (EFI_VARIABLE_NON_VOLATILE). A variable value of the reserved command parameter indicates whether the value of the corresponding register is a reserved setting or a non-reserved setting. The definition of EFI_VARIABLE_NON_VOLATILE is: a non-volatile variable service attribute provided by UEFI that is not cleared by the BIOS when the system is restarted.

[0057] In step (L), when the value of the retain command parameter indicates that the setting is retained (logic 1), the Unified Extensible Firmware Interface (UEFI) notifies the BIOS to make the value of the corresponding register independent of system initialization. When the value of the retain command parameter indicates that the setting is not retained (logic 0), UEFI does nothing; inaction means not notifying the BIOS to retain the setting. See also... Figure 8 Step (L) includes the following sub-steps: In substep (L1), the user sets the variable value of the retained command parameter to 1 to indicate that a new GPIO value needs to be stored. The new GPIO value is the value written to the register this time.

[0058] In sub-step (L2), the user sets the variable value of the retained command parameter to 0 to indicate that the new GPIO value does not need to be stored.

[0059] Sub-step (L3) System reset.

[0060] Sub-step (L4) The BIOS reads the variable value of the reserved command parameter to confirm whether the variable value is 1 or 0.

[0061] In substep (L5), when the variable value is 1, the BIOS ignores the initialization of the GPIO value and does not clear the new GPIO value.

[0062] The written value of the GPIO register in sub-step (L6) is retained.

[0063] Sub-step (L7): When the variable value is 0, the BIOS performs GPIO value initialization and clears the new GPIO value.

[0064] Sub-step (L8): The written value to the GPIO register is not retained.

[0065] In summary, the above embodiments have the following advantages: 1. By utilizing a unified and extensible firmware interface to receive read and write command parameters, the original default values ​​of the GPIO registers can be displayed on the screen, and the original default values ​​can be updated according to the settings of the command parameters, allowing users to read / write the GPIO state without studying relevant technical documents or possessing domain knowledge. 2. Utilizing a unified and extensible firmware interface further allows users to read / write the GPIO state without additional hardware tools or operating systems. 3. Users do not need to modify the BIOS source code to write to the GPIO. 4. UEFI communicates with the BIOS based on the retained command parameters, ensuring that the GPIO settings are not cleared by the BIOS when the system is restarted, thus permanently saving the set GPIO values ​​even after a system reboot, effectively achieving the purpose of this invention.

[0066] However, the above are merely embodiments of the present invention and should not be construed as limiting the scope of the present invention. Any simple equivalent changes and modifications made in accordance with the scope of the patent application and the contents of the patent specification of the present invention shall still fall within the scope of the patent of the present invention.

Claims

1. A computer interface guided interaction method, executed by a server device and displayed on a monitor, wherein the server device includes a processor; characterized in that: Including the following step: Step B: The processor executes a unified extensible firmware interface operation in command line mode, which is used to generate a prompt screen on the display, and the prompt screen is related to guiding user input. Step C: When the Unified Extensible Firmware Interface receives a list of read command parameters indicating that the contents of a register of a general input / output port should be read, the Unified Extensible Firmware Interface generates a screen with a default value for the register of the general input / output port and displays the screen on the display. Each default value corresponds to a port function. Step D: When the Unified Extensible Firmware Interface receives a list of write command parameters indicating that the contents of a register of a general input / output port should be written, the Unified Extensible Firmware Interface is used to receive the write value of the register of the corresponding general input / output port and update the original default value according to the write value.

2. The computer interface guided interaction method according to claim 1, characterized in that: It also includes the following steps: Step E: When the Unified Extensible Firmware Interface receives an instruction to read the summary command parameter list of all General Input / Output Port Groups, the Unified Extensible Firmware Interface generates a screen displaying a summary of the contents of all General Input / Output Port Groups; Step F: When the Unified Extensible Firmware Interface receives a specific summary command parameter list indicating that the register contents of a particular general input / output port should be read, the Unified Extensible Firmware Interface generates a screen containing a summary of the contents of the particular general input / output port group, and the screen is displayed on the display.

3. The computer interface guided interaction method according to claim 1, characterized in that: It also includes the following steps: Step G: The processor executes a unified extensible firmware interface operation in interactive mode. The command line mode is used to generate a prompt screen on the display, which is related to guiding the user to input parameters.

4. The computer interface guided interaction method according to claim 1, characterized in that: It also includes the following steps: Step H: When the Unified Extensible Firmware Interface receives a read command parameter indicating that the register contents of a General Input / Output Port are to be read, the Unified Extensible Firmware Interface generates a screen showing the original default values ​​of the registers of the General Input / Output Port, and the screen is displayed on the display, with each original default value corresponding to a port function. Step 1: When the Unified Extensible Firmware Interface receives a write command parameter indicating that the contents of a register of a general input / output port are to be written, the Unified Extensible Firmware Interface is used to receive the write value of the register of the corresponding general input / output port, and update the original default value once according to the write value.

5. The computer interface guided interaction method according to claim 4, characterized in that: Step I includes the following sub-steps: Sub-step I1: The Unified Extensible Firmware Interface executes a function to read the port value to obtain the current setting value of the corresponding register. The current setting value is the original default value, and the register includes multiple bits. Sub-step I2: The Unified Extensible Firmware Interface determines which bit needs to be set based on a string of write command parameters; Sub-step I3: The Unified Extensible Firmware Interface determines the value of the required setting bit based on the string of the write command parameter; Sub-step I4: The Unified Extensible Firmware Interface executes the setting port value function to set the value of the required bit. Sub-step I5: The Unified Extensible Firmware Interface executes the read port value function to obtain the current setting value of the corresponding register, where the current setting value is the write value.

6. The computer interface guided interaction method according to claim 1, characterized in that: It also includes the following steps: Step J: When the Unified Extensible Firmware Interface receives a help command parameter indicating the function corresponding to each parameter, the Unified Extensible Firmware Interface generates a screen corresponding to the function of each parameter, and the screen is displayed on the display.

7. The computer interface guided interaction method according to claim 1, characterized in that: Step C includes the following sub-steps: Sub-step C1: When the Unified Extensible Firmware Interface receives input parameters, the input parameters indicate the identification code of the target port; Sub-step C2: The Unified Extensible Firmware Interface generates the address of the target port based on the input parameters and the address calculation formula; Sub-step C3: The Unified Extensible Firmware Interface generates the original default values ​​of the corresponding registers based on the address of the target port; Sub-step C4: When the Unified Extensible Firmware Interface receives the read command parameters, it generates the screen that includes the original default values ​​of the corresponding registers.

8. The computer interface guided interaction method according to claim 7, characterized in that: The address calculation formula for sub-step C2 is as follows: MmioRead32 (PCH_PCR_BASE_ADDRESS + ((Target port ID ofcommunity<<16) +Offset)), In the formula, MmioRead32 is defined as a function that reads the 32-bit MMIO register at a specified address, PCH_PCR_BASE_ADDRESS is defined as the starting address of the platform path controller register, community is defined as a group of general-purpose input / output ports that includes multiple groups, Target port ID is defined as the identifier of each group, and Offset is defined as the register offset value of the general-purpose input / output port.

9. The computer interface guided interaction method according to claim 1, characterized in that: It also includes the following steps: Step K: The Unified Extensible Firmware Interface receives a retention command parameter, the setting value of which is used to indicate whether the value of the corresponding register is retained or not. Step L: When the value of the reserved command parameter indicates the reserved setting, the Unified Extensible Firmware Interface makes the value of the corresponding register independent of system initialization.

10. The computer interface guided interaction method according to claim 1, wherein the server device further includes a platform path controller electrically connected to the processor and the display, characterized in that: The following steps precede step B: Step A1: When the server device is in power-on mode, a startup signal is generated; Step A2: The processor prepares to load the shell software of the unified extensible firmware interface according to the boot signal; Step A3: The processor determines whether the first version of the shell software was successfully loaded; Step A4: If the first version is successfully loaded, the processor executes the shell software to read an identification code of the platform path controller to determine the model of the platform path controller; Step A5: The processor loads the corresponding platform register table according to the model number. The platform register table records the original default values ​​of the registers for each general purpose input / output port. Step A6: The Unified Extensible Firmware Interface determines whether it has received input of the instruction command line parameters and generates a determination result. If the determination result is that the input of the instruction command line parameters has been received, then proceed to step B.

Citation Information

Patent Citations

  • Method of UEFI shell for supporting power saving mode and computer system thereof

    CN109213301A

  • Automatic server detection method and device and storage medium

    CN113377586A