Positioning method, system and device, computer equipment, storage medium and computer program product

By determining multiple non-collinear target positioning points and base station coordinates in 5G positioning technology, and calculating terminal coordinates, the problem of low positioning accuracy in the existing technology is solved, and high accuracy and anti-interference capabilities are improved.

CN118540786APending Publication Date: 2024-08-23CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410607599.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing 5G positioning technology has low positioning accuracy under density requirements and non-line-of-sight scenarios. In particular, the TDOA and RTT algorithms require at least three base stations, and have a greater impact on signal quality, resulting in lower positioning accuracy for terminals by base stations.

Method used

By determining at least three non-collinear target positioning points, combined with the coordinate values ​​of the base station in the three-dimensional space and the distance between the target positioning points, the three-dimensional coordinate values ​​of the initial positioning point and the terminal are calculated, and only one base station is needed. Positioning, improve anti-interference ability and positioning accuracy.

Benefits of technology

It achieves high-precision positioning under low base station deployment density, is suitable for signal loss and obstruction situations, and improves terminal positioning accuracy and anti-interference capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540786A
    Figure CN118540786A
Patent Text Reader

Abstract

The invention relates to a positioning method, system and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: determining an initial positioning point and a target positioning point corresponding to a terminal in a ranging coordinate system; at least three non-collinear target positioning points exist in each target positioning point; determining the three-dimensional coordinate value of the initial positioning point according to the relative coordinate value of each target positioning point relative to the initial positioning point in the ranging coordinate system, the three-dimensional coordinate value of the base station in the real three-dimensional space and the target distance between the base station and each target positioning point; and determining the three-dimensional coordinate value of the terminal according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point. By adopting the method, the requirement of positioning on base station deployment can be reduced, and meanwhile, the positioning precision under the scenes of signal loss and base station shielding is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal positioning, and in particular to a positioning method, system, device, computer equipment, storage medium and computer program product. Background Art

[0002] Positioning technology is currently widely used in various intelligent business scenarios, such as the metaverse, intelligent driving, etc. 5GNR (New Radio) positioning is a positioning technology based on the 5G cellular communication network. The cellular network provides wireless communication functions for terminals and can provide positioning services to meet the communication and positioning needs in different application scenarios.

[0003] Existing 5G positioning technologies based on algorithms such as TDOA (Time Difference of Arrival) and RTT (Round-Trip Time) require at least three base stations to calculate the location of the target. The current 5G indoor deployment of the existing network usually cannot meet the density requirements of positioning. In addition, the positioning effect of three base stations is greatly affected by the signal quality, and the performance is poor in NLOS (Non Line of Sight) scenarios, with signal loss and occlusion. These factors all result in low positioning accuracy of the base station to the terminal. Summary of the invention

[0004] Based on this, it is necessary to provide a positioning method, system, device, computer equipment, storage medium and computer program product to address the above technical problems.

[0005] In a first aspect, the present application provides a positioning method. The method comprises:

[0006] Determine the initial positioning point and the target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear target positioning points among the target positioning points;

[0007] Determine the three-dimensional coordinate value of the initial positioning point according to the relative coordinate value of each target positioning point in the ranging coordinate system relative to the initial positioning point, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point;

[0008] The three-dimensional coordinate value of the terminal is determined according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

[0009] In one embodiment, determining a target positioning point corresponding to a terminal in a ranging coordinate system includes:

[0010] During the movement of the terminal, continuously transmitting a ranging signal to the base station;

[0011] taking the position of the terminal in the ranging coordinate system when transmitting each ranging signal as a positioning point;

[0012] A target positioning point is determined from the positioning points.

[0013] In one embodiment, determining the target positioning point from each of the positioning points includes:

[0014] Determine N initial positioning points from the positioning points, where N is greater than or equal to 2;

[0015] In the case where there are at least three non-collinear initial positioning points, each of the initial positioning points is used as a target positioning point; or,

[0016] In the case that there are not at least three non-collinear initial positioning points, each positioning point except the initial positioning point is traversed, and for the first current positioning point currently traversed, if the first current positioning point is not collinear with any two of the initial positioning points, the first current positioning point and each of the initial positioning points are used as the target positioning points, and the traversal process is terminated; or if the first current positioning point is collinear with each of the initial positioning points, the traversal continues to the next positioning point.

[0017] In one embodiment, the determining N initial positioning points from the positioning points includes:

[0018] Determine a first initial positioning point from each of the positioning points, and use the first initial positioning point as a reference positioning point;

[0019] Traversing each of the positioning points except the first initial positioning point, for a second current positioning point currently traversed, when the distance between the second current positioning point and the reference positioning point is greater than or equal to a distance threshold, taking the second current positioning point as the initial positioning point, and updating the reference positioning point to the second current positioning point, until the number of the initial positioning points reaches N.

[0020] In one embodiment, the method further comprises:

[0021] During the movement of the terminal, continuously detecting the moving distance and moving direction of the terminal relative to the position of the terminal at a previous moment;

[0022] The relative coordinate value of the position of the terminal relative to the initial positioning point is determined according to the moving distance and the moving direction.

[0023] In one embodiment, the method further comprises:

[0024] For any of the target positioning points, obtaining a response signal transmitted by the base station in response to a ranging signal corresponding to the target positioning point, and obtaining a target distance between the target positioning point and the base station from the response signal;

[0025] The target distance is determined by the base station according to the transmission time of the ranging signal corresponding to the target positioning point and the reception time when the base station receives the ranging signal.

[0026] In a second aspect, the present application also provides a positioning system. The system includes a terminal and a base station, wherein:

[0027] The terminal is configured to continuously transmit a ranging signal to the base station during movement of the terminal;

[0028] The base station is configured to send a response signal to the terminal in response to the ranging signal;

[0029] The terminal is further configured to determine a target distance between the terminal and the base station according to the ranging signal and the response signal;

[0030] The terminal is also used to determine the initial positioning point and the target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear target positioning points among the target positioning points; the three-dimensional coordinate value of the initial positioning point is determined according to the relative coordinate value of each target positioning point in the ranging coordinate system relative to the initial positioning point, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point; the three-dimensional coordinate value of the terminal is determined according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

[0031] In a third aspect, the present application also provides a positioning device. The device comprises:

[0032] The first determination module is used to determine the initial positioning point and the target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear target positioning points among the target positioning points;

[0033] A second determination module is used to determine the three-dimensional coordinate value of the initial positioning point according to the relative coordinate value of each target positioning point relative to the initial positioning point in the ranging coordinate system, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point;

[0034] The third determination module is used to determine the three-dimensional coordinate value of the terminal according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

[0035] In one embodiment, the first determining module is further used to:

[0036] During the movement of the terminal, continuously transmitting a ranging signal to the base station;

[0037] taking the position of the terminal in the ranging coordinate system when transmitting each ranging signal as a positioning point;

[0038] A target positioning point is determined from the positioning points.

[0039] In one embodiment, the first determining module is further used to:

[0040] Determine N initial positioning points from the positioning points, where N is greater than or equal to 2;

[0041] In the case where there are at least three non-collinear initial positioning points, each of the initial positioning points is used as a target positioning point; or,

[0042] In the case that there are not at least three non-collinear initial positioning points, each positioning point except the initial positioning point is traversed, and for the first current positioning point currently traversed, if the first current positioning point is not collinear with any two of the initial positioning points, the first current positioning point and each of the initial positioning points are used as the target positioning points, and the traversal process is terminated; or if the first current positioning point is collinear with each of the initial positioning points, the traversal continues to the next positioning point.

[0043] In one embodiment, the first determining module is further used to:

[0044] Determine a first initial positioning point from each of the positioning points, and use the first initial positioning point as a reference positioning point;

[0045] Traversing each of the positioning points except the first initial positioning point, for a second current positioning point currently traversed, when the distance between the second current positioning point and the reference positioning point is greater than or equal to a distance threshold, taking the second current positioning point as the initial positioning point, and updating the reference positioning point to the second current positioning point, until the number of the initial positioning points reaches N.

[0046] In one embodiment, the device further comprises:

[0047] a fourth determination module, configured to continuously detect, during the movement of the terminal, a moving distance and a moving direction of the terminal relative to a position of the terminal at a previous moment;

[0048] The fifth determination module is used to determine the relative coordinate value of the position of the terminal relative to the initial positioning point according to the moving distance and the moving direction.

[0049] In one embodiment, the device further comprises:

[0050] an acquisition module, configured to acquire, for any of the target positioning points, a response signal transmitted by the base station in response to a ranging signal corresponding to the target positioning point, and acquire a target distance between the target positioning point and the base station from the response signal;

[0051] The target distance is determined by the base station according to the transmission time of the ranging signal corresponding to the target positioning point and the reception time when the base station receives the ranging signal.

[0052] Fourthly, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, any one of the above methods is implemented.

[0053] In a fifth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, any of the above methods is implemented.

[0054] In a sixth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, any of the above methods is implemented.

[0055] The above positioning method, system, device, computer equipment, storage medium and computer program product collect at least 3 non-collinear target positioning points, determine the 3D coordinate value of the initial positioning point according to the distance between each target positioning point and the base station, the relative coordinate value of each target positioning point relative to the initial positioning point, and the 3D coordinate value of the base station in the real 3D space, and then deduce the 3D coordinate value of the terminal. Only one base station is used to locate the terminal, and the deployment density of the base station is low. At the same time, since the embodiment of the present application uses at least 3 non-collinear target positioning points to locate the terminal, the anti-interference ability is stronger, and it can be applied to situations where signal loss and base station obstruction exist, thereby improving the positioning accuracy of the terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 is a schematic flow chart of a positioning method in an embodiment;

[0057] Figure 2 A schematic diagram of a process for determining relative coordinate values ​​in one embodiment;

[0058] Figure 3 is a flow chart of step 102 in one embodiment;

[0059] Figure 4 is a flow chart of step 306 in one embodiment;

[0060] Figure 5 is a schematic diagram of a positioning method in an embodiment;

[0061] Figure 6 is a structural block diagram of a positioning device in an embodiment;

[0062] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] In one embodiment, Figure 1 As shown, a positioning method is provided. This embodiment takes the method applied to a terminal as an example for illustration, and includes the following steps:

[0065] Step 102, determining the initial positioning point and target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear positioning points among each target positioning point.

[0066] In the embodiment of the present application, the three-dimensional coordinate value of the terminal in the real three-dimensional space is unknown, but the relative coordinate value relative to the initial positioning point in the ranging coordinate system is known. The ranging coordinate system can be a three-dimensional coordinate system with an arbitrary point as the origin, and the initial positioning point is a point that the terminal has passed in the ranging coordinate system. For example, the ranging coordinate system can be constructed with the location of the terminal when the terminal enables the positioning service as the origin, and the origin is used as the initial positioning point. Alternatively, the ranging coordinate system can be constructed with an arbitrary point as the origin, and a certain position with a strong signal where the terminal is located after the positioning service is enabled is used as the initial positioning point.

[0067] The terminal can then detect the position of the terminal in the ranging coordinate system, so as to obtain the relative coordinate value of the terminal in the ranging coordinate system relative to the initial positioning point at any time. The embodiment of the present application does not specifically limit the method of detecting the position of the terminal in the ranging coordinate system. Exemplarily, the gyroscope data and user step data in the terminal can be obtained, and the moving direction of the terminal can be detected by the gyroscope in the terminal. The moving distance of the terminal is detected by the number of steps taken by the user holding the terminal, and the position of the terminal relative to the origin of the ranging coordinate system is calculated based on the moving direction and moving distance; or any existing indoor positioning algorithm, such as PDR (Pedestrian Dead Reckoning) algorithm, can be used to determine the position of the terminal in the ranging coordinate system.

[0068] like Figure 2 As shown, the steps of determining the relative coordinate value using the PDR algorithm include:

[0069] Step 202: During the movement of the terminal, continuously detect the moving distance and moving direction of the terminal relative to the position of the terminal at the previous moment.

[0070] Step 204: Determine the relative coordinate value of the terminal's location relative to the initial positioning point based on the moving distance and the moving direction.

[0071] In the embodiment of the present application, during the movement of the terminal, the moving distance and moving direction of the terminal relative to the position of the terminal at the previous moment are measured, and the relative coordinate value of the terminal relative to the initial positioning point is calculated based on the moving distance, moving direction and trigonometric function principle. For example, when the coordinate value of the initial positioning point in the ranging coordinate system is (x0, y0, z0), the relative coordinate value of the terminal at the previous moment is (x0+x1, y0+y1, z0+z1) (x1, y1, z1 are all known values), the distance of the current position of the terminal relative to the previous moment is L1, and the angle relative to the xy plane is α, and the angle relative to the yz plane is β, the relative coordinate value of the terminal at the current moment is (x0+x1+L1cosβ, y0+y1+L1sinβ, z0+z1+L1sinα).

[0072] The target positioning point is a point that the terminal has reached during the movement process and at which the distance between the terminal and the base station is measured. The terminal may have measured the distance between the terminal and the base station at multiple locations, which can be called positioning points. The target positioning point can be selected from the positioning points. In one embodiment, Figure 3 As shown, determining the target positioning point corresponding to the terminal in the ranging coordinate system includes:

[0073] Step 302, during the movement of the terminal, continuously transmit a ranging signal to the base station;

[0074] Step 304, taking the position of the terminal in the ranging coordinate system when each ranging signal is transmitted as a positioning point;

[0075] Step 306: determine the target positioning point from the positioning points.

[0076] In the embodiment of the present application, the terminal continuously transmits ranging signals to the base station during the movement process, and the position where the terminal is located each time when the ranging signal is transmitted can be used as a positioning point.

[0077] After determining the positioning point, the target distance between the terminal at the positioning point and the base station can be obtained. The target distance can be calculated using any existing wireless positioning method. In one embodiment, the RTT technology is used to obtain the target distance between the positioning point and the base station. For any positioning point, the terminal obtains the response signal transmitted by the base station in response to the ranging signal corresponding to the positioning point, and determines the reception time of the response signal; according to the time difference between the reception time and the transmission time of the ranging signal, the target distance between the positioning point and the base station is determined. In the embodiment of the present application, after the terminal sends a ranging signal to the base station, the base station sends a response signal to the terminal. The terminal calculates the total distance traveled by the ranging signal and the response signal during the period from the sending time to the receiving time based on the sending time of the ranging signal and the receiving time of the response signal received by the terminal, as well as the propagation rate of electromagnetic waves in the air, and divides the distance by 2 to obtain the target distance between the positioning point and the base station.

[0078] In another embodiment, the TOA (Time of Arrival) technology is used to obtain the target distance between the positioning point and the base station. For any positioning point, the terminal obtains the response signal transmitted by the base station in response to the ranging signal corresponding to the positioning point, and obtains the target distance between the positioning point and the base station from the response signal; wherein the target distance is determined by the base station according to the transmission time of the ranging signal corresponding to the positioning point and the reception time of the ranging signal received by the base station. In the embodiment of the present application, after the terminal sends the ranging signal to the base station, the base station calculates the target distance and carries the target distance in the response signal and sends it to the terminal. The ranging signal carries the transmission time of the ranging signal. The base station can calculate the total distance traveled by the ranging signal from the transmission time to the reception time according to the transmission time of the ranging signal and the reception time of the ranging signal received by the base station, as well as the propagation rate of electromagnetic waves in the air, and use the distance as the target distance between the positioning point and the base station.

[0079] After determining each positioning point, the target positioning point can be selected from the positioning points. Since only the three-dimensional coordinate value of the base station in the real three-dimensional space is known, in order to obtain the three-dimensional coordinate value of the terminal, the relative coordinate value of each target positioning point can be converted to the real three-dimensional space, and the three-dimensional coordinate value of the initial positioning point in the real three-dimensional space can be calculated according to the three-dimensional coordinate value of the base station in the real three-dimensional space, the distance between each target positioning point and the base station, and the relative coordinate value of each target positioning point in the real space; or the relative coordinate value of the base station in the ranging coordinate system can be calculated according to the three-dimensional coordinate value of the base station in the real three-dimensional space, the distance between each target positioning point and the base station, and the ranging coordinate value of each target positioning point, and the three-dimensional coordinate value of the initial positioning point in the real three-dimensional space is calculated using the three-dimensional coordinate value of the base station and the relative coordinate value in the ranging coordinate system. Then, the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal are used to determine the three-dimensional coordinate value of the terminal. Regardless of which method is used, there are three unknowns that need to be solved. Therefore, there must be three non-collinear target positioning points among each target positioning point in order to list three independent equations and solve them to obtain three unknowns.

[0080] The embodiment of the present application does not limit the number of specifically selected target positioning points, which can be any value greater than or equal to 3. The target positioning point can be selected from the positioning points according to certain rules. For example, the positioning point where the terminal has a better signal at the location where the positioning point is located is used as the target positioning point to avoid inaccurate target distance obtained at the target positioning point due to poor signal. Positioning points whose distances are greater than a distance threshold can also be used as target positioning points to improve positioning accuracy.

[0081] Step 104, determining the three-dimensional coordinate value of the initial positioning point according to the relative coordinate value of each target positioning point in the ranging coordinate system relative to the initial positioning point, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point.

[0082] In an embodiment of the present application, an equation can be listed through the relative coordinate values ​​of each target positioning point, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point, and the three-dimensional coordinate value of the initial positioning point can be calculated by solving the equation, so as to obtain the current coordinate value of the terminal in the three-dimensional space.

[0083] In one embodiment, the three-dimensional coordinate value of the initial positioning point is calculated by converting the relative coordinate value of each target positioning point into the real three-dimensional space. In the embodiment of the present application, if a three-dimensional coordinate system in which the x, y, and z axes are parallel to the x, y, and z axes in the real three-dimensional space has been constructed according to sensors such as a compass and a level in the terminal when constructing the distance measurement coordinate system, there is no need to convert the relative coordinate value, because in this case, the distance between the target positioning point and the initial positioning point on the x-axis, y-axis, and z-axis of the distance measurement coordinate system represented by the relative coordinate value of the target positioning point is the distance between the target positioning point and the initial positioning point on the x-axis, y-axis, and z-axis of the distance measurement coordinate system, that is, the distance between the target positioning point and the initial positioning point on the x-axis, y-axis, and z-axis of the real three-dimensional space.

[0084] If there is a plane in the ranging coordinate system that is not parallel to the plane corresponding to the real three-dimensional space, it is necessary to use sensors such as the compass and level in the terminal to determine the xy plane (horizontal plane), xz plane (plane formed by the east-west direction and the gravity direction), and yz plane (plane formed by the north-south direction and the gravity direction) in the real three-dimensional space, and convert the relative coordinate values ​​to the real three-dimensional space based on the angles between each plane in the ranging coordinate system and the corresponding planes in the real three-dimensional space, so that the converted relative coordinate values ​​can represent the relative position relationship between the target positioning point and the initial positioning point in the real three-dimensional space.

[0085] The Euclidean distance between the three-dimensional coordinate value of the base station and the relative coordinate value of the target positioning point is the target distance. Formula (1) can be listed for each target positioning point:

[0086] Formula (I)

[0087] in, , and are the coordinates of the base station on the x, y, and z axes in the real three-dimensional space. , and is the coordinate of the initial positioning point that needs to be solved in the real three-dimensional space, , and is the relative coordinate value of the target positioning point in the real three-dimensional space. , and are all known values.

[0088] By listing the above formula (I) for each target positioning point, at least 3 of the above formulas (I) can be obtained, so , and Solve and obtain the three-dimensional coordinate value of the initial positioning point.

[0089] In another embodiment, the three-dimensional coordinates of the initial positioning point are calculated by solving the relative coordinates of the base station in the ranging coordinate system. In this case, the above formula (1) can also be used to calculate the relative coordinates, except that the coordinates to be solved become , and , , and is the coordinate value of the initial positioning point that needs to be solved in the real three-dimensional space. , and is the relative coordinate value of the target positioning point in the ranging coordinate system. , and Convert to the ranging coordinate system and solve , and about , and The expression of is the relative coordinate value of the base station. According to the three-dimensional coordinate value of the base station, we can solve , and The exact value of , which is the three-dimensional coordinate value of the initial positioning point.

[0090] Step 106, determining the current three-dimensional coordinate value of the terminal according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

[0091] In the embodiment of the present application, the three-dimensional coordinate value of the terminal can be determined according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point. Referring to the description of the above embodiment, if the x, y, and z axes of the ranging coordinate system are parallel to the x, y, and z axes in the real three-dimensional space, then , and Substitute into the relative coordinate value to get the relative coordinate value of the terminal in the real three-dimensional space. If one axis is not parallel, convert the relative coordinate value of the terminal to the real three-dimensional space, and then convert the solved , and Substitute it into the relative coordinate value after terminal conversion to obtain the relative coordinate value of the terminal in the real three-dimensional space.

[0092] The positioning method provided in the embodiment of the present application collects at least three non-collinear target positioning points, determines the three-dimensional coordinate value of the initial positioning point according to the distance between each target positioning point and the base station, the relative coordinate value of each target positioning point relative to the initial positioning point, and the three-dimensional coordinate value of the base station in the real three-dimensional space, and then calculates the three-dimensional coordinate value of the terminal. Only one base station is used to locate the terminal, and the deployment density of the base station is low. At the same time, since the embodiment of the present application uses at least three non-collinear target positioning points to locate the terminal, the anti-interference ability is stronger, and it can be applied to situations where there is signal loss and base station obstruction, thereby improving the positioning accuracy of the terminal.

[0093] In one embodiment, Figure 4 As shown, in step 306, determining the target positioning point from each positioning point includes:

[0094] Step 402, determining N initial positioning points from the positioning points, where N is greater than or equal to 2;

[0095] Step 404: when there are at least three non-collinear initial positioning points, each initial positioning point is used as a target positioning point; or,

[0096] Step 406, when there are not at least three non-collinear initial positioning points, traverse each positioning point except the initial positioning point, and for the first current positioning point currently traversed, when the first current positioning point and any two initial positioning points are not collinear, use the first current positioning point and each initial positioning point as the target positioning point, and end the traversal process; or when the first current positioning point and each initial positioning point are collinear, continue to traverse the next positioning point.

[0097] In the embodiment of the present application, a certain rule can be used to determine N initial positioning points. If there are at least 3 non-collinear initial positioning points among these initial positioning points, then each initial positioning point has met the requirement of having 3 non-collinear target positioning points, and each initial positioning point can be used as a target positioning point. If there are not at least 3 non-collinear initial positioning points among these initial positioning points, then each initial positioning point does not meet the requirement of having 3 non-collinear target positioning points, and it is necessary to determine another positioning point that is not collinear with at least 2 positioning points, and use this positioning point and each initial positioning point as the target positioning point.

[0098] N can be a preset value. For example, N can be set to 2 so that the number of target positioning points is always 3, so that the number of equations listed according to the target positioning points is the least, and the terminal solves the equations faster, which can improve the positioning speed of the terminal. Alternatively, N can also be set to a larger value to reduce the interference caused by inaccurate target distance measurement corresponding to certain target positioning points on positioning, thereby improving the positioning accuracy of the terminal.

[0099] The embodiment of the present application does not specifically limit the rules for determining the initial positioning point. In one embodiment, the positioning points are sorted according to the strength of the corresponding base station signal, and the positioning points arranged in the first N positions are used as the initial positioning points. The initial positioning points are the N positioning points with the strongest corresponding base station signals, which can avoid delays in the terminal when sending ranging signals or receiving response signals, improve the accuracy of determining the target distance, and thus improve the positioning accuracy of the terminal.

[0100] In another embodiment, the positioning points are sorted from small to large according to the relative distance between the positioning point and the initial positioning point, and the positioning points arranged in the first N positions are used as the initial positioning points. Since the indoor positioning algorithm usually has cumulative errors, the positioning point closer to the initial positioning point is selected as the target positioning point, which can minimize the impact of the cumulative error on the accuracy of the relative coordinate value, improve the accuracy of the relative coordinate value, and thus improve the positioning accuracy of the terminal.

[0101] In another embodiment, a first initial positioning point is determined from each positioning point, and the first initial positioning point is used as a reference positioning point; each positioning point except the first initial positioning point is traversed, and for the second current positioning point currently traversed, when the distance between the second current positioning point and the reference positioning point is greater than or equal to the distance threshold, the second current positioning point is used as the initial positioning point, and the reference positioning point is updated to the second current positioning point, until the number of initial positioning points reaches N. In the embodiment of the present application, each positioning point can be traversed, and when the distance between the current positioning point and the last selected initial positioning point (reference positioning point) is greater than or equal to the distance threshold, the current positioning point is used as the initial positioning point, until the number of initial positioning points reaches N, which is equivalent to making the distance between each initial positioning point greater than or equal to the distance threshold.

[0102] This is done first because the locations with poor signal strength are usually concentrated, so that the distance between each initial positioning point is greater than or equal to the distance threshold, which can reduce the probability of the target distance measurement accuracy of each target positioning point being low. At the same time, when the moving distance and moving direction are calculated according to the indoor positioning algorithm, error cancellation may occur as the terminal moves in more directions. Therefore, the distance between each initial positioning point is greater than or equal to the distance threshold, and the probability of error cancellation will be greater than when the distance between the initial positioning points is small, reducing the impact of the error caused by the moving distance and moving direction on the positioning accuracy.

[0103] According to the relative coordinate values ​​of each initial positioning point, it can be determined whether each initial positioning point is collinear. If there are at least 3 non-collinear initial positioning points, each initial positioning point is used as the target positioning point. Or if there are not at least 3 non-collinear initial positioning points, one more positioning point is selected from the remaining positioning points. The remaining positioning points can be traversed, and when the currently traversed positioning point is not collinear with at least 2 positioning points, the positioning point and each initial positioning point are used as the target positioning point, and the traversal process ends. Or when the currently traversed positioning point is collinear with each initial positioning point, continue to traverse the next positioning point.

[0104] When all positioning points are collinear, that is, when there is no way to select three non-collinear target positioning points, the terminal can find another base station in the vicinity, and locate the terminal according to the positions of the two base stations and the distances between the two target positioning points and the two base stations. Alternatively, the terminal can also find two other base stations in the vicinity and locate the terminal using the existing three-base station positioning method, which is not specifically limited in the embodiments of the present application.

[0105] In one embodiment, a positioning system is provided, including a terminal and a base station, wherein: the terminal is used to continuously transmit a ranging signal to the base station during the movement of the terminal; the base station is used to send a response signal to the terminal in response to the ranging signal; the terminal is also used to determine the target distance between the terminal and the base station according to the ranging signal and the response signal; the terminal is also used to determine the initial positioning point and the target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear target positioning points among the target positioning points; the three-dimensional coordinate value of the initial positioning point is determined according to the relative coordinate value of each target positioning point in the ranging coordinate system relative to the initial positioning point, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point; the three-dimensional coordinate value of the terminal is determined according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

[0106] In the embodiment of the present application, the terminal transmits a ranging signal to the base station, and the base station transmits a response signal to the terminal in response to the ranging signal, and the terminal obtains the target distance between the terminal and the base station according to the ranging signal and the response signal. The embodiment of the present application does not limit the method of obtaining the target distance according to the specific content carried in the ranging signal, the specific content carried in the response signal, and the ranging signal and the response signal. The specific example of calculating the target distance can refer to the description of the aforementioned embodiment, and the embodiment of the present application will not be repeated here.

[0107] After the terminal obtains the target distance between each point on the moving trajectory and the base station, it determines the initial positioning point and at least three non-collinear target positioning points from the moving trajectory, and determines the current three-dimensional coordinate value of the terminal based on the relative coordinate value of the target positioning point relative to the initial positioning point, the target distance of the target positioning point and the three-dimensional coordinate value of the base station. The above process can be specifically referred to the description of the aforementioned embodiment, and the embodiment of this application will not be repeated.

[0108] The positioning system provided in the embodiment of the present application collects at least three non-collinear target positioning points, determines the three-dimensional coordinate value of the initial positioning point according to the distance between each target positioning point and the base station, the relative coordinate value of each target positioning point relative to the initial positioning point, and the three-dimensional coordinate value of the base station in the real three-dimensional space, and then calculates the three-dimensional coordinate value of the terminal. Only one base station is used to locate the terminal, and the deployment density of the base station is low. At the same time, since the embodiment of the present application uses at least three non-collinear target positioning points to locate the terminal, the anti-interference ability is stronger, and it can be applied to situations where there is signal loss and base station obstruction, thereby improving the positioning accuracy of the terminal.

[0109] In one embodiment, a positioning method is provided, such as Figure 5 As shown, the embodiment of the present application selects three target positioning points P1, P2, P3 and one initial positioning point P0 (not shown in the figure), the three target positioning points are not collinear, and the PDR algorithm is used to obtain relative coordinate values ​​in the embodiment of the present application, and the x-axis, y-axis and z-axis of the ranging coordinate system are parallel to the x-axis, y-axis and z-axis of the real three-dimensional space.

[0110] In the embodiment of the present application, the three-dimensional coordinate value of the initial positioning point to be solved is P 0 {x0, y0, z0}, obtain the PDR information of N positioning points on the PDR trajectory {P s PDR ={ x s ,y s ,z s , s=1,2,...,N}, and the timestamp {ts s PDR , s=1,2,...,N}. According to the timestamp, the distance R between each positioning point and the base station is obtained. s Base station,s=1,2,...,N.

[0111] First, the first two positioning points P1 and P2 in the positioning points are used as the two target positioning points, and the relative coordinate values ​​P of the two target positioning points are determined. 1 , P 2 , and obtain the target distance R corresponding to the target positioning point 1 , R 2 :P1 =P 1 PDR +P 0 , R 1 =R 1 Base station; P 2 =P 2 PDR +P 0 , R 2 =R 2 Base station.

[0112] Traverse the remaining positioning points. If the traversed positioning point is collinear with P1 and P2, continue traversing. If the traversed positioning point is not collinear with P1 and P2, then take the traversed positioning point as the third target positioning point P3, and the relative coordinate value of P3 is P 3 =P 3 PDR +P 0 , the target distance is R 3 =R 3 Base station. Then according to P1, P2, P3, and the three-dimensional coordinate value P of the base station 基站 , solve formula (II) to get P 0 Values:

[0113] Formula (II)

[0114] Then, according to the current location of the terminal (PN) and the PDR information of the current location of the terminal (P N PDR ), get the three-dimensional coordinate value of the terminal: P N =P N PDR +P 0 .

[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0116] Based on the same inventive concept, the embodiment of the present application also provides a positioning device for implementing the positioning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more positioning device embodiments provided below can refer to the limitations of the positioning method above, and will not be repeated here.

[0117] In one embodiment, Figure 6 As shown, a positioning device 600 is provided, including: a first determination module 602, a second determination module 604, and a third determination module 606, wherein:

[0118] The first determination module 602 is used to determine the initial positioning point and the target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear target positioning points among the target positioning points;

[0119] A second determination module 604 is used to determine the three-dimensional coordinate value of the initial positioning point according to the relative coordinate value of each target positioning point relative to the initial positioning point in the ranging coordinate system, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point;

[0120] The third determining module 606 is configured to determine the three-dimensional coordinate value of the terminal according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

[0121] The positioning device provided in the embodiment of the present application collects at least three non-collinear target positioning points, determines the three-dimensional coordinate value of the initial positioning point according to the distance between each target positioning point and the base station, the relative coordinate value of each target positioning point relative to the initial positioning point, and the three-dimensional coordinate value of the base station in the real three-dimensional space, and then calculates the three-dimensional coordinate value of the terminal. Only one base station is used to locate the terminal, and the deployment density of the base station is low. At the same time, since the embodiment of the present application uses at least three non-collinear target positioning points to locate the terminal, the anti-interference ability is stronger, and it can be applied to situations where there is signal loss and base station obstruction, thereby improving the positioning accuracy of the terminal.

[0122] In one embodiment, the first determining module 602 is further configured to:

[0123] During the movement of the terminal, continuously transmitting a ranging signal to the base station;

[0124] taking the position of the terminal in the ranging coordinate system when transmitting each ranging signal as a positioning point;

[0125] A target positioning point is determined from the positioning points.

[0126] In one embodiment, the first determining module 602 is further configured to:

[0127] Determine N initial positioning points from the positioning points, where N is greater than or equal to 2;

[0128] In the case where there are at least three non-collinear initial positioning points, each of the initial positioning points is used as a target positioning point; or,

[0129] In the case that there are not at least three non-collinear initial positioning points, each positioning point except the initial positioning point is traversed, and for the first current positioning point currently traversed, if the first current positioning point is not collinear with any two of the initial positioning points, the first current positioning point and each of the initial positioning points are used as the target positioning points, and the traversal process is terminated; or if the first current positioning point is collinear with each of the initial positioning points, the traversal continues to the next positioning point.

[0130] In one embodiment, the first determining module 602 is further configured to:

[0131] Determine a first initial positioning point from each of the positioning points, and use the first initial positioning point as a reference positioning point;

[0132] Traversing each of the positioning points except the first initial positioning point, for a second current positioning point currently traversed, when the distance between the second current positioning point and the reference positioning point is greater than or equal to a distance threshold, taking the second current positioning point as the initial positioning point, and updating the reference positioning point to the second current positioning point, until the number of the initial positioning points reaches N.

[0133] In one embodiment, the device further comprises:

[0134] a fourth determination module, configured to continuously detect, during the movement of the terminal, a moving distance and a moving direction of the terminal relative to a position of the terminal at a previous moment;

[0135] The fifth determination module is used to determine the relative coordinate value of the position of the terminal relative to the initial positioning point according to the moving distance and the moving direction.

[0136] In one embodiment, the device further comprises:

[0137] an acquisition module, configured to acquire, for any of the target positioning points, a response signal transmitted by the base station in response to a ranging signal corresponding to the target positioning point, and acquire a target distance between the target positioning point and the base station from the response signal;

[0138] The target distance is determined by the base station according to the transmission time of the ranging signal corresponding to the target positioning point and the reception time when the base station receives the ranging signal.

[0139] Each module in the above device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.

[0140] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a positioning method is implemented.

[0141] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0143] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0144] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0145] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0146] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0147] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0148] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A positioning method, characterized in that: The method comprises: Determine the initial positioning point and the target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear target positioning points among the target positioning points; Determine the three-dimensional coordinate value of the initial positioning point according to the relative coordinate value of each target positioning point in the ranging coordinate system relative to the initial positioning point, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point; The three-dimensional coordinate value of the terminal is determined according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

2. The method according to claim 1, characterized in that Determine the target positioning point corresponding to the terminal in the ranging coordinate system, including: During the movement of the terminal, continuously transmitting a ranging signal to the base station; taking the position of the terminal in the ranging coordinate system when transmitting each ranging signal as a positioning point; A target positioning point is determined from the positioning points.

3. The method according to claim 2, characterized in that The step of determining a target positioning point from each of the positioning points comprises: Determine N initial positioning points from the positioning points, where N is greater than or equal to 2; In the case where there are at least three non-collinear initial positioning points, each of the initial positioning points is used as a target positioning point; or, In the case that there are not at least three non-collinear initial positioning points, each positioning point except the initial positioning point is traversed, and for the first current positioning point currently traversed, if the first current positioning point is not collinear with any two of the initial positioning points, the first current positioning point and each of the initial positioning points are used as the target positioning points, and the traversal process is terminated; or if the first current positioning point is collinear with each of the initial positioning points, the traversal continues to the next positioning point.

4. The method according to claim 3, characterized in that The step of determining N initial positioning points from the positioning points comprises: Determine a first initial positioning point from each of the positioning points, and use the first initial positioning point as a reference positioning point; Traversing each of the positioning points except the first initial positioning point, for a second current positioning point currently traversed, when the distance between the second current positioning point and the reference positioning point is greater than or equal to a distance threshold, taking the second current positioning point as the initial positioning point, and updating the reference positioning point to the second current positioning point, until the number of the initial positioning points reaches N.

5. The method according to claim 1, characterized in that The method further comprises: During the movement of the terminal, continuously detecting the moving distance and moving direction of the terminal relative to the position of the terminal at a previous moment; The relative coordinate value of the position of the terminal relative to the initial positioning point is determined according to the moving distance and the moving direction.

6. The method according to claim 2, characterized in that The method further comprises: For any of the target positioning points, obtaining a response signal transmitted by the base station in response to a ranging signal corresponding to the target positioning point, and obtaining a target distance between the target positioning point and the base station from the response signal; The target distance is determined by the base station according to the transmission time of the ranging signal corresponding to the target positioning point and the reception time when the base station receives the ranging signal.

7. A positioning system, characterized in that: It includes a terminal and a base station, wherein: The terminal is configured to continuously transmit a ranging signal to the base station during movement of the terminal; The base station is configured to send a response signal to the terminal in response to the ranging signal; The terminal is further configured to determine a target distance between the terminal and the base station according to the ranging signal and the response signal; The terminal is also used to determine the initial positioning point and the target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear target positioning points among the target positioning points; the three-dimensional coordinate value of the initial positioning point is determined according to the relative coordinate value of each target positioning point in the ranging coordinate system relative to the initial positioning point, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point; the three-dimensional coordinate value of the terminal is determined according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

8. A positioning device, characterized in that: The device comprises: The first determination module is used to determine the initial positioning point and the target positioning point corresponding to the terminal in the ranging coordinate system; there are at least three non-collinear target positioning points among the target positioning points; A second determination module is used to determine the three-dimensional coordinate value of the initial positioning point according to the relative coordinate value of each target positioning point relative to the initial positioning point in the ranging coordinate system, the three-dimensional coordinate value of the base station in the real three-dimensional space, and the target distance between the base station and each target positioning point; The third determination module is used to determine the three-dimensional coordinate value of the terminal according to the three-dimensional coordinate value of the initial positioning point and the relative coordinate value of the terminal relative to the initial positioning point.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.