Product performance adjusting method and device, electronic equipment and storage medium

文档序号:1921178 发布日期:2021-12-03 浏览:4次 中文

阅读说明:本技术 一种产品性能调整方法、装置、电子设备和存储介质 (Product performance adjusting method and device, electronic equipment and storage medium ) 是由 李琴琴 胡炜 于 2021-08-04 设计创作,主要内容包括:本申请实施例公开了一种产品性能调整方法、装置、电子设备和存储介质;本申请实施例可以接收针对产品的产品性能调整指令;根据产品性能调整指令,分别获取预设共有信息存储库中的第一产品性能配置文件,以及预设私有信息存储库中的第二产品性能配置文件;对第一产品性能配置文件进行解析,得到产品的共有性能调整信息,以及对第二产品性能配置文件进行解析,得到产品的私有性能调整信息;根据共有性能调整信息和私有性能调整信息,对产品的性能进行调整,提高了调整产品性能的效率。(The embodiment of the application discloses a method and a device for adjusting product performance, electronic equipment and a storage medium; the method and the device can receive a product performance adjusting instruction for the product; respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction; analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product; according to the common performance adjustment information and the private performance adjustment information, the performance of the product is adjusted, and the efficiency of adjusting the performance of the product is improved.)

1. A method for adjusting product performance is characterized by comprising the following steps:

receiving a product performance adjusting instruction aiming at a product;

respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction;

analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product;

and adjusting the performance of the product according to the common performance adjustment information and the private performance adjustment information.

2. The method of claim 1, wherein the obtaining a first product performance configuration file in a predetermined common information repository and a second product performance configuration file in a predetermined private information repository according to the product performance adjustment instruction respectively comprises:

acquiring a preset identification sequence;

sequentially identifying the preset common information repository and the preset private information repository according to the preset identification sequence to obtain a first file storage path of the preset common information repository and a second file storage path of the preset private information repository;

and acquiring a first product performance configuration file in the preset common information repository according to the first file storage path, and acquiring a second product performance configuration file in the preset common information repository according to the second file storage path.

3. The method for adjusting product performance according to claim 1, wherein the analyzing the first product performance configuration file to obtain the common performance adjustment information of the product includes:

traversing the first product performance configuration file to obtain at least one common performance configuration parameter in the first product performance configuration file;

screening out a common performance adjustment parameter from the at least one common performance configuration parameter;

and generating the common performance adjustment information according to the common performance adjustment parameters.

4. The product performance tuning method of claim 3, wherein the screening of the at least one common performance configuration parameter for common performance tuning parameters comprises:

matching the at least one common performance configuration parameter with the record information in the preset parameter record table to obtain a matching result;

and determining a common performance adjusting parameter in the common performance configuration parameters according to the matching result.

5. The product performance adjustment method of claim 1, wherein the analyzing the second product performance configuration file to obtain the private performance adjustment information of the product includes:

traversing the second product performance configuration file to obtain at least one private performance configuration parameter in the second product performance configuration file;

screening out a private performance adjustment parameter from the at least one private performance configuration parameter;

and generating the private performance adjusting information according to the private performance adjusting parameters.

6. The product performance adjustment method of claim 1, wherein after the parsing the first product performance configuration file to obtain the common performance adjustment information of the product and the parsing the second product performance configuration file to obtain the private performance adjustment information of the product, the method further comprises:

acquiring a performance information storage path of the product;

determining a performance information loading library of the product according to the performance information storage path;

and storing the common performance adjustment information and the private information adjustment information to the performance information loading library.

7. The method for adjusting product performance according to claim 6, wherein the adjusting the performance of the product according to the common performance adjustment information and the private performance adjustment information includes:

loading the common performance adjustment information and the private information adjustment information from the performance information loading library;

extracting private performance adjustment parameters from the common performance adjustment information, and extracting common performance adjustment parameters from the private information adjustment information;

and adjusting the performance of the product according to the private performance adjustment parameter and the common performance adjustment parameter.

8. A product performance adjusting apparatus, comprising:

the receiving unit is used for receiving a product performance adjusting instruction aiming at a product;

the obtaining unit is used for respectively obtaining a first product performance configuration file in a preset common information storage library and a second product performance configuration file in a preset private information storage library according to the product performance adjusting instruction;

the analysis unit is used for analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product;

and the adjusting unit is used for adjusting the performance of the product according to the common performance adjusting information and the private performance adjusting information.

9. An electronic device comprising a memory and a processor; the memory stores a computer program, and the processor is used for operating the computer program in the memory to execute the product performance adjusting method of any one of claims 1 to 7.

10. A storage medium storing a plurality of computer programs, the computer programs being suitable for being loaded by a processor to execute the product performance adjusting method according to any one of claims 1 to 7.

Technical Field

The application relates to the technical field of communication, in particular to a product performance adjusting method and device, electronic equipment and a storage medium.

Background

Along with the development of information technology, more and more intelligent products bringing convenience to the life of people are emerged, wherein different intelligent products may have different performances. In the process of developing these intelligent products, developers often rely on development systems to develop the intelligent products, for example, rely on android systems to develop the intelligent products, and so on.

However, with the unification of system software, different performances between the smart products need to be isolated in the system through configuration items, and different performances of different smart products can be realized. However, the problem that when some intelligent product needs to modify some performance, developers need to modify configuration items in the system, and then regenerate a product compiling software package according to the modified configuration items, test the product compiling software package, and the like, so as to achieve the purpose of modifying the performance of the intelligent product, which will reduce the efficiency of modifying the performance of the intelligent product.

Disclosure of Invention

The embodiment of the application provides a product performance adjusting method and device, electronic equipment and a storage medium, and can improve efficiency of adjusting product performance.

The embodiment of the application provides a product performance adjusting method, which comprises the following steps:

receiving a product performance adjusting instruction aiming at a product;

respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction;

analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product;

and adjusting the performance of the product according to the common performance adjustment information and the private performance adjustment information.

Correspondingly, this application embodiment still provides a product performance adjusting device, includes:

the receiving unit is used for receiving a product performance adjusting instruction aiming at a product;

the obtaining unit is used for respectively obtaining a first product performance configuration file in a preset common information storage library and a second product performance configuration file in a preset private information storage library according to the product performance adjusting instruction;

the analysis unit is used for analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product;

and the adjusting unit is used for adjusting the performance of the product according to the common performance adjusting information and the private performance adjusting information.

In an embodiment, the obtaining unit includes:

the first acquisition subunit is used for acquiring a preset identification sequence;

the identification subunit is configured to sequentially identify the preset common information repository and the preset private information repository according to the preset identification sequence to obtain a first file storage path of the preset common information repository and a second file storage path of the preset private information repository;

and the second obtaining subunit is configured to obtain, according to the first file storage path, a first product performance configuration file in the preset common information repository, and obtain, according to the second file storage path, a second product performance configuration file in the preset common information repository.

In an embodiment, the parsing unit includes:

the traversal subunit is configured to traverse the first product performance configuration file to obtain at least one common performance configuration parameter in the product performance configuration file;

a screening subunit, configured to screen a common performance adjustment parameter from the at least one common performance configuration parameter;

a generating subunit, configured to generate the common performance adjustment information according to the common performance adjustment parameter.

In one embodiment, the screening subunit includes:

the matching module is used for matching the at least one common performance configuration parameter with the record information in the preset parameter record table to obtain a matching result;

and the determining module is used for determining a common performance adjusting parameter in the common performance configuration parameters according to the matching result.

In an embodiment, the adjusting unit includes:

a loading subunit, configured to load the common performance adjustment information and the private information adjustment information from the performance information loading library;

an extraction subunit, configured to extract a private performance adjustment parameter from the common performance adjustment information, and extract a common performance adjustment parameter from the private information adjustment information;

and the adjusting subunit is used for adjusting the performance of the product according to the private performance adjusting parameter and the common performance adjusting parameter.

Correspondingly, the embodiment of the application also provides an electronic device, which comprises a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory to execute the product performance adjusting method provided in any embodiment of the present application.

Correspondingly, the embodiment of the present application further provides a storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for adjusting product performance provided in any embodiment of the present application is implemented.

The method and the device can receive a product performance adjusting instruction for the product; respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction; analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product; according to the common performance adjustment information and the private performance adjustment information, the performance of the product is adjusted, and the efficiency of adjusting the performance of the product is improved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only 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 schematic view of a scene of a product performance adjustment method provided in an embodiment of the present application;

fig. 2 is a schematic flowchart of a product performance adjustment method provided in an embodiment of the present application;

fig. 3 is a schematic flowchart of another product performance adjustment method provided in an embodiment of the present application;

fig. 4 is a schematic structural diagram of a product performance adjusting apparatus provided in an embodiment of the present application;

fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

Detailed Description

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, however, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments of the present application. 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.

The embodiment of the application provides a product performance adjusting method, which can be executed by a product performance adjusting device, and the product performance adjusting device can be integrated in an electronic device with a screen saver function. The electronic device may include at least one of a terminal and a server. Namely, the product performance adjusting method can be executed by the terminal or the server.

Wherein, the terminal can comprise a smart television, a smart phone, a smart home, a wearable electronic device, a VR/AR product, an on-board computer, and the like.

The server may be an interworking server among a plurality of heterogeneous systems or a background server of a product verification test system, may be an independent physical server, may also be a server cluster or distributed system formed by a plurality of physical servers, and may also be a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, big data, an artificial intelligence platform, and the like.

In an embodiment, as shown in fig. 1, the product performance adjusting apparatus may be integrated on an electronic device such as a terminal or a server, so as to implement the product performance adjusting method provided in the embodiment of the present application. Specifically, the electronic equipment receives a product performance adjustment instruction for a product; respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction; analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product; and adjusting the performance of the product according to the common performance adjustment information and the private performance adjustment information.

The following are detailed below, and it should be noted that the order of description of the following examples is not intended to limit the preferred order of the examples.

The embodiment of the application will be described from the perspective of a product performance adjusting device, the product performance adjusting device may be integrated in an electronic device, the electronic device may include an intelligent device such as an intelligent television, an intelligent air conditioner, an intelligent washing machine, and the like, and may further include a server and the like.

As shown in fig. 2, a method for adjusting product performance is provided, and the specific process includes:

101. and receiving a product performance adjusting instruction aiming at the product.

The product can include various products developed by relying on computer technology and software technology. For example, the product may include smart devices such as smart phones, smart televisions, smart air conditioners, and smart washing machines. As another example, the product may include various software products, and so on. For example, the product may include various Applications (APPs), and so on.

In one embodiment, these products have a wide variety of properties, and there are differences in properties between different models of products.

For example, among different models of smart televisions, some models of smart televisions may have noise reduction performance, and some models of smart televisions may have a blue light function.

For another example, among different models of intelligent air conditioners, some models of intelligent air conditioners have a heating performance, and some models of intelligent air conditioners do not have a heating performance.

In one embodiment, developers develop these smart products, typically based on the Android system. In the prior art, in the process of developing intelligent products, a corresponding software package is often developed for the performance of each product.

For example, for different models of smart televisions, corresponding software packages are developed for the performance of each model of smart television.

For another example, for different models of intelligent air conditioners, corresponding software packages are developed for the performance of each model of intelligent air conditioner, and the like.

When the performance of an intelligent product needs to be adjusted, a Software package corresponding to the intelligent product often needs to be modified, Software Quality Assurance (SQA) testing is performed on the Software package, and the performance of the product can be adjusted only by upgrading the Software package.

In addition, because the software packages of a plurality of intelligent products have very similar structures, the software packages corresponding to a plurality of intelligent products are unified to obtain a unified software package. And the performance between different intelligent products can be isolated through configuration items, so that the requirements that different intelligent products have different characteristics are met. For example, software packages for different types of smart products may be unified. For example, software packages for smart products of the same type and different signals may be unified, and so on.

Wherein the unified software package includes programming code for all of the intelligent products.

In one embodiment, the unified software package may include a preset common information repository and a preset private information repository.

The preset common information repository (also called system repository) includes a library preset in the embodiment of the present application and storing common performance configuration parameters of the smart product.

Wherein the common performance may include performance common to each of the smart products.

In one embodiment, the amounts may have different common properties depending on the products in the unified software package.

For example, when different models of smart products are included in the unified software package, the common capabilities may include capabilities that are common to each model of product.

For another example, when different types of smart products are included in the unified software package, the common capabilities may include capabilities that are common to each model of product. For example, the unified software package includes an intelligent air conditioner, an intelligent washing machine, an intelligent television and the like, and the power-on and the power-off are performances of each intelligent product, so the common performances can include the power-on performance and the power-off performance.

Wherein the common performance configuration parameters comprise parameters for configuring common performance among the intelligent products. For example, power on and power off are capabilities that each smart product has, so the common performance configuration parameters may include power on configuration parameters and power off configuration parameters.

In an embodiment, the common performance configuration parameters may have multiple presentation forms. For example, the common performance configuration parameter may include 0 and 1, where 0 may mean that the common performance does not need to be validated on the smart product and 1 may mean that the common performance needs to be validated on the smart product. For another example, the common performance configuration parameters may include True and False, where True may indicate that the common performance needs to be validated on the smart product, and False may indicate that the common performance does not need to be validated on the smart product.

The preset private information repository (also called product repository) includes a library preset in the embodiment of the present application and storing private performance configuration parameters of the intelligent product.

The private performance may include, among other things, the special performance of the smart product.

In one embodiment, the proprietary capabilities may be different depending on the products in the unified software package.

For example, when different models of smart products are included in the unified software package, the private capabilities may include a special capability for each model of product. For example, when different models of smart televisions are included in the unified software package, the private features may correspond to the specific features of the product that includes each model.

As another example, when various different types of smart products are included in the unified software package, the private performance may differ from the performance of each type of product and other types of products. For example, when the unified software package includes an intelligent washing machine and an intelligent air conditioner. Then, the private performance of the intelligent washing machine may include washing and dehydration, and so on. And the private performance of the smart air conditioner may include cooling and heating, etc.

The private performance configuration parameters comprise parameters for configuring the private performance of each intelligent product.

In an embodiment, the private performance configuration parameters may have a variety of presentation forms. For example, the private performance configuration parameters may include 0 and 1, where 0 may mean that private performance does not need to be validated on the smart product and 1 may mean that private performance needs to be validated on the smart product. As another example, the private performance configuration parameters may include True and False, where True may mean that private performance needs to be validated on the smart product, and False may mean that private performance does not need to be validated on the smart product.

In one embodiment, each smart product in the unified software package may correspond to a product bin.

For example, when the unified software package includes different models of smart products, each model of smart product may correspond to a product library.

For another example, when different types of smart products are included in the unified software package, each type of product may correspond to a product library.

In one embodiment, when a developer needs to make adjustments to certain properties of a product, the developer may store the property adjustment information in a product library and a system library in a cloud server. For example, a developer may store common performance adjustment information for a product in a system library, and may store private performance for the product in a product library.

In an embodiment, on the premise that the software packages corresponding to the intelligent products are unified to obtain a unified software package, if the performance of a certain intelligent product is adjusted, the software package of the intelligent product still needs to be modified, the SQA test is performed on the software package, and if the product is subjected to software upgrading, a large amount of manpower and material resources are consumed, so that the efficiency is low.

Therefore, the embodiment of the application provides a product performance adjusting method, which aims to dynamically adjust the performance of a product on the premise of not compiling a unified software package, thereby quickly meeting the requirements of the product. According to the method, the product library, the system library and the SettingProvider in the Android are utilized, so that when the performance of an intelligent product is adjusted, the SQA test of a software package is not needed, the product is subjected to software upgrading, the performance of the product can be adjusted, a large amount of manpower and material resources are saved, and the efficiency is improved.

Wherein, the SettingProvider is a Provider for setting data sharing in android. SettingsProvider includes global and system level setup information.

In one embodiment, the cloud server sends the broadcast after the developer adjusts the performance of the product through the cloud server. Then, after the SettingsProvider module monitors the broadcast of the data change of the cloud server, the SettingsProvider module can adjust the performance of the product according to the product performance adjusting instruction.

In an embodiment, after the developer adjusts the performance of the product through the cloud server, the cloud server sends a product performance adjustment instruction. Then, after the settingProvider module receives the product performance adjusting instruction, the settingProvider module can adjust the performance of the product according to the product performance adjusting instruction.

102. And respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction.

In one embodiment, the system library may include product performance profiles, and then the common performance configuration parameters may all be stored in the product performance profiles.

In one embodiment, the product library may also include a product performance profile, and then the private performance configuration parameters may be stored in the product performance profile.

The product performance configuration file may include a file storing performance configuration parameters. For example, a product performance profile in a system library may store common performance configuration parameters. As another example, a product performance profile in the product library may store private performance configuration parameters. Wherein, the product performance configuration file can be a file in an xml format. For example, the product performance profile in the system library may be system.

In one embodiment, to facilitate distinguishing the product performance profiles in the system library from the product library, the product performance profile in the system library may be referred to as a first product performance profile, and the product performance profile in the product library may be referred to as a second product performance profile.

In one embodiment, the common performance configuration parameters in the system library may have duplicate portions with the private performance configuration parameters in the product library. Therefore, in order to avoid the situation that the product performance adjustment is unsuccessful in the process of adjusting the product performance, the sequence of obtaining the first product performance configuration file in the preset common information repository and the second product performance configuration file in the preset private information repository can be set in advance. Specifically, the step of presetting a first product performance configuration file in the common information repository and presetting a second product performance configuration file in the private information repository may include:

acquiring a preset identification sequence;

sequentially identifying a preset common information repository and a preset private information repository according to a preset identification sequence to obtain a first file storage path of the preset common information repository and a second file storage path of the preset private information repository;

and acquiring a first product performance configuration file in the preset common information repository according to the first file storage path, and acquiring a second product performance configuration file in the preset common information repository according to the second file storage path.

In one embodiment, the private performance configuration parameters in the product library may be prioritized over the common performance configuration parameters in the system library. Therefore, the preset recognition order may be to recognize the system library first and then the product library. When it is recognized that the private performance configuration parameters in the product library and the common performance configuration parameters in the system library are repeated, the private performance configuration parameters in the product library can be used as the standard.

In an embodiment, the product performance configuration file may be obtained according to the storage path. Therefore, the preset common information repository and the preset private information repository can be sequentially identified according to the preset identification sequence, and a first file storage path of the preset common information repository and a second file storage path of the preset private information repository are obtained.

For example, when the preset identification sequence is that the system library is identified first and then the product library is identified, the SettingsProvider may identify the preset common information repository first to obtain the first file storage path. Then, the settingprovider may further identify the preset private information repository to obtain a second file storage path.

In an embodiment, after the settingprovider obtains the first file storage path, the settingprovider may search according to the first file storage path, so as to obtain the first product performance configuration file in the preset common information repository.

In an embodiment, after the settingprovider obtains the second file storage path, the settingprovider may search according to the second file storage path, so as to obtain the first product performance configuration file in the preset private information repository.

In an embodiment, the settingprovider may further identify the preset common information repository first according to the product performance adjustment instruction to obtain the first file storage path. And then, searching according to the first file storage path to obtain a first product performance configuration file in a preset common information storage library. And then the settingprovider can identify the preset private information storage library to obtain a second file storage path. And then, searching according to the second file storage path to obtain a first product performance configuration file in a preset private information storage library.

103. And analyzing the second product performance configuration file to obtain the private performance adjustment information of the product.

In an embodiment, after obtaining the first product performance configuration file and the second product performance configuration file, the SettingsProvider may analyze the first product performance configuration file to obtain common performance adjustment information of the product, and analyze the second product performance configuration file to obtain private performance adjustment information of the product.

In an embodiment, the step of "analyzing the first product performance configuration file to obtain the common performance adjustment information of the product" may include:

traversing the first product performance configuration file to obtain at least one common performance configuration parameter in the first product performance configuration file;

screening out common performance adjustment parameters from the at least one common performance configuration parameter;

and generating the common performance adjustment information according to the common performance adjustment parameters.

In an embodiment, various common performance configuration parameters of the smart product may be included in the first product performance profile. Therefore, when the SettingsProvider analyzes the first product performance configuration file, the first product performance configuration file can be traversed to obtain total common performance configuration parameters of the first product performance file, and then common performance adjustment parameters are screened out from at least one common performance configuration parameter.

In an embodiment, the settingprovider may include a preset parameter record table, where the preset parameter record table records a change condition of the common performance configuration parameter. Therefore, when the common performance configuration parameters are summarized and screened out, the SettingsProvider can match the common performance configuration parameters with the recorded information in the preset parameter table, and screen out the common performance adjustment parameters according to the matching result. Specifically, the step of "screening out a common performance adjustment parameter from at least one common performance configuration parameter" may include:

matching at least one common performance configuration parameter with the record information in the preset parameter record table to obtain a matching result;

and determining a common performance adjusting parameter in the common performance configuration parameters according to the matching result.

The recording information in the preset parameter recording table records the latest one-time shared performance configuration parameter when the product performance is adjusted each time. For example, when a developer adjusts the product performance, the preset parameter recording table records not only the adjusted common performance configuration parameters, but also the unadjusted common performance configuration parameters. In addition, each time the product performance is adjusted, the preset parameter recording table has corresponding time records.

For example, the preset parameter records in table 1 may be as follows:

table 1: recording table of preset parameters

Where in table 1, 4 common performance configuration parameters are included, A, B, C and D respectively. In table 1, performance tuning is recorded for two times sharing performance configuration parameters. In the first time, the common performance configuration parameters A, C and D are set to True, while the common performance configuration parameter B is set to False.

In one embodiment, for example, the developer adjusts the performance of the product. For example, the common performance configuration parameters B, C and D are set to True, while the common performance configuration parameter A is set to True. Therefore, after obtaining the common performance configuration parameters of the first product performance configuration file, the SettingsProvider may store the common performance configuration parameters into the preset parameter recording table, where the preset parameter recording table may be as shown in table 2.

Table 2: recording table of preset parameters

Next, settingspovider may match the last common performance configuration parameter with the last common performance configuration parameter. For example, the common performance configuration parameters corresponding to time 2020/04/13/13:30 may be matched with the common performance configuration parameters corresponding to time 2020/03/13/13: 30. Since the matching to common performance configuration parameter a is changed from True to False and common performance configuration parameter C is changed from fast to True, common performance configuration parameters a and C can be determined as common performance adjustment parameters.

In one embodiment, after obtaining the common performance tuning parameters, SettingsProvider may store the common performance tuning parameters in a performance information loading library (also referred to as DataBase). The storage format of the information in the DataBase is different from that of the information in the SettingProvider, so that the SettingProvider can generate the common performance adjusting information according to the common performance adjusting parameters, and the DataBase can load the common performance adjusting information.

The SettingProvider can generate the common performance adjusting information according to the information storage format in the DataBase by using the common performance adjusting parameters. For example, the information storage format in the DataBase is 32 bits, and the common performance adjustment parameter is 8 bits, so that the common performance adjustment parameter can be padded into 32 bits to obtain the common performance adjustment information.

In an embodiment, the step of "analyzing the second product performance configuration file to obtain the private performance adjustment information of the product" may include:

traversing the second product performance configuration file to obtain at least one private performance configuration parameter in the second product performance configuration file;

screening out a private performance adjustment parameter from the at least one private performance configuration parameter;

and generating the private performance adjusting information according to the private performance adjusting parameters.

In the step, "the second product performance configuration file is analyzed to obtain the private performance adjustment information of the product," the first product performance configuration file may be analyzed to obtain the common performance adjustment information of the product "with reference to the step," and therefore, the explanation is not repeated here.

104. And adjusting the performance of the product according to the common performance adjustment information and the private performance adjustment information.

In an embodiment, after the SettingsProvider generates the common performance adjustment information and the private performance adjustment information, the SettingsProvider may obtain a performance information storage path of the product; determining a performance information loading library of the product according to the performance information storage path; and storing the common performance adjustment information and the private information adjustment information into a performance information loading library.

Wherein, the performance information storage path may refer to an address of the performance information loading library. Therefore, the SettingsProvider can determine the performance information loading library of the product according to the performance information storage path, and store the common performance adjustment information and the private performance adjustment information into the performance information loading library.

In one embodiment, after SettingsProvider stores the common performance adjustment information and the private performance adjustment information in the DataBase, the smart product may load the common performance adjustment information and the private information adjustment information from the DataBase when the smart product is started. Then, the intelligent product can extract the private performance adjustment parameter from the common performance adjustment information, extract the common performance adjustment parameter from the private information adjustment information, and adjust the performance of the product according to the private performance adjustment parameter and the common performance adjustment parameter.

In an embodiment, as shown in fig. 3, the method may be another schematic flow chart of the product performance adjusting method provided in the embodiment of the present application. When the settingprovider is started, the method can register to monitor the broadcast of the data change of the cloud server. And when the SettingProvider receives the broadcast notification, the SettingProvider acquires the first product performance configuration file and the second product performance configuration file from the system library and the product library. Specifically, the SettingsProvider may obtain a first product performance configuration file from the system path, and analyze the first product performance configuration file to obtain the common performance adjustment information. Then, the SettingsProvider may obtain a second product performance configuration file from the product path, and analyze the second performance configuration file to obtain private performance adjustment information. Next, the SettingsProvider may add the common performance adjustment information and the private performance adjustment information to the DataBase, so that the DataBase may be loaded when the smart product is started, thereby adjusting the performance of the product.

The product performance adjusting method provided by the embodiment of the application can receive a product performance adjusting instruction for a product; respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction; analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product; and adjusting the performance of the product according to the common performance adjustment information and the private performance adjustment information.

According to the method, the product library, the system library and the SettingProvider in the Android are utilized, so that when the performance of an intelligent product is adjusted, the SQA test of a software package is not needed, the product is subjected to software upgrading, the performance of the product can be adjusted, a large amount of manpower and material resources are saved, and the efficiency is improved.

In order to better implement the product performance adjusting method provided by the embodiment of the present application, in an embodiment, a product performance adjusting apparatus is further provided, and the product performance adjusting apparatus may be integrated in an electronic device. The terms are the same as those in the above product performance adjusting method, and specific implementation details can be referred to the descriptions in the method examples.

In an embodiment, a product performance adjusting apparatus is provided, where the product performance adjusting apparatus may be specifically integrated in an electronic device, such as a smart home, and as shown in fig. 4, the product performance adjusting apparatus includes: the receiving unit 201, the obtaining unit 202, the analyzing unit 203, and the adjusting unit 204 are specifically as follows:

a receiving unit 201, configured to receive a product performance adjusting instruction for a product;

an obtaining unit 202, configured to obtain, according to the product performance adjustment instruction, a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository, respectively;

the analysis unit 203 is configured to analyze the first product performance configuration file to obtain common performance adjustment information of the product, and analyze the second product performance configuration file to obtain private performance adjustment information of the product;

an adjusting unit 204, configured to adjust the performance of the product according to the common performance adjustment information and the private performance adjustment information.

In an embodiment, the obtaining unit 202 includes:

the first acquisition subunit is used for acquiring a preset identification sequence;

the identification subunit is configured to sequentially identify the preset common information repository and the preset private information repository according to the preset identification sequence to obtain a first file storage path of the preset common information repository and a second file storage path of the preset private information repository;

and the second obtaining subunit is configured to obtain, according to the first file storage path, a first product performance configuration file in the preset common information repository, and obtain, according to the second file storage path, a second product performance configuration file in the preset common information repository.

In an embodiment, the parsing unit 203 includes:

the traversal subunit is configured to traverse the first product performance configuration file to obtain at least one common performance configuration parameter in the product performance configuration file;

a screening subunit, configured to screen a common performance adjustment parameter from the at least one common performance configuration parameter;

a generating subunit, configured to generate the common performance adjustment information according to the common performance adjustment parameter.

In one embodiment, the screening subunit includes:

the matching module is used for matching the at least one common performance configuration parameter with the record information in the preset parameter record table to obtain a matching result;

and the determining module is used for determining a common performance adjusting parameter in the common performance configuration parameters according to the matching result.

In an embodiment, the adjusting unit 204 includes:

a loading subunit, configured to load the common performance adjustment information and the private information adjustment information from the performance information loading library;

an extraction subunit, configured to extract a private performance adjustment parameter from the common performance adjustment information, and extract a common performance adjustment parameter from the private information adjustment information;

and the adjusting subunit is used for adjusting the performance of the product according to the private performance adjusting parameter and the common performance adjusting parameter.

In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.

The product performance adjusting device can improve the efficiency of adjusting the product performance.

The embodiment of the application further provides an electronic device, which may include a terminal or a server, for example, the electronic device may be used as a product performance adjusting terminal, and the product performance adjusting terminal may be a smart television or the like; for example, the computer product may be a server, such as a product performance adjustment server. As shown in fig. 5, it shows a schematic structural diagram of a terminal according to an embodiment of the present application, specifically:

the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:

the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.

The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer product, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.

The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.

The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:

receiving a product performance adjusting instruction aiming at a product;

respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction;

analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product;

and adjusting the performance of the product according to the common performance adjustment information and the private performance adjustment information.

The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.

According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer product reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer product executes the method provided in the various alternative implementations of the above embodiments.

It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.

To this end, embodiments of the present application further provide a storage medium, where a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the product performance adjusting methods provided in the embodiments of the present application. For example, the computer program may perform the steps of:

receiving a product performance adjusting instruction aiming at a product;

respectively acquiring a first product performance configuration file in a preset common information repository and a second product performance configuration file in a preset private information repository according to the product performance adjusting instruction;

analyzing the first product performance configuration file to obtain the common performance adjustment information of the product, and analyzing the second product performance configuration file to obtain the private performance adjustment information of the product;

and adjusting the performance of the product according to the common performance adjustment information and the private performance adjustment information.

The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.

Since the computer program stored in the storage medium can execute the steps in any product performance adjusting method provided in the embodiments of the present application, beneficial effects that can be achieved by any product performance adjusting method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.

The method, the apparatus, the electronic device, and the storage medium for product performance adjustment provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principles and implementations of the present application, and the description of the embodiments is only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:移植版本管理功能的方法及装置、版本管理方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!