Data processing method, electronic equipment and storage medium

By collecting and heterogeneous analysis data in the energy storage system, and based on the preset sorting rules, the data is sorted and pushed to solve the problem of low real -time data processing efficiency, and the effective monitoring and management of the energy storage system is ensured.

CN119356978APending Publication Date: 2025-01-24SOLAR POWER NETWORK TECHNOLOGY (ZHEJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411411526.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the energy storage system, under the high concurrency of real-time data and other categories of data, the processing efficiency is low, which affects the timely analysis of real-time data and the effective monitoring and management of energy storage systems.

Method used

By receiving the prompt information from the upstream device, the data of each bus device set is collected and heterogeneous analysis is performed. If the data length exceeds the communication window limit, the data is sorted based on the preset sorting rules and the appropriate data block is determined for push.

Benefits of technology

Ensure the timely push of real-time data, improve the processing efficiency of the receiving end, and ensure the effective monitoring and management of the energy storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356978A_ABST
    Figure CN119356978A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method, electronic equipment and a storage medium. The method comprises the following steps: receiving prompt information of an uplink device; obtaining first data corresponding to each bus equipment set according to data transmitted by each bus equipment set through a corresponding bus; performing heterogeneous analysis on the first data corresponding to each bus equipment set to obtain second data; if the second length of the second data is greater than the first length, sorting the second data based on a preset sorting rule to obtain a sorting result; determining third data from the second data according to the sorting result and the first length; and pushing the third data in the communication window according to the starting time. According to the method, effective monitoring of the energy storage system can be ensured.
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, and in particular to a data processing method, an electronic device and a storage medium. Background Art

[0002] In energy storage systems, there are many types of real-time data that need to be processed. Since such real-time data has extremely high requirements for real-time performance, the energy storage system needs to effectively and frequently push it uplink to the designated receiving end, such as data centers and cloud platforms, so that the receiving end can perform real-time monitoring, analysis and management. In addition, the energy storage system also includes other types of data, which have relatively low requirements for real-time performance and can be pushed uplink to the receiving end at a low frequency.

[0003] In the process of uplink push, multiple buses are usually used concurrently to push all data indiscriminately, and the receiving end will process the data according to the order in which the data is received. In the case of high concurrency between real-time data and other types of data, processing too much other types of data will affect the processing efficiency of real-time data, and it will be impossible to analyze real-time data in a timely manner, thus affecting the effective monitoring and management of the energy storage system. Summary of the invention

[0004] The embodiments of the present application disclose a data processing method, an electronic device, and a storage medium, which solve the technical problem that the related technology cannot ensure effective monitoring of the energy storage system.

[0005] The present application provides a data processing method, which is applied to a first device, and the method includes: receiving prompt information from an uplink device, the prompt information is used to indicate a period of a communication window and a start time of the communication window, the communication window being a time period for the first device to communicate with a second device, and a first length representing data transmitted within the time period; obtaining first data corresponding to each bus device set according to data transmitted by each bus device set through a corresponding bus; performing heterogeneous analysis on the first data corresponding to each bus device set to obtain second data; if the second length of the second data is greater than the first length, sorting the second data based on a preset sorting rule to obtain a sorting result; determining third data from the second data according to the sorting result and the first length; and pushing the third data within the communication window according to the start time.

[0006] In some embodiments of the present application, the heterogeneous parsing of the first data corresponding to each bus device set to obtain the second data includes: converting the format of the first data into a preset data format, and marking the data category of the first data corresponding to each bus device set to obtain the data category corresponding to each type of sub-data in the second data.

[0007] In some embodiments of the present application, the second data includes sub-data of multiple different data categories, and the second data is sorted based on a preset sorting rule to obtain a sorting result, including: obtaining an initial sorting result based on the data proportion of each category of sub-data in the communication window, the frequency of occurrence of each category of sub-data in a preset historical time period, the mean corresponding to the sequence value of each category of sub-data, and the corresponding weight, wherein the historical time period is determined based on multiple historical communication windows, and the sequence value represents the data arrangement order of each category of sub-data in each historical communication window; obtaining the sorting result based on the initial sorting result and the length of each data in each category of sub-data.

[0008] In some embodiments of the present application, the method also includes calculating the data ratio of each type of sub-data in the communication window, including: obtaining the third length of each type of sub-data; and calculating the data ratio based on the third length and the first length.

[0009] In some embodiments of the present application, the method also includes calculating the frequency of occurrence of each type of sub-data within a preset historical time period, including: taking the total number of times all types of sub-data appear in the multiple historical communication windows as the first number; obtaining the second number of times each type of sub-data appears in the multiple historical communication windows; and calculating the frequency based on the first number and the second number.

[0010] In some embodiments of the present application, the method also includes calculating the mean corresponding to the sequence value of each type of sub-data, including: obtaining the number of the multiple historical communication windows; calculating the mean based on the sum of the sequence values ​​of each type of sub-data in the multiple historical communication windows and the number.

[0011] In some embodiments of the present application, determining the third data from the second data based on the sorting result and the first length includes: selecting multiple target data from the second data in order of the sequence values ​​from small to large, and the total length of the multiple target data is less than or equal to the first length; and using the multiple target data as the third data.

[0012] In some embodiments of the present application, the method further includes: if a second length of the second data is less than or equal to the first length, pushing the second data within the communication window according to the start time.

[0013] In some embodiments of the present application, the method also includes: storing the first data in a first-level cache area of ​​a central control unit in the first device; storing the second data in a second-level cache area of ​​the central control unit; and storing the third data in a third-level cache area of ​​the central control unit.

[0014] The present application also provides an electronic device, which includes a processor and a memory, and the processor is used to implement the data processing method when executing a computer program stored in the memory.

[0015] The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the data processing method is implemented.

[0016] The data processing method provided by the present application is applied to a first device, which includes a plurality of bus device sets. The first device receives prompt information from the second device, which is used to indicate the period of the communication window and the start time of the communication window. The communication window is the time period for the first device to communicate with the second device, and the first length of the data transmitted in the time period; the first device can process the data based on the prompt information so as to push the data later. According to the data transmitted by each bus device set through the corresponding bus, the first data corresponding to each bus device set is obtained, so that the first device can collect the data of each bus device set. The first data corresponding to each bus device set is heterogeneously parsed to obtain the second data, so that the second data obtained by the heterogeneous parsing can meet the data requirements of the push. Since the communication window pushed is fixed, in order to avoid the data volume of the second data being too large and affecting the push of the data, the second length of the second data is compared with the first length. If the second length of the second data is greater than the first length, the second data is sorted based on the preset sorting rule to obtain the sorting result; according to the sorting result and the first length, the third data is determined from the second data, so that the third data meets the push volume requirements and the order of data push. According to the start time, the third data is pushed within the communication window. This application can ensure that real-time data is pushed in a timely manner, so that the receiving end can process the real-time data in a timely manner, thereby ensuring the receiving end's effective monitoring and management of the energy storage system. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a schematic diagram of an application scenario of the data processing method provided in an embodiment of the present application.

[0018] Figure 2 It is a flow chart of the data processing method provided in the embodiment of the present application.

[0019] Figure 3 It is a schematic diagram of a communication window provided in an embodiment of the present application.

[0020] Figure 4 It is a schematic diagram of the multi-level cache provided in an embodiment of the present application.

[0021] Figure 5 It is a calculation flow chart of the sorting results provided in the embodiment of the present application. DETAILED DESCRIPTION

[0022] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given by way of example for reference.

[0023] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0024] In energy storage systems, there are many types of real-time data that need to be processed. Since such real-time data has extremely high requirements for real-time performance, the energy storage system needs to effectively and frequently push it uplink to the designated receiving end, such as data centers and cloud platforms, so that the receiving end can perform real-time monitoring, analysis and management. In addition, the energy storage system also includes other types of data, which have relatively low requirements for real-time performance and can be pushed uplink to the receiving end at a low frequency.

[0025] In the process of uplink push, multiple buses are usually used concurrently to push all data indiscriminately, and the receiving end will process the data according to the order in which the data is received. In one example, other categories of data do not need to be pushed in real time due to their lower importance, but the timestamp, sequence, quantity, content, etc. of such data must still be valid. However, the number of buses is limited in the process of uplink push. In the case of high concurrency between real-time data and other categories of data, the bus is often extremely congested and disordered. The communication window of real-time data may be randomly occupied by other categories of data. There are also multiple standard protocols between communication lines at the same time, resulting in the inability to push real-time data in a timely manner, affecting the effective monitoring and management of the energy storage system by the receiving end (such as the cloud server).

[0026] In order to solve the technical problem of being unable to ensure the processing efficiency of real-time data, the embodiments of the present application provide a data processing method, an electronic device, and a storage medium, which can sort the data to be pushed, thereby improving the processing efficiency of real-time data and ensuring effective monitoring and management of the energy storage system. The following first describes the application scenario of the data processing method provided in the embodiments of the present application.

[0027] Figure 1 Schematic diagram of the application scenario of the data processing method provided in the embodiment of the present application. Figure 1 As shown, the energy storage system includes a first device 10, a bus device set 20, and an upstream device 30. The first device 10 can be connected to the bus device set 20 through multiple buses 40, and the first device 10 can also be connected to the upstream device 30 through the bus. In another example, the bus device set 20 can be located in the first device 10, and the present application does not limit the relationship between the first device 10 and the bus device set 20.

[0028] The first device 10 includes a central control unit 110 , the central control unit 110 includes a processor 1101 and a memory 1012 , and the processor 1101 includes a heterogeneous parser 11011 and a priority discriminator 11012 .

[0029] The first device 10 is connected to the second device 50, and the first device 10 pushes the data received from the bus device set 20 to the second device 50 through the uplink device 30. The first device 10 can also receive data sent by the second device 50, for example, prompt information, which is used to indicate the period of the communication window and the start time of the communication window.

[0030] The first device 10 may be an electronic device such as a laptop computer, a desktop computer, a server, an energy storage device, etc. The central control unit 110 may be a component responsible for the operation management, data processing, and decision execution of the first device 10. The heterogeneous parser 11011 may be a functional component in the first device 10, used to perform heterogeneous parsing on data. The priority discriminator 11012 may be a functional component in the first device 10, used to discriminate the priority of data.

[0031] The bus device set 20 may be a combination of multiple devices in the energy storage system, for example, a combination of at least two identical or different devices among inverters, single cells, energy storage devices, etc., which is not limited in the present application.

[0032] The uplink device 30 may be a communication device responsible for forwarding data processed by the first device 10 to the second device 50 .

[0033] The bus 40 may be a heterogeneous bus.

[0034] The second device 50 may be a cloud server, a server cluster, a physical server, etc.

[0035] In some embodiments of the present application, the central control unit 110 of the first device 10 may receive first data transmitted from multiple buses 40, which is generated by the bus device set 20. After receiving the first data, the central control unit 110 may store it in the first-level cache area of ​​the memory 1012. The processor 1101 triggers the heterogeneous parser 11011 to process the first data, obtain the second data, and store the second data in the second-level cache area of ​​the memory 1012. When it is determined that the second data does not meet the uplink data rule, the processor 1101 triggers the priority discriminator 11012 to process the second data, obtain the third data, and store the third data in the third-level cache area of ​​the memory 1012. According to the start time of the communication window, the third data is pushed to the second device 50 within the communication window.

[0036] The indication Figure 1 It is only an example of an application scenario and does not constitute a limitation. It can also be applied to non-heterogeneous communication scenarios and field bus scenarios.

[0037] The following is a detailed description of the embodiments of the present application.

[0038] like Figure 2 As shown, Figure 2 is a flow chart of a data processing method provided in an embodiment of the present application, which is applied to an electronic device (such as Figure 1 According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0039] Step S201, receiving prompt information from an uplink device.

[0040] In some embodiments of the present application, the uplink device may be a communication device for transmitting data between the first device and the second device. The first device may receive a prompt message sent by the uplink device. The prompt message is used to indicate the period of the communication window and the start time of the communication window. The communication window represents the time period for the first device to communicate with the second device, and represents the first length of the data transmitted in the time period. The uplink device may allocate a corresponding communication window to the central control unit according to the actual transmission situation, and the period, duration, and length of the transmitted data of the communication window may be preset.

[0041] In some embodiments of the present application, the central control unit may determine the start time of each communication window based on the prompt information, and send data within the communication window when the start time of any communication window is reached. Figure 3 Describe the communication window, Figure 3It is a schematic diagram of a communication window provided in an embodiment of the present application.

[0042] like Figure 3 As shown, the period of the communication window is 600ms, and the duration of each communication window can be a preset value. For example, the duration of each communication window is 60ms, and the central control unit calculates the start time and the running time of each communication window according to the start time and the communication window. Figure 3 As shown, the start time of communication window 1 is the current time, and the duration of communication window 1 is 60ms. Since the cycle is 600ms, the start time of communication window 2 is 600ms, and the duration of communication window 2 is 60ms. The start time of communication window 3 is 1200ms, and the duration of communication window 3 is 60ms. The central control unit can send data according to the start time of each communication window, for example, send data at 0ms, send data at 600ms, and send data at 1200ms.

[0043] In addition, the central control unit can predetermine data that needs to be sent multiple times, and can also prepare data to be sent while waiting for the start time of the communication window, for example, prepare data to be sent between 60ms and 600ms, and between 660ms and 1200ms.

[0044] The above are only examples, and the period and start time of the communication window can be set according to the actual situation of the interaction between the first device and the second device, and this application does not limit this.

[0045] Step S202: obtaining first data corresponding to each bus device set according to data transmitted by each bus device set through a corresponding bus.

[0046] In some embodiments of the present application, the bus device set may be a set of multiple components inside the first device, or a set of multiple devices external to the first device, and the present application does not limit this. Each bus device set transmits data through a corresponding bus, and the transmitted data may be relevant data of the energy storage system, for example, inverter operation data, inverter power generation data, inverter power consumption data, battery operation data, etc. The data transmitted by each bus is taken as the first data, and the first data is generated by each bus device set.

[0047] In some embodiments of the present application, in order to receive data transmitted by each bus, a corresponding first-level cache area can be set at the back level of the bus interface corresponding to the first device, for quickly receiving data transmitted by the corresponding bus. The size of the first-level cache area can be set according to the bandwidth of the corresponding bus, and the present application is not limited to this. In addition, the first data in the first-level cache area can be timestamped to facilitate subsequent tracing back to the timestamp of each first data.

[0048] In an example, assuming that there are three buses, including bus 1, bus 2, and bus 3, three first-level cache areas can be set in the first device, including first-level cache area A, first-level cache area B, and first-level cache area C. The first-level cache area A corresponds to storing the first data transmitted via bus 1, the first-level cache area B corresponds to storing the first data transmitted via bus 2, and the first-level cache area C corresponds to storing the first data transmitted via bus 3.

[0049] Step S203: performing heterogeneous analysis on the first data corresponding to each bus device set to obtain second data.

[0050] In some embodiments of the present application, the first data may be escaped through heterogeneous parsing. The escape may make the first data conform to the uplink data rule and classify the first data. The uplink data rule may include: determining the preset conditions corresponding to the length of the data, the format of the data, etc. The categories may include but are not limited to real-time data, status data, alarm data, weak real-time data, strong real-time data, and battery real-time data, which are not limited in the present application.

[0051] In some embodiments of the present application, when the central control unit detects that there is first data in the first-level cache area, it can call a heterogeneous parser to perform heterogeneous parsing on the first data, convert the data format of the first data into a preset data format, and mark the data category of the first data corresponding to each bus device set. After performing heterogeneous parsing on the first data corresponding to each bus device set, second data is obtained, and the second data is stored in the second-level cache area.

[0052] In one example, the heterogeneous parser performs heterogeneous parsing on the first data in the first-level cache area A to obtain a first heterogeneous parsing result. The heterogeneous parser performs heterogeneous parsing on the first data in the first-level cache area B to obtain a second heterogeneous parsing result. The heterogeneous parser performs heterogeneous parsing on the first data in the first-level cache area C to obtain a third heterogeneous parsing result. The first heterogeneous parsing result, the second heterogeneous parsing result, and the third heterogeneous parsing result are used as the second data, and the second data includes a plurality of different categories of sub-data composed of the first heterogeneous parsing result, the second heterogeneous parsing result, and the third heterogeneous parsing result, and the second data can be stored in the second-level cache area.

[0053] Step S204: if the second length of the second data is greater than the first length, the second data is sorted based on a preset sorting rule to obtain a sorting result.

[0054] In some embodiments of the present application, due to the large number of types in the second data and the non-uniform time of obtaining the second data, the amount of data in the second-level cache area is random, and the amount of the second data may be large, resulting in the second length being greater than the first length. In addition, the amount of the second data may be small, resulting in the second length being less than or equal to the first length.

[0055] Therefore, in order to determine whether the next communication window can carry the second data, the first length of the communication window and the second length of the second data may be compared.

[0056] If the second length is less than or equal to the first length, it means that the amount of the second data does not exceed the amount of data that can be carried by the communication window, and the communication window can be continued to be waited for. According to the start time of the communication window and the timestamp of the sub-data of the second data, the second data is pushed to the second device within the communication window.

[0057] If the second length is greater than the first length, it means that the amount of the second data exceeds the amount of data that the communication window can carry. The second data is sorted based on a preset sorting rule. For example, the central control unit can call a priority discriminator to determine the priority of each sub-data in the second data, thereby obtaining a sorting result output by the priority discriminator. The sorting rule can be determined based on the priority discriminator, and this application is not limited to this. In addition, the specific process of calling the priority discriminator to sort the second data can be referred to as follows Figure 5 The embodiment shown.

[0058] Step S205 , determining third data from the second data according to the sorting result and the first length.

[0059] In some embodiments of the present application, the first length is the amount of data that the communication window can carry during data transmission. Since the second length of the second data is greater than the first length, the order of the sequence values ​​from small to large can be determined according to the sorting result, and multiple target data are selected from the second data, and the total length of the multiple target data is less than or equal to the first length, and the multiple target data are used as the third data.

[0060] In some embodiments of the present application, after the third data is determined, the third data can be stored in the third-level cache area to wait for the communication window. The data transmission priority of the third-level cache area is higher than the data transmission priority of the second-level cache area, that is, when the third data exists in the third-level cache area, the third data is pushed first.

[0061] In addition, after the target data is stored as the third data in the third-level cache area, the other sub-data of the second data are still stored in the second-level cache area until the next communication window arrives, and then the priority of the second data including the other sub-data in the second-level cache area is re-determined.

[0062] Step S206: Push the third data within the communication window according to the start time.

[0063] In some embodiments of the present application, after the start time of the communication window is reached, the third data may be pushed to the second device within the communication window. Figure 3 As shown, at 600 ms, the third data in the third-level cache area is read, and the third data is pushed to the second device through communication window 2.

[0064] The first device receives prompt information from the second device, which is used to indicate the cycle of the communication window and the start time of the communication window. The communication window is the time period for the first device to communicate with the second device, and the first length of the data transmitted in the time period; the first device can process the data based on the prompt information so as to push the data later. According to the data transmitted by each bus device set through the corresponding bus, the first data corresponding to each bus device set is obtained, so that the first device can collect the data of each bus device set. The first data corresponding to each bus device set is heterogeneously parsed to obtain the second data, so that the second data obtained by the heterogeneous parsing can meet the data requirements for pushing. Since the communication window for pushing is fixed, in order to avoid the data volume of the second data being too large and affecting the data pushing, the second length of the second data is compared with the first length. If the second length of the second data is greater than the first length, the second data is sorted based on the preset sorting rule to obtain the sorting result; according to the sorting result and the first length, the third data is determined from the second data, so that the third data meets the push volume requirements and the order of data pushing. According to the start time, the third data is pushed within the communication window. This application can ensure that real-time data is pushed in a timely manner, so that the receiving end can process the real-time data in a timely manner, thereby ensuring the receiving end's effective monitoring and management of the energy storage system.

[0065] Figure 4 Schematic diagram of a multi-level cache provided by an embodiment of the present application. Figure 4As shown, the central control unit can be provided with multiple levels of cache areas, including a first-level cache area, a second-level cache area, and a third-level cache area. Bus 1, Bus 2, and Bus 3 correspond to a first-level cache area respectively, which is used to promptly receive data transmitted by the corresponding bus, recorded as the first data. The first data is read from the first-level cache area, and the heterogeneous parser is called to perform heterogeneous analysis on the first data to obtain the second data. The second data is stored in the second-level cache area. When the second length of the second data is greater than the first length of the communication window, the second data is read from the second-level storage area, and the priority discriminator is called to prioritize the second data to obtain the sorting result. The third data is determined from the second data according to the sorting result.

[0066] Figure 5 is a calculation flow chart of the sorting result provided in the embodiment of the present application, such as Figure 5 As shown, the following steps are included: S501, obtaining an initial sorting result according to the data proportion of each type of sub-data in the communication window, the frequency of each type of sub-data in a preset historical time period, the mean value corresponding to the sequence value of each type of sub-data, and the corresponding weight.

[0067] In some embodiments of the present application, calculating the data proportion of each type of sub-data in the communication window includes: obtaining the third length of each type of sub-data, and calculating the data proportion according to the third length and the first length. Taking the calculation of the data proportion of sub-data of data category c as an example, the formula is expressed as follows: ; In the formula, Indicates the data proportion; c indicates the data category; Indicates the third length of the sub-data of data category c; Indicates the first length of the communication window. The smaller the data proportion is, the smaller the proportion of the sub-data of data category c in the communication window is, and the smaller the impact of the sub-data of data category c on congestion is.

[0068] Calculating the frequency of each type of sub-data in a preset historical time period includes: taking the total number of times all types of sub-data appear in multiple historical communication windows as the first number, obtaining the second number of times each type of sub-data appears in multiple historical communication windows, and calculating the frequency based on the first number and the second number. Taking the calculation of the frequency of sub-data of data category c as an example, the formula is as follows: ; In the formula, Indicates the frequency of occurrence of sub-data of data category c in t historical communication windows, The smaller it is, the fewer times the sub-data of data category c appears in t historical communication windows; N represents the total number of times sub-data of all categories appear in t historical communication windows, recorded as the first number; It represents the total number of times the sub-data of data category c appears in t historical communication windows and is recorded as the second number.

[0069] Calculating the mean corresponding to the sequence value of each type of sub-data includes: obtaining the number of multiple historical communication windows, and calculating the mean according to the sum and number of the sequence values ​​of each type of sub-data in the multiple historical communication windows. Taking the calculation of the mean of the sub-data of data category c as an example, the formula is expressed as follows: ; In the formula, represents the mean value corresponding to the sequence value of the sub-data of data category c in t historical communication windows; t represents the number of historical communication windows; represents the order value of the sub-data with data category c in the i-th historical communication window. If the sub-data with data category c in the i-th historical communication window is not judged by the priority discriminator, then The purpose of calculating the mean is to prevent a certain type of sub-data from occupying the communication window for a long time, causing other data to be unable to be transmitted.

[0070] Calculate the initial sorting result, taking the sorting result of the sub-data of data category c as an example. Assume that the preset priority of the sub-data of category c is , the calculation formula of any order value of sub-data of category c is as follows: ; In the formula, Indicates the preset priority weight of each category of sub-data; Indicates the weight of each type of sub-data in the communication window; Indicates the historical priority weight of each type of sub-data; The specific weight can be statically or dynamically adjusted and optimized according to the actual system structure, and this application does not limit this.

[0071] S502, obtaining a sorting result according to the initial sorting result and the length of each piece of data in each type of sub-data.

[0072] In some embodiments of the present application, based on the initial sorting result, an ascending sorting from small to large is obtained, and then the length of each piece of data in each type of sub-data is sorted in ascending order from short to long to obtain a sorting result.

[0073] In one example, the second data includes sub-data E, sub-data F, and sub-data G. According to the initial sorting result, the sub-data E, sub-data F, and sub-data G are sorted in ascending order from small to large: sub-data E, sub-data F, and sub-data G.

[0074] Then, each piece of data in each category of sub-data is obtained, for example, sub-data E includes sub-data E1 and sub-data E2, sub-data F includes sub-data F1 and sub-data F2, and sub-data G includes sub-data G1 and sub-data G2. On the basis of the first ascending sort, a second ascending sort is performed based on the length of each piece of data in each category. By comparing the length of each piece of data in each category of sub-data, it is found that the length of sub-data E2 is greater than that of sub-data E1, sub-data F1 is greater than that of sub-data F2, and sub-data G2 is greater than that of sub-data G1.

[0075] Then, according to the length of each data in each type of sub-data, the sorting results are obtained in a second ascending order from short to long: sub-data E (sub-data E1, sub-data E2), sub-data F (sub-data F2, sub-data F1), sub-data G (sub-data G1, sub-data G2).

[0076] After the sorting result is determined, multiple target data are selected from the second data according to the order of the sequence value from small to large, and the total length of the multiple target data is less than or equal to the first length. In an example, it is assumed that the first length of the communication window is 2, the length of the sub-data E is also 2, and the length of the sub-data E1 is less than the length of the sub-data E2. Then, according to the order of the sequence value from small to large, the sub-data E1 is first stored in the third-level cache area, and then the sub-data E2 is stored in the third-level cache area, that is, the third data includes the sub-data E1 and the sub-data E2. In addition, in the third-level cache area, the sub-data E1 is pushed out before the sub-data E2.

[0077] In some embodiments of the present application, the sorting result corresponding to the second data is determined by integrating the data category, the first length of the communication window, the second length of the second data, the historical situation of each type of sub-data in the historical communication window (for example, the frequency of occurrence, etc.), so as to avoid a certain type of sub-data occupying the bus for a long time and to avoid other types of data affecting the transmission rate of real-time data, thereby improving the analysis and management efficiency of relevant data of the energy storage system. In addition, it can also avoid the situation where a certain type of sub-data with high priority causes other types of data to be unable to be transmitted normally, thereby ensuring the integrity of the data of the energy storage system and thus ensuring the effectiveness of operation and maintenance management and safety monitoring.

[0078] Please continue reading Figure 1 In this embodiment, the memory 1012 may be an internal memory of the first device 10, that is, a memory built into the first device 10. In other embodiments, the memory 1012 may also be an external memory of the first device 10, that is, a memory externally connected to the first device 10.

[0079] In some embodiments, the memory 1012 is used to store program codes and various data, and to achieve high-speed and automatic access to programs or data during the operation of the first device 10.

[0080] The memory 1012 may include a random access memory and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0081] In one embodiment, the processor 1101 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any other conventional processor, etc.

[0082] If the program code and various data in the memory 1012 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, such as the data processing method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), etc.

[0083] It is understandable that the module division described above is a logical function division, and there may be other division methods in actual implementation. In addition, the functional modules in each embodiment of the present application may be integrated in the same processing unit, or each module may exist physically separately, or two or more modules may be integrated in the same unit. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A data processing method, applied to a first device, characterized in that: The method comprises: Receive prompt information from an uplink device, the prompt information being used to indicate a period of a communication window and a start time of the communication window, the communication window being a time period during which the first device communicates with the second device, and a first length of data transmitted in the time period; According to the data transmitted by each bus device set through the corresponding bus, obtaining the first data corresponding to each bus device set; Performing heterogeneous analysis on the first data corresponding to each bus device set to obtain second data; If the second length of the second data is greater than the first length, sorting the second data based on a preset sorting rule to obtain a sorting result; Determining third data from the second data according to the sorting result and the first length; The third data is pushed within the communication window according to the start time.

2. The data processing method according to claim 1, characterized in that: The performing heterogeneous parsing on the first data corresponding to each bus device set to obtain the second data includes: The format of the first data is converted into a preset data format, and the data category of the first data corresponding to each bus device set is marked to obtain the data category corresponding to each type of sub-data in the second data.

3. The data processing method according to claim 1, characterized in that: The second data includes sub-data of multiple different data categories, and the second data is sorted based on a preset sorting rule to obtain a sorting result, including: An initial sorting result is obtained according to the data proportion of each type of sub-data in the communication window, the frequency of occurrence of each type of sub-data in a preset historical time period, the mean value corresponding to the sequence value of each type of sub-data, and the corresponding weight, wherein the historical time period is determined according to multiple historical communication windows, and the sequence value represents the data arrangement order of each type of sub-data in each historical communication window; The sorting result is obtained according to the initial sorting result and the length of each piece of data in each type of sub-data.

4. The data processing method according to claim 3, characterized in that: The method further includes calculating the data proportion of each type of sub-data in the communication window, including: Obtaining the third length of each type of sub-data; The data proportion is calculated according to the third length and the first length.

5. The data processing method according to claim 3, characterized in that: The method further includes calculating the frequency of occurrence of each type of sub-data within a preset historical time period, including: The total number of times that all categories of sub-data appear in the multiple historical communication windows is taken as the first number; Obtaining a second number of occurrences of each type of sub-data in a plurality of historical communication windows; The frequency is calculated according to the first number and the second number.

6. The data processing method according to claim 3, characterized in that: The method further includes calculating the mean corresponding to the sequence value of each type of sub-data, including: Obtaining the number of the plurality of historical communication windows; The average value is calculated according to the sum of the sequence values ​​of each type of sub-data in the multiple historical communication windows and the quantity.

7. The data processing method according to claim 3, characterized in that: The determining third data from the second data according to the sorting result and the first length includes: Selecting multiple target data from the second data according to the ascending order of the sequence values, and the total length of the multiple target data is less than or equal to the first length; The plurality of target data are used as the third data.

8. The data processing method according to claim 1, characterized in that: The method further comprises: If the second length of the second data is less than or equal to the first length, the second data is pushed within the communication window according to the start time.

9. The data processing method according to claim 1, characterized in that: The method further comprises: storing the first data in a first-level cache area of ​​a central control unit in the first device; storing the second data in a second-level cache area of ​​the central control unit; The third data is stored in a third-level cache area of ​​the central control unit.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the data processing method according to any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the data processing method according to any one of claims 1 to 9 is implemented.