Electric quantity data processing method and electronic equipment

By obtaining and synchronizing the local power data of the energy management system after the network is restored, the power data calculation deviation and data synchronization problems caused by network problems are solved, and the consistency between the energy management system and the cloud platform data is achieved.

CN119520543APending Publication Date: 2025-02-25SOLAR POWER NETWORK TECHNOLOGY (ZHEJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411566573.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

Due to network problems, there is a deviation in the calculation of power data between the energy management system and the cloud platform. After the network is disconnected, the cloud platform and EMS local data cannot be synchronized.

Method used

After the network is restored, the charge and discharge data and power income data of the energy management system locally during the outage period are obtained and synchronized to the cloud platform.

Benefits of technology

This avoids the calculation deviation of power data caused by network problems and ensures the consistency of the energy management system and cloud platform data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520543A_ABST
    Figure CN119520543A_ABST
Patent Text Reader

Abstract

The invention relates to an electric quantity data processing method and electronic equipment. The method comprises the steps that after a communication network between an energy management system and a cloud platform recovers from a network disconnection state to a normal connection state, local electric quantity data of the energy management system in the network disconnection period are acquired, and the electric quantity data comprise charging and discharging quantity data and electric quantity income data; and synchronizing the electric quantity data between the energy management system and the cloud platform. The technical problems that deviation occurs in electric quantity data calculation due to network problems between the energy management system and the cloud platform, and local data of the cloud platform and the EMS cannot be synchronized after network disconnection are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power data processing, and in particular to a power data processing method and electronic equipment. Background Art

[0002] There are two scenarios that need to be handled separately when the current Energy Management System (EMS) synchronizes data to the cloud platform: normal real-time data reporting and data reporting after network disconnection. The scenario of normal real-time data reporting is relatively simple. It only requires collecting relevant data that needs to be reported to the cloud platform and uploading it in real time. However, there are some problems with the scenario of data reporting after network disconnection. For example, the local data of the cloud platform and EMS cannot be synchronized after the network is disconnected; the calculation of local charging and discharging and revenue of the cloud platform and EMS is inconsistent; the cloud platform and EMS local repeated calculation consumes resources, etc. Summary of the invention

[0003] The embodiments of the present application provide a method for processing electricity data and an electronic device, which at least solve the problem that the electricity data calculation between the energy management system and the cloud platform is biased due to network problems, and the problem that the cloud platform and the EMS local data cannot be synchronized after the network is disconnected.

[0004] According to one aspect of an embodiment of the present application, a method for processing electricity data is provided, including: after the communication network between an energy management system and a cloud platform is restored from a disconnected state to a normally connected state, obtaining the local electricity data of the energy management system during the disconnection period, wherein the electricity data includes charging and discharging data and electricity revenue data; and synchronizing the electricity data between the energy management system and the cloud platform.

[0005] Optionally, the local charge and discharge data of the energy management system during the network outage is obtained, including: subtracting the charge and discharge data at the previous moment from the charge and discharge data at the latter moment of two adjacent moments in a day to obtain the difference in the charge and discharge data at the two adjacent moments; deleting the negative values ​​in the difference in the charge and discharge data at all two adjacent moments in a day, and accumulating the remaining charge and discharge data differences to obtain daily charge and discharge data, wherein one charge and discharge data is saved every day.

[0006] Optionally, obtaining local electricity revenue data of the energy management system during the network outage includes: sending daily charge and discharge data to the cloud platform; obtaining the electricity revenue data sent by the cloud platform, wherein the electricity revenue data sent by the cloud platform is calculated based on daily electricity price information during the network outage and daily charge and discharge data stored on the cloud platform.

[0007] Optionally, obtaining the local electricity revenue data of the energy management system during the network outage also includes: sending the daily charge and discharge data to the cloud platform, and obtaining the daily electricity price information during the network outage from the cloud platform; calculating the electricity revenue data based on the daily electricity price information and the daily charge and discharge data; and synchronizing the electricity revenue data to the cloud platform.

[0008] Optionally, obtaining the local electricity revenue data of the energy management system during the network outage also includes: calculating the electricity revenue data based on the daily electricity price information and daily charging and discharging data stored locally in the energy management system; and synchronizing the daily charging and discharging data and electricity revenue data to the cloud platform.

[0009] Optionally, obtaining the local electricity revenue data of the energy management system during the network outage also includes: sending the charging and discharging data of a preset number of days among all the charging and discharging data during the network outage to the cloud platform; obtaining first electricity revenue data sent by the cloud platform, wherein the first electricity revenue data is calculated based on the daily electricity price information during the network outage stored in the cloud platform and the charging and discharging data of the preset number of days; calculating the second electricity revenue data based on the daily electricity price information stored locally in the energy management system and the remaining charging and discharging data; comparing the first electricity revenue data and the second electricity revenue data, and determining the local electricity revenue data of the energy management system during the network outage according to the comparison result.

[0010] Optionally, the local electricity revenue data of the energy management system during the network outage is determined based on the comparison result, including: determining the difference between a first ratio of the first electricity revenue data to the second electricity revenue data and a second ratio of the charge and discharge data of a preset number of days to the remaining charge and discharge data; if the absolute value of the difference is less than or equal to a preset threshold, adding the first electricity revenue data to the second electricity revenue data to obtain the local electricity revenue data of the energy management system during the network outage; if the absolute value of the difference is greater than the preset threshold, calculating the local electricity revenue data of the energy management system during the network outage based on the first electricity revenue data and the ratio of the charge and discharge data of the preset number of days to the total charge and discharge data; and synchronizing the electricity revenue data to the cloud platform.

[0011] Optionally, the charge and discharge data of a preset number of days among all the charge and discharge data during the network outage period are sent to the cloud platform, including: obtaining the server utilization rate of the cloud platform; determining the proportion of the charge and discharge data sent to the cloud platform to the total charge and discharge data based on the server utilization rate.

[0012] Optionally, the above method also includes: before sending the charge and discharge data or the power revenue data to the cloud platform, sending a request upload instruction to the cloud platform; after receiving a response instruction from the cloud platform in response to the request upload instruction, sending the charge and discharge data or the power revenue data to the cloud platform, wherein the response instruction is used to indicate that sending data to the cloud platform is allowed.

[0013] Optionally, the above method also includes: when the communication network between the energy management system and the cloud platform is in normal connection, obtaining the local daily charge and discharge data of the energy management system; obtaining the daily electricity price information from the cloud platform; calculating the daily electricity revenue data based on the daily charge and discharge data and the daily electricity price information, and synchronizing the daily electricity revenue data to the cloud platform.

[0014] Optionally, the above method also includes: obtaining charging and discharging data of the downstream devices of the energy management system; and synchronizing the charging and discharging data of the downstream devices to the cloud platform.

[0015] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including: a processor, and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0016] Beneficial effects of the embodiments of the present application:

[0017] In an embodiment of the present application, a method for processing electricity data is provided. After the network between the energy management system and the cloud platform is restored, the local charging and discharging data and electricity revenue data of the energy management system during the network outage are obtained, and then the charging and discharging data and electricity revenue data are synchronized to the cloud platform, thereby achieving the technical effect of avoiding deviations in the calculation of the local charging and discharging data and electricity revenue data of the energy management system due to network problems, and ensuring the consistency of the data between the energy management system and the cloud platform.

[0018] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flow chart of a method for processing power data according to an embodiment of the present application;

[0021] Figure 2 Schematic diagram of the structure of the electronic device of this embodiment. DETAILED DESCRIPTION

[0022] Embodiments of the present embodiment will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present embodiment are shown in the accompanying drawings, it should be understood that the present embodiment can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, which are instead provided for a more thorough and complete understanding of the present embodiment. It should be understood that the drawings and embodiments of the present embodiment are only for exemplary purposes and are not intended to limit the scope of protection of the present embodiment.

[0023] In the related art, the calculation of power data between the energy management system and the cloud platform is deviated due to network problems, and the cloud platform and EMS local data cannot be synchronized after the network is disconnected. In order to solve this problem, the embodiments of the present application provide relevant solutions, which are described in detail below.

[0024] Figure 1 is a flow chart of a method for processing power data according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0025] Step S102, after the communication network between the energy management system and the cloud platform is restored from a disconnected state to a normally connected state, the local power data of the energy management system during the disconnected state is obtained, wherein the power data includes charging and discharging data and power revenue data.

[0026] An energy management system is a system used to monitor, manage, and optimize energy usage. It is often used in industrial facilities, commercial buildings, or home environments to improve energy efficiency, reduce waste, and lower operating costs. The meaning and application of EMS vary in different fields.

[0027] In the power industry, EMS is a complex software system that helps power companies monitor and control the operation of the power grid in real time. It includes functional modules such as data acquisition and monitoring, load forecasting, automatic power generation control, and economic dispatch. EMS can assist dispatchers in making decisions, ensure the stability and reliability of the power system, and effectively respond to changes in power demand.

[0028] Step S104, synchronizing power data between the energy management system and the cloud platform.

[0029] In an embodiment of the present application, when the communication network between the energy management system and the cloud platform is restored, the local charging and discharging data and power revenue data of the energy management system during the network disconnection period are obtained and then synchronized to the cloud platform.

[0030] The above method provided in the embodiment of the present application achieves the technical effect of avoiding deviations in the calculation of local charging and discharging data and power revenue data of the energy management system due to network problems, and ensuring the consistency of data between the energy management system and the cloud platform.

[0031] According to an optional embodiment of the present application, step S102 is executed to obtain the local charge and discharge data of the energy management system during the network outage, which is achieved by the following method: subtract the charge and discharge data at the previous moment from the charge and discharge data at the latter moment of two adjacent moments in a day to obtain the difference in the charge and discharge data at the two adjacent moments; delete the negative values ​​in the difference in the charge and discharge data at all two adjacent moments in a day, and accumulate the remaining charge and discharge data differences to obtain daily charge and discharge data, wherein one charge and discharge data is saved every day.

[0032] In an embodiment of the present application, the daily power consumption (one record per day) calculated in the EMS power query database, and all data from the time of network disconnection to the day when the network is restored, are sent to the cloud platform.

[0033] The specific calculation method of daily charge and discharge is that EMS calculates the difference between adjacent data of the day based on local data (subtracting historical time from earlier time, excluding values ​​with negative difference, and accumulating the power of the day). The daily power is saved to the database, and the data is updated on the same day, and only one data is retained every day. The accumulated power is obtained by the cloud platform accumulating the daily power of different EMS according to the power station dimension.

[0034] The following is a description of the calculation method of the daily charge and discharge amount in conjunction with a specific embodiment:

[0035] The conventional method of calculating the daily charge and discharge amount is to subtract the charge and discharge amount at 0 o'clock every day from the charge and discharge amount at 24 o'clock every day to obtain the daily charge and discharge amount.

[0036] In the embodiment of the present application, the charge and discharge amount of each hour is determined in units of hours, and then the charge and discharge amount of each hour is accumulated to obtain the charge and discharge amount of the whole day. For example, the charge and discharge amount at 1 o'clock is subtracted from the charge and discharge amount at 0 o'clock to obtain the charge and discharge amount of the first hour of the day; then the charge and discharge amount at 1 o'clock is subtracted from the charge and discharge amount at 2 o'clock to obtain the charge and discharge amount of the second hour of the day; and so on, the charge and discharge amount of 24 hours in a day is obtained respectively.

[0037] Under normal circumstances, the charge and discharge amount will increase with the passage of time. Therefore, the difference between the charge and discharge amount at the next moment and the charge and discharge amount at the previous moment must be a positive value. If a negative value appears, it means that there is an error in the statistical data. Therefore, after obtaining the charge and discharge amount of 24 hours in a day, the negative values ​​of these 24 values ​​are eliminated, and the remaining values ​​are accumulated to obtain the charge and discharge amount of a day.

[0038] It is understandable that the charge and discharge amount every two hours can also be counted, and finally 12 charge and discharge amount values ​​can be obtained. The negative value is taken from the 12 charge and discharge amount values, and the remaining charge and discharge amount values ​​are accumulated to obtain the charge and discharge amount for one day.

[0039] The scheme of calculating the daily charge and discharge amount by the above method provided in the present application can achieve the technical effect of more accurately counting the daily charge and discharge amount compared with the conventional scheme of calculating the daily charge and discharge amount.

[0040] According to an optional embodiment of the present application, executing step S102 to obtain the local electricity revenue data of the energy management system during the network outage can be achieved by the following method: sending the daily charge and discharge data to the cloud platform; obtaining the electricity revenue data sent by the cloud platform, wherein the electricity revenue data sent by the cloud platform is calculated based on the daily electricity price information during the network outage and the daily charge and discharge data stored in the cloud platform.

[0041] Since there is no online electricity price in the EMS during the network outage, the first method of calculating the electricity revenue data provided by the embodiment of the present application is that after the network is restored, the EMS sends all the charging and discharging data to the cloud platform, and the cloud platform calculates the electricity revenue data during the network outage based on the online electricity price information, and then synchronizes it to the EMS to update its electricity revenue data. The electricity revenue data calculated by the cloud platform shall prevail, and the data on both sides shall remain consistent.

[0042] When using the first method to calculate the power revenue data, the cloud platform needs to wait until the EMS sends all the disconnection data before calculating the power revenue data, and the revenue update of both parties will be delayed for a long time. In addition, when there are many EMS disconnected from the network, the cloud platform consumes more computing resources in a short time.

[0043] According to an optional embodiment of the present application, executing step S102 to obtain the local electricity revenue data of the energy management system during the network outage can also be achieved by the following method: sending the daily charge and discharge data to the cloud platform, and obtaining the daily electricity price information during the network outage from the cloud platform; calculating the electricity revenue data based on the daily electricity price information and the daily charge and discharge data; synchronizing the electricity revenue data to the cloud platform.

[0044] The second method for calculating electricity revenue data provided by the embodiment of the present application is that after the network is restored, the EMS sends all charging and discharging data to the cloud platform, and at the same time obtains the electricity price information during the network outage from the cloud platform. The EMS calculates and updates the local electricity revenue data and sends it to the cloud platform.

[0045] When the second method mentioned above is used to calculate the power revenue data, the EMS will consume certain resources when calculating and updating the local power revenue data.

[0046] According to another optional embodiment of the present application, executing step S102 to obtain the local electricity revenue data of the energy management system during the network outage can also be achieved by the following method: calculating the electricity revenue data based on the daily electricity price information and daily charging and discharging data stored locally in the energy management system; synchronizing the daily charging and discharging data and the electricity revenue data to the cloud platform.

[0047] The third method for calculating electricity revenue data provided in the embodiment of the present application is that after the network is restored, the EMS sends all charging and discharging data to the cloud platform, and at the same time sends the calculated daily electricity revenue data (the electricity revenue data is calculated according to the EMS local electricity price during the network outage) directly to the cloud platform.

[0048] When the third method is used to calculate the electricity revenue data, the electricity revenue data during the network outage may be calculated inaccurately due to the update of electricity prices during the network outage.

[0049] Among the above three solutions for calculating electricity revenue data, the first and second solutions can ensure the accuracy of electricity revenue data and will calculate the results according to the latest electricity prices. The first solution consumes more cloud resources and has a longer time lag; the second solution consumes a certain amount of EMS local computing resources, and the data can be updated and synchronized in time. The third solution is the simplest and does not require additional computing resources, but the electricity revenue data may be inaccurate during the network outage.

[0050] In view of the shortcomings of the above three solutions, the embodiment of the present application also proposes the following fourth solution for calculating the electricity revenue data.

[0051] As an optional embodiment of the present application, executing step S102 to obtain the local electricity revenue data of the energy management system during the network outage can also be achieved by the following method: sending the charging and discharging data of a preset number of days among all the charging and discharging data during the network outage to the cloud platform; obtaining the first electricity revenue data sent by the cloud platform, wherein the first electricity revenue data is calculated based on the daily electricity price information during the network outage stored in the cloud platform and the charging and discharging data of the preset number of days; calculating the second electricity revenue data based on the daily electricity price information stored locally in the energy management system and the remaining charging and discharging data; comparing the first electricity revenue data and the second electricity revenue data, and determining the local electricity revenue data of the energy management system during the network outage according to the comparison result.

[0052] The fourth method for calculating the electricity revenue data provided by the embodiment of the present application is to upload a part of the charging and discharging data to the cloud platform, where the electricity revenue is calculated based on the online electricity price, and the remaining part of the charging and discharging data is stored in the EMS, where the electricity revenue is calculated based on the local electricity price. The electricity revenue data calculated by both parties are then compared to determine the total electricity revenue data.

[0053] In some optional embodiments of the present application, the local electricity revenue data of the energy management system during the network outage is determined according to the comparison result, including the following steps: determining the difference between a first ratio of the first electricity revenue data to the second electricity revenue data and a second ratio of the charge and discharge data of a preset number of days to the remaining charge and discharge data; if the absolute value of the difference is less than or equal to a preset threshold, adding the first electricity revenue data to the second electricity revenue data to obtain the local electricity revenue data of the energy management system during the network outage; if the absolute value of the difference is greater than the preset threshold, calculating the local electricity revenue data of the energy management system during the network outage based on the ratio of the first electricity revenue data and the charge and discharge data of the preset number of days to the total charge and discharge data; and synchronizing the electricity revenue data to the cloud platform.

[0054] Taking the proportion of charging and discharging data uploaded to the cloud platform as 50% as an example, assuming that from network disconnection to recovery, a total of 30 charging and discharging data are stored locally in the EMS (one per day, a total of 30 days of data), the charging and discharging data for the first 15 days are uploaded to the cloud platform, and the electricity revenue is calculated (the calculated electricity revenue is the first electricity revenue data), and the charging and discharging data for the last 15 days are calculated locally in the EMS (the calculated electricity revenue is the second electricity revenue data).

[0055] Then, the first power revenue data and the second power revenue data are compared. Under normal circumstances, the first power revenue data and the second power revenue data are not much different. Therefore, if the difference between the first power revenue data and the second power revenue data is within the preset range, it means that the first power revenue data and the second power revenue data are both accurate. The first power revenue data and the second power revenue data are added to obtain the total power revenue data. If the difference between the first power revenue data and the second power revenue data is not within the preset range, the first power revenue data (calculated by the cloud platform) shall prevail, and the first power revenue data shall be multiplied by 2 to obtain the total power revenue data.

[0056] Similarly, if the proportion of charge and discharge data uploaded to the cloud platform is not 50% (for example, 20%), when comparing the first power revenue data and the second power revenue data, it is necessary to confirm whether the first power revenue data is about 1 / 4 of the second power revenue data. If the ratio of the first power revenue data to the second power revenue data is about 1 / 4, add the first power revenue data and the second power revenue data to obtain the total power revenue data. If the ratio of the first power revenue data to the second power revenue data is much greater than 1 / 4, take the first power revenue data as the standard and divide the first power revenue data by 1 / 4 to obtain the total power revenue data.

[0057] It should be noted that, in either case, the first electricity revenue data shall prevail, because the first electricity revenue data is calculated on the cloud platform based on the latest electricity price.

[0058] The fourth method mentioned above is used to calculate the power revenue data, and the power data is distributed to the cloud platform and EMS local ends for processing and calculating the revenue. This can not only reduce the resource consumption of the cloud platform and EMS local, but also solve the problem of inaccurate power revenue.

[0059] As an optional embodiment of the present application, the charging and discharging data of a preset number of days among all the charging and discharging data during the network outage period are sent to the cloud platform, including the following steps: obtaining the server utilization rate of the cloud platform; determining the proportion of the charging and discharging data sent to the cloud platform to the total charging and discharging data based on the server utilization rate.

[0060] As mentioned above, a part of the charge and discharge data is uploaded to the cloud platform, where the power revenue is calculated based on the online electricity price, and the remaining part of the charge and discharge data is stored locally in the EMS, where the power revenue is calculated based on the local electricity price. In specific implementation, the proportion of data uploaded to the cloud platform can be determined based on the utilization rate of the EMS local server and the utilization rate of the cloud platform server. For example, if the utilization rate of the cloud platform server is high, the proportion of data uploaded to the cloud platform is low; if the utilization rate of the cloud platform server is low, the proportion of data uploaded to the cloud platform is high.

[0061] Through the above technical solution, by determining the proportion of data uploaded to the cloud platform according to the utilization rate of the EMS local server and the utilization rate of the cloud platform server, the resource consumption of the cloud platform and EMS can be balanced and the overall performance of the cloud platform and EMS can be improved.

[0062] In some optional embodiments of the present application, before sending the charge and discharge data or the power revenue data to the cloud platform, it is also necessary to send a request upload instruction to the cloud platform; after receiving a response instruction from the cloud platform in response to the request upload instruction, the charge and discharge data or the power revenue data is sent to the cloud platform, wherein the response instruction is used to indicate that sending data to the cloud platform is allowed.

[0063] When there are a large number of EMSs and the network is restored at the same time, resulting in a high concurrency, if the disconnected data is sent to the cloud platform at the same time, it will cause excessive pressure on the cloud platform server. Therefore, EMS will uniformly send a request upload instruction before uploading, and upload after receiving a response from the cloud platform that the upload can be made. If no instruction is received, the EMS will queue until the upload instruction is obtained.

[0064] The data distribution upload solution can reduce the pressure on cloud platform servers during peak hours.

[0065] In other optional embodiments of the present application, when the communication network between the energy management system and the cloud platform is in normal connection, the local daily charge and discharge data of the energy management system is obtained; the daily electricity price information is obtained from the cloud platform; the daily electricity revenue data is calculated based on the daily charge and discharge data and the daily electricity price information, and the daily electricity revenue data is synchronized to the cloud platform.

[0066] When there is no network disconnection between the EMS and the cloud platform and the communication connection is normal, the charge and discharge data of the day are obtained (the calculation method is the same as the calculation method of the charge and discharge data of the day mentioned above).

[0067] Then, EMS obtains electricity price information from the cloud platform, combines it with the calculated electricity revenue data for the day, and saves it to the database. The data is updated on the same day, and only one piece of data is kept and uploaded to the cloud platform every day. The accumulated revenue is not reported, mainly considering that the data may be brought to the new power station without cleaning up after the EMS switches the power station. The accumulated revenue is calculated by the cloud platform based on the daily revenue data.

[0068] In some optional embodiments of the present application, the charging and discharging data of the devices mounted downstream of the energy management system are obtained; and the charging and discharging data of the devices mounted downstream are synchronized to the cloud platform.

[0069] In the embodiment of the present application, the charge and discharge data of the EMS-connected equipment are reported to the cloud platform, including the charge and discharge data of the electric meter, inverter, and battery. The statistical granularity needs to be in the hourly dimension to facilitate the display of the power statistics chart within a day. The above data is sent in json format via mqtt, and the cloud platform automatically parses and stores it.

[0070] MQTT, short for Message Queuing Telemetry Transport, is a lightweight publish / subscribe messaging protocol designed for low-bandwidth and unreliable networks. MQTT is well suited for communication between IoT devices because it takes up few resources, can support a large number of concurrent connections, and enables efficient data exchange.

[0071] JSON is a lightweight data exchange format that is easy for people to read and write, and easy for machines to parse and generate. JSON is based on a subset of the JavaScript programming language, but it is independent of language and platform and can be supported by any modern programming language.

[0072] By reporting the charge and discharge data of EMS devices to the cloud platform in real time, users can check the operating status of EMS devices.

[0073] The above-mentioned technical solution provided in this application avoids the problem of deviation in the calculation of local charging and discharging data and electricity revenue data of the energy management system due to network problems. The data consistency of EMS and cloud platform is ensured through the synchronization mechanism. Users can query the data they need through multiple platforms.

[0074] The embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program executable by the at least one processor, and the computer program is used to enable the electronic device to perform the method of the embodiment of the present application when executed by the at least one processor.

[0075] An embodiment of the present application also provides a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present application.

[0076] The embodiment of the present application also provides a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present application.

[0077] refer to Figure 2, the structural block diagram of the electronic device that can be used as the server or client of the embodiment of the present application will now be described, which is an example of the hardware device that can be applied to various aspects of the present application. The electronic device is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present application described and / or required herein.

[0078] like Figure 2 As shown, the electronic device includes a computing unit 201, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 202 or a computer program loaded from a storage unit 208 into a random access memory (RAM) 203. In the RAM 203, various programs and data required for the operation of the electronic device can also be stored. The computing unit 201, the ROM 202, and the RAM 203 are connected to each other via a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

[0079] Multiple components in the electronic device are connected to the I / O interface 205, including: an input unit 206, an output unit 207, a storage unit 208, and a communication unit 209. The input unit 206 can be any type of device that can input information to the electronic device, and the input unit 206 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device. The output unit 207 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 208 can include but is not limited to a disk, an optical disk. The communication unit 209 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0080] The computing unit 201 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 201 include, but are not limited to, a CPU, a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 201 performs the various methods and processes described above. For example, in some embodiments, the method embodiments of the present application may be implemented as a computer program, which is tangibly contained in a machine-readable medium, such as a storage unit 208. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via ROM 202 and / or communication unit 209. In some embodiments, the computing unit 201 may be configured to perform the above method in any other appropriate manner (e.g., by means of firmware).

[0081] The computer program for implementing the method of the embodiment of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0082] In the context of the present application embodiment, machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable signal medium can include but is not limited to electronic, magnetic, optical, electromagnetic or infrared systems, devices or equipment, or any suitable combination of the above. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0083] It should be noted that the term "including" and its variations used in the embodiments of the present application are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The modifications of "one" and "multiple" mentioned in the embodiments of the present application are illustrative and not restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0084] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0085] The various steps described in the method implementation methods provided in the embodiments of the present application can be performed in different orders and / or in parallel. In addition, the method implementation methods may include additional steps and / or omit the steps shown. The scope of protection of the present application is not limited in this respect.

[0086] The term "embodiment" in this specification refers to specific features, structures or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments refer to each other. In particular, for the device, equipment, and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment.

[0087] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A method for processing electric quantity data, characterized in that: include: After the communication network between the energy management system and the cloud platform is restored from a disconnected state to a normal connected state, the local power data of the energy management system during the disconnected state is obtained, wherein the power data includes charge and discharge data and power revenue data; The power data is synchronized between the energy management system and the cloud platform.

2. The method according to claim 1, characterized in that The local charge and discharge data of the energy management system during the network outage is obtained, including: The difference between the charge and discharge data at the two adjacent moments of the day is obtained by subtracting the charge and discharge data at the previous moment from the charge and discharge data at the latter moment; The negative values ​​in the difference values ​​of the charge and discharge data at two adjacent moments in each day are deleted, and the remaining charge and discharge data differences are accumulated to obtain the daily charge and discharge data, wherein one piece of the charge and discharge data is saved every day.

3. The method according to claim 2, characterized in that The local power revenue data of the energy management system during the network outage is obtained, including: Sending the daily charge and discharge data to the cloud platform; The electricity revenue data sent by the cloud platform is obtained, wherein the electricity revenue data sent by the cloud platform is calculated based on the daily electricity price information during the network outage period stored by the cloud platform and the daily charge and discharge data.

4. The method according to claim 2, characterized in that The local power revenue data of the energy management system is obtained during the network outage, further comprising: Sending the daily charge and discharge data to a cloud platform, and obtaining daily electricity price information during the network outage from the cloud platform; Calculate the electricity revenue data based on the daily electricity price information and the daily charge and discharge data; The electricity revenue data is synchronized to the cloud platform.

5. The method according to claim 2, characterized in that: The local power revenue data of the energy management system is obtained during the network outage, further comprising: Calculating the electricity revenue data based on the daily electricity price information and the daily charge and discharge data stored locally in the energy management system; The daily charge and discharge data and the power revenue data are synchronized to the cloud platform.

6. The method according to claim 2, characterized in that The local power revenue data of the energy management system is obtained during the network outage, further comprising: Sending the charge and discharge data of a preset number of days among all the charge and discharge data during the network outage to the cloud platform; Acquire first electricity revenue data sent by the cloud platform, wherein the first electricity revenue data is calculated based on the daily electricity price information during the network outage period stored by the cloud platform and the charge and discharge data of the preset number of days; Calculating second electricity revenue data based on daily electricity price information and remaining charge and discharge quantity data stored locally in the energy management system; The first power revenue data and the second power revenue data are compared, and the local power revenue data of the energy management system during the network disconnection period is determined according to the comparison result.

7. The method according to claim 6, characterized in that The local power revenue data of the energy management system during the network outage is determined according to the comparison result, including: Determine a difference between a first ratio of the first power revenue data to the second power revenue data and a second ratio of the charge and discharge data of the preset number of days to the remaining charge and discharge data; If the absolute value of the difference is less than or equal to a preset threshold, the first power revenue data is added to the second power revenue data to obtain the local power revenue data of the energy management system during the network disconnection period; If the absolute value of the difference is greater than the preset threshold, the local power revenue data of the energy management system during the network disconnection period is calculated based on the first power revenue data and the ratio of the charge and discharge data of the preset number of days to the total charge and discharge data; The electricity revenue data is synchronized to the cloud platform.

8. The method according to claim 6, characterized in that Sending the charge and discharge data of a preset number of days in all the charge and discharge data during the network outage to the cloud platform includes: Obtaining the server utilization rate of the cloud platform; The proportion of the charge and discharge data sent to the cloud platform to the total charge and discharge data is determined according to the server usage rate.

9. The method according to any one of claims 3 to 8, characterized in that The method further comprises: Before sending the charge and discharge data or the power revenue data to the cloud platform, sending a request upload instruction to the cloud platform; After receiving a response instruction from the cloud platform in response to the request upload instruction, the charge and discharge data or the power revenue data is sent to the cloud platform, wherein the response instruction is used to indicate permission to send data to the cloud platform.

10. The method according to claim 1, characterized in that The method further comprises: When the communication network between the energy management system and the cloud platform is in normal connection, obtaining the local daily charge and discharge data of the energy management system; Obtaining the current day’s electricity price information from the cloud platform; The current day's electricity revenue data is calculated based on the current day's charge and discharge data and the current day's electricity price information, and the current day's electricity revenue data is synchronized to the cloud platform.

11. The method according to claim 1, characterized in that: The method further comprises: Obtaining charging and discharging data of the devices connected to the energy management system; The charging and discharging data of the downstream device are synchronized to the cloud platform.

12. An electronic device comprising: A processor, and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 11.