A distributed unmanned mobile platform energy monitoring and management method
Through the blockchain structure and charging protocol, combined with sensor network, the problem of low energy management efficiency of distributed unmanned mobile platforms is solved, intelligent and efficient energy monitoring and task decision-making are achieved, and task timeliness and reliability are ensured.
Patent Information
- Application Number
- CN202410218441.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-02-28
AI Technical Summary
The traditional distributed unmanned mobile platform energy management methods are inefficient, difficult to coordinate and predict, affecting the efficient and intelligent operation and sustainable development of the platform.
Adopt blockchain-based energy monitoring and management methods, by configuring the blockchain architecture, introducing charging protocols, deploying sensors on each unmanned mobile platform, sensing the environment and energy state in real time, and utilizing improved consistency algorithms and charging Protocols for energy transactions and task scheduling.
It improves energy utilization efficiency, ensures task timeliness, provides intelligent, efficient and safe energy monitoring and task decision-making, and enhances the reliability and unpredictability of decision-making.
Smart Images

Figure CN117901673B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distributed unmanned mobile platform energy monitoring, and in particular to a distributed unmanned mobile platform energy monitoring management method. Background Art
[0002] Distributed unmanned mobile platforms, referred to as unmanned mobile platforms, include but are not limited to autonomous vehicles, robots, drones, etc. These platforms have autonomous movement capabilities and are widely used in logistics, transportation, agriculture and other fields, providing great convenience for production and life. However, with the widespread use of distributed unmanned mobile platforms outdoors, real-time energy monitoring and management are required, and their energy management issues are becoming increasingly prominent. Traditional energy management methods face challenges such as inefficiency, difficulty in coordination, and difficulty in prediction. These challenges pose a threat to achieving efficient and intelligent operation of the platform and ensuring sustainable development.
[0003] Distributed unmanned mobile platforms are equipped with multiple types of sensors to sense the environment around the platform and the energy status of the built-in battery in real time. These sensors provide real-time and accurate data, providing basic support for energy monitoring and management. It is very necessary to combine sensor networks with real-time monitoring and management of distributed unmanned mobile platforms to provide a distributed unmanned mobile platform energy monitoring and management method to improve data security, transparency and energy efficiency. Summary of the invention
[0004] In view of this, the present invention proposes a distributed unmanned mobile platform energy monitoring and management method based on a blockchain structure with high security and reliability.
[0005] The technical solution of the present invention is implemented as follows: The present invention provides a distributed unmanned mobile platform energy monitoring and management method, comprising the following steps:
[0006] S1: Configure the blockchain architecture;
[0007] S2: Introducing charging protocol on the blockchain architecture; the charging protocol is used to perform energy transactions and task scheduling of unmanned mobile platforms;
[0008] S3: Deploy several sensors on each unmanned mobile platform to sense the surrounding environment of the unmanned mobile platform, generate environmental information and obtain energy consumption information; set the same data collection frequency for several sensors on each unmanned mobile platform; transmit environmental information and energy consumption information to the blockchain using a real-time data transmission mechanism; before sending, the unmanned mobile platform also unifies the format of environmental information and energy consumption information to facilitate correct parsing and storage by the blockchain;
[0009] S4: Each unmanned mobile platform executes the charging protocol on the blockchain according to the improved consistency algorithm. Each unmanned mobile platform performs timed or quantitative charging according to the recommended location, and maintains or changes the tasks of the unmanned mobile platform.
[0010] On the basis of the above technical scheme, preferably, the architecture of configuring the blockchain described in step S1 is that the blockchain includes several independent blocks, each block includes a block header and transaction information; the block header is used to store the hash value of the previous level block of the current block, the first timestamp, the hash value of the next block and the consistency proof information; wherein: the hash value of the previous level block of the current block is the hash value of the previous block linked to the current block; the first timestamp records the generation time of the current block or the end time of the most recent successful completion of the verification; the hash value of the next block is the hash value of the next block after the current block is linked; the consistency proof information is to serialize the contents of the hash value of the previous level block of the current block, the first timestamp and the hash value of the next block in sequence to obtain a complete byte string, use the set hash function to calculate the hash value of the complete byte string, and arrange the name of the hash function and the calculated hash value of the complete byte string in sequence as the content of the consistency proof information and save it in the block header; the transaction information includes energy data, platform identification, second timestamp and related identification information.
[0011] Preferably, the transaction information includes energy data, platform identification, a second timestamp and related identification information, wherein the energy data stores the current world time, the pre-purchased first energy quota of the owner of the unmanned mobile platform under the current world time, and the second energy quota allowed for overdraft; the platform identification is used to distinguish the owner of the unmanned mobile platform; the second timestamp records the time of the most recent successful completion of the energy transaction in the current block, including the energy recharge time, the energy overdraft time or the start and end time of the energy consumption of the unmanned mobile platform; the related identification information includes the code of the unmanned mobile platform for ongoing energy transactions within a period of time, the code of the unmanned mobile platform for completed energy transactions and the number of the task being executed.
[0012] Further preferably, the charging protocol described in step S2 is used to perform energy trading and task scheduling of the unmanned mobile platform, wherein the energy trading is to guide the unmanned mobile platform to automatically find the nearest energy charging station when it is detected that the real-time power of the unmanned mobile platform is low, and interact with the energy charging station to realize decentralized trading;
[0013] The task scheduling of the unmanned mobile platform is to estimate the length of the path that the unmanned mobile platform continues to travel with the target of the task according to the task currently executed by the unmanned mobile platform and the remaining power, and judge whether the length of the path that the unmanned mobile platform continues to travel meets the requirements of the task round trip, and selectively execute the following strategies: 1) The current unmanned mobile platform continues to move with the target of the task until the current task is completed; 2) The current unmanned mobile platform carries the target of the task for charging, and continues to execute the current task after charging is completed; 3) Terminate the execution of the current task, unload the target of the task for charging, and let other idle unmanned mobile platforms or unmanned mobile platforms whose continuing path length meets the requirements of the task round trip execute the current task; 4) The current unmanned mobile platform exchanges the target and task of the task with other unmanned mobile platforms, and respectively executes the exchanged tasks.
[0014] Further preferably, the step S3 described in which a number of sensors are deployed on each unmanned mobile platform for sensing the surrounding environment of the unmanned mobile platform, generating environmental information and obtaining energy consumption information is to configure a laser radar, a camera, a battery temperature sensor, a voltage sensor and a positioning device on each unmanned mobile platform; the laser radar and the camera are used to obtain the surrounding environment of the unmanned mobile platform and avoid obstacles during movement; the battery temperature sensor and the voltage sensor are used to monitor the unmanned mobile platform to obtain the temperature of the built-in battery and estimate the remaining power; the positioning device is used to obtain the real-time position of the current unmanned mobile platform; the unmanned mobile platform obtains the surrounding environment and the real-time position to jointly generate environmental information; the unmanned mobile platform obtains energy consumption information based on the temperature of the built-in battery and the estimated remaining power.
[0015] Still further preferably, the unmanned mobile platform obtains the energy consumption information according to the temperature of the built-in battery and the estimated remaining power, and obtains the remaining capacity of the built-in battery according to the starting voltage of each charging of the unmanned mobile platform: Where η is the remaining capacity of the built-in battery of the unmanned mobile platform; k is the scaling factor; N is the theoretical maximum number of cycles of the built-in battery of the unmanned mobile platform; η 0 is the rated capacity; n is the cumulative number of cycles of the built-in battery of the unmanned mobile platform, Among them U 100% is the rated voltage of the built-in battery of the unmanned mobile platform, U 80% The initial charging voltage is not more than 80% of the rated voltage, U 60% The initial charging voltage is not more than 60% of the rated voltage, U 40% is the initial charging voltage not exceeding 40% of the rated voltage, A, B and C are the charging times corresponding to the initial charging voltage not exceeding 80%, not exceeding 60% and not exceeding 40% of the rated voltage, respectively, and all are integers; D is a constant correction term.
[0016] Further preferably, in the task scheduling of the unmanned mobile platform, it is determined whether the length of the path that the unmanned mobile platform continues to travel meets the requirements of the task round trip, and the selective execution strategy needs to meet the following conditions: 1) According to the remaining capacity of the built-in battery of the unmanned mobile platform, the maximum moving distance L of the unmanned mobile platform is determined: Where L 0 is the maximum moving distance corresponding to the rated capacity;
[0017] 2) Obtain the round-trip path length S of the destination of the task currently being performed by the unmanned mobile platform. If the moving distance corresponding to the current power of the unmanned mobile platform is L 1 , satisfying L ≥ L 1 >S, and the round-trip path to the destination of the currently executed task passes through an energy charging station, then the current unmanned mobile platform directly executes the current task with the task target; if the round-trip path does not directly pass through an energy charging station, it is necessary to ensure that after executing the current task, the unmanned mobile platform can reach the energy charging station closest to the starting position;
[0018] 3) If the round-trip path length of the destination of the task currently being performed by the unmanned mobile platform is L≥S>L 1 , the round-trip route to the destination of the currently executed task passes through an energy charging station, and no other unmanned mobile platforms pass by within a certain distance and time range nearby, then the unmanned mobile platform carries the task target for charging. After charging is completed, the transaction information is updated and sent to the blockchain, and the current task continues to be executed;
[0019] 4) If the round-trip path length S>L≥L of the destination of the task currently performed by the unmanned mobile platform 1 , indicating that the maximum moving distance of the unmanned mobile platform corresponding to the estimated remaining power cannot complete the current task, and the unmanned mobile platform is not suitable for performing the current task; the unmanned mobile platform shares the task through the blockchain, and the owner of the unmanned mobile platform dispatches other unmanned mobile platforms within a certain area to assist. The other unmanned mobile platforms suspend the current task and reach the nearest energy charging station of the current unmanned mobile platform. The two unmanned mobile platforms converge and exchange the task targets and tasks. The two unmanned mobile platforms each update the relevant identification information in the transaction information and send the updated transaction information to the blockchain;
[0020] 5) If the remaining power of the unmanned mobile platform does not exceed 20% after completing the task, it will directly go to the nearest energy charging station for charging, update the transaction information and send the transaction information to the blockchain.
[0021] Further preferably, the value of the scaling factor k is related to the size of the cumulative number of cycles n of the built-in battery of the unmanned mobile platform; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (0, 100], the value of the scaling factor k is 1; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (100, 350], the value of the scaling factor k is 0.96; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (350, 800], the value of the scaling factor k is 0.94; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is greater than 800, the value of the scaling factor k is 0.9.
[0022] Preferably, the energy data stores the current world time, as well as the pre-deposited first energy quota and the second energy quota that is allowed to be overdrawn by the owner of the unmanned mobile platform at the current world time. The balance of the first energy quota obtained by the current owner of the unmanned mobile platform through pre-charge is updated and saved in real time in the blockchain; the current owner of the unmanned mobile platform obtains the second energy quota that is allowed to be overdrawn by consuming the accumulated amount, and the second energy quota is obtained according to a certain proportion of the accumulated pre-deposited first energy quota of the owner of the unmanned mobile platform, so as to avoid the situation where the balance of the first energy quota obtained through the pre-charge is consumed, resulting in the current unmanned mobile platform being unable to charge and affecting the execution of the task.
[0023] On the basis of the above technical solution, preferably, each unmanned mobile platform described in step S4 executes the charging protocol on the blockchain according to the improved consistency algorithm, which specifically includes the following contents:
[0024] 1) For unmanned mobile platforms belonging to the same owner, the environmental information and energy consumption information input into any block of the blockchain are the same;
[0025] 2) Introduce a temporary table to temporarily store the environmental information and energy consumption information sent by the unmanned mobile platform received by the block; the information in the temporary table will not spread to other blocks;
[0026] 3) Private key signature verification: The blockchain detects the private key signatures of each block that has a mutual link relationship to ensure that the private key signatures of each block exist and are valid;
[0027] 4) A strongly encrypted random number generator is introduced. All blocks participating in the consensus mechanism use a strongly encrypted random number generator to generate random numbers.
[0028] 5) Establish a permanent form and move data. When all blocks are verified by private key signature and generate legal random numbers, the blockchain has passed the consistency verification. The information temporarily stored in the temporary form is moved to the permanent form for storage, and the content of the temporary form is reset.
[0029] The distributed unmanned mobile platform energy monitoring and management method provided by the present invention has the following beneficial effects compared with the prior art:
[0030] (1) This application integrates blockchain, charging protocols and sensors of unmanned mobile platforms to provide intelligent, efficient and secure energy monitoring and task decision-making for unmanned mobile platforms. The overall goal is to minimize the impact of charging time caused by energy transactions on task targets, thereby meeting the timeliness requirements for tasks;
[0031] (2) This application estimates the moving distance corresponding to the current power consumption, integrates the round-trip distance of the task destination, and selects a suitable unmanned mobile platform to perform the task, ensuring that the task is completed reliably;
[0032] (3) Blockchain is decentralized and unalterable. It can ensure the reliability of decisions and increase the unpredictability of the consensus mechanism through distributed storage of permanent forms, consensus decision-making and private key signature verification mechanisms. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 The present invention is a flowchart of the steps of a distributed unmanned mobile platform energy monitoring and management method. DETAILED DESCRIPTION
[0035] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] Example: Figure 1 As shown, the present invention provides a distributed unmanned mobile platform energy monitoring and management method, comprising the following steps:
[0037] S1: Configure the blockchain architecture.
[0038] Specifically, the blockchain includes several independent blocks, each of which includes a block header and transaction information; the block header is used to store the hash value of the previous block, the first timestamp, the hash value of the next block and the consistency proof information, where:
[0039] The hash value of the previous block of the current block is the hash value of the previous block linked to the current block; if the previous block does not exist for the current block, this part is filled with preset special characters;
[0040] The first timestamp records the current block generation time or the end time of the most recent successful verification. The first timestamp is used to verify that the current block is active and can be linked to. The end time of the most recent successful verification cannot be greater than a number of preset periods, each of which can be a time unit such as one day or one week.
[0041] The hash value of the next block is the hash value of the next block linked to the current block;
[0042] The consistency proof information is to serialize the hash value of the previous level block of the current block, the first timestamp and the hash value of the next block in order to obtain a complete byte string, use the set hash function to calculate the hash value of the complete byte string, and arrange the name of the hash function and the hash value of the calculated complete byte string in order as the content of the consistency proof information and save it in the block header; when different blocks are used at the same time, the content of the string corresponding to the corresponding consistency proof information in different blocks with adjacent link relationships should be the same, such as the hash value of the next block recorded in the block header of the current block should correspond to the hash value corresponding to the byte string content of the block header of the next block linked to the current block.
[0043] The transaction information includes energy data, platform identification, second timestamp and related identification information; among which,
[0044] The energy data stores the current world time, as well as the first energy quota pre-purchased by the owner of the unmanned mobile platform at the current world time, and the second energy quota that is allowed to be overdrawn;
[0045] The platform identifier is used to distinguish the owner of the unmanned mobile platform; the second timestamp records the time of the most recent successful energy transaction in the current block, including the energy recharge time, energy overdraft time, or the start and end time of the energy consumption of the unmanned mobile platform;
[0046] The relevant identification information includes the codes of the unmanned mobile platforms for ongoing energy transactions within a period of time, the codes of the unmanned mobile platforms for completed energy transactions, and the numbers of the tasks being executed. An unmanned mobile platform can execute one or more tasks on the same path, so the codes of the unmanned mobile platforms in use correspond to the numbers of the tasks executed by the unmanned mobile platforms in a one-to-one or one-to-many relationship. For example, the task in this embodiment can be a courier delivery task.
[0047] The first energy quota in the energy data, and the second energy quota that is allowed to be overdrawn, are the balance of the first energy quota obtained by the current owner of the unmanned mobile platform through pre-charge, which is updated and saved in real time in the blockchain; the current owner of the unmanned mobile platform obtains the second energy quota that is allowed to be overdrawn by consuming the accumulated amount, and the second energy quota is obtained according to a certain proportion of the first energy quota accumulated and pre-deposited by the owner of the unmanned mobile platform, so as to avoid the balance of the first energy quota obtained by the pre-charge method being consumed, resulting in the current unmanned mobile platform being unable to charge and affecting the smooth execution of the task.
[0048] S2: Introduce a charging protocol on the blockchain architecture; the charging protocol is used to perform energy transactions and task scheduling of unmanned mobile platforms.
[0049] Among them, energy trading is to detect that when the real-time power of the unmanned mobile platform is low, guide the unmanned mobile platform to automatically find the nearest energy charging station, and interact with the energy charging station to realize decentralized transactions.
[0050] The charging protocol here is a protocol that runs automatically on the blockchain. The specific implementation process of energy trading is that the owner of the unmanned mobile platform pre-pays and recharges in advance to purchase a certain amount of electricity so that each unmanned mobile platform can reach the energy charging station for charging when the battery is low. As long as the battery of the unmanned mobile platform meets the charging standards of the energy charging station and has sufficient prepaid balance, the energy transaction can proceed smoothly. By recording the electricity consumed by the energy transaction, or recording the start and end time of the energy transaction to calculate the electricity obtained, the prepaid deduction can be completed according to the peak and valley electricity price corresponding to the energy transaction. The transaction information is recorded in the unmanned mobile platform and the energy charging station respectively. The content of the relevant information of the energy transaction remains consistent and is sent to the blockchain by the unmanned mobile platform and the energy charging station respectively.
[0051] The task scheduling of the unmanned mobile platform is to estimate the length of the path that the unmanned mobile platform continues to travel with the target of the task according to the task currently executed by the unmanned mobile platform and the remaining power, and judge whether the length of the path that the unmanned mobile platform continues to travel meets the requirements of the task round trip, and selectively execute the following strategies: 1) The current unmanned mobile platform continues to move with the target of the task until the current task is completed; 2) The current unmanned mobile platform carries the target of the task for charging, and continues to execute the current task after charging is completed; 3) Terminate the execution of the current task, unload the target of the task for charging, and let other idle unmanned mobile platforms or unmanned mobile platforms whose continuing path length meets the requirements of the task round trip execute the current task; 4) The current unmanned mobile platform exchanges the target and task of the task with other unmanned mobile platforms, and respectively executes the exchanged tasks.
[0052] The goal of task scheduling is to ensure that during the operation of the unmanned mobile platform, such as the 8:00-19:00 period every day, when executing the corresponding task, the cumulative delay time caused by energy trading is minimized, that is, the timeliness of the task is the top priority. If the current unmanned mobile platform has insufficient remaining power, the unmanned mobile platform can be charged as needed, the target of the task can be temporarily stored at the energy charging station, and an unmanned mobile platform can be replaced to continue the task, so as to avoid the target of the task being in a state of waiting for charging for a long time, which affects the completion time of the task.
[0053] S3: Deploy several sensors on each unmanned mobile platform to sense the surrounding environment of the unmanned mobile platform, generate environmental information and obtain energy consumption information; set the same data collection frequency for several sensors on each unmanned mobile platform; the environmental information and energy consumption information are transmitted to the blockchain using a real-time data transmission mechanism; before sending, the unmanned mobile platform also unifies the format of the environmental information and energy consumption information to facilitate correct parsing and storage by the blockchain.
[0054] Specifically, each unmanned mobile platform is equipped with a laser radar, a camera, a battery temperature sensor, a voltage sensor and a positioning device; the laser radar and the camera are used to obtain the surrounding environment of the unmanned mobile platform and avoid obstacles during the movement; the battery temperature sensor and the voltage sensor are used to monitor the unmanned mobile platform to obtain the temperature of the built-in battery and estimate the remaining power; the positioning device, such as the GPS / GNSS / BDS navigation device, is used to obtain the real-time position of the current unmanned mobile platform; the unmanned mobile platform obtains the surrounding environment and the real-time position to jointly generate environmental information; the environmental information is used to locate the relative positions of different unmanned mobile platforms in real time; and the energy consumption information determines the method to be adopted for task scheduling of the unmanned mobile platform.
[0055] The unmanned mobile platform obtains energy consumption information based on the temperature of the built-in battery and the estimated remaining power. This is based on the accumulated charging-related information to estimate the current capacity of the built-in battery of the unmanned mobile platform, i.e., SOC. Specifically, the remaining capacity of the built-in battery is obtained based on the starting voltage of each charge of the unmanned mobile platform: Where η is the remaining capacity of the built-in battery of the unmanned mobile platform; k is the scaling factor; N is the theoretical maximum number of cycles of the built-in battery of the unmanned mobile platform; η 0 is the rated capacity; n is the cumulative number of cycles of the built-in battery of the unmanned mobile platform, Among them U 100% is the rated voltage of the built-in battery of the unmanned mobile platform, U 80% The initial charging voltage is not more than 80% of the rated voltage, U 60% The initial charging voltage is not more than 60% of the rated voltage, U 40% is the initial charging voltage not exceeding 40% of the rated voltage, A, B and C are the charging times corresponding to the initial charging voltage not exceeding 80%, not exceeding 60% and not exceeding 40% of the rated voltage, respectively, and all are integers; D is a constant correction term. By obtaining the voltage data at the start of charging, the range of battery capacity usage is calculated inversely, and the number of times the battery completes a complete discharge cycle is converted by accumulation, and then the relationship between the current number of discharge cycles and the theoretical maximum number of cycles is used to estimate whether the remaining capacity of the battery is healthy, so as to reasonably arrange long-distance tasks for unmanned mobile platforms.
[0056] In the formula for calculating the remaining capacity of the built-in battery of the unmanned mobile platform from the starting voltage of each charge, the value of the scaling factor k is related to the size of the cumulative number of cycles n of the built-in battery of the unmanned mobile platform; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (0, 100], the scaling factor k is 1; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (100, 350], the scaling factor k is 0.96; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (350, 800], the scaling factor k is 0.94; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is greater than 800, the scaling factor k is 0.9.
[0057] It is generally believed that if the maximum capacity of the battery is less than 80% of the rated capacity, it is considered that the number of cycles is large, the battery is aged, and it is not suitable for continued use or only short-distance tasks within a certain range around the energy charging station are arranged. In order to schedule the tasks of the unmanned mobile platform according to the charging protocol, it is necessary to confirm the relationship between the remaining endurance of the current unmanned mobile platform and the round-trip path length of the task destination, so as to achieve reasonable decision-making: The following conditions must be met: 1) According to the remaining capacity of the built-in battery of the unmanned mobile platform, the maximum moving distance L of the unmanned mobile platform is determined: Where L 0 The maximum moving distance corresponding to the rated capacity. Estimating the ratio between the unmanned mobile platform's cruising range and the maximum moving distance corresponding to the rated capacity based on the remaining capacity of the unmanned mobile platform's built-in battery is conducive to making reasonable decisions and leaving a certain safety margin for the unmanned mobile platform's round-trip movement.
[0058] 2) Obtain the round-trip path length S of the destination of the task currently being performed by the unmanned mobile platform. If the moving distance corresponding to the current power of the unmanned mobile platform is L 1 , satisfying L ≥ L 1 >S, and the round-trip path to the destination of the currently executed task passes through an energy charging station, the current unmanned mobile platform carries the task target and directly executes the current task; if the round-trip path does not directly pass through an energy charging station, it is necessary to ensure that after executing the current task, the unmanned mobile platform can reach the energy charging station nearest to the starting location; in this case, the unmanned mobile platform has sufficient power and does not need to be charged, and can directly execute the task, but it is necessary to ensure that there is enough range to reach the nearest energy charging station after returning, so as to execute the next task assigned by the blockchain.
[0059] 3) If the round-trip path length of the destination of the task currently being performed by the unmanned mobile platform is L≥S>L 1 , the round-trip route to the destination of the currently executed task passes through an energy charging station, and there are no other unmanned mobile platforms passing by within a certain distance and time range nearby, then the unmanned mobile platform carries the task target for charging. After charging is completed, the transaction information is updated and sent to the blockchain, and the current task continues to be executed; in this case, the current power is not enough to achieve a round trip, but it can be successfully round-trip after charging, but there is no condition for exchanging the task target, so it can only carry the task target for charging.
[0060] 4) If the round-trip path length S>L≥L of the destination of the task currently performed by the unmanned mobile platform 1, indicating that the maximum moving distance of the unmanned mobile platform corresponding to the estimated remaining power cannot complete the current task, and the unmanned mobile platform is not suitable for performing the current task; the unmanned mobile platform shares the task through the blockchain, and the owner of the unmanned mobile platform dispatches other unmanned mobile platforms within a certain area to assist. The other unmanned mobile platform suspends the current task and reaches the nearest energy charging station of the current unmanned mobile platform. The two unmanned mobile platforms converge and exchange the task subject and task. The two unmanned mobile platforms each update the relevant identification information in the transaction information and send the updated transaction information to the blockchain; assuming that the unmanned mobile platform E has insufficient range, but there is another unmanned mobile platform F with less battery capacity loss nearby, then the current task G of the unmanned mobile platform E is exchanged with the task H of the unmanned mobile platform F. Of course, the premise of task exchange is that the round-trip path length of task H cannot exceed the round-trip path length of task G. If the range of the unmanned mobile platform E is not suitable for the current task G after the task exchange, the unmanned mobile platform E will try to exchange task H with other nearby idle unmanned mobile platforms or unmanned mobile platforms passing the destination of task H while conducting energy trading. Under the premise of ensuring that all tasks are completed, the cumulative waiting time of each task due to charging is minimized.
[0061] As a special case, if S>L 0 , and the round-trip path length of the destination of the currently executed task crosses at least one energy charging station, it means that the current task may be allocated unreasonably and needs to be reallocated. Select an unmanned mobile platform near the energy charging station closest to the task target location and try to split the task. The unmanned mobile platform will transfer the task target between different energy charging stations until it reaches the energy charging station closest to the task target location. Then, the task will be reallocated or exchanged until the unmanned mobile platform's round-trip requirements for the task target location are met.
[0062] 5) If the remaining power of the unmanned mobile platform does not exceed 20% after completing the task, it will directly go to the nearest energy charging station for charging, update the transaction information and send the transaction information to the blockchain. Of course, if the unmanned mobile platform arrives at the energy charging station after 19:00 after completing the task, it can be charged during the off-peak period at night.
[0063] S4: Each unmanned mobile platform executes the charging protocol on the blockchain according to the improved consistency algorithm. Each unmanned mobile platform performs timed or quantitative charging according to the recommended location, and maintains or changes the tasks of the unmanned mobile platform.
[0064] Among them, the improved consistency algorithm executes the charging protocol, which specifically includes the following contents:
[0065] 1) For unmanned mobile platforms belonging to the same owner, the environmental information and energy consumption information input into any block of the blockchain are the same;
[0066] 2) Introduce a temporary table to temporarily store the environmental information and energy consumption information sent by the unmanned mobile platform received by the block; the information in the temporary table will not spread to other blocks;
[0067] 3) Private key signature verification: The blockchain detects the private key signatures of each block that has a mutual link relationship to ensure that the private key signatures of each block exist and are valid;
[0068] 4) A strongly encrypted random number generator is introduced. All blocks participating in the consensus mechanism use a strongly encrypted random number generator to generate random numbers.
[0069] 5) Establish a permanent form and move data. When all blocks are verified by private key signature and generate legal random numbers, the blockchain has passed the consistency verification. The information temporarily stored in the temporary form is moved to the permanent form for storage, and the content of the temporary form is reset.
[0070] This improved consensus algorithm increases data consistency and reliability; it introduces signature verification of participating block private keys. Only when the signatures of all private keys exist and are valid, the information in the temporary form will be diffused and copied to all blocks in the blockchain network, ensuring the security of data in the network. All blocks participating in the consensus mechanism use a strongly encrypted random number generator to generate random numbers, which increases the unpredictability of the consensus algorithm.
[0071] Based on the above improved consensus algorithm, a standard data transmission format is defined, as shown below:
[0072]
[0073]
[0074]
[0075] The timestamp1 field means the first timestamp, which corresponds to the current block generation time, or the end time of the most recent successful verification, that is, the time of successful energy transaction, in ISO8601 format;
[0076] The meaning of the battery_id field is the unique identifier of the battery of the unmanned mobile platform;
[0077] The manufacturer field indicates the name of the battery manufacturer;
[0078] The voltage field indicates the current battery voltage measured by the sensor;
[0079] The current field indicates the current battery current measured by the sensor in amperes. A positive number indicates charging, and a negative number indicates discharging.
[0080] temperature indicates the current battery temperature;
[0081] state_of_charge indicates the current battery state of charge;
[0082] The health field indicates the health status of the battery;
[0083] The charging_status field indicates the charging status, which can be "Charging" or "Discharging";
[0084] The timestamp2 field indicates the second timestamp, i.e., the charging start and end time of the energy transaction;
[0085] The block_hash field indicates the hash value of the current block;
[0086] The transaction_hash field indicates the hash value of the adjacent block connected to the current block;
[0087] The smart_contract_address field indicates the charging protocol address;
[0088] The smart_contract_result field indicates the execution result of the charging protocol;
[0089] The metadata field indicates relevant identification information;
[0090] The sensor_type field is used to record the number and type of sensors deployed on the unmanned mobile platform;
[0091] The location field is used to record the latitude and longitude of the real-time location of the unmanned mobile platform;
[0092] The consensus_info field records information about the consensus algorithm;
[0093] The consensus_algorithm field records the type of consensus algorithm;
[0094] The consensus_timestamp field indicates the timestamp of reaching consensus;
[0095] The replicating_nodes field is used to record the list of blocks participating in the consensus;
[0096] The private_key_signatures field is used to record the list of blocks that participate in the private key signature;
[0097] The random_number field is used to record the random number generated by the random number generator.
[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A distributed unmanned mobile platform energy monitoring and management method, characterized in that: The steps include: S1: Configure the blockchain architecture; S2: Introducing charging protocol on the blockchain architecture; the charging protocol is used to perform energy transactions and task scheduling of unmanned mobile platforms; S3: Deploy several sensors on each unmanned mobile platform to sense the surrounding environment of the unmanned mobile platform, generate environmental information and obtain energy consumption information; set the same data collection frequency for several sensors on each unmanned mobile platform; and transmit environmental information and energy consumption information to the blockchain using a real-time data transmission mechanism; Before sending, the unmanned mobile platform also unifies the format of environmental information and energy consumption information to facilitate correct parsing and storage by the blockchain; S4: Each unmanned mobile platform executes the charging protocol on the blockchain according to the improved consistency algorithm. Each unmanned mobile platform performs timed or quantitative charging according to the recommended location, and maintains, suspends or changes the current task of the unmanned mobile platform; The architecture of configuring the blockchain described in step S1 is to make the blockchain include several independent blocks, each block includes a block header and transaction information, and the block header is used to store the hash value of the previous level block of the current block, the first timestamp, the hash value of the next block and the consistency proof information; wherein: the hash value of the previous level block of the current block is the hash value of the previous block linked to the current block; the first timestamp records the generation time of the current block or the end time of the most recent successful completion of the verification; the hash value of the next block is the hash value of the next block after the current block is linked; the consistency proof information is to serialize the contents of the hash value of the previous level block of the current block, the first timestamp and the hash value of the next block in sequence to obtain a complete byte string, use the set hash function to calculate the hash value of the complete byte string, and arrange the name of the hash function and the calculated hash value of the complete byte string in sequence as the content of the consistency proof information and save it in the block header; the transaction information includes energy data, platform identification, second timestamp and related identification information; The charging protocol described in step S2 is used to perform energy trading and task scheduling of the unmanned mobile platform, wherein the energy trading is to guide the unmanned mobile platform to automatically find the nearest energy charging station when it is detected that the real-time power of the unmanned mobile platform is low, and interact with the energy charging station to realize decentralized trading; The task scheduling of the unmanned mobile platform is to estimate the length of the path that the unmanned mobile platform continues to travel with the target of the task according to the task currently executed by the unmanned mobile platform and the remaining power, and judge whether the length of the path that the unmanned mobile platform continues to travel meets the requirements of the task round trip, and selectively execute the following strategies: 1) The current unmanned mobile platform continues to move with the target of the task until the current task is completed; 2) The current unmanned mobile platform carries the target of the task for charging, and continues to execute the current task after charging is completed; 3) The execution of the current task is terminated, and the target of the task is unloaded for charging, and the current task is executed by other idle unmanned mobile platforms or unmanned mobile platforms whose path length meets the requirements of the task round trip; 4) The current unmanned mobile platform exchanges the target and task of the task with other unmanned mobile platforms, and executes the exchanged tasks respectively; The step S3 described in which a number of sensors are deployed on each unmanned mobile platform for sensing the surrounding environment of the unmanned mobile platform, generating environmental information and obtaining energy consumption information is to configure a laser radar, a camera, a battery temperature sensor, a voltage sensor and a positioning device on each unmanned mobile platform; the laser radar and the camera are used to obtain the surrounding environment of the unmanned mobile platform and avoid obstacles during the movement; the battery temperature sensor and the voltage sensor are used to monitor the unmanned mobile platform to obtain the temperature of the built-in battery and estimate the remaining power; the positioning device is used to obtain the real-time position of the current unmanned mobile platform; the unmanned mobile platform obtains the surrounding environment and the real-time position to jointly generate environmental information; the unmanned mobile platform obtains energy consumption information according to the temperature of the built-in battery and the estimated remaining power; The unmanned mobile platform obtains energy consumption information based on the temperature of the built-in battery and the estimated remaining power, and obtains the remaining capacity of the built-in battery based on the starting voltage of each charge of the unmanned mobile platform: Where η is the remaining capacity of the built-in battery of the unmanned mobile platform; k is the scaling factor; N is the theoretical maximum number of cycles of the built-in battery of the unmanned mobile platform; η0 is the rated capacity; n is the cumulative number of cycles of the built-in battery of the unmanned mobile platform, Among them U 100% is the rated voltage of the built-in battery of the unmanned mobile platform, U 80% The initial charging voltage is not more than 80% of the rated voltage, U 60% The initial charging voltage is not more than 60% of the rated voltage, U 40% is the initial charging voltage not exceeding 40% of the rated voltage, A, B and C are the charging times corresponding to the initial charging voltage not exceeding 80%, not exceeding 60% and not exceeding 40% of the rated voltage, respectively, and all are integers; D is a constant correction term; In the task scheduling of the unmanned mobile platform, it is necessary to determine whether the path length of the unmanned mobile platform to continue to travel meets the requirements of the task round trip and the selective execution strategy needs to meet the following conditions: 1) According to the remaining capacity of the built-in battery of the unmanned mobile platform, the maximum moving distance L of the unmanned mobile platform is determined: Where L0 is the maximum moving distance corresponding to the rated capacity; 2) Obtain the round-trip path length S of the destination of the task currently being executed by the unmanned mobile platform. If the moving distance corresponding to the current power of the unmanned mobile platform is L1, L≥L1>S is satisfied, and the round-trip path of the destination of the currently executed task passes through the energy charging station, then the current unmanned mobile platform directly executes the current task with the task target; 3) If the round-trip path length L≥S>L1 of the destination of the task currently being executed by the unmanned mobile platform, and the round-trip path of the destination of the task currently being executed passes through the energy charging station, and there are no other unmanned mobile platforms passing by within a certain distance range and time range nearby, the unmanned mobile platform will carry the task target for charging. After charging is completed, the transaction information will be updated and sent to the blockchain, and the current task will continue to be executed; 4) If the round-trip path length S>L≥L1 of the destination of the task currently being performed by the unmanned mobile platform, it indicates that the maximum moving distance of the unmanned mobile platform corresponding to the estimated remaining power cannot complete the current task, and the unmanned mobile platform is not suitable for performing the current task; the unmanned mobile platform shares the task through the blockchain, and the owner of the unmanned mobile platform dispatches other unmanned mobile platforms within a certain area to assist. The other unmanned mobile platforms suspend the current task and reach the nearest energy charging station of the current unmanned mobile platform. The two unmanned mobile platforms converge and exchange the task targets and tasks. The two unmanned mobile platforms each update the relevant identification information in the transaction information and send the updated transaction information to the blockchain; 5) If the remaining power of the unmanned mobile platform does not exceed 20% after completing the task, it will directly go to the nearest energy charging station for charging, update the transaction information and send the transaction information to the blockchain; Each unmanned mobile platform described in step S4 executes the charging protocol on the blockchain according to the improved consistency algorithm, which specifically includes the following contents: 1) For unmanned mobile platforms belonging to the same owner, the environmental information and energy consumption information input into any block of the blockchain are the same; 2) Introduce a temporary table to temporarily store the environmental information and energy consumption information sent by the unmanned mobile platform received by the block; the information in the temporary table will not spread to other blocks; 3) Private key signature verification: The blockchain detects the private key signatures of each block that has a mutual link relationship to ensure that the private key signatures of each block exist and are valid; 4) A strongly encrypted random number generator is introduced. All blocks participating in the consensus mechanism use a strongly encrypted random number generator to generate random numbers. 5) Establish a permanent form and move data. When all blocks are verified by private key signature and generate legal random numbers, the blockchain has passed the consistency verification. The information temporarily stored in the temporary form is moved to the permanent form for storage, and the content of the temporary form is reset.
2. A distributed unmanned mobile platform energy monitoring and management method according to claim 1, characterized in that: The transaction information includes energy data, platform identification, a second timestamp and related identification information, wherein the energy data stores the current world time, the pre-purchased first energy quota of the owner of the unmanned mobile platform under the current world time, and the second energy quota allowed for overdraft; the platform identification is used to distinguish the owner of the unmanned mobile platform; the second timestamp records the time of the most recent successful completion of the energy transaction in the current block, including the energy recharge time, the energy overdraft time or the start and end time of the energy consumption of the unmanned mobile platform; the related identification information includes the code of the unmanned mobile platform for ongoing energy transactions within a period of time, the code of the unmanned mobile platform for completed energy transactions and the number of the task being executed.
3. A distributed unmanned mobile platform energy monitoring and management method according to claim 1, characterized in that: The value of the scaling factor k is related to the size of the cumulative number of cycles n of the built-in battery of the unmanned mobile platform; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (0, 100], the value of the scaling factor k is 1; When the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (100, 350], the scaling factor k is 0.96; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is in the interval of (350, 800], the scaling factor k is 0.94; when the cumulative number of cycles n of the built-in battery of the unmanned mobile platform is greater than 800, the scaling factor k is 0.
9.
4. A distributed unmanned mobile platform energy monitoring and management method according to claim 1, characterized in that: The energy data stores the current world time, as well as the pre-purchased first energy quota of the owner of the unmanned mobile platform at the current world time, and the second energy quota that is allowed to be overdrawn. The balance of the first energy quota obtained by the current owner of the unmanned mobile platform through pre-charge is updated and saved in real time in the blockchain; the current owner of the unmanned mobile platform obtains the second energy quota that is allowed to be overdrawn by consuming the accumulated amount. The second energy quota is obtained based on a certain proportion of the accumulated pre-purchased first energy quota by the owner of the unmanned mobile platform, so as to avoid the situation where the balance of the first energy quota obtained by the pre-charge method is consumed, resulting in the current unmanned mobile platform being unable to charge and affecting the execution of the task.
