CN113608793A - BIOS parameter modification method, device, tool and readable storage medium - Google Patents

BIOS parameter modification method, device, tool and readable storage medium Download PDF

Info

Publication number
CN113608793A
CN113608793A CN202110913077.8A CN202110913077A CN113608793A CN 113608793 A CN113608793 A CN 113608793A CN 202110913077 A CN202110913077 A CN 202110913077A CN 113608793 A CN113608793 A CN 113608793A
Authority
CN
China
Prior art keywords
identification
target
bios
ith
video frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110913077.8A
Other languages
Chinese (zh)
Inventor
黄安兰
郭益铭
许超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Haojie Innovation Electronics Co ltd
Original Assignee
Shenzhen Haojie Innovation Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Haojie Innovation Electronics Co ltd filed Critical Shenzhen Haojie Innovation Electronics Co ltd
Priority to CN202110913077.8A priority Critical patent/CN113608793A/en
Publication of CN113608793A publication Critical patent/CN113608793A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7844Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using original textual content or text extracted from visual content or transcript of audio data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7847Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using low-level visual features of the video content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7847Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using low-level visual features of the video content
    • G06F16/785Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using low-level visual features of the video content using colour or luminescence

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Library & Information Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a BIOS parameter modification method, a device, a tool and a readable storage medium. Acquiring an identification code set (the identification code set comprises at least one group of identification codes, and each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code); determining a video frame corresponding to the ith group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to target identification data, a target identification type, a target identification area, a restart identification and a key code of the ith group of identification codes, wherein I is more than or equal to 1 and less than or equal to I, and I is the total number of the identification codes in the identification code set; and modifying the BIOS parameters by using the video frame corresponding to the ith group of identification codes. The automatic batch modification of a large number of BIOS parameters needing to be modified is realized, so that the waste of human resources is avoided, the modification efficiency is improved, and the modification period is shortened.

Description

BIOS parameter modification method, device, tool and readable storage medium
Technical Field
The present disclosure relates to the field of Basic Input Output Systems (BIOS), and in particular, to a method, an apparatus, a tool, and a readable storage medium for modifying BIOS parameters.
Background
The Basic Input Output System (BIOS) is the first software loaded when a personal computer is started. It is a set of programs solidified on a Read Only Memory (ROM) chip on the computer mainboard, and it stores the most important basic input and output programs of the computer, self-test programs after power-on and system self-starting programs. Its primary function is to provide the lowest level, most direct hardware setup and control for the computer.
The general BIOS follows the SMBIOS specification. SMBIOS (System Management BIOS) is a unified specification that a motherboard or system manufacturer needs to follow to display product Management information in a standard format. The desktop Management interface dmi (desktop Management interface) is used for collecting computer system information, and the information collection is performed according to the SMBIOS specification. For security and the like, no corresponding interface and method are generally provided for modifying BIOS parameters. At present, in the process of testing PC equipment, manual modification is mainly carried out on BIOS parameters needing to be modified through manual work, and when a large number of BIOS parameters need to be modified, the modification period is long, the process is complex, and the manual efficiency is not high.
Disclosure of Invention
In view of the above problems, the present application provides a BIOS parameter modification method, apparatus, tool and readable storage medium.
The embodiment of the application provides a BIOS parameter modification method, which comprises the following steps:
acquiring an identification code set, wherein the identification code set comprises at least one group of identification codes, and each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code;
determining a video frame corresponding to the ith group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to target identification data, a target identification type, a target identification area, a restart identification and a key code of the ith group of identification codes, wherein I is more than or equal to 1 and less than or equal to I, and I is the total number of the identification codes in the identification code set;
and modifying the BIOS parameters by using the video frame corresponding to the ith group of identification codes.
The method for modifying BIOS parameters according to the embodiment of the present application, where determining a video frame corresponding to an ith group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to target identification data, a target identification type, a target identification area, a restart identification, and a key code of the ith group of identification codes includes:
judging whether the restart identifier of the ith group of identification codes is effective or not;
if the restart identifier of the ith group of identifiers is invalid, traversing the plurality of BIOS interfaces by using the key codes, and determining whether the video frame corresponding to the currently traversed BIOS interface comprises the target identifier data of the ith group of identifiers or not by using the target identifier type and the target identifier area of the ith group of identifiers when traversing each BIOS interface, and if so, taking the video frame comprising the target identifier data of the ith group of identifiers as the video frame corresponding to the ith group of identifiers.
The method for modifying BIOS parameters according to the embodiment of the present application, determining whether a video frame corresponding to a currently traversed BIOS interface includes target identification data of the ith group identifier using the target identification type and the target identification area of the ith group identifier includes:
intercepting a target picture from a current video frame corresponding to a currently traversed BIOS interface according to the target identification area of the ith group of identification codes;
determining identification data of the current video frame from the target picture and the current video frame according to the target identification type of the ith group of identification codes;
if the identification data of the current video frame is the same as the target identification data of the ith group of identification codes, determining that the current video frame comprises the target identification data of the ith group of identification codes;
and if the identification data of the current video frame is not the same as the target identification data of the ith group of identification codes, determining that the current video frame does not include the target identification data of the ith group of identification codes.
The BIOS parameter modification method according to the embodiment of the present application, where determining the identification data of the current video frame from the target picture and the current video frame according to the target identification type of the ith group identification code includes:
if the target identification type of the ith group of identification codes is a video frame, taking the current video frame as identification data of the current video frame;
if the target identification type of the ith group of identification codes is a picture, taking the target picture as identification data of the current video frame;
if the target identification type of the ith group of identification codes is a character, extracting the character from the target picture, and identifying the character in the target picture to the identification data of the current video frame;
and if the target identification type of the ith group of identification codes is color, extracting color from the target picture, and taking the color in the target picture as the identification data of the current video frame.
The BIOS parameter modification method according to the embodiment of the present application further includes:
if the restart identifier of the ith group of identification codes is valid, controlling the BIOS system to restart;
and after the BIOS system is restarted, determining a video frame corresponding to the i +1 th group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to the target identification data, the target identification type, the target identification area, the restart identification and the key code of the i +1 th group of identification codes.
The BIOS parameter modification method according to the embodiment of the present application further includes:
determining target identification data of each BIOS interface in advance according to a preset target identification type and/or a preset target identification area corresponding to each BIOS interface;
and determining a corresponding group of identification codes according to the target identification data of each BIOS interface, the corresponding preset target identification type and the preset target identification area.
The method for modifying BIOS parameters according to the embodiment of the present application, where determining the target identification data of each BIOS interface according to the preset target identification type and/or the preset target identification area corresponding to each BIOS interface includes:
determining whether a preset target identification type corresponding to the ith BIOS interface is a video frame;
if so, taking the video frame of the ith BIOS interface as the target identification data of the ith BIOS interface;
if the video frame is not the video frame, intercepting a corresponding ith target picture from the video frame of the ith BIOS interface according to a preset target identification area corresponding to the ith BIOS interface;
if the preset target identification type corresponding to the ith BIOS interface is a picture, taking the ith target picture as target identification data of the ith BIOS interface;
if the preset target identification type corresponding to the ith BIOS interface is a character, extracting the character from the ith target picture, and taking the character in the ith target picture as target identification data of the ith BIOS interface;
if the preset target identification type corresponding to the ith BIOS interface is color, extracting color from the ith target picture, and taking the color in the ith target picture as target identification data of the ith BIOS interface.
The embodiment of the present application further provides a BIOS parameter modification apparatus, where the apparatus includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an identification code set, the identification code set comprises at least one group of identification codes, and each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code;
the determining module is used for determining a video frame corresponding to the ith group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to the target identification data, the target identification type, the target identification area, the restart identification and the key code of the ith group of identification codes, wherein I is more than or equal to 1 and less than or equal to I, and I is the total number of the identification codes in the identification code set;
and the modification module is used for modifying the BIOS parameters by utilizing the video frame corresponding to the ith group of identification codes.
The embodiment of the present application further provides a BIOS parameter modification tool, which includes a memory and a processor, where the memory stores a computer program, and the computer program executes the BIOS parameter modification method according to the embodiment of the present application when running on the processor.
The embodiment of the present application further provides a readable storage medium, which stores a computer program, and when the computer program runs on a processor, the computer program executes the BIOS parameter modification method according to the embodiment of the present application.
The BIOS parameter modification method comprises the steps of obtaining an identification code set (the identification code set comprises at least one group of identification codes, and each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code); determining a video frame corresponding to the ith group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to target identification data, a target identification type, a target identification area, a restart identification and a key code of the ith group of identification codes, wherein I is more than or equal to 1 and less than or equal to I, and I is the total number of the identification codes in the identification code set; and modifying the BIOS parameters by using the video frame corresponding to the ith group of identification codes. The automatic batch modification of a large number of BIOS parameters needing to be modified is realized, so that the waste of human resources is avoided, the modification efficiency is improved, and the modification period is shortened.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
FIG. 1 is a schematic structural diagram illustrating a BIOS parameter modification tool according to an embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating a BIOS parameter modification method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart illustrating a process of determining a video frame corresponding to an i-th group identifier from a plurality of video frames corresponding to a plurality of BIOS interfaces in a BIOS parameter modification method according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a process of determining whether a video frame corresponding to a currently traversed BIOS interface includes target identification data of an i-th group of identifiers in a BIOS parameter modification method according to an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating a method for modifying BIOS parameters according to an embodiment of the present application, in which target identification data of each BIOS interface is predetermined;
FIG. 6 is a schematic diagram of a BIOS interface according to an embodiment of the present application;
fig. 7 is a schematic structural diagram illustrating a BIOS parameter modification apparatus according to an embodiment of the present disclosure.
10-BIOS parameter modification means; 11-an acquisition module; 12-a determination module; 13-modify the module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Referring to fig. 1, an embodiment of the present application discloses a BIOS parameter modification TOOL (BIOS TOOL), which includes a processor (MCU), a plurality of physical keys (K1, K2, and Kn) for modifying BIOS parameters, and a restart module for controlling a PC device to restart, where the restart module includes a power supply terminal VCC, a diode VD, a relay K, a transistor T, a first resistor R1, and a second resistor R2, and the relay K is connected in parallel with a restart key Reset Button. The power supply terminal VCC is a BIOS TOOL power supply, wherein the relay K can be a passive relay, and the diode VD can play a role of follow current; the triode T is an NPN type bipolar triode and can be replaced by an NMosfet, the first resistor R1 plays a role in limiting current, and the second resistor R2 is used for preventing misoperation.
It should be noted that the keys for modifying the BIOS parameter entity are not only K1, K2, and Kn, but may be extended to multiple keys as required.
The COM port of the BIOS parameter modification TOOL (BIOS TOOL) is used for connecting a management PC (Manager PC), the management PC (Manager PC) transmits a Protocol to the BIOS parameter modification TOOL (BIOS TOOL) through the serial port COM, and the processor (MCU) analyzes and processes the Protocol after receiving the Protocol. The serial port COM may be a TTL level or an RS232 level.
VGA 1to 2 is VGA or HDMI video distributor, which is used to divide the output video of PC Motherboard into two paths to be transmitted to monitor Display and BIOS TOOL.
The Display is a monitor, is used for displaying on the mainboard PC Motherboard, and the input can be a non-compressed digital signal HDMI or an analog signal VGA.
The video output VGA of the Motherboard PC Motherboard can output VGA or HDMI signals. The USB Host is a USB keyboard or mouse socket. Reset is the Reset key interface of the main board, and 2 Reset _ A and Reset _ B lines are connected out. The Reset Button is a restart Button carried by the mainboard.
VGA _ In of the processor (MCU) is a VGA signal or HDMI signal input interface. And may also be converted to a communicable signal input through a video, such as I2C, SPI, UART, etc.
The USB Device of the processor (MCU) is a USB port operating in USB Device mode, and mainly functions as a Mouse and Keyboard Simulator (Mouse & Keyboard Simulator).
K1_ In, K2_ In, …, Kn _ In of the processor (MCU) are key signal inputs, Kn represents a plurality.
The LED _ Out of the processor (MCU) is used for driving a light emitting diode LED and plays a role in signal prompt.
It can be understood that the relay K is connected in parallel with the Reset Button of the mainboard PC Motherboard, and the work of the existing PC is not influenced. The video distributor VGA 1to 2 distributes videos, so that the work of the existing PC is not influenced; the USB interface is adopted to simulate a mouse and a keyboard, and the work of the mouse and the keyboard of the existing PC is not influenced; the key sets K1, K2, … and Kn are used as shortcut keys, each shortcut key is associated with an identification code set, each identification code set comprises at least one group of identification codes, each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code, each group of identification codes corresponds to a BIOS interface, each group of identification codes can be used for modifying a BIOS parameter corresponding to one BIOS interface, and a BIOS parameter modifying TOOL (BIOS TOOL) is convenient for automatically modifying the BIOS parameters in batch, so that the operation efficiency is improved.
Example 1
In an embodiment of the present application, please refer to fig. 2, which provides a BIOS parameter modification method, including the following steps S100, S200, and S300:
s100: the method comprises the steps of obtaining an identification code set, wherein the identification code set comprises at least one group of identification codes, and each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code.
It should be noted that the manner of acquiring the identifier set includes multiple manners, and the identifier set may be acquired by changing a state of a virtual key (a virtual key in an application program on the terminal device), for example, the application program of the terminal device includes multiple virtual keys, each virtual key corresponds to an identifier set, when any virtual key is pressed, the identifier set corresponding to the virtual key is acquired by a processor of the terminal device, and further, the processor of the terminal device may determine a corresponding video frame from multiple video frames corresponding to multiple BIOS interfaces according to target identification data, a target identification type, a target identification area, a restart identification, and a key code of each group of identifiers in sequence; the BIOS parameters are modified by using the video frame corresponding to each group of identification codes. Or, the processor of the terminal device sends the acquired set of identification codes to a processor (MCU) of a BIOS parameter modification TOOL (BIOS TOOL) shown in fig. 1, so that the processor (MCU) of the BIOS parameter modification TOOL may determine corresponding video frames from a plurality of video frames corresponding to a plurality of BIOS interfaces in sequence according to the target identification data, the target identification type, the target identification area, the restart identification, and the key code of each group of identification codes; the BIOS parameters are modified by using the video frame corresponding to each group of identification codes. It can be understood that the corresponding set of identification codes for each virtual key has been preset.
For example, the BIOS parameter modification TOOL (BIOS TOOl) may include a plurality of entity keys (e.g., K1, K2, and Kn), each entity key corresponds to an identifier set, when any entity key is pressed, the identifier set corresponding to the entity key is obtained by a processor (MCU) of the BIOS parameter modification TOOL, and further, the processor (MCU) may determine a corresponding video frame from a plurality of video frames corresponding to the plurality of BIOS interfaces according to target identification data, a target identification type, a target identification region, a restart identification, and a key code of each group of identifiers in sequence; the BIOS parameters are modified by using the video frame corresponding to each group of identification codes. It can be understood that the identification code set corresponding to each physical key has been previously burned into a flash memory of a processor (MCU) of the BIOS parameter modification tool, and when the state of any physical key changes, the corresponding identification code set is obtained from the flash memory of the processor (MCU).
S200: and determining a video frame corresponding to the ith group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to the target identification data, the target identification type, the target identification area, the restart identification and the key code of the ith group of identification codes, wherein I is more than or equal to 1 and less than or equal to I, and I is the total number of the identification codes in the identification code set.
Exemplarily, referring to fig. 3, S200 includes the following steps S210 to S230:
s210: and judging whether the restart identifier of the ith group of identification codes is effective or not.
If the restart flag of the ith group identifier is invalid, performing step S220, and if the restart flag of the ith group identifier is valid, performing step S230: and controlling the BIOS system to restart. After the BIOS system is restarted, determining a video frame corresponding to the i +1 th group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to the target identification data, the target identification type, the target identification area, the restart identification and the key code of the i +1 th group of identification codes.
S220: and traversing the plurality of BIOS interfaces by using the key codes, determining whether the video frame corresponding to the currently traversed BIOS interface comprises the target identification data of the ith group of identification codes or not by using the target identification type and the target identification area of the ith group of identification codes when traversing each BIOS interface, and if so, taking the video frame comprising the target identification data of the ith group of identification codes as the video frame corresponding to the ith group of identification codes.
Further, referring to fig. 4, the step S220 of determining whether the video frame corresponding to the currently traversed BIOS interface includes the target identification data of the ith group identifier by using the target identification type and the target identification area of the ith group identifier includes the following steps S221 to S225:
s221: and intercepting a target picture from a current video frame corresponding to the currently traversed BIOS interface according to the target identification area of the ith group of identification codes.
The target area may have any shape such as a circle, a square, or a rectangle, and for example, in the case of a circle, the target marker area may be represented by origin coordinates and a radius, and in the case of a rectangle, the target marker area may be represented by two end coordinates on any diagonal line.
It should be noted that the mouse or keyboard instruction parsed from the key code in the ith group of identification codes not only includes an instruction for traversing the multiple BIOS interfaces, but also includes a mouse or keyboard instruction for capturing a target picture from a video frame. Therefore, an instruction of the mouse or the keyboard (resolved from the key code in the ith group of identification codes) for intercepting the target picture is sent to the USB Host terminal of the PC Device motherboard through the USB Device pin of the processor (MCU) of the BIOS parameter modification TOOL (BIOS TOOL), so that the PC Device motherboard can intercept the target picture in response to the instruction of the mouse or the keyboard.
S222: and determining the identification data of the current video frame from the target picture and the current video frame according to the target identification type of the ith group of identification codes.
Exemplarily, if the target identifier type of the ith group of identifiers is a video frame, using the current video frame as the identifier data of the current video frame; if the target identification type of the ith group of identification codes is a picture, taking the target picture as identification data of the current video frame; if the target identification type of the ith group of identification codes is a character, extracting the character from the target picture, and identifying the character in the target picture to the identification data of the current video frame; and if the target identification type of the ith group of identification codes is color, extracting color from the target picture, and taking the color in the target picture as the identification data of the current video frame.
S223: and judging whether the identification data of the current video frame is the same as the target identification data of the ith group of identification codes.
If the identification data of the current video frame is the same as the target identification data of the ith group of identification codes, step S224 is performed, and if the identification data of the current video frame is not the same as the target identification data of the ith group of identification codes, step S225 is performed.
S224: determining that the current video frame includes the object identification data for the ith group identifier.
S225: determining that the current video frame does not include the object identification data for the group i identifier.
S300: and modifying the BIOS parameters by using the video frame corresponding to the ith group of identification codes.
It should be noted that the mouse or keyboard command parsed from the key code in the ith group of identification codes further includes a command for modifying the BIOS parameter. Therefore, after the video frame corresponding to the i-th group of identification codes is determined, a command of a mouse or a keyboard (analyzed by the key code in the i-th group of identification codes) for modifying the BIOS parameters can be sent to the USB Host terminal of the PC Device motherboard through a USB Device pin of a processor (MCU) of a BIOS parameter modification TOOL (BIOS TOOL), so that the PC Device motherboard can modify the BIOS parameters in response to the command of the mouse or the keyboard.
It should be noted that, the above steps S200 and S300 need to be executed circularly I times, so that all the BIOS parameters corresponding to I identifiers in one identifier set are modified.
Further, it should be noted that, in the BIOS parameter modification method disclosed in the present application, the target identification data of each BIOS interface needs to be determined in advance according to the preset target identification type and/or the preset target identification area corresponding to each BIOS interface; and determining a corresponding group of identification codes according to the target identification data of each BIOS interface, the corresponding preset target identification type and the preset target identification area.
For example, referring to FIG. 5, the target identification data of each BIOS interface is predetermined by the following steps S10-S90.
S10: and determining whether the preset target identification type corresponding to the ith BIOS interface is a video frame.
If the video frame is a video frame, step S20 is executed, and if the video frame is not a video frame, step S30 is executed.
S20: and taking the video frame of the ith BIOS interface as the target identification data of the ith BIOS interface.
S30: and intercepting a corresponding ith target picture from a video frame of the ith BIOS interface according to a preset target identification area corresponding to the ith BIOS interface.
S40: and determining whether the preset target identification type corresponding to the ith BIOS interface is a picture.
If the preset target identifier type corresponding to the ith BIOS interface is a picture, performing step S50, and if the preset target identifier type corresponding to the ith BIOS interface is not a picture, performing step S60.
S50: and taking the ith target picture as target identification data of the ith BIOS interface.
S60: and determining whether the preset target identification type corresponding to the ith BIOS interface is a character.
If the preset target identifier type corresponding to the ith BIOS interface is a text, performing step S70, and if the preset target identifier type corresponding to the ith BIOS interface is not a text, performing step S80.
S70: extracting characters from the ith target picture, and taking the characters in the ith target picture as target identification data of the ith BIOS interface.
S80: and determining whether the preset target identification type corresponding to the ith BIOS interface is a color.
If the preset target identifier type corresponding to the ith BIOS interface is a color, step S90 is executed.
S90: and extracting colors from the ith target picture, and taking the colors in the ith target picture as target identification data of the ith BIOS interface.
It can be understood that the preset target identification type includes video frames, pictures, colors and characters, and can flexibly cope with changes of the BIOS interfaces, so that unique target identification data can be determined from each BIOS interface.
Exemplarily, referring to fig. 6, a BIOS interface for modifying SATA Hot Plug enable parameter (SATA Hot Plug) is shown, and the interface includes specific text information, for example, SATA, so that when determining a BIOS interface for modifying SATA Hot Plug enable parameter (SATA Hot Plug) from a plurality of BIOS interfaces, whether text SATA is included in a specific region of each BIOS interface may be sequentially traversed, and if so, a BIOS interface for modifying SATA Hot Plug enable parameter (SATA Hot Plug) may be determined.
Example 2
Referring to fig. 7, another embodiment of the present application provides a BIOS parameter modification apparatus 10, including: an acquisition module 11, a determination module 12 and a modification module 13.
The system comprises an acquisition module 11, a storage module and a processing module, wherein the acquisition module is used for acquiring an identification code set, the identification code set comprises at least one group of identification codes, and each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code; a determining module 12, configured to determine, according to target identification data, a target identification type, a target identification area, a restart identification, and a key code of an ith group of identification codes, a video frame corresponding to the ith group of identification codes from multiple video frames corresponding to multiple BIOS interfaces, where I is greater than or equal to 1 and less than or equal to I, and I is a total number of identification codes in the identification code set; and a modifying module 13, configured to modify the BIOS parameter using the video frame corresponding to the ith group identifier.
The BIOS parameter modification apparatus 10 disclosed in this embodiment is configured to execute the BIOS parameter modification method described in the foregoing embodiment through the matching use of the obtaining module 11, the determining module 12, and the modifying module 13, and the implementation and beneficial effects related to the foregoing embodiment are also applicable in this embodiment, and are not described herein again.
Further, the BIOS parameter modification tool disclosed in the present application further includes a memory, where the memory stores a computer program, and the computer program executes the BIOS parameter modification method described in the present application when running on the processor.
Further, a readable storage medium stores a computer program, which when executed on a processor performs the BIOS parameter modification method described herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A BIOS parameter modification method, the method comprising:
acquiring an identification code set, wherein the identification code set comprises at least one group of identification codes, and each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code;
determining a video frame corresponding to the ith group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to target identification data, a target identification type, a target identification area, a restart identification and a key code of the ith group of identification codes, wherein I is more than or equal to 1 and less than or equal to I, and I is the total number of the identification codes in the identification code set;
and modifying the BIOS parameters by using the video frame corresponding to the ith group of identification codes.
2. The method of claim 1, wherein the determining the video frame corresponding to the ith group identifier from the plurality of video frames corresponding to the plurality of BIOS interfaces according to the target identification data, the target identification type, the target identification area, the restart identifier, and the key code of the ith group identifier comprises:
judging whether the restart identifier of the ith group of identification codes is effective or not;
if the restart identifier of the ith group of identifiers is invalid, traversing the plurality of BIOS interfaces by using the key codes, and determining whether the video frame corresponding to the currently traversed BIOS interface comprises the target identifier data of the ith group of identifiers or not by using the target identifier type and the target identifier area of the ith group of identifiers when traversing each BIOS interface, and if so, taking the video frame comprising the target identifier data of the ith group of identifiers as the video frame corresponding to the ith group of identifiers.
3. The method of claim 2, wherein the determining whether the video frame corresponding to the currently traversed BIOS interface includes the target identification data of the ith group identifier by using the target identification type and the target identification area of the ith group identifier comprises:
intercepting a target picture from a current video frame corresponding to a currently traversed BIOS interface according to the target identification area of the ith group of identification codes;
determining identification data of the current video frame from the target picture and the current video frame according to the target identification type of the ith group of identification codes;
if the identification data of the current video frame is the same as the target identification data of the ith group of identification codes, determining that the current video frame comprises the target identification data of the ith group of identification codes;
and if the identification data of the current video frame is not the same as the target identification data of the ith group of identification codes, determining that the current video frame does not include the target identification data of the ith group of identification codes.
4. The BIOS parameter modification method of claim 3, wherein the determining the identification data of the current video frame from the target picture and the current video frame according to the target identification type of the i-th group identifier comprises:
if the target identification type of the ith group of identification codes is a video frame, taking the current video frame as identification data of the current video frame;
if the target identification type of the ith group of identification codes is a picture, taking the target picture as identification data of the current video frame;
if the target identification type of the ith group of identification codes is a character, extracting the character from the target picture, and identifying the character in the target picture to the identification data of the current video frame;
and if the target identification type of the ith group of identification codes is color, extracting color from the target picture, and taking the color in the target picture as the identification data of the current video frame.
5. The BIOS parameter modification method of claim 2, further comprising:
if the restart identifier of the ith group of identification codes is valid, controlling the BIOS system to restart;
and after the BIOS system is restarted, determining a video frame corresponding to the i +1 th group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to the target identification data, the target identification type, the target identification area, the restart identification and the key code of the i +1 th group of identification codes.
6. The BIOS parameter modification method of claim 1, further comprising:
determining target identification data of each BIOS interface in advance according to a preset target identification type and/or a preset target identification area corresponding to each BIOS interface;
and determining a corresponding group of identification codes according to the target identification data of each BIOS interface, the corresponding preset target identification type and the preset target identification area.
7. The method of claim 6, wherein the determining the target identification data of each BIOS interface according to the preset target identification type and/or the preset target identification area corresponding to each BIOS interface comprises:
determining whether a preset target identification type corresponding to the ith BIOS interface is a video frame;
if so, taking the video frame of the ith BIOS interface as the target identification data of the ith BIOS interface;
if the video frame is not the video frame, intercepting a corresponding ith target picture from the video frame of the ith BIOS interface according to a preset target identification area corresponding to the ith BIOS interface;
if the preset target identification type corresponding to the ith BIOS interface is a picture, taking the ith target picture as target identification data of the ith BIOS interface;
if the preset target identification type corresponding to the ith BIOS interface is a character, extracting the character from the ith target picture, and taking the character in the ith target picture as target identification data of the ith BIOS interface;
if the preset target identification type corresponding to the ith BIOS interface is color, extracting color from the ith target picture, and taking the color in the ith target picture as target identification data of the ith BIOS interface.
8. A BIOS parameter modification apparatus, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an identification code set, the identification code set comprises at least one group of identification codes, and each group of identification codes comprises target identification data, a target identification type, a target identification area, a restart identification and a key code;
the determining module is used for determining a video frame corresponding to the ith group of identification codes from a plurality of video frames corresponding to a plurality of BIOS interfaces according to the target identification data, the target identification type, the target identification area, the restart identification and the key code of the ith group of identification codes, wherein I is more than or equal to 1 and less than or equal to I, and I is the total number of the identification codes in the identification code set;
and the modification module is used for modifying the BIOS parameters by utilizing the video frame corresponding to the ith group of identification codes.
9. A BIOS parameter modification tool comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the BIOS parameter modification method of any one of claims 1to 7.
10. A readable storage medium storing a computer program which, when run on a processor, performs the BIOS parameter modification method of any one of claims 1to 7.
CN202110913077.8A 2021-08-10 2021-08-10 BIOS parameter modification method, device, tool and readable storage medium Pending CN113608793A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110913077.8A CN113608793A (en) 2021-08-10 2021-08-10 BIOS parameter modification method, device, tool and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110913077.8A CN113608793A (en) 2021-08-10 2021-08-10 BIOS parameter modification method, device, tool and readable storage medium

Publications (1)

Publication Number Publication Date
CN113608793A true CN113608793A (en) 2021-11-05

Family

ID=78307931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110913077.8A Pending CN113608793A (en) 2021-08-10 2021-08-10 BIOS parameter modification method, device, tool and readable storage medium

Country Status (1)

Country Link
CN (1) CN113608793A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040190773A1 (en) * 2003-03-31 2004-09-30 American Megatrends, Inc. Method, apparatus, and computer-readable medium for identifying character coordinates
CN102880479A (en) * 2011-07-15 2013-01-16 联想(北京)有限公司 Method and device for remotely modifying basic input output system (BIOS) attribute parameters
CN107220057A (en) * 2017-06-01 2017-09-29 郑州云海信息技术有限公司 The method that BIOS based on Linux is extracted, changes and imported
CN107509072A (en) * 2017-08-30 2017-12-22 四川长虹电器股份有限公司 A kind of automated testing method of automatic Memory test path
CN110795019A (en) * 2019-10-23 2020-02-14 腾讯科技(深圳)有限公司 Key identification method and device of soft keyboard and storage medium
WO2020034850A1 (en) * 2018-08-16 2020-02-20 腾讯科技(深圳)有限公司 Identification method for identification code, device, computer apparatus, and storage medium
CN112463150A (en) * 2020-10-16 2021-03-09 苏州浪潮智能科技有限公司 Method, device and equipment for adjusting font and background color and readable medium
CN113220511A (en) * 2020-02-06 2021-08-06 伊姆西Ip控股有限责任公司 Method, apparatus and computer-readable storage medium for testing BIOS

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040190773A1 (en) * 2003-03-31 2004-09-30 American Megatrends, Inc. Method, apparatus, and computer-readable medium for identifying character coordinates
CN102880479A (en) * 2011-07-15 2013-01-16 联想(北京)有限公司 Method and device for remotely modifying basic input output system (BIOS) attribute parameters
CN107220057A (en) * 2017-06-01 2017-09-29 郑州云海信息技术有限公司 The method that BIOS based on Linux is extracted, changes and imported
CN107509072A (en) * 2017-08-30 2017-12-22 四川长虹电器股份有限公司 A kind of automated testing method of automatic Memory test path
WO2020034850A1 (en) * 2018-08-16 2020-02-20 腾讯科技(深圳)有限公司 Identification method for identification code, device, computer apparatus, and storage medium
CN110795019A (en) * 2019-10-23 2020-02-14 腾讯科技(深圳)有限公司 Key identification method and device of soft keyboard and storage medium
CN113220511A (en) * 2020-02-06 2021-08-06 伊姆西Ip控股有限责任公司 Method, apparatus and computer-readable storage medium for testing BIOS
CN112463150A (en) * 2020-10-16 2021-03-09 苏州浪潮智能科技有限公司 Method, device and equipment for adjusting font and background color and readable medium

Similar Documents

Publication Publication Date Title
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN108845930B (en) Interface operation test method and device, storage medium and electronic device
US20120297178A1 (en) Configuration mode switching system and method
CN114003538A (en) Intelligent network card and identification method thereof
CN109766139B (en) Configuration method and device of configuration file
CN110908880A (en) Embedded point code injection method, event reporting method and related equipment thereof
CN108520063B (en) Event log processing method and device and terminal equipment
CN111381895A (en) Identification information setting method, device, equipment and computer readable storage medium
CN112181419B (en) Interface generation method and device and storage medium
CN113521758A (en) Information interaction method and device, electronic equipment and storage medium
CN113626276A (en) Method, system, terminal and storage medium for identifying HBA card model of server
CN113608793A (en) BIOS parameter modification method, device, tool and readable storage medium
CN113190279A (en) Pre-boot function control method, system and medium
CN115913913B (en) Network card pre-starting execution environment function fault positioning method and device
CN116775413A (en) PCIE topology scanning method, device, equipment and readable storage medium
CN116028125A (en) Remote control startup display mode setting method, system, terminal and storage medium
CN115878327A (en) Bus reservation method, device, server, electronic equipment and storage medium
US20060015776A1 (en) Built-in computer power-on memory test method
CN114253781A (en) Test method, device, equipment and storage medium
CN114185720A (en) Method, device, equipment and storage medium for server dynamic hot backup
CN113849267A (en) Virtual display method, system, terminal and storage medium for display card
CN111274507B (en) Method, device and equipment for browsing webpage content and storage medium
CN109840213B (en) Test data creating method, device, terminal and storage medium for GUI test
CN100517251C (en) Test system and method
CN113064617B (en) Method, system and storage medium for updating SMBIOS information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination