Terminal positioning method, device and computing equipment
By obtaining the terminal's XDR data and historical movement trajectories, combined with wireless network and switching information, and using the preset state grid and Thiessen polygon algorithm, the real-time and accuracy issues of terminal positioning are solved, and high-precision terminal positioning is achieved.
Patent Information
- Application Number
- CN202010560667.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-06-18
AI Technical Summary
The existing technology cannot realize real-time positioning of terminals, and the accuracy of positioning through wireless networks is poor, which cannot meet the needs of current and future business development.
By obtaining the current XDR data and historical movement trajectory of the terminal, combined with the switching information of the wireless network and the terminal, using the preset state grid and Thiessen polygon algorithm to divide the geographical location area, determine the current status and grid of the terminal, thereby achieving Real-time positioning.
Without using a third-party positioning app, real-time positioning of the terminal is achieved, and the positioning accuracy is higher than traditional wireless network positioning, meeting the needs of business development.
Smart Images

Figure CN113820656B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a terminal positioning method, device and computing equipment. Background Art
[0002] Nowadays, the terminal is generally located through Internet app software and with the help of a positioning system. For example, the terminal's location information is directly collected through the Global Positioning System (GPS) or the Beidou system, or the terminal's wireless signal strength information is collected through wireless networks such as mobile networks, Bluetooth, and WIFI devices. The terminal's location is calculated based on the relationship between the strength of the wireless signal and the distance.
[0003] However, the positioning method using the GPS system or the Beidou system cannot achieve real-time positioning, and the positioning method using the wireless network terminal has poor positioning accuracy. Summary of the invention
[0004] In view of the above problems, the embodiments of the present invention provide a terminal positioning method, apparatus and computing device, which can perform real-time positioning and ensure positioning accuracy.
[0005] According to a first aspect of an embodiment of the present invention, a terminal positioning method is provided, comprising: acquiring current XDR data of a terminal, the current XDR data including current switching information of the terminal; determining a current state of the terminal according to the current switching information; determining a current grid of the terminal according to the current state of the terminal, the current switching information and a preset state grid, wherein the preset state grid represents a current geographical location area of the terminal; acquiring a historical motion trajectory of the terminal; and determining the current position of the terminal according to the current grid and the historical motion trajectory.
[0006] In an optional manner, determining the current state of the terminal according to the current switching information specifically includes: determining whether the terminal switches within a preset time according to the current switching information; if it is determined that the terminal does not switch within the preset time, determining that the current state of the terminal is a holding state; if it is determined that the terminal switches within the preset time, determining that the current state of the terminal is a switching state.
[0007] In an optional manner, the preset status grid includes a preset hold status grid and a preset switch status grid; the current grid of the terminal is determined according to the current status of the terminal, the current switch information and the preset status grid, specifically including: if it is determined that the current status of the terminal is a hold status, the current grid of the terminal is determined in the preset hold status grid according to the cell information in the current switch information; if it is determined that the current status of the terminal is a switch status, the current grid of the terminal is determined in the preset switch status grid according to the switch record in the current switch information.
[0008] In an optional manner, before determining the current grid of the terminal, the method further includes: obtaining sample XDR data and sample OTT data of several sample terminals, the sample XDR data including sample switching information, the sample switching information including sample cell information and sample switching records, and the sample OTT data including sample location information; according to the sample cell information and the sample location information matching the sample cell information, dividing the location area where the sample terminal has not switched into the preset holding state grid; if the sample location information matching the sample switching record is obtained, then according to the sample location information matching the sample switching record, dividing the location area where the sample terminal has switched into the preset switching state grid.
[0009] In an optional manner, before determining the current grid of the terminal, the method further includes: if sample location information matching the sample switching record is not obtained, calculating the location of the sample terminal based on the sample cell information; and dividing the location area where the sample terminal switches into the preset switching state grid based on the location of the sample terminal.
[0010] In an optional manner, obtaining the historical movement trajectory of the terminal specifically includes: obtaining historical OTT data of the terminal, the historical OTT data including historical location information of the terminal; and generating the historical movement trajectory of the terminal according to the historical location information.
[0011] In an optional manner, determining the current position of the terminal based on the current grid and the historical motion trajectory specifically includes: determining the center of the current grid; determining the point in the historical motion trajectory that is the shortest distance to the center of the current grid, thereby determining the current position of the terminal.
[0012] According to a second aspect of an embodiment of the present invention, a terminal positioning device is provided, comprising: a data acquisition module, used to acquire current XDR data of the terminal, the current XDR data including current switching information; a grid determination module, used to determine the current state of the terminal according to the current switching information, and to determine the current grid of the terminal according to the current state of the terminal, the current switching information and a preset state grid; a trajectory acquisition module, used to acquire a historical movement trajectory of the terminal; and a positioning module, used to locate the terminal according to the current grid and the historical movement trajectory.
[0013] According to a third aspect of an embodiment of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the above-mentioned terminal positioning method.
[0014] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, and when the executable instruction is executed on a computing device, the computing device executes the above-mentioned terminal positioning method.
[0015] The embodiment of the present invention obtains the current XDR data of the terminal, the current XDR data includes the current switching information of the terminal, determines the current state of the terminal according to the current switching information, determines the current grid of the terminal according to the current state of the terminal, the current switching information and the preset state grid, obtains the historical movement trajectory of the terminal, determines the current position of the terminal according to the current grid and the historical movement trajectory, and can achieve real-time positioning through the combination of wireless network and terminal historical trajectory without using a third-party positioning app, and the positioning accuracy is higher than wireless network positioning, thereby ensuring positioning accuracy.
[0016] Furthermore, the grid boundary is generated by adopting the principle that “the distance from any point to the control points constituting the polygon is less than the distance to the control points of other polygons” in the Thiessen polygon, thereby forming a preset keeping state grid and a preset switching state grid.
[0017] Furthermore, the point with the shortest connection between the central longitude and latitude in the grid and the historical trajectory of the terminal is determined as the location of the terminal, so that the real-time location of the terminal can be accurately calculated.
[0018] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0020] Figure 1 A schematic diagram showing a flow chart of a terminal positioning method provided by an embodiment of the present invention is shown;
[0021] Figure 2 A schematic diagram of the structure of a preset state grid provided by an embodiment of the present invention is shown;
[0022] Figure 3 A schematic diagram showing a flow chart of a terminal positioning method provided by another embodiment of the present invention is shown;
[0023] Figure 4 A schematic diagram of Thiessen polygons provided by an embodiment of the present invention is shown;
[0024] Figure 5 A schematic diagram showing the position relationship between a sample terminal and a base station before and after switching provided by an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of the structure of a preset holding state grid and a preset switching state grid provided in an embodiment of the present invention is shown;
[0026] Figure 7 A schematic diagram showing the structure of a terminal positioning device provided by an embodiment of the present invention is shown;
[0027] Figure 8 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0028] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0029] After analyzing the prior art, the inventors found that GPS positioning and wireless network positioning are currently commonly used. The GPS positioning accuracy is relatively high, but the matching degree with the terminal side data is only 7%, which cannot achieve real-time positioning and cannot meet current and future business development needs (such as network event distribution, precision marketing, smart city construction and other business needs). Wireless network positioning can achieve real-time positioning, but the accuracy is poor and it can only locate a range, which also cannot meet business development needs.
[0030] Based on this, the embodiments of the present invention provide a terminal positioning method, apparatus and computing device, which can realize real-time positioning by combining a wireless network and the terminal's historical trajectory, and ensure positioning accuracy.
[0031] Specifically, the embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0032] It should be understood that the following embodiments provided by the present invention can be combined with each other to form new implementation modes as long as there is no conflict.
[0033] Figure 1 FIG. 1 is a flow chart of a terminal positioning method provided by an embodiment of the present invention. The method can be applied to a computing device. Figure 1 As shown, the method includes:
[0034] Step 110: Acquire current XDR data of the terminal, where the current XDR data includes current switching information of the terminal.
[0035] Among them, in mobile communications, the S1 interface is the communication interface between the evolved NodeB (eNodeB) base station and the evolved packet core (EPC) in the Long Term Evolution (LTE). The S1 interface divides the LTE system into a radio access network and a core network. The S1 interface includes a user plane interface (S1-U) and a control plane interface (S1-MME). In the field of core network monitoring and maintenance, when a Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) datagram passes through a deep packet inspection (DPI) system, the DPI system analyzes the application layer information in the seven-layer protocol of the Open System Interconnection (OSI) by reading the content of the Internet Protocol (IP) packet payload, and generates records of the analyzed information, which is called External Data Representation (XDR).
[0036] Acquiring the current XDR data of the terminal may specifically include: collecting the current XDR data of the terminal through the S1-MME interface. The current XDR data of the terminal refers to the XDR data of the terminal in a recent preset time period. The current XDR data may include the terminal identification and current switching information of the terminal. The terminal identification may be an International Mobile Subscriber Identity (IMSI). IMSI is an identification code used to distinguish different terminals in a cellular network and is not repeated in all cellular networks. The current switching information may include cell information and switching records. The cell information refers to the information of the cell where the terminal is currently located, for example, it may be a cell identification (Cell ID). The switching record includes the switching relationship and switching time between the cell where the terminal is currently located and the cell where the terminal was previously located. For example, assuming that the terminal switches from cell 1 to cell 2 at time t1 and switches from cell 2 to cell 3 at time t2, the cell information is the identification of cell 3, and the switching record is cell 1→cell 2 (t1 time), cell 2→cell 3 (t2 time).
[0037] Step 120: Determine the current state of the terminal according to the current switching information.
[0038] The current state of the terminal includes a hold state and a switch state. Specifically, step 120 includes:
[0039] Step 121: Determine whether the terminal switches within a preset time according to the current switching information.
[0040] Among them, according to the switching record in the current switching information, it is determined whether the terminal switches within the preset time. If there is a switching record within the preset time, it is determined that the terminal switches within the preset time. If there is no switching record within the preset time, it is determined that the terminal does not switch within the preset time. The preset time can be freely set by the user. For example, if the preset time is set to 10 seconds, if a switch occurs within 10 seconds, it is considered that the terminal switches. If no switch occurs within 10 seconds, it is considered that the terminal does not switch.
[0041] Step 122: If it is determined that the terminal has not been switched within the preset time, determine that the current state of the terminal is a hold state.
[0042] Step 123: If it is determined that the terminal switches within the preset time, determine that the current state of the terminal is a switching state.
[0043] Step 130: Determine the current grid of the terminal according to the current state of the terminal, the current switching information and the preset state grid.
[0044] Among them, the preset status grid represents the current geographical location area of the terminal. The preset status grid pre-divides the geographical location area according to the status of the terminal (keep or switch). The preset status grid includes a preset hold status grid and a preset switch status grid. The number of preset hold status grids and preset switch status grids can be several, each grid corresponds to a unique area, and the grid is an irregular polygon. When the terminal is located in the area corresponding to one of the preset hold status grids, the terminal will not switch, and when the terminal is located in the area corresponding to one of the preset switch status grids, the terminal will switch. Each preset hold status grid corresponds to unique cell information (such as a cell identifier), and each preset switch status grid corresponds to a unique switching relationship. For example, the schematic diagram of the grid can be as follows Figure 2 As shown, the preset holding state grids include a, c, f, h, j, and l, and the preset switching state grids include b, d, e, g, i, and k, where a corresponds to cell 1 and b corresponds to cell 1→cell 2.
[0045] Specifically, step 130 includes:
[0046] Step 131: If it is determined that the current state of the terminal is the hold state, determine the current grid of the terminal in the preset hold state grid according to the cell information in the current switching information.
[0047] Determining the current grid of the terminal in the preset holding state grid according to the cell information in the current switching information specifically includes: determining the cell identifier of the cell where the terminal is currently located according to the cell information in the current switching information, and determining a grid corresponding to the determined cell identifier in a plurality of preset holding state grids, and determining the grid as the current grid of the terminal. Figure 2 As shown, assuming that the cell identifier corresponding to the preset hold state grid a is cell 1, when it is determined that the current state of the terminal is the hold state, and the cell identifier of the cell where the terminal is currently located is determined to be cell 1, the current grid of the terminal is determined to be a.
[0048] Step 132: If it is determined that the current state of the terminal is a switching state, the current grid of the terminal is determined in a preset switching state grid according to the switching record in the current switching information.
[0049] Determining the current grid of the terminal in the preset switching state grid according to the switching record in the current switching information specifically includes: determining the last switching relationship of the terminal according to the switching record in the current switching information, and determining the grid corresponding to the switching relationship in a plurality of preset switching state grids, and determining the grid as the current grid of the terminal. Figure 2 As shown, assuming that the switching relationship corresponding to the preset switching state grid b is cell 1→cell 2, when it is determined that the current state of the terminal is the switching state, and it is determined that the switching relationship of the terminal's last switching is cell 1→cell 2, the current grid of the terminal is determined to be b.
[0050] Step 140: Obtain the historical movement trajectory of the terminal.
[0051] The historical motion trajectory is a motion trajectory with a high number of repetitions in the past of the terminal. The historical motion trajectory may be composed of some continuous points and some discrete points. Specifically, step 140 includes:
[0052] Step 141: Obtain historical OTT data of the terminal, where the historical OTT data includes historical location information of the terminal.
[0053] Among them, Internet companies use the broadband network of telecom operators to develop their own businesses, such as Google and Baidu. These applications can be called OTT (Over The Top) applications. The data of OTT applications is OTT data. Some OTT service providers provide positioning and navigation services to users. If the APP reports location information in plain text, OTT data containing historical location information and terminal identification can be obtained. Among them, historical location information can include longitude and latitude information. Specifically, SCA MR data (including all manufacturers' MR information) can be obtained from the wireless side through soft acquisition, and OTT data can be collected from the core network side through probes. SCA MR data and OTT data are cleaned and associated, and MR sample points containing longitude and latitude after association are sent to the fingerprint server. After accumulating data for a few days and the sample points are rich enough, a fingerprint library is created, and the MR points to be located are input for feature matching with the fingerprint library, and the MR points containing longitude and latitude information after positioning are output.
[0054] Step 142: Generate a historical movement trajectory of the terminal according to the historical location information.
[0055] After the historical location information is obtained, each historical location point represented by the historical location information is connected to generate the historical motion trajectory of the terminal. For example, several historical location information of the terminal in the past several days is obtained, and each historical location point represented by each historical location information is depicted on the coordinate system, and several historical location points are fitted to generate a motion trajectory, which is determined as the historical motion trajectory.
[0056] In some embodiments, step 142 may also specifically include: obtaining historical XDR data of the terminal, the historical XDR data including the terminal identifier and historical switching information of the terminal; associating the historical switching information with the historical location information according to the terminal identifier, and generating a historical motion trajectory of the terminal. Specifically, the location of the terminal at a certain time and the movement direction of the terminal may be determined according to the historical switching information, thereby generating the historical motion trajectory of the terminal according to the associated historical location information.
[0057] In some other embodiments, obtaining the historical motion trajectory of the terminal may specifically include: obtaining sample XDR data and sample OTT data of several sample terminals; generating a motion trajectory library according to the sample XDR data and sample OTT data; obtaining the historical OTT data of the terminal; obtaining the historical motion trajectory of the terminal from the motion trajectory library according to the historical OTT data of the terminal. The motion trajectory library is generated by several sample terminals, and records some routes where most users often move. For example, assuming that there are three routes L1, L2, and L3 from location A to location B, and most users take routes L1 and L2, then based on the sample XDR data and sample OTT data of the sample terminals corresponding to these most users, the motion trajectories corresponding to routes L1 and L2 are generated and stored in the motion trajectory library. The historical OTT data of the terminal includes the OTT data before the terminal is positioned, and the motion trajectory of the terminal before the terminal is positioned is determined according to the historical OTT data of the terminal, and the motion trajectory identical to the motion trajectory of the terminal is queried in the motion trajectory library as the historical motion trajectory of the terminal. For example, there are motion trajectories L1 and L2 in the motion trajectory library. If it is determined based on the historical OTT data of the terminal that the motion trajectory of the terminal before positioning the terminal has a high degree of overlap with the motion trajectory L1, the motion trajectory L1 is used as the historical motion trajectory of the terminal.
[0058] Step 150: Determine the current location of the terminal according to the current grid and the historical movement trajectory.
[0059] Among them, since the matching degree between XDR data and OTT data is low, the generated motion trajectory has a certain delay, so it is necessary to combine the current grid and the historical motion trajectory to perform real-time positioning of the terminal. For example, user A often travels between home and company. According to the historical location information in the historical OTT data of the terminal, it is determined that the route from home to company of user A is generally L1. When user A sets out from home again, the historical motion trajectory of user A's terminal is obtained as L1, and the current location of the terminal is determined in real time according to the current grid of the terminal and the historical motion trajectory L1. For another example, user A travels to a scenic spot for the first time. There are three routes L1, L2, and L3 from point A to point B in the scenic spot. The motion trajectory library records the motion trajectories L1 and L2 of most users from point A to point B in the scenic spot. According to the historical OTT data of the terminal, it is determined that the motion trajectory of the terminal before positioning the terminal has a high degree of overlap with the motion trajectory L1. Then the motion trajectory L1 is used as the historical motion trajectory of the terminal in the scenic spot, and the current location of the terminal is determined in real time according to the current grid of the terminal and the historical motion trajectory L1. Through the above methods, it is possible to achieve targeted marketing to potential users, locate the distribution of crowds in scenic spots, monitor crowds at transportation hubs, locate the distribution of road congestion, and assist in the construction of smart cities, etc.
[0060] The embodiment of the present invention obtains the current XDR data of the terminal, the current XDR data includes the current switching information, determines the current state of the terminal according to the current switching information, determines the current grid of the terminal according to the current state of the terminal, the current switching information and the preset state grid, obtains the historical movement trajectory of the terminal, determines the current position of the terminal according to the current grid and the historical movement trajectory, and can achieve real-time positioning through the combination of wireless network and terminal historical trajectory without using a third-party positioning app, and the positioning accuracy is higher than wireless network positioning, thereby ensuring positioning accuracy.
[0061] In some other embodiments, it is necessary to first determine the preset state grid, such as Figure 3 As shown, before step 130, the method further includes:
[0062] Step 161: Obtain sample XDR data and sample OTT data of several sample terminals, where the sample XDR data includes sample switching information, the sample switching information includes sample cell information and sample switching records, and the sample OTT data includes sample location information.
[0063] The sample terminal refers to the terminal collected from the historical information for determining the preset state grid. The sample XDR data may include the sample terminal identification and sample switching information, wherein the sample switching information includes the sample cell information and the sample switching record, the sample cell information refers to the information of the cell where the sample terminal is located, and the sample switching record refers to the cell switching relationship and switching time of the sample terminal. The sample OTT data may include the sample terminal identification and sample location information.
[0064] Step 162: Divide the location area where the sample terminal does not switch into preset holding state grids according to the sample cell information and the sample location information matching the sample cell information.
[0065] Among them, the sample cell information in the sample XDR data and the sample location information in the sample OTT data can be matched according to the sample terminal identifier, so as to obtain the sample location information matching the sample cell information (that is, the location of the sample terminal without switching in the cell).
[0066] According to the sample cell information and the sample location information matching the sample cell information, the location area where the sample terminal does not switch is divided into a preset retention state grid. Specifically, it can be: according to the sample location information matching the sample cell information, the geographical location of the sample terminal that does not switch is marked, and the boundary of the preset retention state grid is generated according to the Thiessen polygon algorithm, and the position of the preset retention state grid is calculated according to the sample location information matching the sample cell information, so as to divide the location area where the sample terminal does not switch into the preset retention state grid. Further, the preset retention state grid can be provided with a cell unique identifier.
[0067] Among them, Thiessen polygons are also called von Lonoi diagrams (Voronoi diagrams), which are composed of a set of continuous polygons composed of perpendicular bisectors connecting two adjacent points. For example, suppose there is a set of discrete points (x i ,y j )(i=1,2,3,…,k; j=1,2,3,…,k, k is the number of discrete points), if the area B is divided into k mutually adjacent polygons by a set of straight line segments, such that:
[0068] (1) Each polygon contains only one discrete point;
[0069] (2) If any point (x 1 ,y 1 ) is located at the discrete point (x i ,y j ) inside the polygon, the inequality
[0070]
[0071] It always holds true when i≠j;
[0072] (3) If the point (x 1 ,y 1 ) is located at the discrete point (x i ,y j ) on the common edge of the two polygons, then the equation
[0073]
[0074] Established.
[0075] The resulting polygons are called Thiessen polygons.
[0076] In this embodiment, the boundary of the preset holding state grid is generated according to the Thiessen polygon algorithm. The specific implementation method may be: after marking the geographical location of the sample terminal that does not switch according to the sample location information that matches the sample cell information, the location points of all the sample terminals that do not switch are connected into a Delaunay triangle; the perpendicular bisectors of the sides of the triangle are drawn, so that the intersection of the perpendicular bisectors of the three sides of each triangle is determined as the center of the circumscribed circle of the triangle; the centers of the circumscribed circles of all adjacent triangles are connected to obtain Thiessen polygons; the boundaries of these several Thiessen polygons are obtained to generate the boundary of the preset holding state grid. For example, Figure 4 As shown, assuming that the points in the figure are the location points of the sample terminals that do not switch, the location points of all the sample terminals that do not switch are connected into a Delaunay triangulation, and then the center of the circumscribed circle of each triangle in the triangulation is determined, and the centers of the circumscribed circles of adjacent triangles are connected to obtain several Thiessen polygons. The boundaries of the several Thiessen polygons are taken as the boundaries of the preset retention state grid.
[0077] Step 163: If sample location information matching the sample switching record is obtained, the location area where the sample terminal switches is divided into preset switching state grids according to the sample location information matching the sample switching record.
[0078] Among them, the sample location information that matches the sample switching record refers to the location information of the sample terminal when the switching occurs. Since the matching rate between the sample XDR data and the sample OTT data is low, there may be a part of the switching events that are not associated with the OTT data. Determine whether the sample location information that matches the sample switching record is obtained, specifically: according to the sample terminal identifier, determine whether the time difference between the recording time of the sample location information and the switching time of the sample switching record is within the preset time difference range. If so, it is determined that the sample location information matches the sample switching record, and the sample location information that matches the sample switching record is obtained. If not, it is determined that the sample location information does not match the sample switching record, and the sample location information that matches the sample switching record is not obtained. Among them, the preset time difference range can be freely set by the user according to the switching duration, for example, the preset time difference range is set to 10 seconds.
[0079] According to the sample location information matched by the sample switching record, the location area where the sample terminal switches is divided into preset switching state grids. Specifically, it can be: according to the sample location information matched by the sample switching record, the geographical location of the sample terminal where the switch occurs is marked, and the boundary of the preset switching state grid is generated according to the Thiessen polygon algorithm, and the position of the preset switching state grid is calculated according to the sample location information matched by the sample switching record, so as to divide the location area where the sample terminal switches into the preset switching state grid. Furthermore, the preset switching state grid can be uniquely identified by a switching sequence. Among them, the specific implementation method of generating the boundary of the preset switching state grid according to the Thiessen polygon algorithm is roughly the same as the specific implementation method of generating the boundary of the preset holding state grid according to the Thiessen polygon algorithm mentioned above, and will not be repeated here.
[0080] Step 164: If the sample location information matching the sample switching record is not obtained, the location of the sample terminal is calculated according to the sample cell information.
[0081] Among them, for switching events that are not associated with OTT data, the sample location information that matches the sample cell information before the switch and the sample location information that matches the sample cell information after the switch can be obtained, and the base station information before and after the switch can be obtained, so as to calculate the location of the sample terminal according to the trigonometric function relationship. Among them, the base station information may include antenna height, downtilt angle, and the distance between the sample terminal and the antenna. The sample location information that matches the sample cell information before the switch can be considered as the base station location before the switch, and the sample location information that matches the sample cell information after the switch can be considered as the base station location after the switch. The corresponding base station can be determined according to the base station location, so that the corresponding base station information can be queried from the database. For example, Figure 5 As shown, assuming that the sample location information matched by the sample cell information before switching is (x, y), and the sample location information matched by the sample cell information after switching is (x′, y′), let the location of the first base station be (x, y), and the location of the second base station be (x′, y′), query the database to obtain that the antenna height of the first base station is h1, the downtilt angle is θ1, the antenna height of the second base station is h2, and the downtilt angle is θ2, and the distance between the sample terminal and the antenna of the first base station is x1, and the distance between the sample terminal and the antenna of the second base station is x2, then the location (e, f) of the sample terminal can be calculated according to the following formula:
[0082] d1=h1 2 +x1 2 -2h1x1cosθ1 (1)
[0083] d2=h2 2 +x2 2 -2h2x2cosθ2 (2)
[0084] d1 2 =(xe) 2 +(yf) 2 (3)
[0085] d2 2 =(x′-e) 2 +(y′-f) 2 (4)
[0086] Wherein, d1 is the ground distance from the terminal to the first base station, and d2 is the ground distance from the terminal to the second base station. The position (e, f) of the sample terminal can be calculated according to formulas (1)-(4).
[0087] Step 165: Divide the location area where the sample terminal switches into preset switching state grids according to the location of the sample terminal.
[0088] According to the location of the sample terminal, the location area where the sample terminal switches is divided into preset switching state grids. Specifically, it can be as follows: according to the location of the sample terminal, the geographical location of the sample terminal where the switch occurs is marked, and the boundary of the preset switching state grid is generated according to the Thiessen polygon algorithm, and the position of the preset switching state grid is calculated according to the location of the sample terminal, so that the location area where the sample terminal switches is divided into preset switching state grids. Among them, the specific implementation method of generating the boundary of the preset switching state grid according to the Thiessen polygon algorithm is roughly the same as the specific implementation method of generating the boundary of the preset holding state grid according to the Thiessen polygon algorithm mentioned above, and will not be repeated here. For example, the generated boundaries of the preset holding state grid and the preset switching state grid are as follows: Figure 6 shown.
[0089] In an embodiment, by acquiring sample XDR data and sample OTT data of several sample terminals, a grid boundary is generated using the Thiessen polygon in which "the distance from any point to the control points constituting the polygon is less than the distance to the control points of other polygons", thereby forming a preset hold state grid and a preset switch state grid, thereby determining the preset state grid.
[0090] In some other embodiments, step 150 specifically includes:
[0091] Step 151: Determine the center of the current grid.
[0092] Since each grid corresponds to only one area, the center of each grid can be obtained according to the area corresponding to the grid, so that the center of the grid where the terminal is currently located can be determined.
[0093] Step 152: Determine the point in the historical motion trajectory that is the shortest distance from the center of the current grid, thereby determining the current position of the terminal.
[0094] Since the boundaries and positions of each grid are known, the position of the center of the grid can be calculated based on the boundaries and positions of the grid, and the longitude and latitude information of the center of the current grid can be determined. The point with the shortest distance from the center of the current grid in the historical motion trajectory can be determined by: establishing a functional relationship of the historical motion trajectory, calculating the shortest distance between the functional relationship and the longitude and latitude information of the center of the current grid, and determining the point with the shortest distance from the center of the current grid in the historical motion trajectory as the current position of the terminal, thereby locating the terminal. For example, please refer to Figure 2 , the current grid of the terminal is a, the center of grid a is m, and the historical movement trajectory of the terminal is curve L. Then, according to the center m and curve L, the current position point of the terminal is determined to be n.
[0095] In this embodiment, the point with the shortest connection between the central longitude and latitude in the grid and the historical trajectory of the terminal is determined as the position of the terminal, so that the real-time current position of the terminal can be accurately calculated.
[0096] Figure 7 FIG. 1 shows a schematic diagram of the structure of a terminal positioning device provided by an embodiment of the present invention. The method can be applied to a computing device. Figure 7 As shown, the device includes: a data acquisition module 210 , a grid determination module 220 , a trajectory acquisition module 230 and a positioning module 240 .
[0097] Among them, the data acquisition module 210 is used to acquire the current XDR data of the terminal, and the current XDR data includes the current switching information of the terminal; the grid determination module 220 is used to determine the current state of the terminal according to the current switching information, and, according to the current state of the terminal, the current switching information and the preset state grid, determine the current grid of the terminal, wherein the preset state grid represents the current geographical location area of the terminal; the trajectory acquisition module 230 is used to acquire the historical movement trajectory of the terminal; the positioning module 240 is used to determine the current position of the terminal according to the current grid and the historical movement trajectory.
[0098] Among them, the grid determination module 220 is specifically used to: determine whether the terminal switches within a preset time according to the current switching information; if it is determined that the terminal does not switch within the preset time, determine that the current state of the terminal is a holding state; if it is determined that the terminal switches within the preset time, determine that the current state of the terminal is a switching state.
[0099] Among them, the preset state grid includes a preset hold state grid and a preset switch state grid; the grid determination module 220 is specifically used for: if it is determined that the current state of the terminal is the hold state, the current grid of the terminal is determined in the preset hold state grid according to the cell information in the current switch information; if it is determined that the current state of the terminal is the switch state, the current grid of the terminal is determined in the preset switch state grid according to the switch record in the current switch information.
[0100] The trajectory acquisition module 230 is specifically used to: acquire the historical OTT data of the terminal, the historical OTT data including the historical location information of the terminal; and generate the historical movement trajectory of the terminal according to the historical location information.
[0101] In an optional manner, the device also includes a preset state grid determination module. The preset state grid determination module is specifically used to: obtain sample XDR data and sample OTT data of several sample terminals, the sample XDR data includes sample switching information, the sample switching information includes sample cell information and sample switching records, and the sample OTT data includes sample location information; according to the sample cell information and the sample location information matching the sample cell information, the location area where the sample terminal has not switched is divided into the preset holding state grid; if the sample location information matching the sample switching record is obtained, then the location area where the sample terminal has switched is divided into the preset switching state grid according to the sample location information matching the sample switching record; if the sample location information matching the sample switching record is not obtained, then the location of the sample terminal is calculated according to the sample cell information; according to the location of the sample terminal, the location area where the sample terminal has switched is divided into the preset switching state grid.
[0102] In an optional manner, the positioning module 240 is specifically used to determine the center of the current grid; determine the point with the shortest distance to the center of the current grid in the historical motion trajectory, so as to determine the current position of the terminal.
[0103] It should be noted that the terminal positioning device provided in the embodiment of the present invention is a device capable of executing the above-mentioned terminal positioning method, and all embodiments of the above-mentioned terminal positioning method are applicable to the device and can achieve the same or similar beneficial effects.
[0104] The embodiment of the present invention obtains the current XDR data of the terminal, the current XDR data includes the current switching information, determines the current state of the terminal according to the current switching information, determines the current grid of the terminal according to the current state of the terminal, the current switching information and the preset state grid, obtains the historical movement trajectory of the terminal, determines the current position of the terminal according to the current grid and the historical movement trajectory, and can achieve real-time positioning through the combination of wireless network and terminal historical trajectory without using a third-party positioning app, and the positioning accuracy is higher than wireless network positioning, thereby ensuring positioning accuracy.
[0105] Figure 8 The schematic diagram of the structure of the computing device provided by the embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computing device.
[0106] like Figure 8 As shown, the computing device may include: a processor (processor) 302 , a communication interface (Communications Interface) 304 , a memory (memory) 306 , and a communication bus 308 .
[0107] The processor 302, the communication interface 304, and the memory 306 communicate with each other via the communication bus 308. The communication interface 304 is used to communicate with other devices such as databases or other servers. The processor 302 is used to execute the program 310, which can specifically execute the relevant steps in the above-mentioned embodiment of the terminal positioning method.
[0108] Specifically, the program 310 may include program code including computer executable instructions.
[0109] The processor 302 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0110] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0111] The program 310 may be specifically called by the processor 302 to enable the computing device to execute the operations in the terminal positioning method in the above embodiment.
[0112] The embodiment of the present invention obtains the current XDR data of the terminal, the current XDR data includes the current switching information, determines the current state of the terminal according to the current switching information, determines the current grid of the terminal according to the current state of the terminal, the current switching information and the preset state grid, obtains the historical movement trajectory of the terminal, determines the current position of the terminal according to the current grid and the historical movement trajectory, and can achieve real-time positioning through the combination of wireless network and terminal historical trajectory without using a third-party positioning app, and the positioning accuracy is higher than wireless network positioning, thereby ensuring positioning accuracy.
[0113] An embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores at least one executable instruction, which, when executed on a computing device, enables the computing device to execute the terminal positioning method in any of the above method embodiments. The executable instruction can be specifically used to enable the computing device to execute the operations in the terminal positioning method in the above embodiment.
[0114] The embodiment of the present invention obtains the current XDR data of the terminal, the current XDR data includes the current switching information, determines the current state of the terminal according to the current switching information, determines the current grid of the terminal according to the current state of the terminal, the current switching information and the preset state grid, obtains the historical movement trajectory of the terminal, determines the current position of the terminal according to the current grid and the historical movement trajectory, and can achieve real-time positioning through the combination of wireless network and terminal historical trajectory without using a third-party positioning app, and the positioning accuracy is higher than wireless network positioning, thereby ensuring positioning accuracy.
[0115] An embodiment of the present invention provides a terminal positioning device, which is used to execute the above terminal positioning method.
[0116] An embodiment of the present invention provides a computer program, which can be called by a processor to enable a computing device to execute the terminal positioning method in any of the above method embodiments.
[0117] An embodiment of the present invention provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed on a computer, the computer executes the terminal positioning method in any of the above method embodiments.
[0118] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0119] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0120] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0121] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0122] Furthermore, those skilled in the art will appreciate that although some embodiments herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.
[0123] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A terminal positioning method, characterized in that: include: Acquire current XDR data of the terminal, where the current XDR data includes current switching information of the terminal; Determining a current state of the terminal according to the current switching information; Obtain sample XDR data and sample OTT data of several sample terminals, the sample XDR data including sample switching information, the sample switching information including sample cell information and sample switching records, and the sample OTT data including sample location information; according to the sample cell information and the sample location information matching the sample cell information, divide the location area where the sample terminal has not been switched into a preset holding state grid; if the sample location information matching the sample switching record is obtained, divide the location area where the sample terminal has been switched into a preset switching state grid according to the sample location information matching the sample switching record; Determine the current grid of the terminal according to the current state of the terminal, the current switching information and a preset state grid, wherein the preset state grid represents the current geographical location area of the terminal; the preset state grid includes a preset hold state grid and a preset switch state grid; The determining the current grid of the terminal according to the current state of the terminal, the current switching information and the preset state grid specifically includes: if it is determined that the current state of the terminal is a hold state, determining the current grid of the terminal in the preset hold state grid according to the cell information in the current switching information; if it is determined that the current state of the terminal is a switch state, determining the current grid of the terminal in the preset switch state grid according to the switch record in the current switching information; obtaining the historical movement trajectory of the terminal; The current location of the terminal is determined according to the current grid and the historical movement trajectory.
2. The method according to claim 1, characterized in that: The determining the current state of the terminal according to the current switching information specifically includes: Determining whether the terminal switches within a preset time according to the current switching information; If it is determined that the terminal has not been switched within the preset time, determining that the current state of the terminal is a hold state; If it is determined that the terminal switches within the preset time, it is determined that the current state of the terminal is a switching state.
3. The method according to claim 2, characterized in that Before determining the current grid of the terminal, the method further includes: If the sample location information matching the sample switching record is not obtained, calculating the location of the sample terminal according to the sample cell information; According to the positions of the sample terminals, the position areas where the sample terminals are switched are divided into the preset switching state grids.
4. The method according to claim 1, characterized in that: The obtaining of the historical movement trajectory of the terminal specifically includes: Acquire historical OTT data of the terminal, where the historical OTT data includes historical location information of the terminal; A historical movement trajectory of the terminal is generated according to the historical location information.
5. The method according to any one of claims 1 to 4, characterized in that: The determining the current position of the terminal according to the current grid and the historical movement trajectory specifically includes: Determine the center of the current grid; The point with the shortest distance from the center of the current grid is determined in the historical motion trajectory, so as to determine the current position of the terminal.
6. A terminal positioning device, characterized in that: include: A data acquisition module, used to acquire current XDR data of a terminal, wherein the current XDR data includes current switching information of the terminal; A preset state grid determination module is used to obtain sample XDR data and sample OTT data of several sample terminals, wherein the sample XDR data includes sample switching information, the sample switching information includes sample cell information and sample switching records, and the sample OTT data includes sample location information; according to the sample cell information and the sample location information matching the sample cell information, the location area where the sample terminal has not switched is divided into a preset holding state grid; if the sample location information matching the sample switching record is obtained, the location area where the sample terminal has switched is divided into a preset switching state grid according to the sample location information matching the sample switching record; A grid determination module, configured to determine the current state of the terminal according to the current switching information, and determine the current grid of the terminal according to the current state of the terminal, the current switching information and a preset state grid, wherein the preset state grid represents the current geographical location area of the terminal; the preset state grid includes a preset hold state grid and a preset switch state grid; The determining the current grid of the terminal according to the current state of the terminal, the current switching information and the preset state grid specifically includes: if it is determined that the current state of the terminal is a hold state, determining the current grid of the terminal in the preset hold state grid according to the cell information in the current switching information; if it is determined that the current state of the terminal is a switch state, determining the current grid of the terminal in the preset switch state grid according to the switch record in the current switching information; A trajectory acquisition module, used to acquire the historical movement trajectory of the terminal; A positioning module is used to determine the current position of the terminal according to the current grid and the historical movement trajectory.
7. A terminal positioning calculation device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the terminal positioning method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the computing device, the computing device executes the operation of the terminal positioning method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Information processing method and electronic equipment
CN105205353A
Channel switch method, mobile terminal and computer readable storage medium
CN107454637A
Positioning method and related device
CN107678051A
Coverage evaluation method and device for LTE network
CN108124270A
Positioning method and device for call drop position
CN108243434A
