Data acquisition method, system and equipment based on HPLC (High Performance Liquid Chromatography) and HRF (High Radio Frequency) dual-mode communication and medium

By adopting the data acquisition method of HPLC and HRF dual-mode communication in the power grid environment, the data transmission path is dynamically determined and the data acquisition sequence is optimized, which solves the problem of low data acquisition efficiency in complex power grid environments, and achieves efficient and accurate power consumption data acquisition.

CN119893331APending Publication Date: 2025-04-25SANHE WUJI ELECTRONIC PROD CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411953917.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the complex and changeable urban power grid environment, existing data acquisition methods are difficult to meet the requirements for data acquisition accuracy and efficiency, resulting in communication tasks being correct, consuming communication resources, and causing interference in the communication environment.

Method used

The data acquisition method based on HPLC and HRF dual-mode communication is adopted. By acquiring the pre-constructed data acquisition network topology, network status and initial routing table, combining the preset shortest path calculation method, the target data transmission path is dynamically determined, and weights are assigned to multiple electricity meters, and the data acquisition order is determined based on the key load data, weights and preset sorting method.

Benefits of technology

Real-time optimization of data transmission paths is realized, network congestion and transmission delay are avoided, efficient acquisition and timely transmission of key power consumption data is ensured, and the accuracy and efficiency of data acquisition are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893331A_ABST
    Figure CN119893331A_ABST
Patent Text Reader

Abstract

The invention provides a data acquisition method, system and device based on HPLC and HRF dual-mode communication and a medium, and relates to the technical field of data acquisition. The data acquisition method based on HPLC and HRF dual-mode communication comprises the following steps: acquiring a pre-constructed data acquisition network topology, a networking state of the data acquisition network topology and an initial routing table; determining a target data transmission path according to the networking state, the data acquisition network topology and a preset shortest path calculation mode; generating a target routing table according to the target data transmission path and the initial routing table; and acquiring key load data according to the target routing table, allocating weights to the plurality of ammeters, determining a data acquisition sequence according to the key load data, the weights and a preset sorting mode, and acquiring power utilization data of the plurality of ammeters according to the data acquisition sequence. According to the method, the shortest path is calculated and the acquisition sequence is set, so that the accuracy and integrity of the data are ensured, and the precision of the acquired power consumption data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data acquisition technology, and for example, to a data acquisition method, system, device and medium based on HPLC and HRF dual-mode communication. Background Art

[0002] With the advancement of social science and technology, more and more communication modes can be used in the process of power grid data collection, including high-speed power line carrier communication (HPLC), RS485 communication, optical fiber communication and high-speed radio frequency (HRF) communication modes. However, with the complexity of the urban power grid environment, the data communication process may face complex and changeable transmission environment and unpredictable transmission interference, resulting in data transmission failure or other abnormal conditions in the power grid. For example, on the basis of the gradual increase in the amount of power grid data, if the data receiving device cannot receive the data, the concentrator or meter of the data acquisition system will continue to try to send the same communication data to the data receiving device repeatedly, causing problems such as communication task failure and consumption of communication resources, resulting in interference with the communication environment.

[0003] In related technologies, a method of integrating multiple communication modes is generally used to collect and transmit data. However, the current data collection method generally adopts a fixed data transmission path and priority for data transmission. In the complex and changeable urban power grid environment, it is unable to meet the requirements for data collection accuracy, resulting in the current data collection method The collection efficiency is low. Summary of the invention

[0004] The present application aims to provide a data acquisition method, system, device and medium based on HPLC and HRF dual-mode communication.

[0005] According to one aspect of the present application, a data acquisition method based on HPLC and HRF dual-mode communication is proposed, comprising: Obtaining a pre-built data collection network topology, a networking state of the data collection network topology, and an initial routing table; Determine the target data transmission path based on the networking status, data collection network topology and the preset shortest path calculation method; Generate a target routing table according to the target data transmission path and the initial routing table; Key load data is collected according to the target routing table, and weights are assigned to multiple electricity meters to determine the data collection order based on the key load data, weights and a preset sorting method, and the electricity consumption data of multiple electricity meters is collected according to the data collection order.

[0006] According to some embodiments, the networking state includes initial networking and non-initial networking; the data acquisition network topology includes a plurality of communication links, link communication qualities corresponding to each of the plurality of communication links, and a plurality of communication nodes; Among them, according to the networking status, data collection network topology and the preset shortest path calculation method, the target data transmission path is determined, including: When the networking state is initial networking, determining multiple communication paths according to the multiple communication links, wherein each of the multiple communication paths includes multiple communication links; traversing a plurality of communication paths to determine communication delays between a plurality of communication nodes; According to the link communication quality and communication delay, the communication cost corresponding to each communication path is determined and stored; Determine and store the target data transmission path based on the shortest path calculation method and communication cost; When the networking state is not the initial networking, a pre-stored target data transmission path is obtained.

[0007] According to some embodiments, when the networking state is non-initial networking, generating a target routing table according to the target data transmission path and the initial routing table includes: Obtain the initial routing table and the historical shortest data transmission path; The historical shortest data transmission path is determined as the target data transmission path, and the initial routing table is updated based on the target data transmission path to generate a target routing table.

[0008] According to some embodiments, determining and storing a target data transmission path according to a shortest path calculation method and a communication cost includes: determining a starting node among a plurality of communication nodes; Based on the shortest path calculation method, the priority queue is initialized according to the corresponding attribute values ​​of multiple communication nodes on the preset attributes; Calculate the path length of the candidate path based on the priority queue, the attribute value, and the target link edge weights between multiple communication nodes; The path information is updated according to the path length to iterate the priority queue according to the updated path information until the final priority queue is empty, and the shortest path from the starting node to other nodes is determined as the target data transmission path and stored.

[0009] Optionally, the above method further includes: Determine transmission delay based on historical communication data; According to the transmission delay and the preset communication requirements, the initial link edge weight is updated to determine the target link edge weight.

[0010] Optionally, determining a data collection sequence according to key load data, weights, and a preset sorting method, and collecting power consumption data of multiple electric meters according to the data collection sequence, including: According to the key load data and sorting method, the correlation between the load power data corresponding to multiple meters and the line loss, as well as the ratio deviation between the current and voltage integrated power and the actual collected power are calculated; According to the preset weight setting requirements, the weight coefficients corresponding to the correlation and the ratio deviation are determined; Determine the weighted scores corresponding to each of the multiple electricity meters according to the weight coefficient, the correlation and the ratio deviation; Determine the order of data collection based on the weighted scores; According to the data collection order, the nodes to be processed among the multiple communication nodes are sorted; Based on the node sorting and preset dual-mode communication settings, multiple data collection tasks are generated to collect electricity consumption data from multiple meters.

[0011] Optionally, the above method further includes: Detect the execution process of multiple data collection tasks; In the event that any of the multiple data collection tasks fails to transmit, the communication cost of the communication path corresponding to any of the data collection tasks is updated to determine the latest data transmission path, and data is re-collected according to the latest data transmission path.

[0012] According to one aspect of the present application, a data acquisition system based on HPLC and HRF dual-mode communication is proposed, comprising: A data collection module is used to obtain a pre-built data collection network topology, a networking state of the data collection network topology, and an initial routing table; A communication link optimization module is used to determine the target data transmission path according to the networking status, data collection network topology and the preset shortest path calculation method; A routing module, used for generating a target routing table according to a target data transmission path and an initial routing table; The priority analysis and sequence coordination module is used to collect key load data according to the target routing table and assign weights to multiple electricity meters to determine the data collection order based on the key load data, weights and preset sorting method, and collect electricity consumption data of multiple electricity meters according to the data collection order.

[0013] Optionally, the networking state includes initial networking and non-initial networking; the data acquisition network topology includes multiple communication links, link communication qualities corresponding to the multiple communication links, and multiple communication nodes; the communication link optimization module is specifically used for: When the networking state is initial networking, determining multiple communication paths according to the multiple communication links, wherein each of the multiple communication paths includes multiple communication links; traversing a plurality of communication paths to determine communication delays between a plurality of communication nodes; According to the link communication quality and communication delay, the communication cost corresponding to each communication path is determined and stored; Determine and store the target data transmission path based on the shortest path calculation method and communication cost; When the networking state is not the initial networking, a pre-stored target data transmission path is obtained.

[0014] Optionally, when the networking state is non-initial networking, the routing module is specifically used to: Obtain the initial routing table and the historical shortest data transmission path; The historical shortest data transmission path is determined as the target data transmission path, and the initial routing table is updated based on the target data transmission path to generate a target routing table.

[0015] Optionally, when the communication link optimization module determines and stores the target data transmission path according to the shortest path calculation method and the communication cost, it is specifically used to: determining a starting node among a plurality of communication nodes; Based on the shortest path calculation method, the priority queue is initialized according to the corresponding attribute values ​​of multiple communication nodes on the preset attributes; Calculate the path length of the candidate path based on the priority queue, the attribute value, and the target link edge weights between multiple communication nodes; The path information is updated according to the path length to iterate the priority queue according to the updated path information until the final priority queue is empty, and the shortest path from the starting node to other nodes is determined as the target data transmission path and stored.

[0016] Optionally, the data acquisition system based on HPLC and HRF dual-mode communication further includes a target link edge weight determination module, which is used to: Determine transmission delay based on historical communication data; According to the transmission delay and the preset communication requirements, the initial link edge weight is updated to determine the target link edge weight.

[0017] Optionally, the priority analysis and sequence coordination module determines the data collection sequence according to the key load data, the weight and the preset sorting method, and collects the power consumption data of multiple meters according to the data collection sequence, and is specifically used for: According to the key load data and sorting method, the correlation between the load power data corresponding to multiple meters and the line loss, as well as the ratio deviation between the current and voltage integrated power and the actual collected power are calculated; According to the preset weight setting requirements, the weight coefficients corresponding to the correlation and the ratio deviation are determined; Determine the weighted scores corresponding to each of the multiple electricity meters according to the weight coefficient, the correlation and the ratio deviation; Determine the order of data collection based on the weighted scores; According to the data collection order, the nodes to be processed among the multiple communication nodes are sorted; Based on the node sorting and preset dual-mode communication settings, multiple data collection tasks are generated to collect electricity consumption data from multiple meters.

[0018] Optionally, the data acquisition system based on HPLC and HRF dual-mode communication further includes a data re-acquisition module for: Detect the execution process of multiple data collection tasks; In the event that any of the multiple data collection tasks fails to transmit, the communication cost of the communication path corresponding to any of the data collection tasks is updated to determine the latest data transmission path, and data is re-collected according to the latest data transmission path.

[0019] According to one aspect of the present application, an electronic device is provided, which includes: a processor; a memory storing a computer program, and when the computer program is executed by the processor, the processor executes the data acquisition method based on HPLC and HRF dual-mode communication as described above.

[0020] According to one aspect of the present application, a non-transitory computer-readable medium is provided, on which readable instructions are stored. When the instructions are executed by a processor, the processor executes the data collection method based on HPLC and HRF dual-mode communication as described above.

[0021] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application.

[0022] Beneficial effects: Through the above-mentioned embodiments provided by the present application, by obtaining the pre-constructed data acquisition network topology, networking status and initial routing table, combined with the preset shortest path calculation method, the target data transmission path can be dynamically determined. This method ensures the real-time optimization of the data transmission path, avoids network congestion and transmission delays, thereby ensuring the efficient acquisition and timely transmission of key power consumption data. By assigning weights to multiple electric meters and determining the data collection order according to key load data, weights and a preset sorting method, this method can give priority to the collection of power consumption data of important loads, ensuring the accuracy and completeness of the data. At the same time, it can also provide a solid foundation for subsequent priority sorting and data analysis. Based on this, the accuracy of the power consumption data of the electric meter collected is relatively high, which improves the overall collection efficiency of data collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without exceeding the scope of protection required by the present application.

[0024] Figure 1 A flow chart of a data acquisition method based on HPLC and HRF dual-mode communication provided in an embodiment of the present application; Figure 2 A network topology diagram based on a dual-mode communication network provided in an embodiment of the present application; Figure 3 A block diagram of a data acquisition system based on HPLC and HRF dual-mode communication provided in an embodiment of the present application; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0026] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0027] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0028] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0029] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.

[0030] For specific implementation methods, please refer to the following embodiments.

[0031] Figure 1 The flowchart of the data acquisition method based on HPLC and HRF dual-mode communication provided in the embodiment of the present application is applicable to a data acquisition server based on HPLC and HRF dual-mode communication. Figure 1 As shown, the method includes: step S10, step S11, step S12 and step S13.

[0032] In step S10, a pre-built data collection network topology, a networking state of the data collection network topology, and an initial routing table are obtained.

[0033] In this application, the data collection network topology may be the network topology of the entire communication network, which may be used for data collection. Figure 2The network topology diagram based on the dual-mode communication network is shown. The networking state may include the first networking or non-first networking, and the operations for different networking states may be different. The initial routing table may represent a preliminary constructed communication routing table, which contains all possible routing entries, including the destination network, subnet mask, next hop address, interface and metric value, that is, it can be used to store multiple path information of the data acquisition network topology.

[0034] According to the example embodiment, after successful networking, the network topology of the entire communication network can be constructed and acquired when needed. The current networking state can be determined by detecting historical networking data, and the initial routing table established when constructing the data acquisition network topology can be acquired.

[0035] In step S11, a target data transmission path is determined according to the networking status, the data collection network topology and a preset shortest path calculation method.

[0036] The shortest path calculation method may include Dijkstra's algorithm, Bellman-Ford's algorithm, Floyd's algorithm and Dijkstra's algorithm. In the present application, Dijkstra's algorithm is used, and the target data transmission path may be used to represent the best path for data transmission, and the best path may be the path with the lowest data transmission cost.

[0037] According to some embodiments, based on the selected shortest path calculation method, different operations can be performed in the data acquisition network topology under different networking conditions, such as collecting different data, and then bringing them into the shortest path calculation method for corresponding calculations to obtain the target data transmission path.

[0038] In step S12, a target routing table is generated according to the target data transmission path and the initial routing table.

[0039] According to the example embodiment, since the target data transmission path may contain multiple nodes to form a complete path, the target data transmission path can be parsed first to obtain the path information of each target network, which may include the initial node, relay node and terminal node. Then, for each target network, its corresponding path information can be traversed, and for each node in the path except the starting node, a routing entry can be added or updated in the initial routing table. If there are multiple paths to reach the same target network, the path with the smallest metric value can be selected as the optimal path, and the routing table can be updated to obtain the final target routing table.

[0040] In step S13, key load data is collected according to the target routing table, and weights are assigned to multiple electricity meters to determine the data collection order according to the key load data, weights and a preset sorting method, and the electricity consumption data of multiple electricity meters is collected according to the data collection order.

[0041] In this application, a weight can be assigned to each meter according to actual business needs. The weight can be determined based on factors such as the meter's power consumption, the importance of the key load area, and the priority of data collection. The key load data can include real-time power consumption, power consumption trends, etc.

[0042] In some implementations, after the construction of the routing table is completed, if the critical load data required for calculating the priority collection queue has not been collected, the equipment distance between the meters recorded in the target routing table can be arranged from small to large as the initial collection queue, and the critical load data can be collected according to the primary collection queue. Then, a comprehensive weight can be calculated by combining the weight of each meter and the critical load data. This comprehensive weight can be used to determine the order of data collection, that is, the preset sorting method. The calculation method of the comprehensive weight can be customized according to business needs, for example: comprehensive weight = meter weight * critical load area importance coefficient * electricity consumption coefficient, etc.

[0043] According to the comprehensive weight, the meter information is sorted. The sorting method can be ascending (prioritize the collection of meters with lower comprehensive weight) or descending (prioritize the collection of meters with higher comprehensive weight), depending on the business needs. Then, the electricity consumption data of multiple meters can be collected in the order of data collection, which can include the collection time, the amount of data collected, whether the collection is successful, etc.

[0044] This application can dynamically determine the target data transmission path by obtaining the pre-built data acquisition network topology, networking status and initial routing table, combined with the preset shortest path calculation method. This method ensures the real-time optimization of the data transmission path, avoids network congestion and transmission delays, and thus ensures the efficient acquisition and timely transmission of key power consumption data. By assigning weights to multiple electric meters and determining the data collection order based on key load data, weights and preset sorting methods, this method can give priority to the collection of power consumption data of important loads, ensuring the accuracy and completeness of the data. At the same time, it can also provide a solid foundation for subsequent priority sorting and data analysis. Based on this, the accuracy of the power consumption data collected from the electric meter is high, which improves the overall collection efficiency of data collection.

[0045] According to some embodiments, the networking status includes initial networking and non-initial networking, and the data acquisition network topology includes multiple communication links, link communication qualities corresponding to the multiple communication links, and multiple communication nodes; wherein, step S11 can be specifically performed through the following steps: when the networking status is initial networking, determining multiple communication paths based on the multiple communication links, wherein each of the multiple communication paths includes multiple communication links; traversing the multiple communication paths to determine the communication delay between the multiple communication nodes; determining and storing the communication cost corresponding to each communication path based on the link communication quality and the communication delay; determining and storing the target data transmission path based on the shortest path calculation method and the communication cost; and when the networking status is non-initial networking, obtaining the pre-stored target data transmission path to achieve.

[0046] In this application, a communication node can be used to represent a communication device, such as an electric meter, a concentrator, and the like. According to the position of the node in the communication link, it is divided into an end node and a relay node. The end node and the relay node are not different types of communication devices. Whether the communication device is a relay node or an end node depends only on the positional relationship in the communication link. The node in the middle of the communication link is a relay node, and the node at the end of the communication link is an end node. According to the current situation of the power grid acquisition system, the starting node is the concentrator / acquisition terminal. A communication link can be formed between two communication nodes. The link communication quality refers to the energy and quality of the received data frame, and its size is based on the signal strength and the detected signal-to-noise ratio. The communication cost can be the weighted sum of the link communication quality and the communication delay, and the weight is determined according to business requirements and network characteristics.

[0047] According to an example embodiment, if the networking state is the initial networking, a graph algorithm such as depth-first search can be used to traverse the communication link set to construct all possible communication paths. Each communication path can be represented as a set of a series of communication links, which are connected in sequence to form a complete path from the source node to the target node.

[0048] For each communication path, starting from the starting node, probe packets are sent sequentially along the communication links on the path. These packets contain timestamp information for calculating the communication delay. The target node or each node in the path receives the probe packet and records the reception time. The communication delay of each link can then be calculated, that is, the difference between the packet sending time and the reception time. The total delay of each communication path (the sum of all link delays) is stored and associated with the corresponding communication path. For each communication path, a comprehensive communication cost is calculated by combining the link communication quality (such as LQI, BER, etc.) and the communication delay, and the communication cost of each communication path is stored and associated with the corresponding communication path.

[0049] According to the preset shortest path calculation method, select the appropriate algorithm to calculate the shortest path, and use the selected algorithm to calculate the shortest path from the starting node to the target node based on the communication cost. The calculated shortest path is used as the target data transmission path and stored for subsequent use.

[0050] If the networking state is not the initial networking state, the pre-calculated and stored target data transmission path is directly read from the storage structure, and the read target data transmission path is used for data transmission without recalculating the path.

[0051] When the application is first networked, the communication cost of each path is calculated by traversing all possible communication paths and taking into account the link communication quality and communication delay. This ensures that the selected target data transmission path is optimal under given conditions, thereby improving the efficiency of data transmission. When the network is not first established, the pre-stored target data transmission path is directly obtained to avoid the process of repeated calculation and path selection, further improving the real-time performance and efficiency of data transmission. By taking into account the link communication quality and communication delay, the application can select a communication path with better quality and lower delay, thereby enhancing the stability and reliability of the network. This helps to reduce packet loss and errors during data transmission and improve the success rate of data transmission.

[0052] According to some embodiments, when the networking state is not the initial networking, step S12 can be specifically implemented through the steps of: obtaining an initial routing table and a historical shortest data transmission path; determining the historical shortest data transmission path as a target data transmission path, and updating the initial routing table based on the target data transmission path to generate a target routing table.

[0053] In this application, in the case of non-initial networking, the previously calculated shortest data transmission path that has been stored can be obtained, that is, the historical shortest data transmission path. These paths may be stored in a specific database, file or memory structure, and need to be located according to the specific design of the system.

[0054] In some implementations, before determining the historical shortest data transmission path as the target data transmission path, it is possible to verify whether these paths are still valid under the current network environment. This can be achieved by checking whether each node and link in the path is still reachable and whether the link communication quality meets the requirements. If the historical shortest data transmission path is still valid, it is determined as the target data transmission path. If it is found that some paths are no longer valid (for example, due to node failure, link disconnection, etc.), it is necessary to recalculate the shortest path based on the current network status and update the stored historical shortest data transmission path. According to the determined target data transmission path, the initial routing table is updated to obtain the target routing table. The update process includes modifying the relevant entries in the routing table to reflect the new data transmission path.

[0055] In the case of non-initial networking, this application avoids the process of recalculating the shortest path by directly using the historical shortest data transmission path as the target data transmission path, thereby significantly improving routing efficiency. At the same time, the initial routing table is updated based on the target data transmission path to generate a target routing table, so that the routing table can quickly reflect changes in network status and reduce routing update delays. By updating the routing table regularly or on demand, it can be ensured that the network can recover quickly in the face of emergencies (such as link failures, node failures, etc.), further improving the reliability of the network.

[0056] According to some embodiments, the target data transmission path can be determined based on the shortest path method and the communication cost, which can be specifically achieved through the following steps: determining a starting node among multiple communication nodes; initializing a priority queue based on the attribute values ​​corresponding to each communication node on a preset attribute based on the shortest path calculation method; calculating the path length of the candidate path based on the priority queue, the attribute value, and the target link edge weights between multiple communication nodes; updating the path information based on the path length to iterate the priority queue based on the updated path information until the final priority queue is empty, and determining the shortest path from the starting node to other nodes as the target data transmission path and storing it.

[0057] In the present application, the starting node includes a node corresponding to a concentrator or a collection terminal. The preset attributes may be a distance dist and a predecessor node prev.

[0058] According to the example embodiment, one of the multiple communication nodes is selected as the starting node according to actual needs or application scenarios. The starting node is usually the starting point of data transmission and can be a specific device or node in the network. Using the Dijkstra algorithm, the distance of the starting node is set to 0, that is, , set the distances of all other nodes to positive infinity, that is , set up a priority queue, put the starting node into it, and complete the initialization of the priority queue.

[0059] Extract the node u with the smallest distance from the priority queue. For each adjacent node v of node u, perform relaxation operation according to the weight of edge uv, that is, the target link edge weight w(uv). The steps are as follows: Calculate candidate paths: The length of a potential new path from node to node is .

[0060] Compare path lengths: If the new path length is less than the currently recorded , then update and path information.

[0061] Update path information: Update the new shortest path length to , and set node u as the predecessor node of node v.

[0062] If the distance of node v is updated, insert node v into the preferred queue (or update its position in the queue).

[0063] The iterative calculation formula is as follows: if ,So , .

[0064] in, is the currently known shortest path distance from the starting node to node u, is the weight of edge uv, that is, the transmission delay from node u to node v, the target link edge weight. is the shortest path distance from the current starting node to node v.

[0065] When the priority queue is empty, the loop is exited. At this time, the shortest path from the starting node to all other nodes has been determined and stored as the target data transmission path.

[0066] This application can efficiently calculate the shortest path from the starting node to all other nodes by adopting the shortest path calculation method. By using the priority queue data structure to manage the nodes to be processed, it can be ensured that the nodes with the best (or worst, depending on the algorithm design) currently known attribute values ​​are processed each time, thereby avoiding unnecessary calculations and waste of resources. When calculating the path length, the target link edge weights between multiple communication nodes are taken into account. These weights can represent multiple factors such as communication costs, transmission delays, and bandwidth limitations. By accurately calculating the path length, it can be ensured that the selected path meets performance requirements while reducing costs as much as possible.

[0067] According to some embodiments, the target link edge weight may be set first, which may be achieved through the following steps: determining the transmission delay based on historical communication data; and updating the initial link edge weight based on the transmission delay and preset communication requirements to determine the target link edge weight.

[0068] In this application, after a complete communication, the actual measured transmission delay To update the target link edge weight In some implementations, the update requires that the new weights gradually converge with the historical communication data, and an exponential smoothing method can be used:

[0069] in, is the target link edge weight, i.e. the updated edge The weight of is the initial link edge weight, i.e. the edge before update The weight of .

[0070] is the actual transmission delay measured for this communication, is a preset smoothing factor in the range of 0-1.

[0071] For small-scale changes in network topology, such as the addition of a new node, the relevant link weights of the new node are updated once, and the smoothing factor is set to 1 to complete the dynamic update of the network.

[0072] This application can more accurately reflect the actual performance of network links by introducing historical communication data to determine transmission delays. Compared with traditional static or assumption-based path selection methods, this path selection method based on actual data can more accurately identify bottlenecks and potential problems in the network, thereby improving the accuracy and reliability of path selection. Updating the link edge weights according to transmission delays and preset communication requirements can ensure that the selected path reduces transmission delays as much as possible while meeting performance requirements. This is especially important for application scenarios that require real-time transmission or have strict requirements on data transmission speed.

[0073] According to some embodiments, step S13 determines the data collection order according to key load data, weights and a preset sorting method, and collects the electricity consumption data of multiple electricity meters according to the data collection order. Specifically, the steps include: calculating the correlation between the load power data and line loss corresponding to each of the multiple electricity meters, and the ratio deviation between the current and voltage integrated power and the actual collected power according to the key load data and the sorting method; determining the weight coefficients corresponding to the correlation and the ratio deviation according to the preset weight setting requirements; determining the weighted scores corresponding to each of the multiple electricity meters according to the weight coefficients, the correlation and the ratio deviation; determining the data collection order according to the weighted scores; sorting the nodes to be processed in the multiple communication nodes according to the data collection order; generating multiple data collection tasks according to the node sorting and the preset dual-mode communication settings, so as to collect the electricity consumption data of multiple electricity meters.

[0074] In this application, the preset dual-mode communication settings can be used to represent the specific settings of the HPLC and HRF links, refer to Figure 2 Link setting method in .

[0075] Pearson similarity is used to measure the correlation between load power data and line loss. The formula of Pearson similarity is:

[0076] in, It is the correlation between load power data and line loss. The higher the correlation, the higher the priority. The load power data Observations, is the first Observations, is the average value of load power data, is the average value of line loss.

[0077] The ratio deviation between the current and voltage integrated power and the actual collected power .

[0078] Among them, the ratio of current and voltage integrated power to the actual collected power is defined as:

[0079] is the charge calculated by integrating current and voltage, is the actual amount of electricity collected.

[0080]

[0081] in, The unit is kilowatt-hour. is the voltage varying with time, is the current varying with time, For time.

[0082] However, in the actual acquisition process, the time of the collected voltage and current data is a discrete time node, so the summation can be used to approximate the integral:

[0083] in, Represents the voltage value of the nth sampling point, Represents the current value of the nth sampling point, N is the total number of sampling points, is the sampling time interval. The energy consumption in the entire cycle is estimated by accumulating the instantaneous power (voltage times current) at each sampling point and multiplying it by the time interval. The closer the ratio R is to 1, the smaller the deviation between the integral calculation and the actual measurement, and the lower the priority.

[0084] Using Pearson Similarity The deviation degree of the ratio R is used as indicators, and different weights are assigned to the two indicators. Then the weighted score of each meter data is calculated, and finally each meter score is ranked according to this score. The specific steps are as follows: For each electricity meter, calculate its weighted score S:

[0085] Among them, w1 is the weight coefficient of the correlation between load power data and line loss, and w2 is the weight coefficient of ratio deviation.

[0086] According to the weighted score S, the data is sorted from small to large. The lower the score, the higher the priority. The collection priority weights w1 and w2 can be adjusted according to business needs to reflect the importance of different indicators. For example, if relevance is more important, a larger w1 can be selected.

[0087] By combining the two important indicators and assigning appropriate weights to them, the data collection priorities, i.e., the data collection order, can be effectively arranged based on the comprehensive consideration of the impact of both. This approach not only helps identify the data that needs the most attention, but also dynamically adjusts the strategy to adapt to the changing grid conditions and needs.

[0088] The nodes to be processed are sorted according to the data collection order, and then multiple data collection tasks are generated based on the node sorting and the preset dual-mode communication settings, that is, the data collection is performed in the order of data collection.

[0089] This application can accurately identify the meter data that is closely related to the operation status of the power grid by calculating the correlation between the meter load power data and the line loss, as well as the ratio deviation between the current and voltage integrated power and the actual collected power, thereby ensuring that the collected data can more accurately reflect the actual status of the power grid. Through the preset weight setting requirements, the weights of the correlation and ratio deviation in the evaluation can be adjusted according to actual needs, making the determination of the data collection order more flexible and in line with the actual application scenario. Sorting the communication nodes according to the data collection order can ensure that key and important meter data are collected first, avoiding the waste and congestion of communication resources. By generating multiple data collection tasks, communication resources can be used more efficiently, improving the real-time and reliability of data collection.

[0090] According to some embodiments, the latest data transmission path can also be determined, which can be achieved through the following steps: detecting the execution process of multiple data acquisition tasks; in the event that any of the multiple data acquisition tasks fails to transmit, updating the communication cost of the communication path corresponding to any data acquisition task to determine the latest data transmission path, and re-collecting data according to the latest data transmission path.

[0091] In this application, a unique identifier (ID) can be assigned to each data collection task, and the execution status of each task can be tracked and recorded according to the identifier, including the task start time, execution progress, whether it is completed, etc. During the data collection process, the communication node or data collection device will periodically send status update information, including the current task progress, whether an error is encountered, etc. The data collection server can update the task status based on this information.

[0092] When a data collection task fails to transmit, the pre-set communication cost update mechanism can be triggered. If any data collection task fails to transmit, the communication cost of the corresponding communication path of the failed task can be recalculated based on the current network status and the cause of the task failure (such as network congestion, equipment failure, etc.). If the network status changes (such as network congestion relief, equipment failure repair, etc.), the communication cost will be updated accordingly, and then the new target transmission path will be determined as the latest data transmission path according to the above steps, so as to re-collect data according to the latest data transmission path.

[0093] This application can promptly detect and respond to transmission failures by monitoring the execution process of data collection tasks in real time. This avoids the problem of data loss or incomplete collection, and ensures the continuity and integrity of data collection. When transmission fails, the communication cost of the communication path can be automatically updated, and the optimal path can be selected for data re-collection, reducing data collection failures caused by communication failures and improving the reliability of data collection. By dynamically adjusting the communication path, it is possible to avoid using communication links with poor performance or prone to errors, thereby reducing the waste of network resources.

[0094] The following describes an apparatus embodiment of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, reference can be made to the method embodiment of the present application.

[0095] Figure 3 The block diagram of the data acquisition system based on HPLC and HRF dual-mode communication provided in the embodiment of the present application. Figure 3 As shown, the data acquisition system 300 based on HPLC and HRF dual-mode communication includes a data acquisition module 301 , a communication link optimization module 302 , a routing module 303 , and a priority analysis and sequence coordination module 304 .

[0096] The data collection module 301 is used to obtain the pre-built data collection network topology, the networking status of the data collection network topology and the initial routing table; The communication link optimization module 302 is used to determine the target data transmission path according to the networking status, the data collection network topology and the preset shortest path calculation method; Routing module 303, used to generate a target routing table according to the target data transmission path and the initial routing table; The priority analysis and sequence coordination module 304 is used to collect key load data according to the target routing table and assign weights to multiple electricity meters to determine the data collection order according to the key load data, weights and preset sorting method, and collect electricity consumption data of multiple electricity meters according to the data collection order.

[0097] Optionally, the networking state includes initial networking and non-initial networking; the data acquisition network topology includes multiple communication links, link communication qualities corresponding to the multiple communication links, and multiple communication nodes; the communication link optimization module 302 is specifically used to: When the networking state is initial networking, determining multiple communication paths according to the multiple communication links, wherein each of the multiple communication paths includes multiple communication links; traversing a plurality of communication paths to determine communication delays between a plurality of communication nodes; According to the link communication quality and communication delay, the communication cost corresponding to each communication path is determined and stored; Determine and store the target data transmission path based on the shortest path calculation method and communication cost; When the networking state is not the initial networking, a pre-stored target data transmission path is obtained.

[0098] Optionally, when the networking state is non-initial networking, the routing module 303 is specifically configured to: Obtain the initial routing table and the historical shortest data transmission path; The historical shortest data transmission path is determined as the target data transmission path, and the initial routing table is updated based on the target data transmission path to generate a target routing table.

[0099] Optionally, when the communication link optimization module 302 determines and stores the target data transmission path according to the shortest path calculation method and the communication cost, it is specifically used to: determining a starting node among a plurality of communication nodes; Based on the shortest path calculation method, the priority queue is initialized according to the corresponding attribute values ​​of multiple communication nodes on the preset attributes; Calculate the path length of the candidate path based on the priority queue, the attribute value, and the target link edge weights between multiple communication nodes; The path information is updated according to the path length to iterate the priority queue according to the updated path information until the final priority queue is empty, and the shortest path from the starting node to other nodes is determined as the target data transmission path and stored.

[0100] Optionally, the data acquisition system 300 based on HPLC and HRF dual-mode communication further includes a target link edge weight determination module 305, which is used to: Determine transmission delay based on historical communication data; According to the transmission delay and the preset communication requirements, the initial link edge weight is updated to determine the target link edge weight.

[0101] Optionally, the priority analysis and sequence coordination module 304 determines the data collection sequence according to the key load data, the weight and the preset sorting method, and collects the power consumption data of multiple meters according to the data collection sequence, and is specifically used for: According to the key load data and sorting method, the correlation between the load power data corresponding to multiple meters and the line loss, as well as the ratio deviation between the current and voltage integrated power and the actual collected power are calculated; According to the preset weight setting requirements, the weight coefficients corresponding to the correlation and the ratio deviation are determined; Determine the weighted scores corresponding to each of the multiple electricity meters according to the weight coefficient, the correlation and the ratio deviation; Determine the order of data collection based on the weighted scores; According to the data collection order, the nodes to be processed among the multiple communication nodes are sorted; Based on the node sorting and preset dual-mode communication settings, multiple data collection tasks are generated to collect electricity consumption data from multiple meters.

[0102] Optionally, the data acquisition system 300 based on HPLC and HRF dual-mode communication further includes a data re-acquisition module 306, which is used to: Detect the execution process of multiple data collection tasks; In the event that any of the multiple data collection tasks fails to transmit, the communication cost of the communication path corresponding to any of the data collection tasks is updated to determine the latest data transmission path, and data is re-collected according to the latest data transmission path.

[0103] The device performs functions similar to the method provided above. For other functions, please refer to the previous description and will not be repeated here.

[0104] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device 400 of this embodiment may include: a memory 401 and a processor 402 .

[0105] The memory 401 stores a computer program. When the computer program is executed by the processor 402, the processor 402 executes the method in the above embodiment.

[0106] The processor 402 and the memory 401 are connected, for example, via a bus.

[0107] Optionally, the electronic device 400 may further include a transceiver. It should be noted that in actual applications, the number of transceivers is not limited to one, and the structure of the electronic device 400 does not constitute a limitation on the embodiments of the present application.

[0108] Processor 402 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 402 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0109] The bus may include a path to transmit information between the above components. The bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0110] The memory 401 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0111] The memory 401 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 402. The processor 402 is used to execute the application code stored in the memory 401 to implement the contents shown in the above method embodiment.

[0112] The electronic devices include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 4 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0113] The electronic device of this embodiment can be used to execute the method of any of the above embodiments, and its implementation principle and technical effect are similar, which will not be described in detail here.

[0114] The present application also provides a non-transitory computer-readable storage medium having computer-readable instructions stored thereon. When the aforementioned instructions are executed by a processor, the processor executes the method in the above embodiment.

[0115] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a non-transient computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0116] The embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of ​​the present application. At the same time, changes or deformations made by those skilled in the art based on the ideas of the present application, the specific implementation methods and the scope of application of the present application, all belong to the scope of protection of the present application. In summary, the content of this specification should not be construed as a limitation on the present application.

Claims

1. A data acquisition method based on HPLC and HRF dual-mode communication, characterized in that: include: Acquire a pre-built data collection network topology, a networking state of the data collection network topology, and an initial routing table; Determine a target data transmission path according to the networking state, the data collection network topology and a preset shortest path calculation method; Generate a target routing table according to the target data transmission path and the initial routing table; Critical load data is collected according to the target routing table, and weights are assigned to multiple electricity meters to determine a data collection order based on the critical load data, the weights and a preset sorting method, and electricity consumption data of the multiple electricity meters is collected according to the data collection order.

2. The data acquisition method based on HPLC and HRF dual-mode communication according to claim 1, characterized in that: The networking status includes initial networking and non-initial networking; the data acquisition network topology includes multiple communication links, link communication qualities corresponding to each of the multiple communication links, and multiple communication nodes; Wherein, determining the target data transmission path according to the networking state, the data collection network topology and a preset shortest path calculation method includes: In the case where the networking state is the initial networking, determining multiple communication paths according to the multiple communication links, wherein each of the multiple communication paths includes multiple communication links; traversing the plurality of communication paths to determine communication delays between the plurality of communication nodes; Determine and store the communication cost corresponding to each communication path according to the link communication quality and the communication delay; Determine and store the target data transmission path according to the shortest path calculation method and the communication cost; When the networking state is non-initial networking, the pre-stored target data transmission path is acquired.

3. The data acquisition method based on HPLC and HRF dual-mode communication according to claim 2, characterized in that: In the case where the networking state is non-initial networking, generating a target routing table according to the target data transmission path and the initial routing table includes: Obtaining the initial routing table and the historical shortest data transmission path; The historical shortest data transmission path is determined as the target data transmission path, and the initial routing table is updated based on the target data transmission path to generate a target routing table.

4. The data acquisition method based on HPLC and HRF dual-mode communication according to claim 2, characterized in that: The determining and storing the target data transmission path according to the shortest path calculation method and the communication cost includes: determining a starting node among the plurality of communication nodes; Initializing a priority queue based on the shortest path calculation method and according to attribute values ​​corresponding to the plurality of communication nodes on preset attributes; Calculating a path length of a candidate path based on the priority queue, the attribute value, and the target link edge weights between the plurality of communication nodes; The path information is updated according to the path length, so as to iterate the priority queue according to the updated path information until the final priority queue is empty, and the shortest path from the starting node to other nodes is determined as the target data transmission path and stored.

5. The data acquisition method based on HPLC and HRF dual-mode communication according to claim 4, characterized in that: Also includes: Determine transmission delay based on historical communication data; The initial link edge weight is updated according to the transmission delay and the preset communication requirement to determine the target link edge weight.

6. The data acquisition method based on HPLC and HRF dual-mode communication according to claim 2, characterized in that: The step of determining a data collection sequence according to the key load data, the weights and a preset sorting method, and collecting the power consumption data of the multiple electric meters according to the data collection sequence, includes: According to the key load data and the sorting method, the correlation between the load power data corresponding to each of the multiple electric meters and the line loss, and the ratio deviation between the current and voltage integrated power and the actual collected power are calculated; Determine the weight coefficients corresponding to the correlation and the ratio deviation respectively according to the preset weight setting requirements; Determining, according to the weight coefficient, the correlation and the ratio deviation, the weighted scores corresponding to each of the plurality of electricity meters; Determining the data collection order according to the weighted scores; According to the data collection order, sorting the nodes to be processed among the multiple communication nodes; According to the node sorting and the preset dual-mode communication settings, a plurality of data collection tasks are generated to collect the electricity consumption data of the plurality of electricity meters.

7. The data acquisition method based on HPLC and HRF dual-mode communication according to claim 6, characterized in that: Also includes: Detecting the execution process of the plurality of data collection tasks; In the event that any one of the multiple data collection tasks fails in transmission, the communication cost of the communication path corresponding to the any one of the data collection tasks is updated to determine the latest data transmission path, and data is re-collected according to the latest data transmission path.

8. A data acquisition system based on HPLC and HRF dual-mode communication, characterized in that: include: A data acquisition module, used to obtain a pre-built data acquisition network topology, a networking state of the data acquisition network topology, and an initial routing table; A communication link optimization module, used to determine a target data transmission path according to the networking state, the data acquisition network topology and a preset shortest path calculation method; A routing module, configured to generate a target routing table according to the target data transmission path and the initial routing table; A priority analysis and sequence coordination module is used to collect key load data according to the target routing table and assign weights to multiple electricity meters, so as to determine the data collection order according to the key load data, the weights and a preset sorting method, and collect the electricity consumption data of the multiple electricity meters according to the data collection order.

9. An electronic device, characterized in that: include: processor; A memory storing a computer program, when the computer program is executed by the processor, enables the processor to execute the data acquisition method based on HPLC and HRF dual-mode communication as described in any one of claims 1-7.

10. A non-transitory computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the instructions are executed by a processor, the processor executes the data acquisition method based on HPLC and HRF dual-mode communication as described in any one of claims 1-7.

Citation Information

Cited By

  • Intelligent power data acquisition method and device based on dual-mode communication

    CN121262492A

  • A power data intelligent acquisition method and device based on dual-mode communication

    CN121262492B

  • HPLC (High Performance Liquid Chromatography) intelligent acquisition terminal based on big data acquisition

    CN122247778A