WO2013107158A1 - Procédé et système conçus pour la gestion d'un paramètre système dans un dispositif terminal - Google Patents

Procédé et système conçus pour la gestion d'un paramètre système dans un dispositif terminal Download PDF

Info

Publication number
WO2013107158A1
WO2013107158A1 PCT/CN2012/077920 CN2012077920W WO2013107158A1 WO 2013107158 A1 WO2013107158 A1 WO 2013107158A1 CN 2012077920 W CN2012077920 W CN 2012077920W WO 2013107158 A1 WO2013107158 A1 WO 2013107158A1
Authority
WO
WIPO (PCT)
Prior art keywords
system parameter
value
parameter
area
storage type
Prior art date
Application number
PCT/CN2012/077920
Other languages
English (en)
Chinese (zh)
Inventor
赵彬
于芝涛
简志敏
高仁忠
傅来银
Original Assignee
青岛海信传媒网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海信传媒网络技术有限公司 filed Critical 青岛海信传媒网络技术有限公司
Publication of WO2013107158A1 publication Critical patent/WO2013107158A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level

Definitions

  • the present invention relates to embedded system technologies, and in particular, to a system parameter management method and a management system in a terminal device. Background technique
  • embedded systems are widely used in communications, industrial control, home smart devices, defense, medical and other fields.
  • mobile phones, smart TVs, set-top box devices, handheld computers, etc. all use embedded systems to provide intelligent, better human-computer interaction capabilities.
  • the embedded system has a variety of data, including various file system data saved by the user, such as data of documents, picture files, data in the database, system parameters and the like. Among them, system parameters are very important for embedded systems, which will affect the normal startup and operation of the system.
  • system program needs to read some system parameters, such as the system version number, device ID, network port address, and so on. If these system parameter readings are incorrect or missing, then the system may fail to start or some system functions may fail. Therefore, system parameters are very important for the proper startup and operation of embedded systems.
  • the programmer needs to modify some other related code in the modification of the system program code, and this time increases the probability of writing code errors. If an error occurs, it will cause the embedded system to fail during the next startup run and fail to start or some features will fail.
  • Embodiments of the present invention provide a system parameter management method and system in a terminal device, which are used to provide effective management of system parameters.
  • a system parameter management method in a terminal device including:
  • the in-memory stores the current value of the system parameter and the attribute information of the system parameter for each system parameter; the attribute information includes: a name of the system parameter, a storage address offset, and a storage type;
  • the method for storing the current value of the system parameter and the attribute information of the system parameter in the memory includes:
  • the attribute information of each system parameter is sequentially read from the configuration file; for each system parameter, the system parameter stored in the system parameter area is obtained according to the storage address offset of the system parameter.
  • the storage type of the system parameter is the first storage type
  • the value of the system parameter obtained from the system parameter area is taken as the current value of the system parameter
  • the storage type of the system parameter is the second storage type, Obtaining, according to the storage address offset of the system parameter, the value of the system parameter stored in the backup parameter area and the value of the system parameter stored in the system parameter area, and comparing the two; if the comparison result If they are consistent, the value of the system parameter obtained from the system parameter area is taken as the current value of the system parameter; if the comparison result is different, the value of the system parameter obtained from the backup parameter area is used as the The current value of the system parameter;
  • the current value of the system parameter is stored in the memory in association with the attribute information of the system parameter. Further, after the value of the system parameter that is to be obtained from the backup parameter area is used as the current value of the system parameter, the method further includes:
  • the value of the system parameter in the backup parameter area is used to update the value of the system parameter in the system parameter area.
  • the method further includes:
  • Bay ij If you receive the name of the system parameter transmitted by the system program and the modified value, Bay ij:
  • the current value of the system parameter in the memory is updated according to the modified value
  • the storage type of the system parameter is the first storage type, updating the value of the system parameter in the system parameter area according to the current value of the updated system parameter in the memory; if the system parameter is determined
  • the storage type is the second storage type, and the value of the system parameter in the system parameter area and the backup parameter area is updated according to the current value of the updated system parameter in the memory.
  • the method further includes:
  • the attribute of the corresponding system parameter is found in the memory according to the name of the system parameter in the recorded modification information, and the storage address of the system parameter is found according to the found
  • the shifting quantity determines the value of the system parameter in the temporary parameter area; after determining that the storage type of the system parameter is the first storage type, updating the system parameter area according to the value of the system parameter in the temporary parameter area The value of the system parameter is determined; after determining that the storage type of the system parameter is the second storage type, updating the system parameter area and the system in the backup parameter area according to the value of the system parameter in the temporary parameter area The value of the parameter.
  • the attribute information further includes: a new value flag, a default value; and,
  • the method further includes:
  • the new value flag of the system parameter indicates that the system parameter is a new system parameter, then: the default value of the system parameter is used as the current value of the system parameter;
  • the storage type of the system parameter is the first storage type, storing the default value of the system parameter to the system parameter area according to the storage address offset of the system parameter; If it is determined that the storage type of the system parameter is the second storage type, the default value of the system parameter is stored in the system parameter area and the backup parameter area according to the storage address offset of the system parameter.
  • the method for upgrading the system parameter area and the backup parameter area includes:
  • the version upgrade flag is read
  • the attribute information of each system parameter is sequentially read from the configuration file, and the following operations are performed for each system parameter: searching for the system parameter from the backup file Attribute information, the backup file is a configuration file of a previous version of the terminal device;
  • the new value flag of the system parameter in the backup file indicates that the system parameter is a new system parameter, then: determining that the storage type of the system parameter is After the first storage type, the default value of the system parameter in the configuration file is written to the system parameter area according to the storage address offset of the system parameter; determining that the storage type of the system parameter is the second storage type Afterwards, the default value of the system parameter in the configuration file is written to the system parameter area and the backup parameter area according to the storage address offset of the system parameter; the default value of the system parameter in the configuration file is used as The current value of the system parameter;
  • the value of the system parameter obtained from the system parameter area is taken as the current value of the system parameter; determining the storage type of the system parameter is After the storage type is obtained, the value of the system parameter stored in the backup parameter area is obtained according to the storage address offset of the system parameter, and the value of the system parameter obtained from the backup parameter area is used as the system parameter.
  • Current value is the value of the system parameter stored in the backup parameter area.
  • the current value of the system parameter is stored in the memory in association with the attribute information of the system parameter.
  • the method for creating the system parameter area and the backup parameter area includes:
  • the attribute information of each system parameter is sequentially read from the configuration file, and the following operations are performed for each system parameter:
  • the default value of the system parameter is used as the current value of the system parameter; the current value of the system parameter is stored in the memory in association with the attribute information of the system parameter;
  • the storage type of the system parameter is the first storage type, storing the default value of the system parameter to the system parameter area according to the storage address offset of the system parameter;
  • the default value of the system parameter is stored in the system parameter area and the backup parameter area according to the storage address offset of the system parameter.
  • the method for recovering the system parameter area includes: After reading the attribute information of each system parameter in turn from the configuration file, perform the following operations for each system parameter:
  • the default value of the system parameter is used to restore the value of the system parameter in the system parameter area according to the storage address offset of the system parameter;
  • the value of the system parameter in the backup parameter area is used to cover the value of the system parameter in the system parameter area according to the storage address offset of the system parameter.
  • the attribute information further includes: a data type
  • the comparing the modified value with the found current value specifically includes:
  • the data type of the system parameter is an IP address type
  • the IP address of the binary data type is in the memory The current value comparison of the system parameters
  • the data type of the system parameter is an integer data type
  • the converted integer data is used to compare the current parameter of the system parameter in the memory.
  • the converted binary value is used to compare the current parameter of the system parameter in the memory.
  • the modified value is used to compare the current value of the system parameter in the memory.
  • a system parameter management system in a terminal device including:
  • the system parameter is loaded into the memory module, and after the terminal device is started, the attribute information of each system parameter is sequentially read from the configuration file, where the attribute information includes: a name of the system parameter, a storage address offset, and a storage type.
  • the value of the system parameter stored in the system parameter area is obtained according to the storage address offset of the system parameter; if the storage type of the system parameter is the first storage type, the system parameter is The value of the system parameter obtained in the area is taken as the current value of the system parameter; if the storage type of the system parameter is the second storage type, the storage address offset according to the system parameter is obtained and stored in the backup parameter area.
  • the value of the system parameter is And the value of the system parameter stored in the system parameter area, and compare the two; if the comparison result is consistent, the value of the system parameter obtained from the system parameter area is taken as the current parameter of the system parameter Value; if the comparison result is different, the value of the system parameter obtained from the backup parameter area is taken as the current value of the system parameter; the current value of the system parameter is stored in association with the attribute information of the system parameter to In memory
  • a system parameter reading module configured to: after receiving the name of the system parameter transmitted by the system program, find the current value of the system parameter from the memory according to the name of the received system parameter; The value is returned to the system program.
  • system parameter loading memory module is further configured to: after determining the value of the system parameter obtained from the backup parameter area as the current value of the system parameter, if it is determined that the acquired system parameter is in the backup parameter If the value in the area is different from the value in the system parameter area, the value of the system parameter in the backup parameter area is used to update the value of the system parameter in the system parameter area.
  • system further includes:
  • a system parameter modification module configured to: after receiving the name of the system parameter transmitted by the system program and modifying the value, searching for the current value of the system parameter from the memory according to the name of the received system parameter; Comparing the value with the found current value, determining whether to update according to the comparison result; if deciding to update, updating: the current value of the system parameter in the memory according to the modified value; and determining the system parameter
  • the storage type is the first storage type
  • the value of the system parameter in the system parameter area is updated according to the modified value; after determining that the storage type of the system parameter is the second storage type, according to the modified value Updating the value of the system parameter in the system parameter area and the backup parameter area.
  • system parameter modification module is further configured to: update the value of the system parameter in the system parameter area according to the modified value, or update the system parameter area according to the modified value and back up Before the value of the system parameter in the parameter area is updated, the value of the system parameter in the temporary parameter area is updated according to the current value of the updated system parameter in the memory, and the name of the system parameter is used as the modification information.
  • the storage address offset determines the value of the system parameter in the temporary parameter area; after determining that the storage type of the system parameter is the first storage type, updating the value according to the value of the system parameter in the temporary parameter area The value of the system parameter in the system parameter area; after determining that the storage type of the system parameter is the second storage type, the root Updating the system parameter area and the backup parameter according to the value of the system parameter in the temporary parameter area The value of this system parameter in the zone.
  • the attribute information further includes: a new value flag, a default value; and,
  • the system parameter loading memory module is further configured to: after reading the attribute information of the system parameter from the configuration file, if it is determined that the new value flag of the system parameter indicates that the system parameter is a new system parameter, then: the system The default value of the parameter is used as the current value of the system parameter; and after determining that the storage type of the system parameter is the first storage type, the default value of the system parameter is stored according to the storage address offset of the system parameter. After determining the storage type of the system parameter as the second storage type, the default value of the system parameter is stored in the system parameter area and the backup parameter area according to the storage address offset of the system parameter.
  • system further includes:
  • a parameter area creating module configured to read a factory mark after the terminal device is started; if the factory mark indicates that the terminal device is a new factory device, the attribute information of each system parameter is sequentially read from the configuration file, and Performing the following operations for each system parameter: using the default value of the system parameter as the current value of the system parameter; storing the current value of the system parameter and the attribute information of the system parameter in the memory; if the system parameter The storage type is the first storage type, and the default value of the system parameter is stored in the system parameter area according to the storage address offset of the system parameter; if the storage type of the system parameter is the second storage type, The storage address offset of the system parameter stores the default value of the system parameter to the system parameter area and the backup parameter area; if the factory mark indicates that the terminal device is a factory flag, the sending parameter area has created a notification.
  • system further includes:
  • a parameter area upgrading module configured to: after receiving the notification that the parameter area sent by the parameter area creation module has been created, read the version upgrade flag; if the version upgrade flag indicates that the system parameter area and the backup parameter area are to be upgraded,
  • the configuration file sequentially reads the attribute information of each system parameter, and performs the following operations for each system parameter: Searching for the attribute information of the system parameter from the backup file, where the backup file is the configuration of the previous version of the terminal device.
  • Parameter value is written to the system parameters and backup zone area; the default value of the system parameter in the configuration file as a current value of the system parameter; otherwise, determining the storage type for the system parameter After the first storage type, the value of the system parameter obtained from the system parameter area is taken as the current value of the system parameter; after determining that the storage type of the system parameter is the second storage type, according to the system parameter
  • the storage address offset obtains the value of the system parameter stored in the backup parameter area, and takes the value of the system parameter obtained from the backup parameter area as the current value of the system parameter;
  • the value is stored in the memory in association with the attribute information of the system parameter; if the version upgrade flag indicates that the system parameter area and the backup parameter area have been upgraded, the parameter area has been upgraded.
  • system further includes:
  • the parameter area recovery module is configured to read the attribute information of each system parameter sequentially from the configuration file after receiving the error information of the system parameter reading, and perform the following operations for each system parameter: if the storage type of the system parameter is The first storage type, the default value of the system parameter is used to restore the value of the system parameter in the system parameter area according to the storage address offset of the system parameter; if the storage type of the system parameter is the second storage type Then, according to the storage address offset of the system parameter, the value of the system parameter in the backup parameter area is used to cover the value of the system parameter in the system parameter area.
  • attribute information of system parameters is recorded in a configuration file
  • different management methods are used for different storage types of system parameters, so that some very important system parameters are saved in the system parameter area. It is saved in the backup parameter area. If the current value of the system parameter stored in the system parameter area is incorrect or lost due to an accident, you can use the current value of the system parameter stored in the backup parameter area to recover, thus ensuring and improving. Security of system parameters.
  • the attribute information of the system parameter in the configuration file further includes: a new value flag, so that the programmer can add a system parameter in the system parameter area or the backup parameter area: if the programmer modifies the system program of the terminal device, and New system parameters have also been added. Then, in the process of loading the configuration file information into the memory and the data in the system parameter area or the backup parameter area, the value of the new system parameter can be written to the system parameter area or Backup parameter area for easy management of new system parameters.
  • the system parameters can be avoided according to the backup file.
  • the value is to prevent all system parameters from being restored to their default values during system program upgrade. In this way, some system parameters set by the user will not be modified due to the upgrade of the system program version, and need to be reset, thereby greatly improving the user's body. Test.
  • FIG. 1 is a schematic diagram of a system parameter management system in a terminal device according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for loading system parameters into a memory according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for managing system parameter reading system parameters by a system parameter management system according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for managing system parameters by modifying a system parameter of a system parameter management system according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a method for creating a system parameter area and a backup parameter area according to an embodiment of the present invention
  • FIG. 7 is a flowchart of a method for upgrading and managing system parameters by a system parameter management system according to an embodiment of the present invention
  • FIG. 8 is a flowchart of a method for recovering and managing a system parameter area by a system parameter management system according to an embodiment of the present invention
  • FIG. 9 is a block diagram showing the internal structure of a system parameter management system according to an embodiment of the present invention.
  • module can be, but is not limited to: a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer.
  • an application running on a computing device and this computing device can be modules.
  • One or more modules can be located within a process and/or thread in execution.
  • the embodiment of the invention provides a system parameter management system according to the characteristics of the system parameters, so as to effectively manage various system parameters in the embedded system, so as to facilitate accessing and modifying system parameters, and increasing reliability and security of system parameters. And saves the storage space occupied by the overall system parameters.
  • the terminal device shown in FIG. 1 includes: a system parameter management system 101, a system program 102, a configuration file, and a system parameter area.
  • the system parameter area is used to store the value of the system parameter.
  • the system parameter area can be set in a non-volatile memory device, such as FLASH.
  • the inventor of the present invention analyzes the characteristics of the system parameters and finds that there are some very important parameters in the system parameters that will affect the normal startup of the system, and the backup system can also create a backup parameter area for the embedded system. The values of some important system parameters stored in the system parameter area are backed up and stored in the backup parameter area.
  • the backup parameter area can be set in a relatively reliable data storage device such as EEPROM, and it is not easy to lose data.
  • the data in the system parameter area described above may be stored in a FLASH storage medium in the form of a binary file, and the data in the backup parameter area may be stored in the EEPROM storage medium in the form of a binary file.
  • the storage types of system parameters include: a first storage type, a second storage type.
  • the system parameter of the first storage type refers to the system parameter whose value is only stored in the system parameter area; the system parameter of the second storage type refers to the value stored in the system parameter area and backed up and stored in the backup. System parameters in the parameter area.
  • the storage type of the system parameter may further include: a third storage type, a fourth storage type.
  • the system parameter of the third storage type refers to the system parameter whose value is only stored in the cache; the system parameter of the fourth storage type refers to the system parameter whose value is only stored in the backup parameter area.
  • the attribute information of the system parameter is recorded separately for each system parameter.
  • the attribute information of the system parameter may specifically include: a name of the system parameter, a storage type, and a storage address offset.
  • the storage address offset of the system parameter indicates the offset of the value of the system parameter stored in the system parameter area or the backup parameter area. That is to say, the value of the system parameter can be read or written from the system parameter area or the backup parameter area according to the storage address offset of the system parameter.
  • the attribute information of the system parameter recorded in the configuration file may further include: a data type, a storage length, and a default value of the system parameter.
  • the attribute information of the system parameter recorded in the configuration file may further include: deleting a flag, a new value flag, creating a flag indicating whether the value of the backup parameter area is writable, and whether the parameter can be restored to a default value when the factory state is restored. Wait.
  • Profiles can store attribute information for each system parameter in a variety of formats. For example, the attribute information of each system parameter is sequentially recorded in the configuration file, and the attribute information of different system parameters is separated by a newline character.
  • the storage manner of the attribute information of the system parameter in a configuration file provided in the embodiment of the present invention is: according to different storage types of the system parameter, the genus is divided for each storage type. In the storage area of the storage type, the same system parameter as the storage type, and the attribute information thereof is stored in the storage area of the storage type.
  • the storage type is a system parameter of the first storage type, and the attribute information is stored in the storage area of the first storage type; the storage type is a system parameter of the second storage type, and the attribute information is stored in the storage of the second storage type.
  • the storage type is a system parameter of the third storage type, and the attribute information is stored in the storage area of the third storage type; the storage type is a system parameter of the fourth storage type, and the attribute information is stored in the storage of the fourth storage type. In the area.
  • the identifier of the first storage type may be OAM-ONLY-GER
  • the identifier of the second storage type may be OAM-BOTH-IM-GER
  • the identifier of the third storage type may be OAM ONLY TMP
  • the fourth storage The type identifier can be OAM-ONLY-IM.
  • the storage area of the first storage type may be delimited in the configuration file according to the identification of the first storage type. Specifically, the end of the storage area of the first storage type is identified by the node identifier ⁇ OAM_ONLY_GER ⁇ t, the beginning of the storage area of the first storage type, and the node identifier ⁇ / OAM_ONLY_GER >.
  • the storage area of the second storage type may be delimited according to the identifier of the second storage type: with the node identifier ⁇ OAM_BOTH_IM_GER ⁇ t, the beginning of the storage area of the first storage type , with node identification ⁇ / OAM — BOTH — IMP — GER ⁇ ⁇ The end of the storage area of the first storage type.
  • each child node includes attribute information of the same system parameter as the storage type.
  • " ⁇ " can be used to mark the beginning of a child node, and "/>” to mark the end of the child node.
  • ⁇ /root> where ⁇ root> is the root node, marking the beginning of the configuration file, and the ⁇ /1"001> flag is the end of the configuration file.
  • the attribute information of the system parameters such as mac_id and device_id are recorded. Since the attribute information of these system parameters is stored in the storage area of the second storage type, it indicates that the storage type of these system parameters is the second storage class. Similarly, the attribute information of the system parameters such as net_user and net_pwd recorded in the storage area of the first storage type indicates that the storage type of the system parameters is the first storage type. This format facilitates separate storage. Management of the type of system parameters.
  • the system parameter management system 101 loads the information recorded in the configuration file and the system parameter values in the system parameter area into the memory, so that the system program can be read during startup and running. Specifically, the system parameter management system 101 sequentially reads the departments from the configuration file. Attribute information of the system parameter; for each system parameter, the current value of the system parameter is obtained from the system parameter area according to the storage address offset of the system parameter in the attribute information of the system parameter, and the system in the configuration file The attribute information of the parameter and the current value of the system parameter in the system parameter area are stored in the memory.
  • the system parameter management system 101 loads the information recorded in the configuration file and the method parameter of the system parameter area and the system parameter value in the backup parameter area into the memory. as shown in picture 2.
  • the system parameter management system 101 creates an array in memory.
  • the configuration file is stored at a fixed address of the non-volatile storage device from which the system parameter management system 101 opens the configuration file.
  • step S202 The attribute information of the system parameter is sequentially read from the configuration file; if the end identifier of the configuration file is read, step S261 is performed; otherwise, step S203 is performed.
  • step S261 is performed; otherwise, the following step S203 is performed for the attribute information of the currently read system parameter.
  • step S203 determining, according to the attribute information of the currently read system parameter, a storage type of the system parameter; if the storage type of the system parameter is the first storage type, executing step S211; if the storage type of the system parameter is the second storage If the storage type of the system parameter is the third storage type, step S231 is performed; if the storage type of the system parameter is the fourth storage type, step S241 is performed.
  • step S211 After obtaining the value of the system parameter from the system parameter area, and taking the current value of the system parameter, step S251 is performed.
  • step S251 the value of the system parameter stored in the system parameter area is obtained as the current value of the system parameter according to the storage address offset in the attribute information of the currently read system parameter.
  • S221 Obtain a value of the system parameter stored in a system parameter area.
  • the value of the system parameter stored in the system parameter area is obtained according to the storage address offset in the attribute information of the currently read system parameter.
  • step S223 The value of the system parameter obtained from the system parameter area is compared with the value of the system parameter obtained from the backup parameter area; if not, step S224 is performed; otherwise, step S225 is performed.
  • S224 The value of the system parameter in the system parameter area is updated by using the value of the system parameter in the backup parameter area.
  • the value of the system parameter in the system parameter area is updated using the value of the system parameter obtained from the backup parameter area. In this way, for some very important system parameters, if the value of the system parameter stored in the system parameter area is wrong or lost due to an accident, the value of the system parameter stored in the backup parameter area can be used for recovery, thereby ensuring and improving The security of the system parameters.
  • S225 Compare the value of the system parameter obtained from the backup parameter area with the value of the system parameter obtained from the system parameter area; determine the current value of the system parameter according to the comparison result; and then perform step S251.
  • the value of the system parameter stored in the backup parameter area and the value of the system parameter stored in the system parameter area are obtained according to the storage address offset of the system parameter, and the two are compared; If the comparison result is consistent, the value of the system parameter obtained from the system parameter area is taken as the current value of the system parameter; if the comparison result is different, the value of the system parameter obtained from the backup parameter area is obtained. As the current value of the system parameter. After that, step S251 is performed.
  • the value of the system parameter stored in the backup parameter area and the value of the system parameter stored in the system parameter area are obtained according to the storage address offset of the system parameter, and the two are compared; If the comparison result is consistent, the value of the system parameter obtained from the system parameter area is taken as the current value of the system parameter; if the comparison result is different, the system parameter obtained from the backup parameter area is taken. The value is used as the current value of the system parameter and the value of the system parameter in the backup parameter area is used to update the value of the system parameter in the system parameter area. After that, step S251 is performed.
  • step S231 After the default value in the attribute information of the currently read system parameter is used as the current value of the system parameter, step S251 is performed.
  • the value of the system parameter stored in the backup parameter area is obtained according to the storage address offset in the attribute information of the currently read system parameter.
  • step S251 is performed.
  • S251 The attribute information of the currently read system parameter is stored in the memory in association with the current value of the system parameter.
  • the attribute information of the currently read system parameter and the current value of the system parameter are stored in the i-th array element of the memory array.
  • the attribute information of the parameter may also include: A new value flag.
  • the new value flag is used to indicate whether the system parameter is a new system parameter. For example, a new value flag of 1 indicates that the system parameter is a new system parameter, that is, a system parameter whose value has not been written to the system parameter area or the backup parameter area; a new value flag of 0 indicates that the system parameter is not a new system parameter. , its value has been stored in the system parameter area or the system parameter of the backup parameter area.
  • the process of adding the value of the system parameter in the system parameter area or the backup parameter area is as follows: After the attribute information of the system parameter is read from the configuration file, if the new value flag of the system parameter indicates that the system parameter is a new system parameter Then: if it is determined that the storage type of the system parameter is the first storage type, the default value of the system parameter is stored in the system parameter area according to the storage address offset of the system parameter; if the storage of the system parameter is determined The type is the second storage type, and the default value of the system parameter is stored to the system parameter area and the backup parameter area according to the storage address offset of the system parameter.
  • the process of adding the value of the system parameter in the system parameter area or the backup parameter area may be performed by loading the information recorded in the configuration file and the value of the system parameter in the system parameter area and the backup parameter area into the memory.
  • the specific process is shown in Figure 3, including the following steps:
  • step S302 The attribute information of the system parameter is sequentially read from the configuration file; if the end identifier of the configuration file is read, step S361 is performed; otherwise, step S303 is performed.
  • step S361 is performed; otherwise, the following step S303 is performed for the attribute information of the currently read system parameter.
  • step S303 determining, according to the attribute information of the currently read system parameter, a storage type of the system parameter; if the storage type of the system parameter is the first storage type, performing step S310; if the storage type of the system parameter is the second storage If the storage type of the system parameter is the third storage type, step S331 is performed; if the storage type of the system parameter is the fourth storage Type, then step S340 is performed.
  • the attribute information of the system parameter may further include a delete flag. If the delete flag is set to 1, indicating that the system parameter has been deleted, it may not need to be loaded into the memory, therefore, performing this step.
  • step S303 it may be determined whether the deletion flag in the attribute information of the currently read system parameter is set to 1; if yes, the process directly jumps to step S302 to process the attribute information of the next system parameter; if not, step S303 is performed.
  • step S312 Determine the value of the new value flag in the attribute information of the currently read system parameter, and determine whether the system parameter is a new system parameter according to the value of the new value flag. If the determination is yes, then step S312 is performed; otherwise, step S311 is performed.
  • step S311 After obtaining the value of the system parameter from the system parameter area, and taking the current value of the system parameter, step S351 is performed.
  • step S351 the value of the system parameter stored in the system parameter area is obtained as the current value of the system parameter according to the storage address offset in the attribute information of the currently read system parameter.
  • S312 Write the default value in the attribute information of the currently read system parameter into the system parameter area.
  • the default value of the system parameter is written into the system parameter area according to the storage address offset in the attribute information of the currently read system parameter.
  • step S313 After the default value of the system parameter is used as the current value of the system parameter, step S351 is performed.
  • step S351 is performed.
  • S321 Obtain a value of the system parameter stored in a system parameter area.
  • the value of the system parameter stored in the system parameter area is obtained according to the storage address offset in the attribute information of the currently read system parameter.
  • the value of the system parameter stored in the backup parameter area is obtained according to the storage address offset in the attribute information of the currently read system parameter.
  • S323 The value of the system parameter obtained from the system parameter area is compared with the value of the system parameter obtained from the backup parameter area; if not, step S324 is performed; otherwise, step S325 is performed.
  • S324 Update the value of the system parameter in the system parameter area by using the value of the system parameter in the backup parameter area.
  • the value of the system parameter in the system parameter area is updated using the value of the system parameter obtained from the backup parameter area. In this way, for some very important system parameters, if the value of the system parameter stored in the system parameter area is wrong or lost due to an accident, the value of the system parameter stored in the backup parameter area can be used for recovery, thereby ensuring and improving The security of the system parameters.
  • step S325 After obtaining the value of the system parameter from the backup parameter area as the current value of the system parameter, step S351 is performed.
  • S326 Write the default value in the attribute information of the currently read system parameter into the system parameter area and the backup parameter area.
  • the default value of the system parameter is written into the system parameter area and the backup parameter area according to the storage address offset in the attribute information of the currently read system parameter.
  • step S351 After the default value of the system parameter is used as the current value of the system parameter, step S351 is performed.
  • step S331 After the default value in the attribute information of the currently read system parameter is used as the current value of the system parameter, step S351 is performed.
  • step S341 After obtaining the value of the system parameter from the backup parameter area and using it as the current value of the system parameter, step S351 is performed.
  • step S351 the value of the system parameter stored in the backup parameter area is obtained according to the storage address offset in the attribute information of the currently read system parameter. After the value of the system parameter obtained from the backup parameter area is taken as the current value of the system parameter, step S351 is performed.
  • S342 Write the default value in the attribute information of the currently read system parameter into the backup parameter area.
  • the default value of the system parameter is written into the backup parameter area according to the storage address offset in the attribute information of the currently read system parameter.
  • step S351 After the default value of the system parameter is used as the current value of the system parameter, step S351 is performed. Specifically, after the default value in the attribute information of the currently read system parameter is used as the current value of the system parameter, step S351 is performed.
  • S351 Store the attribute information of the currently read system parameter in the memory in association with the current value of the system parameter.
  • the attribute information of the currently read system parameter and the current value of the system parameter are stored in the i-th array element of the memory array.
  • the system parameter management system 101 manages the system parameters, and after loading the information recorded in the configuration file and the system parameter area and the system parameter value in the backup parameter area into the memory, the method may further include: starting the system program 102. Management of reading, modifying, etc. of system parameters during the process.
  • the system parameter management system 101 reads the system parameter management method for the system program 102.
  • the specific process is as shown in FIG. 4, and includes the following steps:
  • S401 Receive the name of the system parameter transmitted by the system program 102.
  • the name of the system parameter can be transmitted to the API function of the system parameter management system 101 that reads the system parameter.
  • S402 Find the current value of the system parameter from the memory according to the name of the received system parameter.
  • the API function of the system parameter management system 101 for reading the system parameter may be based on the received system parameter. Name, find the current value of the system parameter from the memory.
  • the system parameter management system 101 can return the found current value directly to the system program 102.
  • the found current values can be converted into a string and then returned; thus, the interface uniformity for program personnel programming is facilitated.
  • the system parameter management system 101 can convert the converted string to the system program 102 after the conversion according to the data type:
  • the IP value of the string data type is converted after the current value found is converted from the IP address of the binary data type to the IP address of the string data type. Returned to the system program 102; If the data type in the attribute information of the system parameter is an integer data type, the converted current value is converted from the integer data (Int type data) to the integer represented by the string, and the string is returned to the system program. 102;
  • the device value of the string type is returned to the system program 102 after converting the found current value from the binary value to the device type of the string type.
  • the version number of the string type is returned to the system program 102.
  • the current value found is directly returned to the system program 102.
  • the system parameter management system 101 modifies the management method of the system parameters to the system program 102.
  • the specific process is as shown in FIG. 5, and includes the following steps:
  • S501 Receive the name of the system parameter transmitted by the system program 102 and the modified value.
  • the API function of the system parameter modified by the system parameter management system 101 can transmit the name of the system parameter and the modified value.
  • S502 Find a current value of the system parameter from the memory according to the name of the received system parameter.
  • the API function of the system parameter management system 101 for modifying the system parameters finds the current value of the system parameter from the memory according to the name of the received system parameter.
  • step S503 Compare the modified value with the found current value, and determine whether to update according to the comparison result. If it is decided to update, step S504 is performed; otherwise, it ends, and the update success information is returned to the system program.
  • the API function of the system parameter management system 101 for modifying the system parameters compares the modified value with the found current value, and determines whether to update according to the comparison result. If it is decided to update, step S504 is performed; otherwise, it ends, and the update success information is returned to the system program.
  • the API function of the system parameter management system 101 for modifying the system parameters may also convert the modified value, and then perform the converted value and the found current value. Compare, determine whether the comparison results are consistent; if they are inconsistent, decide to update; otherwise, do not have to update.
  • the modified value is generally in the form of a string, and the conversion method includes: If the data type in the attribute information of the system parameter is an IP address type, the modified value is converted from the IP address of the string data type to the IP address of the binary data type, and the IP address of the binary data type is used to compare the in-memory.
  • the current value of the system parameter determines whether the two are consistent; if the data type in the attribute information of the system parameter is an integer data type, the modified value is converted from the integer represented by the string to the integer data (Int type data) After the converted integer data (Int type data) is used to compare the current values of the system parameters in the memory to determine whether the two are consistent; if the data type in the attribute information of the system parameter is the device number type , after converting the modified value from the device number of the string type to the binary value, comparing the current value of the system parameter in the memory with the converted binary value to determine whether the two are consistent;
  • the modified value is converted from the version number of the string type to the binary value, and the system parameter in the memory is compared using the converted binary value. Current value, to determine whether the two are consistent;
  • the current value of the system parameter in the memory is directly compared using the modified value to determine whether the two are consistent.
  • the API function of the system parameter management system 101 for modifying the system parameters may directly update the current value of the system parameter in the memory according to the modified value.
  • the memory may be The updated current value of the system parameter is first written into a temporary parameter area, that is, step S505 is performed.
  • S505 Update the value of the system parameter in the temporary parameter area according to the current value of the updated system parameter in the memory, and record the name of the system parameter as the modification information.
  • the system parameter management system 101 also creates a temporary parameter area in the memory, and writes the current value of the updated system parameter in the memory to the temporary parameter area according to the storage address offset of the system parameter.
  • the system parameter management system 101 also records the name of the system parameter as the modification information.
  • step S506 When the parameter area update period arrives, or after the user triggers the shutdown, the attribute information of the corresponding system parameter in the memory is searched according to the name of the system parameter in the recorded modification information, and step S507 is performed.
  • the storage type and storage address offset of the system parameter can be determined. In this way, it is possible to avoid excessively frequent writing of the system parameter area or the backup parameter area, resulting in damage to the storage device.
  • S511 Update the value of the system parameter in the system parameter area according to the current value of the updated system parameter in the memory.
  • the value of the system parameter in the system parameter area is updated according to the current value of the updated system parameter in the memory according to the storage address offset of the system parameter.
  • S521 Update the value of the system parameter in the system parameter area and the backup parameter area according to the current value of the updated system parameter in the memory.
  • the current parameter value of the updated system parameter in the memory is used to update the value of the system parameter in the system parameter area and the backup parameter area.
  • S531 Update the value of the system parameter in the backup parameter area according to the current value of the updated system parameter in the memory.
  • the value of the system parameter in the backup parameter area is updated according to the current value of the updated system parameter in the memory according to the storage address offset of the system parameter.
  • log level data can be written; if the storage type indicates that the data is log level data, the modified value of the data is used to directly set the log level of the current program.
  • system parameter management system 101 can also automatically create the system parameter area and the backup parameter area.
  • the specific method flow is shown in Figure 6, including the following steps:
  • step S601 After the terminal device is started, the factory mark is read; if the factory mark indicates that the terminal device is a new factory device, step S602 is performed.
  • the system parameter management system 101 reads the factory logo from the set address before loading the information recorded in the configuration file 102 and the system parameter values in the system parameter area and the backup parameter area into the memory. . If the value of the factory mark (such as the factory flag value is 0) indicates that the terminal device is a new factory device, and the system parameter area and the backup parameter area have not been created, perform the following step S602; if the value of the factory mark (such as the factory mark) If the value is set to 1), it indicates that the terminal device is not a new factory device. If the system parameter area and the backup parameter area have been created, the following steps S602-S631 need not be performed.
  • the factory mark such as the factory flag value is 0
  • S602 Open the configuration file.
  • S603 The attribute information of the system parameter in the configuration file is sequentially read, and the attribute information of the currently read system parameter is performed as follows: S604.
  • S604 The default value in the attribute information of the currently read system parameter is used as the current value of the system parameter, and the current value of the system parameter is stored in the memory in association with the attribute information of the system parameter.
  • S611 Write the default value of the system parameter to the corresponding address of the system parameter area according to the storage address offset of the system parameter.
  • S621 Write the default value of the system parameter to the corresponding parameter of the system parameter area and the backup parameter area according to the storage address offset of the system parameter.
  • S641 Write the default value of the system parameter to the corresponding address of the backup parameter area according to the storage address offset of the system parameter.
  • S651 The system parameter area and the backup parameter area are created.
  • the terminal device writes the following values to the backup parameter area according to a predetermined offset: Mac address (mac_id), device ID (device_id), factory flag ( device_flag ).
  • the value of the factory mark is set to 1, indicating that the terminal device is not a new factory device.
  • system parameter management system 101 may further include management for upgrading the system parameters.
  • the specific method flow is as shown in FIG. 7, and includes the following steps:
  • step S701 After the terminal device is started, the version upgrade flag is read; and the version upgrade flag indicates that the system parameter area and the backup parameter area are to be upgraded, and step S702 is performed.
  • the system parameter management system 101 reads the information recorded in the configuration file 102 and the values of the system parameters in the system parameter area and the backup parameter area before loading the factory flag in the above step S601. , you can also read the version upgrade flag to determine whether to upgrade the system parameters. If the value of the version upgrade flag (for example, the version upgrade flag is 1) indicates that the system parameter area and the backup parameter area are to be upgraded, the following step S702 is performed; if the value of the version upgrade flag is set (for example, the version upgrade flag value is set to 0) The system parameter area and the backup parameter area do not need to be upgraded, and it is not necessary to perform the following steps S702-S731.
  • S703 The attribute information of the system parameter in the configuration file is sequentially read, and the attribute information of the currently read system parameter is performed as follows: S704.
  • step S704 Find the pair from the backup file corresponding to the attribute information of the currently read system parameter. Attribute information of the system parameter; If the new value of the found system parameter is not found in the backup file, or the new system value of the found system parameter indicates that the system parameter is a new system parameter, step S711 is performed; otherwise, step S721 is performed.
  • the backup file is the previous version of the configuration file, which records the attribute information of the system parameters used in the previous version of the terminal device.
  • some system parameters may be newly defined or deleted.
  • the upgrade file is upgraded with reference to the previous version of the configuration file.
  • the attribute information of the corresponding system parameter is found from the backup file according to the name of the system parameter in the attribute information of the currently read system parameter.
  • the attribute information of the system parameter currently read in the configuration file is:
  • S711 Write the default value of the system parameter to the system parameter area, backup parameter area or memory.
  • the specific process is as shown in the above steps S604-S641, and details are not described herein again.
  • the attribute information of the corresponding system parameter is not found in the backup file, or the new value flag of the found system parameter indicates that the system parameter is a new system parameter, it indicates that the system parameter is a new system parameter after the upgrade version.
  • the default values of the newly added system parameters are written to the system parameter area, backup parameter area or memory. The specific process is as shown in the above steps S604-S641, and details are not described herein again.
  • S721 It is not necessary to modify the value of the system parameter in the system parameter area and the backup parameter area, but load the value of the system parameter in the system parameter area or the backup parameter area into the memory.
  • the specific process is the same as the above steps S303-S361, and details are not described herein again.
  • the new value flag of the parameter indicates that the system parameter is not a new system parameter, indicating that the value of the system parameter exists in the system parameter area or the backup parameter area, for example, the above system parameter net_user:
  • the specific method is the same as the above steps S303-S361, and details are not described herein again.
  • the backup file contains the values of the system parameters that have been written to the system parameter area and the backup parameter area in the previous version of the configuration file, in the system program upgrade process, the backup of the system parameters can be avoided according to the backup file.
  • system parameter management system 101 may further include management for restoring the system parameter area, and the specific method flow. As shown in Figure 8, the following steps are included:
  • S802 The attribute information of the system parameter in the configuration file is sequentially read, and the attribute information of the currently read system parameter is performed as follows: S803.
  • step S803 Determine a storage type of the system parameter. If it is the first storage type, step S811 is performed; if it is the second storage type, step S821 is performed.
  • S811 Restore the value of the system parameter in the system parameter area according to a storage address offset of the system parameter, using a default value of the system parameter.
  • S821 Obtain a value of the system parameter in the backup parameter area according to the storage address offset of the system parameter, and use the value of the system parameter in the obtained backup parameter area to cover the system parameter in the system parameter area. value.
  • a block diagram of an internal structure of a system parameter management system includes: a system parameter loading memory module 901, a system parameter reading ear module 902
  • the system parameter loading memory module 901 is configured to sequentially read attribute information of each system parameter from the configuration file after the terminal device is started, where the attribute information includes: a name of the system parameter, a storage address offset, and a storage type; For each system parameter, the value of the system parameter stored in the system parameter area is obtained according to the storage address offset of the system parameter; if the storage type of the system parameter is the first storage type, the system parameter area is Obtaining the value of the system parameter as the current value of the system parameter; if the storage type of the system parameter is the second storage type, according to the system The storage address offset of the system parameter obtains the value of the system parameter stored in the backup parameter area and the value of the system parameter stored in the system parameter area, and compares the two; if the comparison result is consistent, The value of the system parameter obtained from the system parameter area is taken as the current value of the system parameter; if the comparison result is different, the value of the system parameter obtained from the backup parameter area is used as the system parameter.
  • the current value is used, and the
  • the system parameter reading module 902 is configured to: after receiving the name of the system parameter transmitted by the system program, find the current value of the system parameter from the memory according to the name of the received system parameter; The value is returned to the system program.
  • system parameter management system may further include: a system parameter modification module 903.
  • the system parameter modification module 903 is configured to: after receiving the name of the system parameter transmitted by the system program and the modified value, find the current value of the system parameter from the memory according to the name of the received system parameter; The value is compared with the found current value, and whether the update is determined according to the comparison result; if the update is decided, the value of the system parameter in the temporary parameter area is updated according to the current value of the updated system parameter in the memory. And recording the name of the system parameter as the modification information; and, when the parameter area update period arrives, or after the user triggers the shutdown, the corresponding parameter is found in the memory according to the name of the system parameter in the recorded modification information.
  • the attribute of the system parameter determining the value of the system parameter in the temporary parameter area according to the stored storage address offset of the found system parameter; after determining that the storage type of the system parameter is the first storage type, according to the temporary
  • the value of the system parameter in the parameter area updates the system parameter in the system parameter area After determining that the storage type of the system parameter is the second storage type, updating the value of the system parameter in the system parameter area and the backup parameter area according to the value of the system parameter in the temporary parameter area .
  • system parameter loading memory module 901 is further configured to: after reading the attribute information of the system parameter from the configuration file, if it is determined that the new value flag of the system parameter indicates that the system parameter is a new system parameter, then: The default value of the system parameter is taken as the current value of the system parameter; and after determining that the storage type of the system parameter is the first storage type, the default value of the system parameter is stored according to the storage address offset of the system parameter to The system parameter area; after determining that the storage type of the system parameter is the second storage type, storing the default value of the system parameter to the system parameter area and the backup parameter area according to the storage address offset of the system parameter.
  • the system parameter management system may further include: a parameter area creation module 904.
  • the parameter area creating module 904 is configured to read the factory mark after the terminal device is started; if the factory mark indicates that the terminal device is a new factory device, the attribute information of each system parameter is sequentially read from the configuration file, and Performing the following operations for each system parameter: using the default value of the system parameter as the current value of the system parameter; storing the current value of the system parameter and the attribute information of the system parameter in the memory; if the system parameter The storage type is the first storage type, and the default value of the system parameter is stored in the system parameter area according to the storage address offset of the system parameter; if the storage type of the system parameter is the second storage type, The storage address offset of the system parameter stores the default value of the system parameter to the system parameter area and the backup parameter area; if the factory mark indicates that the terminal device is a factory flag, the sending parameter area has created a notification.
  • system parameter management system may further include: a parameter area upgrading module 905.
  • the parameter area upgrading module 905 is configured to: after receiving the notification that the parameter area sent by the parameter area creation module has been created, read the version upgrade flag; if the version upgrade flag indicates that the system parameter area and the backup parameter area are to be upgraded,
  • the configuration file sequentially reads the attribute information of each system parameter, and performs the following operations for each system parameter: Searching for the attribute information of the system parameter from the backup file, where the backup file is the configuration of the previous version of the terminal device.
  • the default value is written to the system parameter area and the backup parameter area; the default value of the system parameter in the configuration file is used as the current value of the system parameter; otherwise, the storage type of the system parameter is determined to be the first After storing the type, the value of the system parameter obtained from the system parameter area is taken as the current value of the system parameter; after determining that the storage type of the system parameter is the second storage type, the storage address according to the system parameter is determined.
  • the offset obtains the value of the system parameter stored in the backup parameter area, and takes the value of the system parameter obtained from the backup parameter area as the current value of the system parameter; the current value of the system parameter is The attribute information of the system parameter is stored in the memory; if the version upgrade flag indicates that the system parameter area and the backup parameter area have been upgraded, the parameter area has been upgraded.
  • the above-mentioned system parameter loading memory module 901 specifically reads the attribute information of each system parameter from the configuration file and performs processing after receiving the parameter area upgrade notification sent by the parameter area upgrading module 905.
  • the system parameter loading memory module 901 reads and processes the attribute information of each system parameter. The process has been described in detail before and will not be mentioned here.
  • system parameter management system may further include: a parameter area recovery module 906.
  • the parameter area recovery module 906 is configured to read the attribute information of each system parameter sequentially from the configuration file after receiving the information of the system parameter reading error, and perform the following operations for each system parameter: if the storage type of the system parameter is The first storage type, the default value of the system parameter is used to restore the value of the system parameter in the system parameter area according to the storage address offset of the system parameter; if the storage type of the system parameter is the second storage type Then, according to the storage address offset of the system parameter, the value of the system parameter in the backup parameter area is used to cover the value of the system parameter in the system parameter area.
  • system parameter management system may further include: a command input module, a calling module (not marked in the figure).
  • the command input module provides the developer with a command line input interface and receives the command line entered by the developer.
  • the format of the command line can be as follows:
  • OAM Command Command OAM Command
  • Operation Type Data Name
  • Another example is a specific command line: ./oamclient setint net— mode 2 1 , which means that the net_mode data is set to int data with a value of 2 and a length of 1.
  • a specific command line: ./oamclient getval boot ver which means to read the value of the boot-ver data. Operations that back up data in the parameter area, such as reading, writing, restoring default values, and so on.
  • the calling module parses the command line received by the command input module, and calls the corresponding module according to the parsing result. Specifically, the calling module calls the corresponding module according to the parsed operation type. For example, if the operation type is "setval", the system parameter modification module 903 is called, and the parameter value in the command line is written to the system parameter area or the backup parameter area; if the operation type is "getval” as described above. Then, the system parameter reading module 902 is called to read out the parameter values of the corresponding data in the system parameter area or the backup parameter area.
  • Command input modules and call modules provide developers with convenient data manipulation widgets that developers can use to manipulate data, such as modifications, reads, etc., for easy testing.
  • the specific working process involved in each module in the system parameter management system of the embodiment of the present invention may be referred to the related content disclosed in the method for managing the system parameters by the system parameter management system, and details are not described herein again.
  • the terminal device can be a mobile phone, a smart TV, a set top box, and the like.
  • attribute information of system parameters is recorded in a configuration file
  • different management methods are used for different storage types of system parameters, so that some very important system parameters are saved in the system parameter area. It is saved in the backup parameter area. If the current value of the system parameter stored in the system parameter area is incorrect or lost due to an accident, you can use the current value of the system parameter stored in the backup parameter area to recover, thus ensuring and improving. Security of system parameters.
  • the attribute information of the system parameter in the configuration file further includes: a new value flag, so that the programmer can add a system parameter in the system parameter area or the backup parameter area: if the programmer modifies the system program of the terminal device, and New system parameters have also been added. Then, in the process of loading the configuration file information into the memory and the data in the system parameter area or the backup parameter area, the value of the new system parameter can be written to the system parameter area or Backup parameter area for easy management of new system parameters.
  • the system parameters can be avoided according to the backup file.
  • the value is to prevent all system parameters from being restored to their default values during system program upgrade. In this way, some system parameters set by the user are not modified due to the upgrade of the system program version, and need to be reset, thereby greatly improving the user's experience.

Abstract

L'invention concerne un procédé et un système conçus pour la gestion d'un paramètre système dans un dispositif terminal. Ledit procédé se déroule de la manière suivante : suite à la réception du nom d'un paramètre système transmis par un programme système, la valeur actuelle du paramètre système est recherchée dans une mémoire puis renvoyée ; la mémoire stocke en association la valeur actuelle du paramètre système et des informations d'attribut concernant le paramètre système ; les informations d'attribut concernant le paramètre système sont lues les unes après les autres dans un fichier de configuration, et la valeur actuelle du paramètre système est obtenue à partir d'une zone de paramètres système ou d'une zone de paramètres de secours. Puisque les informations d'attribut concernant le paramètre système sont enregistrées dans le fichier de configuration, il existe différents procédés de gestion pour différents types de stockage des paramètres système, et, par conséquent, pour certains paramètres système très importants qui sont stockés dans la zone de paramètres système ainsi que dans la zone de paramètres de secours, si les données stockées dans la zone de paramètres système provoquent des erreurs ou sont perdues suite à un accident, les données dans la zone de paramètres de secours peuvent être utilisées pour effectuer la restauration, ce qui garantit et renforce la sécurité des paramètres système.
PCT/CN2012/077920 2012-01-19 2012-06-29 Procédé et système conçus pour la gestion d'un paramètre système dans un dispositif terminal WO2013107158A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201210017149 CN102609336B (zh) 2012-01-19 2012-01-19 数据管理方法及系统
CN201210017149.1 2012-01-19

Publications (1)

Publication Number Publication Date
WO2013107158A1 true WO2013107158A1 (fr) 2013-07-25

Family

ID=46526728

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077920 WO2013107158A1 (fr) 2012-01-19 2012-06-29 Procédé et système conçus pour la gestion d'un paramètre système dans un dispositif terminal

Country Status (2)

Country Link
CN (1) CN102609336B (fr)
WO (1) WO2013107158A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489439A (zh) * 2019-09-12 2019-11-22 宁波三星医疗电气股份有限公司 一种参数处理方法与电力终端
CN112653564A (zh) * 2019-10-10 2021-04-13 中盈优创资讯科技有限公司 设备开局配置方法及装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828196B (zh) * 2016-03-09 2019-01-15 青岛海信电器股份有限公司 一种智能电视数据处理方法及装置
CN106021029A (zh) * 2016-05-27 2016-10-12 努比亚技术有限公司 Nv参数的备份恢复装置和方法
CN109683948A (zh) * 2018-12-13 2019-04-26 深圳创维-Rgb电子有限公司 系统数据导入方法、装置、电子产品及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1746857A (zh) * 2004-09-08 2006-03-15 华为技术有限公司 一种移动终端关键参数的恢复方法
CN1783025A (zh) * 2004-12-03 2006-06-07 华为技术有限公司 嵌入式系统数据备份装置及方法
US20080235471A1 (en) * 2007-03-23 2008-09-25 Michael Feldman Smart batteryless backup device and method therefor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366740B2 (en) * 2004-05-03 2008-04-29 Microsoft Corporation Systems and methods for automatic maintenance and repair of enitites in a data model
US7509544B2 (en) * 2007-02-26 2009-03-24 Inventec Corporation Data repair and synchronization method of dual flash read only memory
CN102243602B (zh) * 2010-05-11 2013-03-27 西安龙飞软件有限公司 一种Linux系统中使用闪存保存系统配置的方法
CN102081577B (zh) * 2011-01-12 2013-02-13 厦门雅迅网络股份有限公司 对Flash存储器的数据存储结构进行数据操作的方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1746857A (zh) * 2004-09-08 2006-03-15 华为技术有限公司 一种移动终端关键参数的恢复方法
CN1783025A (zh) * 2004-12-03 2006-06-07 华为技术有限公司 嵌入式系统数据备份装置及方法
US20080235471A1 (en) * 2007-03-23 2008-09-25 Michael Feldman Smart batteryless backup device and method therefor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489439A (zh) * 2019-09-12 2019-11-22 宁波三星医疗电气股份有限公司 一种参数处理方法与电力终端
CN112653564A (zh) * 2019-10-10 2021-04-13 中盈优创资讯科技有限公司 设备开局配置方法及装置
CN112653564B (zh) * 2019-10-10 2023-04-18 中盈优创资讯科技有限公司 设备开局配置方法及装置

Also Published As

Publication number Publication date
CN102609336B (zh) 2013-12-25
CN102609336A (zh) 2012-07-25

Similar Documents

Publication Publication Date Title
KR101510808B1 (ko) 네트워크 단말기에서의 강력한 펌웨어 업그레이드
US8789035B2 (en) Method and apparatus for updating firmware
US9465603B2 (en) Application management apparatus, application management system, application management method, and non-transitory computer readable medium
WO2013107158A1 (fr) Procédé et système conçus pour la gestion d'un paramètre système dans un dispositif terminal
CN108509215B (zh) 一种系统软件的更换方法、装置、终端设备及存储介质
CN108234554B (zh) 一种云文件编辑方法及装置
CN110442473B (zh) 一种非易失性数据存储方法、装置、电子设备及介质
US20140033229A1 (en) Method and computation node for processing application data
US20150012732A1 (en) Method and device for recombining runtime instruction
CN111989656A (zh) 可配置的恢复状态
JP2009301264A (ja) Nand型フラッシュメモリアクセス装置及びnand型フラッシュメモリアクセスプログラム及び記録媒体
CN108037932B (zh) Spi-nand的配置文件获取方法和装置
JP2016533588A (ja) 記憶処理方法、装置及び端末
CN114780019A (zh) 电子设备的管理方法、装置、电子设备及存储介质
WO2023198056A1 (fr) Procédé de mise à jour de micrologiciel pour dispositif intégré, et dispositif intégré
WO2020113382A1 (fr) Procédé, appareil et dispositif de mise à niveau de matériel et support de stockage
US10564894B2 (en) Free space pass-through
KR20060088654A (ko) 이동통신 단말기의 데이터 복구 시스템 및 방법
CN114020211B (zh) 存储空间管理方法、装置、设备及存储介质
CN112181467B (zh) 终端的存储器固件升级方法、装置、终端和存储介质
CN111858018B (zh) Cgroup配置的方法、装置、计算机设备及存储介质
CN114356290A (zh) 一种数据处理方法、装置及计算机可读存储介质
KR20080023064A (ko) 무선 통신 단말의 프로그램 갱신 방법 및 시스템
CN117270914B (zh) 一种终端设备的系统升级方法、装置、设备和介质
JP2006221394A (ja) データアクセス方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12866236

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12866236

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 12866236

Country of ref document: EP

Kind code of ref document: A1