Configuration data determination method, system, device, and storage medium

CN117289870BActive Publication Date: 2026-09-25SHENZHEN RTI-TEK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311284279.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2026-09-25
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

然而,延时保存的方式使得异常掉电来临时配置数据的丢失风险率增高,而增加硬件的方式一方面增加了单片机的设计成本,另一方面也增加了配置数据保存的复杂性,违背了单片机的设计初衷

Benefits of technology

[0015]本申请提出的一种配置数据确定方法、系统、设备及存储介质,其通过获取预设配置区的开始地址和结束地址;接着,以开始地址为起点,朝结束地址的方向遍历配置区内的单位字节信息,若单位字节信息为第一配置标识信息,记录第一配置标识信息所在的配置数据对应的配置序列号和配置地址,其中,第一配置标识信息表征对应配置数据为最新配置数据;可以理解的是,表征配置数据为最新配置数据的第一配置标识信息通常仅会只有一个,因此,当遍历该第一配置标识信息时,即可快速确定该配置数据为最新配置数据,然而,当产生异常断电时,会出现多组第一配置标识信息,此时,无法根据唯一的第一配置标识信息确定最新配置数据,因此,当完成配置区的遍历时,若第一配置标识信息有多组,按照从大至小的顺序,依次对相邻的两个配置序列号进行差值计算,得到至少一个相邻配置之间的序列差值;若序列差值不为预设的单位值,根据配置序列号和配置序列号对应的配置地址确定目标最新配置数据,即当无法根据唯一的第一配置标识信息确定最新配置数据时,可以根据每一个第一配置标识信息对应的配置序列号确定目标最新配置数据,提高了确定目标最新配置数据的效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117289870B_ABST
    Figure CN117289870B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a configuration data determination method, system, device and storage medium, and belongs to the technical field of data storage. The method comprises the following steps: obtaining a start address and an end address of a preset configuration area; taking the start address as a starting point, traversing unit byte information in the configuration area in the direction of the end address, if the unit byte information is first configuration identification information, recording a configuration serial number and a configuration address corresponding to configuration data where the first configuration identification information is located, wherein the first configuration identification information indicates that the corresponding configuration data is the latest configuration data; when the traversal of the configuration area is completed, if there are multiple groups of the first configuration identification information, sequentially performing difference calculation on configuration serial numbers of two adjacent configuration data to obtain at least one sequence difference value; if the sequence difference value is not a preset unit value, determining target latest configuration data according to the configuration serial number and the configuration address corresponding to the configuration serial number. The application can improve the efficiency of determining the latest configuration data in the Flash.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data storage technology, and in particular to a method, system, device and storage medium for determining configuration data. Background Technology

[0002] Microcontrollers are widely used chips that include memory for storing program code, data, and configuration information. Flash memory (Flash) is a commonly used type of memory. With the development of the internet, more and more configuration data needs to be stored in and retrieved from Flash. However, when a designated configuration area in Flash is full, the corresponding sector must be erased before new configuration data can be saved. This frequent erasing and writing of Flash data severely impacts its lifespan.

[0003] In related technologies, the lifespan of Flash memory is often improved by delaying data saving or adding hardware. However, delaying data saving increases the risk of data loss during abnormal power outages, while adding hardware increases both the design cost of the microcontroller and the complexity of data saving, contradicting the original design intent of the microcontroller. Neither method can perfectly balance the accuracy of configuration data saving and the lifespan of the Flash chip on a simple design structure. Therefore, operators find it difficult to quickly and accurately determine the latest configuration data stored in the Flash memory. Summary of the Invention

[0004] The main objective of this application is to provide a configuration data determination method, system, device, and storage medium that can improve the efficiency of determining the latest configuration data in Flash.

[0005] To achieve the above objectives, a first aspect of this application proposes a configuration data determination method, the method comprising: obtaining a start address and an end address of a preset configuration area; traversing unit byte information within the configuration area from the start address to the end address; if the unit byte information is first configuration identifier information, recording the configuration sequence number and configuration address corresponding to the configuration data where the first configuration identifier information is located, wherein the first configuration identifier information indicates that the corresponding configuration data is the latest configuration data; when the traversal of the configuration area is completed, if there are multiple sets of the first configuration identifier information, calculating the difference between the configuration sequence numbers of two adjacent configuration data in turn to obtain at least one sequence difference; if the sequence difference is not a preset unit value, determining the target latest configuration data based on the configuration sequence number and the configuration address corresponding to the configuration sequence number.

[0006] In some embodiments, after obtaining at least one sequence difference, the method further includes: if the sequence difference is a preset unit value, determining a first configuration sequence number with the largest sequence number from a plurality of configuration sequence numbers; and determining the target latest configuration data based on the first configuration sequence number and the configuration address corresponding to the first configuration sequence number.

[0007] In some embodiments, the configuration sequence number includes a threshold sequence number, which indicates the upper limit of the configuration sequence number; determining the target latest configuration data based on the configuration sequence number and the configuration address corresponding to the configuration sequence number includes: if the configuration sequence number includes the threshold sequence number and the sequence difference is not a preset threshold, determining a second configuration sequence number with the largest sequence number from a plurality of configuration sequence numbers, and determining the target latest configuration data based on the second configuration sequence number and the configuration address corresponding to the second configuration sequence number; if the configuration sequence number includes the threshold sequence number and the sequence difference is a preset threshold, determining the third configuration sequence number as the one with the smaller sequence number among two adjacent configuration data corresponding to another sequence difference value that is not the threshold, and determining the target latest configuration data based on the third configuration sequence number and the configuration address corresponding to the third configuration sequence number; if the configuration sequence number does not include the threshold sequence number, determining a fourth configuration sequence number with the largest sequence number from a plurality of configuration sequence numbers, and determining the target latest configuration data based on the fourth configuration sequence number and the configuration address corresponding to the fourth configuration sequence number.

[0008] In some embodiments, the unit byte information includes a unit byte length, which is used to indicate the storage size of the unit byte information; after traversing the unit byte information in the configuration area from the start address to the end address, the method further includes: after completing the traversal of the current unit byte information, obtaining the traversal address based on the unit byte length of the unit byte information and the start address; using the traversal address as the updated start address, traversing the remaining unit byte information from the end address to the end address until the traversal address equals the end address, at which point the traversal ends.

[0009] In some embodiments, the configuration area includes multiple configuration sectors; before traversing the unit byte information within the configuration area from the start address to the end address, the method further includes: obtaining the configuration size and configuration identifier information of the configuration data to be stored, and determining the storage start address and storage end address according to the start address and the configuration size; writing the configuration data into the configuration area according to the storage start address and the storage end address, and updating the configuration identifier information to the first configuration identifier information; after completing the storage of the configuration data, using the storage end address as the updated storage start address to store the next configuration data, and after completing the storage of the next configuration data, setting the configuration identifier of the configuration data to the second configuration identifier information, wherein the second configuration identifier information indicates that the corresponding configuration data is old configuration data.

[0010] In some embodiments, after determining the storage start address and storage end address based on the start address and the configuration size, the method further includes: if the storage location corresponding to the configuration sector where the storage end address is located has already written configuration data, erasing the configuration data at the storage location based on the storage start address and the storage end address to obtain the configuration sector after data erasure.

[0011] In some embodiments, erasing the configuration data of the storage location based on the storage start address and the storage end address includes: when the storage start address and the storage end address are not in the same configuration sector and the storage end address is less than the end address, erasing the configuration data of the configuration sector corresponding to the storage end address; when the storage start address and the storage end address are not in the same configuration sector and the storage end address is greater than the end address, erasing the configuration data in the first configuration sector corresponding to the configuration area based on the start address.

[0012] To achieve the above objectives, a second aspect of this application proposes a configuration data determination system, the system comprising: an acquisition module, configured to acquire a start address and an end address of a preset configuration area; a verification module, configured to traverse unit byte information within the configuration area from the start address toward the end address, and if the unit byte information is first configuration identifier information, record the configuration sequence number and configuration address corresponding to the configuration data where the first configuration identifier information is located, wherein the first configuration identifier information indicates that the corresponding configuration data is the latest configuration data; a calculation module, configured to, when the traversal of the configuration area is completed, if there are multiple sets of the first configuration identifier information, sequentially calculate the difference between the configuration sequence numbers of two adjacent configuration data to obtain at least one sequence difference; and a result module, configured to, if the sequence difference is not a preset unit value, determine the target latest configuration data based on the configuration sequence number and the configuration address corresponding to the configuration sequence number.

[0013] To achieve the above objectives, a third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method described in the first aspect of the embodiment.

[0014] To achieve the above objectives, a fourth aspect of the present application provides a storage medium, which is a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect of the present application.

[0015] This application proposes a configuration data determination method, system, device, and storage medium. It obtains the start and end addresses of a preset configuration area; then, starting from the start address, it traverses the unit byte information within the configuration area towards the end address. If the unit byte information is first configuration identifier information, it records the configuration sequence number and configuration address corresponding to the configuration data containing the first configuration identifier information. The first configuration identifier information indicates that the corresponding configuration data is the latest configuration data. It is understood that there is usually only one first configuration identifier information indicating that the configuration data is the latest configuration data. Therefore, when traversing this first configuration identifier information, it is possible to quickly determine that the configuration data is the latest configuration data. However, when an exception occurs... During power-on, multiple sets of first configuration identifier information may appear. At this time, it is impossible to determine the latest configuration data based on the unique first configuration identifier information. Therefore, when the configuration area is traversed, if there are multiple sets of first configuration identifier information, the difference between adjacent two configuration sequence numbers is calculated in descending order to obtain at least one sequence difference between adjacent configurations. If the sequence difference is not a preset unit value, the target latest configuration data is determined based on the configuration sequence number and the configuration address corresponding to the configuration sequence number. That is, when it is impossible to determine the latest configuration data based on the unique first configuration identifier information, the target latest configuration data can be determined based on the configuration sequence number corresponding to each first configuration identifier information, which improves the efficiency of determining the target latest configuration data. Attached Figure Description

[0016] Figure 1 This is an optional flowchart of the configuration data determination method provided in the embodiments of this application;

[0017] Figure 2 This is a schematic diagram of a configuration area for the configuration data determination method provided in this application embodiment;

[0018] Figure 3 This is a schematic diagram of the structure of an optional configuration data in the configuration data determination method provided in this application embodiment;

[0019] Figure 4 yes Figure 1 A flowchart of the implementation following step S103;

[0020] Figure 5 yes Figure 1 A flowchart of an implementation of step S104 in the process;

[0021] Figure 6 yes Figure 1 A flowchart of the implementation following step S102;

[0022] Figure 7 This is another optional flowchart of the configuration data determination method provided in the embodiments of this application;

[0023] Figure 8 yes Figure 1 A flowchart of the implementation prior to step S102;

[0024] Figure 9 This is a flowchart of an implementation of step S601;

[0025] Figure 10 This is yet another optional flowchart of the configuration data determination method provided in the embodiments of this application;

[0026] Figure 11 This is a schematic diagram of the functional modules of the configuration data determination system provided in the embodiments of this application;

[0027] Figure 12 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0029] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0031] First, let's analyze some of the terms used in this application:

[0032] A microcontroller is an integrated circuit chip that integrates a microprocessor core, memory, and various input / output interfaces. It is typically used in embedded systems as the main processor of the control system, responsible for performing specific tasks.

[0033] Flash memory is a type of non-volatile memory used to store data in electronic devices. Due to its small size, low power consumption, and fast access speed, flash memory is widely used in many fields such as solid-state drives, the Internet of Things, and microcontrollers.

[0034] Based on this, embodiments of this application provide a configuration data determination method, system, device, and storage medium, which can improve the efficiency of determining the latest configuration data in Flash.

[0035] The configuration data determination method in this application embodiment can be illustrated by the following embodiments.

[0036] It should be noted that in each specific embodiment of this application, when it is necessary to store relevant user information, user behavior data, user historical data, and user location information as configuration data in the configuration area of ​​Flash, the user's permission or consent will be obtained first. Furthermore, the collection, use, and processing of this data will comply with relevant laws, regulations, and standards. In addition, when this application embodiment needs to obtain sensitive personal information of the user, separate permission or consent from the user will be obtained. The configuration data determination method in this application embodiment will only be executed after obtaining the user's separate permission or consent.

[0037] like Figure 1 As shown, Figure 1 This is an optional flowchart of the configuration data determination method provided in the embodiments of this application. Figure 1 The method may include, but is not limited to, steps S101 to S104.

[0038] Step S101: Obtain the start and end addresses of the preset configuration area;

[0039] In some embodiments, Flash typically includes multiple configuration sectors. An operator can specify one or more specific configuration sectors as a preset configuration area and use the start address and end address of the configuration sector as the start address and end address of the configuration area. When there are multiple configuration sectors, these configuration sectors are usually selected consecutively rather than by skipping.

[0040] For example, such as Figure 2 As shown, Figure 2 This is a schematic diagram of a configuration area for a configuration data determination method provided in this application embodiment. Configuration sector 1 to configuration sector 2 are defined as configuration areas, and the starting address of configuration sector 1 is determined as the starting address of the configuration area, and the ending address of configuration sector 2 is determined as the ending address of the configuration area.

[0041] It should be noted that the number of configuration sectors included in the configuration area can be specifically set according to the actual situation, and this application embodiment does not impose specific limitations.

[0042] In some embodiments, after confirming the configuration area, configuration data can be stored in the configuration sector. It should be noted that, due to the structure design of Flash, when storing configuration data, it is usually stored sequentially from the start address along the end address.

[0043] The configuration data stored in the configuration area can have different sizes, meaning that each piece of configuration data stored in the configuration area is not necessarily of the same size.

[0044] Step S102: Starting from the start address, traverse the unit byte information in the configuration area towards the end address. If the unit byte information is the first configuration identifier information, record the configuration sequence number and configuration address corresponding to the configuration data where the first configuration identifier information is located. The first configuration identifier information indicates that the corresponding configuration data is the latest configuration data.

[0045] In some embodiments, when determining the configuration data, the process typically involves traversing from the start address to the end address. For example, in... Figure 2 In order to complete the traversal of the configuration data in the configuration area, you need to start from the beginning address of the configuration area and traverse from left to right until you reach the end address of the configuration area.

[0046] The configuration data being traversed typically includes information in multiple bytes, such as... Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of an optional configuration data in the configuration data determination method provided in the embodiments of this application. Each configuration data may specifically include configuration identification information, configuration sequence number, configuration size, configuration content and configuration verification information. Moreover, these contents are usually composed of one or more unit byte information, and the unit byte information is 1 byte information. For example, the configuration identification information can be a unit byte information.

[0047] In this context, configuration verification information is typically used to verify whether the corresponding configuration data is normal. In fact, in the traditional confirmation of the latest target configuration data, after obtaining the configuration sequence number of the configuration data, it is often necessary to verify the configuration data one by one before the latest target configuration data can be finally confirmed. However, the embodiments of this application do not require verification one by one, thus improving the efficiency of confirming the target configuration data.

[0048] It should be noted that the configuration data may also include other aspects, and the specifics can be adjusted according to the actual situation. This application embodiment does not impose any specific limitations.

[0049] In this embodiment, the first configuration identifier can be set to 0xFA. When a unit byte of information is encountered (0xFA), the configuration sequence number and configuration address corresponding to that configuration data are recorded. It is understood that in traditional methods for confirming the latest configuration data in Flash, a first configuration identifier is not set for newly stored configuration data. This necessitates verifying each piece of configuration data, ensuring it is correct, and then using the corresponding configuration sequence number and configuration address to determine the latest configuration data. However, in this embodiment, by setting a first configuration identifier for newly stored configuration data and modifying the configuration identifier of the previous configuration data to indicate that it is not the latest configuration data, the latest configuration data can be confirmed only by verifying the configuration data with the first configuration identifier and obtaining the corresponding configuration sequence number and configuration address. In other words, this embodiment does not require verifying every piece of configuration data; verifying one or a portion of the configuration data is sufficient to confirm the latest configuration data, reducing the verification workload and improving the efficiency of confirming the latest configuration data.

[0050] Step S103: When the traversal of the configuration area is completed, if there are multiple sets of the first configuration identifier information, the difference between the configuration sequence numbers of two adjacent configuration data is calculated in turn to obtain at least one sequence difference.

[0051] In some embodiments, the configuration data is usually already written in the configuration area before traversing the configuration data. During the writing process, it is highly likely that the configuration identifier information of the previous configuration data will not be updated due to an abnormal power outage. In this case, there will be two or more first configuration identifier information, making it impossible to confirm the latest configuration data based on the unique first configuration identifier information. In this situation, the latest configuration data will be confirmed based on the configuration sequence number corresponding to the multiple first configuration identifier information.

[0052] When an abnormal power outage occurs, the rewriting of the first configuration identifier information should result in continuous anomalies. At this time, the difference between two adjacent configuration sequence numbers is calculated sequentially to obtain at least one sequence difference between adjacent configurations. The latest configuration data is confirmed by the specific value of the sequence difference.

[0053] Step S104: If the sequence difference is not a preset unit value, determine the latest target configuration data based on the configuration sequence number and the configuration address corresponding to the configuration sequence number.

[0054] In some embodiments, the preset unit value can be the numerical value 1. Since the configuration sequence number of each configuration data stored in the configuration area is sequentially incremented, if the calculated sequence difference is not 1, it means that the configuration data in the configuration area has been filled once and re-stored from the starting address. The latest target configuration data can be confirmed according to the configuration sequence number and the corresponding configuration address.

[0055] It is understood that the embodiments of this application can first confirm the latest target configuration data based on the unique first configuration identifier information. When the latest target configuration data cannot be confirmed based on the unique first configuration identifier information, the latest target configuration data can be determined based on the difference of the sequence difference, that is, efficient confirmation of the latest target configuration data is achieved through dual protection. Furthermore, when multiple undeterminable unique first configuration identifier information appears, there is no need to re-traverse and verify the corresponding configuration data content in turn, reducing the verification workload and further improving the efficiency of determining the latest target configuration data.

[0056] like Figure 4 As shown, Figure 4 yes Figure 1 A flowchart following step S103 in the above steps may include steps S201 to S202 in some embodiments:

[0057] Step S201: If the sequence difference is a preset unit value, determine the first configuration sequence number with the largest sequence number from multiple configuration sequence numbers;

[0058] In some embodiments, the configuration serial number is usually set with a serial upper limit. If the serial difference is a preset unit value, such as a serial difference of 1, it indicates that the abnormal first configuration identification information appears before the configuration serial number reaches the serial upper limit. In this case, the first configuration serial number with the largest serial number can be determined from multiple configuration serial numbers, and the target latest configuration data can be determined based on the first configuration serial number.

[0059] For example, a certain configuration area contains the following configuration data: configuration data 1, configuration data 2, configuration data 3, configuration data 4, configuration data 5, and configuration data 6. Configuration data 5 and configuration data 6 both include first configuration identification information. In this case, the difference between the configuration sequence numbers of configuration data 6 and configuration data 5 is calculated, and the sequence difference is 1, which is the preset unit value. Therefore, it can be determined that the one with the larger sequence number between configuration data 5 and configuration data 6 is the latest target configuration data.

[0060] In some embodiments, if there are two or more configuration data containing the first configuration identifier information, then the adjacent configurations are also calculated to obtain multiple sequence differences. If these sequence differences are all preset unit values, it also indicates that the abnormal first configuration identifier information appears before the configuration sequence number reaches the threshold limit. At this time, the configuration data corresponding to the first configuration sequence number with the largest sequence number is selected as the target latest configuration data.

[0061] For example, a certain configuration area contains the following configuration data: configuration data 1, configuration data 2, configuration data 3, configuration data 4, configuration data 5, and configuration data 6. Configuration data 4, configuration data 5, and configuration data 6 all include first configuration identification information. Then, the difference in configuration sequence numbers between adjacent configuration data is calculated in descending order of configuration sequence number. In this example, the difference in configuration sequence numbers between configuration data 6 and configuration data 5, and the difference in configuration sequence numbers between configuration data 5 and configuration data 4 are both 1. Therefore, configuration data 6 is determined to be the latest target configuration data.

[0062] Step S202: Determine the latest target configuration data based on the first configuration serial number and the configuration address corresponding to the first configuration serial number.

[0063] In some embodiments, after determining the configuration sequence number of the latest target configuration data, it is usually necessary to determine the specific location of the configuration data in the configuration area based on the corresponding configuration address. Therefore, when traversing the first configuration identifier information, the corresponding configuration address is usually also obtained in order to confirm the detailed location of the latest target configuration data based on the configuration address.

[0064] For example, the configuration address of configuration data 6 is 0x00600000. After determining that configuration data 6 is the latest target configuration data, the specific location of configuration data 6 in the configuration area is determined according to the configuration address 0x00600000.

[0065] like Figure 5 As shown, Figure 5 yes Figure 1 A flowchart of an implementation of step S104 is provided. In some embodiments, step S104 may include steps S301 to S303:

[0066] Step S301: If the configuration sequence number includes a threshold sequence number and the sequence difference is not a preset threshold, determine the second configuration sequence number with the largest sequence number from multiple configuration sequence numbers, and determine the latest target configuration data based on the configuration address corresponding to the second configuration sequence number and the second configuration sequence number.

[0067] In some embodiments, for the purpose of unified numbering management, the configuration sequence number of the configuration data usually has a sequence upper limit, which is the threshold sequence number. For example, if the sequence upper limit of the configuration sequence number is set to 12, then the threshold sequence number is 12. When the configuration sequence number corresponding to the stored configuration data exceeds 12, the next configuration sequence number is set as the starting sequence number, and then the configuration sequence number of the configuration data is set cyclically from the starting sequence number to the threshold sequence number.

[0068] Furthermore, when the configuration sequence number reaches the upper limit of the sequence and is set cyclically from the starting sequence number, there may be a situation in the configuration area where the difference between adjacent configuration sequences is a threshold. The threshold is set based on the starting sequence number and the threshold sequence number. For example, if the starting sequence number is 1 and the upper limit of the configuration sequence number is 12, the threshold is determined to be the difference between the threshold sequence number and the starting sequence number, that is, the threshold is 11.

[0069] Furthermore, when the configuration sequence numbers corresponding to the multiple first configuration identifiers generated contain threshold sequence numbers, it is necessary to check whether the calculated sequence difference is equal to the preset threshold. If the sequence difference is not equal to the preset threshold, it means that the stored configuration data only goes up to the configuration data corresponding to the threshold sequence number. At this time, the second configuration sequence number is actually the threshold sequence number. The latest target configuration data is determined based on the threshold sequence number and the configuration address corresponding to the threshold sequence number.

[0070] For example, if the threshold sequence number in a certain configuration area is set to 9 and the starting sequence number is 1, then the threshold of the configuration area can be determined to be 8. The configuration area contains the following configuration data: configuration data 7, configuration data 8, configuration data 9, configuration data 4, configuration data 5, and configuration data 6. In each configuration data, the first configuration identifier information is read. At this time, the difference between the configuration sequence numbers of two adjacent configuration data is calculated in turn, and the sequence differences are 1, 1, 5, and 1 respectively. Since the sequence difference 5 is not equal to the threshold 8, it can be determined that among the obtained configuration sequence numbers, the one with the larger sequence number is the latest target configuration data, that is, the latest target configuration data is configuration data 9.

[0071] It should be noted that, since the Flash memory in some microcontrollers does not support the rewriting of configuration identifier information, that is, it is impossible to rewrite the original configuration identifier information into the first configuration identifier information that represents the corresponding configuration data as the latest target configuration data, when traversing the configuration area, there will be a situation where the configuration identifier information of each configuration data is the first configuration identifier information.

[0072] Alternatively, in the event of an abnormal power outage, the configuration identification information in the configuration area may be unable to be rewritten, resulting in multiple consecutive instances of the first configuration identification information.

[0073] Step S302: If the configuration sequence number includes a threshold sequence number and the sequence difference is a preset threshold, determine the third configuration sequence number among the two adjacent configuration data corresponding to the sequence difference that is not a threshold. Determine the latest target configuration data based on the third configuration sequence number and the configuration address corresponding to the third configuration sequence number.

[0074] In some embodiments, since the configuration sequence number has reached the sequence limit, there may be multiple sequence differences that are not the preset unit value. In this case, it is necessary to determine the latest target configuration data based on the sequence differences that are not the preset threshold.

[0075] For example, if the threshold sequence number in a certain configuration area is set to 12 and the starting sequence number is 1, then the threshold of the configuration area can be determined to be 11. The configuration area contains the following configuration data: configuration data 10, configuration data 11, configuration data 12, configuration data 1, configuration data 2, configuration data 3, configuration data 7, configuration data 8, and configuration data 9. In each configuration data, the first configuration identifier information is read. The difference between each sequence can be calculated as: 1, 1, 11, 1, 1, 4, 1, 1. Then, the adjacent configuration data corresponding to the sequence difference of 4 can be determined to be configuration data 3 and configuration data 7, and the configuration data 3 with the smaller sequence number is determined to be the target latest configuration data.

[0076] Step S303: If the configuration sequence number does not include the threshold sequence number, determine the fourth configuration sequence number with the largest sequence number from multiple configuration sequence numbers, and determine the latest target configuration data based on the fourth configuration sequence number and the configuration address corresponding to the fourth configuration sequence number.

[0077] In some embodiments, if the configuration sequence number does not include the threshold sequence number, it means that the configuration sequence number of the currently stored configuration data has not yet reached the set sequence upper limit. In this case, regardless of the sequence upper limit value or whether the configuration area has been erased and re-stored, the largest sequence number can be determined from multiple configuration sequence numbers and recorded as the fourth configuration sequence number. Then, the target latest configuration data can be determined based on the fourth configuration sequence number and the configuration address corresponding to the fourth configuration sequence number.

[0078] For example, if the threshold sequence number in a certain configuration area is set to 100 and the starting sequence number is 1, then the threshold of the configuration area can be determined to be 99. The configuration area contains the following configuration data: configuration data 98, configuration data 99, configuration data 100, configuration data 95, configuration data 96, and configuration data 97. In each of the configuration data, the first configuration identifier information is read. Therefore, the configuration data corresponding to the maximum sequence number 100 can be determined to be the latest target configuration data.

[0079] It should be noted that the examples in steps S301 to S303 above are all for the case where all configuration data includes the first configuration identifier information. The same applies to the case where only some consecutive configuration data in the configuration area contains the first configuration identifier information, which will not be elaborated here.

[0080] like Figure 6 As shown, Figure 6 yes Figure 1 A flowchart following step S102 is provided. In some embodiments, step S401 to S402 may also be included after step S102:

[0081] Step S401: After completing the traversal of the current unit byte information, obtain the traversal address based on the unit byte length and starting address of the unit byte information;

[0082] In some embodiments, the traversal of configuration data in the configuration area typically starts from the start address and proceeds towards the end address, reading unit byte information sequentially. After traversing a unit byte, the traversal address usually needs to be updated to proceed with the traversal of the next unit byte. To update the traversal address, the unit byte length and the start address need to be added together to obtain the updated traversal address.

[0083] Step S402: Using the traversal address as the updated starting point, traverse the remaining unit byte information in the direction of the end address until the traversal address equals the end address, and the traversal ends.

[0084] In some embodiments, after updating the traversal address, the updated traversal address is used as the new traversal starting point, and then the remaining unit bytes are traversed sequentially in the direction of the end address until the traversal address is equal to the end address, thus ending the traversal of the configuration data in the configuration area.

[0085] To better understand the configuration determination method in the embodiments of this application, a complete example is provided below:

[0086] like Figure 7 As shown, Figure 7This is another optional flowchart of the configuration data determination method provided in this application embodiment. When traversing the configuration area, it is first necessary to obtain the start address and end address of the configuration area, and determine the starting position for reading based on the start address, and read the unit byte information at the starting position; then, update the traversal address; after that, it is determined whether the unit byte information is the first configuration identifier information. If it is, the configuration information corresponding to the configuration data is obtained, wherein the configuration information includes the configuration size, configuration content, and configuration verification information of the configuration data, etc., and then the configuration content is verified according to the obtained configuration verification information. If the verification result indicates that the configuration data is normal data, then the configuration sequence number and configuration address corresponding to the configuration data are obtained. When the traversal address is greater than the end address, the traversal of the configuration data in the configuration area is completed, and the target latest configuration data is determined according to the obtained first configuration identifier information, configuration sequence number, and configuration address; otherwise, the traversal address is updated to perform a re-traversal.

[0087] Understandably, after storing the configuration data in Flash, the latest configuration data of the target can be quickly confirmed by reading the first configuration identifier information. When multiple first configuration identifier information appears due to problems such as abnormal power failure, it is not necessary to re-traverse all the configuration data to determine the latest configuration data. It is only necessary to judge the sequence difference corresponding to multiple first configuration identifier information, find the adjacent configuration data of the target, and verify the two configuration data to quickly confirm the latest configuration data of the target.

[0088] like Figure 8 As shown, Figure 8 yes Figure 1 A flowchart of an implementation prior to step S102. In some embodiments, steps S501 to S503 may also be included prior to step S102:

[0089] Step S501: Obtain the configuration size and configuration identifier information of the configuration data to be stored, and determine the storage start address and storage end address based on the start address and configuration size;

[0090] In some embodiments, configuration data can be stored and written before data traversal of the configuration area. During the process of writing configuration data to the configuration area, it is also necessary to obtain the start and end addresses of the storage space to store the configuration data. The start and end addresses are determined by the start address of the configuration area and the size of the stored configuration data.

[0091] For example, the initial storage start address is the start address of the configuration area, and the configuration data to be stored is stored in the corresponding location according to the start address. Since the configuration data has a configuration size, the storage end address can be determined as the sum of the start address and the configuration size.

[0092] Step S502: Write the configuration data into the configuration area according to the storage start address and storage end address, and update the configuration identification information to the first configuration identification information;

[0093] In some embodiments, after writing certain configuration data is completed, it is also necessary to change the original configuration identifier information of the configuration data to the first configuration identifier information that indicates that the current configuration data is the latest configuration data.

[0094] It should be noted that the value of the first configuration identifier information can also be set to 0xFB. The specific setting can be made according to the actual situation, and this application embodiment does not impose any specific restrictions.

[0095] Step S503: After the storage of configuration data is completed, the storage end address is used as the updated storage start address to store the next configuration data. After the storage of the next configuration data is completed, the configuration identifier of the configuration data is set as the second configuration identifier information. The second configuration identifier information indicates that the corresponding configuration data is the old configuration data.

[0096] In some embodiments, the storage end address corresponding to the newly stored configuration data is used as the new storage start address. When storing the next configuration data, the storage location of the next configuration data is determined using the updated storage start address.

[0097] Furthermore, since the first configuration identifier information represents the latest configuration data, after the storage of the next configuration data is completed, the next configuration data will be changed to the latest configuration data. At this time, it is necessary to modify the configuration identifier information of the latest configuration data and the previous configuration data to clarify the latest configuration data.

[0098] For example, initially no configuration data is stored in the configuration area. After the storage of configuration data 1 is completed, the configuration identification information of configuration data 1 is rewritten to the first configuration identification information. Then, configuration data 2 is stored. At this time, configuration data 2 is the latest configuration data. Therefore, the configuration identification information of configuration data 2 is rewritten to the first configuration identification information, and the configuration identification information of configuration data 1 is rewritten to the second configuration identification information. The second configuration identification information indicates that configuration data 1 is not the latest configuration data.

[0099] The second configuration identifier information can be 0xF0 or other identifier data, as long as it can indicate that the corresponding configuration data is old configuration data rather than the latest configuration data. This application embodiment does not impose specific limitations.

[0100] In some embodiments, step S501 may include step S601:

[0101] Step S601: If the storage location corresponding to the configuration sector where the storage end address is located has already been written with configuration data, erase the configuration data at the storage location according to the storage start address and the storage end address to obtain the configuration sector after data erasure.

[0102] In some embodiments, if the location indicated by the storage end address indicates that other configuration data has already been written, the configuration data at that storage location needs to be erased in order to write new configuration data. It should be noted that since configuration data needs to be stored completely in the configuration area, even if the location indicated by the storage start address indicates that no other configuration data has been written, but the location indicated by the storage end address indicates that other configuration data has been written, data cannot be written. In this case, judging only the storage end address can speed up the determination of the storage conditions for configuration data, thereby improving the storage speed of configuration data.

[0103] It is understandable that each storage unit of Flash, i.e., the configuration sector, has a certain number of erase cycles. Erasing the same location of Flash multiple times will reduce the lifespan of the entire Flash. Therefore, in steps S501 to S503, after writing configuration data to each configuration sector in sequence until the configuration sector is full of data, the storage end address corresponding to the newly written configuration data is judged. If configuration data is written at the location corresponding to the storage end address, it means that the corresponding configuration sector has been filled with configuration data. At this time, the corresponding configuration sector is erased to average the number of erase cycles for each configuration sector, thereby avoiding Flash wear caused by erasing the same location multiple times and extending the lifespan of Flash.

[0104] like Figure 9 As shown, Figure 9 This is a flowchart of an implementation of step S601. In some embodiments, step S601 may include steps S701 to S702:

[0105] Step S701: When the storage start address and storage end address are not in the same configuration sector, and the storage end address is less than the end address, erase the configuration data of the configuration sector corresponding to the storage end address;

[0106] In some embodiments, when determining the configuration sector corresponding to the storage location to be erased, it is usually necessary to determine it based on the storage start address and storage end address. Since the configuration size of the configuration data varies, when storing new configuration data, it is very likely that the storage start address and storage end address will not be in the same configuration sector, that is, the storage will be performed across configuration sectors. In this case, it is necessary to further determine the relationship between the storage end address and the end address. If the storage end address is less than the end address, then all configuration data in the configuration sector corresponding to the storage end address will be erased.

[0107] Step S702: When the storage start address and storage end address are not in the same configuration sector, and the storage end address is greater than the end address, erase the configuration data in the first configuration sector corresponding to the configuration area based on the start address.

[0108] In some embodiments, if the storage start address and storage end address are not in the same configuration sector, and the write end address is greater than the end address, it means that the latest configuration data to be stored has exceeded the storage range of the configuration area, and the data needs to be stored again from the beginning of the configuration area. In this case, the configuration data in the first configuration sector of the configuration area needs to be erased for subsequent configuration data storage.

[0109] To better understand the configuration determination method in the embodiments of this application, another complete example is given below:

[0110] like Figure 10 As shown, Figure 10 This is another optional flowchart of the configuration data determination method provided in the embodiments of this application. When configuration data needs to be stored in the configuration area, the storage start address and storage end address of the configuration area are first obtained. Then, it is necessary to determine whether the storage location corresponding to the storage end address contains configuration data. If not, the configuration data can be directly stored in the configuration area according to the storage start address and storage end address. If so, it is necessary to further determine whether the storage end address is equal to or greater than the end address when the storage start address and storage end address are not in the same configuration sector. If not, the configuration data in the configuration sector corresponding to the storage end address is erased and the storage start address is updated. If so, the configuration data in the first configuration sector corresponding to the configuration area is erased according to the start address and the storage start address is updated. Thus, the storage of configuration data is completed.

[0111] It is understandable that, compared to delayed saving methods, the embodiments of this application can save configuration data in real time, avoiding the loss of a large amount of configuration data that could not be saved in real time when an abnormal power failure occurs. At the same time, by writing each configuration sector to fill it first and then erasing the corresponding configuration sector required for storage, the number of erasures for each configuration sector is averaged, thereby avoiding Flash wear caused by erasing the same position multiple times and extending the lifespan of the Flash.

[0112] like Figure 11 As shown, Figure 11 This is a functional module diagram of the configuration data determination system provided in this application embodiment. This application embodiment also provides a configuration data determination system that can implement the above-described configuration data determination method. The configuration data determination system includes:

[0113] Module 801 is used to obtain the start and end addresses of the preset configuration area;

[0114] The verification module 802 is used to traverse the unit byte information in the configuration area from the start address to the end address. If the unit byte information is the first configuration identifier information, the configuration sequence number and configuration address corresponding to the configuration data where the first configuration identifier information is located are recorded. The first configuration identifier information indicates that the corresponding configuration data is the latest configuration data.

[0115] The calculation module 803 is used to calculate the difference between the configuration sequence numbers of two adjacent configuration data when the traversal of the configuration area is completed, if there are multiple sets of the first configuration identifier information, to obtain at least one sequence difference.

[0116] Result module 804 is used to determine the latest target configuration data based on the configuration sequence number and the configuration address corresponding to the configuration sequence number if the sequence difference is not a preset unit value.

[0117] The specific implementation of this configuration data determination system is basically the same as the specific embodiment of the configuration data determination method described above, and will not be repeated here. Provided that the requirements of the embodiments of this application are met, the configuration data determination system may also be equipped with other functional modules to implement the configuration data determination method in the above embodiments.

[0118] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described configuration data determination method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0119] like Figure 12 As shown, Figure 12 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. The electronic device includes:

[0120] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0121] The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 using the configuration data determination method of the embodiments of this application.

[0122] The input / output interface 903 is used to implement information input and output;

[0123] The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0124] Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904);

[0125] The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0126] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described configuration data determination method.

[0127] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0128] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0129] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0130] The embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0131] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0132] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0133] It should be understood that in this application, "at least one" and "several" refer to one or more, and "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0134] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0135] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0136] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0137] If the integrated unit is implemented as 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 this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0138] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A method for determining configuration data, characterized in that, The method includes: Obtain the start and end addresses of the preset configuration area; Obtain the configuration size and configuration identifier information of the configuration data to be stored, and determine the storage start address and storage end address based on the start address and the configuration size; Based on the storage start address and the storage end address, the configuration data is written into the configuration area, and the configuration identification information is updated to the first configuration identification information; After the storage of the configuration data is completed, the storage end address is used as the updated storage start address to store the next configuration data. After the storage of the next configuration data is completed, the configuration identifier of the configuration data is set as the second configuration identifier information, which indicates that the corresponding configuration data is old configuration data. Starting from the start address, traverse the unit byte information in the configuration area in the direction of the end address. If the unit byte information is the first configuration identifier information, record the configuration sequence number and configuration address corresponding to the configuration data where the first configuration identifier information is located. The first configuration identifier information indicates that the corresponding configuration data is the latest configuration data. When the traversal of the configuration area is completed, if there are multiple sets of the first configuration identifier information, the difference is calculated on the configuration sequence number of two adjacent configuration data in turn to obtain at least one sequence difference. The configuration sequence number includes a threshold sequence number, which is used to indicate the upper limit of the sequence of the configuration sequence number. If the sequence difference is not a preset unit value, if the configuration sequence number includes the threshold sequence number, and the sequence difference is not a preset threshold, determine the second configuration sequence number with the largest sequence number from the multiple configuration sequence numbers, and determine the latest target configuration data based on the second configuration sequence number and the configuration address corresponding to the second configuration sequence number; If the configuration sequence number includes the threshold sequence number, and the sequence difference is a preset threshold, determine the smaller sequence number among the two adjacent configuration data corresponding to the sequence difference that is not the threshold as the third configuration sequence number, and determine the latest target configuration data based on the third configuration sequence number and the configuration address corresponding to the third configuration sequence number. If the threshold sequence number is not included in the configuration sequence number, the fourth configuration sequence number with the largest sequence number is determined from the plurality of configuration sequence numbers, and the latest target configuration data is determined according to the fourth configuration sequence number and the configuration address corresponding to the fourth configuration sequence number.

2. The configuration data determination method according to claim 1, characterized in that, After obtaining at least one sequence difference, the method further includes: If the sequence difference is a preset unit value, determine the first configuration sequence number with the largest sequence number from among the multiple configuration sequence numbers; The latest target configuration data is determined based on the first configuration serial number and the configuration address corresponding to the first configuration serial number.

3. The configuration data determination method according to claim 1, characterized in that, The unit byte information includes a unit byte length, which is used to indicate the storage size of the unit byte information. After traversing the unit byte information within the configuration area from the starting address to the ending address, the process further includes: After completing the traversal of the current unit byte information, the traversal address is obtained based on the unit byte length of the unit byte information and the starting address; Using the traversal address as the updated starting point, traverse the remaining unit byte information in the direction of the ending address until the traversal address equals the ending address, at which point the traversal ends.

4. The configuration data determination method according to claim 1, characterized in that, The configuration area includes multiple configuration sectors. After determining the storage start address and storage end address based on the start address and the configuration size, it further includes: If the storage location corresponding to the configuration sector where the storage end address is located has already been written with configuration data, the configuration data at the storage location is erased according to the storage start address and the storage end address to obtain the configuration sector after data erasure.

5. The configuration data determination method according to claim 4, characterized in that, The step of erasing the configuration data at the storage location based on the storage start address and the storage end address includes: When the storage start address and the storage end address are not in the same configuration sector, and the storage end address is less than the end address, the configuration data of the configuration sector corresponding to the storage end address is erased; When the storage start address and the storage end address are not in the same configuration sector, and the storage end address is greater than the end address, the configuration data in the first configuration sector corresponding to the configuration area is erased according to the start address.

6. A configuration data determination system, characterized in that, The system includes: The acquisition module is used to obtain the start and end addresses of the preset configuration area; In addition, the configuration size and configuration identifier information of the configuration data to be stored are obtained, and the storage start address and storage end address are determined according to the start address and the configuration size; Based on the storage start address and the storage end address, the configuration data is written into the configuration area, and the configuration identification information is updated to the first configuration identification information; After the storage of the configuration data is completed, the storage end address is used as the updated storage start address to store the next configuration data. After the storage of the next configuration data is completed, the configuration identifier of the configuration data is set as the second configuration identifier information, which indicates that the corresponding configuration data is old configuration data. The verification module is used to traverse the unit byte information in the configuration area from the start address to the end address. If the unit byte information is the first configuration identifier information, the module records the configuration sequence number and configuration address corresponding to the configuration data where the first configuration identifier information is located. The first configuration identifier information indicates that the corresponding configuration data is the latest configuration data. The calculation module is used to calculate the difference between the configuration sequence numbers of two adjacent configuration data when the traversal of the configuration area is completed, if there are multiple sets of the first configuration identifier information, to obtain at least one sequence difference. The configuration sequence number includes a threshold sequence number, which is used to indicate the upper limit of the sequence of the configuration sequence number. The result module is used to determine the second configuration sequence number with the largest sequence number from a plurality of configuration sequence numbers if the sequence difference is not a preset unit value, if the configuration sequence number includes the threshold sequence number, and the sequence difference is not a preset threshold, and to determine the latest target configuration data based on the second configuration sequence number and the configuration address corresponding to the second configuration sequence number. If the configuration sequence number includes the threshold sequence number, and the sequence difference is a preset threshold, determine the smaller sequence number among the two adjacent configuration data corresponding to the sequence difference that is not the threshold as the third configuration sequence number, and determine the latest target configuration data based on the third configuration sequence number and the configuration address corresponding to the third configuration sequence number. If the threshold sequence number is not included in the configuration sequence number, the fourth configuration sequence number with the largest sequence number is determined from the plurality of configuration sequence numbers, and the latest target configuration data is determined according to the fourth configuration sequence number and the configuration address corresponding to the fourth configuration sequence number.

7. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the configuration data determination method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the configuration data determination method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data processing device

    CN101192139A

  • Multi-petascale highly efficient parallel supercomputer

    US20110219208A1