Electric power data edge computing and cloud edge collaboration method and related equipment

By receiving, extracting, calculating and transmitting power data in power IoT edge-side devices, it solves the problems of power IoT data calculation pressure and adaptation complexity in traditional technologies, achieves efficient power data processing and storage, and reduces costs. Operation and maintenance costs and system complexity.

CN118869732APending Publication Date: 2024-10-29STATE GRID INFORMATION & TELECOMM GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410770062.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the traditional power Internet of Things, due to limited system resources of power terminal equipment, computing cannot be performed at the edge. As a result, massive real-time measurement data are centrally calculated and stored in the cloud, causing huge pressure and making it difficult to meet the real-time requirements of new business forms. Moreover, edge side Device adaptation to new types of devices requires the development of specific applications and microservices, which increases complexity and cost.

Method used

Receive power data in edge-side devices, search for predetermined storage templates through pre-built databases, extract and calculate the data, merge into data files, and transmit to the cloud, simplifying the cloud-edge collaborative interaction process, reducing cloud computing pressure, and through distributed timing The database realizes synchronous data storage and reduces development costs caused by new equipment.

Benefits of technology

It improves the utilization efficiency of power data, reduces cloud computing pressure, simplifies cloud-edge collaborative interaction, reduces operation and maintenance costs and system complexity, enhances adaptability, and enables adaptive processing of different types of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869732A_ABST
    Figure CN118869732A_ABST
Patent Text Reader

Abstract

The invention provides an electric power data edge computing and cloud edge collaboration method and related equipment. The method comprises the steps of receiving electric power data; searching a preset storage template corresponding to the electric power data in a pre-constructed database, and in response to determining that the preset storage template is found, extracting the electric power data according to the preset storage template to obtain an initial data file corresponding to the electric power data; calculating the power data based on the initial data file to obtain a calculation result, and combining the initial data file with the calculation result to obtain a data file; the request for transmitting the data file is sent to the cloud, and the data file is transmitted to the cloud in response to the received feedback instruction for confirming transmission associated with the request, so that the technical problem of overlarge computing pressure of the cloud in the prior art is solved, and the efficiency of processing the power data by the cloud is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an edge computing and cloud-edge collaboration method for power data and related equipment. Background Art

[0002] In the traditional power Internet of Things, each power terminal device is limited by low system resources and cannot calculate various types of power data. The collected power data will be assembled into data packets and transmitted to the cloud-based IoT management platform through the mainstream industrial Internet of Things protocol. The power data will be parsed, split and calculated in the cloud, and the calculation results will be stored in the cloud. However, in the power Internet of Things, with the massive increase in power terminal devices and business applications, massive real-time measurement data up to PB (Petabytes) will be generated. This centralized computing and storage method will cause tremendous pressure on the cloud and it is difficult to meet the real-time requirements of new business forms. Summary of the invention

[0003] In view of this, the purpose of this application is to propose an edge computing and cloud-edge collaboration method and related equipment for power data to overcome all or part of the shortcomings of the prior art.

[0004] Based on the above-mentioned purpose, the present application provides an edge computing and cloud-edge collaboration method for power data, which is applied to edge-side devices, including: receiving power data; searching for a predetermined storage template corresponding to the power data in a pre-built database, and in response to determining that the predetermined storage template is found, extracting the power data according to the predetermined storage template to obtain an initial data file corresponding to the power data; based on the initial data file, calculating the power data to obtain a calculation result, merging the initial data file with the calculation result to obtain a data file; sending a request to the cloud to transmit the data file, and in response to receiving a feedback instruction confirming the transmission associated with the request, transmitting the data file to the cloud.

[0005] Optionally, the initial data file includes power time points and power names; the power data is calculated based on the initial data file to obtain a calculation result, including: based on the power time points and the power names, statistically calculating the power data according to predetermined requirements to obtain the calculation result; and / or, based on the power time points and the power names, performing missing detection on the power data, and in response to determining that there is missing data in the power data, performing interpolation calculation on the power data to obtain the calculation result.

[0006] Optionally, the method includes: in response to determining that a predetermined storage template corresponding to the power data is not found in the database, according to predetermined requirements, adding the predetermined storage template corresponding to the power data to the database through the human-computer interaction interface of the edge side device.

[0007] Optionally, before transmitting the data file to the cloud, the method includes: packaging the data file.

[0008] The present application also provides an edge computing and cloud-edge collaboration method for power data, which is applied to the cloud side, including: receiving a request for transmitting a data file sent by an edge side device, and performing security monitoring on the edge side device corresponding to the request; in response to determining that the edge side device has passed the security monitoring, sending a feedback instruction confirming the transmission associated with the request to the edge side device; receiving a data file of the edge side device corresponding to the feedback instruction, wherein the data file includes an initial data file obtained by extracting power data according to a predetermined storage template in the edge side device, and a calculation result obtained by calculating the power data according to the initial data file.

[0009] Optionally, the determining that the edge side device passes the security monitoring includes: in response to determining that an identifier of the edge side device exists in a pre-built whitelist, determining that the edge side device passes the security monitoring.

[0010] Optionally, it also includes: aggregating the data files received from all edge-side devices.

[0011] Based on the same inventive concept, the present application also provides an edge computing and cloud-edge collaboration device for power data, which is applied to edge-side devices, including: a first receiving module, configured to receive power data; an extraction module, configured to search for a predetermined storage template corresponding to the power data in a pre-built database, and in response to determining that the predetermined storage template is found, extract the power data according to the predetermined storage template to obtain an initial data file corresponding to the power data; a calculation module, configured to calculate the power data based on the initial data file to obtain a calculation result, and merge the initial data file with the calculation result to obtain a data file; a transmission module, configured to send a request to the cloud to transmit the data file, and in response to receiving a feedback instruction confirming the transmission associated with the request, transmit the data file to the cloud.

[0012] Optionally, the initial data file includes power time points and power names; the calculation module is further configured to: based on the power time points and the power names, perform statistical calculations on the power data according to predetermined requirements to obtain the calculation results; and / or, based on the power time points and the power names, perform missing detection on the power data, and in response to determining that there is missing data in the power data, perform interpolation calculations on the power data to obtain the calculation results.

[0013] Optionally, it also includes an adding module, which is configured to: in response to determining that a predetermined storage template corresponding to the power data is not found in the database, add the predetermined storage template corresponding to the power data to the database through the human-computer interaction interface of the edge side device according to predetermined requirements.

[0014] Optionally, before transmitting the data file to the cloud, the device further includes a packaging module, and the packaging module is configured to: package the data file.

[0015] The present application also provides an edge computing and cloud-edge collaboration device for power data, which is applied to the cloud, and includes: a monitoring module, configured to receive a request for transmitting a data file sent by an edge side device, and perform security monitoring on the edge side device corresponding to the request; a sending module, configured to send a feedback instruction of confirmation transmission associated with the request to the edge side device in response to determining that the edge side device has passed the security monitoring; a second receiving module, configured to receive a data file of the edge side device corresponding to the feedback instruction, wherein the data file includes an initial data file obtained by extracting power data according to a predetermined storage template in the edge side device, and a calculation result obtained by calculating the power data according to the initial data file.

[0016] Optionally, the monitoring module is further configured to: in response to determining that the identifier of the edge side device exists in a pre-built whitelist, determine that the edge side device passes the security monitoring.

[0017] Optionally, a summarizing module is also included, and the summarizing module is configured to: summarize the data files received from all edge-side devices.

[0018] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.

[0019] Based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the method as described above.

[0020] As can be seen from the above, the edge computing and cloud-edge collaboration method and related equipment for power data provided by the present application include receiving power data. Searching for a predetermined storage template corresponding to the power data in a pre-constructed database, in response to determining that the predetermined storage template is found, extracting the power data according to the predetermined storage template, and obtaining an initial data file corresponding to the power data, so that the power data has a certain orderliness, thereby improving the utilization efficiency of the power data. Based on the initial data file, the power data is calculated to obtain a calculation result, the initial data file is merged with the calculation result to obtain a data file, and the power data is calculated on the edge side device, which reduces the computing pressure on the cloud. Send a request to transmit the data file to the cloud, and in response to receiving a feedback instruction confirming the transmission associated with the request, transmit the data file to the cloud, simplifying the interactive process of cloud-edge collaboration and improving the efficiency of processing power data on the cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 A schematic diagram of edge computing and cloud-edge collaborative system of the power Internet of Things in the prior art;

[0023] Figure 2 A schematic diagram of the process of edge computing and cloud-edge collaboration method for power data in an embodiment of the present application;

[0024] Figure 3 A schematic diagram of the flow of edge computing and cloud-edge collaboration method for power data according to another embodiment of the present application;

[0025] Figure 4 A schematic diagram of the flow of edge computing and cloud-edge collaboration method for power data according to another embodiment of the present application;

[0026] Figure 5 A schematic diagram of the structure of an edge computing and cloud-edge collaboration device for power data according to an embodiment of the present application;

[0027] Figure 6A schematic diagram of the structure of an edge computing and cloud-edge collaboration device for power data according to another embodiment of the present application;

[0028] Figure 7 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0030] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0031] As described in the background technology section, in the traditional power Internet of Things, each power terminal device is limited by low system resources and cannot calculate various types of power data. The collected power data will be assembled into data messages and transmitted to the cloud-based IoT management platform through the mainstream industrial Internet of Things protocol (such as MQTT). In the cloud, the power data will be parsed and split, and various power quality index values ​​(such as voltage, current), power quality index alarm values ​​(such as voltage and current values ​​outside the normal range), power quality index statistics (such as voltage and current mean and extreme values) and power quality event indicators (such as power outages and excessive loads) will be calculated, and the calculation results will be stored in the cloud. However, in the power Internet of Things, with the massive increase in power terminal devices and business applications, massive real-time measurement data up to PB level will be generated. This centralized calculation and storage method will cause huge pressure on the cloud and it is difficult to meet the real-time requirements of new business forms.

[0032] In order to reduce the pressure of centralized computing and data storage in the cloud, the patent "Edge computing system for power Internet of Things" (202310119099.6) discloses an edge computing and cloud-edge collaboration system for power Internet of Things, which adopts a multi-process microservice architecture design and realizes the calculation of some power quality data on edge devices. The schematic diagram of the system is shown in the figure below. Figure 1 As shown, Figure 1 This is a schematic diagram of the edge computing and cloud-edge collaborative system of the power Internet of Things in the existing technology.

[0033] (1) Create a data collection service on the edge device to collect various types of real-time power measurement data at a fixed frequency;

[0034] (2) Creating a data computing service on the edge device to calculate various power quality index values ​​and power quality index alarm values ​​at fixed time intervals;

[0035] (3) Create a data forwarding service on the edge device, assemble each calculation result into a message, and forward it to MQTT Broke respectively;

[0036] (IV) Create a microservice for message parsing and computing on the cloud IoT management platform, and subscribe to the messages sent by each edge device from the MQTT broker. Split and parse the messages, obtain the power quality index value and power quality index alarm value of each device, and store them in the cloud time series database;

[0037] (V) Calculate the statistical values ​​of power quality indicators and power quality event indicators, and display them visually. At the same time, make decisions on abnormal data and time, and issue call-up instructions to edge devices.

[0038] Through the above steps, the power quality index values ​​and power quality index alarm values ​​that should be calculated on the cloud are delegated to the edge devices for calculation. The cloud calculates the remaining complex indicators based on the calculation results on the edge, and stores the indicators obtained and calculated on the cloud in the time series database, reducing the computing and storage pressure on the cloud.

[0039] However, the above patent "Edge Computing System for Power Internet of Things" has the following disadvantages:

[0040] (1) A multi-process microservice architecture design was adopted to realize the calculation of power quality index values ​​and power quality index alarm values ​​under the low system resources on the edge side. However, the remaining more complex index data still needed to be calculated on the cloud, which failed to completely alleviate the pressure of cloud data calculation;

[0041] (ii) It is necessary to develop specific edge applications and cloud microservices to realize the packet assembly and forwarding of data on the edge, and the packet parsing and data computing and storage on the cloud. Since the edge will continue to connect to different devices from various manufacturers, in order to adapt to the new access types of devices, it is necessary to continuously develop corresponding applications and microservices, which increases the development cost and system resource usage of the edge and cloud, increases the complexity of the system, and reduces the efficiency of computing and storage.

[0042] With the access of massive terminal devices in the power Internet of Things, it is necessary to reduce the pressure on the cloud IoT management platform to centrally calculate and store massive real-time measurement data. The introduction of edge computing and cloud collaboration methods can delegate a large amount of computing to the edge side to reduce the pressure on the cloud, meet the business requirements of power data computing and efficient storage, reduce operation and maintenance costs, and improve system efficiency. However, in the prior art, the data interaction process between edge devices and the cloud is complex, and the process of uploading data from various types of devices to the cloud depends on customized applications and microservices, which greatly increases the complexity of system development and resource usage. The computing power of the edge side is insufficient and cannot completely alleviate the pressure of power quality data calculation on the cloud. In addition, for the addition of different types of equipment, the corresponding applications and microservices need to be redeveloped, and they cannot be adaptively processed.

[0043] It needs to be explained that the power Internet of Things refers to an intelligent service system that uses the Internet of Things technology to connect all links of the power grid in the power network and has efficient processing capabilities. Its essence is a special type of Internet of Things, that is, the application of Internet of Things technology in the power industry. MQTT (Message Queuing Telemetry Transport): A "lightweight" message protocol based on the publish / subscribe paradigm, released by IBM. It works on the TCP / IP protocol family and is a publish / subscribe message protocol designed for remote devices with low hardware performance and poor network conditions. MQTT Broker: Also known as the MQTT message server, it is the core component of the MQTT protocol, responsible for receiving network connections from clients, processing client subscription / unsubscription and message publishing requests, and forwarding messages published by clients to other subscribers.

[0044] In view of this, the embodiment of the present application proposes an edge computing and cloud-edge collaboration method for power data, referring to Figure 2 , applied to edge devices, including the following steps:

[0045] Step 101, receiving power data.

[0046] In this step, the edge side device is connected to at least one sensor and / or at least one meter, and the above-mentioned sensors and the above-mentioned meters are arranged in the power production environment, and can collect power data in real time, and aggregate the power data to the edge side device, wherein the edge side device is an intelligent terminal device deployed at the production environment site. Therefore, the edge side device receives power data. It should be noted that the above-mentioned power data can also be referred to as real-time measurement data, wherein real-time measurement data refers to power quality related data collected and monitored in real time.

[0047] Step 102, searching a pre-built database for a predetermined storage template corresponding to the power data, and in response to determining that the predetermined storage template is found, extracting the power data according to the predetermined storage template to obtain an initial data file corresponding to the power data.

[0048] In this step, the amount of power data is relatively large and disordered. In order to improve the utilization efficiency of power data, the predetermined storage template corresponding to the power data is searched in the pre-built database, wherein the predetermined storage template is a template stored in advance according to user needs. The power data is extracted according to the predetermined storage template, and the values ​​of each physical quantity at each time point are extracted according to the predetermined format to obtain the initial data file corresponding to the power data. Through the initial data file, the power data has a certain orderliness, thereby improving the utilization efficiency of the power data.

[0049] It should be noted that if the received power data is encoded data, it is necessary to decode the power data and then extract the power data according to the predetermined storage template. In order to facilitate the search of the initial data file, the initial data file can be named, for example, "equipment unique number + physical quantity", and the initial data file is stored in real time in the pre-built time series database of the edge device.

[0050] Step 103: Calculate the power data based on the initial data file to obtain a calculation result, and merge the initial data file with the calculation result to obtain a data file.

[0051] In this step, the initial data file stores power data. In addition, the initial data file also stores a description of what kind of calculation is performed on the power data. Therefore, based on the initial data file, the power data is calculated to obtain a calculation result. The initial data file and the calculation result are merged to obtain a data file. Exemplarily, the calculation result is stored in the initial data file, that is, an association is established between the description of what kind of calculation is performed on the power data and its corresponding calculation result to obtain a data file. Calculating the power data on the edge side device reduces the computing pressure on the cloud.

[0052] It should be noted that the present application utilizes edge-side devices to perform edge data computing, wherein edge data computing provides computing, storage, and network bandwidth at the edge of the power Internet of Things close to the data input.

[0053] Step 104 , sending a request to transmit the data file to the cloud, and in response to receiving a feedback instruction confirming the transmission associated with the request, transmitting the data file to the cloud.

[0054] In this step, in order to ensure the security of the data files received in the cloud, before transmitting the data files to the cloud, the edge-side device needs to send a request to the cloud to transmit the data files, wherein the cloud is deployed with an electric power Internet of Things management platform. The data file is transmitted to the cloud only after receiving the feedback instruction sent by the cloud to confirm the transmission associated with the above request. The power data and the calculation results corresponding to the power data are directly stored in the cloud in the form of data files, and the cloud-edge synchronous storage of power data is directly realized at the data level, which simplifies the interactive process of cloud-edge collaboration and improves the efficiency of cloud-side processing of power data.

[0055] It should be noted that the data files generated by the edge side are transferred to the cloud based on the configured synchronization frequency through various file transfer protocols (such as HTTP, FTP, etc.), among which HTTP (Hyper Text Transfer Protocol): an application layer protocol used to transmit hypertext (such as web pages) in the network; FTP (File Transfer Protocol): a standard protocol for file transfer on the network, which uses a client / server model. The user connects to the FTP server program on the remote host through a client program that supports the FTP protocol. In addition, cloud-edge collaboration is a new computing model that combines cloud computing and edge computing, aiming to achieve more efficient and intelligent data processing and analysis. A distributed database system is established with a cloud-based time series database as the main node and each edge-side device time series database as a sub-node. The data calculated by the edge side is directly synchronized and stored in the cloud in the form of data files, and the cloud-edge synchronization storage of data is directly realized at the data level. There is no need to develop edge-side applications and cloud-side microservices for various devices, and cloud-edge collaborative communication of measurement data can be realized.

[0056] The cloud-edge collaboration of data is built on the basis of a distributed time series database cluster. The cluster is controlled by a synchronization process in the cloud-edge time series database, which is independent of other processes in the time series database. After the edge-side device collects and stores the real-time measurement data, it calculates the power quality index data and stores it on the edge in the form of a data file. Then, based on the distributed real-time database system of cloud-edge collaboration, the edge-side data is directly synchronized and stored in the cloud in the form of a data file, directly realizing the cloud-edge collaboration of real-time measurement data at the data level. At the same time, for the addition of other types of real-time measurement data, there is no need to develop the corresponding edge-side data forwarding application and the cloud-side data parsing and splitting microservices, which greatly reduces the development cost brought by the addition of different types of real-time measurement data.

[0057] Through the above scheme, power data is received. A predetermined storage template corresponding to the power data is searched in a pre-constructed database. In response to determining that the predetermined storage template is found, the power data is extracted according to the predetermined storage template to obtain an initial data file corresponding to the power data, so that the power data has a certain orderliness, thereby improving the utilization efficiency of the power data. Based on the initial data file, the power data is calculated to obtain a calculation result, the initial data file is merged with the calculation result to obtain a data file, and the power data is calculated on the edge side device, thereby reducing the computing pressure on the cloud. A request to transmit the data file is sent to the cloud, and in response to receiving a feedback instruction confirming the transmission associated with the request, the data file is transmitted to the cloud, which simplifies the interactive process of cloud-edge collaboration and improves the efficiency of cloud-side processing of power data.

[0058] In some embodiments, the initial data file includes power time points and power names; the power data is calculated based on the initial data file to obtain a calculation result, including: based on the power time points and the power names, statistically calculating the power data according to predetermined requirements to obtain the calculation result; and / or, based on the power time points and the power names, performing missing detection on the power data, and in response to determining that there is missing data in the power data, performing interpolation calculation on the power data to obtain the calculation result.

[0059] In this embodiment, statistical calculations include (1) calculation of power quality index statistical values, (2) calculation of power quality index event values, and (3) data aggregation calculations. Corresponding statistical calculations are performed according to predetermined requirements. (1) Calculation of power quality index statistical values ​​includes calculation of basic power quality statistical values ​​and calculation of power quality overrun statistical proportion. The function name for calculating basic power quality statistical values ​​is extremum. The input parameter of the function is a list of values ​​of a physical quantity within a predetermined time. The statistical calculation logic is to statistically calculate the maximum value, minimum value, mean value, or 95% probability maximum value of the physical quantity value within a predetermined time period, wherein the 95% probability maximum value refers to the physical quantity values ​​within a predetermined time period arranged in order from large to small, removing the 5% maximum value, and the maximum value among the remaining values. The statistical calculation results are finally output. The above physical quantities can be visually reflected as electric power names. The function name for calculating the power quality overrun statistical proportion is overrun_ratio. The input parameters of the function are a list of values ​​of a physical quantity within a predetermined time and upper and lower limit thresholds. The statistical calculation logic is: set an upper limit V for the input physical quantity value X max and the lower limit V min , calculate the total number of points N in this time period t , X>V max The number of points Nmax and X<V min The number of points N min , then the final output exceeds the upper limit ratio R max and the percentage of exceeding the lower limit R min The calculation results are as follows: max =N max / N t *100%, R min =N min / N t *100%. (2) The calculation of power quality index event values ​​includes a variety of predetermined events, for example, power outage time or voltage loss events. The function name of the power outage event is power_off. For example, the input parameters of the function are a list of voltage values ​​within 3 seconds and a nominal voltage value. The statistical calculation logic is: mark the situation where the maximum voltage within 3 seconds is less than 10% of the nominal voltage. When this situation occurs twice in a row, the output is a power outage event. The function name of the voltage loss event is ptuv_loss. For example, the input parameters of the function are a list of single-phase voltage and current values ​​within 1 minute, a rated voltage value, and a rated current value. The statistical calculation logic is: count the frequency of occurrence of single-phase voltage less than the rated voltage and current less than the rated current value. If there is, it is recorded as a voltage loss event. (3) The custom function name of data aggregation calculation is aggregate. The input parameters are a list of values ​​of a physical quantity within a period of time and a segmented time interval. The statistical calculation logic is: aggregate the input data according to the segmented time interval, calculate the number of points, mean, sum, and timestamp extreme value of the data in each time interval, and output the calculation results.

[0060] There may be missing data in the power data. In order to ensure the integrity of the power data, the power data needs to be repaired. The power data can be repaired through interpolation calculation. For example, the interpolation calculation can be cubic spline interpolation, where cubic spline interpolation (Cubic Spline Interpolation) is referred to as Spline interpolation. It is a smooth curve through a series of shape value points. Mathematically, it is a process of solving the three bending moment equations to obtain a curve function group. For example, the name of the custom function for data repair calculation is spline, and the input parameter is a list of values ​​of a physical quantity sampled at equal time intervals. The statistical calculation logic is: perform cubic spline interpolation fitting on the input numerical sequence data, repair and supplement the missing values, and finally output the data repair result.

[0061] like Figure 3 As shown, Figure 3This is a flow chart of the edge computing and cloud-edge collaboration method for power data of another embodiment of the present application. More computing requirements for power quality on the IoT management platform side are delegated to the edge devices. Based on the custom function library of the time series database, rich data computing capabilities such as power data statistical calculation and data repair are provided, so that the edge devices can carry more computing tasks, greatly reducing the pressure of cloud data computing and storage, reducing operation and maintenance costs, and improving system efficiency. Based on the custom function library of the time series database, the calculation logic of various power quality indicator statistics and indicator events is designed. The edge device side expands the edge computing capabilities that traditional systems do not have, allowing the edge device side to carry more computing tasks, greatly sharing the data computing pressure of the cloud IoT management platform.

[0062] In some embodiments, the method includes: in response to determining that a predetermined storage template corresponding to the power data is not found in the database, according to predetermined requirements, adding the predetermined storage template corresponding to the power data to the database through the human-computer interaction interface of the edge side device.

[0063] In this embodiment, in order to enable the edge side device to perform more types of calculations, if the predetermined storage template corresponding to the power data is not found in the database, the predetermined storage template corresponding to the power data is added to the database through the human-computer interaction interface according to the predetermined requirements. Through the function definition interface and configuration file provided by the edge side time series database, based on the power quality index calculation requirements of real-time measurement data, the name, input parameters, output type and specific calculation logic of the corresponding function are customized, and the customized function realizes the expansion and improvement of the edge side data computing capability.

[0064] By adjusting the database configuration file, the defined custom functions are registered in the running environment of the edge-side time series database, so that the edge-side time series database can recognize and call these custom functions. Based on the edge-side time series database, the relevant computing tasks are sent to the edge device. The edge-side time series database instance on the edge device will load the corresponding custom function code, execute the computing logic, and return the computing results.

[0065] In some embodiments, before transmitting the data file to the cloud, the method includes: packaging the data file.

[0066] In this embodiment, the data files stored after calculation are encapsulated to form a transmittable data unit. The encapsulation process generally includes compressing, differencing or other optimization operations on the files to reduce the file size and improve the transmission efficiency.

[0067] This application embodiment proposes an edge computing and cloud-edge collaboration method for power data, referring to Figure 4, applied to the cloud, the method comprises:

[0068] Step 201: Receive a request for transmitting a data file sent by an edge side device, and perform security monitoring on the edge side device corresponding to the request.

[0069] In this step, the data files received by the cloud are not secure, which may affect the security of the data in the cloud. In order to ensure the security of the data files received by the cloud, the cloud needs to first verify the edge device. Therefore, first receive the request for transmitting data files sent by the edge device, and perform security monitoring on the edge device corresponding to the request, thereby ensuring the security of the data in the cloud.

[0070] Step 202: In response to determining that the edge side device passes the security monitoring, a feedback instruction of confirming the transmission associated with the request is sent to the edge side device.

[0071] In this step, if the edge device passes the security monitoring, it means that the edge device is safe, and the cloud sends a feedback instruction of confirming transmission associated with the request to the edge device. By sending the feedback instruction of confirming transmission, the safety of the edge device is ensured.

[0072] Step 203, receiving a data file of the edge side device corresponding to the feedback instruction, wherein the data file includes an initial data file obtained by extracting power data according to a predetermined storage template in the edge side device, and a calculation result obtained by calculating the power data according to the initial data file.

[0073] In this step, the cloud receives the data file of the edge device corresponding to the feedback instruction, and the edge device sends the power data and the calculation results of the power data to the cloud in the form of a data file, wherein the power data needs to be extracted according to the predetermined storage template in the edge device and stored in the form of an initial data file; the calculation results obtained by calculating the power data according to the initial data file are stored in the initial data file to obtain a data file. The cloud-edge synchronous storage of power data is directly realized at the data level, which simplifies the interactive process of cloud-edge collaboration. It is possible to realize cloud-edge collaborative communication of measurement data without developing edge applications and cloud microservices for various devices, thereby improving the efficiency of cloud-side processing of power data.

[0074] Through the above scheme, a request for transmitting a data file sent by an edge-side device is received, and security monitoring is performed on the edge-side device corresponding to the request, thereby ensuring the security of the data in the cloud. In response to determining that the edge-side device has passed the security monitoring, a feedback instruction confirming the transmission associated with the request is sent to the edge-side device, thereby ensuring the security of the edge-side device. A data file of the edge-side device corresponding to the feedback instruction is received, wherein the data file includes an initial data file obtained by extracting power data according to a predetermined storage template in the edge-side device, and a calculation result obtained by calculating the power data according to the initial data file, thereby improving the efficiency of processing power data in the cloud.

[0075] In some embodiments, the determining that the edge side device passes the security monitoring includes: in response to determining that an identifier of the edge side device exists in a pre-built whitelist, determining that the edge side device passes the security monitoring.

[0076] In this embodiment, when the identifier of the edge device exists in the pre-built whitelist, it means that the edge device has been added to the whitelist of the cloud, the edge device is relatively safe, and it is determined that the edge device has passed the security monitoring. The process of adding the edge device to the whitelist of the cloud is as follows: for the timing database on the cloud, adjust the configuration script of the synchronization process, set its role to the data receiving and management end, add the identifier of the edge device to the synchronization whitelist, set the listening port and synchronization frequency, and start the data synchronization process on the cloud. Exemplarily, the identifier can be an IP. In addition, for the timing database of the edge device, adjust the configuration script of the synchronization process, set its role to the data sending end, and add the cloud server identifier to the sending destination identifier list. After setting the data interface and synchronization frequency, start the data synchronization process on the end side.

[0077] In some embodiments, it also includes: aggregating the data files received from all edge-side devices.

[0078] In this embodiment, the cloud can receive data files sent by multiple edge devices, and the cloud can summarize all data files, ensuring the comprehensiveness of the data stored in the cloud. It should be noted that after receiving the transmitted data files, the cloud time series database performs operations such as decompression and differential restoration, and adopts a consistency protocol to ensure that the data on all nodes remains consistent and synchronized, and finally stores the data in the cloud time series database, and supports cloud data visualization and other applications based on the computing and processing capabilities of the cloud real-time database.

[0079] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0080] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0081] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an edge computing and cloud-edge collaboration device for power data.

[0082] refer to Figure 5 The edge computing and cloud-edge collaboration device for power data is applied to edge side devices, including:

[0083] The first receiving module 10 is configured to receive power data.

[0084] The extraction module 20 is configured to search for a predetermined storage template corresponding to the power data in a pre-constructed database, and in response to determining that the predetermined storage template is found, extract the power data according to the predetermined storage template to obtain an initial data file corresponding to the power data.

[0085] The calculation module 30 is configured to calculate the power data based on the initial data file to obtain a calculation result, and merge the initial data file with the calculation result to obtain a data file.

[0086] The transmission module 40 is configured to send a request to transmit the data file to the cloud, and in response to receiving a feedback instruction confirming the transmission associated with the request, transmit the data file to the cloud.

[0087] The power data is received by the above-mentioned device. A predetermined storage template corresponding to the power data is searched in a pre-constructed database. In response to determining that the predetermined storage template is found, the power data is extracted according to the predetermined storage template to obtain an initial data file corresponding to the power data, so that the power data has a certain orderliness, thereby improving the utilization efficiency of the power data. Based on the initial data file, the power data is calculated to obtain a calculation result, the initial data file is merged with the calculation result to obtain a data file, and the power data is calculated on the edge side device, thereby reducing the computing pressure on the cloud. A request to transmit the data file is sent to the cloud, and in response to receiving a feedback instruction confirming the transmission associated with the request, the data file is transmitted to the cloud, which simplifies the interactive process of cloud-edge collaboration and improves the efficiency of cloud-side processing of power data.

[0088] In some embodiments, the initial data file includes power time points and power names; the calculation module is further configured to: based on the power time points and the power names, perform statistical calculations on the power data according to predetermined requirements to obtain the calculation results; and / or, based on the power time points and the power names, perform missing detection on the power data, and in response to determining that there is missing data in the power data, perform interpolation calculations on the power data to obtain the calculation results.

[0089] In some embodiments, an adding module is also included, and the adding module is configured to: in response to determining that a predetermined storage template corresponding to the power data is not found in the database, add the predetermined storage template corresponding to the power data to the database through the human-computer interaction interface of the edge side device according to predetermined requirements.

[0090] In some embodiments, before transmitting the data file to the cloud, the device further includes a packaging module, and the packaging module is configured to: package the data file.

[0091] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an edge computing and cloud-edge collaboration device for power data.

[0092] refer to Figure 6 The edge computing and cloud-edge collaboration device for power data is applied to the cloud, including:

[0093] The monitoring module 50 is configured to receive a request for transmitting a data file sent by an edge side device, and perform security monitoring on the edge side device corresponding to the request.

[0094] The sending module 60 is configured to send a feedback instruction of confirming transmission associated with the request to the edge side device in response to determining that the edge side device passes the security monitoring.

[0095] The second receiving module 70 is configured to receive a data file of the edge side device corresponding to the feedback instruction, wherein the data file includes an initial data file obtained by extracting power data according to a predetermined storage template in the edge side device, and a calculation result obtained by calculating the power data according to the initial data file.

[0096] Through the above-mentioned device, a request for transmitting a data file sent by an edge-side device is received, and security monitoring is performed on the edge-side device corresponding to the request, thereby ensuring the security of the data in the cloud. In response to determining that the edge-side device has passed the security monitoring, a feedback instruction confirming the transmission associated with the request is sent to the edge-side device, thereby ensuring the security of the edge-side device. A data file of the edge-side device corresponding to the feedback instruction is received, wherein the data file includes an initial data file obtained by extracting power data according to a predetermined storage template in the edge-side device, and a calculation result obtained by calculating the power data according to the initial data file, thereby improving the efficiency of processing power data in the cloud.

[0097] In some embodiments, the monitoring module is further configured to: in response to determining that an identifier of the edge side device exists in a pre-built whitelist, determine that the edge side device passes the security monitoring.

[0098] In some embodiments, a summarizing module is also included, and the summarizing module is configured to: summarize the data files received from all edge-side devices.

[0099] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0100] The device of the above-mentioned embodiment is used to implement the edge computing and cloud-edge collaboration method of the corresponding power data in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0101] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and run on the processor, and when the processor executes the program, it implements the edge computing and cloud-edge collaboration method of power data as described in any of the above embodiments.

[0102] Figure 7A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0103] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0104] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0105] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0106] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0107] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0108] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0109] The electronic device of the above-mentioned embodiment is used to implement the edge computing and cloud-edge collaboration method of the corresponding power data in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0110] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the edge computing and cloud-edge collaboration method of power data as described in any of the above embodiments.

[0111] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0112] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the edge computing and cloud-edge collaboration method of power data as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0113] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the edge computing and cloud-edge collaboration method for power data as described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.

[0114] It should be noted that the embodiments of the present application can be further described in the following manner:

[0115] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.

[0116] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0117] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0118] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0119] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0120] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0121] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0122] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. An edge computing and cloud-edge collaboration method for power data, characterized in that: Applied to edge devices, including: receiving power data; Searching for a predetermined storage template corresponding to the power data in a pre-built database, and in response to determining that the predetermined storage template is found, extracting the power data according to the predetermined storage template to obtain an initial data file corresponding to the power data; Based on the initial data file, the power data is calculated to obtain a calculation result, and the initial data file is combined with the calculation result to obtain a data file; A request for transmitting the data file is sent to a cloud, and in response to receiving a feedback instruction confirming the transmission associated with the request, the data file is transmitted to the cloud.

2. The method according to claim 1, characterized in that The initial data file includes power time point and power name; The calculating the power data based on the initial data file to obtain a calculation result includes: Based on the power time point and the power name, statistically calculate the power data according to predetermined requirements to obtain the calculation result; and / or, Based on the power time point and the power name, missing data is detected on the power data, and in response to determining that missing data exists in the power data, interpolation calculation is performed on the power data to obtain the calculation result.

3. The method according to claim 1, characterized in that The method comprises: In response to determining that a predetermined storage template corresponding to the power data is not found in the database, the predetermined storage template corresponding to the power data is added to the database through the human-computer interaction interface of the edge side device according to predetermined requirements.

4. The method according to claim 1, characterized in that: Before transmitting the data file to the cloud, the method includes: The data file is packaged.

5. An edge computing and cloud-edge collaboration method for power data, characterized in that: Applied in the cloud, including: Receive a request for transmitting a data file sent by an edge side device, and perform security monitoring on the edge side device corresponding to the request; In response to determining that the edge side device passes the security monitoring, sending a feedback instruction confirming the transmission associated with the request to the edge side device; Receive a data file of an edge side device corresponding to the feedback instruction, wherein the data file includes an initial data file obtained by extracting power data according to a predetermined storage template in the edge side device, and a calculation result obtained by calculating the power data according to the initial data file.

6. The method according to claim 5, characterized in that The determining that the edge-side device passes the security monitoring includes: In response to determining that the identifier of the edge-side device exists in the pre-built whitelist, it is determined that the edge-side device passes the security monitoring.

7. The method according to claim 5, characterized in that Also includes: Summarize the data files received from all edge devices.

8. An edge computing and cloud-edge collaboration device for power data, characterized in that: Applied to edge devices, including: A first receiving module, configured to receive power data; an extraction module, configured to search a pre-built database for a predetermined storage template corresponding to the power data, and in response to determining that the predetermined storage template is found, extract the power data according to the predetermined storage template to obtain an initial data file corresponding to the power data; A calculation module, configured to calculate the power data based on the initial data file to obtain a calculation result, and merge the initial data file with the calculation result to obtain a data file; The transmission module is configured to send a request to transmit the data file to the cloud, and in response to receiving a feedback instruction confirming the transmission associated with the request, transmit the data file to the cloud.

9. The device according to claim 8, characterized in that The initial data file includes power time points and power names; the calculation module is further configured to: Based on the power time point and the power name, statistically calculate the power data according to predetermined requirements to obtain the calculation result; and / or, Based on the power time point and the power name, missing data is detected on the power data, and in response to determining that missing data exists in the power data, interpolation calculation is performed on the power data to obtain the calculation result.

10. The device according to claim 8, characterized in that Also included is an adding module, wherein the adding module is configured to: In response to determining that a predetermined storage template corresponding to the power data is not found in the database, the predetermined storage template corresponding to the power data is added to the database through the human-computer interaction interface of the edge side device according to predetermined requirements.

11. The device according to claim 8, characterized in that Before transmitting the data file to the cloud, the device further includes a packaging module, which is configured to: The data file is packaged.

12. An edge computing and cloud-edge collaboration device for power data, characterized in that: Applied in the cloud, including: A monitoring module is configured to receive a request for transmitting a data file sent by an edge side device, and perform security monitoring on the edge side device corresponding to the request; a sending module, configured to send a feedback instruction of confirming transmission associated with the request to the edge side device in response to determining that the edge side device passes the security monitoring; The second receiving module is configured to receive a data file of an edge side device corresponding to the feedback instruction, wherein the data file includes an initial data file obtained by extracting power data according to a predetermined storage template in the edge side device, and a calculation result obtained by calculating the power data according to the initial data file.

13. The device according to claim 12, characterized in that The monitoring module is further configured to: In response to determining that the identifier of the edge-side device exists in the pre-built whitelist, it is determined that the edge-side device passes the security monitoring.

14. The device according to claim 12, characterized in that Also included is a summary module, wherein the summary module is configured to: Summarize the data files received from all edge devices.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

16. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.