Parameter backup method, device, equipment and storage medium
By generating an update filter file and using it for NV backup, the problem of long backup time in the prior art is solved, and a more efficient calibration parameter backup is achieved.
Patent Information
- Application Number
- CN202111108668.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2041-09-22
AI Technical Summary
In the prior art, when performing NV backup of calibration parameters, the backup time is too long, resulting in low efficiency.
By obtaining the NV backup file corresponding to the functional module, using the original filter file for screening and backup, deleting the parameters in the original filter file that do not match the NV backup file, generating an updated filter file, and using the updated filter file for NV backup.
Shortened NV backup time and improved backup efficiency.
Smart Images

Figure CN113918381B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a parameter backup method, apparatus, device, and storage medium. Background Art
[0002] At present, there are more and more mobile terminal users and their demands are becoming more and more extensive. When manufacturing terminal products, there are certain deviations in product components, so there will inevitably be differences in the combined products. If this difference exceeds a certain range, it will not only affect the performance of the terminal product but also fail to meet the standards. Therefore, when producing terminal products, the terminal needs to be calibrated so that the difference is adjusted within the range that meets the standards. Therefore, calibration parameters are very important.
[0003] Currently, when performing NV backup of calibration parameters, there is a problem of long backup time. Summary of the Invention
[0004] The present application provides a parameter backup method, apparatus, device and storage medium to solve the problem of long backup time when performing NV backup of calibration parameters.
[0005] In a first aspect, a parameter backup method is provided, comprising:
[0006] Obtain an NV backup file corresponding to a functional module, where the NV backup file is obtained by performing an NV backup on the calibration parameters of the functional module using an original filter file. The original filter file is used to perform an NV backup on the calibration parameters of at least two functional modules. The NV backup file and the original filter file have different parameter expressions for the same parameter.
[0007] Deleting parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file;
[0008] The updated filter file is determined to be a filter file corresponding to the functional module, and when the calibration parameters of the functional module need to be backed up again using the updated filter file, the calibration parameters of the functional module are backed up using the updated filter file.
[0009] Optionally, obtain the NV backup file corresponding to the functional module, including:
[0010] Determine the NV memory corresponding to the functional module;
[0011] Writing the calibration parameters of the functional module into the NV memory;
[0012] Read the NV parameters in the NV memory, and use the original filter file to filter write parameters from the NV parameters, where the write parameters are parameters whose values are not empty in the NV parameters;
[0013] The write parameters are backed up to obtain the NV backup file.
[0014] Optionally, after backing up the write parameters to obtain the NV backup file, the method further includes:
[0015] Determine an NV state of each parameter in the original filter file, where the NV state includes a first state or a second state, where the first state is used to indicate a mismatch with the written parameter, and the second state is used to indicate a match with the written parameter.
[0016] Optionally, deleting parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file includes:
[0017] Parameters whose NV status is the first status in the original filter file are deleted to obtain the updated filter file.
[0018] Optionally, deleting parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file includes:
[0019] Obtaining parameter expressions in the original filter file;
[0020] Express the parameters in the NV backup file according to the parameter expression method to obtain a converted NV backup file;
[0021] Determining a first data set consisting of parameters in the original filter file and a second data set consisting of parameters in the converted NV backup file;
[0022] determining a union of the first data set and the second data set;
[0023] The parameters belonging to the union in the original filter file are deleted to obtain the updated filter file.
[0024] Optionally, determining a first data set consisting of parameters in the original filter file and a second data set consisting of parameters in the converted NV backup file includes:
[0025] Obtain a first NV list identification file corresponding to the original filter file and a second NV list identification file corresponding to the converted NV backup file, wherein the identifiers in the first NV list identification file have a one-to-one correspondence with the parameters in the original filter file, and the identifiers in the second NV list identification file have a one-to-one correspondence with the parameters in the converted NV backup file;
[0026] It is determined that the first data set is composed of identifiers in the first NV list identifier file, and the second data set is composed of identifiers in the second NV list identifier file.
[0027] Optionally, after performing NV backup on the calibration parameters of the functional module using the update filter file, the method further includes:
[0028] Detecting a first duration required for performing a preset number of NV backups on the functional module using the original filter file, and a second duration required for performing the preset number of NV backups on the functional module using the updated filter file;
[0029] The first duration and the second duration are displayed in a preset chart display manner.
[0030] In a second aspect, a parameter backup device is provided, comprising:
[0031] an acquisition unit, configured to acquire an NV backup file corresponding to a functional module, wherein the NV backup file is obtained by performing an NV backup on a calibration parameter of the functional module using an original filter file, the original filter file being used to perform an NV backup on the calibration parameters of at least two functional modules, and the NV backup file and the original filter file having different parameter expressions for the same parameter;
[0032] a deleting unit, configured to delete parameters in the original filter file that do not match the parameters in the NV backup file, to obtain an updated filter file;
[0033] The updating unit is configured to determine that the updated filter file is a filter file corresponding to the functional module, and to use the updated filter file to perform an NV backup on the calibration parameters of the functional module when an NV backup is required for the calibration parameters of the functional module.
[0034] According to a third aspect, an electronic device is provided, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;
[0035] The memory is used to store computer programs;
[0036] The processor is used to execute the program stored in the memory to implement the parameter backup method described in the first aspect.
[0037] In a fourth aspect, a computer-readable storage medium is provided, storing a computer program, wherein the computer program, when executed by a processor, implements the parameter backup method described in the first aspect.
[0038] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application obtains an NV backup file corresponding to the functional module, the NV backup file is obtained by performing an NV backup on the calibration parameters of the functional module using the original filter file, the original filter file is used to perform an NV backup on the calibration parameters of at least two functional modules, and the NV backup file and the original filter file have different parameter expressions for the same parameter; the parameters in the original filter file that do not match the parameters in the NV backup file are deleted to obtain an updated filter file; the updated filter file is determined to be the filter file corresponding to the functional module, and when the calibration parameters of the functional module need to be backed up again, the updated filter file is used to perform an NV backup on the calibration parameters of the functional module. Since some parameters in the original filter file are deleted, when the calibration parameters of the functional module are backed up using the updated filter file, the NV backup time will be greatly shortened, and the generation efficiency will be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 Schematic diagram of the process of parameter backup method in the embodiment of the present application;
[0042] Figure 2 This is a schematic diagram of the structure of the parameter backup device in an embodiment of the present application;
[0043] Figure 3 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0044] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0045] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0046] In related technologies, the process of performing NV backup of calibration parameters may include the following steps:
[0047] Step 1: Turn on the function module and enter the calibration mode;
[0048] Step 2: Perform calibration and write the calibration parameters into the corresponding NV memory (Nonvolatile random access memory);
[0049] Step 3: Filter and back up the NV parameters in the NV memory using the original filter file to obtain an NV backup file, wherein the original filter file can back up the calibration parameters from multiple functional modules;
[0050] Step 4: Shut down the module and exit calibration mode.
[0051] In the application, NV parameters in the NV memory include written parameters and unwritten parameters. Written parameters are NV parameters with valid values, that is, written parameters are NV parameters with non-empty values, while unwritten parameters are NV parameters with empty values. When filtering the NV parameters in the NV memory using the original filter file, the unwritten parameters in the NV memory can be filtered out, so that only the written parameters in the NV memory are backed up.
[0052] Since the original filter file can back up the calibration parameters from multiple functional modules, the original filter file includes parameters indicating the written parameters and unwritten parameters of multiple functional modules. Therefore, when the original filter file is used to filter the NV parameters in the NV memory in step 2, the NV parameters are matched with the written parameters and unwritten parameters indicating other functional modules in the original filter file, which leads to the problem of long backup time and high cost.
[0053] In order to solve this technical problem, an embodiment of the present application provides a parameter backup method, which can be applied to an electronic device;
[0054] The electronic devices described in the embodiments of the present application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, video matrices, monitoring platforms, mobile Internet devices (MIDs) or wearable devices, etc. The above are only examples and not exhaustive, including but not limited to the above devices. Of course, the above electronic devices can also be servers, for example, cloud servers.
[0055] like Figure 1 As shown, the method may include the following steps:
[0056] Step 101: Obtain the NV backup file corresponding to the functional module.
[0057] Among them, the NV backup file is obtained by using the original filter file to perform NV backup on the calibration parameters of the functional module. The original filter file is used to perform NV backup on the calibration parameters of at least two functional modules. The NV backup file and the original filter file have different parameter expressions for the same parameter.
[0058] It should be understood that when the file formats of the NV backup file and the original filter file are different, the parameter expressions of the NV backup file and the original filter file for the same parameter will be different; or, even if the file formats of the NV backup file and the original filter file are the same, the parameters in the original filter file will be encrypted for security reasons, so the parameter expressions of the NV backup file and the original filter file for the same parameter will be different.
[0059] It should be noted that encrypting the parameters in the original filter file based on security considerations is only an optional implementation method that makes the NV backup file and the original filter file have different parameter expressions for the same parameter, under the premise that the file format of the NV backup file and the original filter file are the same. This embodiment does not make any specific limitations on this.
[0060] In this embodiment, before updating the original filter file, the calibration parameters of the functional module are still backed up using the original filter file. Specifically, the NV memory corresponding to the functional module is determined; the calibration parameters of the functional module are written into the NV memory; the NV parameters in the NV memory are read and the original filter file is used to filter the write parameters from the NV parameters. The write parameters are the parameters whose values are not null in the NV parameters; and the written parameters are backed up to obtain an NV backup file.
[0061] It should be understood that the parameter expressions for the same parameter in the NV memory and the original filter file may be different. In this case, the original filter file is used to filter the NV parameters by identifying the parameters.
[0062] Step 102: Delete the parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file.
[0063] This embodiment provides the following two methods to delete parameters in the original filter file that do not match the parameters in the NV backup file:
[0064] First, it is implemented according to the NV status of each parameter in the original filter file.
[0065] The NV state includes a first state or a second state, the first state is used to indicate a mismatch with the written parameters, and the second state is used to indicate a match with the written parameters.
[0066] It should be understood that the NV state of each parameter in the original filter file is obtained after the original filter file filters the NV parameters in the NV memory. Therefore, the parameters in the original filter file with the NV state of the first state actually include two types of parameters: one type is the unwritten parameters in the NV memory, and the other type is the NV parameters in the other NV memory, where the other NV memory is used to store calibration parameters for other functional modules.
[0067] Specifically, when deleting parameters in the original filter file that do not match the parameters in the NV backup file according to the NV state, the parameters in the original filter file whose NV state is the first state are directly deleted to obtain an updated filter file.
[0068] Second, implementation based on the perspective of data sets.
[0069] Because the original filter file and the NV backup file have different parameter expressions for the same parameter, when using this method, the parameters in the original filter file and the NV backup file need to be formatted in the same way.
[0070] In order to save conversion workload and improve the efficiency of obtaining the updated filter file subsequently, when unifying the format of the parameters in the original filter file and the parameters in the NV backup file, the parameter expression method in the original filter file is obtained; the parameters in the NV backup file are expressed according to the parameter expression method to obtain a converted NV backup file; a first data set consisting of the parameters in the original filter file and a second data set consisting of the parameters in the converted NV backup file are determined; the union of the first data set and the second data set is determined; the parameters in the union in the original filter file are deleted to obtain an updated filter file.
[0071] Furthermore, in order to further improve the efficiency of obtaining the updated file, in this embodiment, the first data set can be represented by the identifiers of the parameters in the original filter file, and similarly, the second data set can be represented by the identifiers of the parameters in the converted NV backup file.
[0072] Specifically, a first NV list identification file corresponding to the original filter file and a second NV list identification file corresponding to the converted NV backup file are obtained, the identifiers in the first NV list identification file have a one-to-one correspondence with the parameters in the original filter file, and the identifiers in the second NV list identification file have a one-to-one correspondence with the parameters in the converted NV backup file; determine that the identifiers in the first NV list identification file constitute a first data set, and the identifiers in the second NV list identification file constitute a second data set.
[0073] It should be understood that when the NV backup file is converted into the converted NV backup file, the parameter identification in the NV backup file does not change, so the second NV list identification file corresponding to the converted NV backup file is actually the NV list identification file corresponding to the NV backup file.
[0074] Step 103 : Determine that the updated filter file is the filter file corresponding to the functional module, and when it is necessary to perform NV backup on the calibration parameters of the functional module again, perform NV backup on the calibration parameters of the functional module using the updated filter file.
[0075] In this embodiment, after obtaining an updated filter file, when it is necessary to perform an NV backup of the calibration parameters of the functional module again, the updated filter file is used to perform an NV backup of the calibration parameters of the functional module. Specifically, the NV memory corresponding to the functional module is determined; the calibration parameters of the functional module are written into the NV memory; the NV parameters in the NV memory are read and the written parameters are filtered from the NV parameters using the updated original filter file; and the written parameters are backed up to obtain an NV backup file.
[0076] In order to clearly show the user the NV backup time that can be saved by adopting the parameter backup method provided in this embodiment, in another embodiment of the present application, after using the updated filter file to perform NV backup on the calibration parameters of the functional module, the first time required for performing NV backup on the functional module for a preset number of times using the original filter file and the second time required for performing NV backup on the functional module for a preset number of times using the updated filter file can also be detected; the first time and the second time are displayed according to a preset graphical display method.
[0077] Please refer to Table 1, which is a comparison of the time required to perform NV backup on the calibration parameters of the same functional module under the same test environment using the original filter file and the updated filter file respectively:
[0078]
[0079] The method provided in an embodiment of the present application obtains an NV backup file corresponding to a functional module. The NV backup file is obtained by performing an NV backup on the calibration parameters of the functional module using an original filter file. The original filter file is used to perform an NV backup on the calibration parameters of at least two functional modules. The NV backup file and the original filter file have different parameter expressions for the same parameter; parameters in the original filter file that do not match the parameters in the NV backup file are deleted to obtain an updated filter file; the updated filter file is determined to be the filter file corresponding to the functional module, and when the calibration parameters of the functional module need to be backed up again, the updated filter file is used to perform an NV backup on the calibration parameters of the functional module. Since some parameters in the original filter file are deleted, when the calibration parameters of the functional module are backed up using the updated filter file, the NV backup time will be greatly shortened, thereby improving the generation efficiency.
[0080] Based on the same concept, a parameter backup device is provided in the embodiment of the present application. The specific implementation of the device can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Figure 2 As shown, the device mainly includes:
[0081] An acquisition unit 201 is configured to acquire an NV backup file corresponding to a functional module. The NV backup file is obtained by performing an NV backup on the calibration parameters of the functional module using an original filter file. The original filter file is used to perform an NV backup on the calibration parameters of at least two functional modules. The NV backup file and the original filter file have different parameter expressions for the same parameter.
[0082] A deleting unit 202 is used to delete parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file;
[0083] The updating unit 203 is configured to determine that the updated filter file is the filter file corresponding to the functional module, and perform an NV backup of the calibration parameters of the functional module using the updated filter file when the calibration parameters of the functional module need to be backed up again.
[0084] Optionally, the acquiring unit 201 is configured to:
[0085] Determine the NV memory corresponding to the functional module;
[0086] Write the calibration parameters of the functional module into the NV memory;
[0087] Read the NV parameters in the NV memory and use the original filter file to filter the write parameters from the NV parameters. The write parameters are the parameters whose values are not empty in the NV parameters.
[0088] Back up the written parameters to obtain the NV backup file.
[0089] Optionally, the device is further used to:
[0090] The original filter file is used to filter the NV backup. After obtaining the NV backup file, the NV state of each parameter in the original filter file is determined. The NV state includes a first state or a second state. The first state is used to indicate a mismatch with the written parameters, and the second state is used to indicate a match with the written parameters.
[0091] Optionally, the deleting unit 202 is configured to:
[0092] Delete the parameters whose NV state is the first state in the original filter file to obtain an updated filter file.
[0093] Optionally, the deleting unit 202 is configured to:
[0094] Get the parameter expression in the original filter file;
[0095] Express the parameters in the NV backup file according to the parameter expression method to obtain a converted NV backup file;
[0096] Determining a first data set consisting of parameters in the original filter file and a second data set consisting of parameters in the converted NV backup file;
[0097] determining a union of the first data set and the second data set;
[0098] Delete the parameters in the original filter file that belong to the union to obtain an updated filter file.
[0099] Optionally, the deleting unit 202 is configured to:
[0100] Obtain a first NV list identification file corresponding to the original filter file and a second NV list identification file corresponding to the converted NV backup file, wherein the identifiers in the first NV list identification file have a one-to-one correspondence with the parameters in the original filter file, and the identifiers in the second NV list identification file have a one-to-one correspondence with the parameters in the converted NV backup file;
[0101] It is determined that the identifiers in the first NV list identifier file constitute a first data set, and the identifiers in the second NV list identifier file constitute a second data set.
[0102] Optionally, the device is further used to:
[0103] After performing NV backup on the calibration parameters of the functional module using the updated filter file, detecting a first duration required for performing NV backup on the functional module a preset number of times using the original filter file, and a second duration required for performing NV backup on the functional module a preset number of times using the updated filter file;
[0104] The first duration and the second duration are displayed in a preset chart display mode.
[0105] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 3 As shown, the electronic device mainly includes: a processor 301, a memory 302 and a communication bus 303, wherein the processor 301 and the memory 302 communicate with each other via the communication bus 303. The memory 302 stores a program that can be executed by the processor 301, and the processor 301 executes the program stored in the memory 302 to implement the following steps:
[0106] Obtain the NV backup file corresponding to the functional module. The NV backup file is obtained by performing an NV backup on the calibration parameters of the functional module using the original filter file. The original filter file is used to perform an NV backup on the calibration parameters of at least two functional modules. The NV backup file and the original filter file have different parameter expressions for the same parameter.
[0107] Delete the parameters in the original filter file that do not match the parameters in the NV backup file to obtain the updated filter file;
[0108] The updated filter file is determined to be the filter file corresponding to the functional module, and when the calibration parameters of the functional module need to be backed up again using the updated filter file, the calibration parameters of the functional module are backed up using the NV backup.
[0109] The communication bus 303 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 303 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0110] The memory 302 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor 301.
[0111] The above-mentioned processor 301 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0112] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is run on a computer, the computer executes the parameter backup method described in the above embodiment.
[0113] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions are transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0114] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0115] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is intended to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A parameter backup method, characterized in that: include: Obtain an NV backup file corresponding to a functional module, where the NV backup file is obtained by performing NV backup on the calibration parameters of the functional module using an original filter file, and the original filter file is used to perform NV backup on the calibration parameters of at least two functional modules, and the NV backup file and the original filter file have different parameter expressions for the same parameter; wherein, obtaining the NV backup file corresponding to the functional module includes: determining an NV memory corresponding to the functional module; writing the calibration parameters of the functional module into the NV memory; reading NV parameters in the NV memory, and using the original filter file to filter write parameters from the NV parameters, where the write parameters are parameters whose values are not empty in the NV parameters; backing up the write parameters to obtain the NV backup file; Deleting parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file; Determining that the updated filter file is a filter file corresponding to the functional module, and when it is necessary to perform NV backup on the calibration parameters of the functional module again, using the updated filter file to perform NV backup on the calibration parameters of the functional module; The method of deleting parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file includes: Obtaining parameter expressions in the original filter file; Express the parameters in the NV backup file according to the parameter expression method to obtain a converted NV backup file; Determining a first data set consisting of parameters in the original filter file and a second data set consisting of parameters in the converted NV backup file; determining a difference between the first data set and the second data set; Deleting the parameters in the difference set from the original filter file to obtain the updated filter file; The step of determining a first data set consisting of parameters in the original filter file and a second data set consisting of parameters in the converted NV backup file comprises: Obtain a first NV list identification file corresponding to the original filter file and a second NV list identification file corresponding to the converted NV backup file, wherein the identifiers in the first NV list identification file have a one-to-one correspondence with the parameters in the original filter file, and the identifiers in the second NV list identification file have a one-to-one correspondence with the parameters in the converted NV backup file; It is determined that the first data set is composed of identifiers in the first NV list identifier file, and the second data set is composed of identifiers in the second NV list identifier file.
2. The method according to claim 1, characterized in that After backing up the write parameters to obtain the NV backup file, the method further includes: Determine an NV state of each parameter in the original filter file, where the NV state includes a first state or a second state, where the first state is used to indicate a mismatch with the written parameter, and the second state is used to indicate a match with the written parameter.
3. The method according to claim 2, characterized in that Parameters in the original filter file that do not match those in the NV backup file are deleted to obtain an updated filter file, including: Parameters whose NV status is the first status in the original filter file are deleted to obtain the updated filter file.
4. The method according to claim 1, wherein After performing NV backup on the calibration parameters of the functional module using the update filter file, the method further includes: Detecting a first duration required for performing a preset number of NV backups on the functional module using the original filter file, and a second duration required for performing the preset number of NV backups on the functional module using the updated filter file; The first duration and the second duration are displayed in a preset chart display manner.
5. A parameter backup device, characterized in that: include: An acquiring unit is used to acquire an NV backup file corresponding to a functional module, wherein the NV backup file is obtained by performing NV backup on the calibration parameters of the functional module using an original filter file, and the original filter file is used to perform NV backup on the calibration parameters of at least two of the functional modules, and the NV backup file and the original filter file have different parameter expressions for the same parameter; wherein, acquiring the NV backup file corresponding to the functional module comprises: determining an NV memory corresponding to the functional module; writing the calibration parameters of the functional module into the NV memory; reading NV parameters in the NV memory, and using the original filter file to filter write parameters from the NV parameters, wherein the write parameters are parameters whose values are not empty in the NV parameters; backing up the write parameters to obtain the NV backup file; A deleting unit is used to delete the parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file; wherein, deleting the parameters in the original filter file that do not match the parameters in the NV backup file to obtain an updated filter file includes: obtaining a parameter expression method in the original filter file; expressing the parameters in the NV backup file according to the parameter expression method to obtain a converted NV backup file; determining a first data set composed of the parameters in the original filter file and a second data set composed of the parameters in the converted NV backup file; determining a difference set between the first data set and the second data set; deleting the parameters in the original filter file that belong to the difference set to obtain the updated filter file. a new filter file; wherein, determining a first data set consisting of parameters in the original filter file and a second data set consisting of parameters in the converted NV backup file comprises: obtaining a first NV list identification file corresponding to the original filter file and a second NV list identification file corresponding to the converted NV backup file, wherein the identifiers in the first NV list identification file have a one-to-one correspondence with the parameters in the original filter file, and the identifiers in the second NV list identification file have a one-to-one correspondence with the parameters in the converted NV backup file; determining that the identifiers in the first NV list identification file constitute the first data set, and the identifiers in the second NV list identification file constitute the second data set; The updating unit is configured to determine that the updated filter file is a filter file corresponding to the functional module, and to use the updated filter file to perform an NV backup on the calibration parameters of the functional module when an NV backup is required for the calibration parameters of the functional module.
6. An electronic device, characterized in that: include: A processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to execute the program stored in the memory to implement the parameter backup method according to any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the parameter backup method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Terminal repair method, device, electronic device and computer-readable storage medium
CN107957916A
Data processing method and device, equipment and storage medium
CN113051105A