CN112306574B - Configuration method and device - Google Patents

Configuration method and device Download PDF

Info

Publication number
CN112306574B
CN112306574B CN202011191421.9A CN202011191421A CN112306574B CN 112306574 B CN112306574 B CN 112306574B CN 202011191421 A CN202011191421 A CN 202011191421A CN 112306574 B CN112306574 B CN 112306574B
Authority
CN
China
Prior art keywords
configuration
target
configuration parameter
requirement
default
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.)
Active
Application number
CN202011191421.9A
Other languages
Chinese (zh)
Other versions
CN112306574A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011191421.9A priority Critical patent/CN112306574B/en
Publication of CN112306574A publication Critical patent/CN112306574A/en
Application granted granted Critical
Publication of CN112306574B publication Critical patent/CN112306574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a configuration method and a configuration device, which are used for acquiring configuration requirements for electronic equipment and determining target configuration parameters matched with the configuration requirements in the process of carrying out initialization configuration on a basic input output system; if the target configuration parameters are the same as the default configuration parameters, the electronic equipment is maintained to configure the default configuration parameters, if the target configuration parameters are different from the default configuration parameters, the configuration parameters of the electronic equipment are modified from the default configuration parameters to the target configuration parameters, the electronic equipment is configured based on the target configuration parameters, so that the configuration of the electronic equipment can be controlled based on the relation between the target configuration parameters matched with the configuration requirements and the default configuration parameters, the target configuration parameters matched with different configuration requirements may be different, for different configuration requirements, the configuration parameters of hardware in the electronic equipment can be adjusted based on the matched target configuration parameters, the same hardware adapts to different configuration requirements, and the number of produced hardware and the management of ex-warehouse and in-warehouse conditions of the hardware are reduced.

Description

Configuration method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a configuration method and apparatus.
Background
At present, the configuration requirements of different countries on the same hardware are different, for example, for a computer and a server, the ambient temperatures of different countries and regions affect the operation of fans in the computer and the server, and if the ambient temperature is higher, the rotating speed required by the fan is higher, and otherwise, the rotating speed required by the fan is reduced if the ambient temperature is lower. The hardware with the matched configuration parameters and the matched configuration requirements is produced according to the configuration requirements of different countries on the hardware, so that the hardware with the matched configuration parameters and the matched configuration requirements is generated according to each configuration requirement on the same hardware, and the ex-warehouse and in-warehouse conditions of the hardware with different configuration parameters are managed.
Disclosure of Invention
The application provides a configuration method and a device, and the technical scheme is as follows:
in one aspect, the present application provides a configuration method, including:
acquiring configuration requirements aiming at electronic equipment, wherein the electronic equipment is configured with default configuration parameters;
determining target configuration parameters matched with the configuration requirements in the process of carrying out initialization configuration on the basic input and output system;
if the target configuration parameter is the same as the default configuration parameter, maintaining the electronic equipment to configure the default configuration parameter;
and if the target configuration parameter is different from the default configuration parameter, modifying the configuration parameter of the electronic equipment from the default configuration parameter to the target configuration parameter, and configuring the electronic equipment based on the target configuration parameter.
Optionally, the configuration requirement indicates at least a usage area of the electronic device and an environmental requirement of the usage area;
in the process of initial configuration of the basic input output system, determining the target configuration parameters matched with the configuration requirements includes: in the process of initial configuration of a basic input and output system, determining a target component influenced by the configuration requirement in the electronic equipment, and acquiring target configuration parameters matched with the configuration requirement for the target component from a preset configuration relation.
Optionally, the configuration requirements at least include: at least one of a use area, a temperature requirement of the use area, a picture requirement of the use area, a sound requirement of the use area, and an efficiency requirement of the use area;
in the process of initial configuration of the basic input output system, determining the target configuration parameters matched with the configuration requirements includes:
in the process of initial configuration of the basic input and output system, the field values of the configuration fields corresponding to the use area, the temperature requirement of the use area, the picture requirement of the use area, the sound requirement of the use area and the efficiency requirement of the use area are obtained from the preset configuration relationship, and the target configuration parameters are obtained based on the field values.
Optionally, the method further includes: if the target configuration parameters are different from the default configuration parameters, the target configuration parameters are stored in a first storage space of the electronic device, the default configuration parameters are stored in a second storage space of the electronic device, and the electronic device has more paths for accessing the second storage space than the first storage space.
Optionally, the target configuration parameter is recorded in a description string specified by the original equipment manufacturer.
In another aspect, the present application provides a configuration apparatus comprising:
the device comprises an acquisition unit, a configuration unit and a configuration unit, wherein the acquisition unit is used for acquiring configuration requirements for electronic equipment, and the electronic equipment is configured with default configuration parameters;
the determining unit is used for determining a target configuration parameter matched with the configuration requirement in the process of carrying out initialization configuration on the basic input and output system;
a configuration unit, configured to maintain the electronic device to configure the default configuration parameter if the target configuration parameter is the same as the default configuration parameter, and configured to modify the configuration parameter of the electronic device from the default configuration parameter to the target configuration parameter if the target configuration parameter is different from the default configuration parameter, and configure the electronic device based on the target configuration parameter.
Optionally, the configuration requirement indicates at least a usage area of the electronic device and an environmental requirement of the usage area; the determining unit is configured to determine a target component affected by the configuration requirement in the electronic device during an initial configuration process of the basic input/output system, and acquire a target configuration parameter matching the configuration requirement for the target component from a preset configuration relationship;
or
The configuration requirements include at least: at least one of a use area, a temperature requirement of the use area, a picture requirement of the use area, a sound requirement of the use area, and an efficiency requirement of the use area; the determining unit is configured to, during an initial configuration process of the bios, obtain field values of configuration fields corresponding to the usage area, a temperature requirement of the usage area, a picture requirement of the usage area, a sound requirement of the usage area, and an efficiency requirement of the usage area from a preset configuration relationship, and obtain the target configuration parameter based on the field values.
Optionally, the method further includes: the storage unit is used for storing the target configuration parameters in a first storage space of the electronic device if the target configuration parameters are different from the default configuration parameters, storing the default configuration parameters in a second storage space of the electronic device, and enabling the electronic device to have more paths for accessing the second storage space than the first storage space.
Optionally, the target configuration parameter is recorded in a description string specified by the original equipment manufacturer.
In yet another aspect, the present application provides an electronic device, comprising:
the processor is used for acquiring a configuration requirement aiming at the electronic equipment, the electronic equipment is configured with default configuration parameters, and a target configuration parameter matched with the configuration requirement is determined in the process of carrying out initialization configuration on the basic input output system; if the target configuration parameter is the same as the default configuration parameter, maintaining the electronic equipment to configure the default configuration parameter; if the target configuration parameter is different from the default configuration parameter, modifying the configuration parameter of the electronic equipment from the default configuration parameter to the target configuration parameter, and configuring the electronic equipment based on the target configuration parameter;
a memory for storing the target configuration parameters and the default configuration parameters.
In another aspect, the present application provides a storage medium having a program code stored thereon, where the program code implements the configuration method when running.
According to the configuration method and the configuration device, the configuration requirement for the electronic equipment is obtained, the electronic equipment is configured with the default configuration parameters, and the target configuration parameters matched with the configuration requirement are determined in the process of initial configuration of the basic input and output system; if the target configuration parameter is the same as the default configuration parameter, the electronic equipment is maintained to configure the default configuration parameter, if the target configuration parameter is different from the default configuration parameter, the configuration parameter of the electronic equipment is modified from the default configuration parameter to the target configuration parameter, and the electronic equipment is configured based on the target configuration parameter, so that the configuration of the electronic equipment can be controlled based on the relation between the target configuration parameter matched with the configuration requirement of the electronic equipment and the default configuration parameter, the configuration parameter of hardware in the electronic equipment is adjusted according to different configuration requirements, and the configuration parameter of the hardware in the electronic equipment is dynamically adjusted based on the relation between the target configuration parameter and the default configuration parameter. The target configuration parameters matched with different configuration requirements may be different, and for different configuration requirements, the configuration parameters of the hardware in the electronic device may be adjusted based on the matched target configuration parameters, so that the same hardware adapts to different configuration requirements, the number of produced hardware is reduced, and as the number of produced hardware is reduced, the management of the ex-warehouse and in-warehouse conditions of the hardware is also reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a configuration method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a preset configuration relationship provided in an embodiment of the present application;
FIG. 3 is a flow chart of another configuration method provided by embodiments of the present application;
FIG. 4 is a schematic structural diagram of a configuration device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another configuration device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an optional flow of a configuration method provided in an embodiment of the present application is shown, which may include the following steps:
101: configuration requirements for an electronic device are determined, wherein the electronic device is configured with default configuration parameters. The default configuration parameter is a default parameter configured for the electronic device in a factory configuration process of the electronic device, for example, a default parameter configured for at least one of hardware, an operating system, and software in the electronic device in a factory configuration process.
For any configuration object in hardware, an operating system and software in the electronic device, a configuration field corresponding to the configuration object and a field value of the configuration field are set in the default configuration parameter, so that the configuration object is configured in a factory process of the electronic device through the configuration field and the field value of the configuration field in the default configuration parameter. The configuration field may include: at least one of the operating parameters of the configuration object and the starting conditions of the configuration object, for example, the configuration field may include: at least one of temperature, resolution, language, frequency, refresh rate, run time, etc., the configuration fields may differ for different configuration objects. For example, for a hardware such as a fan, when the temperature of the electronic device is higher than a preset temperature, the fan is started to dissipate heat, and the rotation speed of the fan can also be configured, where the corresponding rotation speed is an operating parameter of the fan, and the temperature higher than the preset temperature is a starting condition of the fan. For the operating system, the language, resolution, refresh rate, and the like may be set in the configuration field, and the embodiment is not limited in this respect.
The configuration requirement is a condition for indicating a configuration parameter of the electronic device during a use process of the electronic device, for example, as a use area of the electronic device changes, the configuration requirement of the electronic device may also change, so that the configuration parameter of the electronic device also needs to change along with the change of the configuration requirement, where the use area of the electronic device is used for indicating a current geographic location of the electronic device. For example, the usage area of the electronic device indicates that the electronic device is located in china or abroad (e.g., in the european and american countries), and the languages in china and foreign countries are different, so that when the usage area of the electronic device is changed from one of china and foreign countries to another, the languages used by the electronic device also need to be changed accordingly. Similarly, the usage environment of the electronic device may also change when the electronic device is used in different usage areas, for example, in the north of china and the south of china, the temperature and the humidity may also change, and similarly, the configuration parameters may also be controlled to change when the usage environment of the electronic device changes, so that in order to automatically adjust the configuration parameters of the electronic device, the present embodiment may obtain the configuration requirements for the electronic device, and dynamically adjust the configuration parameters of the electronic device according to the change of the configuration requirements.
102: and determining target configuration parameters matched with the configuration requirements in the process of carrying out initialization configuration on the basic input output system. That is, the target configuration parameter is a configuration parameter that matches the configuration requirement and is used for indicating the current use of the electronic device, so as to dynamically adjust the configuration parameter of the electronic device through the change of the configuration requirement.
Wherein, the target configuration parameter is provided with a configuration field corresponding to the configuration object and a field value of the configuration field, so as to adjust the configuration of the configuration object through the configuration field in the target configuration parameter and the field value of the configuration field, and the configuration field may include: at least one of the operating parameters of the configuration object and the starting conditions of the configuration object, for example, the configuration field may include: at least one of temperature, resolution, language, frequency, refresh rate, run time, etc., the configuration fields may differ for different configuration objects.
In this embodiment, the target configuration parameter may be, but is not limited to, adjusting at least one configuration field of the configuration object to match a field value of the configuration field with the configuration requirement, for example, the target configuration parameter is adjusting a configuration field-language to change the language from chinese to english. The process of determining the target configuration parameters that match the configuration requirements may be, but is not limited to, the following:
a method for determining target configuration parameters and determining a current use area of an electronic device, for example, a geographic location of the electronic device is used as the current use area of the electronic device, and the geographic location of the electronic device can be obtained by any one of, but not limited to, a positioning sensor and a positioning system; in the process of initial configuration of a Basic Input Output System (BIOS), a target configuration parameter matching a current usage area is determined from historical configuration parameters based on the current usage area of an electronic device, where the historical configuration parameters are configuration parameters that have been used by the electronic device, and each configuration parameter matching the current usage area can be screened from a data source (such as a big data platform), and the target configuration parameter is determined based on each configuration parameter matching the current usage area. For example, if the configuration parameters matched with the current use area are the same, the configuration parameters matched with the current use area are used as target configuration parameters; and if the configuration parameters matched with the current use area have difference, determining the target configuration parameters based on the difference.
If the difference includes, but is not limited to, at least one of a configuration field in each configuration parameter and a field value of the configuration field being different, for the difference in the configuration fields, a first method may be adopted, a common configuration field in each configuration parameter is selected, a target configuration parameter is determined by the common configuration field and the field value of the common configuration field, for example, the common configuration field is used as the configuration field in the target configuration parameter, the field values of the common configuration field are used as the field values of the configuration field by means of an average value, the field values of the same value are selected, and the field values with a ratio larger than a preset ratio are used as the field values of the configuration field, the preset ratio is used for selecting the field values representing most configuration situations, and the embodiment is not limited to the specific value of the preset ratio. And determining all configuration fields from the configuration parameters, determining a field value by means of the first mode for the common configuration field, and determining a field value by means of the second mode for the different configuration fields, wherein for each configuration parameter, different configuration fields may exist in part of the configuration parameters of all the configuration parameters, and in the process of determining the target configuration parameter, selecting according to the occupation ratios of the different configuration fields, for example, using the configuration field with the occupation ratio larger than the preset occupation ratio as the configuration field in the target configuration parameter, and the preset occupation ratio is similar to the preset proportion, which is not described in detail herein.
Another way of determining the target configuration parameters, where the configuration requirements indicate at least a usage area of the electronic device and environmental requirements of the usage area, and correspondingly determining the target configuration parameters matching the configuration requirements includes: in the process of carrying out initialization configuration on the basic input and output system, a target component influenced by configuration requirements in the electronic equipment is determined, and target configuration parameters matched with the configuration requirements and aiming at the target component are obtained from a preset configuration relation.
That is to say, configuration parameters matching configuration requirements of components in the electronic device (the components are used to form the electronic device) are preset in the preset configuration relationship, after the configuration requirements of the electronic device are currently obtained, in an initialization configuration process of the basic input output system, a target component affected by the configuration requirements is determined from all components of the electronic device based on the current configuration requirements, target configuration parameters matching the current configuration requirements are screened from the preset configuration relationship, and the target configuration parameters correspond to the target component to control the configuration of the target component.
As shown in fig. 2, the BIOS corresponds to a preset configuration relationship, such as a Service type code (Service type code) in fig. 2, a country region code and a working temperature code are recorded in the Service type code shown in fig. 2, a language is defined by a configuration field of the country region code, a starting condition of the fan is defined by the working temperature code, that is, the starting condition of the fan is affected by a temperature in the configuration requirement, if the temperature requirement exists in the configuration requirement, the fan in the electronic device is a target component affected by the configuration requirement, and default in the Service type code shown in fig. 2 is represented by default, that is, a default field value in a default configuration parameter in a factory configuration process, so that it can not only be determined whether the target configuration parameter is the same as the default configuration parameter.
And determining a target configuration parameter matched with the configuration requirement in the initial configuration process in the BIOS starting process so as to configure the configuration parameter of the electronic equipment in the starting process. Fig. 2 is only an example, and in practical applications, the preset configuration relationship may be adjusted, for example, the configuration requirements at least include: at least one of the usage area, the temperature requirement of the usage area, the picture requirement of the usage area, the sound requirement of the usage area, and the efficiency requirement of the usage area, the corresponding preset configuration relationship may adjust the configuration parameters based on various requirements included in the configuration requirements, and the adjustment process and which configuration field in the configuration parameters are adjusted, which is not described in this embodiment.
In this embodiment, if the configuration requirement at least includes: at least one of a use area, a temperature requirement of the use area, a picture requirement of the use area, a sound requirement of the use area, and an efficiency requirement of the use area. The corresponding determining of the target configuration parameters matching the configuration requirements includes: in the process of initial configuration of the basic input and output system, the field values of configuration fields corresponding to a use area, a temperature requirement of the use area, a picture requirement of the use area, a sound requirement of the use area and an efficiency requirement of the use area are obtained from a preset configuration relation, and target configuration parameters are obtained based on the field values.
For example, the picture requirement is used for indicating at least one of the resolution, the interface size and the interface position of the electronic equipment, and field values corresponding to the resolution, the interface size and the interface position can be determined from a preset configuration relation based on the picture requirement, which indicates that a target component required by the picture in the electronic equipment is at least a display screen of the electronic equipment; the sound requirement is used for indicating the language used by the electronic equipment, and then the language type can be determined from the preset configuration relation based on the sound requirement, so that the target component required by the picture in the electronic equipment is at least a playing component of the electronic equipment, such as a loudspeaker. The efficiency requirement may be used to indicate a refresh rate of the electronic device, and the refresh rate may also be determined from a preset configuration relationship based on the efficiency requirement, which is not described herein one by one, and of course, the configuration requirement in this embodiment is not limited to the above requirements and the above requirements are not limited to the above contents, and this embodiment is also not described one by one.
103: and if the target configuration parameter is the same as the default configuration parameter, maintaining the electronic equipment to configure the default configuration parameter. If the target configuration parameter is the same as the default configuration parameter, the default configuration parameter of the electronic device is still valid, and in this case, the electronic device continues to adopt the default configuration parameter for configuration.
The target configuration parameter is the same as the default configuration parameter, which indicates that the field values of the configuration fields in the two configuration parameters are the same, and the target configuration parameter can be determined by comparing the target configuration parameter with each configuration field in the default configuration parameter.
104: and if the target configuration parameters are different from the default configuration parameters, modifying the configuration parameters of the electronic equipment from the default configuration parameters to the target configuration parameters, and configuring the electronic equipment based on the target configuration parameters.
If the target configuration parameter is different from the default configuration parameter, it is determined that the default configuration parameter of the electronic device is changed from valid to invalid, and in this case, if the electronic device continues to use the default configuration parameter for configuration, a problem may occur in operation of the electronic device, such as an excessively high temperature of the electronic device, and therefore, if the target configuration parameter is different from the default configuration parameter, the target configuration parameter is used to replace the default configuration parameter, and the configuration of the electronic device is adjusted based on the target configuration parameter, so that the configuration object in the electronic device is configured with reference to the configuration field indicated in the target configuration parameter, for example, for a fan of the electronic device, the configuration field related to the fan in the target configuration parameter is used for configuration.
The difference between the target configuration parameter and the default configuration parameter indicates that at least one of the configuration fields of the two configuration parameters and the field values of the configuration fields are different, and the difference can also be determined by comparing the target configuration parameter with each configuration field of the default configuration parameter.
The configuration method comprises the steps of obtaining configuration requirements aiming at the electronic equipment, configuring default configuration parameters for the electronic equipment, and determining target configuration parameters matched with the configuration requirements in the process of carrying out initialization configuration on the basic input and output system; if the target configuration parameter is the same as the default configuration parameter, the electronic equipment is maintained to configure the default configuration parameter, if the target configuration parameter is different from the default configuration parameter, the configuration parameter of the electronic equipment is modified from the default configuration parameter to the target configuration parameter, and the electronic equipment is configured based on the target configuration parameter, so that the configuration of the electronic equipment can be controlled based on the relation between the target configuration parameter matched with the configuration requirement of the electronic equipment and the default configuration parameter, the configuration parameter of hardware in the electronic equipment is adjusted according to different configuration requirements, and the configuration parameter of the hardware in the electronic equipment is dynamically adjusted based on the relation between the target configuration parameter and the default configuration parameter. The target configuration parameters matched with different configuration requirements may be different, and for different configuration requirements, the configuration parameters of the hardware in the electronic device may be adjusted based on the matched target configuration parameters, so that the same hardware adapts to different configuration requirements, the number of produced hardware is reduced, and as the number of produced hardware is reduced, the management of the ex-warehouse and in-warehouse conditions of the hardware is also reduced.
Referring to fig. 3, which shows an optional flow of another configuration method provided in an embodiment of the present application, on the basis of fig. 1, the method may further include the following steps:
105: if the target configuration parameters are different from the default configuration parameters, the target configuration parameters are stored in a first storage space of the electronic device, the default configuration parameters are stored in a second storage space of the electronic device, and the path of the electronic device capable of accessing the second storage space is larger than the path of the electronic device capable of accessing the first storage space, so that the safety of the target configuration parameters is improved.
For example, a secure area, such as an OSR (oem Security region) area, is set in the storage space of the electronic device, and the OSR area is used as the first storage space to store the target configuration parameters, such as an OSR set in an SPI BIOS ROM of the electronic device, where SPI is short for Serial Peripheral Interface and ROM is short for Read-Only Memory.
The configuration for the electronic device may be performed in an initialization configuration process, and some configuration parameters may be flushed in the initialization configuration process, for example, some configuration parameters may be flushed in the initialization configuration process of the BIOS, and if the target configuration parameters are flushed, a problem of configuration error may occur.
In addition, after the target configuration parameters are determined once, the target configuration parameters may change along with the change of the configuration requirements, and the target configuration parameters need to be determined again from the preset configuration relationships after the configuration requirements change, so that the preset configuration relationships can be stored in the first storage space, and the possibility that the preset configuration relationships are flushed is effectively reduced. And because the target configuration parameter is but not limited to be determined from the preset configuration relationship, the present embodiment may replace the stored target configuration parameter by storing the preset configuration relationship, so that the target configuration parameter can be stored and the storage space can be saved.
For the above embodiments, the target configuration parameters may be recorded in an OEM (Original Equipment Manufacturer) specified description character, where the OEM specified description character is SMBIOS Type11, and 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, and is used to store the target configuration parameters in a field of SMBIOS Type11, and stored in String9 of SMBIOS Type11 in the manner of table 1 below.
Table 1 a storage method of target configuration parameters
SMBIOS Type11 String 9 Default=”INVALID” Target configuration parameters
Similarly, since the target configuration parameter is, but not limited to, determined from the preset configuration relationship, the present embodiment may replace the stored target configuration parameter by storing the preset configuration relationship in String9, as shown in table 2:
table 2 a storage method of preset configuration relationship
SMBIOS Type11 String 9 Default=”INVALID” Service Type code
INVALID in the above tables 1 and 2 indicates that the initial value is null, and Service Type code indicates a preset configuration relationship. If the preset configuration relationship is stored in the first storage space, the storage of the preset configuration relationship in the first storage space is shown in table 3:
TABLE 3 storage schematic of preset configuration relations in the first storage space
Figure BDA0002752859160000101
According to the configuration method, if the target configuration parameters are different from the default configuration parameters, the target configuration parameters are stored in the first storage space of the electronic equipment, the default configuration parameters are stored in the second storage space of the electronic equipment, and the path of the electronic equipment, which can access the second storage space, is larger than the path of the electronic equipment, which can access the first storage space, so that the safety of the target configuration parameters is improved.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Corresponding to the above method embodiment, an embodiment of the present application further provides a configuration apparatus, an optional structure of which is shown in fig. 4, and may include: an acquisition unit 10, a determination unit 20 and a configuration unit 30.
An obtaining unit 10, configured to obtain a configuration requirement for an electronic device, where the electronic device is configured with default configuration parameters. The default configuration parameter is a default parameter configured for the electronic device in a factory configuration process of the electronic device, for example, a default parameter configured for at least one of hardware, an operating system, and software in the electronic device in a factory configuration process, and for a description of the default configuration parameter, refer to the above method embodiment.
The configuration requirement is a condition for indicating a configuration parameter of the electronic device during a use process of the electronic device, for example, as a use area of the electronic device changes, the configuration requirement of the electronic device may also change, so that the configuration parameter of the electronic device also needs to change along with the change of the configuration requirement, where the use area of the electronic device is used for indicating a current geographical location of the electronic device. For example, the usage area of the electronic device indicates that the electronic device is located in china or abroad (e.g., european and american countries), and languages in china and abroad are different, so that when the usage area of the electronic device is changed from one of china and foreign countries to another, the language used by the electronic device needs to be changed accordingly. Similarly, the usage environment of the electronic device may also change when the electronic device is used in different usage areas, for example, in the north of china and the south of china, the temperature and the humidity may also change, and similarly, the configuration parameters may also be controlled to change when the usage environment of the electronic device changes, so that in order to automatically adjust the configuration parameters of the electronic device, the present embodiment may obtain the configuration requirements for the electronic device, and dynamically adjust the configuration parameters of the electronic device according to the change of the configuration requirements.
The determining unit 20 is configured to determine a target configuration parameter matching the configuration requirement during an initial configuration process of the bios. That is, the target configuration parameter is a configuration parameter that matches the configuration requirement and is used for indicating the current use of the electronic device, so as to dynamically adjust the configuration parameter of the electronic device through the change of the configuration requirement.
Wherein, the target configuration parameter is provided with a configuration field corresponding to the configuration object and a field value of the configuration field, so as to adjust the configuration of the configuration object through the configuration field in the target configuration parameter and the field value of the configuration field, and the configuration field may include: at least one of the operating parameters of the configuration object and the starting conditions of the configuration object, for example, the configuration field may include: at least one of temperature, resolution, language, frequency, refresh rate, run time, etc., the configuration fields may differ for different configuration objects.
In this embodiment, the manner in which the determining unit 20 determines the target configuration parameters includes, but is not limited to, the following manners:
the configuration requirements indicate at least a usage area of the electronic device and environmental requirements of the usage area; the determining unit 30 is configured to determine a target component in the electronic device that is subjected to a configuration request during an initial configuration process of the basic input/output system, and obtain a target configuration parameter, which is matched with the configuration request, for the target component from a preset configuration relationship;
or
The configuration requirements include at least: at least one of a use area, a temperature requirement of the use area, a picture requirement of the use area, a sound requirement of the use area, and an efficiency requirement of the use area; the determining unit 30 is configured to, during an initial configuration process of the bios, obtain field values of configuration fields corresponding to a use area, a temperature requirement of the use area, a picture requirement of the use area, a sound requirement of the use area, and an efficiency requirement of the use area from a preset configuration relationship, and obtain target configuration parameters based on the field values.
For the above process of determining the target configuration parameters and other ways of determining the target configuration parameters, please refer to the above method embodiments, which are not described in detail herein.
The configuration unit 30 is configured to maintain the electronic device to configure the default configuration parameter if the target configuration parameter is the same as the default configuration parameter, and modify the configuration parameter of the electronic device from the default configuration parameter to the target configuration parameter if the target configuration parameter is different from the default configuration parameter, and configure the electronic device based on the target configuration parameter.
If the target configuration parameter is the same as the default configuration parameter, the default configuration parameter of the electronic device is still valid, and in this case, the electronic device continues to adopt the default configuration parameter for configuration. If the target configuration parameter is different from the default configuration parameter, it is determined that the default configuration parameter of the electronic device is changed from valid to invalid, and in this case, if the electronic device continues to use the default configuration parameter for configuration, a problem may occur in operation of the electronic device, such as an excessively high temperature of the electronic device, and therefore, if the target configuration parameter is different from the default configuration parameter, the target configuration parameter is used to replace the default configuration parameter, and the configuration of the electronic device is adjusted based on the target configuration parameter, so that the configuration object in the electronic device is configured with reference to the configuration field indicated in the target configuration parameter, for example, for a fan of the electronic device, the configuration field related to the fan in the target configuration parameter is used for configuration.
The target configuration parameter is the same as the default configuration parameter, which indicates that the field values of the configuration fields and the configuration fields in the two configuration parameters are the same, the target configuration parameter is different from the default configuration parameter, which indicates that at least one of the field values of the configuration fields and the configuration fields in the two configuration parameters is different, and whether the target configuration parameter is the same as the default configuration parameter can be determined by comparing the target configuration parameter with each configuration field in the default configuration parameter.
The configuration device acquires a configuration requirement for the electronic equipment, the electronic equipment is configured with default configuration parameters, and a target configuration parameter matched with the configuration requirement is determined in the process of initial configuration of the basic input and output system; if the target configuration parameter is the same as the default configuration parameter, the electronic equipment is maintained to configure the default configuration parameter, if the target configuration parameter is different from the default configuration parameter, the configuration parameter of the electronic equipment is modified from the default configuration parameter to the target configuration parameter, and the electronic equipment is configured based on the target configuration parameter, so that the configuration of the electronic equipment can be controlled based on the relation between the target configuration parameter matched with the configuration requirement of the electronic equipment and the default configuration parameter, the configuration parameter of hardware in the electronic equipment is adjusted according to different configuration requirements, and the configuration parameter of the hardware in the electronic equipment is dynamically adjusted based on the relation between the target configuration parameter and the default configuration parameter. The target configuration parameters matched with different configuration requirements may be different, and for different configuration requirements, the configuration parameters of the hardware in the electronic device may be adjusted based on the matched target configuration parameters, so that the same hardware adapts to different configuration requirements, the number of produced hardware is reduced, and as the number of produced hardware is reduced, the management of the ex-warehouse and in-warehouse conditions of the hardware is also reduced.
Please refer to fig. 5, which shows an alternative structure of another configuration apparatus provided in the embodiment of the present application, and may further include: the storage unit 40 is configured to store the target configuration parameter in a first storage space of the electronic device if the target configuration parameter is different from the default configuration parameter, store the default configuration parameter in a second storage space of the electronic device, and enable the electronic device to access the second storage space more than the first storage space, so as to improve security of the target configuration parameter.
For example, a secure area, such as an OSR (oem Security region) area, is set in the storage space of the electronic device, and the OSR area is used as the first storage space to store the target configuration parameters, such as an OSR set in an SPI BIOS ROM of the electronic device, where SPI is short for Serial Peripheral Interface and ROM is short for Read-Only Memory.
The target configuration parameters are recorded in an OEM-specified description string, where the OEM-specified description character is SMBIOS Type11, and for storing the target configuration parameters and the preset configuration relationship, refer to the above method embodiment.
An embodiment of the present application further provides an electronic device, including: a processor and a memory.
The processor is used for acquiring a configuration requirement aiming at the electronic equipment, configuring default configuration parameters for the electronic equipment, and determining target configuration parameters matched with the configuration requirement in the process of carrying out initialization configuration on the basic input and output system; if the target configuration parameter is the same as the default configuration parameter, maintaining the electronic equipment to configure the default configuration parameter; if the target configuration parameters are different from the default configuration parameters, the configuration parameters of the electronic equipment are modified from the default configuration parameters to the target configuration parameters, and the electronic equipment is configured based on the target configuration parameters;
and the memory is used for storing the target configuration parameters and the default configuration parameters.
The embodiment of the application also provides a storage medium, wherein the storage medium is stored with a program code, and the configuration method is realized when the program code runs.
It should be noted that, various embodiments in this specification may be described in a progressive manner, and features described in various embodiments in this specification may be replaced with or combined with each other, each embodiment focuses on differences from other embodiments, and similar parts between various embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (8)

1. A method of configuration, comprising:
acquiring a configuration requirement aiming at electronic equipment, wherein the electronic equipment is configured with default configuration parameters;
determining target configuration parameters matched with the configuration requirements in the process of carrying out initialization configuration on the basic input and output system;
if the target configuration parameter is the same as the default configuration parameter, maintaining the electronic equipment to configure the default configuration parameter;
if the target configuration parameter is different from the default configuration parameter, modifying the configuration parameter of the electronic equipment from the default configuration parameter to the target configuration parameter, and configuring the electronic equipment based on the target configuration parameter;
if the target configuration parameters are different from the default configuration parameters, the target configuration parameters are stored in a first storage space of the electronic device, the default configuration parameters are stored in a second storage space of the electronic device, the path of the electronic device capable of accessing the second storage space is larger than the path of the electronic device capable of accessing the first storage space, and the electronic device prohibits accessing the first storage space in the process of initial configuration so as to effectively reduce the possibility that the target configuration parameters are flushed.
2. The method of claim 1, the configuration requirements indicating at least a use area of the electronic device and environmental requirements of the use area;
in the process of initial configuration of the basic input output system, determining the target configuration parameters matched with the configuration requirements includes: in the process of initial configuration of a basic input and output system, a target component affected by the configuration requirement in the electronic equipment is determined, and target configuration parameters matched with the configuration requirement and aiming at the target component are obtained from a preset configuration relation.
3. The method of claim 1 or 2, the configuration requirements comprising at least: at least one of a use area, a temperature requirement of the use area, a picture requirement of the use area, a sound requirement of the use area, and an efficiency requirement of the use area;
in the process of initial configuration of the basic input output system, determining the target configuration parameters matched with the configuration requirements includes:
in the process of initial configuration of the basic input and output system, the field values of the configuration fields corresponding to the use area, the temperature requirement of the use area, the picture requirement of the use area, the sound requirement of the use area and the efficiency requirement of the use area are obtained from the preset configuration relationship, and the target configuration parameters are obtained based on the field values.
4. The method of claim 1, wherein the target configuration parameters are recorded in a description string specified by an original equipment manufacturer.
5. A configuration apparatus, comprising:
the device comprises an acquisition unit, a configuration unit and a configuration unit, wherein the acquisition unit is used for acquiring configuration requirements for electronic equipment, and the electronic equipment is configured with default configuration parameters;
the determining unit is used for determining a target configuration parameter matched with the configuration requirement in the process of carrying out initialization configuration on the basic input and output system;
a configuration unit, configured to maintain the electronic device to configure the default configuration parameter if the target configuration parameter is the same as the default configuration parameter, and configured to modify the configuration parameter of the electronic device from the default configuration parameter to the target configuration parameter if the target configuration parameter is different from the default configuration parameter, and configure the electronic device based on the target configuration parameter;
the storage unit is configured to store the target configuration parameter in a first storage space of the electronic device if the target configuration parameter is different from the default configuration parameter, store the default configuration parameter in a second storage space of the electronic device, where a path through which the electronic device can access the second storage space is greater than a path through which the electronic device can access the first storage space, and prohibit the electronic device from accessing the first storage space in an initialization configuration process, so as to effectively reduce a possibility that the target configuration parameter is flushed.
6. The apparatus of claim 5, the configuration requirements indicating at least a use area of the electronic device and environmental requirements of the use area; the determining unit is configured to determine a target component affected by the configuration requirement in the electronic device during an initial configuration process of the basic input/output system, and acquire a target configuration parameter matching the configuration requirement for the target component from a preset configuration relationship;
or
The configuration requirements include at least: at least one of a use area, a temperature requirement of the use area, a picture requirement of the use area, a sound requirement of the use area, and an efficiency requirement of the use area; the determining unit is configured to, during an initial configuration process of the bios, obtain field values of configuration fields corresponding to the usage area, a temperature requirement of the usage area, a picture requirement of the usage area, a sound requirement of the usage area, and an efficiency requirement of the usage area from a preset configuration relationship, and obtain the target configuration parameter based on the field values.
7. The apparatus of claim 5, the target configuration parameters recorded in a description string specified by an original equipment manufacturer.
8. An electronic device, comprising:
the processor is used for acquiring a configuration requirement aiming at the electronic equipment, the electronic equipment is configured with default configuration parameters, and a target configuration parameter matched with the configuration requirement is determined in the process of carrying out initialization configuration on the basic input output system; if the target configuration parameter is the same as the default configuration parameter, maintaining the electronic equipment to configure the default configuration parameter; if the target configuration parameter is different from the default configuration parameter, modifying the configuration parameter of the electronic equipment from the default configuration parameter to the target configuration parameter, and configuring the electronic equipment based on the target configuration parameter; if the target configuration parameters are different from the default configuration parameters, storing the target configuration parameters in a first storage space of the electronic equipment, storing the default configuration parameters in a second storage space of the electronic equipment, wherein the path of the electronic equipment, which can access the second storage space, is more than the path of the electronic equipment, which can access the first storage space, and the electronic equipment prohibits accessing the first storage space in the process of initial configuration so as to effectively reduce the possibility that the target configuration parameters are brushed away;
a memory for storing the target configuration parameters and the default configuration parameters.
CN202011191421.9A 2020-10-30 2020-10-30 Configuration method and device Active CN112306574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011191421.9A CN112306574B (en) 2020-10-30 2020-10-30 Configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011191421.9A CN112306574B (en) 2020-10-30 2020-10-30 Configuration method and device

Publications (2)

Publication Number Publication Date
CN112306574A CN112306574A (en) 2021-02-02
CN112306574B true CN112306574B (en) 2022-05-31

Family

ID=74332747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011191421.9A Active CN112306574B (en) 2020-10-30 2020-10-30 Configuration method and device

Country Status (1)

Country Link
CN (1) CN112306574B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938334A (en) * 2021-02-05 2022-08-23 华为技术有限公司 Network management method, device, equipment and computer readable storage medium
CN115080103A (en) * 2021-03-11 2022-09-20 华为技术有限公司 Method for synchronizing software characteristics between devices and electronic device
CN113138649B (en) * 2021-06-22 2021-09-03 深圳市泰科盛自动化系统有限公司 Computer heat abstractor
CN116028107B (en) * 2023-02-28 2023-08-11 广州市高科通信技术股份有限公司 Custom-based device parameter management method, apparatus and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809216A (en) * 2006-02-08 2006-07-26 中国移动通信集团公司 Method of reporting stored configuration parameter information by mobile terminal
CN101385680A (en) * 2007-09-11 2009-03-18 深圳迈瑞生物医疗电子股份有限公司 Monitoring equipment and configuration management method thereof
CN102724657A (en) * 2012-06-19 2012-10-10 惠州Tcl移动通信有限公司 Method and system for automatically configuring mobile terminal parameters of Android system
US20180246735A1 (en) * 2017-02-27 2018-08-30 Fujitsu Limited Information processing apparatus, pld management program and pld management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809216A (en) * 2006-02-08 2006-07-26 中国移动通信集团公司 Method of reporting stored configuration parameter information by mobile terminal
CN101385680A (en) * 2007-09-11 2009-03-18 深圳迈瑞生物医疗电子股份有限公司 Monitoring equipment and configuration management method thereof
CN102724657A (en) * 2012-06-19 2012-10-10 惠州Tcl移动通信有限公司 Method and system for automatically configuring mobile terminal parameters of Android system
US20180246735A1 (en) * 2017-02-27 2018-08-30 Fujitsu Limited Information processing apparatus, pld management program and pld management method

Also Published As

Publication number Publication date
CN112306574A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN112306574B (en) Configuration method and device
US8126859B2 (en) Updating a local version of a file based on a rule
US9489430B2 (en) System and method for identifying applicable third-party applications to associate with a file
WO2019140828A1 (en) Electronic apparatus, method for querying logs in distributed system, and storage medium
US7757227B2 (en) Dynamic multilingual resource support for applications
US20050283606A1 (en) Selecting a boot image
US6907444B2 (en) System and method to automatically obtain a service
JP5531692B2 (en) DEVICE MANAGEMENT DEVICE, DEVICE MANAGEMENT SYSTEM, INFORMATION MANAGEMENT METHOD, INFORMATION MANAGEMENT PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
KR101682738B1 (en) Managed system extensibility
WO2017084451A1 (en) Method and apparatus for identifying malicious software
CN110968356B (en) Method and device for acquiring configuration information
WO2008098017A1 (en) Tailoring an operating system to a computer system
US6826755B1 (en) Systems and methods for switching internet contexts without process shutdown
RU2348062C2 (en) Method and device for dynamic connection/authorisation of pathnames
CA3058061A1 (en) Permission processing method, device, application side device and storage media
JP2009205220A (en) Information retrieval system, method, program and recording medium
US20110016464A1 (en) Information processor, information processing method, and computer-readable storage medium
US20060136892A1 (en) Embedded agent for self-healing software
JP2014021975A (en) Method and server for managing domain-specific toolbar button
US9734160B1 (en) Virtual file system for hosted network sites
WO2020224108A1 (en) Url interception and conversion method, device, and computer apparatus
US6957347B2 (en) Physical device placement assistant
US20090240836A1 (en) Support apparatus, design support method, and design support program
CN108629003B (en) Content loading method and device
CN109522014B (en) Algorithm processing method based on new product development, electronic device and readable storage medium

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
GR01 Patent grant
GR01 Patent grant