Data issuing control method and device
By using difference indicators to filter and verify data in half-duplex communication between the energy management system and the energy storage converter, the problem of data writing occupying communication lines was solved, the stability of data interaction and control accuracy were achieved, and the operational safety and efficiency of the system were improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-22
- Publication Date
- 2026-03-24
AI Technical Summary
In half-duplex communication between the energy management system and the energy storage converter, data writing operations occupy the communication line, making it impossible to read data simultaneously, resulting in data lag and affecting the system's control accuracy and stability.
By acquiring and processing the first data to generate the second data, calculating the difference index and filtering out the data to be written, and using the difference index set to verify the data distribution conditions, the accuracy and stability of the data are ensured, including the judgment of difference, ratio and duration, and the management of the distribution queue is optimized.
It reduces invalid data transmission, improves the efficiency and reliability of data interaction, ensures the accuracy of control commands, reduces the probability of equipment failure and safety accidents, and guarantees the stable operation of the system.
Smart Images

Figure CN121728030A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of industrial communication, in particular to a data issuing control method and device. BACKGROUND
[0002] In industrial automation, power monitoring and control and many other occasions, the cooperative work between the energy management system (for example, EMS) and the energy storage converter (for example, PCS) is increasingly critical, and stable and efficient communication between the two is the core link to realize stable operation, accurate control and efficient management of the system. The timeliness, accuracy and rationality of data transmission directly affect the performance of the entire system.
[0003] Because RS485 communication has the advantages of strong anti-interference ability, long transmission distance and low cost, it is widely used in data interaction between EMS and PCS. However, RS485 adopts a half-duplex communication mode, which leads to the fact that data can only be transmitted in one direction at the same time. When the energy management system performs data writing operation, the communication line is occupied and cannot simultaneously perform data reading.
[0004] However, for the interaction between the energy management system and the energy storage converter, real-time transmission of data such as power, current and voltage is crucial. Because the energy management system cannot read the latest state parameters at the same time when writing data, the data obtained by the energy management system often lags behind the actual situation. During the continuous data writing process, the system will use old state data and cannot reflect the real-time running state of the device in time, resulting in reduced control accuracy of the system on the device. In some scenarios where data real-time performance is extremely high, control errors may even occur, affecting the safe and stable operation of the system. Therefore, how to effectively control data writing and realize reasonable writing of data in half-duplex communication has an important influence on improving the interaction performance between the energy management system and the energy storage converter. SUMMARY
[0005] In order to overcome the shortcomings of the prior art, the present application provides a data issuing control method and device, which specifically adopts the following technical solutions: A data issuing control method, the method comprising: obtaining second data determined based on first data; the second data is obtained by processing the first data using a preset algorithm; obtaining a first difference index by comparing the second data and third data; the first difference index includes a first difference value and / or a first ratio value, and the third data is the second data determined last time that satisfies the first difference index greater than a first preset index threshold; The second data with the first difference index greater than the first preset index threshold is taken as the to-be-written data, and the to-be-written data is placed in the delivery queue.
[0006] Further, the second data with the first difference index less than or equal to the first preset index threshold is taken as invalid data, and the invalid data is not placed in the delivery queue.
[0007] Optionally, the data delivery control method further comprises: a second difference index set is obtained by comparing the to-be-written data with a first data set in a preset time range; the first data set is a collection of the first data obtained in the preset time range, and the second difference index set is a collection of the second difference indexes obtained by comparing the first data in the first data set with the to-be-written data; the second difference index comprises a second difference value and / or a second ratio value; In a case where all the second difference indexes in the second difference index set are greater than the second preset index threshold, it is determined that the to-be-written data fails to be delivered, and the to-be-written data is placed in the delivery queue again.
[0008] Further, in a case where all the second difference indexes in the second difference index set are less than or equal to the second preset index threshold, it is determined that the to-be-written data is successfully delivered, and the next to-be-written data is judged.
[0009] Optionally, in a case where any second difference index in the second difference index set is less than or equal to the second preset index threshold, delivery judgment is performed, and the delivery judgment comprises: a third difference index set is obtained based on the second difference index set; the third difference index set is a collection of the second difference indexes less than or equal to the second preset index threshold in the second difference index set; a first index is determined according to the third difference index set; the first index is a total duration of the second difference indexes less than or equal to the second preset index threshold in the third difference index set; In a case where the first index is less than or equal to a third preset index threshold, it is determined that the to-be-written data fails to be delivered, and the to-be-written data is placed in the delivery queue again; In a case where the first index is greater than the third preset index threshold, it is determined that the to-be-written data is successfully delivered, and the next to-be-written data is judged.
[0010] Optionally, the second data determined based on the first data comprises: a type of the first data is obtained, and a time interval for collection is determined according to the type of the first data; the first data is collected in sequence according to the time interval for collection, and a time stamp is attached to the first data; the first data with the attached time stamp is sorted in chronological order; The first data is processed according to a preset algorithm in sequence to obtain corresponding second data.
[0011] Optionally, the data delivery control method further comprises a delivery queue clearing, and the delivery queue clearing comprises: obtaining a second index, the second index being a number of to-be-written data in the delivery queue; in a case where the second index is greater than a fourth preset index threshold, filtering fourth data according to a delivery time sequence, the fourth data being the latest to-be-written data in the delivery queue; performing a delivery action on the fourth data, and deleting other to-be-written data in the delivery queue which is located before the fourth data in the delivery time sequence.
[0012] Optionally, the second preset index threshold is greater than the first preset index threshold.
[0013] Optionally, the first data comprises one or more of voltage, power, current and relay state parameters collected by an energy management system, and the second data comprises one or more of voltage, power, current and relay control parameters to be delivered by the energy management system.
[0014] In addition, the application further discloses a data delivery control device, and the device comprises: a data acquisition module configured to acquire second data determined based on first data, the second data being obtained by processing the first data using a preset algorithm; a first comparison module configured to compare the second data with third data to obtain a first difference index, the first difference index comprising a first difference value and / or a first ratio value, the third data being the second data determined in the last time and satisfying a condition that the first difference index is greater than a first preset index threshold; a delivery action module configured to take the second data whose first difference index is greater than the first preset index threshold as to-be-written data, and put the to-be-written data into a delivery queue.
[0015] The technical scheme of the application has the following beneficial effects: The data delivery control method of the present application can filter unnecessary data delivery actions caused by slight fluctuations through the first difference index, avoid frequent triggering of data delivery due to slight changes in the second data, reduce redundant data transmission, reduce the occupancy rate of the communication channel, and alleviate the risk of conflict between the data reading process and the data delivery process. The accuracy of the second data that meets the delivery condition can be further verified through the second difference index, ensuring that the second data to be delivered can effectively adjust the system state accurately, avoiding errors caused by instantaneous fluctuations, improving the accuracy of the control command, and further ensuring the stability and accuracy of the data delivery by continuously judging the duration of the second difference index, preventing frequent data delivery in a short period of time and affecting system stability. This method not only reduces invalid data interaction and saves communication resources, but also ensures the effectiveness and stability of the delivered data, improving the overall efficiency and reliability of data interaction. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 The flowchart of the data delivery control method in the embodiments of the present application.
[0017] Figure 2 The flowchart of the delivery verification process in the embodiments of the present application.
[0018] Figure 3 The flowchart of the delivery queue clearing in the embodiments of the present application.
[0019] Figure 4 The structural diagram of the data delivery control device in the embodiments of the present application.
[0020] Figure 5 The structural diagram of an electronic device in the embodiments of the present application. DETAILED DESCRIPTION
[0021] The present application will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present application, and cannot be used to limit the protection scope of the present application. It should be noted that the following detailed description is exemplary and is intended to provide further description of the present application.
[0022] To clearly describe the specific process of the technical solution of the present application, the following embodiments take the half-duplex communication data interaction process between the energy management system and the energy storage converter as an example for illustration, but this cannot limit the specific application scenarios of the present application. The energy management system is a kind of management system of electrical equipment and power consumption link, which realizes the safe operation, energy saving and operation and maintenance management of electrical system through monitoring, analysis, optimization and maintenance. The energy management system does not directly intervene in the real-time transmission or conversion of power, but makes management decisions through data-driven management. The energy storage converter is a control type system around power flow, which directly controls the power charging and discharging process through real-time adjustment, instruction execution and fault protection. Generally, the energy storage converter directly acts on the power equipment and is the operation center of the power system.
[0023] In the present application, the energy management system and the energy storage converter preferably use RS485 devices for data interaction. Since it uses half-duplex communication mode, it means that at the same time, data can only be transmitted in one direction, so when the energy management system is transmitting data for a long time, the communication line is occupied and cannot read data at the same time, which leads to the data obtained by the energy management system often lags behind the actual situation.
[0024] Embodiment 1 Specifically, as shown in Figure 1 The embodiment 1 discloses a data transmission control method, and the execution subject includes an energy management system. It can be understood that in other embodiments, the execution subject can also be other modules or devices with data transmission and reception functions other than the energy management system, such as energy storage converters or battery management systems, etc. The method includes the following steps: First, obtain the second data determined based on the first data.
[0025] In the embodiment 1, the first data refers to one or more of the voltage, power, current and relay state parameters collected by the energy management system. According to different data types, the energy management system can collect discrete data of corresponding data types, of course, other data types collected by the energy management system can also be applied in this scheme, such as temperature, air pressure, etc. For example, in the embodiment 1, the energy storage application scenario is taken as an example, at this time, the first data can also include: battery body state data, including single battery voltage, battery pack total voltage, single battery temperature, etc.; energy storage converter operation data, including converter input or output voltage, input or output current, active power, reactive power, conversion efficiency, switch state and heat dissipation system temperature, etc.
[0026] Further, the energy management system in this embodiment 1 will process and analyze the collected first data according to the preset algorithm, and then obtain the second data to be issued. For example, the preset algorithm can adopt one or more of threshold following control strategy, fixed curve tracking strategy, model optimization control strategy, machine learning prediction strategy or collaborative control strategy, and the energy management system can correspondingly obtain the second data based on these strategies. In this embodiment 1, the second data includes one or more of voltage, power, current and relay control parameters to be issued by the energy management system. The second data is the control data generated by the energy management system according to the first data, and the control data is issued to the energy storage converter to implement operation adjustment. For example, still taking the energy storage application scenario as an example in this embodiment 1, the second data can include: battery body control data, including battery charge and discharge rate, equalization circuit start instruction, cooling start and stop instruction, etc.; energy storage converter operation data, including compensation power, converter start and stop or mode switching instruction, fan speed, etc.
[0027] As a preferred embodiment, in the process of determining the second data by the first data in this embodiment 1, the energy management system can determine the collection time interval of the corresponding data type according to the type of the first data. For example, in this embodiment 1, the power collected by the energy management system requires high real-time performance because the energy management system needs to frequently adjust the equipment output power, so the collection time interval of the power data can be set to a short time, for example, 500 ms, and the energy management system will collect power data every 500 ms. For data types with low real-time requirements, such as voltage and relay state parameters, the collection time interval of the corresponding data can be set to a longer time to reduce the data volume of the energy management system.
[0028] After determining the time collection interval, the corresponding first data can be collected in sequence according to the time collection interval, and a time stamp can be added to the first data. Then, by sorting the first data with time stamps in chronological order, the energy management system can process the first data according to the pre-built algorithm to obtain the corresponding second data, so as to ensure that the issued data and the collected data in the energy management system are time-sequential, which is convenient for subsequent tracing of the basis for generating control instructions, and can further improve the accuracy of data interaction and control through historical data optimization control strategy.
[0029] Then, the second data and the third data in this embodiment 1 will be compared to obtain a first difference index. The first difference index represents the difference between the second data and the third data, which is mainly used to reduce the frequent issuance of the second data, especially for the case where the second data changes little before and after, which can reduce the frequency of second data issuance and avoid occupying the communication link. The third data belongs to the last determined second data that satisfies the first difference index greater than the first preset index threshold, for example, taking the output power of the energy storage system in the energy storage application scenario as an example, when the energy management system generates corresponding second data based on the first data at the previous time greater than the first preset index threshold at the previous time, it is determined that the second data needs to be issued. At this time, the energy management system will mark the second data determined to be issued at the previous time as the third data and store it in the dedicated non-volatile cache area.
[0030] As a preferred embodiment, the first difference index in this embodiment 1 can be selected as the first difference value. When the energy management system generates new second data, the last determined second data, i.e. the third data, is retrieved, and then the absolute value of the two is calculated by the difference algorithm, i.e. the first difference value = |third data-second data|. The first difference value can be used to know the change fluctuation of the second data generated at the previous and next time. In the case where the change fluctuation of the second data is small, the newly generated second data will not have a significant impact on the device even if it is issued. Based on the purpose of reducing invalid data transmission, the newly generated second data does not need to be issued at this time. Conversely, for the case where the change fluctuation of the second data is small, the newly generated second data will have a significant impact on the device and needs to be issued in time.
[0031] As another preferred embodiment, the first difference index in this embodiment 1 can also be selected as the first ratio, i.e. the first ratio = second data / third data. The first ratio can also intuitively reflect the change fluctuation of the second data generated at the previous and next time, and this method can eliminate the data magnitude interference, effectively reduce invalid data issuance, and improve the stability of data interaction. Of course, the first difference index in this embodiment 1 can also use the absolute deviation rate, i.e. the absolute deviation rate = |third data-second data| / second data x 100%. Of course, the above-mentioned multiple indicators can also be used, and the specific selection is selected according to the application occasion and data requirements. It should be noted that the above-mentioned first difference value, first ratio and absolute deviation rate are only typical application examples, and the selection range of the first difference index is not limited, and other quantifiable data difference indicators can also be applied to this application.
[0032] In this embodiment 1, by comparing a first difference index with a first preset index threshold, it is possible to preliminarily determine whether newly generated second data is valid. If the first difference index is greater than the first preset index threshold, it indicates that the newly generated second data has changed significantly compared to the previous second data, and should be allowed to be sent. Conversely, if the first difference index is less than or equal to the first preset index threshold, it indicates that the newly generated second data has changed only slightly compared to the previous second data, and has no impact on the device state; therefore, it is invalid data and does not need to be placed in the sending queue for transmission. Of course, to ensure that the comparison results of the second data generated at different times match the actual operating state of the device, the second data determined to be allowed for transmission can be saved as third data in real time. This mechanism effectively avoids mechanical wear caused by the system frequently receiving minor adjustment commands, and also prevents the repeated transmission of data with minor changes from occupying the communication path.
[0033] By reducing the frequency of invalid data transmission, the communication lines can dedicate more time to data reading. This not only ensures timely updates of status data such as power, current, and voltage, providing a solid foundation for system control decisions, but also provides more bandwidth for data transmission, enhancing the stability and reliability of the entire communication system. Especially in applications with high real-time data requirements, it effectively avoids control errors caused by data lag, reduces the probability of equipment failures and safety accidents, and ensures the safe and stable operation of the entire system.
[0034] Example 2: More specifically, this embodiment 2 also discloses a data distribution control method, which further adds a distribution verification process based on the method of embodiment 1.
[0035] Specifically, such as Figure 2As shown, when the first difference index meets the first preset index threshold, the second data that meets the condition is taken as the data to be written, and the data to be written is placed in the distribution queue for distribution. At this time, the data to be written is further compared with the first dataset to obtain the second difference index set. It should be explained that the first dataset is a collection of first data acquired within a preset time range. For example, in this embodiment 2, the data to be written at time t is taken as an example. In order to determine whether the current data to be written has changed significantly within 3 seconds compared with the first data collected in real time, the first dataset can be selected as the first data in the range of [t, t+3]. The second difference index set is a collection of second difference indices obtained by comparing the data to be written with each first data in the first dataset. The second difference index represents the degree of difference between the first data and the data to be written. By analyzing all the second difference indicators in the second difference indicator set, it can be determined whether the target load changes stably with the data to be written at time t within a preset time range after the data to be written at time t is sent. If the difference between the first data from the target load and the data to be written at time t within the preset time range is less than or equal to the second preset indicator threshold, it indicates that the target load has successfully changed with the data to be written at time t, that is, the data to be written at time t has been successfully sent. If the difference between the first data from the target load and the data to be written at time t within the preset time range is greater than the second preset indicator threshold, it indicates that the target load has not changed with the data to be written at time t, that is, the data to be written at time t has failed to be sent, and it should be sent again in a timely manner.
[0036] This data delivery verification process compares the data to be written with the first data read in real time to determine whether the data to be written has been successfully delivered to the target load. It can promptly detect and correct data delivery failures, ensuring the system can stably and accurately acquire the data to be written. Furthermore, this verification process, combined with that in Example 1, avoids erroneous writes caused by momentary fluctuations, reduces frequent changes in device status due to invalid writes, extends device lifespan, and lowers maintenance costs. Simultaneously, by comparing the data to be written with the first data read in real time within a preset time range, it effectively avoids misjudgments caused by momentary load fluctuations, preventing the erroneous re-delivery of the data to be written, further reducing the risk of data erroneous writing.
[0037] Similarly, in order to maintain consistency with the first difference index, the second difference index in this embodiment 2 can also be a second difference value or a second ratio value, or a combination of both.
[0038] In this embodiment 2, if all the second difference indicators are greater than the second preset indicator threshold, it indicates that the change in the second data compared to the real-time collected first data has continued for a preset time. This means that the data to be written has not been sent to the target load, i.e., the sending has failed. At this time, the data to be written will be placed back into the sending queue for a second sending. When all the second difference indicators in the second difference indicator set are less than or equal to the second preset indicator threshold, it indicates that the data to be written has been successfully sent to the target load, and the target load has successfully changed accordingly, prompting the next data to be written to be judged. Through the above steps, the interference of short-term device status fluctuations on the sending judgment can be avoided, which may cause the data to be written to be sent incorrectly a second time, further improving the accuracy and stability of data writing.
[0039] Example 3: This embodiment 3 also discloses a data transmission control method. Compared with the solution in embodiment 2, this solution further determines that due to the influence of instantaneous fluctuations in equipment, sensors, and other factors, there may be misjudgments. For example, due to instantaneous factors such as sensor noise and instantaneous load fluctuations in equipment, the collected first data may fluctuate briefly. In this case, some second difference indicators in the second difference indicator set may be less than or equal to the second preset indicator threshold, while some second difference indicators may be greater than the second preset indicator threshold. In this case, further transmission determination is required to improve the decision-making accuracy of the transmission action.
[0040] Specifically, such as Figure 2 As shown, the decision-making process is as follows: First, a third set of difference indicators is obtained based on the second set of difference indicators. This third set of difference indicators is the set of second difference indicators in the second set of difference indicators that are less than or equal to the second preset threshold. This process filters out the second difference indicators in the original second set of difference indicators that are less than or equal to the second preset threshold, facilitating subsequent statistical processes.
[0041] Subsequently, a first indicator is determined based on the third set of difference indicators. The first indicator is the total duration of the second difference indicators in the third set of difference indicators that are less than or equal to the second preset indicator threshold.
[0042] If the first indicator is less than or equal to the third preset indicator threshold, it indicates that the target load has not changed with the data to be written within the preset time range, that is, the data to be written has not been successfully sent to the target load. At this time, it can be determined that the data to be written has failed to be sent, and the data to be written is put back into the sending queue.
[0043] If the first indicator is greater than the third preset indicator threshold, it indicates that within the preset time range, the target load changes with the data to be written, and the data to be written has been successfully sent to the target load. At this time, it is determined that the data to be written has been successfully sent, and the next data to be written is judged.
[0044] This data delivery determination process can further accurately determine the secondary delivery of the data to be written. By evaluating the load response time, the accuracy of the delivery result determination is further improved. It can avoid the incorrect delivery of the data to be written due to fluctuations in the target load (i.e., fluctuations in the first data), making the data delivery control more in line with the actual operating scenario and further enhancing the accuracy and stability of data writing.
[0045] Example 4: This embodiment 4 also discloses a data delivery control method, which adds a delivery queue clearing step compared to the solution in embodiment 1. For example... Figure 3 As shown, the queue clearing step includes: First, the second indicator is obtained, which is the number of data items waiting to be written in the distribution queue. When the equipment load is unstable and fluctuates frequently, a large amount of data items may be placed in the distribution queue. If the distribution queue distributes the data items in the order of the queue, the communication link will be occupied for a long time due to the distribution action. The energy management system will not be able to collect the first data in time, and therefore will not be able to generate the corresponding second data in time, which can easily lead to equipment control errors.
[0046] When the second indicator exceeds the fourth preset indicator threshold, there is a large amount of data to be written in the distribution queue. If the data is distributed sequentially according to the queue order, the status of the corresponding device will change frequently in a short period of time, resulting in decreased device stability. To improve device stability, in this embodiment 4, the fourth data is obtained by filtering the data to be written in the distribution queue according to the distribution time order. This fourth data is the latest data to be written in the distribution queue.
[0047] After selecting the fourth data point, the write operation is executed on it, while other data to be written that precedes the fourth data in the write time sequence are deleted. This step addresses situations where the device load is unstable. When there is a large amount of data to be written in the write queue, the device is controlled using the most recently written data, bypassing the device load fluctuation process. This avoids link congestion caused by frequent data writes, ensures timely data updates, reduces the amount of data to be written, ensures the real-time performance and accuracy of control commands, and guarantees stable device operation.
[0048] In addition, such as Figure 4 As shown, this application also discloses a data distribution control device, the device comprising: The data acquisition module is used to acquire second data determined based on the first data; the second data is obtained by processing the first data using a preset algorithm; The first comparison module is used to compare the second data and the third data to obtain a first difference index; the first difference index includes a first difference value and / or a first ratio value, and the third data is the second data determined in the previous time that satisfies the first difference index being greater than a first preset index threshold. The action module is used to take the second data with a first difference index greater than a first preset index threshold as the data to be written and put the data to be written into the action queue.
[0049] The apparatus provided in this application embodiment can achieve... Figure 1 To avoid repetition, the various processes implemented in the method embodiments will not be described again here.
[0050] like Figure 5 As shown in the illustration, this application also provides an electronic device, including a processor and a memory. The processor and memory are communicatively connected to a bus interface. A program or instruction stored in the memory and executable on the processor is provided. When the program or instruction is executed by the processor, it implements the following: Figure 1 The various processes of the method embodiments shown are all capable of achieving the same technical effect, and will not be described again here to avoid repetition.
[0051] This application embodiment also provides a readable storage medium storing a program or instructions that, when executed by a processor, implement the above-described functionality. Figure 1 The various processes described in the embodiments of the method described herein can achieve the same technical effect, and will not be repeated here to avoid repetition.
[0052] This application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above-described... Figure 1 The various processes described in the embodiments of the method described herein can achieve the same technical effect, and will not be repeated here to avoid repetition.
[0053] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0054] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0055] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components may be combined, or integrated into another device, or some features may be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0056] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0057] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0058] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0059] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a device (which may be a terminal or platform, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0060] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A data distribution control method, characterized in that, The method includes: Obtain second data determined based on the first data; the second data is obtained by processing the first data using a preset algorithm; A first difference index is obtained by comparing the second data with the third data; the first difference index includes a first difference and / or a first ratio, and the third data is the second data that was previously determined to satisfy the first difference index being greater than a first preset index threshold. The second data whose first difference index is greater than the first preset index threshold is taken as the data to be written, and the data to be written is placed into the distribution queue.
2. The data transmission control method according to claim 1, characterized in that, Second data whose first difference index is less than or equal to the first preset index threshold is considered invalid data, and the invalid data is not placed into the distribution queue.
3. The data transmission control method according to claim 1 or 2, characterized in that, The method further includes: A second set of difference indicators is obtained by comparing the data to be written with the first dataset within a preset time range; the first dataset is a set of first data obtained within a preset time range, and the second set of difference indicators is a set of second difference indicators obtained by comparing the first data in the first dataset with the data to be written; the second difference indicator includes a second difference and / or a second ratio. If all the second difference indicators in the second difference indicator set are greater than the second preset indicator threshold, it is confirmed that the data to be written has failed to be sent and the data to be written is put back into the sending queue.
4. The data transmission control method according to claim 3, characterized in that, If all the second difference indicators in the second difference indicator set are less than or equal to the second preset indicator threshold, the data to be written is confirmed to have been successfully sent, and the next data to be written is then judged.
5. The data transmission control method according to claim 3, characterized in that, If any second difference indicator in the second difference indicator set is less than or equal to a second preset indicator threshold, a decision is made to issue the data. The decision includes: Obtain a third set of difference indicators based on the second set of difference indicators; the third set of difference indicators is a set of the second difference indicators in the second set of difference indicators that are less than or equal to the second preset indicator threshold. A first indicator is determined based on the third set of difference indicators, wherein the first indicator is the total duration of the second difference indicators in the third set of difference indicators that are less than or equal to a second preset indicator threshold. If the first indicator is less than or equal to the third preset indicator threshold, it is determined that the data to be written has failed to be sent and the data to be written is put back into the sending queue. If the first indicator is greater than the third preset indicator threshold, it is determined that the data to be written has been successfully sent, and the next data to be written is then judged.
6. The data transmission control method according to claim 1, characterized in that, The acquisition of the second data determined based on the first data includes: Obtain the type of the first data, and determine the collection time interval based on the first data type; The first data is collected sequentially according to the time collection interval, and a timestamp is appended to the first data; The first data with the attached timestamp is sorted in chronological order; The sorted first data is processed sequentially according to a preset algorithm to obtain the corresponding second data.
7. The data transmission control method according to claim 1, characterized in that, The method further includes clearing the delivery queue, wherein clearing the delivery queue includes: Obtain a second indicator, which is the number of data to be written in the distribution queue; If the second indicator is greater than the fourth preset indicator threshold, the fourth data is obtained by filtering according to the order of the issuance time. The fourth data is the latest data to be written in the issuance queue. The fourth data is sent out, and other data to be written that are sent before the fourth data in the sending queue are deleted.
8. The data transmission control method according to claim 3, characterized in that, The second preset index threshold is greater than the first preset index threshold.
9. The data transmission control method according to claim 1, characterized in that, The first data includes one or more of the voltage, power, current, and relay status parameters collected by the energy management system; the second data includes one or more of the voltage, power, current, and relay control parameters to be issued by the energy management system.
10. A data transmission control device, characterized in that, The device includes: The data acquisition module is used to acquire second data determined based on the first data; the second data is obtained by processing the first data using a preset algorithm; The first comparison module is used to compare the second data with the third data to obtain a first difference index; the first difference index includes a first difference and / or a first ratio, and the third data is the second data that was previously determined to satisfy the first difference index being greater than a first preset index threshold. The action module is used to take the second data where the first difference index is greater than the first preset index threshold as the data to be written, and place the data to be written into the action queue.