Metering device real-time positioning method and device, electronic equipment and medium

By building a platform metering device positioning tree and using high-speed power line carrier communication technology for cluster updates, the problem of unreal-time positioning of metering devices in the existing technology is solved, real-time and accurate positioning of metering devices is realized, and the operation stability and efficiency of the power system are improved.

CN119669544AActive Publication Date: 2025-03-21POWER SUPPLY SERVICE & MANAGEMENT CENT STATE GRID JIANGXI ELECTRIC POWER CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202510181249.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-03-21
Estimated Expiration
2045-02-19

AI Technical Summary

Technical Problem

The existing metering device positioning method is mainly single-time positioning, and real-time positioning cannot be achieved, resulting in inaccurate positioning information when the position of the metering device changes.

Method used

By obtaining the station metering device positioning tree constructed based on the target station power supply address archive, the first line distance between the user side metering devices is obtained using high-speed power line carrier communication technology, the device number in the positioning tree is clustered and updated, and navigation position data is stored to achieve real-time positioning.

Benefits of technology

Real-time, efficient and accurate absolute spatial positioning of the user-side metering device is realized, ensuring the real-time and accurate requirement of the power system for the positioning of the metering device, and significantly reducing positioning and management costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669544A_ABST
    Figure CN119669544A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power systems, and discloses a metering device real-time positioning method and device, electronic equipment and a medium. The method comprises the following steps: acquiring a transformer area metering device positioning tree; obtaining a first line distance between the user-side metering devices, and clustering the user-side metering devices based on the first line distance to obtain a plurality of same-meter-box metering device sets; using a plurality of same-meter-box metering device sets to update device numbers stored in corresponding meter box nodes in the station area metering device positioning tree; and storing the obtained navigation position data in the corresponding meter box nodes of the updated background area metering device positioning tree. According to the invention, the navigation position data, the metering device addresses in the court power supply address file and the relative distance between the metering devices obtained according to the HPLC distance measurement data are utilized, so that the absolute spatial position including the association relationship between the user side metering device and the meter box and the geographic position of the device can be accurately determined in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of power systems, and in particular to a real-time positioning method, device, electronic equipment and medium for a metering device. Background Art

[0002] At present, the continuous growth of electricity demand and the increasing complexity of power networks have put forward higher requirements for the operational stability, safety and efficiency of power systems. As a key device for monitoring and measuring electric energy in the power system, the accurate acquisition of the location information of the user-side metering device is crucial to ensure the reliable operation of the power system. Specifically, when an abnormality occurs in the power system, by accurately locating the relevant metering devices, the fault location and cause can be quickly determined, the power outage time can be shortened, and the power supply reliability can be improved; by using the precise location distribution of each metering device, the power transmission path can be more reasonably planned, the grid structure can be optimized, the power transmission efficiency can be improved, and the line loss can be reduced; in the maintenance and upgrading of the power system, the accurate positioning of the metering device can also enable the staff to quickly find the target equipment, improve maintenance efficiency, and reduce manpower and time costs.

[0003] At present, the existing positioning method of metering devices is generally single positioning, that is, after the first positioning, the location information obtained for the first time is used in the subsequent use. For example, the invention patent with application number 202310259585.8 provides a method, device and metering device for positioning and navigation of indoor metering devices. The invention uses laser radar to construct the indoor floor plan of each floor of the building, draws the laser radar movement trajectory, and uses laser radar to identify the metering device, calibrates the position of the metering device on the indoor floor plan, obtains the metering device information, encrypts and archives the positioning information of the metering device, generates an electronic tag for the metering device, and finally uses the selected positioning information of the metering device to plan the maintenance path of the metering device. It can be seen that the invention uses laser radar technology to collect spatial information and locate the metering device. The positioning cost of this method is high and it is difficult to meet the needs of real-time positioning. When the position of the metering device changes due to equipment movement, line modification, etc., the positioning information obtained by the existing positioning method that lacks real-time performance will be inaccurate. Therefore, it is urgent to propose a real-time positioning method for metering devices. Summary of the invention

[0004] In view of the above situation, the embodiments of the present disclosure provide a real-time positioning method, device, electronic device and medium for a metering device, aiming to solve the above problem or at least partially solve the above problem.

[0005] In a first aspect, an embodiment of the present disclosure provides a real-time positioning method for a metering device, the method comprising: Obtaining a pre-built area metering device location tree for the target area; wherein the area metering device location tree is built based on the area power supply address file of the target area, and the leaf node of the area metering device location tree is a meter box node storing the device number of the user-side metering device; Using high-speed power line carrier communication technology, a first line distance between each of the user-side metering devices is obtained, and based on each of the first line distances, each of the user-side metering devices is clustered to obtain a plurality of sets of metering devices in the same meter box; Using the plurality of metering devices in the same meter box, the device numbers stored in the corresponding meter box nodes in the station area metering device location tree are updated to obtain an updated station area metering device location tree; The navigation location data of each user-side metering device is obtained, and each navigation location data is stored in a corresponding meter box node of the updated background area metering device positioning tree.

[0006] In a second aspect, the embodiment of the present disclosure further provides a real-time positioning device for a metering device, the device comprising: An acquisition module is used to acquire a pre-constructed area metering device location tree for a target area; wherein the area metering device location tree is constructed based on the area power supply address file of the target area, and the leaf node of the area metering device location tree is a meter box node storing a device number of a user-side metering device; A clustering module, used to obtain the first line distance between each of the user-side metering devices by using the high-speed power line carrier communication technology, and cluster each of the user-side metering devices based on each of the first line distances to obtain a plurality of sets of metering devices in the same meter box; A first positioning module is used to update the device number stored in the corresponding meter box node in the station area metering device positioning tree by using the plurality of metering devices in the same meter box to obtain an updated station area metering device positioning tree; The second positioning module is used to obtain navigation location data of each user-side metering device and store each navigation location data in a corresponding meter box node of the positioning tree of the metering device in the update background area.

[0007] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the steps of the above-mentioned real-time positioning method of the metering device.

[0008] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes the steps of the above-mentioned real-time positioning method of the metering device.

[0009] By means of the above technical scheme, the real-time positioning method, device, electronic device and medium of the metering device provided by the embodiment of the present disclosure propose a real-time positioning scheme of the metering device based on multi-source data. Specifically, firstly, a metering device positioning tree of the substation constructed based on the power supply address file of the target substation is obtained. The positioning tree provides the initial position of each metering device, which provides a starting point for the subsequent precise positioning. When the position of the metering device changes, the distance between it and other metering devices will also change accordingly. Therefore, based on the first line distance between each user-side metering device, each user-side metering device is clustered, and the grouping of the metering devices can be re-determined, and the metering devices belonging to the same meter box can be grouped into one set. Then, these sets of metering devices are used to update the metering device numbers stored in the corresponding meter box nodes in the positioning tree, so as to realize the real-time determination of the association between the user-side metering device and the meter box. Finally, each navigation location data is stored in the corresponding meter box node of the updated background area metering device positioning tree (the geographical location of the meter box is unknown in the actual application scenario). The navigation location data, the metering device address in the substation power supply address file, and the relative distance between the metering devices obtained according to the HPLC ranging data complement and verify each other, thereby realizing the real-time, efficient and accurate absolute spatial position positioning of the user-side metering device, ensuring the real-time and accuracy requirements of the power system for the positioning of the metering device, and significantly reducing the positioning and management costs.

[0010] The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings: Figure 1 A schematic diagram of a flow chart of a real-time positioning method for a metering device provided in an embodiment of the present disclosure is shown; Figure 2 A schematic diagram of meter box address level information provided by an embodiment of the present disclosure is shown; Figure 3 A schematic diagram of the topological structure between the concentrator and each user-side metering device provided in an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of the structure of a real-time positioning device for a metering device provided in an embodiment of the present disclosure is shown; Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0012] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure will be clearly and completely described below in combination with the specific embodiments of the present disclosure and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0013] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0014] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such usage is interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "including" and its variants are to be interpreted as open-ended terms meaning "including but not limited to".

[0015] As mentioned above, the existing positioning method of metering devices is generally single positioning, that is, after the first positioning, the location information obtained for the first time is used in the subsequent period. However, the single positioning mode does not have real-time performance. Therefore, when the position of the metering device changes due to equipment movement, line modification, etc., the positioning information obtained by the existing positioning method that lacks real-time performance will be inaccurate. Based on this, the present invention proposes a real-time positioning method, device, electronic device and medium for metering devices. The present disclosure is described in detail below through specific embodiments.

[0016] To facilitate understanding of this embodiment, a real-time positioning method for a metering device disclosed in an embodiment of the present disclosure is first introduced in detail. The execution subject of the real-time positioning method for a metering device provided in an embodiment of the present disclosure is generally a computer device with a certain computing capability, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, etc. In some possible implementations, the real-time positioning method for a metering device can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0017] Figure 1 The flowchart of the real-time positioning method of the metering device provided by the embodiment of the present disclosure is shown. Figure 1 It can be seen that the embodiment of the present disclosure at least includes steps S101-S104: S101: Obtain a pre-constructed area metering device location tree for a target area; wherein the area metering device location tree is constructed based on the area power supply address file of the target area, and the leaf nodes of the area metering device location tree are meter box nodes storing device numbers of user-side metering devices.

[0018] S102: using high-speed power line carrier communication technology to obtain a first line distance between each of the user-side metering devices, and based on each of the first line distances, clustering each of the user-side metering devices to obtain a plurality of sets of metering devices in the same meter box.

[0019] S103: using the plurality of metering devices in the same meter box, updating the device numbers stored in the corresponding meter box nodes in the station area metering device location tree, and obtaining an updated station area metering device location tree.

[0020] S104: Obtain navigation location data of each of the user-side metering devices, and store each of the navigation location data in a corresponding meter box node of the updated background area metering device positioning tree.

[0021] It can be seen that the disclosed embodiment proposes a real-time positioning method for metering devices based on multi-source data. Specifically, first, a metering device positioning tree for the substation is constructed based on the power supply address file of the target substation. The positioning tree provides the initial position of each metering device, which provides a starting point for subsequent precise positioning. When the position of the metering device changes, the distance between it and other metering devices will also change accordingly. Therefore, based on the first line distance between each user-side metering device, each user-side metering device is clustered, and the grouping of the metering devices can be re-determined, and the metering devices belonging to the same meter box can be grouped into one set. Then, these sets of metering devices are used to update the metering device numbers stored in the corresponding meter box nodes in the positioning tree, thereby realizing the real-time determination of the association between the user-side metering device and the meter box. Finally, each navigation location data is stored in the corresponding meter box node of the updated background area metering device positioning tree (the geographical location of the meter box is unknown in the actual application scenario). The navigation location data, the metering device address in the substation power supply address file, and the relative distance between the metering devices obtained according to the HPLC ranging data complement and verify each other, thereby realizing the real-time, efficient and accurate absolute spatial position positioning of the user-side metering device, ensuring the real-time and accuracy requirements of the power system for the positioning of the metering device, and significantly reducing the positioning and management costs.

[0022] The above S101-S104 are described in detail below.

[0023] Regarding S101 above: Here, the substation refers to the power supply range or area of ​​one or a group of transformers. The district power supply address file is a collection of records of the detailed geographical locations of various power facilities and users in the power supply substation and related power supply information. The district power supply address file covers precise address descriptions such as specific street names, community names, building numbers, unit numbers, floors, room numbers, etc. within the substation area (or village names, villagers' groups / production teams, roads / alleys / intersections, house numbers / homestead numbers, etc.), as well as the numbers, models, and specifications of the power equipment (such as meter boxes, metering devices) associated with these addresses, as well as specific data and information related to power supply such as the user's name, electricity type, and electricity consumption.

[0024] In some embodiments, the substation metering device location tree is constructed according to the following method: extracting the power supply address, metering device number and meter box number of each user from the district power supply address file; generating meter box address hierarchy information based on each power supply address and each meter box number; constructing an initial substation metering device location tree based on the meter box address hierarchy information; storing each metering device number in the corresponding meter box node of the initial substation metering device location tree to obtain the substation metering device location tree.

[0025] In this embodiment, first, the power supply address, metering device number and meter box number of the meter box to which the metering device belongs of each user are extracted from the district power supply address file; and the meter box address hierarchy information is generated according to each power supply address and each meter box number. During implementation, for example, if the file is stored in the form of a database, the three data of the power supply address, metering device number and meter box number of the meter box to which the metering device belongs of each user can be queried by writing a structured query statement. If the file is stored in the form of text, these three data can be extracted by string segmentation and matching. Before extracting these three data, the district power supply address file can also be cleaned by using data cleaning technology to improve the accuracy, completeness and consistency of the file data.

[0026] After obtaining the power supply address, metering device number and meter box number of each user, the meter box address hierarchy information can be generated according to each power supply address and each meter box number. Figure 2 A schematic diagram of meter box address hierarchy information provided by an embodiment of the present disclosure is shown. Figure 2 , the meter box address hierarchy information is: building-unit one-first floor-the first meter box numbered 111; building-unit one-first floor-the second meter box numbered 112; building-unit one-second floor-the third meter box numbered 121; building-unit one-second floor-the fourth meter box numbered 122; building-unit two-first floor-the fifth meter box numbered 211; building-unit two-first floor-the sixth meter box numbered 212; building-unit two-second floor-the seventh meter box numbered 221; building-unit two-second floor-the eighth meter box numbered 222.

[0027] After obtaining the meter box address hierarchy information, the initial substation metering device positioning tree can be constructed according to the meter box address hierarchy information. In specific implementation, the root node can be created for the highest level information in the meter box address hierarchy information, and its node identification data can be set; the next level information can be read from the meter box address hierarchy information, and several new child nodes can be created for the root node; the node identification data of each child node can be set, and the node identification data of the newly created child node can be added to the child node list of the root node; for any target child node in each child node, the next level information corresponding to the target child node can be read from the meter box address hierarchy information, and several new child nodes can be created for the target child node, and the node identification data of each child node can be set, and the node identification data of the newly created child node can be added to the child node list of the target child node. Repeat the above steps until all the level information in the meter box address hierarchy information has corresponding nodes, thereby constructing the initial substation metering device positioning tree. Finally, the number of each metering device is stored in the corresponding meter box node in the initial substation metering device positioning tree to obtain the substation metering device positioning tree. In specific implementation, for example, the meter box node has a metering device attribute, and its attribute value is a metering device list. The metering device list includes multiple metering device objects. The device number of each metering device can be set in the corresponding metering device object, and finally a metering device location tree for the substation is obtained.

[0028] by Figure 2Taking the meter box address hierarchy information shown in the figure as an example, you can first create a corresponding root node for the highest level information of the meter box address hierarchy information, that is, building, and set its node identification data, such as B1; read the next level information from the meter box address hierarchy information to obtain unit one and unit two, and create two child nodes, node 1 and node 2, for unit one and unit two respectively; set the node identification data of node 1 to U1, set the node identification data of node 2 to U2, and add U1 and U2 to the child node list of the root node; for node 1, read the next level information corresponding to node 1 from the meter box address hierarchy information to obtain unit one and unit two. and one unit two layers, create two new child nodes for node 1, node 3 and node 4; set the node identification data of node 3 to Y11, set the node identification data of node 4 to Y12, and add Y11 and Y12 to the child node list of node 1; for node 2, read the next level information corresponding to node 2 from the table box address level information, get two units one layer and two units two layers, create two new child nodes for node 2, node 5 and node 6; set the node identification data of node 5 to Y21, set the node identification data of node 5 to Y22, and add Y21 and Y22 to the child node list of node 3. By analogy, corresponding nodes can be created for the first meter box numbered 111, the second meter box numbered 112, the second floor of the first unit, the third meter box numbered 121, the fourth meter box numbered 122, the second unit, the first floor of the second unit, the second floor of the second unit, the fifth meter box numbered 211, the sixth meter box numbered 212, the seventh meter box numbered 221, and the eighth meter box numbered 222, and node identification data can be set. The relationship between the hierarchical information is represented by setting the node identification data in the child node list of the upper layer node, and finally the initial area metering device location tree is obtained. Finally, the metering device number of each user is set in the metering device attribute of the meter box node corresponding to the initial area metering device location tree to obtain the area metering device location tree.

[0029] Regarding S102 above: During implementation, the built-in HPLC (High-speed Power Line Carrier) communication module of each user metering device can be used to calculate the first line distance between each user-side metering device according to the transmission characteristics of the signal on the power line (such as signal attenuation, transmission time, etc.), and send each first line distance to the execution subject of this embodiment. After obtaining each first line distance, each user-side metering device can be clustered based on each first line distance, and the metering devices with smaller distances constitute a metering device set. Here, each metering device in each set is installed in the same terminal meter box.

[0030] In specific implementation, a distance threshold may be set, such as 20 cm. If a first line distance is less than or equal to 20 cm, it indicates that the distance between the two user-side metering devices corresponding to the first line distance is small, and it is judged that the two metering devices are installed in the same terminal meter box and may belong to the same metering device set. Clustering algorithms, such as the K-Means clustering algorithm (K-means algorithm), etc., may also be used to cluster the user-side metering devices according to the first line distances.

[0031] In actual application scenarios, due to factors such as the complexity of line laying and the diversity of power system planning, there may be a situation where the line distance between two metering devices is very close, but they actually belong to different meter boxes. Based on this, in order to achieve more accurate classification of metering devices belonging to the same meter box, in some embodiments of the present disclosure, the method also includes: obtaining the second line distance between each of the user-side metering devices and the concentrator of the target substation; clustering each of the user-side metering devices based on each of the first line distances to obtain a plurality of sets of metering devices with the same meter box, including: hierarchically clustering each of the user-side metering devices according to each of the first line distances and each of the second line distances to obtain a clustering tree; obtaining the plurality of sets of metering devices with the same meter box according to the node information corresponding to the target layer in the clustering tree; wherein the number of nodes including user-side metering devices on the target layer is equal to the number of meter box nodes.

[0032] In specific implementation, the second line distance is obtained in a similar manner to the first line distance, that is, the HPLC communication module is used to calculate the second line distances between each user-side metering device and the concentrator, and each second line distance is sent to the execution subject of this embodiment. Figure 3 A schematic diagram of the topological structure between the concentrator and each user-side metering device provided in an embodiment of the present disclosure is shown. Figure 3 In the example, the distances between the concentrator and the first user-side metering device, the second user-side metering device, and the third user-side metering device are all second line distances. The distances between the first user-side metering device, the second user-side metering device, and the third user-side metering device are all first line distances.

[0033] After obtaining each first line distance and each second line distance, each first line distance and each second line distance constitute a distance matrix, and a hierarchical clustering algorithm, such as an agglomerative hierarchical clustering algorithm, a divisive hierarchical clustering algorithm, etc., can be used to process the distance matrix to obtain a clustering tree. The clustering tree includes node sets at multiple levels, and each node set represents a clustering result. If the number of nodes including user-side metering devices in the node set on a certain level is consistent with the number of meter box nodes in the aforementioned station metering device location tree, then the level is used as the target layer. The node including the user-side metering device in the target layer represents a set of metering devices with the same meter box. Each set of metering devices with the same meter box includes the device numbers of multiple metering devices.

[0034] This embodiment introduces the second line distance, that is, the distance between each user-side metering device and the concentrator, which provides more dimensional reference information for cluster analysis. The concentrator has a relatively fixed and important position in the power system, and its distance relationship with each metering device can reflect the relative position characteristics of the metering device in the entire substation. By combining the first line distance and the second line distance, constructing a distance matrix and performing hierarchical clustering, the positional relationship between the metering devices can be more comprehensively and accurately described, thereby effectively avoiding misgrouping caused by the close distance of local lines, and more accurately identifying metering devices that truly belong to the same meter box.

[0035] Regarding S103 above: In this step, the meter box matching may be performed between the meter box set and the meter box node first, and then the meter box numbers in the meter box set are recorded in the corresponding meter box node.

[0036] In some embodiments, the device numbers stored in the corresponding meter box nodes in the substation metering device positioning tree are updated by using the multiple sets of metering devices with the same meter box to obtain an updated substation metering device positioning tree, including: for any target metering device set in the multiple sets of metering devices with the same meter box, and any target meter box node in the substation metering device positioning tree, taking the intersection of the set consisting of the target metering device set and the device numbers stored in the target meter box node; if the number of elements in the intersection is greater than or equal to a preset number, using the device number in the target metering device set to update the device number stored in the target meter box node.

[0037] Here, the preset number can be set according to actual needs, and this embodiment does not limit this. Generally, in a meter box, the proportion of metering devices that change position is small, so during implementation, the preset number can be set to be greater than half of the total number of metering devices in the meter box.

[0038] For example, if hierarchical clustering is used, two sets of metering devices with the same meter box are obtained: set A and set B. Among them, set A includes the following metering devices: M001, M002 and M004, and set B includes the following metering devices: M003, M005 and M006. There are two meter box nodes in the station area metering device location tree: meter box node X and meter box node Y. Among them, the device numbers stored in meter box node X include M001, M002 and M003, and the device numbers stored in meter box node Y include M004, M005 and M006.

[0039] Set A can be used as the target metering device set, and meter box node X can be used as the target meter box node. The intersection of the set consisting of the device numbers stored in set A and meter box node X includes M001 and M002. If the preset number is 2, the number of elements in the intersection is equal to the preset number, indicating that the meter boxes corresponding to set A and meter box node X are the same. Therefore, the metering device numbers in set A can be used to update the device numbers stored in meter box node X. The updated device numbers stored in meter box node X include M001, M002, and M004.

[0040] Then, set B can be used as the target metering device set, meter box node X can be used as the target meter box node, and the intersection of set B and the metering device numbers stored in meter box node X includes M003. The number of elements in the intersection is less than the preset number, indicating that the meter boxes corresponding to set B and meter box node X are not the same, and the metering device numbers stored in meter box node X are not updated at this time. Then, meter box node Y can be used as the target meter box node, and the intersection of set B and the metering device numbers stored in meter box node Y includes M005 and M006. The number of elements in the intersection is 2, which is equal to the preset number 2, indicating that the meter boxes corresponding to set B and meter box node Y are the same. Therefore, the metering device numbers in set B can be used to update the metering device numbers stored in meter box node Y. The updated metering device numbers stored in meter box node Y include: M003, M005 and M006.

[0041] For S104: Here, the navigation position data specifically includes spatial longitude data, spatial latitude data and spatial altitude data. During implementation, if the user-side metering device is installed outdoors, the navigation position data of the user metering device can be obtained using satellite positioning technology. Specifically, it can be directly obtained through the data interface of a satellite positioning system (such as a global positioning system, a Beidou satellite navigation system, etc.). A positioning module (such as a chip based on a satellite positioning system) can also be set in the user-side metering device, and the execution subject of this method can receive the navigation position data sent by the device in a wired or wireless manner through a custom communication protocol. After obtaining the navigation position data of each user-side metering device, each navigation position data can be added to the positioning tree of the metering device in the update background area. Specifically, for example, the navigation position data of each metering device can be set in the corresponding metering device object.

[0042] In actual application scenarios, user-side metering devices may be installed indoors, such as in buildings and basements. Based on this, in some embodiments of the present disclosure, if each of the user-side metering devices includes multiple indoor metering devices installed in at least one building, the navigation location data of each indoor metering device is generated according to the following method: for any target building, obtain the outdoor navigation location data of the location of the receiver of the target building; obtain the relative location data of each indoor metering device in the target building relative to the receiver; and calculate the navigation location data of each indoor metering device in the target building based on the outdoor navigation location data and each relative location data.

[0043] In this embodiment, in order to obtain the navigation position data of each indoor metering device, the following steps can be performed for each target building in each building: (1) Using satellite positioning technology, obtain the navigation position data of the location of the receiver of the target building, that is, the outdoor navigation position data. (2) Obtain the relative position data of each indoor metering device in the target building relative to the receiver. During implementation, the operation and maintenance personnel can wear navigation equipment, such as an inertial navigation equipment based on INS (Inertial Navigation System), enter the building to perform the initial entry and positioning of the metering device, so as to determine the relative position data of each indoor metering device relative to the receiver in the spatial coordinate system. Here, the relative position data specifically includes, for example, the relative displacement and relative angle change in the spatial coordinate system. (3) Based on the outdoor navigation position data and the relative position data, calculate the navigation position data of each indoor metering device in the target building. The navigation position data calculation method in this step is a prior art and will not be repeated here.

[0044] Ultimately, the navigation location data of each indoor metering device in each building can be obtained.

[0045] This embodiment obtains the outdoor navigation position data of the target building receiver and the relative position data of each indoor metering device relative to the receiver, and then calculates the navigation position data of each indoor metering device, thereby achieving accurate positioning of indoor metering devices installed in buildings (such as buildings and basements).

[0046] In some embodiments, the method further includes: obtaining multiple updated back-end area metering device positioning trees; extracting meter box situation change data of the metering device to be judged from the multiple updated back-end area metering device positioning trees; generating a position change situation judgment result based on the meter box situation change data and a pre-built position change judgment algorithm.

[0047] In this embodiment, for example, if the number of the updated back-end area metering device location trees is 2, then the first line distance between each user-side metering device is obtained, and based on each first line distance, each user-side metering device is clustered to obtain a plurality of sets of metering devices with the same meter box; and the user-side metering device number stored in the corresponding meter box node in the area metering device location tree is updated using the plurality of sets of metering devices with the same meter box, and after obtaining the first updated back-end area metering device location tree, the first line distance between each user-side metering device can be further obtained, and based on the new first line distance, the updated back-end area metering device location tree is updated for the second time to obtain the second updated back-end area metering device location tree. The meter box situation data of the metering device to be determined is extracted from the two updated back-end area metering device location trees respectively, and the meter box situation change data is formed, and the meter box situation change data is encoded to obtain the meter box situation change characteristic data, and the meter box situation change characteristic data is processed using the pre-constructed position change judgment algorithm to obtain the position change judgment result of the metering device to be determined.

[0048] Here, the position change judgment algorithm can be a decision tree algorithm, a support vector machine, a naive Bayes algorithm, a neural network algorithm, etc., which is not limited in this embodiment. During implementation, a data set can be extracted from the historical update backend area metering device positioning tree. The characteristics of each training sample in the data set are, for example, the characteristic data of the meter box situation generated according to the meter box situation of any metering device in the backend area metering device positioning tree after two consecutive updates, and the corresponding label is the marked position change situation. The initial decision tree algorithm is trained using the data set to obtain the position change judgment algorithm.

[0049] This embodiment can use a pre-built position change judgment algorithm to quickly and accurately judge whether the position of the metering device to be judged has changed, so that maintenance personnel can respond quickly to ensure stable operation of the power grid.

[0050] The present disclosure also provides a real-time positioning method for a metering device, comprising the following steps: Step S1: extracting the power supply address, metering device number and meter box number of each user from the district power supply address file.

[0051] Step S2: Generate meter box address hierarchy information according to each power supply address and each meter box number.

[0052] Step S3: Construct an initial area metering device location tree based on the meter box address hierarchy information.

[0053] Step S4: Store the numbers of each metering device in the corresponding meter box nodes of the initial area metering device location tree to obtain the area metering device location tree.

[0054] Step S5: Acquire the first line distance between each user-side metering device and the second line distance between each user-side metering device and the concentrator of the target station area.

[0055] Step S6: hierarchical clustering is performed on each user-side metering device according to each first line distance and each second line distance to obtain a clustering tree.

[0056] Step S7: obtaining a plurality of sets of metering devices in the same meter box according to the node information corresponding to the target layer in the clustering tree; wherein the number of nodes including the user-side metering devices on the target layer is equal to the number of meter box nodes.

[0057] Step S8: For any target metering device set in multiple sets of metering devices with the same meter box, and any target meter box node in the area metering device location tree, take the intersection of the target metering device set and the set consisting of the device numbers stored in the target meter box node.

[0058] Step S9: If the number of elements in the intersection is greater than or equal to the preset number, the device number stored in the target meter box node is updated using the device number in the target metering device set.

[0059] Step S10: Obtain navigation location data of each user-side metering device.

[0060] In specific implementation, if each user-side metering device includes multiple indoor metering devices installed in at least one building, the navigation position data of each indoor metering device is generated according to the following method: for any target building, the outdoor navigation position data of the location of the receiver of the target building is obtained; the relative position data of each indoor metering device in the target building relative to the receiver is obtained; based on the outdoor navigation position data and each relative position data, the navigation position data of each indoor metering device in the target building is calculated.

[0061] Step S11: storing each navigation position data in the corresponding table box node of the updated back-end area metering device positioning tree to obtain a new updated back-end area metering device positioning tree.

[0062] Step S12: Acquire multiple new updated background area metering device location trees.

[0063] Step S13: extracting the meter box situation change data and navigation position change data of the metering device to be determined from the multiple newly updated background area metering device positioning trees.

[0064] Step S14: Generate a position change judgment result based on the meter box situation change data and navigation position change data and another pre-built position change judgment algorithm. Here, the pre-built another position change judgment algorithm is similar to the generation method of the aforementioned position change judgment algorithm, which will not be repeated here.

[0065] Those skilled in the art will appreciate that, in the above method of the specific implementation manner, the writing order of the steps does not mean a strict execution order, but does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0066] It should be noted that, in practical applications, all the above possible implementation methods can be combined in any way to form possible embodiments of the present disclosure, which will not be described one by one here. The information (including but not limited to device information, user information, etc.) and data (including but not limited to data used for analysis, storage and display, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. The software tools or components appearing in the embodiments of the present disclosure are only examples and do not represent actual use.

[0067] Based on the same concept, the embodiment of the present disclosure also provides a real-time positioning device for a metering device. Figure 4 The schematic diagram of the structure of the real-time positioning device for a metering device provided by the embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the real-time positioning device 400 of the metering device provided in the embodiment of the present disclosure includes: The acquisition module 401 is used to acquire a pre-constructed area metering device location tree for a target area; wherein the area metering device location tree is constructed based on the area power supply address file of the target area, and the leaf node of the area metering device location tree is a meter box node storing a device number of a user-side metering device; A clustering module 402 is used to obtain a first line distance between each of the user-side metering devices, and cluster each of the user-side metering devices based on each of the first line distances to obtain a plurality of sets of metering devices in the same meter box; The first positioning module 403 is used to update the device number stored in the corresponding meter box node in the station area metering device positioning tree by using the plurality of metering devices in the same meter box to obtain an updated station area metering device positioning tree; The second positioning module 404 is used to: obtain navigation location data of each user-side metering device; and store each navigation location data in a corresponding meter box node of the positioning tree of the metering device in the update background area.

[0068] In some embodiments, if each of the user-side metering devices includes multiple indoor metering devices installed in at least one building, the device also includes a calculation module, which is used to: for any target building, obtain the outdoor navigation position data of the location of the receiver of the target building; obtain the relative position data of each indoor metering device in the target building relative to the receiver; and calculate the navigation position data of each indoor metering device in the target building based on the outdoor navigation position data and each relative position data.

[0069] In some embodiments, the device also includes a construction module, which is used to: extract the power supply address, metering device number and meter box number of each user from the district power supply address file; generate meter box address hierarchy information based on each power supply address and each meter box number; construct an initial substation metering device location tree based on the meter box address hierarchy information; store each metering device number in the corresponding meter box node of the initial substation metering device location tree to obtain the substation metering device location tree.

[0070] In some embodiments, the device also includes a distance acquisition module, which is used to obtain the second line distance between each of the user-side metering devices and the concentrator of the target substation; the clustering module is used to: hierarchically cluster each of the user-side metering devices according to each of the first line distances and each of the second line distances to obtain a clustering tree; according to the node information corresponding to the target layer in the clustering tree, obtain the set of multiple metering devices in the same meter box; wherein the number of nodes including the user-side metering devices on the target layer is equal to the number of the meter box nodes.

[0071] In some embodiments, in the above-mentioned device, the repositioning module is used to: for any target metering device set in the multiple sets of metering devices with the same meter box, and any target meter box node in the substation metering device positioning tree, take the intersection of the set consisting of the target metering device set and the device number stored in the target meter box node; if the number of elements in the intersection is greater than or equal to the preset number, the device number in the target metering device set is used to update the device number stored in the target meter box node.

[0072] In some embodiments, the above-mentioned device also includes a judgment module, which is used to: obtain multiple updated back-end area metering device positioning trees; extract the meter box situation change data of the metering device to be judged from the multiple updated back-end area metering device positioning trees; generate a position change situation judgment result based on the meter box situation change data and a pre-built position change judgment algorithm.

[0073] It should be noted that any of the above-mentioned real-time positioning devices for metering devices can implement the above-mentioned real-time positioning method for metering devices in a one-to-one correspondence, which will not be repeated here.

[0074] Figure 5 FIG. 1 shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5 As shown, at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0075] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0076] The memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.

[0077] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a real-time positioning device for the metering device at the logical level. The processor executes the program stored in the memory and is specifically used to execute the above method.

[0078] The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0079] The electronic device can execute the real-time positioning method of the metering device provided in multiple embodiments of the present disclosure, and realize the real-time positioning device of the metering device in Figure 4 The functions of the illustrated embodiments will not be described in detail in the embodiments of the present disclosure.

[0080] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores one or more programs, and the one or more programs include instructions. When the instructions are executed by an electronic device including multiple application programs, the electronic device can execute the real-time positioning method of the metering device provided by multiple embodiments of the present disclosure.

[0081] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0082] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0083] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0084] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0085] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0086] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0087] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0088] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the real-time positioning method for a metering device described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0089] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0090] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.

[0091] It should be understood by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0092] The above are only embodiments of the present disclosure and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the claims of the present disclosure.

Claims

1. A real-time positioning method for a metering device, characterized in that: The method comprises: Obtaining a pre-built area metering device location tree for the target area; wherein the area metering device location tree is built based on the area power supply address file of the target area, and the leaf node of the area metering device location tree is a meter box node storing the device number of the user-side metering device; Using high-speed power line carrier communication technology, a first line distance between each of the user-side metering devices is obtained, and based on each of the first line distances, each of the user-side metering devices is clustered to obtain a plurality of sets of metering devices in the same meter box; Using the plurality of metering devices in the same meter box, the device numbers stored in the corresponding meter box nodes in the station area metering device location tree are updated to obtain an updated station area metering device location tree; The navigation location data of each user-side metering device is obtained, and each navigation location data is stored in a corresponding meter box node of the updated background area metering device positioning tree.

2. The method according to claim 1, characterized in that If each of the user-side metering devices includes a plurality of indoor metering devices installed in at least one building, the navigation location data of each of the indoor metering devices is generated according to the following method: For any target building, obtaining outdoor navigation location data of a location of a receiver of the target building; Acquiring relative position data of each indoor metering device in the target building relative to the receiver; The navigation position data of each indoor metering device in the target building is calculated based on the outdoor navigation position data and each relative position data.

3. The method according to claim 1, characterized in that The station area metering device location tree is constructed according to the following method: Extracting the power supply address, metering device number and meter box number of each user from the power supply address file of the district; Generate meter box address hierarchy information according to each of the power supply addresses and each of the meter box numbers; According to the meter box address hierarchy information, construct an initial area metering device location tree; The metering device numbers are stored in the corresponding meter box nodes of the initial area metering device location tree to obtain the area metering device location tree.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining the second line distance between each of the user-side metering devices and the concentrator of the target area; The clustering of the user-side metering devices based on the first line distances to obtain a plurality of sets of metering devices in the same meter box includes: Performing hierarchical clustering on each of the user-side metering devices according to each of the first line distances and each of the second line distances to obtain a clustering tree; According to the node information corresponding to the target layer in the clustering tree, the plurality of sets of metering devices in the same meter box are obtained; wherein the number of nodes including user-side metering devices on the target layer is equal to the number of the meter box nodes.

5. The method according to claim 1, characterized in that The method of using the plurality of metering devices in the same meter box to update the device number stored in the corresponding meter box node in the station area metering device location tree to obtain an updated station area metering device location tree includes: For any target metering device set in the plurality of metering device sets with the same meter box, and any target meter box node in the station area metering device location tree, take the intersection of the target metering device set and the set consisting of the device numbers stored in the target meter box node; If the number of elements in the intersection is greater than or equal to a preset number, the device numbers in the target metering device set are used to update the device numbers stored in the target meter box node.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Get multiple update background area metering device location trees; Extracting the meter box status change data of the metering device to be determined from the plurality of updated back-end area metering device location trees; Based on the meter box situation change data and a pre-built position change judgment algorithm, a position change situation judgment result is generated.

7. A real-time positioning device for a metering device, characterized in that: The device comprises: An acquisition module is used to acquire a pre-constructed area metering device location tree for a target area; wherein the area metering device location tree is constructed based on the area power supply address file of the target area, and the leaf node of the area metering device location tree is a meter box node storing a device number of a user-side metering device; A clustering module, used to obtain the first line distance between each of the user-side metering devices by using the high-speed power line carrier communication technology, and cluster each of the user-side metering devices based on each of the first line distances to obtain a plurality of sets of metering devices in the same meter box; A first positioning module is used to update the device number stored in the corresponding meter box node in the station area metering device positioning tree by using the plurality of metering devices in the same meter box to obtain an updated station area metering device positioning tree; The second positioning module is used to obtain navigation location data of each user-side metering device and store each navigation location data in a corresponding meter box node of the positioning tree of the metering device in the update background area.

8. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor is caused to perform the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing one or more programs, characterized in that: When the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device executes the steps of the method as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Indoor metering device positioning and navigation method and device and metering device

    CN116481536A

  • Base station control method, device and equipment based on overlay tree

    CN109618285A

  • Map description data processing device, information processing method, and program

    CN114080600A

  • Converged communication method between intelligent electric meter and concentrator based on dual-mode communication

    CN115188176A

  • Distribution area topology identification method and system based on minimum spanning tree

    CN115221979A