High frequency collection efficiency improvement method and electronic device based on HPLC
By adjusting the tasks and commands for the next cycle according to the acquisition time of the tasks and commands for the previous cycle in the acquisition terminal of the HPLC power acquisition system, the problem of slowing down CCO processing is solved and the power data acquisition efficiency is improved.
Patent Information
- Application Number
- CN202210620870.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-01
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-06-01
AI Technical Summary
In HPLC power acquisition systems, too many tasks or commands will cause CCO processing to slow down, extend communication time, and reduce power data acquisition efficiency.
By executing a loop process at the acquisition terminal, adjust the number of tasks and commands in the next cycle according to the collection time of the number of tasks and commands in the previous cycle until the preset conditions are met, the optimal number of tasks and commands are determined to optimize The combination of tasks and commands for CCO.
It has achieved the reduction of the power data acquisition time and improved the power data acquisition efficiency. It is suitable for the combination of CCO and STA from different manufacturers, and adapts to the data acquisition needs of different environments.
Smart Images

Figure CN115208434B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a method, device, electronic device and storage medium for improving high-frequency collection efficiency based on HPLC. Background Art
[0002] High speed Power Line Carrier communication (HPLC) communication network generally forms a multi-level associated tree network with a central coordinator (CCO) as the center and a proxy coordinator (PCO) as the relay agent to connect all stations (Stattion, SAT).
[0003] The power collection system based on HPLC generally includes a collection terminal, CCO, STA and smart meter. CCO is generally installed on the collection terminal, and STA can be installed on the smart meter. The collection terminal can send multiple concurrent meter reading tasks (i.e., the number of tasks) to CCO at the same time, and each concurrent meter reading task can include multiple commands for collecting smart meter data (i.e., the number of commands). CCO can communicate directly with SAT to directly collect smart meter data to complete the collection of power data.
[0004] However, in actual use, it is found that when the collection terminal collects smart meter data, the number of tasks and commands sent to the CCO is not as large as possible. Too many tasks or commands will cause the CCO to process more slowly, thereby extending the communication time and reducing the efficiency of power data collection. Summary of the invention
[0005] The present invention provides a method, device, electronic device and storage medium for improving high-frequency data collection efficiency based on HPLC, so as to solve the problem that too many tasks or commands will cause CCO processing to slow down, thereby prolonging the communication time and reducing the efficiency of power data collection.
[0006] In a first aspect, the present invention provides a method for improving high-frequency acquisition efficiency based on HPLC, which is applied to an acquisition terminal in a power acquisition system based on HPLC, and the acquisition terminal is used to send a task number to a COO in the power acquisition system based on HPLC. The method includes:
[0007] The first cycle is executed until the first preset condition is met; the first cycle includes:
[0008] Send the number of tasks to COO and record the collection time corresponding to the number of tasks executed;
[0009] When the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle, the number of tasks in the next cycle is increased or decreased according to the first preset rule;
[0010] Among them, the first preset condition is that the absolute values of the differences between the collection durations corresponding to the first preset number of execution tasks are all smaller than the first preset threshold.
[0011] In a possible implementation, the first preset rule is: the collection time length corresponding to executing the number of tasks in the current cycle is not equal to the collection time length corresponding to executing the number of tasks in the previous cycle.
[0012] In a possible implementation, when the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle, increasing or decreasing the number of tasks in the next cycle according to a first preset rule includes:
[0013] If the number of tasks in the current cycle is greater than the number of tasks in the previous cycle, then: when the collection duration corresponding to the number of tasks in the current cycle is greater than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is subtracted from the first number to obtain the number of tasks in the next cycle; when the collection duration corresponding to the number of tasks in the current cycle is less than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by the second number to obtain the number of tasks in the next cycle;
[0014] If the number of tasks in the current cycle is less than the number of tasks in the previous cycle, then: when the collection time corresponding to the number of tasks in the current cycle is greater than the collection time corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by a third amount as the number of tasks in the next cycle; when the collection time corresponding to the number of tasks in the current cycle is less than the collection time corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is reduced by a fourth amount as the number of tasks in the next cycle.
[0015] In a possible implementation, the number of tasks corresponding to the first preset condition is the target number of tasks; each task of the target number of tasks includes a command number; after executing the first loop process until the first preset condition is met, the method further includes:
[0016] Based on the target number of tasks, a second loop process is executed until a second preset condition is met; the second loop process includes:
[0017] Send the number of commands to COO and record the collection time corresponding to the number of executed commands;
[0018] When the number of commands in the current cycle is not equal to the number of commands in the previous cycle, the number of commands in the next cycle is increased or decreased according to a second preset rule;
[0019] The second preset condition is that the absolute values of the differences between the collection durations corresponding to the second preset number of execution commands are all smaller than the second preset threshold.
[0020] In a possible implementation, the second preset rule is: the collection time length corresponding to executing the current cycle command number is not equal to the collection time length corresponding to executing the previous cycle command number.
[0021] In a possible implementation, when the number of commands in the current cycle is not equal to the number of commands in the previous cycle, increasing or decreasing the number of commands in the next cycle according to a second preset rule includes:
[0022] If the number of commands in the current cycle is greater than the number of commands in the previous cycle, then: when the acquisition time corresponding to the number of commands in the current cycle is greater than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is subtracted by the fifth number to obtain the number of commands in the next cycle; when the acquisition time corresponding to the number of commands in the current cycle is less than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is increased by the sixth number to obtain the number of commands in the next cycle;
[0023] If the number of commands in the current cycle is less than the number of commands in the previous cycle, then: when the acquisition time corresponding to the number of commands in the current cycle is greater than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is increased by the seventh number as the number of commands in the next cycle; when the acquisition time corresponding to the number of commands in the current cycle is less than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is reduced by the eighth number as the number of commands in the next cycle.
[0024] In a possible implementation, the number of tasks corresponding to satisfying the second preset condition is the target number of commands; after executing the first loop process until the first preset condition is satisfied, and executing the second loop process until the second preset condition is satisfied, the method further includes:
[0025] The target number of tasks and the target number of commands are issued to the COO so that the HPLC-based power collection system performs the collection tasks according to the target number of tasks and the target number of commands.
[0026] In a second aspect, the present invention provides a high-frequency acquisition efficiency improvement device based on HPLC, which is applied to an acquisition terminal in an HPLC-based power acquisition system, and the acquisition terminal is used to send a task number to a COO in the HPLC-based power acquisition system, and the device includes a first sending module, a first adjustment module and a first control module;
[0027] The first sending module is used to send the task number to the COO and record the collection time corresponding to the number of executed tasks;
[0028] A first adjustment module, used to increase or decrease the number of tasks in the next cycle according to a first preset rule when the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle;
[0029] The first control module is used to control the first sending module and the first adjustment module to execute cyclically until a first preset condition is met; wherein the first preset condition is that the absolute values of the differences between the collection durations corresponding to the first preset number of execution tasks are all less than the first preset threshold.
[0030] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the steps of the method for improving high-frequency collection efficiency based on HPLC as described in the first aspect or any possible implementation of the first aspect are implemented.
[0031] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for improving high-frequency collection efficiency based on HPLC as described in the first aspect or any possible implementation of the first aspect.
[0032] The present invention provides a method, device, electronic device and storage medium for improving high-frequency data collection efficiency based on HPLC, which are applied to a data collection terminal in a power collection system based on HPLC. The data collection terminal executes a first cycle process until a first preset condition is met, and determines the optimal number of tasks issued to the COO, so that the power collection system based on HPLC collects power data according to the optimal number of tasks. By achieving optimal matching between the number of tasks and the power collection system based on HPLC, the collection time of power data of the power collection system based on HPLC can be reduced, thereby improving the collection efficiency of power data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0034] Figure 1 is a schematic diagram of the structure of the HPLC communication network provided by an embodiment of the present invention;
[0035] Figure 2 is a collection interaction diagram of a power collection system based on HPLC provided by an embodiment of the present invention;
[0036] Figure 3It is a flow chart of the implementation of the method for improving high-frequency collection efficiency based on HPLC provided in an embodiment of the present invention;
[0037] Figure 4 It is a collection example flow chart of a method for improving high-frequency collection efficiency based on HPLC provided in an embodiment of the present invention;
[0038] Figure 5 It is a structural schematic diagram of a high-frequency collection efficiency improvement device based on HPLC provided in an embodiment of the present invention;
[0039] Figure 6 is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0041] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0042] The HPLC-based power collection system in the embodiment of the present invention is generally constructed based on the HPLC communication network. Figure 1 , which shows a schematic diagram of the structure of the HPLC communication network provided by an embodiment of the present invention. Figure 1 As shown in the figure, the HPLC communication network generally forms a tree network with CCO as the center and PCO as the relay agent, connecting all STAs and their associations. Among them, PCO itself is also a STA, and STA can be a smart telegraph, a type I collector communication unit, a broadband carrier type II collector, etc. Specifically, it can include one CCO, three PCOs and nine STAs.
[0043] In practical applications, the power collection system based on HPLC can include a collection terminal, CCO, smart meter, type I collector, etc. Among them, CCO is installed on the collection terminal, and STA is installed on the smart meter or type I collector. In addition, the broadband carrier type II collector has an integrated STA module. The collection terminal communicates with STA through CCO to directly collect power data from the smart meter, or indirectly collects power data from the smart meter through type I collector and broadband carrier type II collector.
[0044] See also Figure 2, which shows a collection interaction diagram of a power collection system based on HPLC provided by an embodiment of the present invention. Figure 2 As shown in the figure, the process of using the HPLC-based power collection system to collect power data from multiple smart meters is as follows:
[0045] The acquisition terminal sends concurrent meter reading task 1, concurrent meter reading task 2, concurrent meter reading task 3, concurrent meter reading task 4 and concurrent meter reading task 5 to the CCO through the Q / GDW1376.2 protocol. Concurrent meter reading tasks 1 to 5 are used to read the power data of smart meters 1 to 5 respectively. Each concurrent meter reading task can include data 1, data 2 and data 3.
[0046] CCO forwards the messages of data 1, data 2 and data 3 read from smart meter 1 to the corresponding STA1 through HPLC protocol, and forwards the messages of data 1, data 2 and data 3 read from smart meter 2 to the corresponding STA2, etc. There can be n SATs, n≥1.
[0047] Take SAT1 as an example for explanation, and the same is true for other STAs. STA1 reads data 1 of smart meter 1 through the smart meter protocol, and smart meter 1 returns data 1 to STA1. STA1 sends the data of smart meter 1 to CCO. CCO sends the data of smart meter to the collection terminal.
[0048] Among them, the concurrent meter reading tasks 1 to 5 sent by the collection terminal to the CCO are the task numbers, and the data 1, data 2, and data 3 included in each concurrent meter reading task are the command numbers. Data 1 can represent the current data collected from the smart meter, data 2 can be used to represent the voltage data collected from the smart meter, and data 3 can be used to represent the power data collected from the smart meter. Data 1 to 3 are used to represent the different electrical parameters collected from the smart meter. The number of tasks in each command number can be the same or different, and can be selected according to actual conditions.
[0049] In the embodiment of the present invention, the collection terminal sends the task number and command number to the CCO, and the CCO collects the power data of the smart meter according to the task number and command number, and feeds the power data back to the collection terminal, which is called a collection duration. Different task numbers and command numbers correspond to different collection durations.
[0050] In actual applications, it is found that when the collection terminal collects power data from smart meters, the number of tasks and commands sent to the CCO is not the more the better. Too many tasks or commands will slow down the CCO processing, thereby extending the communication time. At the same time, the optimal number of tasks and commands is not a fixed value. The CCO of different manufacturers cooperates with the STA of different manufacturers, the distance between the STA and the CCO, and the interference on the low-voltage power line will all affect the data collection speed.
[0051] In view of the fact that the optimal number of tasks and commands for CCOs of different manufacturers are different, the present invention aims to automatically find an optimal combination of the number of tasks and commands for each CCO by utilizing edge computing at the acquisition terminal.
[0052] To solve the above problems, an embodiment of the present invention provides a method for improving high-frequency acquisition efficiency based on HPLC, which is used to optimize the number of tasks and / or commands sent by the acquisition terminal to the CCO.
[0053] See also Figure 3 , which shows a flow chart of the implementation of the method for improving high-frequency collection efficiency based on HPLC provided by an embodiment of the present invention. Figure 3 As shown, a method for improving high-frequency acquisition efficiency based on HPLC is applied to an acquisition terminal in a power acquisition system based on HPLC, and the acquisition terminal is used to send a task number to a COO in the power acquisition system based on HPLC. The method may include: executing a first cycle process until a first preset condition is met; the first cycle process may include:
[0054] S101, sending the task number to the COO and recording the collection time corresponding to the number of executed tasks.
[0055] Optionally, at the beginning of the first cycle, the acquisition terminal sends the number of tasks to the COO, which can be the initial number of tasks or the random number of tasks. The initial number of tasks is the number of tasks set based on historical experience, which is used to indicate the number of tasks corresponding to the historical best acquisition duration. The random number of tasks is any number of tasks, which can be randomly set according to actual conditions. When the acquisition terminal executes the first cycle, it needs to send the initial value of the cycle to the COO, that is, the initial number of tasks or the random number of tasks.
[0056] Optionally, when the first cycle is executed, the collection terminal sends a different number of tasks to the COO in each cycle, and records the collection time corresponding to the number of tasks.
[0057] Optional, according to Figure 2 As shown in the collection interaction diagram, each task number corresponds to a collection duration. The time from the collection terminal sending the task number to the COO to the CCO feeding back the collected power data to the collection terminal is called the collection duration.
[0058] S102, when the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle, increase or decrease the number of tasks in the next cycle according to the first preset rule; wherein the first preset condition is that the absolute values of the differences between the collection durations corresponding to the first preset number of execution tasks are all less than the first preset threshold.
[0059] Optionally, the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle, including: the number of tasks in the current cycle is greater than the number of tasks in the previous cycle, or the number of tasks in the current cycle is less than the number of tasks in the previous cycle. The collection terminal can issue different numbers of tasks in different cycles and record the collection duration corresponding to the number of tasks. The optimal number of tasks is determined by the change in the collection duration of each cycle.
[0060] Optionally, the first preset rule is used to characterize the relationship between the collection duration corresponding to the number of tasks in the current cycle and the collection duration corresponding to the number of tasks in the previous cycle. The change in the number of tasks in the next cycle is determined by the relationship between the collection durations corresponding to two cycles with different numbers of tasks. For example, when the collection duration of the current cycle is greater than the collection duration of the previous cycle, the number of tasks in the current cycle can be changed to be closer to the number of tasks in the previous cycle. When the collection duration of the current cycle is less than the collection duration of the previous cycle, the number of tasks in the current cycle can be changed away from the number of tasks in the previous cycle.
[0061] Optionally, the first preset rule may be: the collection duration corresponding to executing the number of tasks in the current cycle is not equal to the collection duration corresponding to executing the number of tasks in the previous cycle.
[0062] Optionally, the first preset condition is used to characterize the condition for jumping out of the first loop process, and the first preset threshold is used to characterize that the difference between multiple collection durations is small and almost unchanged. The first preset threshold can be set according to actual conditions. When the absolute values of the differences between the collection durations corresponding to the first preset number of execution tasks are all less than the first preset threshold, it indicates that there is no need to further optimize the collection duration, and the current collection duration is the optimal collection duration, and the number of tasks corresponding to the optimal collection duration is the optimal number of tasks.
[0063] Exemplarily, the process of determining the optimal number of tasks by executing the first cycle process in the embodiment of the present invention may be as follows:
[0064] S01, during the first data collection (i.e., the first round of collection), the collection terminal sets the initial number of tasks based on the scale of the area (i.e., how many STAs are there under the CCO) and the number of smart meter data to be collected, using past experience.
[0065] S02, when the first round of collection is completed (that is, all smart meters and all data collection are completed), the collection terminal records and counts the total collection time.
[0066] S03, based on the initial number of tasks used in the first round of collection, increase the initial number of tasks by 1.
[0067] S04, when the second round of collection is completed, the collection terminal records and counts the total collection time, and compares it with the first round of collection speed. If the speed increases, the number of tasks continues to increase by 1, and if the speed decreases, the number of tasks decreases by 1. If the current cycle collection time is less than the previous cycle collection time, it indicates that the speed has increased; if the current cycle collection time is greater than the previous cycle collection time, it indicates that the speed has decreased.
[0068] S05, when the third round of collection is completed, the collection terminal records and counts the total collection time, and compares it with the previous round of collection speed; if the speed is improved, the current number of tasks and the previous round of tasks are judged, if the number of tasks increases compared with the previous round of tasks, the number of tasks continues to increase, if the number of tasks decreases compared with the previous round of tasks, the number of tasks continues to decrease.
[0069] S06, repeating S02 to S05 until the acquisition speed is not significantly improved, and determining the current number of tasks as the optimal number of tasks.
[0070] The embodiment of the present invention controls the collection terminal to send different numbers of tasks to the COO in different cycles, determines the number of tasks for the next cycle according to the collection durations corresponding to different cycles, and then determines the optimal number of tasks by comparing the collection durations, thereby achieving optimal matching of the number of tasks with the HPLC-based power collection system, and can reduce the collection duration of power data of the HPLC-based power collection system, thereby improving the collection efficiency of power data.
[0071] In some embodiments of the present invention, the above S102 "when the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle, increase or decrease the number of tasks in the next cycle according to the first preset rule" may include the following two situations.
[0072] The first type: If the number of tasks in the current cycle is greater than the number of tasks in the previous cycle, then: when the collection time corresponding to the number of tasks in the current cycle is greater than the collection time corresponding to the number of tasks in the previous cycle, subtract the first number from the number of tasks in the current cycle to obtain the number of tasks in the next cycle; when the collection time corresponding to the number of tasks in the current cycle is less than the collection time corresponding to the number of tasks in the previous cycle, increase the second number from the number of tasks in the current cycle to obtain the number of tasks in the next cycle.
[0073] Optionally, when the number of tasks in the current cycle is greater than the number of tasks in the previous cycle, it indicates that the number of tasks is increasing. At this time, if the acquisition duration corresponding to the current cycle is greater than the acquisition duration corresponding to the previous cycle, it indicates that the acquisition speed is reduced, that is, the acquisition duration increases with the increase in the number of tasks, and the number of tasks in the current cycle needs to be reduced, and the reduced number of tasks is used as the number of tasks in the next cycle. The first number can be selected according to actual conditions, for example, the first number can be 1.
[0074] Optionally, when the number of tasks is increasing, if the collection duration corresponding to the current cycle is less than the collection duration corresponding to the previous cycle, it indicates that the collection speed is improved, that is, the collection duration decreases as the number of tasks increases, and the number of tasks in the current cycle can be increased, and the increased number of tasks is used as the number of tasks in the next cycle. The second number can be selected according to actual conditions, for example, the second number can be 1.
[0075] The second type: If the number of tasks in the current cycle is less than the number of tasks in the previous cycle, then: when the collection time corresponding to the number of tasks in the current cycle is greater than the collection time corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by a third amount as the number of tasks in the next cycle; when the collection time corresponding to the number of tasks in the current cycle is less than the collection time corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is reduced by a fourth amount as the number of tasks in the next cycle.
[0076] Optionally, when the number of tasks in the current cycle is less than the number of tasks in the previous cycle, it indicates that the number of tasks is decreasing. At this time, if the acquisition duration corresponding to the current cycle is greater than the acquisition duration corresponding to the previous cycle, it indicates that the acquisition speed is reduced, that is, the acquisition duration increases as the number of tasks decreases, and the number of tasks in the current cycle needs to be increased, and the increased number of tasks is used as the number of tasks in the next cycle. The third number can be selected according to actual conditions, for example, the third number can be 1.
[0077] Optionally, when the number of tasks is decreasing, if the collection duration corresponding to the current cycle is less than the collection duration corresponding to the previous cycle, it indicates that the collection speed is improved, that is, the collection duration decreases as the number of tasks decreases, and the number of tasks in the current cycle can be reduced, and the reduced number of tasks is used as the number of tasks in the next cycle. The fourth number can be selected according to actual conditions, for example, the fourth number can be 1.
[0078] The embodiment of the present invention can improve the collection efficiency of the HPLC power data collection system by changing the number of tasks issued by the phase COO in different cycles, recording and comparing the collection duration, and then determining the optimal number of tasks.
[0079] In addition, the embodiment of the present invention further determines the optimal number of commands based on the determination of the optimal number of tasks, which can further improve the collection efficiency. The following is an embodiment of determining the optimal number of commands.
[0080] In some embodiments of the present invention, the number of tasks includes the number of commands. It is characterized in that the number of tasks corresponding to the first preset condition is the target number of tasks, and the target number of tasks is also the optimal number of tasks. Each task in the target number of tasks includes the number of commands. After executing the first loop process until the first preset condition is satisfied, the method may further include: based on the target number of tasks, executing the second loop process until the second preset condition is satisfied; the second loop process may include:
[0081] S103, sending the number of commands to the COO, and recording the collection time corresponding to the number of executed commands.
[0082] Optionally, at the beginning of the second cycle, the acquisition terminal sends a command number to the COO, which can be an initial command number or a random command number. The initial command number is a command number set based on historical experience, which is used to indicate the number of commands corresponding to the historical best acquisition duration. The random command number is an arbitrary command number, which can be randomly set according to actual conditions. When the acquisition terminal executes the second cycle, it is necessary to send the initial value of the cycle to the COO, that is, the initial command number or the random command number.
[0083] Optionally, when the second cycle is executed, the acquisition terminal sends a different number of commands to the COO in each cycle, and records the acquisition time corresponding to the execution of the number of commands based on the target number of tasks.
[0084] S104, when the number of commands in the current cycle is not equal to the number of commands in the previous cycle, increase or decrease the number of commands in the next cycle according to the second preset rule; wherein the second preset condition is that the absolute values of the differences between the collection durations corresponding to the second preset number of execution commands are all less than the second preset threshold.
[0085] Optionally, the number of commands in the current cycle is not equal to the number of commands in the previous cycle, including: the number of commands in the current cycle is greater than the number of commands in the previous cycle, or the number of commands in the current cycle is less than the number of commands in the previous cycle. The acquisition terminal can send different numbers of commands in different cycles and record the acquisition duration corresponding to the number of commands. The optimal number of commands under the target number of tasks is determined by the change in the acquisition duration of each cycle.
[0086] Optionally, the second preset rule is used to characterize the relationship between the collection time corresponding to the number of commands in the current cycle and the collection time corresponding to the number of commands in the previous cycle. The change in the number of commands in the next cycle is determined by the relationship between the collection times corresponding to the two cycles with different numbers of commands. For example, when the collection time of the current cycle is longer than the collection time of the previous cycle, the number of commands in the current cycle can be changed to be closer to the number of commands in the previous cycle. When the collection time of the current cycle is shorter than the collection time of the previous cycle, the number of commands in the current cycle can be changed away from the number of tasks in the previous cycle.
[0087] Optionally, the second preset rule may be: the collection time length corresponding to executing the current cycle command number is not equal to the collection time length corresponding to executing the previous cycle command number.
[0088] Optionally, the second preset condition is used to characterize the condition for jumping out of the second loop process, and the second preset threshold is used to characterize that the difference between multiple collection durations is small and almost unchanged. The second preset threshold can be set according to actual conditions. When the absolute values of the differences between the collection durations corresponding to the second preset number of execution tasks are all less than the second preset threshold, it indicates that there is no need to further optimize the collection duration, and the current collection duration is the optimal collection duration, and the number of tasks corresponding to the optimal collection duration is the optimal number of tasks.
[0089] Exemplarily, the process of determining the optimal number of commands by executing the second loop process in the embodiment of the present invention may be as follows:
[0090] S07, based on the target number of tasks. During the first data collection (i.e., the first round of collection), the collection terminal sets the initial number of commands based on the scale of the area (i.e., how many STAs there are under the CCO) and the number of smart meter data to be collected, using past experience.
[0091] S08, when the first round of collection is completed (that is, all smart meters and all data collection are completed), the collection terminal records and counts the total collection time.
[0092] S09, based on the initial number of commands used in the first round of acquisition, increase the initial number of commands by 1.
[0093] S10, after the second round of collection is completed, the collection terminal records and counts the total collection time, and compares it with the first round of collection speed. If the speed increases, the number of commands continues to increase by 1, and if the speed decreases, the number of commands decreases by 1. If the current cycle collection time is less than the previous cycle collection time, it indicates that the speed has increased; if the current cycle collection time is greater than the previous cycle collection time, it indicates that the speed has decreased.
[0094] S11, when the third round of collection is completed, the collection terminal records and counts the total collection time, and compares it with the previous round of collection speed; if the speed is improved, the current number of commands and the previous round of commands are judged, if the number of commands increases compared with the previous round of tasks, the number of commands continues to increase, if the number of commands decreases compared with the previous round of commands, the number of commands continues to decrease.
[0095] S12, repeating S07 to S11 until the acquisition speed is not significantly improved, and determining the current command number as the optimal command number.
[0096] The embodiment of the present invention optimizes the number of commands based on the determination of the optimal number of tasks to determine the optimal number of commands. The collection efficiency of the power collection system based on HPLC can be improved through two optimizations, and the application range is wide and the practicability is extremely high.
[0097] In some embodiments of the present invention, the above-mentioned S104 "when the number of commands in the current cycle is not equal to the number of commands in the previous cycle, increase or decrease the number of commands in the next cycle according to the second preset rule" may include the following two situations.
[0098] The first one is that if the number of commands in the current cycle is greater than the number of commands in the previous cycle, then: when the acquisition time corresponding to the number of commands in the current cycle is greater than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is subtracted by the fifth number as the number of commands in the next cycle; when the acquisition time corresponding to the number of commands in the current cycle is less than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is increased by the sixth number as the number of commands in the next cycle.
[0099] Optionally, when the number of commands in the current cycle is greater than the number of commands in the previous cycle, it indicates that the number of commands is increasing. At this time, if the acquisition duration corresponding to the current cycle is greater than the acquisition duration corresponding to the previous cycle, it indicates that the acquisition speed is reduced, that is, the acquisition duration increases with the increase in the number of commands, and the number of commands in the current cycle needs to be reduced, and the reduced number of commands is used as the number of commands in the next cycle. The fifth number can be selected according to actual conditions, for example, the fifth number can be 1.
[0100] Optionally, when the number of commands is increasing, if the acquisition duration corresponding to the current cycle is less than the acquisition duration corresponding to the previous cycle, it indicates that the acquisition speed is improved, that is, the acquisition duration decreases as the number of commands increases, and the number of commands in the current cycle can be increased, and the increased number of commands is used as the number of commands in the next cycle. The sixth number can be selected according to actual conditions, for example, the sixth number can be 1.
[0101] The second type, if the number of commands in the current cycle is less than the number of commands in the previous cycle, then: when the acquisition time corresponding to the number of commands in the current cycle is greater than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is increased by the seventh number as the number of commands in the next cycle; when the acquisition time corresponding to the number of commands in the current cycle is less than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is reduced by the eighth number as the number of commands in the next cycle.
[0102] Optionally, when the number of commands in the current cycle is less than the number of commands in the previous cycle, it indicates that the number of commands is in a decreasing state. At this time, if the acquisition duration corresponding to the current cycle is greater than the acquisition duration corresponding to the previous cycle, it indicates that the acquisition speed is reduced, that is, the acquisition duration increases as the number of commands decreases, and the number of commands in the current cycle needs to be increased, and the increased number of commands is used as the number of commands in the next cycle. The seventh number can be selected according to actual conditions, for example, the seventh number can be 1.
[0103] Optionally, when the number of commands is in a decreasing state, if the acquisition duration corresponding to the current cycle is less than the acquisition duration corresponding to the previous cycle, it indicates that the acquisition speed is improved, that is, the acquisition duration decreases as the number of commands decreases, and the number of commands in the current cycle can be reduced, and the reduced number of commands is used as the number of commands in the next cycle. The eighth number can be selected according to actual conditions, for example, the eighth number can be 1.
[0104] In some embodiments of the present invention, the number of tasks corresponding to the second preset condition is the target command number; after executing the first cycle process until the first preset condition is met, and executing the second cycle process until the second preset condition is met, the method may also include: sending the target number of tasks and the target number of commands to the COO, so that the HPLC-based power collection system performs the collection tasks according to the target number of tasks and the target number of commands.
[0105] For example, see Figure 4 , which shows an example flow chart of a high-frequency collection efficiency improvement method based on HPLC provided by an embodiment of the present invention. Figure 4 As shown, the process of determining the optimal number of tasks and the optimal number of commands can be as follows:
[0106] A1, the first collection terminal sets the initial values of the number of tasks and commands based on the scale of the area and the number of smart meter data to be collected, using past experience.
[0107] A2, the collection terminal performs the first data collection.
[0108] A3, after the first data collection is completed, the collection terminal records the collection time.
[0109] A4, increase the number of tasks by 1.
[0110] A5, continue data collection.
[0111] A6, the collection terminal records and counts the collection time of this time, and compares it with the previous round of collection speed.
[0112] A7, if the speed is increased, the number of tasks for the two rounds of data collection is determined. If the number of tasks is increased, the number of tasks is increased by 1, and the process returns to step A5 for data collection; if the number of tasks is reduced, the number of tasks is reduced by 1, and the process returns to step A5 for data collection.
[0113] A8, if the speed is reduced, the number of tasks for the two rounds of data collection is determined. If the number of tasks increases, the number of tasks is reduced by 1, and the data collection is returned to step A5; if the number of tasks decreases, the number of tasks is increased by 1, and the data collection is returned to step A5.
[0114] A9, if the speed does not improve significantly, the current number of tasks is the optimal number of tasks.
[0115] A10, increase the command number by 1.
[0116] A11, perform data collection.
[0117] A12, the collection terminal records and counts the collection time of this time, and compares it with the collection speed of the previous round.
[0118] A13, if the speed is increased, the number of data acquisition commands before and after is determined. If the number of commands is increased, the number of commands is increased by 1, and the data acquisition is returned to step A11; if the number of commands is reduced, the number of commands is reduced by 1, and the data acquisition is returned to step A11.
[0119] A14, if the speed decreases, the number of data collection commands in the previous and next rounds is determined; if the number of commands increases compared to before, the number of commands is reduced by 1, and the process returns to step A11 for data collection; if the number of commands decreases compared to before, the number of commands is increased by 1, and the process returns to step A11 for data collection.
[0120] A15, if the speed is not significantly improved, the current number of commands is the optimal number of commands.
[0121] After the optimization is completed, the collection terminal uses the optimized number of tasks and commands to collect data.
[0122] The embodiment of the present invention uses the acquisition terminal to count the data acquisition speed under various combinations of task numbers and command numbers during the data acquisition process of the smart meter, and dynamically adjusts the number of tasks and the number of commands until the optimal combination of the number of tasks and the number of commands is found, thereby improving the acquisition speed of the HPLC power data acquisition system.
[0123] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the 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 embodiment of the present invention.
[0124] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.
[0125] Figure 5 The schematic diagram of the structure of the high-frequency collection efficiency improvement device based on HPLC provided by the embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0126] like Figure 5As shown, a high-frequency data acquisition efficiency improvement device 20 based on HPLC is applied to a data acquisition terminal in a power acquisition system based on HPLC. The data acquisition terminal is used to send the number of tasks to the COO in the power acquisition system based on HPLC. The device 20 may include a first sending module 201, a first adjustment module 202 and a first control module 203. The first sending module 201 is used to send the number of tasks to the COO and record the acquisition duration corresponding to the number of executed tasks; the first adjustment module 202 is used to increase or decrease the number of tasks in the next cycle according to a first preset rule when the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle; the first control module 203 is used to control the first sending unit and the first adjustment unit to execute cyclically until the first preset condition is met; wherein the first preset condition is that the absolute value of the difference between the acquisition durations corresponding to the first preset number of executed tasks is less than the first preset threshold.
[0127] In some embodiments of the present invention, the first preset rule is: the collection duration corresponding to the execution of the current periodic task number is not equal to the collection duration corresponding to the execution of the previous periodic task number.
[0128] In some embodiments of the present invention, the first adjustment module 202 may include a first adjustment unit and a second adjustment unit. The first adjustment unit is used for, if the number of tasks in the current cycle is greater than the number of tasks in the previous cycle, then: when the collection duration corresponding to the number of tasks in the current cycle is greater than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is subtracted from the first number as the number of tasks in the next cycle; when the collection duration corresponding to the number of tasks in the current cycle is less than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by the second number as the number of tasks in the next cycle; and the second adjustment unit is used for, if the number of tasks in the current cycle is less than the number of tasks in the previous cycle, then: when the collection duration corresponding to the number of tasks in the current cycle is greater than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by the third number as the number of tasks in the next cycle; when the collection duration corresponding to the number of tasks in the current cycle is less than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is reduced by the fourth number as the number of tasks in the next cycle.
[0129] In some embodiments of the present invention, the number of tasks corresponding to the first preset condition is the target number of tasks; each task of the target number of tasks includes a number of commands; the device 20 may also include a second issuing module, a second adjustment module, and a second control module. The second issuing module is used to issue the number of commands to the COO and record the acquisition time corresponding to the number of executed commands; the second adjustment module is used to increase or decrease the number of commands in the next cycle according to the second preset rule when the number of commands in the current cycle is not equal to the number of commands in the previous cycle; the second control module is used to control the second issuing module and the second adjustment module to execute cyclically based on the target number of tasks after executing the first cycle until the first preset condition is met; wherein the second preset condition is that the absolute value of the difference between the acquisition time corresponding to the second preset number of executed commands is less than the second preset threshold.
[0130] In some embodiments of the present invention, the second preset rule is: the acquisition time length corresponding to executing the current cycle command number is not equal to the acquisition time length corresponding to executing the previous cycle command number.
[0131] In some embodiments of the present invention, the second adjustment module may include a third adjustment unit and a fourth adjustment unit. The third adjustment unit is used for, if the number of commands in the current cycle is greater than the number of commands in the previous cycle, then: when the acquisition time corresponding to the number of commands in the current cycle is greater than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is subtracted from the fifth number as the number of commands in the next cycle; when the acquisition time corresponding to the number of commands in the current cycle is less than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is increased by the sixth number as the number of commands in the next cycle; the fourth adjustment unit is used for, if the number of commands in the current cycle is less than the number of commands in the previous cycle, then: when the acquisition time corresponding to the number of commands in the current cycle is greater than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is increased by the seventh number as the number of commands in the next cycle; when the acquisition time corresponding to the number of commands in the current cycle is less than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is reduced by the eighth number as the number of commands in the next cycle.
[0132] In some embodiments of the present invention, the number of tasks corresponding to the second preset condition is the target command number; the device 20 may also include an execution module; the execution module is used to send the target number of tasks and the target number of commands to the COO after executing the first cycle process until the first preset condition is met, and executing the second cycle process until the second preset condition is met, so that the HPLC-based power collection system performs the collection tasks according to the target number of tasks and the target number of commands.
[0133] Figure 6 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 6As shown, the electronic device 30 of this embodiment includes: a processor 300 and a memory 301, and the memory 301 stores a computer program 302 that can be run on the processor 300. When the processor 300 executes the computer program 302, the steps in the above-mentioned embodiments of the method for improving high-frequency collection efficiency based on HPLC are implemented, for example Figure 3 Alternatively, when the processor 300 executes the computer program 302, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 5 Functions of modules 201 to 203 are shown.
[0134] Exemplarily, the computer program 302 may be divided into one or more modules / units, one or more modules / units are stored in the memory 301, and are executed by the processor 300 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments that can implement specific functions, and the instruction segments are used to describe the execution process of the computer program 302 in the electronic device 30. For example, the computer program 302 may be divided into Figure 5 Modules 201 to 203 are shown.
[0135] The electronic device 30 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device 30 may include, but is not limited to, a processor 300 and a memory 301. Those skilled in the art will appreciate that Figure 6 It is only an example of the electronic device 30 and does not constitute a limitation of the electronic device 30. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0136] The processor 300 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 any conventional processor, etc.
[0137] The memory 301 may be an internal storage unit of the electronic device 30, such as a hard disk or memory of the electronic device 30. The memory 301 may also be an external storage device of the electronic device 30, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 30. Further, the memory 301 may also include both an internal storage unit of the electronic device 30 and an external storage device. The memory 301 is used to store computer programs and other programs and data required by the electronic device. The memory 301 may also be used to temporarily store data that has been output or is to be output.
[0138] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0139] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0140] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0141] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0142] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0143] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0144] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment 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. When the computer program is executed by the processor, the steps of the above-mentioned high-frequency acquisition efficiency improvement method based on HPLC can be implemented. 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. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0145] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A method for improving high-frequency collection efficiency based on HPLC, characterized in that: A collection terminal applied to a power collection system based on HPLC, wherein the collection terminal is used to send a task number to a COO in the power collection system based on HPLC, and the method comprises: Execute a first cycle until a first preset condition is met; the first cycle includes: Send the number of tasks to the COO and record the collection time corresponding to the number of tasks executed; When the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle, the number of tasks in the next cycle is increased or decreased according to the first preset rule; The first preset condition is that the absolute values of the differences between the collection durations corresponding to the first preset number of execution tasks are all less than the first preset threshold; The first preset rule is: the collection time corresponding to the number of tasks in the current cycle is not equal to the collection time corresponding to the number of tasks in the previous cycle; When the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle, increasing or decreasing the number of tasks in the next cycle according to the first preset rule includes: If the number of tasks in the current cycle is greater than the number of tasks in the previous cycle, then: when the collection duration corresponding to the number of tasks in the current cycle is greater than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is subtracted from the first number to obtain the number of tasks in the next cycle; when the collection duration corresponding to the number of tasks in the current cycle is less than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by the second number to obtain the number of tasks in the next cycle; If the number of tasks in the current cycle is less than the number of tasks in the previous cycle, then: when the collection time corresponding to the number of tasks in the current cycle is greater than the collection time corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by a third amount as the number of tasks in the next cycle; when the collection time corresponding to the number of tasks in the current cycle is less than the collection time corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is reduced by a fourth amount as the number of tasks in the next cycle.
2. The method for improving high-frequency collection efficiency based on HPLC according to claim 1, characterized in that: The number of tasks corresponding to satisfying the first preset condition is the target number of tasks; Each task of the target number of tasks includes a number of commands; After executing the first cycle process until the first preset condition is met, the method further includes: Based on the target number of tasks, a second loop process is executed until a second preset condition is met; the second loop process includes: Send the number of commands to the COO and record the collection time corresponding to the number of executed commands; When the number of commands in the current cycle is not equal to the number of commands in the previous cycle, the number of commands in the next cycle is increased or decreased according to a second preset rule; The second preset condition is that the absolute values of the differences between the collection durations corresponding to the second preset number of execution commands are all smaller than the second preset threshold.
3. The method for improving high-frequency collection efficiency based on HPLC according to claim 2, characterized in that: The second preset rule is that the acquisition time length corresponding to executing the current cycle command number is not equal to the acquisition time length corresponding to executing the previous cycle command number.
4. The method for improving high-frequency collection efficiency based on HPLC according to claim 3, characterized in that: When the number of commands in the current cycle is not equal to the number of commands in the previous cycle, increasing or decreasing the number of commands in the next cycle according to the second preset rule includes: If the number of commands in the current cycle is greater than the number of commands in the previous cycle, then: when the acquisition time corresponding to the number of commands in the current cycle is greater than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is subtracted by the fifth number to obtain the number of commands in the next cycle; when the acquisition time corresponding to the number of commands in the current cycle is less than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is increased by the sixth number to obtain the number of commands in the next cycle; If the number of commands in the current cycle is less than the number of commands in the previous cycle, then: when the acquisition time corresponding to the number of commands in the current cycle is greater than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is increased by the seventh number as the number of commands in the next cycle; when the acquisition time corresponding to the number of commands in the current cycle is less than the acquisition time corresponding to the number of commands in the previous cycle, the number of commands in the current cycle is reduced by the eighth number as the number of commands in the next cycle.
5. The method for improving high-frequency collection efficiency based on HPLC according to claim 4, characterized in that: The number of tasks corresponding to satisfying the second preset condition is the target number of commands; After executing the first cycle process until the first preset condition is satisfied, and executing the second cycle process until the second preset condition is satisfied, the method further includes: The target task number and the target command number are issued to the COO, so that the HPLC-based power collection system performs collection tasks according to the target task number and the target command number.
6. A device for improving high-frequency collection efficiency based on HPLC, characterized in that: A collection terminal applied to a power collection system based on HPLC, the collection terminal is used to send a task number to a COO in the power collection system based on HPLC, the device includes a first sending module, a first adjustment module and a first control module; The first sending module is used to send the number of tasks to the COO and record the collection time corresponding to the number of executed tasks; The first adjustment module is used to increase or decrease the number of tasks in the next cycle according to a first preset rule when the number of tasks in the current cycle is not equal to the number of tasks in the previous cycle; A first control module, used to control the first sending module and the first adjustment module to execute cyclically until a first preset condition is met; wherein the first preset condition is that the absolute values of the differences between the collection durations corresponding to the first number of execution tasks are all less than a first preset threshold; The first preset rule is: the collection time corresponding to the number of tasks in the current cycle is not equal to the collection time corresponding to the number of tasks in the previous cycle; The first adjustment module is specifically used to: If the number of tasks in the current cycle is greater than the number of tasks in the previous cycle, then: when the collection duration corresponding to the number of tasks in the current cycle is greater than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is subtracted from the first number to obtain the number of tasks in the next cycle; when the collection duration corresponding to the number of tasks in the current cycle is less than the collection duration corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by the second number to obtain the number of tasks in the next cycle; If the number of tasks in the current cycle is less than the number of tasks in the previous cycle, then: when the collection time corresponding to the number of tasks in the current cycle is greater than the collection time corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is increased by a third amount as the number of tasks in the next cycle; when the collection time corresponding to the number of tasks in the current cycle is less than the collection time corresponding to the number of tasks in the previous cycle, the number of tasks in the current cycle is reduced by a fourth amount as the number of tasks in the next cycle.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method for improving high-frequency collection efficiency based on HPLC as described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for improving high-frequency collection efficiency based on HPLC as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Power terminal data acquisition method and device and electronic equipment
CN111141951A
Electric power data acquisition method based on HPLC
CN113034884A
Transformer area user electric meter data acquisition method
CN113269955A
Minute-level high-frequency data acquisition method based on HPLC
CN113490071A
