CN-122027161-A - Power consumption information recording method and device and aircraft
Abstract
The invention relates to the technical field of aircrafts, and provides an electricity consumption information recording method and device and an aircraft. The method comprises the steps of collecting power utilization information of electric equipment, signing the power utilization information, recording the power utilization information in a buffer area, carrying out hash aggregation on all the power utilization information recorded in the buffer area and signature information thereof when a first uplink condition is met to obtain an aggregate hash value, generating a first block corresponding to the recorded power utilization information in the buffer area according to the aggregate hash value, uploading the first block to a first block chain network of an edge power distribution unit through a first consensus mechanism, aggregating the aggregate hash value of the uploaded first block to obtain a secondary aggregate hash value, sending the secondary aggregate hash value to a central computing unit, and uploading a second block comprising the secondary aggregate hash value to a second block chain network of the central computing unit through a second consensus mechanism when a second uplink condition is met by central computing. The invention can give consideration to the real-time requirement and the integrity requirement of the electricity consumption information record.
Inventors
- SU QINGPENG
- TIAN CHONGWEN
- CAO CHI
Assignees
- 广东高域科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251223
Claims (10)
- 1. An electricity consumption information recording method, which is suitable for an edge power distribution unit of an aircraft, is characterized by comprising the following steps: Collecting electricity consumption information of electric equipment, signing the electricity consumption information, and recording the signature to a buffer area; when the first chain feeding piece is met, carrying out hash aggregation on each piece of electricity consumption information and signature information thereof recorded in the buffer area to obtain an aggregate hash value; Generating a first block corresponding to the recorded electricity information in the buffer area according to the aggregated hash value, and uplink the first block to a first block chain network to which the edge distribution unit belongs through a first consensus mechanism; Aggregating the aggregated hash value of the first block which is already uplink to obtain a secondary aggregated hash value, sending the secondary aggregated hash value to a central computing unit, and when the central computing unit meets a second uplink condition, uplink a second block containing the secondary aggregated hash value to a second block chain network to which the central computing unit belongs through a second consensus mechanism.
- 2. The method of claim 1, wherein the first consensus mechanism has a higher consensus efficiency than the second consensus mechanism, but the first consensus mechanism has a lower security than the second consensus mechanism.
- 3. The method for recording electricity consumption information according to claim 1, wherein signing the electricity consumption information and recording the same in a buffer area comprises: and acquiring a private key from the hardware security module of the aircraft, signing the electricity consumption information according to the private key, and recording the signed electricity consumption information to the buffer area.
- 4. The electricity consumption information recording method according to claim 3, wherein the recording of the signed electricity consumption information to the buffer area includes: the local recording time of the electricity consumption information is sent to a fusion time module of the aircraft, and the local recording time is used for the fusion time module to combine local recording time from other edge power distribution units and reference time from an external time source to generate global synchronous time in a fusion mode; And receiving the global synchronization time returned by the fusion time module, and storing the signed electricity consumption and the global synchronization time in the buffer area in an associated mode.
- 5. The method of claim 4, wherein the external time sources include at least two different types of time sources.
- 6. A method of recording electricity usage in a central computing unit of an aircraft, comprising: Receiving a secondary aggregation hash value from an edge power distribution unit, wherein the secondary aggregation hash value is obtained by aggregating the edge power distribution unit based on an aggregation hash value which is already uplink to a first block of a first blockchain network to which the edge power distribution unit belongs, the first block is generated by the edge power distribution unit according to the aggregation hash value and signed power utilization information of electric equipment recorded in a self cache region, and is uplink to a real-time first blockchain network through a first consensus mechanism when a first uplink condition is met, and the aggregation hash value is obtained by performing hash aggregation on the signed power utilization information recorded in the cache region by the edge power distribution unit; and when the second uplink condition is met, the second block containing the secondary aggregation hash value is uplink to a second block chain network to which the central computing unit belongs through a second consensus mechanism.
- 7. The method for recording electricity consumption according to claim 6, further comprising, when a second uplink condition is satisfied, after uplink a second block containing the secondary aggregated hash value to a second blockchain network to which the central computing unit belongs by a second consensus mechanism: Receiving an audit request from an audit terminal, and determining a target secondary aggregation hash value indicated by the audit request; And returning the target secondary aggregation hash value to the auditing end, wherein the target secondary aggregation hash value is used for auditing the electricity utilization information of the corresponding first block by the auditing end.
- 8. An electricity consumption information recording device is applicable to the marginal distribution unit of aircraft, characterized in that includes: the information recording module is used for collecting the electricity consumption information of the electric equipment, signing the electricity consumption information and recording the signed electricity consumption information to the buffer area; The hash aggregation module is used for carrying out hash aggregation on each piece of electricity consumption information and signature information thereof recorded in the buffer area when the first uplink chain piece is met, so as to obtain an aggregate hash value; The first uplink module is used for generating a first block corresponding to the recorded electricity information in the buffer area according to the aggregation hash value, and uplink the first block to a first block chain network to which the edge distribution unit belongs through a first consensus mechanism; And the secondary aggregation module is used for aggregating the aggregation hash value of the first block which is already uplink to obtain a secondary aggregation hash value, sending the secondary aggregation hash value to the central computing unit, and uploading a second block containing the secondary aggregation hash value to a second block chain network which the central computing unit belongs to through a second consensus mechanism when the central computing unit meets a second uplink condition.
- 9. An electricity consumption information recording apparatus, characterized by comprising: The information receiving module is used for receiving a secondary aggregation hash value from the edge power distribution unit, the secondary aggregation hash value is obtained by aggregating the edge power distribution unit based on the aggregation hash value which is already uplink to a first block of a first blockchain network to which the edge power distribution unit belongs, the first block is generated by the edge power distribution unit according to the aggregation hash value and signed power consumption information of electric equipment recorded in a self cache region, and the first block chain network is uplink to a real-time first blockchain network through a first consensus mechanism when a first uplink condition is met, and the aggregation hash value is obtained by hashing and aggregating the signed power consumption information recorded in the cache region by the edge power distribution unit; And the second uplink module is used for uplink the second block containing the secondary aggregation hash value to a second block chain network to which the central computing unit belongs through a second consensus mechanism when a second uplink condition is met.
- 10. An air-craft having the function of a vehicle, characterized by comprising the following steps: A body; the driving mechanism is used for driving the body to fly; the memory is arranged on the body and used for storing a computer program; An edge power distribution unit, disposed on the body, for executing the computer program to implement the electricity consumption recording method of any one of claims 1 to 5; A central computing unit, configured to execute the computer program to implement the electricity consumption recording method according to claim 6 or 7.
Description
Power consumption information recording method and device and aircraft Technical Field The invention relates to the technical field of aircrafts, in particular to an electricity consumption information recording method, an electricity consumption information recording device and an aircraft. Background The aircraft is an air carrier capable of independently flying or remotely flying, and is widely applied to the fields of aerial photography, mapping, logistics, inspection and the like. As a new type of aircraft that relies on electric drives to achieve vertical take-off and cruise flight, electric vertical take-off and landing aircraft have low voltage power distribution systems that are mission critical high severity systems, and faults are often categorized as catastrophic or dangerous. The airworthiness certification requires high-precision and non-tamperable data capture and reservation of power consumption information such as voltage, current and the like of the power system so as to ensure traceability and auditability when faults occur. However, in the prior art, real-time performance and integrity are difficult to be considered in the data recording process, so that the data credibility is reduced during audit tracing. Disclosure of Invention The invention provides an electricity consumption information recording method, an electricity consumption information recording device and an aircraft, which can consider the real-time requirement and the integrity requirement of the electricity consumption information recording. In a first aspect, the present invention provides a method for recording electricity consumption of an edge distribution unit of an aircraft, including: acquiring the current distance between the aircraft and the landing target; Collecting electricity consumption information of electric equipment, signing the electricity consumption information, and recording the signature to a buffer area; when the first chain feeding piece is met, carrying out hash aggregation on each piece of electricity consumption information and signature information thereof recorded in the buffer area to obtain an aggregate hash value; generating a first block corresponding to the recorded electricity information in the buffer area according to the aggregated hash value, and uploading the first block to a first block chain network to which the edge power distribution unit belongs through a first consensus mechanism; And aggregating the aggregated hash value of the first block which is already uplink to obtain a secondary aggregated hash value, sending the secondary aggregated hash value to a central computing unit, and uploading a second block containing the secondary aggregated hash value to a second block chain network which the central computing unit belongs to through a second consensus mechanism when the central computing unit meets a second uplink condition. In a second aspect, the present invention provides an electricity consumption recording method for a central computing unit of an aircraft, including: Receiving a secondary aggregation hash value from an edge power distribution unit, wherein the secondary aggregation hash value is obtained by aggregating the edge power distribution unit based on an aggregation hash value which is already uplink to a first block of a first block chain network to which the edge power distribution unit belongs, the first block is generated by the edge power distribution unit according to the aggregation hash value and signed power utilization information of electric equipment recorded in a self cache region, and is uplink to a real-time first block chain network through a first consensus mechanism when a first uplink condition is met, and the aggregation hash value is obtained by hashing and aggregating the signed power utilization information recorded in the cache region by the edge power distribution unit; And when the second uplink condition is met, the second block containing the secondary aggregation hash value is uplink to a second block chain network to which the central computing unit belongs through a second consensus mechanism. In a third aspect, the present invention provides an electricity consumption recording device for an edge distribution unit of an aircraft, comprising: the information recording module is used for collecting the electricity consumption information of the electric equipment, signing the electricity consumption information and recording the signed electricity consumption information to the buffer area; The hash aggregation module is used for carrying out hash aggregation on each piece of electricity consumption information and signature information thereof recorded in the buffer area when the first uplink chain piece is met, so as to obtain an aggregate hash value; the first uplink module is used for generating a first block corresponding to the recorded electricity information in the buffer according to the aggregated hash value, and upli