System parameter processing method and device, equipment and storage medium

By querying and managing parameter description fields in memory in an embedded system, and optimizing the storage and management of target parameters in a ring queue feature, the problems of low memory usage efficiency and high frequency areas in an embedded system are solved, achieving high efficiency parameter storage and management.

CN118964224APending Publication Date: 2024-11-15NANO DIAGNOSIS FOR HEALTH BIOTECH (GUANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411007440.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The data storage and management of embedded systems in the medical device field have problems such as low memory usage efficiency and high frequency storage areas that are prone to failure and inconvenient to find parameters. The storage management of existing solutions is complex and difficult to transplant or change.

Method used

By querying the target parameters at the system startup, obtaining the parameter description field in the memory, determining valid records, and querying and managing target parameters based on the ring queue characteristics, optimizing the frequency and efficiency of the storage area usage.

Benefits of technology

It improves the efficiency of parameter storage, access and management, reduces the difficulty and complexity of data management, transplantation and change, takes into account the memory characteristics and the convenience of data transplantation, and avoids the risk of failure of storage areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964224A_ABST
    Figure CN118964224A_ABST
Patent Text Reader

Abstract

The invention discloses a system parameter processing method and device, equipment and a storage medium, and the method comprises the steps: responding to a starting instruction of a system, and querying a target parameter needed by system operation; acquiring a parameter description field from a memory; wherein the parameter description field comprises the initial address of each parameter in the memory, the total size of a storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the data volume of a single record, the address offset of a state flag of the single record and the address offset of the state flag of the block where the single record is located; determining an effective record corresponding to each parameter according to the parameter description field; and querying and obtaining each target parameter according to the effective record and the annular queue feature, and operating the system based on the target parameters. According to the method, the parameter storage and access efficiency can be improved, and efficient operation of the system is facilitated. The method and the device can be widely applied to the technical field of data storage, in particular to data storage of an embedded system of a medical instrument.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data storage technology, and in particular to a method, device, equipment and storage medium for processing system parameters. Background Art

[0002] Embedded systems are widely used in various fields, and data storage and management is an important aspect of embedded systems. In the application field of embedded systems, especially in the field of medical devices, there are still many difficulties and challenges in the data storage and management of embedded systems.

[0003] Embedded systems use memory to store data and programs, mainly storing parameters required for system operation, such as program instructions, data, and intermediate results. Program instructions are sequences of instructions for computer programs stored in memory, which tell embedded devices how to perform specific operations. Data is the input and output of program processing, stored in memory so that the program can process it. Intermediate results are temporary data generated by the program during operation, stored in memory so that the program can operate and use them when needed. These parameters work together to enable embedded devices to process data and perform calculations.

[0004] In the related art, there are two schemes for embedded devices to use memory. One scheme is to divide the memory into blocks of specified sizes according to the data structure of each parameter, and each block stores the parameters of the specified data structure. The disadvantage of this scheme is that the memory utilization efficiency is not high, and for flash memory (there is a limit on the number of erase times), the storage area with high usage frequency is at risk of failure, and parameter search is relatively inconvenient; the other scheme is to apply for use at any time. The advantage of this scheme is that the utilization efficiency is improved, and the usage frequency of the entire storage area is roughly the same. The disadvantage is that the storage management is complicated and the scheme is difficult to transplant or change.

[0005] In summary, the problems existing in related technologies need to be solved urgently. Summary of the invention

[0006] The purpose of this application is to solve one of the technical problems existing in the related art to at least a certain extent.

[0007] To this end, an object of embodiments of the present application is to provide a method, apparatus, device and storage medium for processing system parameters.

[0008] In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present application include:

[0009] On the one hand, an embodiment of the present application provides a method for processing system parameters, the method comprising:

[0010] In response to the system startup instruction, query the target parameters required for the system operation; the target parameters include single-record parameters and multi-record parameters;

[0011] Obtain a parameter description field from the memory; wherein the parameter description field includes the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the data volume of a single record, the address offset of the first state flag of the single record, and the address offset of the second state flag of the block where the single record is located;

[0012] Determine the valid records corresponding to each parameter according to the parameter description field;

[0013] According to the valid records, each of the target parameters is queried and acquired according to the ring queue characteristics, and the system is operated based on the target parameters.

[0014] In addition, the method for processing system parameters according to the above embodiment of the present application may also have the following additional technical features:

[0015] Further, in one embodiment of the present application, the single block size is obtained by:

[0016] Querying the minimum erasing unit of the memory;

[0017] The single block size is determined according to the minimum erasing unit and a preset integer multiple.

[0018] Further, in one embodiment of the present application, determining the valid record corresponding to each parameter according to the parameter description field includes:

[0019] According to the address offset of the second status flag, query the second status flag corresponding to the block where the single record is located;

[0020] Determining whether the block where the single record is located is valid according to the second status flag;

[0021] If the block where the single record is located is valid, query the first status flag corresponding to the single record according to the address offset of the first status flag;

[0022] Determining whether the single record is valid according to the first status flag;

[0023] If the single record is valid, the single record is determined as a valid record corresponding to the parameter.

[0024] Further, in one embodiment of the present application, querying and acquiring each of the target parameters according to the valid records and the ring queue characteristics includes:

[0025] Within the storage range of the target parameter, traverse from the starting address to a larger address and analyze each single record one by one to see if it is valid;

[0026] If the target parameter is a single-record parameter, the most recently confirmed valid single record is taken as the target parameter; or if the target parameter is a multiple-record parameter, several single records with preset characteristics and most recently confirmed valid are taken as the target parameter.

[0027] Furthermore, in one embodiment of the present application, the method further includes: when a parameter changes and needs to be stored or invalidated, a new record is added or a status flag of an old record is changed according to the latest address variable of the parameter and the characteristics of the circular queue.

[0028] Furthermore, in one embodiment of the present application, the method further includes:

[0029] Obtaining the usage frequency of each of the target parameters;

[0030] generating a storage volume coefficient according to the usage frequency;

[0031] According to the storage volume coefficient, the parameter occupied storage area corresponding to each of the target parameters is adjusted.

[0032] Furthermore, in one embodiment of the present application, the method further includes:

[0033] When the target parameter needs to be stored or becomes invalid, the parameter description field corresponding to the target parameter is modified.

[0034] On the other hand, an embodiment of the present application provides a system parameter processing device, the device comprising:

[0035] A query unit, used to query target parameters required for system operation in response to a system startup instruction; the target parameters include single-record parameters and multi-record parameters;

[0036] an acquisition unit, configured to acquire a parameter description field from a memory; wherein the parameter description field includes the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the data volume of a single record, the address offset of the first status flag of the single record, and the address offset of the second status flag of the block where the single record is located;

[0037] A processing unit, used to determine a valid record corresponding to each parameter according to the parameter description field;

[0038] An operating unit is used to query and obtain each of the target parameters according to the valid records and the characteristics of the ring queue, and operate the system based on the target parameters.

[0039] On the other hand, an embodiment of the present application provides an electronic device, including:

[0040] at least one processor;

[0041] at least one memory for storing at least one program;

[0042] When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned method for processing system parameters.

[0043] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the above-mentioned system parameter processing method.

[0044] The advantages and benefits of the present application will be partially given in the following description, and partially become apparent from the following description, or be understood through the practice of the present application:

[0045] The processing method, device, equipment and storage medium of the system parameters disclosed in the embodiment of the present application, in response to the system startup instruction, query the target parameters required for the system operation; the target parameters include single-record parameters and multi-record parameters; obtain the parameter description field from the memory; wherein the parameter description field includes the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the data volume of a single record, the address offset of the first state flag of the single record, and the address offset of the second state flag of the block where the single record is located; according to the parameter description field, determine the valid records corresponding to each parameter; according to the valid records, query and obtain each of the target parameters according to the characteristics of the circular queue, and run the system based on the target parameters. The method stores information related to each parameter through the parameter description field, takes into account the memory characteristics, parameter characteristics and the convenience of data transplantation, searches for valid records according to the status flags of each parameter and block, and cooperates with the circular queue to find the target parameter information, improves the efficiency of parameter storage, access and management, and is conducive to the efficient operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following introduction is made to the drawings of the embodiments of the present application or the related technical solutions in the prior art. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present application. For technical personnel in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 A schematic diagram of an implementation environment of a method for processing system parameters provided in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of a process flow of a method for processing system parameters provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The present application is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0051] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0053] Memory is a device used to store data and programs in a computer system. It is mainly used to store parameters required for the system to run, such as program instructions, data, and intermediate results. Program instructions are sequences of instructions for a computer program stored in memory, which tell the computer how to perform specific operations. Data is the input and output of program processing, stored in memory so that the program can process it. Intermediate results are temporary data generated by the program during operation, stored in memory so that the program can operate and use them when needed. These parameters work together to enable the computer to process data and perform calculations.

[0054] In the related art, there are two schemes when using memory. One scheme is to divide the memory into blocks of specified size according to the data structure of each parameter, and each block stores the parameters of the specified data structure. The disadvantage of this scheme is that the memory utilization efficiency is not high, and for flash memory (there is a limit on the number of erase times), the storage area with high usage frequency is at risk of failure, and parameter search is relatively inconvenient; the other scheme is to apply for use at any time. The advantage of this scheme is that the utilization efficiency is improved, and the usage frequency of the entire storage area is roughly the same. The disadvantage is that the storage management is complicated and the scheme is difficult to transplant or change.

[0055] In view of this, a method for processing system parameters is provided in an embodiment of the present application. In response to the system startup instruction, the target parameters required for the system operation are queried; the target parameters include single-record parameters and multi-record parameters; a parameter description field is obtained from the memory; wherein the parameter description field includes the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the amount of data of a single record, the address offset of the first state flag of the single record, and the address offset of the second state flag of the block where the single record is located; according to the parameter description field, the valid records corresponding to each parameter are determined; according to the valid records, each of the target parameters is queried and obtained according to the characteristics of the circular queue, and the system is operated based on the target parameters. The method stores information related to each parameter through the parameter description field, takes into account the memory characteristics, parameter characteristics and the convenience of data transplantation, searches for valid records according to the status flags of each parameter and block, and cooperates with the circular queue to find the target parameter information, thereby improving the efficiency of parameter storage, access and management, and facilitating the efficient operation of the system.

[0056] Please refer to Figure 1 , Figure 1 The schematic diagram of the implementation environment of a method for processing system parameters provided in the embodiment of the present application is shown. In the implementation environment, the main hardware and software entities involved include a terminal device 110 and a background server 120. The terminal device 110 and the background server 120 are connected in communication.

[0057] Specifically, the system parameter processing method provided in the embodiment of the present application can be executed separately on the terminal device 110 side, or can be executed separately on the background server 120 side, or can be executed based on data interaction between the terminal device 110 and the background server 120.

[0058] The terminal device 110 of the above embodiment may include a mobile phone, a computer, a smart wearable device, a PDA device, an intelligent voice interaction device, a vehicle terminal, etc., but is not limited thereto. The backend server 120 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0059] The terminal device 110 and the backend server 120 may establish a communication connection via a wireless network or a wired network. The wireless network or wired network uses standard communication technology and / or protocols, and the network may be set to the Internet or any other network, such as but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network.

[0060] Of course, it is understandable that Figure 1 The implementation environment in the embodiment of the present application is only some optional application scenarios of the method for processing system parameters provided in the embodiment of the present application, and the actual application is not fixed. Figure 1 The hardware and software environment shown.

[0061] Below, in combination with the introduction of the aforementioned implementation environment, a method for processing system parameters provided in an embodiment of the present application is introduced and explained.

[0062] Please refer to Figure 2 , Figure 2 is a schematic diagram of a method for processing system parameters provided in an embodiment of the present application. The method for processing system parameters includes but is not limited to:

[0063] Step 210: In response to the system startup instruction, query the target parameters required for the system operation; the target parameters include single-record parameters and multi-record parameters;

[0064] Step 220, obtaining a parameter description field from the memory; wherein the parameter description field includes the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the data volume of a single record, the address offset of the first status flag of the single record, and the address offset of the second status flag of the block where the single record is located;

[0065] Step 230: Determine the valid record corresponding to each parameter according to the parameter description field;

[0066] Step 240: According to the valid records, query and obtain each of the target parameters according to the ring queue characteristics, and run the system based on the target parameters.

[0067] In an embodiment of the present application, a method for processing system parameters is provided. The method stores information related to each parameter through a parameter description field, taking into account the memory characteristics, parameter characteristics and the convenience of data transplantation. Through the status flag, the effective records of each parameter can be quickly found, thereby improving the efficiency of parameter storage and retrieval, which is conducive to the efficient operation of the system.

[0068] The method for processing system parameters provided in the embodiment of the present application can trigger a startup instruction when the system needs to be run. In response to the startup instruction, the parameters required for the system operation can be queried. Here, the parameter refers to the data of the specified data structure. For a parameter, there may be multiple backups in the memory, each backup can be called a record, and the same parameter can have multiple records in the memory at the same time. In the embodiment of the present application, a record of a parameter is recorded as a single record, and the parameter required for the system operation is recorded as a target parameter. When the system is running, a variety of target parameters are generally required. The target parameters may include single-record parameters and multi-record parameters, wherein a single-record parameter refers to a parameter that only requires one valid record when the system is running, and a multi-record parameter refers to a parameter that requires multiple valid records when the system is running. The number of valid records required for the multi-record parameter is not limited by this application, and it can be any number of two or more than two.

[0069] In the embodiment of the present application, a parameter description field can be given to each parameter, and the parameter description fields of all parameters together constitute the storage header of the entire memory. Specifically, the parameter description field may include the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the amount of data of a single record, the address offset of the first state flag of a single record, and the address offset of the second state flag of the block where the single record is located. Among them, the first address indicates the starting address of each parameter in the memory, and the system can find the specific location of the parameter data through this address. The total size of the storage area occupied by the parameter represents the total storage space occupied by each parameter in the memory. In the embodiment of the present application, the storage area can be divided into multiple blocks, and the size of a single block in the storage area occupied by the parameter represents the size of each block when the parameter data is stored in blocks in the memory, which helps the system to organize and manage parameter data in a block manner. The data volume of a single record is the size of the data contained in a single record in each parameter. The address offset of the first status flag of a single record indicates the offset of the status flag data corresponding to the single record in the memory relative to the starting address. The address offset of the second status flag of the block where the single record is located indicates the offset of the status flag data corresponding to the block where the single record is located relative to the starting address.

[0070] Specifically, in some embodiments, the single block size is obtained by:

[0071] Querying the minimum erasing unit of the memory;

[0072] The single block size is determined according to the minimum erasing unit and a preset integer multiple.

[0073] In the embodiment of the present application, for the storage area, when dividing the blocks, it can be divided in combination with the characteristics of the memory. For example, if a flash memory uses 4KB as the minimum erase unit, the size of a single block must be an integer multiple of 4KB; by analogy, the first address of the parameter occupied storage also needs to be combined with the memory characteristics, such as it must be an integer multiple of 4KB. Of course, in the embodiment of the present application, the integer multiple of the minimum erase unit corresponding to the block size can be flexibly set as needed, and the present application does not limit this.

[0074] In the embodiment of the present application, the valid records corresponding to each parameter can be determined according to the parameter description field. Specifically, it can be achieved through the following steps:

[0075] According to the address offset of the second status flag, query the second status flag corresponding to the block where the single record is located;

[0076] Determining whether the block where the single record is located is valid according to the second status flag;

[0077] If the block where the single record is located is valid, query the first status flag corresponding to the single record according to the address offset of the first status flag;

[0078] Determining whether the single record is valid according to the first status flag;

[0079] If the single record is valid, the single record is determined as a valid record corresponding to the parameter.

[0080] In an embodiment of the present application, for a single record of a parameter, the corresponding second status flag can be first queried based on the address offset of the second status flag, and the second status flag is used to indicate whether the block where the single record is located is valid. If it is found that the second status flag indicates that the block where the single record is located is valid, the first status flag corresponding to the single record can be queried based on the address offset of the first status flag, and the first status flag is used to indicate whether the single record is valid. If the first status flag indicates that the single record is valid, the single record can be determined as a valid record corresponding to the parameter. If the first status flag indicates that the single record is invalid, or the second status flag indicates that the block where the single record is located is invalid, the single record can be determined as an invalid record corresponding to the parameter.

[0081] In the embodiment of the present application, the parameters can be stored and retrieved in a circular manner in the corresponding storage area, and overwriting is allowed. When specifically retrieved, each target parameter can be queried and obtained according to the valid record and the characteristics of the circular queue, and then the system can be operated based on the obtained target parameters.

[0082] It should be noted that, in the embodiment of the present application, each parameter can use a variable to record its latest address offset information.

[0083] In some embodiments, the startup instruction is obtained by:

[0084] In response to a request for operation of the system, obtaining identity information of a requesting person;

[0085] Verifying the identity information;

[0086] When it is determined that the identity information verification has passed, a startup instruction for the system is generated.

[0087] In an embodiment of the present application, for the system, a user can initiate a run request to start the operation. Specifically, after initiating the request, the user's identity information can be obtained. The identity information here can be relevant identification information, such as an ID composed of numbers or characters, or it can be the user's physiological characteristic information, such as iris information, fingerprint information, or facial image, etc., which is not limited by this application. After obtaining the user's identity information, the identity information can be verified to verify whether it has the authority to use the system. If the verification is successful, a startup instruction for the system can be generated. Conversely, if the verification fails, the user can be prompted that he does not have the authority or prompted to re-verify.

[0088] In some embodiments, querying and acquiring each of the target parameters according to the valid records and the ring queue characteristics includes:

[0089] Within the storage range of the target parameter, traverse from the starting address to a larger address and analyze each single record one by one to see if it is valid;

[0090] If the target parameter is a single-record parameter, the most recently confirmed valid single record is taken as the target parameter; or if the target parameter is a multiple-record parameter, several single records with preset characteristics and most recently confirmed valid are taken as the target parameter.

[0091] In the embodiment of the present application, according to the query of the circular queue feature, it can be specifically within the storage range of the parameter, starting from the starting address to the larger address (larger address in the sense of the circular queue), analyzing each record one by one whether it is valid, and if it is invalid, searching for it at a smaller address (smaller address in the sense of the circular queue), and the first valid record found is the latest single record determined to be valid (recorded as the latest record). After traversing all addresses, there is still no valid record, then the starting address is the latest record, and the application layer is informed that there is no valid record; if it is valid, searching at a larger address, finding the first invalid record, and the previous valid record is the latest record. Of course, it should be noted that since the types of target parameters include single-record parameters and multi-record parameters, if it is a single-record parameter, then the latest single record determined to be valid can be directly taken as the target parameter; if it is a multi-record parameter, several single records with preset features and the latest valid can be taken as the target parameter. The preset features here refer to the preset features of the single record that needs to be used corresponding to the target parameter. For example, in some embodiments, when the target parameter needs to use a multi-record parameter with a certain detection number, the preset feature is the detection number.

[0092] In some embodiments, the method further comprises:

[0093] Obtaining the usage frequency of each of the target parameters;

[0094] generating a storage volume coefficient according to the usage frequency;

[0095] According to the storage volume coefficient, the parameter occupied storage area corresponding to each of the target parameters is adjusted.

[0096] In an embodiment of the present application, the usage frequency of each target parameter can also be obtained during system operation. A storage volume coefficient can be generated based on the usage frequency, so that the storage area division of each parameter in the storage header can be optimized based on the storage volume coefficient. This can maximize the utilization efficiency of the storage area and reduce the failure risk of storage areas with high usage frequencies.

[0097] In some embodiments, the method further comprises:

[0098] When the target parameter needs to be stored or becomes invalid, the parameter description field corresponding to the target parameter is modified.

[0099] In an embodiment of the present application, when the system is running, when the target parameter changes and needs to be stored or invalidated, new records can be added or old records can be changed (for example, the status flag can be changed to invalid) according to the latest address variable of the parameter and the characteristics of the circular queue.

[0100] In an embodiment of the present application, a system parameter processing device is also provided, including:

[0101] A query unit, used to query target parameters required for system operation in response to a system startup instruction; the target parameters include single-record parameters and multi-record parameters;

[0102] an acquisition unit, configured to acquire a parameter description field from a memory; wherein the parameter description field includes the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the data volume of a single record, the address offset of the first status flag of the single record, and the address offset of the second status flag of the block where the single record is located;

[0103] A processing unit, used to determine a valid record corresponding to each parameter according to the parameter description field;

[0104] An operating unit is used to query and obtain each of the target parameters according to the valid records and the characteristics of the ring queue, and operate the system based on the target parameters.

[0105] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0106] Reference Figure 3 , an embodiment of the present application provides an electronic device, including:

[0107] at least one processor 310;

[0108] At least one memory 320, used to store at least one program;

[0109] When at least one program is executed by at least one processor 310, at least one processor 310 implements the above-mentioned method for processing system parameters.

[0110] Similarly, the contents of the above method embodiments are all applicable to the electronic device embodiments. The functions specifically implemented by the electronic device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0111] The embodiment of the present application further provides a computer-readable storage medium, in which a program executable by the processor 310 is stored. The program executable by the processor 310 is used to execute the above-mentioned system parameter processing method when executed by the processor 310.

[0112] Similarly, the contents of the above method embodiments are all applicable to the computer-readable storage medium embodiments. The functions specifically implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0113] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part described as a larger operation is performed independently.

[0114] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional techniques of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.

[0115] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0116] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0117] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0118] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0119] The system parameter processing method, device, equipment and storage medium of the present application take into account the memory characteristics, parameter characteristics and the convenience of data transplantation by using the parameter description field to store the information related to each parameter, and search for valid records according to the status flags of each parameter and block, and cooperate with the circular queue to find the target parameter information, thereby improving the efficiency of parameter storage, access and management, which is conducive to the efficient operation of the system. Furthermore, in combination with the data structure and usage frequency of each parameter, while taking into account the usage characteristics of the parameters, a new scheme for dividing the storage area of ​​the memory and data management is proposed, which effectively improves the efficiency of the use of the storage area. In general, compared with the schemes in the prior art that do not consider the frequency of use, resulting in inflexible management and easy failure of high-frequency use areas, and the schemes that use it as needed and lead to complex storage management, the scheme of the present application effectively reduces the difficulty and complexity of data management, transplantation and change.

[0120] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0121] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.

[0122] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the embodiments. Technical personnel familiar with the field can make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A method for processing system parameters, characterized in that: The method comprises: In response to the system startup instruction, query the target parameters required for the system operation; the target parameters include single-record parameters and multi-record parameters; Obtain a parameter description field from the memory; wherein the parameter description field includes the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the data volume of a single record, the address offset of the first state flag of the single record, and the address offset of the second state flag of the block where the single record is located; Determine the valid records corresponding to each parameter according to the parameter description field; According to the valid records, each of the target parameters is queried and acquired according to the ring queue characteristics, and the system is operated based on the target parameters.

2. A method for processing system parameters according to claim 1, characterized in that: The single block size is obtained by: Querying the minimum erasing unit of the memory; The single block size is determined according to the minimum erasing unit and a preset integer multiple.

3. A method for processing system parameters according to claim 1, characterized in that: Determining the valid records corresponding to the parameters according to the parameter description fields includes: According to the address offset of the second status flag, query the second status flag corresponding to the block where the single record is located; Determining whether the block where the single record is located is valid according to the second status flag; If the block where the single record is located is valid, query the first status flag corresponding to the single record according to the address offset of the first status flag; Determining whether the single record is valid according to the first status flag; If the single record is valid, the single record is determined as a valid record corresponding to the parameter.

4. A method for processing system parameters according to claim 1, characterized in that: The querying and obtaining each of the target parameters according to the ring queue characteristics based on the valid records includes: Within the storage range of the target parameter, traverse from the starting address to a larger address and analyze each single record one by one to see if it is valid; If the target parameter is a single-record parameter, the most recently confirmed valid single record is taken as the target parameter; or if the target parameter is a multiple-record parameter, several single records with preset characteristics and most recently confirmed valid are taken as the target parameter.

5. A method for processing system parameters according to claim 1, characterized in that: include: When a parameter changes and needs to be stored or invalidated, a new record is added or the status flag of an old record is changed according to the latest address variable of the parameter and the characteristics of the circular queue.

6. A method for processing system parameters according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtaining the usage frequency of each of the target parameters; generating a storage volume coefficient according to the usage frequency; According to the storage volume coefficient, the parameter occupied storage area corresponding to each of the target parameters is adjusted.

7. A method for processing system parameters according to claim 1, characterized in that: The method further comprises: When the target parameter needs to be stored or becomes invalid, the parameter description field corresponding to the target parameter is modified.

8. A system parameter processing device, characterized in that: The device comprises: A query unit, used to query target parameters required for system operation in response to a system startup instruction; the target parameters include single-record parameters and multi-record parameters; an acquisition unit, configured to acquire a parameter description field from a memory; wherein the parameter description field includes the first address of each parameter in the memory, the total size of the storage area occupied by the parameter, the size of a single block in the storage area occupied by the parameter, the data volume of a single record, the address offset of the first status flag of the single record, and the address offset of the second status flag of the block where the single record is located; A processing unit, used to determine a valid record corresponding to each parameter according to the parameter description field; An operating unit is used to query and obtain each of the target parameters according to the valid records and the characteristics of the ring queue, and operate the system based on the target parameters.

9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements a method for processing system parameters as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to implement a system parameter processing method according to any one of claims 1 to 7 when executed by the processor.