Intelligent electric meter positioning method and system based on distance measurement, medium and equipment
By building the shortest meter path along the way and using time-of-flight ranging and loss function optimization, the accuracy problem of smart meter positioning in complex environments is solved, and efficient and robust positioning effect is achieved.
Patent Information
- Application Number
- CN202510403400.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-01
- Publication Date
- 2025-06-13
AI Technical Summary
The existing smart meter positioning technology is difficult to achieve high-precision positioning in complex environments, especially in the case of severe signal occlusion and multi-hop communication, positioning errors are easily accumulated.
By building the shortest meter path along the way and using time-of-flight ranging and loss function optimization, the current position of the nearest smart meter is gradually updated until the real position of the smart meter to be tested is approached.
It improves positioning efficiency and accuracy, reduces unnecessary multi-hop communication, enhances the robustness of the algorithm and the overall accuracy of the positioning system.
Smart Images

Figure CN120152011A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent electricity meter positioning, and relates to a positioning method, system, medium and device for intelligent electricity meters based on ranging. Background Art
[0002] With the development of smart grids, the widespread application of intelligent electricity meters has made accurate and efficient electricity meter positioning an important requirement for power system management. Traditional electricity meter positioning methods mainly rely on reference points at fixed positions or pre-deployed infrastructure. This method has many limitations in practical applications, especially in complex substation areas, such as signal interference, multipath effects, etc., resulting in a decrease in positioning accuracy.
[0003] Existing intelligent electricity meter positioning technologies usually rely on a single ranging method, such as GPS or Wi-Fi positioning. However, in indoor environments or environments with severe signal blockage, these methods often cannot provide sufficient accuracy and reliability. In addition, traditional methods lack effective path selection and optimization mechanisms when dealing with multi-hop communication, and it is difficult to adapt to dynamically changing network topologies, resulting in the accumulation of positioning errors and affecting the final positioning results. Therefore, there is an urgent need for a new method that can achieve high-precision intelligent electricity meter positioning in complex environments. Summary of the Invention
[0004] In view of the deficiencies of the prior art, the present application provides a positioning method, system, medium and device for intelligent electricity meters based on ranging, which solves the problem of precise positioning of intelligent electricity meters by constructing the shortest path of electricity meters along the way and using time-of-flight ranging and loss function optimization.
[0005] To achieve the above object, in a first aspect, the present invention provides a positioning method for intelligent electricity meters based on ranging, including:
[0006] According to the local link information between each intelligent electricity meter and the substation measurement terminal, obtain the shortest path and use the starting point of the shortest path as the current nearest intelligent electricity meter; wherein, the shortest path is the shortest path among the paths of electricity meters along the way from each intelligent electricity meter within the wireless communication range of the mobile device to the electricity meter to be measured.
[0007] According to the position coordinates of the mobile device at different positions and the wireless communication time-of-flight corresponding to each position with the current nearest intelligent electricity meter, calculate the position coordinates of the current nearest intelligent electricity meter in sequence until the current nearest intelligent electricity meter is the electricity meter to be measured, and output the position coordinates of the electricity meter to be measured; wherein, after each calculation, update the current nearest intelligent electricity meter to the next intelligent electricity meter in the shortest path.
[0008] Compared with the prior art, the embodiments of the present application have the following beneficial effects: By constructing the shortest path of the meters along the way, the optimality of the path selection is ensured, unnecessary multi-hop communication is reduced, and the positioning efficiency is improved; By using the method of gradual update, starting from the current nearest smart meter, the true position of the smart meter to be measured is gradually approximated, and the positioning accuracy is improved.
[0009] In some embodiments of the first aspect of the present application, calculating the position coordinates of the current nearest smart meter in sequence according to the position coordinates of the mobile device at different positions and the wireless communication flight time corresponding to the current nearest smart meter at each position includes:
[0010] Calculating the flight time distance between the mobile device and the current nearest smart meter corresponding to each position according to the wireless communication flight time;
[0011] Calculating the first position coordinates of the current nearest smart meter according to the position coordinates of the mobile device at different positions and each of the flight time distances.
[0012] Compared with the prior art, the above embodiments have the following beneficial effects: By accurately measuring the distance between the mobile device and the smart meter through the wireless communication flight time (TOF), the accuracy of distance measurement is improved; Calculating the first position coordinates provides a reliable initial estimate for subsequent optimization and enhances the robustness of the algorithm.
[0013] In some embodiments of the first aspect of the present application, calculating the position coordinates of the current nearest smart meter in sequence according to the position coordinates of the mobile device at different positions and the wireless communication flight time corresponding to the current nearest smart meter at each position further includes:
[0014] Iteratively solving a preset loss function according to the position coordinates of the mobile device at different positions and the first position coordinates to obtain the second position coordinates of the current nearest smart meter until the deviation accuracy between the second position coordinates obtained from two adjacent solutions meets a preset threshold, outputting the currently obtained second position coordinates as the position coordinates of the current nearest smart meter, and updating the first position coordinates according to the second position coordinates after each obtaining of the second position coordinates;
[0015] Wherein, the loss function is constructed according to the position coordinates of the mobile device at different positions and the first position coordinates.
[0016] Compared with the prior art, the above embodiments have the following beneficial effects: Based on the first position coordinate, by iteratively solving the loss function to minimize the distance residual, the position estimation of the smart meter is gradually optimized, and finally a high-precision positioning result is obtained; The first position coordinate is updated after each iteration to ensure that each optimization is based on the latest best estimate, improving the convergence speed and accuracy of positioning.
[0017] In some embodiments of the first aspect of the present application, the loss function is constructed based on the position coordinates of the mobile device at different positions and the first position coordinate, and includes:
[0018] Construct a loss function according to the sum of squared residuals function, where the formula is as follows:
[0019]
[0020]
[0021] Where X ′ , Y ′ and Z ′ represent the first position coordinates of the current nearest smart meter, X i , Y i and Z i represent the position coordinates of the mobile device at the i-th position, D i represents the time-of-flight distance between the mobile device at the i-th position and the current nearest smart meter, E(X, Y, Z) represents the sum of squared residuals function, X, Y, and Z represent the position coordinates of the current nearest smart meter to be corrected during the iterative solution process, and n represents the number of different positions of the mobile device.
[0022] Compared with the prior art, the above embodiments have the following beneficial effects: By using the sum of squared residuals function to construct the loss function, the distance residual between the mobile device at different positions and the current nearest smart meter can be accurately measured, and by comprehensively considering the information of all these positions, it helps to more accurately determine the position coordinates of the smart meter, thereby improving the accuracy of the entire positioning system.
[0023] In a second aspect, the present invention also provides a ranging-based smart meter positioning system, including: a shortest path acquisition module and a positioning module;
[0024] Among them, the shortest path acquisition module is used to obtain the shortest path based on the local link information between each smart meter and the substation measurement terminal, and use the starting point of the shortest path as the current nearest smart meter; Among them, the shortest path is the shortest path among the paths of each meter along the way from each smart meter within the wireless communication range of the mobile device to the smart meter to be measured;
[0025] The positioning module is used to calculate the position coordinates of the current nearest smart meter in sequence according to the position coordinates of the mobile device at different positions and the wireless communication flight time corresponding to the current nearest smart meter at each position, until the current nearest smart meter is the smart meter to be measured, and output the position coordinates of the smart meter to be measured; wherein, after each calculation, the current nearest smart meter is updated to the next smart meter in the shortest path.
[0026] Compared with the prior art, the above embodiments of the present application have the following beneficial effects: By constructing the shortest path of meters along the way, the optimality of path selection is ensured, unnecessary multi-hop communication is reduced, and the positioning efficiency is improved; Using the method of gradual update, starting from the current nearest smart meter, gradually approaching the true position of the smart meter to be measured, and improving the positioning accuracy.
[0027] In some embodiments of the second aspect of the present application, the positioning module includes: a flight time distance calculation unit and a first position coordinate calculation unit;
[0028] Among them, the flight time distance calculation unit is used to calculate the flight time distance between the mobile device and the current nearest smart meter corresponding to each position according to the wireless communication flight time;
[0029] The first position coordinate calculation unit is used to calculate the first position coordinates of the current nearest smart meter according to the position coordinates of the mobile device at different positions and each of the flight time distances.
[0030] Compared with the prior art, the above embodiments have the following beneficial effects: By accurately measuring the distance between the mobile device and the smart meter through the wireless communication flight time (TOF), the accuracy of distance measurement is improved; Calculating the first position coordinates provides a reliable initial estimate for subsequent optimization and enhances the robustness of the algorithm.
[0031] In some embodiments of the second aspect of the present application, the positioning module further includes: a first position correction unit;
[0032] The first position correction unit is used to iteratively solve a preset loss function according to the position coordinates of the mobile device at different positions and the first position coordinates, obtain the second position coordinates of the current nearest smart meter until the deviation accuracy between the second position coordinates obtained from two adjacent solutions meets a preset threshold, output the currently obtained second position coordinates as the position coordinates of the current nearest smart meter, and after each obtaining of the second position coordinates, update the first position coordinates according to the second position coordinates;
[0033] Among them, the loss function is constructed according to the position coordinates of the mobile device at different positions and the first position coordinates.
[0034] Compared with the prior art, the above embodiments have the following beneficial effects: Based on the first position coordinates, by iteratively solving the loss function to minimize the distance residual, the position estimation of the smart meter is gradually optimized, and finally a high-precision positioning result is obtained; the first position coordinates are updated after each iteration to ensure that each optimization is based on the latest best estimate, improving the convergence speed and accuracy of the positioning.
[0035] In some embodiments of the second aspect of the present application, the first position correction unit includes: a loss function construction subunit;
[0036] The loss function construction subunit is used to construct a loss function according to the sum of squared residuals function, and the formula is as follows:
[0037]
[0038]
[0039] where X ′ 、Y ′ and Z ′ represent the first position coordinates of the current nearest smart meter, X i 、Y i and Z i represent the position coordinates of the mobile device at the i-th position, D i represents the time-of-flight distance between the mobile device at the i-th position and the current nearest smart meter, E(X, Y, Z) represents the sum of squared residuals function, X, Y, and Z represent the position coordinates of the current nearest smart meter to be corrected during the iterative solution process, and n represents the number of different positions of the mobile device.
[0040] Compared with the prior art, the above embodiments have the following beneficial effects: By using the sum of squared residuals function to construct the loss function, the distance residual between the mobile device at different positions and the current nearest smart meter can be accurately measured, and considering the information of all these positions helps to more accurately determine the position coordinates of the smart meter, thereby improving the accuracy of the entire positioning system.
[0041] In a third aspect, the present invention also provides a ranging-based smart meter positioning device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is loaded into the processor, the steps of the ranging-based smart meter positioning method described above are implemented.
[0042] Fourthly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the intelligent meter positioning method based on ranging are implemented. Description of the Drawings
[0043] Figure 1 : A flowchart of an intelligent meter positioning method based on ranging provided in some embodiments of the present invention.
[0044] Figure 2 : A structural diagram of an intelligent meter positioning system based on ranging provided in some embodiments of the present invention.
[0045] Figure 3 : A structural diagram of an intelligent meter positioning device based on ranging provided in some embodiments of the present invention.
[0046] Figure 4 : A schematic diagram of continuous positioning of multiple meters in an intelligent meter positioning method based on ranging provided in some embodiments of the present invention.
[0047] Figure 5 : A schematic diagram of single-meter positioning in an intelligent meter positioning method based on ranging provided in some embodiments of the present invention. Detailed Embodiments
[0048] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0049] Embodiment 1:
[0050] Please refer to Figure 1 , an intelligent meter positioning method based on ranging provided in an embodiment of the present invention, including steps S1 to S2:
[0051] Step S1: According to the local link information between each intelligent meter and the substation measurement terminal, obtain the shortest path and use the starting point of the shortest path as the current nearest intelligent meter.
[0052] Among them, the shortest path is the shortest path among the paths of each meter along the way from each intelligent meter within the wireless communication range of the mobile device to the intelligent meter to be measured.
[0053] In a specific implementation, taking Figure 4Taking the multi-meter continuous positioning schematic diagram of a ranging-based intelligent meter positioning method shown as an example, Mx is the intelligent meter to be positioned. First, a mobile handheld device PDA can be used to send single-hop information in the power distribution area to search for Mx. If Mx does not respond outside the wireless communication range of the initial current position of the PDA, the PDA sends single-hop information in the power distribution area to ask other intelligent meters about the path to reach Mx and receives the replies from other intelligent meters within the single-hop information communication range. Among them, the path given by M1 to reach Mx is the shortest and requires 3-hop information. Then, taking M1 as the current nearest intelligent meter Mmin, the shortest path is M1→M2→M3→Mx.
[0054] In this embodiment, by constructing the shortest path of the meters along the way, the optimality of the path selection is ensured, unnecessary multi-hop communication is reduced, and the positioning efficiency is improved.
[0055] After obtaining the shortest path M1→M2→M3→Mx using the PDA, starting from the current nearest intelligent meter M1, the intelligent meters on the shortest path along the way are located in sequence, that is, first locate and reach the position of M1, then locate and reach the position of M2, then locate and reach the position of M3, and finally locate and obtain the position of Mx at the position of M3. The implementation steps of the positioning are as in S2, specifically as follows:
[0056] Step S2: According to the position coordinates of the mobile device at different positions and the wireless communication flight time corresponding to the current nearest intelligent meter at each position, calculate the position coordinates of the current nearest intelligent meter in sequence until the current nearest intelligent meter is the intelligent meter to be measured, and output the position coordinates of the intelligent meter to be measured; among them, after each calculation, update the current nearest intelligent meter to the next intelligent meter in the shortest path.
[0057] Preferably, in some embodiments of the present application, the calculating the position coordinates of the current nearest intelligent meter according to the position coordinates of the mobile device at different positions and the wireless communication flight time corresponding to the current nearest intelligent meter at each position includes steps S21 to S23, specifically as follows:
[0058] S21: Calculate the flight time distance between the mobile device and the current nearest intelligent meter corresponding to each position according to the wireless communication flight time.
[0059] In specific implementation, the method for calculating the flight time distance is as follows:
[0060]
[0061] Among them, TOF A_B and TOF B_ARepresents the flight time of the wireless signal between two communication points A and B, t loop Is the time required for a communication point to send a message and receive a return message from another communication point; t reply Is the processing time required for the communication point to internally respond to process the communication request, c is the speed of light, D i Represents the flight time distance between the mobile device and the current nearest smart meter at the i-th position.
[0062] S22: Calculate the first position coordinates of the current nearest smart meter according to the position coordinates of the mobile device at different positions and each of the flight time distances.
[0063] In a specific implementation, the algorithm for calculating the first position coordinates is as follows:
[0064]
[0065] Where X ′ , Y ′ and Z ′ Represent the first position coordinates of the current nearest smart meter, (X 1 , Y 1 , Z 1 ), (X 2 , Y 2 , Z 2 ) and (X 3 , Y 3 , Z 3 ) respectively represent the position coordinates of the mobile device at three different positions.
[0066] In steps S21 - S22, the distance between the mobile device and the smart meter is accurately measured by the wireless communication time of flight (TOF), improving the accuracy of distance measurement; calculating the first position coordinates provides a reliable initial estimate for subsequent optimization and enhances the robustness of the algorithm.
[0067] In a specific implementation, the calculated first coordinates actually have errors due to various factors and can be further corrected. Specifically, it can be achieved according to step S23:
[0068] S23: Iteratively solve a preset loss function according to the position coordinates of each mobile device at different positions and the first position coordinates to obtain the second position coordinates of the current nearest smart meter until the deviation accuracy between the second position coordinates obtained in two adjacent solutions meets a preset threshold, output the currently obtained second position coordinates as the position coordinates of the current nearest smart meter, and after each obtaining of the second position coordinates, update the first position coordinates according to the second position coordinates;
[0069] Among them, the loss function is constructed based on the position coordinates of the mobile device at different positions and the first position coordinate, and is used to measure the distance residual between the mobile device at different positions and the current nearest smart meter.
[0070] In this embodiment, in step S23, based on the first position coordinate, by iteratively solving the loss function, minimizing the distance residual, gradually optimizing the position estimation of the smart meter, and finally obtaining a high-precision positioning result; the first position coordinate is updated after each iteration to ensure that each optimization is based on the latest best estimate, improving the convergence speed and accuracy of the positioning.
[0071] Further, in specific implementation, the loss function can be constructed according to the sum of squared residuals function, and the algorithm is as follows:
[0072]
[0073]
[0074] Where X ′ 、Y ′ and Z ′ represent the first position coordinates of the current nearest smart meter, X i 、Y i and Z i represent the position coordinates of the mobile device at the i-th position, D i represents the time-of-flight distance between the mobile device at the i-th position and the current nearest smart meter, E(X, Y, Z) represents the sum of squared residuals function, X, Y, and Z represent the position coordinates of the current nearest smart meter to be corrected during the iterative solution process, and n represents the number of different positions of the mobile device.
[0075] After constructing the loss function, each time the mobile device moves, the loss function is iteratively solved according to the current position coordinates and the first position coordinates, and the first position coordinates are corrected according to the solution result until the deviation accuracy between two adjacent solution results meets the preset threshold (such as 1%), that is, the positioning of the current nearest smart meter is completed. The calculation method of the deviation accuracy can be as follows:
[0076] [X(n) - X(n - 1)] 2 + [Y(n) - Y(n - 1)] 2 + [Z(n) - Z(n - 1)] 2 ≤
[0077] ([X(n) - X n 2 + [Y(n) - Y n 2 + [Z(n) - Z n 2 )·1%;
[0078] Wherein, X(n), Y(n), and Z(n) represent the nth result of the residual sum of squares function E(X, Y, Z), and X(n - 1), Y(n - 1), and Z(n - 1) represent the (n - 1)th result of the residual sum of squares function E(X, Y, Z).
[0079] In this preferred embodiment, by using the residual sum of squares function to construct the loss function, the distance residual between the mobile device and the current nearest smart meter at different positions can be accurately measured. Considering the information of all these positions comprehensively helps to more accurately determine the position coordinates of the smart meter, thereby improving the accuracy of the entire positioning system.
[0080] Specifically, in actual implementation, if the position of the smart meter to be measured is initially within the wireless communication range of the mobile device, the starting point of the shortest path (the first current nearest smart meter) is the smart meter to be measured. In this case, only single-meter positioning is required, as shown in Figure 5 the schematic diagram of single-meter positioning shown, and the specific steps are as described in the above steps S21 - S23, which will not be elaborated here.
[0081] In summary, compared with the prior art, the above embodiments of the present application have the following beneficial effects: By constructing the shortest path of the meters along the way, the optimality of path selection is ensured, unnecessary multi-hop communication is reduced, and the positioning efficiency is improved; By using the method of gradual update, starting from the current nearest smart meter, the true position of the smart meter to be measured is gradually approximated, improving the positioning accuracy.
[0082] Embodiment Two:
[0083] Please refer to Figure 2 , a ranging-based smart meter positioning system disclosed in an embodiment of the present invention includes: a shortest path acquisition module M1 and a positioning module M2;
[0084] Wherein, the shortest path acquisition module M1 is used to obtain the shortest path according to the local link information between each smart meter and the substation measurement terminal, and use the starting point of the shortest path as the current nearest smart meter; wherein, the shortest path is the shortest path among the paths of each meter along the way from each smart meter within the wireless communication range of the mobile device to the smart meter to be measured;
[0085] The shortest path acquisition module M1 of this embodiment ensures the optimality of path selection by constructing the shortest path of the meters along the way, reduces unnecessary multi-hop communication, and improves the positioning efficiency.
[0086] The positioning module M2 is used to calculate the position coordinates of the currently nearest smart meter in sequence according to the position coordinates of the mobile device at different positions and the wireless communication flight time corresponding to the currently nearest smart meter at each position until the currently nearest smart meter is the smart meter to be measured, and output the position coordinates of the smart meter to be measured; wherein, after each calculation, the currently nearest smart meter is updated to the next smart meter in the shortest path.
[0087] The positioning module M2 includes: a flight time distance calculation unit and a first position coordinate calculation unit.
[0088] The flight time distance calculation unit is used to calculate the flight time distance between the mobile device and the currently nearest smart meter corresponding to each position according to the wireless communication flight time.
[0089] The first position coordinate calculation unit is used to calculate the first position coordinates of the currently nearest smart meter according to the position coordinates of the mobile device at different positions and each of the flight time distances.
[0090] The positioning module M2 of this embodiment accurately measures the distance between the mobile device and the smart meter through the wireless communication flight time (TOF), improving the accuracy of distance measurement; calculating the first position coordinates provides a reliable initial estimate for subsequent optimization and enhances the robustness of the algorithm.
[0091] The positioning module M2 further includes: a first position correction unit.
[0092] The first position correction unit is used to iteratively solve a preset loss function according to the position coordinates of the mobile device at different positions and the first position coordinates to obtain the second position coordinates of the currently nearest smart meter until the deviation accuracy between the second position coordinates obtained from two adjacent solutions meets a preset threshold, output the currently obtained second position coordinates as the position coordinates of the currently nearest smart meter, and after each obtaining of the second position coordinates, update the first position coordinates according to the second position coordinates;
[0093] Wherein, the loss function is constructed according to the position coordinates of the mobile device at different positions and the first position coordinates and is used to measure the distance residual between the mobile device and the currently nearest smart meter at different positions.
[0094] The positioning module M2 of this embodiment, based on the first position coordinates, iteratively solves the loss function to minimize the distance residual, gradually optimizes the position estimation of the smart meter, and finally obtains a high-precision positioning result; updating the first position coordinates after each iteration ensures that each optimization is based on the latest best estimate, improving the convergence speed and accuracy of the positioning.
[0095] Furthermore, the first position correction unit includes: a loss function construction subunit;
[0096] The loss function construction subunit is configured to construct a loss function according to the sum of squared residuals function, and the formula is as follows:
[0097]
[0098]
[0099] where X ′ , Y ′ and Z ′ represent the first position coordinates of the current nearest smart meter, X i , Y i and Z i represent the position coordinates of the mobile device at the i-th position, D i represents the time-of-flight distance between the mobile device at the i-th position and the current nearest smart meter, E(X, Y, Z) represents the sum of squared residuals function, X, Y, and Z represent the position coordinates of the current nearest smart meter to be corrected during the iterative solution process, and n represents the number of different positions of the mobile device.
[0100] By using the sum of squared residuals function to construct the loss function, the first position correction unit in this embodiment can accurately measure the distance residuals between the mobile device at different positions and the current nearest smart meter. Considering the information of all these positions comprehensively helps to more accurately determine the position coordinates of the smart meter, thereby improving the accuracy of the entire positioning system.
[0101] In summary, compared with the prior art, the embodiments of the present application have the following beneficial effects: by constructing the shortest path of the meters along the way, the optimality of the path selection is ensured, unnecessary multi-hop communication is reduced, and the positioning efficiency is improved; by using the method of gradual update, starting from the current nearest smart meter, gradually approaching the true position of the smart meter to be measured, the positioning accuracy is improved.
[0102] The division of the above-described modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules can be combined or integrated into another system.
[0103] Embodiment 3:
[0104] Figure 3 shows a structural diagram of a ranging-based smart meter positioning device of the present application. As Figure 3 shown, the ranging-based smart meter positioning device may include: a processor N1, a memory N2, a data interface N3, and a communication bus N4.
[0105] Wherein: a processor N1, a memory N2, and a data interface N3 complete mutual communication through a communication bus N4; the data interface N3 is used for data communication with other devices such as an input device or an output device; the processor N1 is configured to execute a program N5, and specifically can execute the relevant steps in the above-mentioned embodiments of the intelligent electric meter positioning method based on ranging.
[0106] Specifically, the program N5 may include program codes, and the program codes include computer-executable instructions.
[0107] The processor N1 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. One or more processors included in the intelligent electric meter positioning device based on ranging may be of the same type of processor, such as one or more CPUs, or may be of different types of processors, such as one or more CPUs and one or more ASICs.
[0108] The memory N2 is used to store the program N5. The memory N2 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0109] The algorithms or displays provided herein are not inherently related to any specific computer, virtual system, or other device. In addition, the embodiments of the present application are not directed to any specific programming language.
[0110] Embodiment 4:
[0111] The embodiments of the present invention further provide a computer-readable storage medium. The storage medium stores at least one executable instruction. When the executable instruction runs on the intelligent electric meter positioning device / system based on ranging, the intelligent electric meter positioning device / system based on ranging is caused to execute the intelligent electric meter positioning method in any of the above method embodiments.
[0112] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that the embodiments of the present application can be practiced without these specific details. Similarly, in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. Among them, the claims following the specific implementation manners are hereby expressly incorporated into the specific implementation manners, and each claim itself serves as a separate embodiment of the present application.
[0113] Those skilled in the art can understand that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive.
Claims
1. A smart meter positioning method based on ranging, characterized in that: include: According to the local link information between each smart meter and the area measurement terminal, the shortest path is obtained and the starting point of the shortest path is used as the current nearest smart meter; wherein the shortest path is the shortest path among the paths of the smart meters along the way from each smart meter within the wireless communication range of the mobile device to the smart meter to be tested; According to the location coordinates of the mobile device at different locations and the corresponding wireless communication flight time with the current nearest smart meter at each location, the location coordinates of the current nearest smart meter are calculated in sequence until the current nearest smart meter is the smart meter to be tested, and the location coordinates of the smart meter to be tested are output; wherein, after each calculation, the current nearest smart meter is updated to be the next smart meter in the shortest path.
2. A method for locating a smart meter based on ranging as claimed in claim 1, characterized in that: The calculating the location coordinates of the current nearest smart meter in sequence according to the location coordinates of the mobile device at different locations and the corresponding wireless communication flight time between the mobile device and the current nearest smart meter at each location includes: Calculate the flight time distance between the mobile device and the nearest smart meter at each location according to the wireless communication flight time; The first position coordinates of the currently nearest smart meter are calculated according to the position coordinates of the mobile device at different positions and each of the flight time distances.
3. A method for locating a smart meter based on ranging as claimed in claim 2, characterized in that: The method of calculating the location coordinates of the current nearest smart meter in sequence according to the location coordinates of the mobile device at different locations and the corresponding wireless communication flight time between the mobile device and the current nearest smart meter at each location also includes: Iteratively solving a preset loss function according to the position coordinates of each mobile device at different positions and the first position coordinates to obtain the second position coordinates of the current nearest smart meter, until the deviation accuracy of the second position coordinates obtained by two consecutive solutions meets the preset threshold, outputting the currently obtained second position coordinates as the position coordinates of the current nearest smart meter, and updating the first position coordinates according to the second position coordinates after each second position coordinate is obtained; The loss function is constructed according to the position coordinates of the mobile device at different positions and the first position coordinates.
4. A method for locating a smart meter based on ranging as claimed in claim 3, characterized in that: The loss function is constructed according to the position coordinates of the mobile device at different positions and the first position coordinates, including: The loss function is constructed based on the residual square sum function, where the formula is as follows: Where X ′ , Y ′ and Z ′ Indicates the first position coordinate of the nearest smart meter, X i , Y i and Z i represents the position coordinates of the mobile device at the i-th position, D i represents the flight time distance between the mobile device and the current nearest smart meter at the i-th position, E(X,Y,Z) represents the residual sum of squares function, X, Y and Z represent the position coordinates of the current nearest smart meter to be corrected during the iterative solution process, and n represents the number of different positions of the mobile device.
5. A smart meter positioning system based on ranging, characterized in that: include: Shortest path acquisition module and positioning module; The shortest path acquisition module is used to acquire the shortest path according to the local link information between each smart meter and the area measurement terminal, and use the starting point of the shortest path as the current nearest smart meter; wherein the shortest path is the shortest path among the paths of the smart meters along the way from each smart meter within the wireless communication range of the mobile device as the starting point to the smart meter to be tested; The positioning module is used to calculate the position coordinates of the current nearest smart meter in sequence according to the position coordinates of the mobile device at different positions and the corresponding wireless communication flight time between the mobile device and the current nearest smart meter at each position, until the current nearest smart meter is the smart meter to be tested, and output the position coordinates of the smart meter to be tested; wherein, after each calculation, the current nearest smart meter is updated to be the next smart meter in the shortest path.
6. The smart meter positioning system based on ranging as claimed in claim 5, characterized in that: The positioning module includes: a flight time distance calculation unit and a first position coordinate calculation unit; The flight time distance calculation unit is used to calculate the flight time distance between the mobile device and the nearest smart meter at each location according to the wireless communication flight time; The first position coordinate calculation unit is used to calculate the first position coordinate of the current nearest smart meter according to the position coordinates of the mobile device at different positions and each of the flight time distances.
7. The smart meter positioning system based on ranging as claimed in claim 6, characterized in that: The positioning module further includes: a first position correction unit; The first position correction unit is used to iteratively solve a preset loss function according to the position coordinates of each mobile device at different positions and the first position coordinates, obtain the second position coordinates of the current nearest smart meter, until the deviation accuracy of the second position coordinates obtained by two consecutive solutions meets the preset threshold, output the currently obtained second position coordinates as the position coordinates of the current nearest smart meter, and update the first position coordinates according to the second position coordinates after each second position coordinate is obtained; The loss function is constructed according to the position coordinates of the mobile device at different positions and the first position coordinates.
8. The smart meter positioning system based on ranging as claimed in claim 7, characterized in that: The first position correction unit includes: a loss function construction subunit; The loss function construction subunit is used to construct a loss function according to the residual square sum function, wherein the formula is as follows: Where X ′ , Y ′ and Z ′ Indicates the first position coordinate of the nearest smart meter, X i , Y i and Z i represents the position coordinates of the mobile device at the i-th position, D i represents the flight time distance between the mobile device and the current nearest smart meter at the i-th position, E(X,Y,Z) represents the residual sum of squares function, X, Y and Z represent the position coordinates of the current nearest smart meter to be corrected during the iterative solution process, and n represents the number of different positions of the mobile device.
9. A smart meter positioning device based on ranging, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is loaded into the processor, the steps of the smart meter positioning method based on ranging are implemented according to any one of claims 1 to 4.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of a smart meter positioning method based on ranging are implemented according to any one of claims 1 to 4.