Data processing method and device, equipment and storage medium
By integrating and storing the configuration information data related to power batteries in a distributed storage network, the data integrity and correctness problems in power battery capacity detection are solved, and a more accurate and reliable detection effect is achieved.
Patent Information
- Application Number
- CN202311777148.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2025-06-24
AI Technical Summary
In the prior art, there is a problem that data cannot guarantee integrity and correctness during power battery capacity detection, especially when data of multiple subject devices are associated.
By receiving and integrating configuration information data in a distributed storage network, the integrity and correctness of the node data generated by each component node in the target time period and the node data generated in the previous M time periods are ensured. The distributed storage network may include a blockchain network to ensure consistency of data through consensus mechanisms and arbitration mechanisms.
It realizes that in battery systems such as electric vehicles, the integrity and accuracy of configuration information data throughout the life cycle is ensured, thereby improving the accuracy and reliability of power battery capacity detection.
Smart Images

Figure CN120197226A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of batteries, and in particular to a data processing method, apparatus, device, and storage medium. Background Art
[0002] In recent years, the ownership of electric vehicles in various countries has shown exponential growth. To ensure the safety of electric vehicles, it is necessary to monitor the battery health status and the remaining battery life at any time, so as to detect problems such as abnormal attenuation of battery capacity in advance, thereby optimizing the vehicle control strategy in a timely manner to extend the service life and reducing the safety risks caused by abnormal attenuation of battery capacity.
[0003] The battery capacity of a power battery is an important indicator of the battery health status and the remaining battery life. Therefore, it is crucial to detect the battery capacity in a timely and accurate manner. Traditional battery capacity detection requires associating the configuration information of the battery pack from cell design, pack body production, vehicle assembly, and the national and enterprise standard data of the battery pack during the use process in the vehicle computer. Since the data in different time periods are stored in different main devices, when the data involves multiple main devices, there is a problem that the data used for power battery capacity detection cannot guarantee integrity and correctness. Summary of the Invention
[0004] The technical problem to be solved by the embodiments of the present invention is to provide a data processing method, apparatus, device, and storage medium, which can ensure the integrity and correctness of configuration information data throughout the entire life cycle.
[0005] In a first aspect, an embodiment of the present invention provides a data processing method, which includes:
[0006] Receiving configuration information data sent by a control node, where the configuration information data includes node data generated by at least one component node during a target time period;
[0007] Obtaining the node data generated by a target component node during the target time period from the configuration information data;
[0008] Obtaining the node data generated by the target component node during the previous M time periods from a distributed storage network; where the distributed storage network refers to a distributed storage network composed of the control node and the at least one component node; M is a positive integer;
[0009] Storing the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period into the distributed storage network.
[0010] It can be seen that in the embodiments of the present application, after each component node generates node data in any time period, the node data generated by each component node will be sent to the control node. The control node integrates the node data generated by each component node in the same time period to obtain configuration information data, and then sends the configuration information data to each component node. On this basis, after any component node receives the configuration information data sent by the vehicle node, it can obtain the node data generated by the target component node in the previous M time periods of the target time period from the distributed storage network. Then, the component node stores the node data generated by the target component node in the previous M time periods of the target time period and the node data generated by the target component node in the target time period in the distributed storage network, so as to ensure the integrity and correctness of the configuration information data throughout the life cycle.
[0011] In an alternative embodiment, the distributed storage network includes a blockchain network;
[0012] Obtaining the node data generated by the target component node in the previous M time periods of the target time period from the distributed storage network includes:
[0013] Obtaining a target block from the blockchain network; wherein the blockchain network is a blockchain network composed of at least one component node, a control node, and a device node, and the target block is generated based on the node data generated by the target component node in a previous time period of the target time period;
[0014] Storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period in the distributed storage network includes:
[0015] Generating a new block based on the node data included in the target block and the node data generated by the target component node in the target time period;
[0016] Publishing the new block to the blockchain network.
[0017] In an alternative embodiment, before storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period in the distributed storage network, the method further includes:
[0018] Sending the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period to other component nodes in the distributed storage network, so that each other component node verifies the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period based on the consensus mechanism to obtain verification information;
[0019] Receive verification information from each of the other component nodes;
[0020] If it is determined that the verification is passed based on the verification information from each of the other component nodes, trigger the storage of the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network.
[0021] In an alternative embodiment, storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network includes:
[0022] If it is determined that the verification is not passed based on the verification information from each of the other component nodes, initiate a vote to the arbitration component node in the distributed storage network; wherein, the arbitration component node includes at least one component node in the distributed storage network;
[0023] Receive the voting result from the arbitration component node;
[0024] If the voting result indicates that the vote is passed, store the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period which indicates that the vote is passed into the distributed storage network.
[0025] In an alternative embodiment, the distributed storage network includes device nodes;
[0026] After storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network, it further includes:
[0027] Receive a data acquisition request sent by the cloud server;
[0028] In response to the data acquisition request, obtain the configuration information data generated by at least one component node in the current life cycle from the distributed storage network, wherein the current life cycle includes the target time period and the previous M time periods of the target time period;
[0029] Send the obtained configuration information data to the cloud server, so that the cloud server performs cloud batch detection on the power battery capacity of the device corresponding to the device node based on the obtained configuration information data and the device usage data collected in the current life cycle, and obtains the remaining power battery capacity; wherein, the device usage data is sent by the device node to the cloud server.
[0030] In an alternative embodiment, the method further includes:
[0031] Receive the remaining capacity of the power battery sent by the receiving device node, where the power battery capacity detection result is sent by the cloud server to the device node;
[0032] Store the remaining capacity of the power battery in the distributed storage network.
[0033] In an alternative embodiment, the method further includes:
[0034] Obtain the remaining capacity of the power battery in the current life cycle from the distributed storage network, and the remaining capacity of the power battery in the previous N consecutive life cycles of the current life cycle, where N is a positive integer;
[0035] Based on the obtained N + 1 remaining capacities of the power battery, and the life cycles corresponding to each remaining capacity of the power battery, determine the attenuation state of the remaining capacity of the power battery of the device, where the attenuation state is used to indicate whether there is an abnormal attenuation in the remaining capacity of the power battery of the device;
[0036] If the attenuation state indicates that there is an abnormal attenuation in the remaining capacity of the power battery of the device, output a notification message.
[0037] In an alternative embodiment, the method further includes:
[0038] Store the configuration information data sent by the control node in the distributed storage network.
[0039] In a second aspect, an embodiment of the present invention provides a communication system, including:
[0040] A control node and at least one component node, where at least one component node includes a target component node, and the target component node is used to execute the method described in the first aspect above.
[0041] In a third aspect, an embodiment of the present invention provides a data processing device, and the device includes:
[0042] A receiving unit, configured to receive configuration information data broadcast by the control node, where the configuration information data includes node data generated by at least one component node in a target time period;
[0043] An obtaining unit, configured to obtain the node data generated by the target component node in the target time period from the configuration information data;
[0044] The obtaining unit is further configured to obtain the node data generated by the target component node in the previous M time periods of the target time period from the distributed storage network; where the distributed storage network refers to a distributed storage network composed of the control node and the at least one component node; M is a positive integer;
[0045] A storage unit for storing the node data generated by the target component node in the first M time periods and the node data generated by the target component node in the target time period into the distributed storage network.
[0046] Fourthly, an embodiment of the present invention provides a terminal device, which includes a memory, a communication interface, and a processor. Among them, the memory, the communication interface, and the processor are interconnected; the memory stores a computer program, and the processor calls the computer program stored in the memory to implement the method described in the first aspect above.
[0047] Fifthly, an embodiment of the present invention provides a vehicle. The electric vehicle includes a vehicle body and a processing module, and the processing module is used to execute the method described in the first aspect above to manage the vehicle.
[0048] Sixthly, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the method described in the first aspect.
[0049] Seventhly, an embodiment of the present invention provides a computer program product, which stores a computer program, and when the computer program is executed by a processor, it implements the method described in the first aspect.
[0050] Eighthly, an embodiment of the present invention provides a computer program, which when executed by a processor implements the method described in the first aspect. Description of the Drawings
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the following will describe the drawings required to be used in the embodiments of the present invention or the background technology.
[0052] Figure 1 It is a schematic diagram of the system architecture of a data processing method provided by an embodiment of the present application;
[0053] Figure 2 It is a schematic diagram of the framework for detecting the capacity of a power battery provided by an embodiment of the present application;
[0054] Figure 3 It is a flowchart of a data processing method provided by an embodiment of the present application;
[0055] Figure 4 It is a flowchart of a data processing method based on a blockchain provided by an embodiment of the present application;
[0056] Figure 5 It is a schematic diagram of the implementation principle of a blockchain provided by an embodiment of the present application;
[0057] Figure 6 It is a flowchart of another data processing method provided by an embodiment of the present application;
[0058] Figure 7 It is a schematic diagram of power battery capacity detection based on blockchain provided by an embodiment of the present application;
[0059] Figure 8 It is a schematic diagram of a data processing device provided by an embodiment of the present application;
[0060] Figure 9 It is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application. Detailed implementation manners
[0061] The embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
[0062] When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0063] It should be noted that in this document, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanations in the specific embodiments or further in combination with the context of the specific embodiments.
[0064] It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this document, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining". Furthermore, as used in this document, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprising", "including" indicate the presence of the stated features, steps, operations, elements, components, items, kinds, and / or groups, but do not preclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following", etc. used in this application may be interpreted inclusively, or mean any one or any combination. For example, "including at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C", and again, "A, B or C" or "A, B and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C". An exception to this definition only occurs when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
[0065] It should be understood that although the steps in the flowcharts in the embodiments of this application are shown sequentially according to the indication of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this document, the execution of these steps has no strict order limit and can be executed in other orders. Moreover, at least a part of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0066] Depending on the context, the words "if", "when" as used herein may be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detecting (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)".
[0067] It should be noted that in this application, step codes such as S201 and S202 are adopted. The purpose is to more clearly and briefly express the corresponding content, and it does not constitute a substantial limitation in terms of sequence. Those skilled in the art may execute S202 first and then S201 during specific implementation, etc., but all of these should be within the protection scope of this application.
[0068] To better understand the data processing method provided by the embodiments of this application, the system architecture applicable to the embodiments of this application will be described first below.
[0069] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the system architecture of a data processing method provided by the embodiments of this application. Among them, Figure 1 the device form shown is for illustration and does not constitute a limitation on the embodiments of this application. As Figure 1 shown, the system may include a control node and at least one component node (such as Figure 1 the component node 1 and the component node 2 shown). Among them, the control node may be a component assembly node or a server, and the component node may be a component that generates data. Taking a power battery as an example, the component nodes of the power battery may include a cell node that generates cell data, a package node that generates package body data, etc. The control node of the power battery may be the assembly node of each component included in the power battery or may also be a server that receives the data generated by each node of the power battery. Further, a component node may correspond to a database for storing data, and the database may be stored in a computer device. The computer device may include, but is not limited to: smart phones (such as Android phones, iOS phones, etc.), tablet computers, portable personal computers, mobile Internet devices (MID), servers and other devices. The embodiments of the present invention do not make limitations.
[0070] Among them, component node 1 or component node 2 generates node data in any time period. For example, component node 1 generates node data 1 or component node 2 generates node data 2 (where the node data can be, for example, battery cell data or package data). Then, the node data generated by each component node in any time period is sent to the control node. The control node can integrate the node data generated by each component node to obtain the configuration information data of each component node in this time period. Then, the control node can send the configuration information data to each component node. The sending method can include unicasting or multicasting to a single component node or some component nodes first, and then the component node publishes the configuration information data to the distributed storage network, or the control node broadcasts the configuration information data to each component node. For any component node among multiple component nodes, taking any component node as component node 1 as an example, after receiving the configuration information data sent by the control node, the component node can obtain the node data generated by component node 1 in this time period from the configuration information data, and can also obtain the node data generated by component node 1 in the previous M time periods in this time period from the distributed storage network. Then, component node 1 can store the node data generated by component node 1 in the previous M time periods and the node data generated by component node 1 in this time period in the distributed storage network. The distributed storage network refers to the distributed storage network composed of the control node and at least one component node, and M is a positive integer.
[0071] The data processing method provided by the embodiments of this application can be applied to distributed storage scenarios involving data generated by multiple main devices at different stages, such as distributed storage of data generated by each component of a power battery.
[0072] Taking the distributed storage of data generated by each component of a power battery as an example, component node 1 can be a battery cell node, and component node 2 can be a package node. Refer to Figure 2 , Figure 2 which is a schematic diagram of the framework for detecting the capacity of a power battery provided by the embodiments of this application. Among them, the battery cell node can be the battery of an electric vehicle, and the package node can be the package of the battery. The battery cell node generates battery cell data in a certain time period (for example, it can include a battery cell barcode and battery cell parameters), and then the battery cell node sends the battery cell data to the package node. The package node generates package data in this time period (for example, it can include a package barcode and package parameters). After receiving the battery cell data from the battery cell node, the package node can send the battery cell data and the package data to the control node. The control node can integrate the received battery cell data and package data to obtain the configuration information data of multiple component nodes in this time period, where the configuration information data can include the battery cell data generated by the battery cell node in this time period and the package data generated by the package node in this time period.
[0073] Optionally, the control node may integrate the vehicle identification information, the received battery cell data, and the package data to obtain the configuration information data for this time period, where the configuration information data may include the vehicle identification information, the battery cell data generated by the battery cell node during this time period, and the package data generated by the package node during this time period. The vehicle identification information may be used to identify the vehicle operating the communication system, and the vehicle identification information of different vehicles is different. Exemplarily, the vehicle identification information may include one or more of the following: vehicle identification number, vehicle parameters. Vehicle parameters may include, for example, Vehicle Identification Number (VIN) or factory serial number, etc.
[0074] After the control node obtains the configuration information data, it may send the configuration information data to each component node in the distributed storage network. Taking the component node including the battery cell node as an example, after the battery cell node receives the configuration information data broadcast by the vehicle node, the battery cell node may obtain the battery cell data generated by the battery cell node during this time period from the configuration information data, and may also obtain the battery cell data generated by the battery cell node during the previous M time periods from the distributed storage network. Then, the battery cell node may store the battery cell data generated by the battery cell node during the previous M time periods and the battery cell data generated by the battery cell node during this time period in the distributed storage network. For example, the battery cell node may broadcast the battery cell data generated by the battery cell node during the previous M time periods and the battery cell data generated by the battery cell node during this time period to the distributed storage network, so that each component node and the control node in the distributed storage network that receive the battery cell data store the battery cell data. Similarly, taking the component node including the package node as an example, after the package node receives the configuration information data broadcast by the vehicle node, the package node may obtain the package data generated by the package node during this time period from the configuration information data. Then, the package node may obtain the package data generated by the package node during the previous M time periods from the distributed storage network. Then, the package node may store the package data generated by the package node during the previous M time periods and the package data generated by the package node during this time period in the distributed storage network.
[0075] It can be seen that in the embodiments of the present application, after each component node generates node data in any time period, the node data generated by each component node will be sent to the control node. The control node integrates the node data generated by each component node in the same time period to obtain configuration information data, and then sends the configuration information data to each component node. On this basis, after any component node receives the configuration information data broadcast by the control node, it can obtain the node data generated by the target component node in the target time period from the distributed storage network, and then obtain the node data generated by the target component node in the first M time periods before the target time period from the distributed storage network. Then, the node data generated by the target component node in the first M time periods and the node data generated by the target component node in the target time period are stored in the distributed storage network. Thereby, the integrity of the configuration information data in the entire life cycle can be ensured. At the same time, after any component node obtains the node data generated by the target component node in the target time period, it can verify it with the locally stored node data to ensure the correctness of the node data. Furthermore, the node data generated by the target component node in the first M time periods and the node data generated by the target component node in the target time period are stored in the distributed storage network, further ensuring the correctness of the configuration information in the entire life cycle.
[0076] Among them, a life cycle can refer to the time period from when the vehicle is fully charged to when the remaining battery power is estimated to be exhausted. The life cycle can be preset. For example, it can be set before the vehicle leaves the factory, or it can be set by the vehicle owner. Exemplarily, a life cycle can be one day or one week (i.e., 7 days), etc. A life cycle can be divided into multiple time periods, and the number of time periods into which it is divided can be preset. For example, it can be set before the vehicle leaves the factory, or it can be set by the vehicle owner.
[0077] For example, assume that a life cycle is one day (i.e., 24 hours) and a time period is 8 hours. Then, the battery cell node can obtain the battery cell data generated by the battery cell node during 8:00 - 16:00 on August 1, 2023 (i.e., the target time period). The battery cell node sends the battery cell data to the package node. The package node can obtain the package data generated by the package node during 8:00 - 16:00 on August 1, 2023, and send the received battery cell data and the obtained package data to the control node. The control node can integrate the battery cell data generated by the battery cell node during 8:00 - 16:00 on August 1, 2023, and the package data generated by the package node during 8:00 - 16:00 on August 1, 2023, to obtain the configuration information data for the time period of 8:00 - 16:00 on August 1, 2023. The previous time period of the target time period is 0:00 - 8:00 on August 1, 2023, and the next time period of the target time period is 16:00 - 24:00 on August 1, 2023. Each component node can obtain the configuration information data for each time period through the data processing method provided in the embodiments of the present application, and store the configuration information data for each time period in the distributed storage network. Therefore, the distributed storage network stores the configuration information data for the entire life cycle, thereby ensuring the integrity of the configuration information data throughout the life cycle.
[0078] Combined with Figure 1 the communication system shown, please refer to Figure 3 , Figure 3 is a flowchart of a data processing method provided in the embodiments of the present application. As shown in the figure,
[0079] S301. Receive the configuration information data sent by the control node.
[0080] The configuration information data includes node data generated by at least one component node during the target time period. Among them, for the specific description of the control node sending the configuration information data to multiple component nodes, reference can be made to the relevant description above Figure 1 , and details are not described again in the embodiments of the present application.
[0081] S302. Obtain the node data generated by the target component node during the target time period from the configuration information data.
[0082] Among them, the target component node refers to any component node in the distributed storage network.
[0083] In one implementation, since the node data generated by each component node in any time period is stored in the distributed storage network, after any component node receives the configuration information data, it can obtain the node data generated by the target component node in this time period from the configuration information data, and at the same time verify it with the node data generated by the target component node in this time period saved locally, so as to ensure the correctness of the node data generated by the target component node included in the configuration data, and then obtain the node data generated by the target component node in the previous M time periods of this time period from the distributed storage network.
[0084] For example, taking the target component node as the battery cell node, after the battery cell node receives the configuration information data, it can obtain the battery cell data generated by the battery cell node in this time period from the configuration information data, and verify it with the battery cell data generated by the battery cell node in this time period saved locally, so as to ensure the correctness of the battery cell data generated by the battery cell node obtained from the configuration information data, and then obtain the battery cell data generated by the battery cell node in the previous M time periods of this time period from the distributed storage network.
[0085] S303. Obtain the node data generated by the target component node in the previous M time periods of the target time period from the distributed storage network.
[0086] Wherein, the distributed storage network refers to a distributed storage network composed of a control node and at least one component node, and M is a positive integer.
[0087] In one implementation, the distributed storage network includes a blockchain network, and the blockchain network can be a blockchain network composed of the at least one component node, the control node and a device node.
[0088] S304. Store the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period in the distributed storage network.
[0089] In one implementation, before storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network, the target component node may send the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period to other component nodes in the distributed storage network, so that each other component node verifies the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period based on the consensus mechanism to obtain verification information. The target component node may receive the verification information from each other component node. If it is determined that the verification is passed based on the verification information from each other component node, then it is triggered to store the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network.
[0090] Further, if it is determined that the verification fails based on the verification information from each other component node, a vote is initiated to the arbitration component node in the distributed storage network, and the vote result from the arbitration component node is received. If the vote result indicates that the vote is passed, then the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period indicating that the vote is passed are stored into the distributed storage network.
[0091] Among them, the arbitration component node may include one node or multiple nodes in the distributed storage network. For example, the arbitration component node may be a node in the distributed storage network, and the confidence level of this node is relatively high, such as an authoritative node or a node with a relatively high credit level, etc. Exemplarily, the arbitration component node may be a control node. On this basis, the arbitration component node may arbitrate the node data sent by the target component node through a "one-vote veto" mechanism or a "one-vote pass" mechanism. Also, the arbitration component node may include multiple nodes in the distributed storage network. For example, it may include some nodes or all nodes in the distributed storage network. Each arbitration component node may arbitrate the node data sent by the target component node through a "the minority obeys the majority" mechanism.
[0092] In the embodiments of the present application, the target component node can send the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period to other component nodes on the distributed storage network, verify the node data based on the consensus mechanism, and store the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period in the distributed storage network when the configuration information data received from the control node by each component node during this time period is consistent. When the configuration information data received from the control node by each component node during this time period is inconsistent, a multi-party arbitration method is used to determine the stored data. In this way, the consistency of data among all parties is achieved, and the authenticity and correctness of the data during the circulation process are ensured. In addition, during the multi-party arbitration process, by assigning different weights to each terminal device in the set of terminal devices for arbitration, the responsibility determination when the interaction results are inconsistent can be clarified.
[0093] In an alternative embodiment, the distributed storage network may include a blockchain network. Among them, a blockchain is a chain-like data structure formed by combining data blocks in chronological order, and a distributed ledger that guarantees the data cannot be tampered with and forged by cryptographic means. Multiple independent distributed nodes (i.e., blockchain nodes) store the same records. Blockchain technology has achieved decentralization and has become the cornerstone of trustworthy digital asset storage, transfer, and trading. Among them, the blockchain network includes multiple blockchain nodes. The blockchain node can be a full node. A full node refers to a node that stores the complete blockchain. Full nodes are usually high-performance computing devices.
[0094] Please refer to Figure 4 , Figure 4 which is a flowchart of a data processing method based on blockchain provided by the embodiments of the present application, as Figure 4 shown.
[0095] S401. Receive the configuration information data sent by the control node.
[0096] For the relevant description of the control node sending the configuration information data to the component node in the embodiments of the present application, please refer to the relevant records above Figure 1 and will not be elaborated here.
[0097] S402. Obtain the node data generated by the target component node in the target time period from the configuration information data.
[0098] S403. Obtain the target block from the blockchain network.
[0099] Among them, the target component node refers to any component node in the blockchain network. The target block is generated based on the node data generated by the target component node in the previous time period of this time period.
[0100] Since the node data generated by each component node in any time period will be uploaded to the blockchain, after any component node receives the configuration information data, it can obtain the target block from the blockchain network. The target block may include the node data generated by the target component node in the previous time period of this time period.
[0101] For example, taking the target component node as the battery cell node, after the battery cell node receives the configuration information data, it can obtain the target block from the blockchain network. The target block may include the battery cell data generated by the battery cell node in the previous time period of this time period. Taking the target component node as the package node as an example, after the package node receives the configuration information data, it can obtain the target block from the blockchain network. The target block may include the package data generated by the package node in the previous time period of this time period.
[0102] S404. Generate a new block based on the node data included in the target block and the node data generated by the target component node in this target time period.
[0103] In this embodiment, for the generation method of the block, please refer to Figure 5 , Figure 5 which is a schematic diagram of the implementation principle of the blockchain provided by the embodiment of the present application. As Figure 5 shown, each block includes a block header, a block body, and a block hash (BlockHash).
[0104] Among them, the block header includes the hash (Prev Hash) of the previous block (i.e., the target block generated based on the node data generated in the previous time period of the target time period), the Merkle hash (Merkle Hash), the time stamp, etc. Among them, PrevHash is used to record the Block Hash of the previous block. That is to say, the previous block can be traced back according to this Prev Hash. Merkle Hash is used to record all interaction records of the current block to ensure that the interaction records cannot be modified.
[0105] The block body is the actual data part, and the actual data in the block body can also be called block body data. Optionally, the block body data includes the configuration information data of each time period.
[0106] The block hash is used to identify a block, and the block hash can be obtained by calculating the hash of the block header using a hash algorithm. Among them, the hash algorithm is also called the hashing algorithm. The hash algorithm is a one-way function that can convert input data of any length into output of a fixed length. Optionally, common hash algorithms include, for example, Message-Digest Algorithm 5 (MD5), Secure Hash Algorithm (SHA) 256 (SHA-256), SHA-512, etc.
[0107] In this embodiment, since the first block in the blockchain network does not have the block information of the previous block, the first block only needs to generate a new block based on the basic battery information of the current link; the intermediate node needs to first obtain the information of the previous block to generate a new block, and then connect to the blockchain chain. By adopting this embodiment, if any terminal device modifies the configuration information at a certain stage (for example, modifies the order of vehicles), it will cause the verification of the subsequent blocks to fail and the chain to break, so it can ensure the integrity and traceability of the data during the interaction in the full life cycle.
[0108] S405. Publish the new block to the blockchain network.
[0109] In an optional embodiment, before the target component node publishes the new block to the blockchain network, it also broadcasts the new block to other nodes (including other component nodes and control nodes) in the blockchain network. Then, each component node in the blockchain network performs consensus on the new block based on the consensus mechanism. After the consensus is passed, each component node uploads the new block to the chain.
[0110] In this embodiment, through the consensus mechanism, it can be ensured that the configuration information data in the new blocks stored by each node are the same, thus ensuring the consistency and reliability of the configuration information data.
[0111] Optionally, the manner in which each node in the blockchain network performs consensus on the new block may include: after receiving the configuration information data from the control node, other component nodes store the configuration information data; other nodes generate a first hash value corresponding to the configuration information data; after receiving the new block broadcast by the target component node, generate a second hash value corresponding to the new block; the target component node includes any one component node in the blockchain network; if the first hash value is the same as the second hash value corresponding to the new block, it is determined that the configuration information data stored by other component nodes and the configuration information included in the new block generated by the target component node are the same; if the first hash value is different from the second hash value corresponding to the new block, it is determined that the configuration information included in the new block generated by the target component node is different from the configuration information stored by any other component node.
[0112] In an alternative embodiment, since there may be a situation where a component node in the blockchain network maliciously tampers with the received block, before the foregoing target component node publishes the newly generated block to the blockchain network, it will also verify the newly generated block. Please refer to Figure 6 , Figure 6 which is a flowchart of another data processing method provided by an embodiment of the present application, as shown in the figure.
[0113] S601. The target component node generates a new block.
[0114] S602. The target component node broadcasts the new block to other component nodes on the blockchain network.
[0115] S603. The target component node receives verification messages from each of the other component nodes.
[0116] After each of the other nodes receives the new block broadcast by the target component node, it can verify the new block to obtain a verification message. Then, after each of the other component nodes obtains the verification message, it can send the verification message to the target component node.
[0117] Among them, the manner in which each of the other nodes verifies the new block includes a consensus mechanism. The specific description of the consensus mechanism can be seen in the relevant expressions of the foregoing consensus mechanism, which will not be elaborated here.
[0118] S604. If the verification message determines that the verification is passed, the target component node publishes the new block to the blockchain network.
[0119] After the target component node receives the verification messages sent by each of the other nodes in the blockchain network, it can determine whether the verification is passed based on each verification message. If the verification is passed, it indicates that the block contents of the new blocks received by each node are consistent. Based on this, the target component node can publish the new block to the blockchain network.
[0120] S605. If the verification message determines that the verification fails, the target component node initiates a vote to the arbitration component node in the blockchain network.
[0121] After the target component node receives the verification messages sent by each of the other component nodes in the blockchain network, it can determine whether the verification is passed based on each verification message. If the verification fails, it indicates that the block contents of the new blocks received by each component node are not completely consistent. Then, it is necessary to arbitrate the new block through an arbitration mechanism to determine which block content will be included in the block on the chain. Based on this, if it is determined that the verification fails based on the verification message, the target component node can initiate a vote to the arbitration component node in the blockchain network.
[0122] The arbitration component node(s) may include one or more nodes in the blockchain network. For the specific selection of the arbitration node(s), reference may be made to the description in step S304 above, which will not be elaborated here.
[0123] S606. The target component node receives the voting result from the arbitration component node(s).
[0124] S607. If the voting result indicates approval, the target component node publishes the newly approved block to the blockchain network.
[0125] Optionally, determining to publish the newly approved block indicating approval to the blockchain network based on the voting result of the arbitration component node(s) includes: when the number of arbitration component nodes is multiple, determining the sum of K voting scores; any sum of voting scores refers to the sum of the voting scores for the newly approved block whose voting result indicates approval to be published to the blockchain network, K is a positive integer and K≥2; determining the newly approved block corresponding to the largest sum of K voting scores to be published to the blockchain network; when the number of arbitration component nodes is 1, determining the newly approved block indicated by the voting result of the arbitration component node to be published to the blockchain network.
[0126] Optionally, the method for determining any sum of voting scores includes: calculating the voting score of each arbitration component node based on the weight of each arbitration component node and the voting result of each arbitration component node; adding the voting scores of the arbitration component nodes with the same voting result according to their weights to obtain any sum of voting scores.
[0127] For example, assume that the number of arbitration terminal component nodes is 4. For example, the arbitration component nodes are the battery cell node (denoted as component node 1), the package body node 1 (denoted as component node 2), the package body node 2 (denoted as component node 3), and the control node (denoted as component node 4). The new block stored in component node 1 is block 1, the new block stored in component node 2 is block 2, the new block stored in component node 3 is block 2, and the new block stored in component node 4 is block 1. If the weights of component node 1, component node 2, component node 3, and component node 4 are 0.2, 0.2, 0.2, and 0.4 respectively, and the voting results of component node 1, component node 2, component node 3, and component node 4 indicate that the new blocks for accessing the blockchain are block 1, block 2, block 2, and block 1 respectively; then the component nodes can determine 2 voting score sums (i.e., the voting score sum corresponding to block 1 and the voting score sum corresponding to block 2). Among them, the voting score sum corresponding to block 1 is 0.2 + 0.4 = 0.6; the voting score sum corresponding to block 2 is 0.2 + 0.2 = 0.4. In this case, the component nodes can determine the new block (i.e., block 1) corresponding to the largest voting score sum (i.e., 0.6) among the 2 voting score sums as the new block for accessing the blockchain. That is to say, the component nodes can determine the new block for accessing the blockchain by assigning different weights to each arbitration component node and following the rule of the minority obeying the majority. In this way, by arbitrating by assigning different weights to different arbitration component nodes, the responsibility determination in case of inconsistent interaction results can be clarified.
[0128] For another example, assume that the number of arbitration component nodes is 1. For example, the arbitration component node is the control node. If the voting result of the arbitration component node indicates that the new block for accessing the blockchain is the new block stored in the battery cell node (denoted as block 3), then the component node can determine that the new block for accessing the blockchain is block 3. That is to say, the component node determines the new block for accessing the blockchain based on the rule that the arbitration component node has the right to pass with one vote.
[0129] In the embodiments of the present application, the target component node can broadcast the generated new block to other component nodes on the blockchain network, verify the generated new block based on the consensus mechanism, and publish the generated new block to the blockchain network when the configuration information data received from the control node by each component node during this period is consistent. When the configuration information data received from the control node by each component node during this period is inconsistent, a multi-party arbitration method is adopted to determine the data of the new block. In this way, the consistency of the data of all parties is achieved, and the data is truly immutable and traceable during the circulation process. In addition, during the multi-party arbitration process, by arbitrating by assigning different weights to each terminal device in the terminal device set, the responsibility determination in case of inconsistent interaction results can be clarified.
[0130] In one implementation, the distributed storage network includes device nodes, which can represent the nodes where the power battery is used in the device. The devices corresponding to the device nodes can include, but are not limited to, vehicles, ships, drones, etc.
[0131] After the target component node stores the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network, the target component node or any component node in the distributed storage network can receive a data acquisition request from the cloud server, so that the cloud server can obtain the configuration information data of the current life cycle from the distributed storage network. The cloud server can also obtain the device usage data of the current life cycle from the device node, that is, the data during the charging process of the battery pack, such as parameters like voltage, current, and charging time. Then, based on the obtained configuration information data and device usage data, the remaining capacity of the power battery can be batch-detected. Wherein, the current life cycle includes the target time period and the previous M time periods of the target time period, and the device usage data is sent by the device node to the cloud server.
[0132] Furthermore, the control node can send the obtained remaining capacity of the power battery in the current life cycle to each component node in the distributed storage network. Wherein, the power battery capacity is sent by the cloud server to the control node, and the component node can store the remaining capacity of the power battery in the distributed storage network.
[0133] On this basis, the remaining capacity of the power battery in the current life cycle, and the remaining capacity of the power battery in the previous N consecutive life cycles of the current life cycle can be obtained from the distributed storage network, where N is a positive integer. Based on the obtained N + 1 remaining capacities of the power battery, and the life cycles corresponding to each remaining capacity of the power battery, the attenuation state of the remaining capacity of the power battery of the device can be determined. If the attenuation state indicates that there is an abnormal attenuation in the remaining capacity of the power battery of the device, a notification message is output. Wherein, the attenuation state is used to indicate whether there is an abnormal attenuation in the remaining capacity of the power battery of the device.
[0134] Next, taking the detection of the power battery capacity of an electric vehicle as an example, in combination with Figure 1 the system architecture shown, the data processing method provided in the embodiments of the present application will be illustrated by way of example. Taking component node 1 as the cell node and component node 2 as the pack body node as an example, please refer to Figure 7 , Figure 7It is a schematic diagram of power battery capacity detection based on blockchain provided by an embodiment of the present application. The cell node generates cell data (such as cell barcodes and cell parameters) during a certain period, and then the cell node sends the cell data to the package node. The package node generates package data (such as package barcodes and package parameters) during this period. After receiving the cell data from the cell node, the package node sends the cell data and the package data to the control node. The control node integrates the received cell data and package data to obtain the configuration information data of multiple component nodes during this period, where the configuration information data can include the cell data generated by the cell node during this period, the package data generated by the package node during this period, and the vehicle identification. The cloud server obtains the vehicle usage data of the current life cycle at the device node. Among them, the vehicle usage data is the data of the battery pack during the charging process, such as parameters like voltage, current, and charging time. The current life cycle includes this period and the previous period. Then, the cloud server can obtain the complete configuration information of the current life cycle at any node in the blockchain network, including the cell node and the package node. Based on the obtained configuration information and vehicle usage data, the remaining capacity of the power battery in the current life cycle can be obtained.
[0135] Furthermore, the device node sends the obtained remaining capacity of the power battery in the current life cycle to each component node in the blockchain network. Among them, the power battery capacity is sent to the device node by the aforementioned cloud server. The component node generates a block containing the remaining capacity of the power battery based on the received remaining capacity of the power battery and publishes the block to the blockchain network. It can be seen that in the data processing method provided by the embodiment of the present application, the power battery capacity is detected based on blockchain technology. It integrates multiple technologies such as distributed storage, encryption algorithms, and consensus mechanisms, which can ensure the authenticity of the detection data of the power battery capacity and guarantee the integrity of the detection records. In addition, the battery configuration data used when remotely batch detecting the remaining capacity of the battery is stored in a distributed manner by the blockchain, thereby ensuring the accuracy, credibility, and acquisition efficiency of the battery configuration data. Furthermore, it makes it feasible to batch detect the battery capacity by the cloud, and the detection is accurate and efficient. The remaining capacity of the battery obtained from the detection is also added to the blockchain for distributed storage, so as to obtain the attenuation rate of the battery capacity during several charging periods, so as to give an early warning or adjust the control strategy in time when the battery attenuation is abnormal.
[0136] Based on the description of the related embodiments of the above data processing method, an embodiment of the present application further provides a data processing device, and this data processing device can execute Figures 1 to 7 the power battery capacity detection method shown. Please refer to Figure 8 , Figure 8 which is a schematic diagram of a data processing device provided by an embodiment of the present application. As shown in Figure 8As shown, the data processing device may include, but is not limited to, a receiving unit 801, an obtaining unit 802, and a storage unit 803.
[0137] The receiving unit 801 is configured to receive configuration information data sent by a control node, where the configuration information data includes node data generated by at least one component node in a target time period.
[0138] The obtaining unit 802 is configured to obtain, from the configuration information data, the node data generated by a target component node in the target time period.
[0139] The obtaining unit 802 is further configured to obtain, from a distributed storage network, the node data generated by the target component node in the first M time periods before the target time period; where the distributed storage network refers to a distributed storage network composed of the control node and the at least one component node; M is a positive integer.
[0140] The storage unit 803 is configured to store the node data generated by the target component node in the first M time periods and the node data generated by the target component node in the target time period into the distributed storage network.
[0141] In an optional example, the distributed storage network includes a blockchain network.
[0142] The obtaining unit 802 obtaining the node data generated by the target component node in the first M time periods before the target time period from the distributed storage network includes:
[0143] Obtaining a target block from the blockchain network; where the blockchain network is a blockchain network composed of the at least one component node and the control node, and the target block is generated based on the node data generated by the target component node in a previous time period before the target time period.
[0144] The storing the node data generated by the target component node in the first M time periods and the node data generated by the target component node in the target time period into the distributed storage network includes:
[0145] Generating a new block based on the node data included in the target block and the node data generated by the target component node in the target time period.
[0146] Publishing the new block to the blockchain network.
[0147] In an optional example, the data processing device further includes a sending unit 804.
[0148] Before the storage unit 803 stores the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network, the sending unit 804 is configured to send the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period to other component nodes in the distributed storage network, so that each other component node verifies the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period based on a consensus mechanism to obtain verification information;
[0149] The receiving unit 801 is further configured to receive verification information from each of the other component nodes;
[0150] If it is determined that the verification is passed based on the verification information from each of the other component nodes, then trigger to store the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network.
[0151] In an alternative embodiment, storing, by the storage unit 803, the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network includes:
[0152] If it is determined that the verification fails based on the verification information from each of the other component nodes, then initiate a vote to an arbitration component node in the distributed storage network; wherein, the arbitration component node includes at least one component node in the distributed storage network;
[0153] Receive a voting result from the arbitration component node;
[0154] If the voting result indicates that the vote is passed, then store the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period indicating that the vote is passed into the distributed storage network.
[0155] In an alternative embodiment, the distributed storage network includes device nodes;
[0156] After the storage unit 803 stores the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network, the receiving unit 801 is further configured to receive a data acquisition request sent by a cloud server;
[0157] The obtaining unit 802 is further configured to, in response to the data obtaining request, obtain configuration information data generated by the at least one component node during the current life cycle from the distributed storage network, where the current life cycle includes the target time period and the first M time periods before the target time period;
[0158] The sending unit 804 is further configured to send the obtained configuration information data to the cloud server, so that the cloud server performs batch cloud detection on the power battery capacity of the device corresponding to the device node based on the obtained configuration information data and the device usage data collected during the current life cycle, to obtain the remaining power battery capacity; where the device usage data is sent by the device node to the cloud server.
[0159] In an implementation manner, the receiving unit 801 is further configured to receive the remaining power battery capacity sent by the device node, where the power battery capacity detection result is sent by the cloud server to the device node;
[0160] The storage unit 803 is further configured to store the remaining power battery capacity in the distributed storage network.
[0161] In an implementation manner, the obtaining unit 802 is further configured to obtain the remaining power battery capacity during the current life cycle and the remaining power battery capacity during the first N consecutive life cycles before the current life cycle from the distributed storage network, where N is a positive integer;
[0162] Based on the obtained N + 1 remaining power battery capacities and the life cycles corresponding to each remaining power battery capacity, determine the attenuation state of the remaining power battery capacity of the device, where the attenuation state is used to indicate whether there is an abnormal attenuation in the remaining power battery capacity of the device;
[0163] If the attenuation state indicates that there is an abnormal attenuation in the remaining power battery capacity of the device, output a notification message.
[0164] In an implementation manner, the storage unit 803 is further configured to store the configuration information data sent by the control node in the distributed storage network.
[0165] In an embodiment of the present application, after each component node generates node data in any time period, the node data generated by each component node is sent to the control node. The control node integrates the node data generated by each component node in the same time period to obtain configuration information data, and then sends the configuration information data to each component node. On this basis, after the receiving unit 801 receives the configuration information data sent by the control node, the obtaining unit 802 can obtain the node data generated by the target component node in the target time period from the configuration information data. The obtaining unit 802 can also obtain the node data generated by the target component node in the first M time periods before the target time period from the distributed storage network. Wherein, the distributed storage network refers to the distributed storage network composed of the control node and the at least one component node; M is a positive integer. The storage unit 803 stores the node data generated by the target component node in the first M time periods and the node data generated by the target component node in the target time period into the distributed storage network, so as to ensure the integrity of the configuration information data in the entire life cycle.
[0166] The present application example also provides a terminal device. Please refer to Figure 9 , Figure 9 which is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As Figure 9 shown, the terminal device at least includes a processor 901, a memory 902, and a communication interface 903, which can be connected through a bus 904 or other means. In this embodiment of the present application, taking the connection through the bus 904 as an example. The processor 901 of this embodiment of the present application can execute the operations of the component node device in the foregoing data processing method by running the computer program stored in the memory 902. For example:
[0167] Receiving the configuration information data sent by the control node, where the configuration information data includes the node data generated by at least one component node in the target time period;
[0168] Obtaining the node data generated by the target component node in the target time period from the configuration information data;
[0169] Obtaining the node data generated by the target component node in the first M time periods before the target time period from the distributed storage network. Wherein, the distributed storage network refers to the distributed storage network composed of the control node and the at least one component node; M is a positive integer;
[0170] Storing the node data generated by the target component node in the first M time periods and the node data generated by the target component node in the target time period into the distributed storage network.
[0171] In an alternative embodiment, the distributed storage network includes a blockchain network;
[0172] The processor 901 obtains the node data generated by the target component node in the previous M time periods of the target time period from the distributed storage network, and is specifically used to perform the following operations:
[0173] Obtain a target block from the blockchain network; wherein the blockchain network is a blockchain network composed of the at least one component node and the control node, and the target block is generated based on the node data generated by the target component node in a previous time period of the target time period;
[0174] Storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network includes:
[0175] Generate a new block based on the node data included in the target block and the node data generated by the target component node in the target time period;
[0176] Publish the new block to the blockchain network.
[0177] In an alternative embodiment, before storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network, the processor 901 is further used to perform the following operations:
[0178] Send the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period to other component nodes in the distributed storage network, so that each other component node verifies the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period based on a consensus mechanism to obtain verification information;
[0179] Receive verification information from each of the other component nodes;
[0180] If it is determined that the verification is passed based on the verification information from each of the other component nodes, trigger storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network.
[0181] In an alternative embodiment, the processor 901 stores the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period in the distributed storage network, and specifically is configured to perform the following operations:
[0182] If it is determined that the verification fails based on the verification information from each of the other component nodes, a vote is initiated to the arbitration component node in the distributed storage network; wherein, the arbitration component node includes at least one component node in the distributed storage network;
[0183] Receive the voting result from the arbitration component node;
[0184] If the voting result indicates that the vote passes, the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period indicating that the vote passes are stored in the distributed storage network.
[0185] In an alternative embodiment, the distributed storage network includes device nodes;
[0186] After the processor 901 stores the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period in the distributed storage network, the following operations are further performed:
[0187] Receive a data acquisition request sent by the cloud server;
[0188] In response to the data acquisition request, obtain the configuration information data generated by the at least one component node in the current life cycle from the distributed storage network, where the current life cycle includes the target time period and the previous M time periods of the target time period;
[0189] Send the obtained configuration information data to the cloud server, so that the cloud server performs cloud batch detection on the power battery capacity of the device corresponding to the device node based on the obtained configuration information data and the device usage data collected in the current life cycle, and obtains the remaining power battery capacity; wherein, the device usage data is sent by the device node to the cloud server.
[0190] In an alternative embodiment, the processor 901 further performs the following operations:
[0191] Receive the remaining power battery capacity sent by the device node, where the power battery capacity detection result is sent by the cloud server to the device node;
[0192] Store the remaining capacity of the power battery in the distributed storage network.
[0193] In an alternative embodiment, the processor 901 further performs the following operations:
[0194] Obtain the remaining capacity of the power battery in the current life cycle from the distributed storage network, as well as the remaining capacities of the power batteries in the previous N consecutive life cycles of the current life cycle, where N is a positive integer;
[0195] Based on the obtained N + 1 remaining capacities of the power batteries and the life cycles corresponding to each remaining capacity of the power battery, determine the attenuation state of the remaining capacity of the power battery of the device, where the attenuation state is used to indicate whether there is an abnormal attenuation in the remaining capacity of the power battery of the device;
[0196] If the attenuation state indicates that there is an abnormal attenuation in the remaining capacity of the power battery of the device, output a notification message.
[0197] In an alternative embodiment, the processor 901 further performs the following operations:
[0198] Store the configuration information data sent by the control node in the distributed storage network.
[0199] In the embodiments of the present application, after each component node generates node data in any time period, the node data generated by each component node is sent to the control node. The control node integrates the node data generated by each component node in the same time period to obtain configuration information data, and then sends the configuration information data to each component node. On this basis, after the processor 901 receives the configuration information data sent by the control node, it can obtain the node data generated by the target component node in the target time period from the configuration information data, and can also obtain the node data generated by the target component node in the previous M time periods of the target time period from the distributed storage network; where the distributed storage network refers to the distributed storage network composed of the control node and the at least one component node; M is a positive integer, and the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period are stored in the distributed storage network, so as to ensure the integrity of the configuration information data in the entire life cycle.
[0200] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0201] The embodiments of the present application further provide a computer program product, which includes computer program code. When the computer program code runs on a computer, the computer is caused to execute the steps in any of the above method embodiments.
[0202] The embodiments of the present application further provide a chip, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device equipped with the chip executes the steps in any of the above method embodiments.
[0203] The steps in the method embodiments of the present application can be adjusted, combined, and deleted according to actual needs.
[0204] The units in the device embodiments of the present application can be combined, divided, and deleted according to actual needs.
[0205] In the present application, for the description of the same or similar term concepts, technical solutions, and / or application scenarios, generally only the first occurrence is described in detail. When it appears repeatedly later, for the sake of brevity, it is generally not described again. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions, and / or application scenarios that are not described in detail later, reference can be made to their previous relevant detailed descriptions.
[0206] In the present application, the descriptions of the various embodiments have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0207] The technical features of the technical solutions of the present application can be combined arbitrarily. For the sake of concise description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as the combinations of these technical features do not conflict, they should all be considered as the scope recorded in the present application.
[0208] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the essence of the technical solution of the present application or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to cause a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of the present application.
[0209] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, storage disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a Solid State Disk (SSD)), etc.
[0210] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structural or equivalent process transformations made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are equally included in the patent protection scope of the present application.
Claims
1. A data processing method, characterized in that Including: Receiving configuration information data sent by a control node, where the configuration information data includes node data generated by at least one component node during a target time period; Obtaining the node data generated by a target component node during the target time period from the configuration information data; Obtaining the node data generated by the target component node during the previous M time periods of the target time period from a distributed storage network; wherein, the distributed storage network refers to a distributed storage network composed of the control node and the at least one component node; M is a positive integer; Storing the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period into the distributed storage network.
2. The method according to any one of claims 1, characterized in that, The distributed storage network includes a blockchain network; The obtaining the node data generated by the target component node during the previous M time periods of the target time period from the distributed storage network includes: Obtaining a target block from the blockchain network; wherein the blockchain network is a blockchain network composed of the at least one component node and the control node, and the target block is generated based on the node data generated by the target component node during a previous time period of the target time period; The storing the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period into the distributed storage network includes: Generating a new block based on the node data included in the target block and the node data generated by the target component node during the target time period; Publishing the new block to the blockchain network.
3. The method according to claim 1, wherein Before storing the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period into the distributed storage network, the method further includes: Sending the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period to other component nodes in the distributed storage network, so that each other component node verifies the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period based on a consensus mechanism to obtain verification information; Receiving verification information from each other component node; If it is determined that the verification is passed based on the verification information from each other component node, triggering the storing of the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period into the distributed storage network.
4. The method according to claim 3, wherein The storing the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period into the distributed storage network includes: If it is determined that the verification fails based on the verification information from each of the other component nodes, a vote is initiated to an arbitration component node in the distributed storage network; wherein, the arbitration component node includes at least one component node in the distributed storage network; Receive the voting result from the arbitration component node; If the voting result indicates that the vote passes, store the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network.
5. The method according to claim 1, wherein The distributed storage network includes device nodes; After storing the node data generated by the target component node in the previous M time periods and the node data generated by the target component node in the target time period into the distributed storage network, it further includes: Receive a data acquisition request sent by the cloud server; In response to the data acquisition request, obtain the configuration information data generated by the at least one component node in the current life cycle from the distributed storage network, wherein the current life cycle includes the target time period and the previous M time periods of the target time period; Send the obtained configuration information data to the cloud server, so that the cloud server performs batch cloud detection on the power battery capacity of the device corresponding to the device node based on the obtained configuration information data and the device usage data collected in the current life cycle, and obtain the remaining power battery capacity; wherein, the device usage data is sent by the device node to the cloud server.
6. The method according to claim 5, wherein The method further includes: Receive the remaining power battery capacity sent by the device node, wherein the power battery capacity detection result is sent by the cloud server to the device node; Store the remaining power battery capacity into the distributed storage network.
7. The method according to claim 5, wherein The method further includes: Obtain the remaining power battery capacity of the current life cycle and the remaining power battery capacity of the previous N consecutive life cycles of the current life cycle from the distributed storage network, where N is a positive integer; Based on the obtained N + 1 remaining power battery capacities and the life cycles corresponding to each remaining power battery capacity, determine the attenuation state of the remaining power battery capacity of the device, wherein the attenuation state is used to indicate whether there is an abnormal attenuation in the remaining power battery capacity of the device; If the attenuation state indicates that there is an abnormal attenuation in the remaining power battery capacity of the device, output a notification message.
8. The method according to claim 1, wherein The method further includes: Store the configuration information data sent by the control node into the distributed storage network.
9. A communication system, characterized in that, The communication system includes a control node and at least one component node, and the at least one component node includes a target component node, and the target component node is used to execute the method according to any one of claims 1 to 8.
10. A data processing device, characterized in that, The device includes: A receiving unit, configured to receive configuration information data sent by a control node, where the configuration information data includes node data generated by at least one component node in a target time period; An acquisition unit, configured to acquire node data generated by a target component node during the target time period from the configuration information data; The acquisition unit is further configured to acquire node data generated by the target component node during the previous M time periods from a distributed storage network; wherein, the distributed storage network refers to a distributed storage network composed of the control node and the at least one component node; M is a positive integer; A storage unit, configured to store the node data generated by the target component node during the previous M time periods and the node data generated by the target component node during the target time period into the distributed storage network.
11. A terminal device, characterized in that, The terminal device includes a memory, a communication interface, and a processor, wherein the memory, the communication interface, and the processor are interconnected; the memory stores a computer program, and the processor calls the computer program stored in the memory to implement the method according to any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
13. A computer program product, characterized in that, The computer program product stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.