Intelligent power grid equipment management system and method based on Internet of Things OTA technology

By analyzing the historical upgrade records and file storage records of smart grid equipment, a hard disk capacity function model is established to predict hard disk occupancy and issue early warnings, which solves the problem of insufficient resources during OTA upgrades and improves the reliability and efficiency of upgrades.

CN120743296APending Publication Date: 2025-10-03GUANGZHOU KETENG INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510928037.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-07
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

In the prior art, smart grid devices often fail to upgrade due to insufficient resources during the OTA upgrade process, affecting device operation and reducing upgrade efficiency. Furthermore, after an upgrade failure, the upgrade package needs to be downloaded again, affecting efficiency.

Method used

By analyzing the historical upgrade records and file storage records of the device, the reliability is extracted, a hard disk capacity function model is established, the hard disk usage is predicted, and an early warning prompt is issued when resources are insufficient to ensure a successful upgrade.

Benefits of technology

It improves the reliability and efficiency of the smart grid equipment upgrade process, avoids upgrade failures caused by insufficient resources, and provides timely early warning processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120743296A_ABST
    Figure CN120743296A_ABST
Patent Text Reader

Abstract

The invention discloses a smart power grid equipment management system and method based on the OTA technology of the Internet of Things, and relates to the technical field of the Internet of Things, and the method comprises the steps: obtaining a historical upgrade record of equipment, extracting the upgrade time and differential package capacity of the upgrade record, obtaining the reliability of the upgrade record, and extracting a target record in the upgrade record; acquiring a hard disk for storing related data of the target record, and establishing a function model according to the change condition of the used capacity of the hard disk; a file storage record is extracted, the device comprises a plurality of hard disks, and the calling deviation rate of each application program to each hard disk is obtained; the occupied capacity of the target hard disk at the beginning of upgrading is predicted, and whether early warning prompt is conducted on the target hard disk or not is judged. According to the method, the historical upgrading record and the file storage record are analyzed, whether the capacity needed by upgrading of the target hard disk is sufficient or not is judged, early warning prompt is carried out in time, and the reliability and efficiency in the upgrading process are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a smart grid equipment management system and method based on Internet of Things OTA technology. Background Art

[0002] OTA (Over the Air) is a widely used device upgrade technology. It offers significant value for power grid equipment upgrades. Devices can automatically obtain upgrade information by polling specific endpoints on the server, eliminating the need for manual operation. This significantly improves the convenience of smart grid device upgrades, enabling remote and efficient batch upgrades and providing strong support for digital power grid operations and maintenance. During the device upgrade process, upgrade failures often occur due to insufficient device resources. Upgrade failures not only affect the normal operation of the device, but also because the upgrade package has been decrypted according to the decryption algorithm, if you want to continue the upgrade, you need to download the upgrade package again from the server, which affects the upgrade efficiency. If you can combine historical upgrade failure records to achieve early warning of device upgrade risks, you can greatly improve upgrade efficiency. Summary of the Invention

[0003] The purpose of the present invention is to provide a smart grid equipment management system and method based on Internet of Things OTA technology to solve the problems raised in the prior art.

[0004] To achieve the above object, the present invention provides the following technical solutions: The smart grid equipment management method based on the Internet of Things OTA technology includes the following steps: Step S100: Obtaining historical upgrade records for the device, extracting the upgrade time and differential package capacity corresponding to the upgrade record, determining the reliability of the upgrade record based on the download capacity increment at each moment during the differential package download process and the write completion degree at each moment during the differential package write process, and extracting the target record from the upgrade record based on the reliability. Step S200: Obtain the hard disk where the relevant data of the target record is stored, and establish a function model between the estimated occupied capacity and the differential packet capacity based on the change in the used capacity of the hard disk during the upgrade process and the differential packet capacity corresponding to the target record; Step S300: Extracting the file storage history of applications installed on the device. The device includes several hard disks. Based on the hard disks where the corresponding files are stored in the file storage history and the hard disk capacity occupied by files generated by the applications, obtain the call bias rate of each application to each hard disk. Step S400: Based on the call bias rate, predict the occupied capacity of the current target hard disk at the beginning of the upgrade; substitute the differential packet capacity required for the current upgrade into the function model, and based on the predicted occupied capacity and the maximum capacity of the hard disk, as well as the preset capacity threshold, determine whether to issue an early warning prompt and related processing to the target hard disk.

[0005] Furthermore, step S100 includes: Step S110: Obtain the historical upgrade record of the device. The upgrade process of the device includes downloading, decryption, verification and writing in chronological order, and each step is closely connected. The upgrade record is a record of the power grid device downloading the corresponding differential package from the server based on the current old program version and the new program version, completing the decryption, verification and writing process, and successfully completing the upgrade; Get the total capacity C of the differential package DS downloaded corresponding to a certain upgrade record R DS , and the time period P for downloading the differential package DS DS Extraction period P DS In a certain period P0, the capacity of the differential packet DS downloaded on the power grid equipment in the period P0 is from C1 to C2. If , D0 is the duration of time period P0, D DS For time period P DS duration, then randomly select several moments from the period P0, and obtain the download capacity increase of the differential packet DS on the power grid equipment at each moment, calculate the corresponding variance S between the download capacity increases, and obtain the first reliability B1=e -S ; Step S120: Obtain the time T0 when the upgrade record R is first written, and randomly select a number of completion degrees from the writing completion degree range from 0 to 1 as the benchmark completion degree, obtain the time duration between the time corresponding to each benchmark completion degree and time T0, and then establish a first time duration set; Obtain the old program version and the new program version corresponding to the upgrade record R, and extract several upgrade records that are both the old program version and the new program version as benchmark records. Obtain the duration between the time corresponding to a certain benchmark completion degree in each benchmark record and the time when each benchmark record begins to be written. Calculate the average of these durations as the average duration of the certain benchmark completion degree. Then, establish a second duration set based on the average duration of each benchmark completion degree. Calculate the cosine similarity between the first duration set and the second duration set as the second reliability B2 of the upgrade record R. The weights of the first reliability B1 and the second reliability B2 are preset to obtain the reliability B of the upgrade record R. If the reliability B is greater than a preset threshold, the upgrade record R is taken as the target record, and then all target records are obtained.

[0006] Not all upgrade records of the device can provide strong assistance for the following calculations. For example, during the download process, the download capacity increase of a certain upgrade record fluctuates. Since it is not a continuous and stable download capacity increase, this may cause abnormal phenomena in the transmission process of the upgrade record, and the reliability of the upgrade record is low. During the writing process, if the regular deviation between a certain upgrade record and the rest of the upgrade records is large, it also means that the reliability of the upgrade record is low. In this solution, the download and write processes are judged to extract the target records that can provide strong assistance for the following calculations.

[0007] Furthermore, step S200 includes: downloading, decrypting, verifying and writing relevant data of a target record TR to a hard disk as HD, and storing the differential packet corresponding to the target record TR as DS TR , differential packet DS TR The capacity is X TR ; Get the used capacity UC1 of the hard disk HD when the target record TR just starts downloading the differential package, and the maximum used capacity UC2 of the hard disk HD during the upgrade process, and get the estimated occupied capacity Y corresponding to the target record TR TR =UC2-UC1; then, based on the differential packet capacity and expected occupied capacity corresponding to each target record, the least squares method is used to obtain the function model between the expected occupied capacity Y and the differential packet capacity X: Y=k×X+b, where k is the slope and b is the intercept.

[0008] Furthermore, step S300 includes: Step S310: Extract the file storage records of the application history installed on the power grid equipment. The equipment includes several hard disks. According to the file storage path corresponding to the file storage record, the hard disk where the file is stored is obtained; set the feature value of a certain application A for each hard disk to be 0, extract a certain file storage record FR corresponding to the application A, and the hard disk where the file is stored corresponding to the file storage record FR is HD FR , the file size is C FR ; If the hard disk HD FR If it is the default hard disk for file storage, then application A will FR The eigenvalue plus If the hard disk HD FR If it is a hard disk selected after the file storage path is changed, then application A will be used to change the hard disk HD FR The eigenvalue plus , e is a natural constant, W1 and W2 are the first coefficient and the second coefficient respectively; Step S320: According to all the file storage records corresponding to application A and the hard disks where each file is stored, obtain the final eigenvalue of application A for each hard disk, sum them to obtain the total eigenvalue, and use the result of dividing each eigenvalue by the total eigenvalue as the call bias rate of application A for each hard disk; thereby obtaining the call bias rate of each application for each hard disk.

[0009] When a device is upgraded, there is generally an estimated upgrade time, and the estimated upgrade time for each device is different; for example, if the estimated upgrade time for a certain device is 10 days later, then in this solution, the duration D2 is 10 days. Since there will be resource files generated by other application programs stored in the hard disk within these ten days, and there may be a situation where the hard disk capacity ten days later is not sufficient to support the capacity space required for the upgrade, resulting in the inability to upgrade. Then, it is necessary to combine the actual situations of current application programs to predict the occupied capacity ten days later. In this solution, prediction can be carried out through the call bias rate, which can make the prediction result more accurate.

[0010] Further, step S400 includes: Step S410: Use the hard disk where the data related to the expected upgrade will be stored during the current device upgrade as the target hard disk, and use the duration from the expected upgrade time to the current time as D2. According to the total amount of files generated by each application program within the duration D1 from the current time in history, and the call bias rate of each application program for the target hard disk, predict the occupied capacity of the target hard disk at the start of the upgrade as: , where Q cur is the current actual occupied capacity, N is the number of application programs, M n is the total amount of files generated by the nth application program within the duration D1 from the current time in history, and Z [[ID=!5]] n is the call bias rate of the nth application program for the target hard disk; Step S420: Substitute the differential package capacity X0 required for the current upgrade into the function model to obtain the expected occupied capacity Y0 required for the upgrade; according to the occupied capacity Q1, the expected occupied capacity Y0, and the maximum capacity Q max of the hard disk, if it satisfies Q max - Q1 - Y0 < Q0, where Q0 is a preset capacity threshold, give an early warning prompt for the target hard disk and remind relevant personnel to perform relevant processing on the target hard disk.

[0011] [[ID=2!5]]An intelligent power grid device management system based on the Internet of Things OTA technology includes a target record extraction module, a function model establishment module, a call bias rate calculation module, and an early warning prompt module; Target record extraction module: This module is used to obtain the device's historical upgrade records, extract the upgrade time and differential package capacity corresponding to the upgrade record, and obtain the reliability of the upgrade record based on the download capacity increase at each moment during the differential package download process and the write completion degree at each moment during the differential package writing process. Target records are then extracted from the upgrade record based on the reliability. Function model building module: used to obtain the hard disk where the relevant data of the target record is stored, and build a function model between the estimated occupied capacity and the differential packet capacity based on the change in the used capacity of the hard disk during the upgrade process and the differential packet capacity corresponding to the target record; The call bias rate calculation module is used to extract the file storage history of applications installed on the device. The device includes several hard disks. Based on the hard disk where the corresponding files in the file storage history are stored and the hard disk capacity occupied by the files generated by the application, the call bias rate of each application to each hard disk is calculated; Early warning module: used to predict the occupied capacity of the current target hard disk at the beginning of the upgrade based on the call deviation rate; substitute the differential packet capacity required for the current upgrade into the function model, and determine whether to issue an early warning and related processing for the target hard disk based on the predicted occupied capacity, the maximum capacity of the hard disk, and the preset capacity threshold.

[0012] Furthermore, the target record extraction module includes an upgrade record acquisition unit and a target record extraction unit; Upgrade record acquisition unit: used to obtain the upgrade record of the device history. The upgrade record is a record of the power grid device downloading the corresponding differential package from the server based on the current old program version and the new program version, completing the decryption, verification and writing process, and successfully completing the upgrade; Target record extraction unit: used to extract the upgrade time and differential package capacity corresponding to the upgrade record, obtain the reliability corresponding to the upgrade record based on the download capacity increase at each moment in the process of downloading the differential package, and the writing completion degree at each moment in the process of writing the differential package, and extract the target record in the upgrade record based on the reliability.

[0013] Furthermore, the early warning prompt module includes an occupied capacity calculation unit and an early warning prompt unit; Occupied capacity calculation unit: used to use the hard disk where the upgrade-related data is expected to be stored during the current device upgrade as the target hard disk, and based on the total number of files generated by each application within the current time period D1 and the call bias rate of each application to the target hard disk, predict the occupied capacity of the target hard disk at the start of the upgrade; Early warning prompt unit: used to obtain the estimated occupied capacity required for the upgrade; based on the occupied capacity, estimated occupied capacity and the maximum capacity of the hard disk, determine whether to issue an early warning prompt and related processing for the target hard disk.

[0014] Compared with the existing technology, the beneficial effects of the present invention are as follows: the present invention provides a smart grid equipment management system and method based on the Internet of Things OTA technology, including: obtaining the historical upgrade records of the equipment, extracting the upgrade time and differential packet capacity of the upgrade records, obtaining the reliability of the upgrade records, and extracting the target records in the upgrade records; obtaining the hard disk where the relevant data of the target record is stored, and establishing a function model based on the changes in the used capacity of the hard disk; extracting the file storage records, the device includes several hard disks, and obtaining the call bias rate of each application to each hard disk; predicting the occupied capacity of the target hard disk at the beginning of the upgrade, and determining whether to issue an early warning prompt to the target hard disk. The present invention analyzes the historical upgrade records and file storage records to determine whether the capacity required for the upgrade of the target hard disk is sufficient, and issues early warning prompts in a timely manner, effectively improving the reliability and efficiency of the upgrade process. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 Schematic diagram of the process of the smart grid equipment management method based on the Internet of Things OTA technology of the present invention; Figure 2 This is a structural diagram of the smart grid equipment management system based on the Internet of Things OTA technology of the present invention. DETAILED DESCRIPTION

[0016] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.

[0017] Example: Figure 1 As shown, the present invention provides a technical solution for a smart grid device management method based on the Internet of Things OTA technology, comprising the following steps: Step S100: Obtaining historical upgrade records for the device, extracting the upgrade time and differential package capacity corresponding to the upgrade record, determining the reliability of the upgrade record based on the download capacity increment at each moment during the differential package download process and the write completion degree at each moment during the differential package write process, and extracting the target record from the upgrade record based on the reliability. Step S110: Obtain the historical upgrade record of the device. The upgrade process of the device includes downloading, decryption, verification and writing in chronological order, and each step is closely connected. The upgrade record is a record of the power grid device downloading the corresponding differential package from the server based on the current old program version and the new program version, completing the decryption, verification and writing process, and successfully completing the upgrade; Get the total capacity C of the differential package DS downloaded corresponding to a certain upgrade record R DS , and the time period P for downloading the differential package DS DS Extraction period P DS In a certain period P0, the capacity of the differential packet DS downloaded on the power grid equipment in the period P0 is from C1 to C2. If , D0 is the duration of time period P0, D DS For time period P DS duration, then randomly select several moments from the period P0, and obtain the download capacity increase of the differential packet DS on the power grid equipment at each moment, calculate the corresponding variance S between the download capacity increases, and obtain the first reliability B1=e -S ; Step S120: Obtain the time T0 when the upgrade record R is first written, and randomly select a number of completion degrees from the writing completion degree range from 0 to 1 as the benchmark completion degree, obtain the time duration between the time corresponding to each benchmark completion degree and time T0, and then establish a first time duration set; Obtain the old program version and the new program version corresponding to the upgrade record R, and extract several upgrade records that are both the old program version and the new program version as benchmark records. Obtain the duration between the time corresponding to a certain benchmark completion degree in each benchmark record and the time when each benchmark record begins to be written. Calculate the average of these durations as the average duration of the certain benchmark completion degree. Then, establish a second duration set based on the average duration of each benchmark completion degree. Calculate the cosine similarity between the first duration set and the second duration set as the second reliability B2 of the upgrade record R. The weights of the first reliability B1 and the second reliability B2 are preset to obtain the reliability B of the upgrade record R. If the reliability B is greater than a preset threshold, the upgrade record R is taken as the target record, and then all target records are obtained.

[0018] Not all upgrade records of the device can provide strong assistance for the following calculations. For example, if the download capacity increase of a certain upgrade record fluctuates during the download process, since it is not a continuous and stable download capacity increase, it may cause abnormal phenomena in the transmission process of the upgrade record, and the reliability of the upgrade record is low. If the regular deviation between a certain upgrade record and the rest of the upgrade records is large during the writing process, it also means that the reliability of the upgrade record is low. In this solution, the download and write processes are judged to extract the target records that can provide strong assistance for the following calculations. The judgment principle is: 1. The variance S can indicate whether the download capacity increase fluctuates. The smaller the variance S, the more stable the download capacity increase, and the higher the reliability of the upgrade record R should be. In this solution, the formula B1=e -S , since the value of variance S is S>0, the value of B1 is 0 to 1, and B1 decreases as S increases, realizing the principle that the smaller the variance S is, the higher the reliability of the upgrade record R; 2. The greater the cosine similarity between the first time length set and the second time length set, the more similar the first time length set and the second time length set are, indicating that the smaller the deviation of the regularity obtained by combining the upgrade record R with the other upgrade records is, and the more reliable the upgrade record R is, so the cosine similarity can be used to characterize the reliability B2; in this embodiment, the weights of the first reliability B1 and the second reliability B2 are set to WB1 and WB2 respectively, and the reliability B=WB1×B1+WB2×B2 is obtained.

[0019] Step S200: Obtain the hard disk where the relevant data of the target record is stored, and establish a function model between the estimated occupied capacity and the differential packet capacity based on the change in the used capacity of the hard disk during the upgrade process and the differential packet capacity corresponding to the target record; Step S200 includes: downloading, decrypting, verifying and writing relevant data of a target record TR to a hard disk as HD, and storing the differential packet corresponding to the target record TR as DS TR , differential packet DS TR The capacity is X TR ; Get the used capacity UC1 of the hard disk HD when the target record TR just starts downloading the differential package, and the maximum used capacity UC2 of the hard disk HD during the upgrade process, and get the estimated occupied capacity Y corresponding to the target record TR TR =UC2-UC1; then, based on the differential packet capacity and expected occupied capacity corresponding to each target record, the least squares method is used to obtain the function model between the expected occupied capacity Y and the differential packet capacity X: Y=k×X+b, where k is the slope and b is the intercept.

[0020] Step S300: Extracting the file storage history of applications installed on the device. The device includes several hard disks. Based on the hard disks where the corresponding files are stored in the file storage history and the hard disk capacity occupied by files generated by the applications, obtain the call bias rate of each application to each hard disk. Step S310: Extract the file storage records of the application history installed on the power grid equipment. The equipment includes several hard disks. According to the file storage path corresponding to the file storage record, the hard disk where the file is stored is obtained; set the feature value of a certain application A for each hard disk to be 0, extract a certain file storage record FR corresponding to the application A, and the hard disk where the file is stored corresponding to the file storage record FR is HD FR , the file size is C FR ; If the hard disk HD FR If it is the default hard disk for file storage, then application A will FR The eigenvalue plus If the hard disk HD FR If it is a hard disk selected after the file storage path is changed, then application A will be used to change the hard disk HD FR The eigenvalue plus , e is a natural constant, W1 and W2 are the first coefficient and the second coefficient respectively; Formula g=1-e -t In the example, g increases with the increase of t. In this scheme, when the file capacity is larger, the corresponding eigenvalue should also be larger, and when t is t>0, g is between 0 and 1. In this scheme, such a design can achieve the purpose of data scaling for calculation.

[0021] Step S320: Based on all file storage records corresponding to application A and the hard disk where the file is stored corresponding to each file storage record, obtain the final eigenvalue of application A for each hard disk, add them up to obtain the total eigenvalue, and divide each eigenvalue by the total eigenvalue as the call bias rate of application A for each hard disk; and then obtain the call bias rate of each application for each hard disk.

[0022] When upgrading a device, there is generally an estimated upgrade time, which is different for each device. For example, if the estimated upgrade time for a device is 10 days later, then in this solution, the duration D2 is 10 days. Because resource files generated by other applications will be stored on the hard disk within these ten days, and the hard disk capacity may not be sufficient to support the capacity required for the upgrade after ten days, resulting in an inability to upgrade, it is necessary to combine the actual situation of each application and predict the occupied capacity after ten days. In this solution, by calling the deflection rate for prediction, the prediction result can be made more accurate.

[0023] Step S400: Predict the occupied capacity of the current target hard disk at the start of the upgrade according to the call bias rate; substitute the differential package capacity required for the current upgrade into the function model, and judge whether to give a warning prompt and related processing to the target hard disk according to the predicted occupied capacity, the maximum capacity of the hard disk, and a preset capacity threshold.

[0024] Step S410: Take the hard disk where the relevant data to be upgraded is expected to be stored during the current device upgrade as the target hard disk, take the duration from the expected upgrade time to the current time as D2, and predict the occupied capacity of the target hard disk at the start of the upgrade according to the total amount of files generated by each application program within the duration D1 from the historical time to the current time and the call bias rate of each application program to the target hard disk as: , where Q cur is the current actual occupied capacity, N is the number of application programs, and M n is the total amount of files generated by the nth application program within the duration D1 from the historical time to the current time, and Z n is the call bias rate of the nth application program to the target hard disk; Step S420: Substitute the differential package capacity X0 required for the current upgrade into the function model to obtain the predicted occupied capacity Y0; according to the occupied capacity Q1, the predicted occupied capacity Y0, and the maximum capacity Q of the hard disk max , if it satisfies Q max - Q1 - Y0 < Q0, where Q0 is the preset capacity threshold, give a warning prompt to the target hard disk and remind the relevant personnel to perform relevant processing on the target hard disk.

[0025] The present invention also provides an intelligent grid device management system based on the Internet of Things OTA technology, as Figure 2 shown, including: Target record extraction module: used to obtain the historical upgrade records of the device, extract the upgrade time and the capacity of the differential package corresponding to the upgrade records, obtain the reliability corresponding to the upgrade records according to the download capacity increase rate at each moment during the process of downloading the differential package and the writing completion degree at each moment during the process of writing the differential package, and extract the target records in the upgrade records according to the reliability; Function model establishment module: used to obtain the hard disk where the relevant data of the target records is stored, and establish a function model between the predicted occupied capacity and the differential package capacity according to the change of the used capacity of the hard disk during the upgrade process and the differential package capacity corresponding to the target records; Call bias rate calculation module: used to extract the historical file storage records of the application programs installed on the device, where the device includes several hard disks, and obtain the call bias rate of each application program to each hard disk according to the hard disk where the corresponding files are stored in the file storage records and the capacity of the hard disk occupied by the files generated by the application programs; Early warning module: used to predict the occupied capacity of the current target hard disk at the beginning of the upgrade based on the call deviation rate; substitute the differential packet capacity required for the current upgrade into the function model, and determine whether to issue an early warning and related processing for the target hard disk based on the predicted occupied capacity, the maximum capacity of the hard disk, and the preset capacity threshold.

[0026] The target record extraction module includes an upgrade record acquisition unit and a target record extraction unit; Upgrade record acquisition unit: used to obtain the upgrade record of the device history. The upgrade record is a record of the power grid device downloading the corresponding differential package from the server based on the current old program version and the new program version, completing the decryption, verification and writing process, and successfully completing the upgrade; Target record extraction unit: used to extract the upgrade time and differential package capacity corresponding to the upgrade record, obtain the reliability corresponding to the upgrade record based on the download capacity increase at each moment in the process of downloading the differential package, and the writing completion degree at each moment in the process of writing the differential package, and extract the target record in the upgrade record based on the reliability.

[0027] The early warning prompt module includes an occupied capacity calculation unit and an early warning prompt unit; Occupied capacity calculation unit: used to use the hard disk where the upgrade-related data is expected to be stored during the current device upgrade as the target hard disk, and based on the total number of files generated by each application within the current time period D1 and the call bias rate of each application to the target hard disk, predict the occupied capacity of the target hard disk at the start of the upgrade; Early warning prompt unit: used to obtain the estimated occupied capacity required for the upgrade; based on the occupied capacity, estimated occupied capacity and the maximum capacity of the hard disk, determine whether to issue an early warning prompt and related processing for the target hard disk.

[0028] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims, not the foregoing description, and all variations within the meaning and range of equivalents of the claims are intended to be included therein. Any reference sign in a claim should not be construed as limiting the claim to which it relates.

Claims

1. A smart grid equipment management method based on Internet of Things OTA technology, characterized in that: The following steps are involved: Step S100: Obtaining historical upgrade records for the device, extracting the upgrade time and differential package capacity corresponding to the upgrade record, determining the reliability of the upgrade record based on the download capacity increment at each moment during the differential package download process and the write completion degree at each moment during the differential package write process, and extracting the target record from the upgrade record based on the reliability. Step S200: Obtain the hard disk where the relevant data of the target record is stored, and establish a function model between the estimated occupied capacity and the differential packet capacity based on the change in the used capacity of the hard disk during the upgrade process and the differential packet capacity corresponding to the target record; Step S300: Extracting the file storage history of applications installed on the device. The device includes several hard disks. Based on the hard disks where the corresponding files are stored in the file storage history and the hard disk capacity occupied by files generated by the applications, obtain the call bias rate of each application to each hard disk. Step S400: predicting the occupied capacity of the current target hard disk at the start of the upgrade based on the call bias rate; The differential packet capacity required for the current upgrade is substituted into the function model, and based on the predicted occupied capacity, the maximum capacity of the hard disk, and the preset capacity threshold, it is determined whether to issue an early warning prompt and related processing for the target hard disk.

2. The smart grid equipment management method based on Internet of Things OTA technology according to claim 1 is characterized in that: Step S100 includes: Step S110: Obtain the historical upgrade record of the device. The upgrade process of the device includes downloading, decryption, verification and writing in chronological order, and each step is closely connected. The upgrade record is a record of the power grid device downloading the corresponding differential package from the server based on the current old program version and the new program version, completing the decryption, verification and writing process, and successfully completing the upgrade; Get the total capacity C of the differential package DS downloaded corresponding to a certain upgrade record R DS , and the time period P for downloading the differential package DS DS Extraction period P DS In a certain period P0, the capacity of the differential packet DS downloaded on the power grid equipment in the period P0 is from C1 to C2. If , D0 is the duration of time period P0, D DS For time period P DS duration, then randomly select several moments from the time period P0, and obtain the download capacity increase of the differential packet DS on the power grid equipment at each moment, calculate the corresponding variance S between the download capacity increases, and obtain the first reliability B1=e of the upgrade record R -S ; Step S120: Obtain the time T0 when the upgrade record R is first written, and randomly select a number of completion degrees from the writing completion degree range from 0 to 1 as the benchmark completion degree, obtain the time duration between the time corresponding to each benchmark completion degree and time T0, and then establish a first time duration set; Obtain the old program version and the new program version corresponding to the upgrade record R, extract several upgrade records that are both the old program version and the new program version as benchmark records, obtain the duration between the time corresponding to a certain benchmark completion degree in each benchmark record and the time when each benchmark record begins to be written, calculate the average of these durations, and use this as the average duration of the certain benchmark completion degree. Furthermore, establish a second duration set based on the average duration of each benchmark completion degree; and calculate the cosine similarity between the first duration set and the second duration set as the second reliability B2 of the upgrade record R. The weights of the first reliability B1 and the second reliability B2 are preset to obtain the reliability B of the upgrade record R. If the reliability B is greater than a preset threshold, the upgrade record R is taken as the target record, and then all target records are obtained.

3. The smart grid equipment management method based on Internet of Things OTA technology according to claim 1 is characterized in that: Step S200 includes: downloading, decrypting, verifying and writing relevant data of a target record TR to a hard disk as HD, and storing the differential packet corresponding to the target record TR as DS TR , differential packet DS TR The capacity is X TR ; Get the used capacity UC1 of the hard disk HD when the target record TR just starts downloading the differential package, and the maximum used capacity UC2 of the hard disk HD during the upgrade process, and get the estimated occupied capacity Y corresponding to the target record TR TR =UC2-UC1; then, based on the differential packet capacity and expected occupied capacity corresponding to each target record, the least squares method is used to obtain the function model between the expected occupied capacity Y and the differential packet capacity X: Y=k×X+b, where k is the slope and b is the intercept.

4. The smart grid equipment management method based on Internet of Things OTA technology according to claim 1 is characterized in that: Step S300 includes: Step S310: Extract the file storage records of the application history installed on the power grid equipment. The equipment includes several hard disks. According to the file storage path corresponding to the file storage record, the hard disk where the file is stored is obtained; set the feature value of a certain application A for each hard disk to be 0, extract a certain file storage record FR corresponding to the application A, and the hard disk where the file is stored corresponding to the file storage record FR is HD FR , the file size is C FR ; If the hard disk HD FR If it is the default hard disk for file storage, then application A will FR The eigenvalue plus If the hard disk HD FR If it is a hard disk selected after the file storage path is changed, then application A will be used to change the hard disk HD FR The eigenvalue plus , e is a natural constant, W1 and W2 are the first coefficient and the second coefficient respectively; Step S320: Based on all file storage records corresponding to application A and the hard disk where the file is stored corresponding to each file storage record, obtain the final eigenvalue of application A for each hard disk, add them up to obtain the total eigenvalue, and divide each eigenvalue by the total eigenvalue as the call bias rate of application A for each hard disk; and then obtain the call bias rate of each application for each hard disk.

5. The smart grid equipment management method based on Internet of Things OTA technology according to claim 1 is characterized in that: Step S400 includes: Step S410: The hard disk where the upgrade-related data is expected to be stored during the current device upgrade is used as the target hard disk. The time from the expected upgrade time to the current time is used as D2. Based on the total number of files generated by each application within the time period D1 from the current time, and the call bias rate of each application to the target hard disk, the occupied capacity of the target hard disk at the start of the upgrade is predicted to be: , where Q cur is the actual occupied capacity, N is the number of applications, and M n is the total amount of files generated by the nth application within the time period D1 from the current time, Z n is the call bias rate of the nth application to the target hard disk; Step S420: Substitute the differential package capacity X0 required for the current upgrade into the function model to obtain the expected occupied capacity Y0 required for the upgrade; based on the occupied capacity Q1, the expected occupied capacity Y0, and the maximum capacity Q of the hard disk max , if it satisfies Q max - Q1 - Y0 < Q0, where Q0 is a preset capacity threshold, give a warning prompt for the target hard disk and remind relevant personnel to perform relevant processing on the target hard disk.

6. A smart grid device management system, configured to execute the smart grid device management method based on Internet of Things OTA technology according to any one of claims 1 to 5, characterized in that: The system includes a target record extraction module, a function model establishment module, a call bias rate calculation module and an early warning prompt module; Target record extraction module: This module is used to obtain the device's historical upgrade records, extract the upgrade time and differential package capacity corresponding to the upgrade record, and obtain the reliability of the upgrade record based on the download capacity increase at each moment during the differential package download process and the write completion degree at each moment during the differential package writing process. Target records are then extracted from the upgrade record based on the reliability. Function model building module: used to obtain the hard disk where the relevant data of the target record is stored, and build a function model between the estimated occupied capacity and the differential packet capacity based on the change in the used capacity of the hard disk during the upgrade process and the differential packet capacity corresponding to the target record; The call bias rate calculation module is used to extract the file storage history of applications installed on the device. The device includes several hard disks. Based on the hard disk where the corresponding files in the file storage history are stored and the hard disk capacity occupied by the files generated by the application, the call bias rate of each application to each hard disk is calculated; Early warning module: used to predict the occupied capacity of the current target hard disk at the beginning of the upgrade based on the call deviation rate; substitute the differential packet capacity required for the current upgrade into the function model, and determine whether to issue an early warning and related processing for the target hard disk based on the predicted occupied capacity, the maximum capacity of the hard disk, and the preset capacity threshold.

7. The smart grid equipment management system according to claim 6, characterized in that: The target record extraction module includes an upgrade record acquisition unit and a target record extraction unit; Upgrade record acquisition unit: used to obtain the upgrade record of the device history. The upgrade record is a record of the power grid device downloading the corresponding differential package from the server based on the current old program version and the new program version, completing the decryption, verification and writing process, and successfully completing the upgrade; Target record extraction unit: used to extract the upgrade time and differential package capacity corresponding to the upgrade record, obtain the reliability corresponding to the upgrade record based on the download capacity increase at each moment in the process of downloading the differential package, and the writing completion degree at each moment in the process of writing the differential package, and extract the target record in the upgrade record based on the reliability.

8. The smart grid equipment management system according to claim 6, characterized in that: The early warning prompt module includes an occupied capacity calculation unit and an early warning prompt unit; Occupied capacity calculation unit: used to use the hard disk where the upgrade-related data is expected to be stored during the current device upgrade as the target hard disk, and based on the total number of files generated by each application within the current time period D1 and the call bias rate of each application to the target hard disk, predict the occupied capacity of the target hard disk at the start of the upgrade; Early warning prompt unit: used to obtain the estimated occupied capacity required for the upgrade; Based on the occupied capacity, expected occupied capacity, and maximum capacity of the hard disk, determine whether to issue an early warning prompt and take relevant actions for the target hard disk.