Method and system for managing test data of embedded product
By dividing the data traceability area network on the blockchain and splitting the storage test data, the problem of large consumption of blockchain storage resources in traditional methods is solved, and more efficient storage and security is achieved.
Patent Information
- Application Number
- CN202411101928.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-08-12
AI Technical Summary
When traditional methods store test data in embedded products, they need to mobilize the entire blockchain network, resulting in excessive consumption of storage resources and lack of technical means to effectively reduce the consumption of blockchain storage resources.
By building a data traceability management network on the blockchain, it is divided into multiple data traceability area networks, and selecting the optimal area network based on the network performance value for testing data storage, splitting the data and storing it on multiple chain nodes, and using security The node generates an access key.
It improves the efficiency of blockchain storage resources utilization, reduces the burden on a single blockchain network, improves storage efficiency and response speed, and enhances network security and data accuracy.
Smart Images

Figure CN118944887A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a test data management method and system for embedded products, belonging to the technical field of test data storage. Background Art
[0002] Embedded products need to perform a lot of tests before they are put into use. How to manage the generated test data is a key link to ensure the normal operation of the product. Blockchain technology, with its characteristics of immutability, decentralization and transparency, provides an innovative solution for test data traceability. Since blockchain technology allows test data to be securely stored and shared among multiple nodes, it ensures the integrity and traceability of the data. In addition, blockchain can also provide real-time supply chain management, helping embedded companies and users understand every circulation link of embedded products, thereby improving the use and learning efficiency of embedded products.
[0003] Although blockchain technology has shown great potential in the testing of embedded products, traditional methods generally apply blockchain technology directly, that is, each block in the blockchain is used as a storage node, and the test data generated by the embedded product is directly stored in each storage node. Although this method can also achieve the purpose of traceability management, each time the test data is stored, the entire huge blockchain network and each storage node in the network need to be mobilized, which greatly consumes the storage resources of the entire blockchain. How to reasonably use the blockchain to achieve traceability management of test data is a technical problem that needs to be solved urgently.
[0004] That is, there is still a lack of a technical means to reduce the storage resource consumption of blockchain. Summary of the invention
[0005] The present invention provides a test data management method, device and computer-readable storage medium for an embedded product, the main purpose of which is to improve the utilization efficiency of the storage resources of the blockchain.
[0006] To achieve the above object, the present invention provides a test data management method for an embedded product, comprising: Receiving a test instruction of an embedded product, and locking the embedded product to be tested and a product testing device for testing the embedded product according to the test instruction; Sending a test configuration file of the product test device to a person who initiates the test instruction, and receiving a modified configuration file obtained after the initiator modifies the test configuration file; Start the product testing device to directly enter the product testing process, and test the embedded product based on the modified configuration file to obtain test data; Start the data traceability management network where the embedded product is located, where the data traceability management network is constructed by the blockchain and consists of K chain nodes, K ≥ 1; Based on the generation location and data volume of the test data, the data traceability management network is divided into at least two data traceability area networks, and each data traceability area network consists of N chain nodes, N≤K; Calculate the network performance value of each data traceability area network, select the data traceability area network with the highest network performance value, obtain the optimal traceability area network, and select security nodes and verification nodes from the chain nodes included in other data traceability area networks; Perform a split operation on the test data to obtain multiple groups of test data, where the number of groups of test data must be greater than or equal to the number of chain nodes included in the optimal traceability area network; Multiple groups of test data are stored without duplication in the chain nodes included in the optimal traceability area network. When the storage is completed, the security node is used to generate an access key, and the access key is sent back to the verification node to complete the test of the embedded product.
[0007] Optionally, based on the generation location and data volume of the test data, the data traceability management network is divided into at least two data traceability area networks, including: Obtain the local IP address of the embedded product and the transmission IP address of the test data, and determine whether the local IP address and the transmission IP address are located in the same network; If the local IP and the transmission IP are not in the same network, it is prohibited to perform network segmentation on the data traceability management network, and an abnormal reminder instruction for the test data is generated; If the local IP and the transmission IP are in the same network, the subnet mask of the transmission IP is used as the test data generation location to determine the data volume of the test data; Determine the radius with the location where the test data is generated as the point, and construct the screening range; Selecting a chain node belonging to the screening range from the data traceability management network; Based on the data volume of the test data, clustering is performed on the chain nodes that belong to the screening range to obtain at least 2 data traceability area networks.
[0008] Optionally, clustering is performed on the chain nodes belonging to the screening range based on the data volume of the test data to obtain at least two data traceability area networks, including: Receiving the number of iterations set by the operator of the embedded product, and calculating the number of cluster centers according to the amount of test data, wherein the number of cluster centers is greater than or equal to 2; Set the geographical coordinates of each cluster center, where the number of geographical coordinates is the same as the number of cluster centers; According to the geographic coordinates, the distance value between each chain node belonging to the screening range and the center of each cluster is calculated; Adjust the cluster center to which each chain node belongs according to the distance value; Determine the relationship between the number of times the cluster center to which each chain node belongs is adjusted and the number of iterations, and if the number of times the cluster center to which each chain node belongs is adjusted is less than the number of iterations, return to the distance value calculation step; Until the number of adjustments to the cluster center to which each chain node belongs is greater than or equal to the number of iterations, the cluster centers without chain nodes are eliminated, and the remaining cluster centers and the included chain nodes are determined as the data traceability area network, obtaining at least 2 data traceability area networks, and the number of data traceability area networks is less than or equal to the number of cluster centers.
[0009] Optionally, calculating the number of cluster centers according to the amount of test data includes: The number of cluster centers is calculated according to the following formula: ; Where H represents the number of cluster centers, [ ] represents the integer symbol, represents the amount of test data generated by the i-th embedded product when it is used, represents the standard amount of test data generated by the i-th embedded product when it is used, and is a weighting factor that can be set by the operator of the embedded product.
[0010] Optionally, calculating the network performance value of each data provenance area network includes: Obtain the storage records and performance indicators of all chain nodes in the data traceability zone network within the historical time period; The performance value is quantified based on the performance indicators, and the storage data volume and storage duration are extracted from the storage records; According to the activity of chain nodes in the historical time period, chain nodes are divided into high-activity nodes, medium-activity nodes and low-activity nodes; Based on high-activity nodes, medium-activity nodes, and low-activity nodes, weights are assigned to the corresponding performance values, storage data volumes, and storage durations to obtain weighted performance values, weighted storage data volumes, and weighted storage durations. The network performance value of the data traceability area network is calculated based on the weight performance value, weight storage data volume and weight storage time.
[0011] Optionally, the chain nodes are divided into high-activity nodes, medium-activity nodes and low-activity nodes according to the activity of the chain nodes in the historical time period, including: Get the number of storage times completed by the chain node in the historical time period; The activity of the chain node in the historical time period is calculated according to the following formula: ; in, represents the activity of the i-th chain node in the j-th data traceability zone network in the historical time period, and t represents the length of the historical time period. Indicates the number of storages completed by the i-th chain node in the j-th data traceability zone network in the historical time period, Indicates that the i-th chain node in the j-th data traceability zone network is executing The storage quantization value at the time of storage; When the activity is greater than or equal to the first activity threshold, the chain node is determined to be a high-activity node; When the activity is less than the first activity threshold and greater than or equal to the second activity threshold, the chain node is determined to be a medium-active node; When the activity is less than the second activity threshold, the chain node is determined to be a low-activity node.
[0012] Optionally, the calculation of the stored quantization value includes: ; in, Indicates that the i-th chain node in the j-th data traceability zone network is executing The amount of test data stored during the first storage.
[0013] Optionally, the network performance value of the data traceability area network is calculated based on the weight performance value, the weight storage data volume and the weight storage duration, including: Normalize the weight performance value, weight storage data volume, and weight storage duration to obtain a normalized performance value, a normalized storage data volume, and a normalized storage duration, respectively; The normalized performance value, normalized storage data volume, and normalized storage duration of all chain nodes are accumulated to obtain the accumulated performance value, accumulated storage data volume, and accumulated storage duration, where the accumulation operation is: ; ; ; in, , and They represent the cumulative performance value, cumulative storage data volume and cumulative storage duration of the j-th data traceability zone network, and u represents the total number of chain nodes included in the j-th data traceability zone network. , and They respectively represent the normalized performance value, normalized storage data volume, and normalized storage duration of the i-th chain node in the j-th data traceability zone network; The network performance value of the data traceability area network is calculated according to the following formula: ; in, represents the network performance value of the jth data traceability area network, It is the weight factor for calculating the network performance value of the j-th data traceability area network.
[0014] Optionally, selecting security nodes and verification nodes from chain nodes included in other data traceability zone networks includes: Determine the data tracing area network with the second highest network performance value as the data security verification network; Obtain the performance indicators of each chain node in the data security verification network in the historical time period, and quantify the performance value based on the performance indicators; The chain node with the highest performance value is selected as the security node, and the chain node with the second highest performance value is selected as the verification node.
[0015] To achieve the above object, the present invention also provides a test data management system for embedded products, comprising: A test data receiving module is used to receive a test instruction of an embedded product, lock the embedded product to be tested and the product test device used to test the embedded product according to the test instruction, send a test configuration file of the product test device to the initiator of the test instruction, and receive a modified configuration file obtained after the initiator modifies the test configuration file, start the product test device to directly enter the product test process, and test the embedded product based on the modified configuration file to obtain test data, and start the data traceability management network where the embedded product is located, wherein the data traceability management network is constructed by a blockchain, and the data traceability management network consists of K chain nodes, K≥1; The network partitioning module is used to perform network partitioning on the data traceability management network based on the generation location and data volume of the test data, and obtain at least 2 data traceability area networks, and each data traceability area network consists of N chain nodes, N≤K: The zone network selection module is used to calculate the network performance value of each data traceability zone network, select the data traceability zone network with the highest network performance value, obtain the optimal traceability zone network, and select security nodes and verification nodes from the chain nodes included in other data traceability zone networks; The test data storage module is used to perform a split operation on the test data to obtain multiple groups of test sub-data, wherein the number of groups of test sub-data must be greater than or equal to the number of chain nodes included in the optimal traceability area network, and the multiple groups of test sub-data are stored without duplication in the chain nodes included in the optimal traceability area network. When the storage is completed, an access key is generated using the security node, and the access key is returned to the verification node to complete the test of the embedded product.
[0016] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the test data management method for the embedded product described above.
[0017] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the test data management method for embedded products described above.
[0018] Compared with the problem described in the background technology, the present invention first receives a test instruction for an embedded product, locks the embedded product to be tested and a product testing device for testing the embedded product according to the test instruction, sends a test configuration file of the product testing device to the initiator of the test instruction, receives a modified configuration file obtained after the initiator modifies the test configuration file, starts the product testing device to directly enter the product testing process, and tests the embedded product based on the modified configuration file to obtain test data, and starts the data traceability management network where the embedded product is located, wherein the data traceability management network is constructed by a blockchain, and the data traceability management network is divided based on the generation location and data volume of the test data to obtain at least two data traceability area networks, and the network is divided based on the generation location and data volume of the test data to obtain multiple smaller data traceability area networks, instead of storing all data in a single large blockchain network, thereby reducing the burden on a single blockchain network and improving the storage efficiency of the overall network; then, the network performance value of each data traceability area network is calculated, and the data traceability area network with the highest network performance value is selected to obtain the optimal traceability area. The network is selected from the chain nodes included in other data traceability area networks, and the security node and verification node are selected from the chain nodes included in other data traceability area networks. The area network with the highest network performance value is selected as the optimal traceability area network, which can ensure that the test data is stored in the network with the best performance, thereby further improving the storage efficiency and response speed. In addition, selecting security nodes and verification nodes from other data traceability area networks helps to improve the security of the network and the accuracy of the data, while avoiding the resource consumption caused by multiple storage in different chain nodes; finally, the test data is split to obtain multiple groups of test sub-data, where the number of groups of test sub-data must be greater than or equal to the number of chain nodes included in the optimal traceability area network, and the multiple groups of test sub-data are stored in the chain nodes included in the optimal traceability area network without duplication. When the storage is completed, the access key is generated by using the security node, and the access key is transmitted back to the verification node to complete the test data management of the embedded product. The test data is split into multiple groups of test sub-data, and the data can be stored in different chain nodes in the optimal traceability area network in a dispersed manner, avoiding the concentration of data on a few nodes, thereby improving the balance and utilization of storage resources. Therefore, the main purpose of the test data management method and system for embedded products proposed in the present invention is to improve the utilization efficiency of the storage resources of the blockchain. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of a flow chart of a test data management method for an embedded product provided by an embodiment of the present invention; Figure 2 A functional module diagram of a test data management system for an embedded product provided by an embodiment of the present invention; Figure 3A schematic diagram of the structure of an electronic device for implementing the test data management method for embedded products provided by an embodiment of the present invention.
[0020] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0022] The embodiment of the present application provides a test data management method for an embedded product. The execution subject of the test data management method for the embedded product includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the test data management method for the embedded product can be executed by software or hardware installed in a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0023] Embodiment 1: Reference Figure 1 FIG. 1 is a flow chart of a test data management method for an embedded product provided by an embodiment of the present invention. In this embodiment, the test data management method for an embedded product includes: S1. Receive a test instruction for an embedded product, and lock the embedded product to be tested and a product testing device for testing the embedded product according to the test instruction.
[0024] It should be explained that embedded products need to be tested upon production, including PCBA testing and assembly testing. Among them, PCBA testing includes ICT testing, FCT testing, aging testing, fatigue testing, testing in harsh environments, etc. ICT testing includes the circuit continuity, voltage and current values and fluctuation curves, amplitude, noise, etc. of embedded products, and FCT testing includes IC program burning, simulation testing, etc.
[0025] For example, Xiao Zhang is a communications engineer, and his company recently produced a batch of switches, so Xiao Zhang initiated a test instruction, that is, the switch is an embedded product. It can be understood that the device used to test the switch is a product testing device. That is, the product testing device can perform PCBA testing and assembly testing on the switch in sequence.
[0026] In addition, in the embodiment of the present invention, the product testing device will directly enter the embedded product test when it is powered on by default, thereby reducing the time for manual operation of the product testing device and improving the test efficiency.
[0027] S2. Send the test configuration file of the product test device to the initiator of the test instruction, and receive the modified configuration file obtained after the initiator modifies the test configuration file.
[0028] It should be explained that PCBA test and assembly test can be realized by modifying the test configuration file. In the embodiment of the present invention, the file format of the test configuration file is json, and the test configuration file has multiple test functions according to the test purpose, such as ICT test corresponding to ICT test function, FCT test corresponding to FCT test function, and so on. Which test function is run will determine which test will be performed on the embedded product, thereby realizing the liberalization and intelligence of the test. And importantly, the initiator of the test instruction can set the function parameters of the test function very flexibly.
[0029] S3. Start the product testing device to directly enter the product testing process, and test the embedded product based on the modified configuration file to obtain test data.
[0030] Exemplarily, Xiao Zhang uses a product testing device to perform PCBA testing and assembly testing on the switch, thereby generating test data for the switch.
[0031] S4. Start the data traceability management network where the embedded product is located.
[0032] Importantly, the data traceability management network described in the embodiment of the present invention is constructed by blockchain, and the data traceability management network consists of K chain nodes, K ≥ 1. Blockchain is a distributed storage technology with unique advantages in security, transparency and decentralization. In the embodiment of the present invention, the data traceability management network consists of K chain nodes, each of which represents a block and the storage space corresponding to the block, and as is known to the public, each block contains a block header (Header) and a block body (Body). The block header contains the hash value, timestamp, difficulty target (Target), Nonce and other information of the previous block. Therefore, each chain node not only has the high security characteristics of the block, but also has storage capabilities.
[0033] S5. Based on the generation location and data volume of the test data, perform network division on the data traceability management network to obtain at least 2 data traceability area networks.
[0034] In detail, based on the generation location and data volume of the test data, the data traceability management network is divided into at least two data traceability area networks, including: Obtain the local IP address of the embedded product and the transmission IP address of the test data, and determine whether the local IP address and the transmission IP address are located in the same network; If the local IP and the transmission IP are not in the same network, it is prohibited to perform network segmentation on the data traceability management network, and an abnormal reminder instruction for the test data is generated; If the local IP and the transmission IP are in the same network, the subnet mask of the transmission IP is used as the test data generation location to determine the data volume of the test data; Determine the radius with the location where the test data is generated as the point, and construct the screening range; Selecting a chain node belonging to the screening range from the data traceability management network; Based on the data volume of the test data, clustering is performed on the chain nodes that belong to the screening range to obtain at least 2 data traceability area networks.
[0035] For example, the product testing device of Xiao Zhang's company needs to upload the switch test data to the data traceability management network, so the product testing device needs to connect to the company's network. Assuming that the IP address of the product testing device is: "192.168.1.10 / 24", then "192.168.1.10 / 24" is the local IP.
[0036] In order to prevent the test data generated by embedded products from being stolen, most companies do not directly connect the embedded products to the data traceability management network. Instead, they add a security verification mechanism between the embedded products and the data traceability management network. That is, it is not the product test device that transmits the test data, but the security verification mechanism that first receives the switch test data generated by the product test device in the company's network, and then transmits the switch test data to the data traceability management network. Therefore, the local IP and the transmission IP are often different. Assuming that the IP address of the security verification mechanism is: "192.168.1.20 / 24", then "192.168.1.20 / 24" is the transmission IP.
[0037] It should be explained that within the same network, the subnet masks of all devices are consistent, that is, the security verification mechanism and the product testing device have the same subnet mask. Assuming that the subnet masks of the IP address of the product testing device and the IP address of the security verification mechanism are both "255.255.255.0", it means that the local IP and the transmission IP are in the same network, that is, the product testing device and the security verification mechanism belong to the same network and have a certain degree of security, so subsequent network division can be performed.
[0038] Furthermore, assuming that the subnet mask of "255.255.255.0" is used as the dot and 10KM is used as the radius to construct a screening range, it means that as long as the geographical location of the chain nodes is within the screening range, they meet this requirement.
[0039] Finally, the chain nodes belonging to the screening range are clustered based on the data volume of the test data to obtain at least two data traceability area networks, including: Receiving the number of iterations set by the operator of the embedded product, and calculating the number of cluster centers according to the amount of test data, wherein the number of cluster centers is greater than or equal to 2; Set the geographical coordinates of each cluster center, where the number of geographical coordinates is the same as the number of cluster centers; According to the geographic coordinates, the distance value between each chain node belonging to the screening range and the center of each cluster is calculated; Adjust the cluster center to which each chain node belongs according to the distance value; Determine the relationship between the number of times the cluster center to which each chain node belongs is adjusted and the number of iterations, and if the number of times the cluster center to which each chain node belongs is adjusted is less than the number of iterations, return to the distance value calculation step; Until the number of adjustments to the cluster center to which each chain node belongs is greater than or equal to the number of iterations, the cluster centers without chain nodes are eliminated, and the remaining cluster centers and the included chain nodes are determined as the data traceability area network, obtaining at least 2 data traceability area networks, and the number of data traceability area networks is less than or equal to the number of cluster centers.
[0040] For example, there are 300 chain nodes in the screening range, and now it is necessary to build one or more data traceability area networks based on these 300 chain nodes. Assuming that the number of iterations set by the operator of the embedded product is 20 times, it is further necessary to calculate the number of cluster centers. In detail, the calculation of the number of cluster centers based on the amount of test data includes: The number of cluster centers is calculated according to the following formula: ; Where H represents the number of cluster centers, [ ] represents the integer symbol, represents the amount of test data generated by the i-th embedded product when it is used, represents the standard amount of test data generated by the i-th embedded product when it is used, and is a weighting factor that can be set by the operator of the embedded product.
[0041] It should be explained that if the H value calculated according to the above is less than 2, the number of cluster centers is directly determined to be 2.
[0042] For example, there are 300 chain nodes within the screening range. According to the above assumptions, the number of cluster centers calculated is 10, which means that the data of the generated data traceability area network is less than or equal to 10 cluster centers.
[0043] Furthermore, when the number of cluster centers is 10 and the number of iterations is 20, the above clustering operation is performed. When the number of adjustments to the cluster center to which each chain node belongs is greater than or equal to the number of iterations, assuming that it is found that the 5th cluster center does not include any chain node, the 5th cluster center is removed, leaving a total of 9 cluster centers and generating 9 data traceability area networks. It is assumed that the 1st data traceability area network has 20 chain nodes, the 2nd data traceability area network has 30 chain nodes,... , the 10th data traceability area network has 15 chain nodes. S6. Calculate the network performance value of each data traceability area network, select the data traceability area network with the highest network performance value, obtain the optimal traceability area network, and select security nodes and verification nodes from the chain nodes included in other data traceability area networks.
[0044] Specifically, the network performance value of each data tracing area network is calculated, including: Obtain the storage records and performance indicators of all chain nodes in the data traceability zone network within the historical time period; The performance value is quantified based on the performance indicators, and the storage data volume and storage duration are extracted from the storage records; According to the activity of chain nodes in the historical time period, chain nodes are divided into high-activity nodes, medium-activity nodes and low-activity nodes; Based on high-activity nodes, medium-activity nodes, and low-activity nodes, weights are assigned to the corresponding performance values, storage data volumes, and storage durations to obtain weighted performance values, weighted storage data volumes, and weighted storage durations. The network performance value of the data traceability area network is calculated based on the weight performance value, weight storage data volume and weight storage time.
[0045] For example, assuming that the second data traceability area network has 30 chain nodes, the storage records and performance indicators of the 30 chain nodes in the historical time period are extracted. Assuming that the first chain node has stored test data 6 times in the past month, and when storing the test data for the first time, the performance indicators of the first chain node include CPU load rate of 37%, memory utilization rate of 52%, etc. The data volume of the test data is 10M (storage data volume), and it takes 10 seconds (storage duration) to complete the storage of 10M test data.
[0046] Furthermore, it is necessary to quantify the performance value based on the performance indicators. The embodiments of the present invention have various methods for quantifying the performance value based on the performance indicators. For example, performance indicators including a CPU load rate of 37% and a memory usage rate of 52% are used as input data for machine learning. These input data are analyzed through machine learning to finally obtain an output value, and the output value is the performance value.
[0047] The key point is that the embodiment of the present invention does not directly use the performance value, the amount of stored data and the storage time to build a network performance model, but first classifies the chain nodes according to the activity, because the importance of chain nodes with different activity levels in the data traceability area network is different, and the chain nodes with high activity levels are definitely more important in the data traceability area network. Therefore, in detail, the chain nodes are divided into high-activity nodes, medium-activity nodes and low-activity nodes according to the activity levels of the chain nodes in the historical time period, including: Get the number of storage times completed by the chain node in the historical time period; The activity of the chain node in the historical time period is calculated according to the following formula: ; in, represents the activity of the i-th chain node in the j-th data traceability zone network in the historical time period, and t represents the length of the historical time period. Indicates the number of storages completed by the i-th chain node in the j-th data traceability zone network in the historical time period, Indicates that the i-th chain node in the j-th data traceability zone network is executing The storage quantization value at the time of storage; When the activity is greater than or equal to the first activity threshold, the chain node is determined to be a high-activity node; When the activity is less than the first activity threshold and greater than or equal to the second activity threshold, the chain node is determined to be a medium-active node; When the activity is less than the second activity threshold, the chain node is determined to be a low-activity node.
[0048] For example, the second data traceability zone network has 30 chain nodes, and the first chain node has stored 6 test data in the past month. , assuming that the length of the historical time period is 30 days, then t=30. Further, the calculation of the storage quantization value needs to depend on whether each storage test data is successfully calculated. In detail, the calculation of the storage quantization value includes: ; in, Indicates that the i-th chain node in the j-th data traceability zone network is executing The amount of test data stored during the first storage.
[0049] For example, if the first chain node has stored test data for 6 times in the past month, and 2 of them failed to store test data, then mark , other storage success depends on the amount of data stored in the test data. In addition, the first active threshold and the second active threshold can be preset by empirical values.
[0050] Furthermore, the embodiment of the present invention assigns higher weights to performance values, storage data volumes and storage durations for highly active nodes, followed by medium active nodes, and finally low active nodes. Assuming that the performance value, storage data volume and storage duration of the first chain node are 0.15, 100M and 120 seconds respectively, a weight of 0.5 is assigned, that is, 0.5 multiplied by 0.15, 100M and 120 respectively. If the weight assigned to the medium active node is 0.3 and the weight assigned to the low active node is 0.2, they are also multiplied accordingly, and the sum of the weights of the highly active node, the medium active node and the low active node is 1.
[0051] It should be emphasized that the embodiments of the present invention can use a variety of methods to calculate the network performance value of the data traceability area network, including but not limited to using the weight performance value, the amount of weighted storage data, and the weighted storage duration as a machine learning model to perform analysis to obtain an output value for measuring the data traceability area network, which is the network performance value. In addition, in another embodiment of the present invention, the network performance value can be calculated by a simple and direct method. In detail, the network performance value of the data traceability area network calculated based on the weighted performance value, the amount of weighted storage data, and the weighted storage duration includes: Normalize the weight performance value, weight storage data volume, and weight storage duration to obtain a normalized performance value, a normalized storage data volume, and a normalized storage duration, respectively; The normalized performance value, normalized storage data volume, and normalized storage duration of all chain nodes are accumulated to obtain the accumulated performance value, accumulated storage data volume, and accumulated storage duration, where the accumulation operation is: ; ; ; in, , and They represent the cumulative performance value, cumulative storage data volume and cumulative storage duration of the j-th data traceability zone network, and u represents the total number of chain nodes included in the j-th data traceability zone network. , and They respectively represent the normalized performance value, normalized storage data volume, and normalized storage duration of the i-th chain node in the j-th data traceability zone network; The network performance value of the data traceability area network is calculated according to the following formula: ; in, represents the network performance value of the jth data traceability area network, It is the weight factor for calculating the network performance value of the j-th data traceability area network.
[0052] For example, assuming that the second data traceability area network has 30 chain nodes, the 30 chain nodes correspond to 30 weight performance values, weight storage data volume, and weight storage duration. Now the 30 weight performance values, weight storage data volume, and weight storage duration are normalized to obtain 30 normalized performance values, normalized storage data volume, and normalized storage duration (it should be noted that the normalization operation is a separate operation, that is, the first weight performance value, weight storage data volume, and weight storage duration are normalized, the second weight performance value, weight storage data volume, and weight storage duration are normalized, and so on). Further, according to the above-mentioned accumulation operation and combined with the calculation formula of the network performance value, the final calculation is obtained. The network performance value of the data traceability area network.
[0053] Specifically, after calculating the network performance value of each data traceability area network, the data traceability area network with the highest network performance value is selected as the optimal traceability area network, and in order to ensure the storage security of the test data, the embodiment of the present invention selects security nodes and verification nodes from the chain nodes included in other data traceability area networks. And there are various selection methods. In one embodiment of the present invention, the selection of security nodes and verification nodes from the chain nodes included in other data traceability area networks includes: Determine the data tracing area network with the second highest network performance value as the data security verification network; Obtain the performance indicators of each chain node in the data security verification network in the historical time period, and quantify the performance value based on the performance indicators; The chain node with the highest performance value is selected as the security node, and the chain node with the second highest performance value is selected as the verification node.
[0054] It can be understood that the embodiment of the present invention performs network division on the data traceability management network to obtain at least two data traceability area networks, so there is at least one data traceability area network as a backup network for the data security verification network, and the method of quantifying the performance value based on the performance indicator is similar to the above-mentioned S3 step, which will not be repeated here.
[0055] S7. Split the test data to obtain multiple groups of test data, where the number of groups of test data must be greater than or equal to the number of chain nodes included in the optimal traceability area network.
[0056] In order to ensure the security of the test data and combine the characteristics of blockchain that cannot be tampered with, the embodiment of the present invention will perform a split operation on the test data to obtain multiple groups of test sub-data, and in order to improve security, the number of groups of test sub-data must be greater than or equal to the number of chain nodes included in the optimal traceability area network. Exemplarily, assuming that the number of chain nodes included in the optimal traceability area network is 20, the test data needs to be split into at least 20 groups of test sub-data.
[0057] S8. Store multiple groups of test data without duplication in the chain nodes included in the optimal traceability area network. When the storage is completed, use the security node to generate an access key, and send the access key back to the verification node to complete the test data management of the embedded product.
[0058] Importantly, when performing test data storage, the embodiment of the present invention preferentially selects chain nodes with higher activity, that is, stores multiple groups of test data in the order of high-activity nodes, medium-activity nodes and low-activity nodes, and when the storage is completed, uses the security node to generate an access key and transmits the access key back to the verification node.
[0059] Understandably, there are various ways to generate access keys using security nodes, including but not limited to using encryption methods such as BitLocker, FileVault, Transparent Data Encryption (TDE) and column-level encryption on chain nodes in the optimal traceability area network to generate access keys, and then transmitting the access keys back to the verification nodes.
[0060] Compared with the problem described in the background technology, the present invention first receives a test instruction for an embedded product, locks the embedded product to be tested and a product testing device for testing the embedded product according to the test instruction, sends a test configuration file of the product testing device to the initiator of the test instruction, receives a modified configuration file obtained after the initiator modifies the test configuration file, starts the product testing device to directly enter the product testing process, and tests the embedded product based on the modified configuration file to obtain test data, and starts the data traceability management network where the embedded product is located, wherein the data traceability management network is constructed by a blockchain, and the data traceability management network is divided based on the generation location and data volume of the test data to obtain at least two data traceability area networks, and the network is divided based on the generation location and data volume of the test data to obtain multiple smaller data traceability area networks, instead of storing all data in a single large blockchain network, thereby reducing the burden on a single blockchain network and improving the storage efficiency of the overall network; then, the network performance value of each data traceability area network is calculated, and the data traceability area network with the highest network performance value is selected to obtain the optimal traceability area. The network is selected from the chain nodes included in other data traceability area networks, and the security node and verification node are selected from the chain nodes included in other data traceability area networks. The area network with the highest network performance value is selected as the optimal traceability area network, which can ensure that the test data is stored in the network with the best performance, thereby further improving the storage efficiency and response speed. In addition, selecting security nodes and verification nodes from other data traceability area networks helps to improve the security of the network and the accuracy of the data, while avoiding the resource consumption caused by multiple storage in different chain nodes; finally, the test data is split to obtain multiple groups of test sub-data, where the number of groups of test sub-data must be greater than or equal to the number of chain nodes included in the optimal traceability area network, and the multiple groups of test sub-data are stored in the chain nodes included in the optimal traceability area network without duplication. When the storage is completed, the access key is generated by using the security node, and the access key is transmitted back to the verification node to complete the test data management of the embedded product. The test data is split into multiple groups of test sub-data, and the data can be stored in different chain nodes in the optimal traceability area network in a dispersed manner, avoiding the concentration of data on a few nodes, thereby improving the balance and utilization of storage resources. Therefore, the main purpose of the test data management method and system for embedded products proposed in the present invention is to improve the utilization efficiency of the storage resources of the blockchain.
[0061] Embodiment 2: like Figure 2 FIG. 1 is a functional module diagram of a test data management system for embedded products provided by an embodiment of the present invention.
[0062] The test data management system 100 of the embedded product of the present invention can be installed in an electronic device. According to the functions to be implemented, the test data management system 100 of the embedded product may include a test data receiving module 101, a network partitioning module 102, a zone network selection module 103 and a test data storage module 104. The module of the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0063] The test data receiving module 101 is used to receive a test instruction of an embedded product, lock the embedded product to be tested and the product test device used to test the embedded product according to the test instruction, send the test configuration file of the product test device to the initiator of the test instruction, and receive the modified configuration file obtained after the initiator modifies the test configuration file, start the product test device to directly enter the product test process, and test the embedded product based on the modified configuration file to obtain test data, and start the data traceability management network where the embedded product is located, wherein the data traceability management network is constructed by a blockchain, and the data traceability management network consists of K chain nodes, K≥1; The network partitioning module 102 is used to perform network partitioning on the data traceability management network based on the generation location and data volume of the test data to obtain at least two data traceability area networks, and each data traceability area network is composed of N chain nodes, N≤K; The area network selection module 103 is used to calculate the network performance value of each data traceability area network, and select the data traceability area network with the highest network performance value to obtain the optimal traceability area network, and select the security node and the verification node from the chain nodes included in other data traceability area networks; The test data storage module 104 is used to perform a splitting operation on the test data to obtain multiple groups of test sub-data, wherein the number of groups of the test sub-data must be greater than or equal to the number of chain nodes included in the optimal traceability area network, and the multiple groups of test sub-data are stored without duplication in the chain nodes included in the optimal traceability area network. When the storage is completed, an access key is generated using a security node, and the access key is transmitted back to the verification node to complete the test of the embedded product.
[0064] In detail, each module in the test data management system 100 of the embedded product in the embodiment of the present invention is used in the same manner as described above. Figure 1 The test data management method for embedded products described in the present invention has the same technical means and can produce the same technical effects, so it will not be repeated here.
[0065] Embodiment 3: like Figure 3FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a test data management method for embedded products provided by an embodiment of the present invention.
[0066] The electronic device 1 may include a processor 10, a memory 11, a bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a test data management program for an embedded product.
[0067] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the test data management program of an embedded product, but also be used to temporarily store data that has been output or is to be output.
[0068] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (such as test data management programs of embedded products, etc.) stored in the memory 11, and calling data stored in the memory 11.
[0069] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0070] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0071] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0072] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0073] Optionally, the electronic device 1 may further include a user interface, which may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0074] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0075] The test data management program of the embedded product stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve: Receiving a test instruction of an embedded product, and locking the embedded product to be tested and a product testing device for testing the embedded product according to the test instruction; Sending a test configuration file of the product test device to a person who initiates the test instruction, and receiving a modified configuration file obtained after the initiator modifies the test configuration file; Start the product testing device to directly enter the product testing process, and test the embedded product based on the modified configuration file to obtain test data; Start the data traceability management network where the embedded product is located, where the data traceability management network is constructed by the blockchain and consists of K chain nodes, K ≥ 1; Based on the generation location and data volume of the test data, the data traceability management network is divided into at least two data traceability area networks, and each data traceability area network consists of N chain nodes, N≤K; Calculate the network performance value of each data traceability area network, select the data traceability area network with the highest network performance value, obtain the optimal traceability area network, and select security nodes and verification nodes from the chain nodes included in other data traceability area networks; Perform a split operation on the test data to obtain multiple groups of test data, where the number of groups of test data must be greater than or equal to the number of chain nodes included in the optimal traceability area network; Multiple groups of test data are stored without duplication in the chain nodes included in the optimal traceability area network. When the storage is completed, the security node is used to generate an access key, and the access key is sent back to the verification node to complete the test of the embedded product.
[0076] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0077] Furthermore, if the module / unit integrated in the electronic device 1 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. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0078] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement: Receiving a test instruction of an embedded product, and locking the embedded product to be tested and a product testing device for testing the embedded product according to the test instruction; Sending a test configuration file of the product test device to a person who initiates the test instruction, and receiving a modified configuration file obtained after the initiator modifies the test configuration file; Start the product testing device to directly enter the product testing process, and test the embedded product based on the modified configuration file to obtain test data; Start the data traceability management network where the embedded product is located, where the data traceability management network is constructed by the blockchain and consists of K chain nodes, K ≥ 1; Based on the generation location and data volume of the test data, the data traceability management network is divided into at least two data traceability area networks, and each data traceability area network consists of N chain nodes, N≤K; Calculate the network performance value of each data traceability area network, select the data traceability area network with the highest network performance value, obtain the optimal traceability area network, and select security nodes and verification nodes from the chain nodes included in other data traceability area networks; Perform a split operation on the test data to obtain multiple groups of test data, where the number of groups of test data must be greater than or equal to the number of chain nodes included in the optimal traceability area network; Multiple groups of test data are stored without duplication in the chain nodes included in the optimal traceability area network. When the storage is completed, the security node is used to generate an access key, and the access key is sent back to the verification node to complete the test of the embedded product.
[0079] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0080] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0081] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A test data management method for embedded products, characterized in that: The method comprises: Receiving a test instruction of an embedded product, and locking the embedded product to be tested and a product testing device for testing the embedded product according to the test instruction; Sending a test configuration file of the product test device to a person who initiates the test instruction, and receiving a modified configuration file obtained after the initiator modifies the test configuration file; Start the product testing device to directly enter the product testing process, and test the embedded product based on the modified configuration file to obtain test data; Start the data traceability management network where the embedded product is located, where the data traceability management network is constructed by the blockchain and consists of K chain nodes, K ≥ 1; Based on the generation location and data volume of the test data, the data traceability management network is divided into at least two data traceability area networks, and each data traceability area network consists of N chain nodes, N≤K; Calculate the network performance value of each data traceability area network, select the data traceability area network with the highest network performance value, obtain the optimal traceability area network, and select security nodes and verification nodes from the chain nodes included in other data traceability area networks; Perform a split operation on the test data to obtain multiple groups of test data, where the number of groups of test data must be greater than or equal to the number of chain nodes included in the optimal traceability area network; Multiple groups of test data are stored without duplication in the chain nodes included in the optimal traceability area network. When the storage is completed, the security node is used to generate an access key, and the access key is sent back to the verification node to complete the test of the embedded product.
2. The test data management method for embedded products according to claim 1, characterized in that: Based on the generation location and data volume of the test data, the data traceability management network is divided into two networks to obtain at least two data traceability area networks, including: Obtain the local IP address of the embedded product and the transmission IP address of the test data, and determine whether the local IP address and the transmission IP address are located in the same network; If the local IP and the transmission IP are not in the same network, it is prohibited to perform network segmentation on the data traceability management network, and an abnormal reminder instruction for the test data is generated; If the local IP and the transmission IP are in the same network, the subnet mask of the transmission IP is used as the test data generation location to determine the data volume of the test data; Determine the radius with the location where the test data is generated as the point, and construct the screening range; Selecting a chain node belonging to the screening range from the data traceability management network; Based on the data volume of the test data, clustering is performed on the chain nodes that belong to the screening range to obtain at least 2 data traceability area networks.
3. The test data management method for embedded products according to claim 2, characterized in that: The chain nodes belonging to the screening range are clustered based on the data volume of the test data to obtain at least two data traceability area networks, including: Receiving the number of iterations set by the operator of the embedded product, and calculating the number of cluster centers according to the amount of test data, wherein the number of cluster centers is greater than or equal to 2; Set the geographical coordinates of each cluster center, where the number of geographical coordinates is the same as the number of cluster centers; According to the geographic coordinates, the distance value between each chain node belonging to the screening range and the center of each cluster is calculated; Adjust the cluster center to which each chain node belongs according to the distance value; Determine the relationship between the number of times the cluster center to which each chain node belongs is adjusted and the number of iterations, and if the number of times the cluster center to which each chain node belongs is adjusted is less than the number of iterations, return to the distance value calculation step; Until the number of adjustments to the cluster center to which each chain node belongs is greater than or equal to the number of iterations, the cluster centers without chain nodes are eliminated, and the remaining cluster centers and the included chain nodes are determined as the data traceability area network, obtaining at least 2 data traceability area networks, and the number of data traceability area networks is less than or equal to the number of cluster centers.
4. The test data management method for embedded products according to claim 3, characterized in that: The step of calculating the number of cluster centers according to the amount of test data includes: The number of cluster centers is calculated according to the following formula: ; where H represents the number of cluster centers, [ ] represents the rounding symbol, represents the amount of test data generated by the i-th embedded product when it is used, represents the standard amount of test data generated by the i-th embedded product when it is used, and is a weighting factor that can be set by the operator of the embedded product.
5. The test data management method for embedded products according to claim 1, characterized in that: The network performance value of each data traceability area network is calculated, including: Obtain the storage records and performance indicators of all chain nodes in the data traceability zone network within the historical time period; The performance value is quantified based on the performance indicators, and the storage data volume and storage duration are extracted from the storage records; According to the activity of chain nodes in the historical time period, chain nodes are divided into high-activity nodes, medium-activity nodes and low-activity nodes; Based on high-activity nodes, medium-activity nodes, and low-activity nodes, weights are assigned to the corresponding performance values, storage data volumes, and storage durations to obtain weighted performance values, weighted storage data volumes, and weighted storage durations. The network performance value of the data traceability area network is calculated based on the weight performance value, weight storage data volume and weight storage time.
6. The test data management method for embedded products according to claim 5, characterized in that: According to the activity of the chain nodes in the historical time period, the chain nodes are divided into high-activity nodes, medium-activity nodes and low-activity nodes, including: Get the number of storage times completed by the chain node in the historical time period; The activity of the chain node in the historical time period is calculated according to the following formula: ; in, represents the activity of the i-th chain node in the j-th data traceability zone network in the historical time period, and t represents the length of the historical time period. Indicates the number of storages completed by the i-th chain node in the j-th data traceability zone network in the historical time period, Indicates that the i-th chain node in the j-th data traceability zone network is executing The storage quantization value at the time of storage; When the activity is greater than or equal to the first activity threshold, the chain node is determined to be a high-activity node; When the activity is less than the first activity threshold and greater than or equal to the second activity threshold, the chain node is determined to be a medium-active node; When the activity is less than the second activity threshold, the chain node is determined to be a low-activity node.
7. The test data management method for embedded products according to claim 6, characterized in that: The calculation of the stored quantization value includes: ; in, Indicates that the i-th chain node in the j-th data traceability zone network is executing The amount of test data stored during the first storage.
8. The test data management method for embedded products according to claim 6, characterized in that: The network performance value of the data traceability area network is calculated based on the weight performance value, the weight storage data volume and the weight storage duration, including: Normalize the weight performance value, weight storage data volume, and weight storage duration to obtain a normalized performance value, a normalized storage data volume, and a normalized storage duration, respectively; The normalized performance value, normalized storage data volume, and normalized storage duration of all chain nodes are accumulated to obtain the accumulated performance value, accumulated storage data volume, and accumulated storage duration, where the accumulation operation is: ; ; ; in, , and They represent the cumulative performance value, cumulative storage data volume and cumulative storage duration of the j-th data traceability zone network, and u represents the total number of chain nodes included in the j-th data traceability zone network. , and They respectively represent the normalized performance value, normalized storage data volume, and normalized storage duration of the i-th chain node in the j-th data traceability zone network; The network performance value of the data traceability area network is calculated according to the following formula: ; in, represents the network performance value of the jth data traceability area network, It is the weight factor for calculating the network performance value of the j-th data traceability area network.
9. The test data management method for embedded products according to claim 8, characterized in that: The step of selecting security nodes and verification nodes from chain nodes included in other data traceability area networks includes: Determine the data tracing area network with the second highest network performance value as the data security verification network; Obtain the performance indicators of each chain node in the data security verification network in the historical time period, and quantify the performance value based on the performance indicators; The chain node with the highest performance value is selected as the security node, and the chain node with the second highest performance value is selected as the verification node.
10. A test data management system for embedded products, characterized in that: The system comprises: A test data receiving module is used to receive a test instruction of an embedded product, lock the embedded product to be tested and the product test device used to test the embedded product according to the test instruction, send a test configuration file of the product test device to the initiator of the test instruction, and receive a modified configuration file obtained after the initiator modifies the test configuration file, start the product test device to directly enter the product test process, and test the embedded product based on the modified configuration file to obtain test data, and start the data traceability management network where the embedded product is located, wherein the data traceability management network is constructed by a blockchain, and the data traceability management network consists of K chain nodes, K≥1; The network partitioning module is used to perform network partitioning on the data traceability management network based on the generation location and data volume of the test data, and obtain at least 2 data traceability area networks, and each data traceability area network consists of N chain nodes, N≤K: The zone network selection module is used to calculate the network performance value of each data traceability zone network, select the data traceability zone network with the highest network performance value, obtain the optimal traceability zone network, and select security nodes and verification nodes from the chain nodes included in other data traceability zone networks; The test data storage module is used to perform a split operation on the test data to obtain multiple groups of test sub-data, wherein the number of groups of test sub-data must be greater than or equal to the number of chain nodes included in the optimal traceability area network, and the multiple groups of test sub-data are stored without duplication in the chain nodes included in the optimal traceability area network. When the storage is completed, an access key is generated using the security node, and the access key is returned to the verification node to complete the test of the embedded product.
Citation Information
Patent Citations
Large agricultural product traceability management system based on block chain technology
CN112464253A
Data bank security system
CN114218194A
Internet of Things system
CN116368355A
Agricultural product traceability storage method based on block chain
CN118094650A
Methods and systems for detection in an industrial internet of things data collection environment with large data sets
US20180284737A1
