Blockchain-based serial backup power operation and maintenance data archiving method

By constructing an ordered sequence and calculating the difference using Kirchhoff's voltage law, combined with Merkle trees and blockchain technology, the problem of data tampering in series-type backup power supply operation and maintenance was solved. This achieved physical topology-level anti-tampering of operation and maintenance data, solving the problem that existing technologies cannot identify tampered data, and ensuring the authenticity and immutability of the data.

CN122394761APending Publication Date: 2026-07-14HUNAN XIANGYUAN MICRO ENERGY POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUNAN XIANGYUAN MICRO ENERGY POWER TECH CO LTD
Filing Date
2026-06-12
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

In existing technologies, the operation and maintenance data storage schemes for series-type backup power supplies cannot identify tampered data, resulting in forged operation and maintenance data being fixed in the blockchain in a legitimate form, lacking physical consistency guarantees.

Method used

By constructing an ordered sequence, using Kirchhoff's voltage law to calculate the difference between the theoretical total voltage drop and the measured total voltage drop as a constraint factor, and combining Merkle trees and smart contract verification of blockchain consensus networks, physical electrical correlation calculations are embedded to achieve physical consistency verification of data.

Benefits of technology

During the blockchain consensus phase, smart contracts block the writing of tampered data by recalculating the pressure drop difference, ensuring the physical topology-level tamper-proof nature of the stored data and realizing the authenticity and immutability of the operation and maintenance data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122394761A_ABST
    Figure CN122394761A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of data processing, and particularly relates to a method for storing and verifying operation and maintenance data of a series backup power supply based on a blockchain. The method collects voltage and internal resistance data of each single power supply of the series backup power supply, and constructs an ordered sequence according to the physical position sequence. According to Kirchhoff's voltage law, the theoretical total voltage drop is calculated, and the difference between the theoretical total voltage drop and the measured total voltage drop is taken as a constraint factor. The constraint factor and the ordered sequence are used to construct a local Merkle tree and generate a root hash, which is broadcast to a blockchain network. The smart contract analyzes the ordered sequence to recalculate the difference, and when the recalculated difference is within a preset physical threshold range, the root hash is written into a blockchain ledger. The physical and electrical coupling relationship of the series circuit is embedded in the blockchain consensus verification process, and the physically constrained factor is used to block locally tampered data from being uploaded to the chain in violation of the circuit rules, thereby ensuring the physical consistency of the stored data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of data processing technology, specifically relating to a blockchain-based method for storing maintenance data of serial backup power supplies. Background Technology

[0002] Currently, in the operation and maintenance management of series-connected backup power supplies, blockchain technology is commonly used to store the operational data of individual power supplies. Conventional storage schemes independently acquire the voltage and internal resistance data of each individual power supply at the data acquisition end. Then, the data from multiple individual power supplies collected simultaneously are combined into a dataset, hashed to obtain a hash digest, and the transaction containing this hash digest is submitted to the blockchain network. Upon receiving the transaction, the consensus node in the blockchain invokes a smart contract to execute verification logic. This verification logic only checks the matching status of the sender's wallet public key and digital signature, and verifies the data format of the hash digest. Throughout the entire storage process, the data of each individual power supply exists as independent fields in the dataset before being uploaded to the blockchain, and the smart contract verification process does not involve calculations of the physical and electrical relationships between the individual power supply data.

[0003] The aforementioned existing technical solutions have the following technical problems: Because smart contracts only perform cryptographic-level format and signature verification, they sever the inherent physical and electrical coupling relationship between the individual power sources in the series circuit. When the collected data of one or more individual power sources in the series circuit is maliciously tampered with before being packaged and uploaded to the blockchain, the tampered data set can still pass cryptographic verification and be written into the blockchain ledger. The evidence storage system cannot identify abnormal data that violates the physical laws of series circuits during the consensus phase, resulting in partially forged operation and maintenance data being able to be legally fixed in the blockchain, and the evidence storage data lacks physical consistency guarantees. Summary of the Invention

[0004] The purpose of this invention is to provide a blockchain-based method for storing maintenance data of serial backup power supplies, which can solve the problems mentioned in the background.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A blockchain-based method for storing maintenance data of serial backup power supplies includes: Collect real-time operation and maintenance voltage and internal resistance data of each individual power supply in a series-connected backup power supply. Based on the physical position order of each individual power supply in the series branch, the operation and maintenance data of the N individual power supplies at the current moment are constructed into an ordered sequence. The operating voltage of the preceding and subsequent power supplies in the ordered sequence is calculated by summing them according to Kirchhoff's voltage law to obtain the theoretical total voltage drop. The difference between the theoretical total voltage drop and the measured total voltage drop of the series branch is calculated to obtain the voltage drop difference value, which is then used as a constraint factor. The constraint factors, together with the ordered sequence, are used as input data to form the leaf nodes of the local Merkle tree, and the root hash of the local Merkle tree is calculated. Broadcast the transaction data containing the root hash to the blockchain consensus network; The nodes in the blockchain consensus network execute a preset smart contract, parse the ordered sequence in the transaction data and recalculate the voltage drop difference. When the recalculated voltage drop difference is within a preset physical threshold range, the root hash is written into the blockchain ledger.

[0006] Preferably, the step of constructing an ordered sequence of the operation and maintenance data of the N individual power supplies at the current moment according to the physical position order of each individual power supply in the series branch includes: Read the pre-configured series branch topology configuration table, which records the series branch identifier, the number N of individual power supplies contained in the series branch, and the physical slot number corresponding to each individual power supply. The maintenance voltage and internal resistance data of the N individual power supplies are sorted in ascending order of the physical slot number. The sorted N maintenance voltage and N internal resistance data are alternately spliced ​​to generate an ordered array with voltage-internal resistance as the basic unit; The serial branch identifier and the current time stamp are added to the head of the ordered array to generate the ordered sequence.

[0007] Preferably, the step of calculating the theoretical total voltage drop by summing the operating voltages of the preceding and subsequent power supplies in the ordered sequence according to Kirchhoff's voltage law includes: Extract N maintenance voltages from the ordered sequence; The N maintenance voltages are added sequentially according to their physical locations to obtain the voltage sum. Extract the positive bus voltage and negative bus voltage of the series branch, and subtract the negative bus voltage from the positive bus voltage to obtain the measured total voltage drop; Calculate the absolute value of the difference between the accumulated voltage and the measured total voltage drop, and determine the absolute value of the difference as the voltage drop difference.

[0008] Preferably, the constraint factors, together with the ordered sequence, are used as input data to form the leaf nodes of the local Merkle tree, including: Convert the constraint factor into a fixed-length binary string; The binary string is appended to the end of the ordered sequence to generate a data string to be hashed; The initial hash value is calculated by calling a preset hash function on the data string to be hashed. The initial hash value is encapsulated into a leaf node object with a preset data structure. The leaf node object contains the initial hash value, the timestamp of the current time, and the physical slot number range identifier of the serial branch.

[0009] Preferably, broadcasting transaction data containing the root hash to the blockchain consensus network includes: The wallet private key corresponding to the local Merkle tree is used to digitally sign the root hash to obtain signature data. The root hash, the signature data, the wallet address corresponding to the local Merkle tree, the serial branch identifier, and the preset smart contract address are encapsulated into a transaction body; Assign an incrementing transaction counter value to the transaction body; The transaction body carrying the transaction counter value is serialized into a data packet conforming to the blockchain consensus network communication protocol, and the data packet is sent to the adjacent consensus node in the blockchain consensus network.

[0010] Preferably, the nodes in the blockchain consensus network execute a preset smart contract to parse the ordered sequence in the transaction data and recalculate the pressure drop difference, including: After receiving the transaction data, the preset smart contract uses the preset wallet public key to verify the signature data in the transaction data. After the signature verification is successful, the ordered sequence is extracted from the transaction data; According to the parsing rules that are the reverse of the ordered sequence generation process, N maintenance voltages are separated from the ordered sequence; The N separated maintenance voltages are summed up, and combined with the measured total voltage drop carried in the transaction data, the voltage drop difference to be verified is recalculated.

[0011] Preferably, the process of generating and updating the series branch topology configuration table includes: When the series-type backup power supply is powered on for the first time, it sends an address allocation command to each individual power supply in the series branch. Receive response messages from each individual power supply and assign physical slot numbers to each individual power supply in the order in which the response messages arrive. Monitor whether a single power supply plug-in event occurs in the series branch; If the single power supply plugging / unplugging event is detected, a reallocation process is triggered, the address allocation instruction is resent to all currently connected single power supplies, the physical slot number is updated, and the updated physical slot number is synchronously written into the series branch topology configuration table.

[0012] Preferably, after obtaining the measured total voltage drop, the method further includes: Extract N internal resistance data from the ordered sequence; Obtain the operating current value of the series branch at the current moment; Multiply the internal resistance data corresponding to each individual power supply with the operating current value to obtain N individual voltage drop compensation values. The total internal resistance voltage drop compensation value is obtained by summing the N individual unit voltage drop compensation values. Add the internal resistance total voltage drop compensation value to the measured total voltage drop to obtain the corrected measured total voltage drop; The absolute value of the difference between the calculated voltage sum and the corrected measured total voltage drop is determined as the voltage drop difference.

[0013] Preferably, after calculating the initial hash value, the method further includes: Obtain the locally stored device hardware private key; The initial hash value is encrypted using the device's hardware private key to generate a hardware signature string; The hardware signature string is appended to the back end of the initial hash value to generate an extended hash field; The step of encapsulating the initial hash value into a leaf node object with a preset data structure includes: The extended hash field is encapsulated into a leaf node object with the preset data structure. The leaf node object includes the extended hash field, the timestamp of the current time, and the physical slot number range identifier of the serial branch.

[0014] Preferably, after recalculating the voltage drop difference to be verified, the method further includes: Read the upper and lower limits of the preset physical threshold range from the storage space of the preset smart contract; Determine whether the voltage drop difference to be verified is within the interval formed by the upper threshold and the lower threshold; If the pressure drop difference to be verified is not within the range, the preset smart contract generates an abnormal alarm transaction containing the ordered sequence. The abnormal alarm transaction is sent to the blockchain consensus network, and the transaction hash of the abnormal alarm transaction is associated with the transaction hash of the transaction data and stored together.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention constructs an ordered sequence by sequentially determining the physical locations of individual power sources in a series branch. Using Kirchhoff's voltage law, the difference between the theoretical and measured total voltage drop is calculated as a constraint factor. This constraint factor, along with the ordered sequence, is used to construct the leaf nodes of a Merkle tree and generate a root hash. During the blockchain consensus phase, the smart contract recalculates the voltage drop difference by parsing the received ordered sequence, directly embedding the circuit's physical laws into the underlying cryptographic verification process of the blockchain. When individual data is partially tampered with before being packaged, the recalculated voltage drop difference deviates from a preset physical threshold. Based on this, the smart contract blocks the writing of the root hash, achieving physical topology-level tamper-proof interception of the stored data during the consensus phase.

[0016] 2. This invention assigns physical slot numbers to individual power supplies based on the address allocation command response sequence upon power-up, and triggers a reassignment process to update the topology configuration table via plug-in / plug-out events, ensuring that the sorting criteria in the ordered sequence strictly correspond to the actual physical topology of the hardware. By extracting internal resistance data and operating current to calculate the individual unit voltage drop compensation value, and using the total internal resistance voltage drop compensation value to correct the measured total voltage drop, the interference of line internal resistance on the theoretical voltage drop calculation results is eliminated. The initial hash value is encrypted using the device hardware private key to generate a hardware signature string and construct an extended hash field, improving the tamper-proof strength of leaf nodes during the local construction phase. When the recalculated voltage drop difference exceeds the physical threshold range, the smart contract generates an abnormal alarm transaction containing the original ordered sequence, and associates and stores the hash of this alarm transaction with the hash of the original transaction, achieving on-chain source tracing of abnormal individual unit data. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating the generation and updating process of the serial branch topology configuration table according to the present invention. Figure 2 This is a flowchart of the operation and maintenance data collection and ordered sequence construction process of the present invention; Figure 3 This is a flowchart illustrating the theoretical total pressure drop calculation and the measured total pressure drop correction for this invention. Figure 4 This is a flowchart of the local Merkel leaf node construction and root hash calculation process of the present invention; Figure 5 This is a flowchart illustrating the transaction data encapsulation and broadcasting process of the present invention; Figure 6 This is a flowchart of the smart contract verification and anomaly alarm process of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0019] Please refer to Figure 1 This embodiment provides a blockchain-based method for storing maintenance data of series-type backup power supplies. It is applied to the scenario of storing maintenance data of series-type backup power supplies. Series-type backup power supplies may include, but are not limited to, lead-acid battery packs, lithium-ion battery packs, supercapacitor packs, etc., which are DC backup power supply systems composed of multiple individual power supplies connected in series. This system can be applied to scenarios such as data centers, communication base stations, and emergency power supply for industrial control.

[0020] In one embodiment, the real-time operation and maintenance voltage and internal resistance data of each individual power supply in the series-connected backup power supply are first collected. Specifically, the series branch of the series-connected backup power supply consists of N individual power supplies connected in series. Each individual power supply is equipped with a voltage acquisition unit and an internal resistance acquisition unit. Both the voltage acquisition unit and the internal resistance acquisition unit are electrically connected to the positive and negative terminals of the corresponding individual power supply through an isolated sampling circuit. The isolated sampling circuit adopts a linear optocoupler isolation architecture to avoid interference from the high-voltage common-mode signal of the series branch to the sampling circuit. During the acquisition process, a synchronous acquisition action is triggered at a preset sampling period. The sampling period can be configured according to operation and maintenance requirements. The synchronous acquisition action sends synchronous acquisition commands to the acquisition units corresponding to all individual power supplies through the synchronization bus of the series branch, ensuring that the acquisition time of the operation and maintenance voltage and internal resistance data of all individual power supplies is consistent, eliminating the impact of timing deviations at different acquisition times on subsequent voltage accumulation calculations. After each acquisition unit completes the acquisition of the operation and maintenance voltage and internal resistance data of the corresponding individual power supply, the acquired data is transmitted to the local data processing terminal via fieldbus. The local data processing terminal is an edge computing device that is matched with the series branch and has the ability to cache data, perform logical operations and communicate with blockchain nodes.

[0021] Next, based on the physical position order of each individual power supply in the series branch, the operation and maintenance data of the N individual power supplies at the current moment are constructed into an ordered sequence. Specifically, the local data processing terminal's storage medium pre-stores the physical topology mapping relationship of the series branch. This mapping relationship records the physical position order of each individual power supply in the series branch. The physical position order is consistent with the current flow direction of the series branch, that is, after the current flows out from the positive bus of the series branch, the first individual power supply that flows through is the first in the physical position order, and the last individual power supply that flows through is the last in the physical position order. After receiving the operation and maintenance voltage and internal resistance data of the N individual power supplies synchronously collected at the current moment, the local data processing terminal sorts the N sets of operation and maintenance data according to the physical position order, so that the order of the sorted operation and maintenance data is completely consistent with the actual series connection order of the individual power supplies in the series branch. After sorting, the N sets of operation and maintenance data are spliced ​​in order to generate an ordered sequence containing the operation and maintenance data of all individual power supplies at the current moment. In the ordered sequence, the storage location of each set of operation and maintenance data corresponds to the physical location of the corresponding individual power supply, ensuring that the order of subsequent voltage accumulation calculations is consistent with the actual electrical connection order of the series branches.

[0022] Then, the operating voltages of the preceding and subsequent individual power supplies in the ordered sequence are summed according to Kirchhoff's voltage law to obtain the theoretical total voltage drop. Specifically, the core of Kirchhoff's voltage law is that in any closed DC circuit, the algebraic sum of the voltages across all components is equal to zero. For a series branch of a series-type backup power supply, the sum of the terminal voltages of all individual power supplies in the series branch is equal to the total voltage between the positive and negative buses of the series branch. Based on this law, the local data processing terminal extracts the operating voltage corresponding to each individual power supply from the ordered sequence according to its physical location. All extracted operating voltages are then summed sequentially, with the summation order consistent with the physical location order of the individual power supplies. After the summation calculation is complete, the resulting voltage sum is the theoretical total voltage drop of the series branch. The formula for calculating the theoretical total voltage drop is as follows: ; in, The theoretical total voltage drop of the series branch is... This represents the total number of individual power supplies in a series branch. For the ordered sequence, the first... The maintenance voltage of a single power supply unit corresponding to each physical location. The value range is 1 to , This corresponds to the first individual power source into which current flows in a series branch. The last individual power source from which current flows in the corresponding series branch.

[0023] Next, the theoretical total voltage drop is subtracted from the measured total voltage drop of the series branch to obtain the voltage drop difference value, which is used as a constraint factor. Specifically, the local data processing terminal synchronously collects the voltage to ground of the positive bus and the voltage to ground of the negative bus of the series branch at the current moment through the bus voltage acquisition unit of the series branch. The voltage to ground of the positive bus is subtracted from the voltage to ground of the negative bus to obtain the measured total voltage drop of the series branch. The acquisition time of the measured total voltage drop is completely consistent with the acquisition time of the individual power supply maintenance voltage, eliminating the influence of timing deviation on the difference calculation. After obtaining the theoretical total voltage drop and the measured total voltage drop, the two values ​​are subtracted, and the absolute value of the difference is calculated. This absolute value is the voltage drop difference value, which is used as a constraint factor for subsequent hash calculations. The formula for calculating the voltage drop difference value is as follows: ; in, The voltage drop difference, The measured total voltage drop of the series branch is... This is the absolute value operator.

[0024] Then, the constraint factors, along with the ordered sequence, are used as input data to form the leaf nodes of the local Merkle tree, and the root hash of the local Merkle tree is calculated. Specifically, the local data processing terminal concatenates the obtained constraint factors with the ordered sequence to generate the input dataset to be hashed. The input dataset contains the complete ordered sequence and constraint factors, ensuring a strong binding relationship between the constraint factors and the ordered sequence. Subsequently, the input dataset is split into multiple fixed-length data blocks, each corresponding to a leaf node of the Merkle tree. A preset hash function is called to perform a hash operation on the data block of each leaf node to obtain the hash value corresponding to each leaf node. The preset hash function uses the SHA-256 hash algorithm, which outputs a fixed-length 256-bit hash value, possessing collision resistance and one-way hashing. The formula for calculating the hash value of the leaf node is as follows: ; in, For the first The hash value corresponding to each leaf node For the first The data blocks corresponding to each leaf node This is the SHA-256 hash function. The value range is from 1 to the total number of leaf nodes.

[0025] After obtaining the hash values ​​of all leaf nodes, following the Merkle tree construction rules, the hash values ​​of two adjacent leaf nodes are concatenated and hashed again to obtain the corresponding parent node hash value. This concatenation and hashing process is repeated until a unique hash value is generated, which is the root hash of the local Merkle tree. The formula for calculating the Merkle tree root hash is as follows: ; in, For the root hash of the local Merkle tree, The hash value of the left child node at the top level of the Merkle tree. The hash value of the right child node at the top level of the Merkle tree. This is a string concatenation operator.

[0026] Next, the transaction data containing the root hash is broadcast to the blockchain consensus network. Specifically, the local data processing terminal, acting as a light node in the blockchain consensus network, possesses the capability to generate and broadcast transactions. The local data processing terminal generates blockchain transaction data, the data body of which contains the calculated root hash, as well as auxiliary information such as an ordered sequence, serial branch identifiers, and collection timestamps. After the transaction data is generated, the local data processing terminal broadcasts the transaction data to the full nodes in the blockchain consensus network through a pre-established P2P communication connection. Upon receiving the transaction data, the full nodes forward it to their adjacent consensus nodes, thus completing the diffusion of the transaction data throughout the entire blockchain consensus network.

[0027] Then, nodes in the blockchain consensus network execute a pre-defined smart contract to parse the ordered sequence in the transaction data and recalculate the voltage drop difference. When the recalculated voltage drop difference falls within a pre-defined physical threshold range, the root hash is written to the blockchain ledger. Specifically, after receiving the broadcast transaction data, the consensus node in the blockchain consensus network forwards the transaction data to the pre-defined smart contract execution environment, triggering the execution logic of the smart contract. The smart contract first parses the transaction data, extracts the ordered sequence from the data body, and extracts the maintenance voltage of all individual power supplies from the ordered sequence according to the same parsing rules as the local data processing terminal. The extracted maintenance voltages are accumulated according to their physical location order to recalculate the theoretical total voltage drop. At the same time, the smart contract extracts the measured total voltage drop of the series branch from the transaction data, and calculates the difference between the recalculated theoretical total voltage drop and the measured total voltage drop to obtain the recalculated voltage drop difference. The smart contract reads a pre-configured pre-defined physical threshold range from its contract storage space. This pre-defined physical threshold range is a numerical range pre-set based on the hardware parameters of the series branch and the measurement error of the acquisition circuit. The smart contract determines whether the recalculated voltage drop difference is within the preset physical threshold range. If the recalculated voltage drop difference is within the preset physical threshold range, it is determined that the operation and maintenance data corresponding to the transaction data conforms to the physical laws of a series circuit and the data has not been tampered with. The smart contract triggers the on-chain logic, writing the root hash, ordered sequence, collection timestamp, series branch identifier, and other data from the transaction data into the latest block of the blockchain ledger. If the recalculated voltage drop difference is not within the preset physical threshold range, it is determined that the operation and maintenance data corresponding to the transaction data is abnormal. The smart contract refuses to write the root hash into the blockchain ledger and terminates the execution process of the current transaction.

[0028] Table 1. Ordered sequence structure of maintenance data for individual power supplies in series branches:

[0029] This table defines a standardized data structure for ordered sequences. Fields within the sequence are arranged in a fixed order, ensuring complete consistency between the local data processing terminal and the blockchain smart contract's parsing rules for ordered sequences, thus avoiding parsing errors caused by data structure mismatches. The maintenance voltage and internal resistance data of individual power supplies within the sequence are arranged in pairs according to their physical location, allowing the ordered sequence to directly map the physical topology of the series branches, ensuring that the order of subsequent voltage accumulation calculations matches the actual circuit connection order.

[0030] In this embodiment, the operation and maintenance data of individual power supplies in a series branch are constructed into an ordered sequence according to their physical location. The voltage drop difference between the theoretical total voltage drop and the measured total voltage drop is calculated based on Kirchhoff's voltage law as a constraint factor. The constraint factor and the ordered sequence are used to construct a Merkle tree and generate a root hash. During the blockchain consensus phase, the voltage drop difference is recalculated through a smart contract and a physical threshold verification is performed. The physical laws of the series circuit are directly embedded into the consensus verification process of the blockchain. This adds physical consistency verification to the operation and maintenance data on top of cryptographic verification, avoiding the problem of tampered operation and maintenance data being uploaded to the chain through cryptographic verification, and ensuring the authenticity and immutability of the on-chain evidence data.

[0031] In a preferred embodiment, the generation and updating process of the series tributary topology configuration table is executed first. Specifically, when the series-type backup power supply is powered on for the first time, after the local data processing terminal completes system initialization, it sends an address allocation command to each individual power supply in the series tributary through the internal communication bus of the series tributary. The address allocation command is a broadcast command, which includes an address allocation session identifier to ensure that all response messages in the same address allocation process correspond to the same session. After receiving the address allocation command, each individual power supply in the series tributary immediately returns a response message to the local data processing terminal through the internal communication bus. The response message contains the unique hardware serial number of the corresponding individual power supply. The local data processing terminal receives the response messages returned by each individual power supply, records the timestamp of each response message arriving at the local data processing terminal, and assigns incremental physical slot numbers to each individual power supply according to the order of arrival of the response messages. Specifically, the individual power supply corresponding to the first arriving response message is assigned physical slot number 1, the individual power supply corresponding to the second arriving response message is assigned physical slot number 2, and so on, until physical slot numbers have been assigned to all responding individual power supplies. Because the internal communication bus of the series branch adopts a chain topology, the individual power supplies physically located closer to the local data processing terminal have shorter transmission paths and arrive earlier. Therefore, the physical slot numbers allocated according to the arrival order of the response messages correspond perfectly to the actual physical location order of the individual power supplies in the series branch. After the physical slot numbers are allocated, the local data processing terminal generates a local series branch topology configuration table. The series branch topology configuration table records the mapping relationship between the series branch identifier, the number N of individual power supplies contained in the series branch, the physical slot number corresponding to each individual power supply, and the hardware serial number of each individual power supply.

[0032] During operation, the local data processing terminal monitors in real time whether individual power supply plug-in / plug-out events occur in the series branch. Specifically, the local data processing terminal sends a heartbeat query command to each individual power supply with an assigned physical slot number via the internal communication bus according to a preset heartbeat cycle. Upon receiving the heartbeat query command, the individual power supply returns a heartbeat response message. If the local data processing terminal does not receive a heartbeat response message from a particular individual power supply for several consecutive heartbeat cycles, it determines that the individual power supply has been unplugged. If the local data processing terminal detects a network access request message sent by an individual power supply without an assigned physical slot number on the internal communication bus, it determines that a new individual power supply has been plugged in. When an individual power supply plug-in / plug-out event is detected, the local data processing terminal immediately triggers the physical slot number reallocation process, stops the current maintenance data collection action, resends address allocation commands to all individual power supplies currently connected to the internal communication bus, reallocates physical slot numbers to all individual power supplies according to the arrival order of the new response messages, generates a new mapping relationship between physical slot numbers and individual power supplies, and synchronously writes the updated mapping relationship into the series branch topology configuration table, overwriting the original topology configuration data. After the topology configuration table is updated, the local data processing terminal resumes the operation and maintenance data collection action and executes the subsequent ordered sequence construction process based on the updated topology configuration table.

[0033] Table 2. Field Structure Table for Series Branch Topology Configuration:

[0034] This table defines a standardized storage structure for the series branch topology configuration table. Each physical slot number corresponds to one configuration record, and all configuration records are arranged in ascending order of physical slot number. By mapping hardware serial numbers to physical slot numbers, the physical location identifier of each individual power supply is ensured to be unique and traceable. Slot allocation timestamps and update markers are used to record the history of topology configuration changes, providing a topology basis for subsequent traceability of operation and maintenance data.

[0035] Next, refer to Figure 2The process involves collecting and constructing an ordered sequence of maintenance data. Specifically, the local data processing terminal sends synchronous acquisition commands to all individual power supplies in the series branch according to a preset sampling period. These commands include a timestamp of the current acquisition time. Upon receiving the synchronous acquisition command, all individual power supplies simultaneously acquire maintenance voltage and internal resistance data, transmitting the acquired data along with their hardware serial numbers to the local data processing terminal via the internal communication bus. After receiving the acquired data from all individual power supplies, the local data processing terminal reads the locally stored series branch topology configuration table. From this table, it extracts the series branch identifier, the total number of individual power supplies N, and the physical slot number corresponding to each hardware serial number. Based on the hardware serial number in each acquired data point, the local data processing terminal matches the corresponding physical slot number in the topology configuration table. It then sorts the acquired maintenance voltage and internal resistance data of the N individual power supplies in ascending order of physical slot numbers, ensuring that the sorted data matches the ascending order of the physical slot numbers.

[0036] After sorting, the local data processing terminal alternately concatenates the sorted N maintenance voltages and N internal resistance data to generate an ordered array with voltage-internal resistance as the basic unit. Specifically, the first element of the ordered array is the maintenance voltage of the power supply corresponding to physical slot 1, the second element is the internal resistance data of the power supply corresponding to physical slot 1, the third element is the maintenance voltage of the power supply corresponding to physical slot 2, the fourth element is the internal resistance data of the power supply corresponding to physical slot 2, and so on, until the maintenance voltage and internal resistance data of all N power supplies are filled into the ordered array. The total length of the ordered array is 2N. After the ordered array is generated, the local data processing terminal adds a series branch identifier and a timestamp of the current time to the head of the ordered array to generate the final ordered sequence. The header data of the ordered sequence and the ordered array form a fixed concatenation relationship to ensure that the parsing rules of the ordered sequence can be reproduced by the smart contract.

[0037] Next, refer to Figure 3 The process involves calculating the theoretical total voltage drop and correcting the measured total voltage drop. Specifically, the local data processing terminal extracts the maintenance voltages corresponding to N individual power supplies from the generated ordered sequence, according to the physical slot number. These N maintenance voltages are then added together in ascending order of physical slot number to obtain the voltage sum, which is the initial theoretical total voltage drop. Simultaneously, the local data processing terminal, through the bus voltage acquisition unit, synchronously acquires the positive and negative bus voltages of the series branch at the current moment. The negative bus voltage is subtracted from the positive bus voltage to obtain the initial measured total voltage drop.

[0038] Then, the local data processing terminal executes the internal resistance correction process for the measured total voltage drop. Specifically, the local data processing terminal extracts the internal resistance data corresponding to N individual power supplies from the ordered sequence according to the physical slot number. Simultaneously, it collects the current value of the series branch at the current moment through the current acquisition unit of the series branch. The acquisition time of the operating current value is completely consistent with the acquisition time of the maintenance voltage and internal resistance data. The internal resistance data corresponding to each individual power supply is multiplied by the operating current value to obtain the individual voltage drop compensation value for each individual power supply. All N individual voltage drop compensation values ​​are accumulated to obtain the total internal resistance voltage drop compensation value. The calculation formula for the individual voltage drop compensation value is as follows: ; in, For the first The individual voltage drop compensation value of the power supply unit corresponding to each physical slot number. For the first Internal resistance data of the individual power supply unit corresponding to each physical slot number. This represents the current operating current value of the series branch at the current moment.

[0039] The formula for calculating the total internal resistance voltage drop compensation value is as follows: ; in, This is the compensation value for the total voltage drop due to internal resistance.

[0040] After obtaining the internal resistance total voltage drop compensation value, the initial measured total voltage drop is added to the internal resistance total voltage drop compensation value to obtain the corrected measured total voltage drop. The formula for calculating the corrected measured total voltage drop is as follows: ; in, This is the corrected measured total pressure drop. This represents the initial measured total pressure drop.

[0041] Subsequently, the absolute value of the difference between the accumulated voltage sum and the corrected measured total voltage drop is calculated. This absolute value is determined as the final voltage drop difference, which is also the constraint factor. The formula for calculating the corrected voltage drop difference is as follows: ; in, This is the corrected pressure drop difference value.

[0042] The subsequent Merkle tree construction, root hash calculation, transaction broadcasting, and smart contract verification processes are consistent with the corresponding processes in the aforementioned embodiments, and will not be repeated here.

[0043] In this embodiment, the physical slot numbers of individual power supplies are assigned based on the address allocation command response sequence when the series branch is initially powered on. Combined with the topology configuration table updated through a reassignment process triggered by plug-in / plug-out events, this ensures that the ordered sequence strictly corresponds to the actual physical topology of the series branch, avoiding mismatches between the ordered sequence and the actual circuit due to changes in the location of individual power supplies. The individual voltage drop compensation value is calculated using internal resistance data and operating current to correct the measured total voltage drop. This eliminates the interference of the internal resistance of individual power supplies and the line internal resistance in the series branch on the voltage drop calculation results, improving the accuracy of the voltage drop difference calculation and thus enhancing the precision of physical consistency verification.

[0044] In a preferred embodiment, reference Figure 4 After generating the ordered sequence and the constraint factors corresponding to the voltage drop difference, the local Merkle leaf node construction process is executed. Specifically, the local data processing terminal first converts the constraint factors into fixed-length binary strings. Specifically, the constraint factors are single-precision floating-point values. The local data processing terminal converts the constraint factors into 32-bit fixed-length binary strings according to the IEEE 754 single-precision floating-point binary encoding standard, ensuring that the length of the converted binary string is fixed and avoiding the impact of string length changes due to different numerical values ​​on subsequent hash calculations. After the binary string conversion is complete, the local data processing terminal appends this binary string to the end of the ordered sequence to generate the data string to be hashed. The head of the data string to be hashed is the fixed-structure data of the ordered sequence, and the tail is the fixed-length binary string of the constraint factors, forming an inseparable binding relationship between the constraint factors and the ordered sequence. Any tampering with the ordered sequence will cause subsequent verification based on the constraint factors to fail.

[0045] After the hash data string is generated, the local data processing terminal calls a preset hash function to calculate the initial hash value. The preset hash function uses the SHA-256 hash algorithm to perform a one-way hash operation on the data string and outputs a 256-bit initial hash value. The formula for calculating the initial hash value is as follows: ; in, The initial hash value, The binary string corresponding to the ordered sequence. This is a fixed-length binary string after the constraint factor conversion.

[0046] After the initial hash value is calculated, the hardware signature encryption process is executed. Specifically, the hardware security module of the local data processing terminal pre-stores the device hardware private key. This device hardware private key is a private key for an asymmetric encryption algorithm, employing the ECC elliptic curve encryption algorithm, specifically the secp256k1 curve. The device hardware private key is stored only in the secure storage area of ​​the hardware security module and cannot be read or exported externally, ensuring the security of the private key. The local data processing terminal calls the encryption interface of the hardware security module, inputting the initial hash value into the hardware security module. The initial hash value is then encrypted using the device hardware private key to generate a hardware signature string. The generation of the hardware signature string is a hardware-level encryption operation, avoiding the risk of private key leakage at the software level and ensuring that the source of the initial hash value can be verified and cannot be forged. The formula for generating the hardware signature string is as follows: ; in, For hardware signature string, This is the ECC elliptic curve signature operation function. This is the hardware private key for the local device.

[0047] After the hardware signature string is generated, the local data processing terminal appends the hardware signature string to the end of the initial hash value to generate an extended hash field. The first 256 bits of the extended hash field are the initial hash value, and the latter part is the fixed-length hardware signature string. The total length of the extended hash field is fixed to ensure that the encapsulation format of subsequent leaf nodes is uniform.

[0048] Subsequently, the local data processing terminal encapsulates the extended hash field into a leaf node object with a preset data structure. The leaf node object is a standardized structured data, containing an extended hash field, a timestamp of the current moment, and a physical slot number range identifier for the series branch. The current timestamp is the data collection timestamp for the operation and maintenance data, and it is completely consistent with the timestamp at the beginning of the ordered sequence. The physical slot number range identifier is a string type, recording the minimum and maximum values ​​of the physical slot numbers of the individual power supply units covered by the ordered sequence corresponding to the leaf node. The format is start slot number - end slot number, used to identify the topology range of the series branch corresponding to the leaf node.

[0049] Table 3. Merkel Tree Leaf Node Object Data Structure Table:

[0050] This table defines a standardized structure for Merkel leaf node objects. All fields have fixed lengths and data types, ensuring consistent parsing rules for leaf node objects generated by different devices. The extended hash field binds the initial hash value to a hardware signature string, achieving hardware-level source authentication of the hash value and avoiding software-level hash value forgery risks. The timestamp and slot number range identifiers provide traceable topological and temporal information for the leaf nodes.

[0051] After the leaf node objects are generated, the local data processing terminal constructs a local Merkle tree based on them. Specifically, the local data processing terminal converts the generated leaf node objects into a fixed-length binary data stream, and then calls the SHA-256 hash function on this binary data stream to obtain the final hash value of the leaf node. If the number of individual power supplies in the series branch is large, and the generated data string to be hashed is long, the data string to be hashed can be split into multiple consecutive data blocks, each data block corresponding to a leaf node object. Each leaf node object generates its corresponding final hash value according to the above process. After the final hash values ​​of all leaf nodes are generated, according to the Merkle tree construction rules, the hash values ​​of two adjacent leaf nodes are concatenated, and the SHA-256 hash function is called on the concatenated string to generate the corresponding parent node hash value. If the total number of leaf nodes is odd, the hash value of the last leaf node is copied and concatenated with itself to generate the corresponding parent node hash value. The above process of generating parent node hash values ​​is repeated, calculating upwards layer by layer, until a unique hash value is finally generated. This hash value is the root hash of the local Merkle tree.

[0052] refer to Figure 5 After the root hash is generated, the transaction data encapsulation and broadcasting process is executed. Specifically, the local data processing terminal calls the wallet private key corresponding to the local Merkle tree to digitally sign the root hash, obtaining signature data. The wallet private key is the asymmetric encryption private key corresponding to the blockchain account, also using the secp256k1 elliptic curve algorithm, and is generated in pairs with the wallet public key. The wallet public key and wallet address correspond, and the wallet address is the unique identifier of the account in the blockchain network. The digital signature process involves performing a SHA-256 hash operation on the root hash, and then using the wallet private key to sign the result, generating fixed-length signature data. The formula for generating wallet signature data is as follows: ; in, Sign the wallet data. This is the wallet private key corresponding to the local Merkle tree.

[0053] After the signature data is generated, the local data processing terminal encapsulates the root hash, signature data, wallet address corresponding to the local Merkle tree, concatenated branch identifier, and preset smart contract address into a transaction body. The transaction body is a standardized structure conforming to the blockchain network transaction format. The smart contract address is a preset on-chain address used to execute operational data verification and on-chain logic, ensuring the transaction body is sent to the corresponding smart contract execution environment. After the transaction body is encapsulated, the local data processing terminal assigns an incrementing transaction counter value to it. The transaction counter value is the transaction sequence number corresponding to the wallet address. The transaction counter value for each wallet address increments sequentially according to the transaction sending order to prevent transaction replay attacks.

[0054] After the transaction counter values ​​are allocated, the local data processing terminal serializes the transaction body carrying the transaction counter values ​​into a data packet conforming to the blockchain consensus network communication protocol. The serialization process uses the RLP recursive length prefix encoding method, a standard blockchain network method, to convert the transaction body's structured data into a binary byte stream that can be transmitted over the network. After serialization, the local data processing terminal sends the data packet to neighboring consensus nodes in the blockchain consensus network via a P2P network communication module. Upon receiving the data packet, the neighboring consensus nodes decode and verify it. If the verification is successful, the data packet is forwarded to other neighboring consensus nodes, thus ensuring the transaction data is disseminated throughout the entire blockchain consensus network.

[0055] In this embodiment, by converting the constraint factor into a fixed-length binary string and concatenating it to the end of the ordered sequence to generate the data string to be hashed, a strong binding relationship between the constraint factor and the ordered sequence is ensured. The initial hash value is encrypted using the device's hardware private key to generate a hardware signature string. An extended hash field is constructed and encapsulated into a leaf node object, enhancing the tamper-proof strength of the leaf node during the local construction phase and avoiding the risk of hash value forgery at the software level. Through standardized transaction body encapsulation, digital signature, and serialization processes, the transmissibility and verifiability of transaction data in the blockchain network are ensured. The allocation of transaction counter values ​​avoids replay attacks and guarantees the uniqueness of transaction data.

[0056] In a preferred embodiment, reference Figure 6 After receiving a broadcast transaction data packet, the consensus node in the blockchain consensus network first performs RLP decoding on the data packet to reconstruct the transaction body. It then verifies the format of the transaction body, checking whether the smart contract address within it is valid, whether the wallet address conforms to the format specifications, and whether the transaction counter value follows the incrementing rules. Once the format verification is successful, the consensus node sends the transaction body to the virtual machine execution environment, triggering the execution logic of the pre-defined smart contract.

[0057] Upon receiving transaction data, the smart contract first executes a signature verification process. Specifically, the smart contract extracts the wallet address, root hash, and signature data from the transaction data. It then derives the corresponding wallet public key from the wallet address and uses this public key to perform a signature verification operation on the signature data. The verification process involves decrypting the signature data using the wallet public key to obtain a decrypted hash value. This decrypted hash value is then compared with the hash value obtained by performing a SHA-256 operation on the root hash. If the two hash values ​​match exactly, the verification passes; otherwise, it fails, and the smart contract immediately terminates the execution of the current transaction, refusing to execute subsequent verification logic. The formula for the signature verification operation is as follows: ; in, The result of the wallet signature verification is either true or false. This is the ECC elliptic curve verification function. This is the public key of the wallet corresponding to the wallet address.

[0058] After successful verification, the smart contract extracts an ordered sequence from the transaction data and executes the ordered sequence parsing process. Specifically, the smart contract parses the ordered sequence according to a parsing rule that is the reverse of the process by which the local data processing terminal generates the ordered sequence. First, it extracts the series branch identifier and the collection timestamp from the head of the ordered sequence and verifies whether the series branch identifier is a valid branch identifier pre-registered in the smart contract's contract storage space. If it is an invalid identifier, the transaction execution is terminated. After successful verification, the smart contract separates N maintenance voltages and N internal resistance data from the remaining data segments of the ordered sequence according to the pairwise arrangement rule of voltage and internal resistance, and simultaneously determines the total number N of individual power supplies in the series branch. During the separation process, the smart contract numbers the separated maintenance voltages and internal resistance data in ascending order of physical slot number, ensuring that the order of the separated maintenance voltages is completely consistent with the physical position order when the local data processing terminal constructs the ordered sequence.

[0059] After the ordered sequence is parsed, the smart contract executes the recalculation process for the voltage drop difference. Specifically, the smart contract sequentially accumulates the N separated maintenance voltages according to their physical slot numbers to obtain the recalculated theoretical total voltage drop. Simultaneously, the smart contract extracts the measured total voltage drop of the series branch from the transaction data, along with the current operating current value and N internal resistance data. Following the same correction logic as the local data processing terminal, the smart contract calculates the individual voltage drop compensation value for each power supply unit, accumulates them to obtain the total internal resistance voltage drop compensation value, and corrects the measured total voltage drop to obtain the corrected measured total voltage drop. Subsequently, the smart contract calculates the absolute value of the difference between the recalculated theoretical total voltage drop and the corrected measured total voltage drop to obtain the voltage drop difference to be verified.

[0060] After the voltage drop difference to be verified is calculated, the smart contract executes the threshold verification process. Specifically, the smart contract reads the upper and lower thresholds of the preset physical threshold range from its contract storage space. The preset physical threshold range is a configuration parameter pre-written into the contract storage space via contract calls. It can be configured based on factors such as the hardware parameters of the series branch, the measurement accuracy of the acquisition circuit, and line losses. Only accounts with administrator privileges can modify the threshold parameters, ensuring the security of the threshold configuration. The smart contract determines whether the voltage drop difference to be verified is within the interval formed by the upper and lower thresholds, that is, whether the voltage drop difference to be verified is greater than or equal to the lower threshold and less than or equal to the upper threshold.

[0061] Table 4 Smart Contract Storage Space Parameter Configuration Table:

[0062] This table defines the core configuration parameters in the smart contract's storage space. All parameters are stored in the contract's persistent storage space according to a fixed format. All nodes on the chain can read the parameter values, and only accounts with corresponding permissions can perform modification operations. Through the permission control mechanism, the security of the threshold parameters and valid branch identifier configurations is ensured, preventing malicious accounts from tampering with the verification rules. The list of abnormal alarm receiving addresses is used to specify the push targets for abnormal alarm transactions, realizing targeted notification of abnormal events.

[0063] If the voltage drop difference to be verified is within the range formed by the upper and lower thresholds, the smart contract determines that the operation and maintenance data corresponding to the current transaction data conforms to the physical laws of a series circuit and that the data has not been tampered with. The smart contract triggers the on-chain logic, writing the root hash, ordered sequence, collection timestamp, series branch identifier, voltage drop difference to be verified, and other data from the transaction data into the latest block of the blockchain ledger. At the same time, the transaction status of the transaction is marked as verified and the notarization process is completed.

[0064] If the voltage drop difference to be verified is not within the range formed by the upper and lower thresholds, the smart contract determines that the operation and maintenance data corresponding to the current transaction data is abnormal, possibly indicating data tampering or a single power supply hardware failure. The smart contract refuses to write the root hash to the blockchain ledger and generates an abnormal alarm transaction containing an ordered sequence. The abnormal alarm transaction is a standardized blockchain transaction, containing the transaction hash of the original transaction data, the ordered sequence, the collection timestamp, the serial branch identifier, the voltage drop difference to be verified, and the abnormal determination timestamp. After the abnormal alarm transaction is generated, the smart contract sends it to the blockchain consensus network and associates the transaction hash of the abnormal alarm transaction with the transaction hash of the original transaction data, writing it into the smart contract's storage space. The hash calculation formula for the abnormal alarm transaction is as follows: ; in, The transaction hash of the abnormal alarm transaction. This refers to transaction data for transactions that trigger abnormal alerts.

[0065] The process of associated storage involves writing the transaction hash of the original transaction as the key and the transaction hash of the anomaly alert transaction as the value into the contract's storage space mapping table. This allows for quick retrieval of the corresponding anomaly alert transaction using the transaction hash of the original transaction, achieving on-chain source tracing of abnormal data. The mapping formula for associated storage is as follows: ; in, This is a mapping table for abnormal transactions in the smart contract storage space. This is the transaction hash of the original transaction data.

[0066] At the same time, the smart contract pushes the abnormal alarm transaction to all account addresses in the abnormal alarm receiving address list stored in the contract storage space, so that relevant operation and maintenance personnel can receive abnormal alarm information in a timely manner.

[0067] In this embodiment, transaction data is verified by wallet signature via smart contracts, ensuring the legality of the data source. The ordered sequence is parsed using a parsing rule that reverses the local generation process, ensuring consistency in the voltage drop difference recalculation process. Physical consistency verification of the maintenance data is achieved through a preset physical threshold range. When the voltage drop difference to be verified exceeds the threshold range, the smart contract generates an abnormal alarm transaction and associates the alarm transaction hash with the original transaction hash for storage. This enables on-chain source tracing of abnormal maintenance data, allowing maintenance personnel to quickly locate faults or tampering events based on on-chain abnormal data, thus improving the reliability of series-connected backup power supply maintenance management.

Claims

1. A blockchain-based method for storing maintenance data of serial backup power supplies, characterized in that: include: Collect real-time operation and maintenance voltage and internal resistance data of each individual power supply in a series-connected backup power supply. Based on the physical position order of each individual power supply in the series branch, the operation and maintenance data of the N individual power supplies at the current moment are constructed into an ordered sequence. The operating voltage of the preceding and subsequent power supplies in the ordered sequence is calculated by summing them according to Kirchhoff's voltage law to obtain the theoretical total voltage drop. The difference between the theoretical total voltage drop and the measured total voltage drop of the series branch is calculated to obtain the voltage drop difference value, which is then used as a constraint factor. The constraint factors, together with the ordered sequence, are used as input data to form the leaf nodes of the local Merkle tree, and the root hash of the local Merkle tree is calculated. Broadcast the transaction data containing the root hash to the blockchain consensus network; The nodes in the blockchain consensus network execute a preset smart contract, parse the ordered sequence in the transaction data and recalculate the voltage drop difference. When the recalculated voltage drop difference is within a preset physical threshold range, the root hash is written into the blockchain ledger.

2. The blockchain-based serial backup power supply operation and maintenance data storage method according to claim 1, characterized in that, The step involves constructing an ordered sequence of operation and maintenance data for the N individual power supplies at the current moment based on their physical location order within the series branch, including: Read the pre-configured series branch topology configuration table, which records the series branch identifier, the number N of individual power supplies contained in the series branch, and the physical slot number corresponding to each individual power supply. The maintenance voltage and internal resistance data of the N individual power supplies are sorted in ascending order of the physical slot number. The sorted N maintenance voltage and N internal resistance data are alternately spliced ​​to generate an ordered array with voltage-internal resistance as the basic unit; The serial branch identifier and the current time stamp are added to the head of the ordered array to generate the ordered sequence.

3. The blockchain-based method for storing maintenance data of serial backup power supplies according to claim 1, characterized in that, The operating voltages of the preceding and subsequent power supplies in the ordered sequence are summed according to Kirchhoff's voltage law to obtain the theoretical total voltage drop, including: Extract N maintenance voltages from the ordered sequence; The N maintenance voltages are added sequentially according to their physical locations to obtain the voltage sum. Extract the positive bus voltage and negative bus voltage of the series branch, and subtract the negative bus voltage from the positive bus voltage to obtain the measured total voltage drop; Calculate the absolute value of the difference between the accumulated voltage and the measured total voltage drop, and determine the absolute value of the difference as the voltage drop difference.

4. The blockchain-based method for storing maintenance data of serial backup power supplies according to claim 1, characterized in that, Using the constraint factors along with the ordered sequence as input data, the leaf nodes of the local Merkle tree are constructed, including: Convert the constraint factor into a fixed-length binary string; The binary string is appended to the end of the ordered sequence to generate a data string to be hashed; The initial hash value is calculated by calling a preset hash function on the data string to be hashed. The initial hash value is encapsulated into a leaf node object with a preset data structure. The leaf node object contains the initial hash value, the timestamp of the current time, and the physical slot number range identifier of the serial branch.

5. The blockchain-based method for storing maintenance data of serial backup power supplies according to claim 2, characterized in that, Broadcasting transaction data containing the root hash to the blockchain consensus network includes: The wallet private key corresponding to the local Merkle tree is used to digitally sign the root hash to obtain signature data. The root hash, the signature data, the wallet address corresponding to the local Merkle tree, the serial branch identifier, and the preset smart contract address are encapsulated into a transaction body; Assign an incrementing transaction counter value to the transaction body; The transaction body carrying the transaction counter value is serialized into a data packet conforming to the blockchain consensus network communication protocol, and the data packet is sent to the adjacent consensus node in the blockchain consensus network.

6. The blockchain-based method for storing maintenance data of serial backup power supplies according to claim 1, characterized in that, Nodes in the blockchain consensus network execute preset smart contracts to parse the ordered sequence in the transaction data and recalculate the pressure drop difference, including: After receiving the transaction data, the preset smart contract uses the preset wallet public key to verify the signature data in the transaction data. After the signature verification is successful, the ordered sequence is extracted from the transaction data; According to the parsing rules that are the reverse of the ordered sequence generation process, N maintenance voltages are separated from the ordered sequence; The N separated maintenance voltages are summed up, and combined with the measured total voltage drop carried in the transaction data, the voltage drop difference to be verified is recalculated.

7. The blockchain-based method for storing maintenance data of serial backup power supplies according to claim 2, characterized in that, The generation and updating process of the series branch topology configuration table includes: When the series-type backup power supply is powered on for the first time, it sends an address allocation command to each individual power supply in the series branch. Receive response messages from each individual power supply and assign physical slot numbers to each individual power supply in the order in which the response messages arrive. Monitor whether a single power supply plug-in event occurs in the series branch; If the single power supply plugging / unplugging event is detected, a reallocation process is triggered, the address allocation instruction is resent to all currently connected single power supplies, the physical slot number is updated, and the updated physical slot number is synchronously written into the series branch topology configuration table.

8. The blockchain-based method for storing maintenance data of serial backup power supplies according to claim 3, characterized in that, After obtaining the measured total voltage drop, the method further includes: Extract N internal resistance data from the ordered sequence; Obtain the operating current value of the series branch at the current moment; Multiply the internal resistance data corresponding to each individual power supply with the operating current value to obtain N individual voltage drop compensation values. The total internal resistance voltage drop compensation value is obtained by summing the N individual unit voltage drop compensation values. Add the internal resistance total voltage drop compensation value to the measured total voltage drop to obtain the corrected measured total voltage drop; The absolute value of the difference between the calculated voltage sum and the corrected measured total voltage drop is determined as the voltage drop difference.

9. The blockchain-based method for storing maintenance data of serial backup power supplies according to claim 4, characterized in that, After obtaining the initial hash value through calculation, the process also includes: Obtain the locally stored device hardware private key; The initial hash value is encrypted using the device's hardware private key to generate a hardware signature string; The hardware signature string is appended to the back end of the initial hash value to generate an extended hash field; The step of encapsulating the initial hash value into a leaf node object with a preset data structure includes: The extended hash field is encapsulated into a leaf node object with the preset data structure. The leaf node object includes the extended hash field, the timestamp of the current time, and the physical slot number range identifier of the serial branch.

10. The blockchain-based method for storing maintenance data of serial backup power supplies according to claim 6, characterized in that, After recalculating the voltage drop difference value to be verified, the process also includes: Read the upper and lower limits of the preset physical threshold range from the storage space of the preset smart contract; Determine whether the voltage drop difference to be verified is within the interval formed by the upper threshold and the lower threshold; If the pressure drop difference to be verified is not within the range, the preset smart contract generates an abnormal alarm transaction containing the ordered sequence. The abnormal alarm transaction is sent to the blockchain consensus network, and the transaction hash of the abnormal alarm transaction is associated with the transaction hash of the transaction data and stored together.