A positioning method and device, electronic device, storage medium and computer program

Through time calibration and nearby positioning technology, the problem of positioning accuracy caused by the inconsistent transmission time and timing accuracy of base station positioning signals is solved, the positioning accuracy and service range are improved, and the occupation of base station resources is reduced.

CN118400802BActive Publication Date: 2024-09-27CHINA MOBILE GROUP SICHUAN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852182.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing positioning method reduces the positioning accuracy due to the inconsistent transmission time and timing accuracy of the base station positioning signal. Especially in areas with sparse base stations, it is impossible to coordinate different base stations for positioning, resulting in low positioning accuracy.

Method used

By responding to the terminal's positioning request, time calibration is performed, electronic tag data carrying a unique timestamp is generated, positioning is performed based on base station location information and time information, and mobile hotspot data within a preset distance range is used for nearby positioning, reducing base station resource occupation.

Benefits of technology

It improves the positioning accuracy, avoids systematic errors, reduces the occupation of base station resources, expands the service scope of the positioning business, and avoids positioning blind spots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400802B
    Figure CN118400802B
Patent Text Reader

Abstract

The present invention provides a positioning method and device, an electronic device, a storage medium and a computer program. In response to a positioning request sent by a first terminal, time calibration is performed according to timing information, first electronic tag data is generated, and the first electronic tag data is sent to a base station; second electronic tag data sent by the base station is received, and time information corresponding to the timestamp is obtained from the second electronic tag data; based on the position information and time information of the base station, the first terminal is positioned to obtain an estimated position corresponding to the first terminal; based on the mobile hotspot data of the second terminal within a preset distance range of the estimated position, the first terminal is positioned to obtain the target position of the first terminal. The present invention performs time calibration on the service end to avoid the reduction of positioning accuracy due to the inconsistency between the sending time and the receiving time of the first electronic tag data. The second terminal locates the first terminal nearby, reduces the amount of positioning tasks of the base station, reduces the base station resource occupation of the positioning service, and improves the positioning accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a positioning method and device, an electronic device, a storage medium, and a computer program. Background Art

[0002] Base stations, or public mobile communication base stations, are a form of radio stations, which are radio transceiver stations that transmit information to mobile phone terminals through mobile communication exchange centers in a certain radio coverage area. The construction of mobile communication base stations is generally based on factors such as coverage, call quality, investment benefits, ease of construction, and ease of maintenance. The location service based on base stations refers to the mobile communication system obtaining the geographical location information of the mobile terminal through positioning technology, sending the obtained geographical location information to the mobile terminal, the server in the mobile communication system or a third-party client, and providing the mobile terminal with call or non-call services related to the geographical location information with the support of electronic map information.

[0003] Common positioning methods include the Time Difference Of Arrival (TDOA) technology. TDOA is a positioning method based on the distance difference between each reference base station (Anchor, Anc) and the object to be positioned (also known as the positioning terminal, Tag), and infers the relative position of the Tag relative to each Anc by solving a set of nonlinear hyperbolic equations. Since the electromagnetic wave flight speed of the positioning signal is known and constant, the flight distance and flight time can be converted to each other. If the sending time of the positioning signal between Anc and Tag is known, the flight time of the positioning signal can be calculated by the arrival time of the positioning signal, and then the flight distance of the positioning signal can be calculated. Therefore, it is only necessary to measure the difference in arrival time of the positioning signal sent by the Tag to each Anc to obtain the corresponding distance difference, and then locate the Tag.

[0004] TDOA technology requires a long calculation time. If the sending time of the positioning signal and the timing accuracy of each base station are not unified, the positioning accuracy may be reduced. The timing accuracy is a relative accuracy of the minimum time difference between the system time of the base station and the upper-level time source (timing server). In addition, when the positioning service of the base station is busy, the positioning service will occupy a large amount of base station resources, resulting in the restriction of the basic services of the base station. Especially in areas with sparse base stations, it is impossible to uniformly operate different base stations for positioning, which will also lead to reduced positioning accuracy. Summary of the invention

[0005] The present disclosure provides a positioning method and device, an electronic device and a storage medium. The main purpose is to solve the existing positioning method, the non-uniformity of the sending time of the positioning signal and the timing accuracy of each base station, and when the positioning service of the base station is busy, the positioning service will occupy a large number of base station resources, resulting in the restriction of the basic service of the base station, especially in areas with sparse base stations, it is impossible to uniformly operate different base stations for positioning, resulting in low positioning accuracy.

[0006] According to a first aspect of the present disclosure, a positioning method is provided, comprising:

[0007] In response to a positioning request sent by a first terminal, performing time calibration according to the timing information, wherein the first terminal has a positioning function;

[0008] Generate first electronic tag data, and send the electronic tag data to the base station, so that the base station sends the electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp;

[0009] Receiving the second electronic tag data sent by the base station, and acquiring time information corresponding to the timestamp from the second electronic tag data;

[0010] Positioning the first terminal based on the location information of the base station and the time information to obtain an estimated location corresponding to the first terminal;

[0011] The first terminal is positioned according to the mobile hotspot data of the second terminal within the preset distance range of the estimated position to obtain the target position of the first terminal, the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal.

[0012] In some embodiments provided by the present disclosure, before sending the electronic tag data to the positioning base station, the method further includes:

[0013] Positioning a first base station and a second base station to obtain first location information of the first base station and second location information of the second base station; the base station includes a first base station and a second base station, the first base station is a base station of the same operator or a base station of a friendly business operator with the largest signal strength within the preset distance range, and the second base station is a base station of the same operator or a base station of a friendly business operator that is closest to the first terminal within the preset distance range; the location information includes the first location information and the second location information;

[0014] According to the timing information, the system time of the first base station and the second base station are calibrated respectively.

[0015] In some embodiments provided by the present disclosure, the method further includes:

[0016] If the density of the base stations of the operator within the preset distance range is lower than a preset density threshold, the base station of the friendly operator within the preset distance range is determined as the first base station or the second base station.

[0017] In some embodiments provided in the present disclosure, the locating the first terminal based on the location information and the time information to obtain an estimated location corresponding to the first terminal includes:

[0018] Based on the time information, calculate a first time difference between the first terminal and the first base station, and a second time difference between the first terminal and the second base station;

[0019] Calculating a first distance between the first terminal and the first base station according to the first time difference, and calculating a second distance between the first terminal and the second base station according to the second time difference;

[0020] Based on the first distance and the first position information, and the second distance and the second position information, a positioning calculation is performed on the first terminal to determine an estimated position of the first terminal.

[0021] In some embodiments provided by the present disclosure, the time information includes a sending time, a receiving time, and a time redundancy, the sending time is the time when the first base station or the second base station sends the electronic tag data, the receiving time is the time when the first base station or the second base station receives the electronic tag data, and the time redundancy is the time period required for the electronic tag data to be sent from the positioning base station;

[0022] The calculating a first time difference between the first terminal and the first base station, and a second time difference between the first terminal and the second base station, comprises:

[0023] Obtain a first moment, a second moment, and a first time redundancy corresponding to the first base station, wherein the sending moment includes the first moment and the third moment, the receiving moment includes the second moment and the fourth moment, and the time redundancy includes the first time redundancy and the second time redundancy;

[0024] Performing addition and subtraction operations on the first moment, the second moment, and the first time redundancy to obtain a first time difference between the first terminal and the first base station;

[0025] Obtain a third time, a fourth time, and a second time redundancy corresponding to the first base station;

[0026] Perform addition and subtraction operations on the third moment, the fourth moment and the second time redundancy to obtain a second time difference between the first terminal and the second base station.

[0027] In some embodiments provided by the present disclosure, positioning the first terminal according to the mobile hotspot data of the second terminal within the preset distance range of the estimated position to obtain the target position of the first terminal includes:

[0028] Acquire the signal strength of the mobile hotspot data of the second terminal, and determine the estimated distance between the second terminal and the first terminal according to the signal strength;

[0029] Acquire parameter information of the mobile hotspot data of the second terminal, where the parameter information includes a channel frequency;

[0030] Positioning the second terminal based on the channel frequency and the estimated distance to obtain location information of the second terminal;

[0031] The first terminal is positioned and calculated based on the location information and the estimated distance of the second terminal to obtain the target location of the first terminal.

[0032] According to a second aspect of the present disclosure, there is provided a positioning device, comprising:

[0033] A first calibration unit, configured to perform time calibration according to the timing information in response to a positioning request sent by a first terminal, wherein the first terminal has a positioning function;

[0034] a sending unit, configured to generate first electronic tag data, and send the first electronic tag data to the base station, so that the base station sends the first electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp;

[0035] an acquiring unit, configured to receive the second electronic tag data sent by the base station, and acquire time information corresponding to the timestamp from the second electronic tag data;

[0036] A first positioning unit, configured to locate the first terminal based on the position information of the base station and the time information, and obtain an estimated position corresponding to the first terminal;

[0037] The second positioning unit is used to locate the first terminal according to the mobile hotspot data of the second terminal within the preset distance range of the estimated position to obtain the target position of the first terminal, the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal.

[0038] In some embodiments provided by the present disclosure, the device further includes:

[0039] A third positioning unit is used to locate the first base station and the second base station before sending the electronic tag data to the positioning base station, and obtain the first location information of the first base station and the second location information of the second base station; the base station includes the first base station and the second base station, the first base station is the base station of the operator or the base station of a friendly business with the largest signal strength within the preset distance range, and the second base station is the base station of the operator or the base station of the friendly business that is closest to the first terminal within the preset distance range; the location information includes the first location information and the second location information;

[0040] The second calibration unit is used to calibrate the system time of the first base station and the second base station respectively according to the timing information.

[0041] In some embodiments provided by the present disclosure, the third positioning unit is further used for:

[0042] If the density of the base stations of the operator within the preset distance range is lower than a preset density threshold, the base station of the friendly operator within the preset distance range is determined as the first base station or the second base station.

[0043] In some embodiments provided in the present disclosure, the first positioning unit includes:

[0044] a first calculation module, configured to calculate, based on the time information, a first time difference between the first terminal and the first base station, and a second time difference between the first terminal and the second base station;

[0045] a second calculation module, configured to calculate a first distance between the first terminal and the first base station according to the first time difference, and to calculate a second distance between the first terminal and the second base station according to the second time difference;

[0046] The third calculation module is used to perform positioning calculation on the first terminal according to the first distance and the first position information, and the second distance and the second position information, to determine the estimated position of the first terminal.

[0047] In some embodiments provided by the present disclosure, the time information includes a sending time, a receiving time, and a time redundancy, the sending time is the time when the first base station or the second base station sends the electronic tag data, the receiving time is the time when the first base station or the second base station receives the electronic tag data, and the time redundancy is the time period required for the electronic tag data to be sent from the positioning base station;

[0048] In some embodiments provided by the present disclosure, the first computing module is further configured to:

[0049] Obtain a first moment, a second moment, and a first time redundancy corresponding to the first base station, wherein the sending moment includes the first moment and the third moment, the receiving moment includes the second moment and the fourth moment, and the time redundancy includes the first time redundancy and the second time redundancy;

[0050] Performing addition and subtraction operations on the first moment, the second moment, and the first time redundancy to obtain a first time difference between the first terminal and the first base station;

[0051] Obtain a third time, a fourth time, and a second time redundancy corresponding to the first base station;

[0052] Perform addition and subtraction operations on the third moment, the fourth moment and the second time redundancy to obtain a second time difference between the first terminal and the second base station.

[0053] In some embodiments provided by the present disclosure, the second positioning unit includes:

[0054] A first acquisition module, used to acquire the signal strength of the mobile hotspot data of the second terminal;

[0055] a determination module, configured to determine an estimated distance between the second terminal and the first terminal according to the signal strength;

[0056] A second acquisition module, used to acquire parameter information of the mobile hotspot data of the second terminal, wherein the parameter information includes a channel frequency;

[0057] A first positioning module, configured to perform positioning calculation on the second terminal based on the channel frequency and the estimated distance to obtain location information of the second terminal;

[0058] The second positioning module is used to perform positioning calculation on the first terminal according to the location information and the estimated distance of the second terminal to obtain the target location of the first terminal.

[0059] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0060] at least one processor; and

[0061] a memory communicatively connected to the at least one processor; wherein,

[0062] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0063] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0064] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.

[0065] The positioning method and device, electronic device and storage medium provided by the present disclosure perform time calibration according to timing information in response to a positioning request sent by a first terminal, wherein the first terminal has a positioning function; generate first electronic tag data, and send the electronic tag data to the base station, so that the base station sends the electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp; receive second electronic tag data sent by the base station, and obtain time information corresponding to the timestamp from the second electronic tag data; locate the first terminal based on the location information and time information of the base station to obtain an estimated location corresponding to the first terminal; locate the first terminal based on the mobile hotspot data of the second terminal within a preset distance range of the estimated location to obtain a target location of the first terminal, wherein the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal. The positioning method provided by the present invention avoids the decrease in positioning accuracy caused by systematic errors due to the inconsistency between the sending time and the receiving time of the electronic tag data by performing time calibration on the server side, and performs nearby positioning of the first terminal again through the mobile hotspot data of the second terminal, thereby reducing the positioning task load of the base station, thereby reducing the base station resource occupation of the positioning service, and further improving the positioning accuracy of the first terminal.

[0066] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0068] Figure 1 A flowchart of a positioning method provided by an embodiment of the present disclosure;

[0069] Figure 2 A schematic diagram of a process for determining an estimated location of a first terminal provided by an embodiment of the present disclosure;

[0070] Figure 3A schematic diagram of a process for determining a target location of a first terminal provided by an embodiment of the present disclosure;

[0071] Figure 4 A schematic diagram of the structure of a positioning device provided in an embodiment of the present disclosure;

[0072] Figure 5 A schematic diagram of the structure of another positioning device provided in an embodiment of the present disclosure;

[0073] Figure 6 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0074] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0075] The following describes the positioning method, device, electronic device and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings. The method is applied to a server with a positioning function. Figure 1 A flowchart of a positioning method provided by an embodiment of the present disclosure.

[0076] like Figure 1 As shown, the method comprises the following steps:

[0077] Step 101: In response to a positioning request sent by a first terminal, time calibration is performed according to timing information, wherein the first terminal has a positioning function.

[0078] In some embodiments provided by the present disclosure, the timing information is a reference time for calibrating the system time of the server and the base station. For example, if the system time of the server is 10:50:51 and the system time of the base station is 10:49:59, the timing information is 10:51:01. In order to avoid systematic errors caused by the inconsistency between the server and base station times, the system time of the server and the system time of the base station are calibrated to 10:51:01 according to the timing information 10:51:01.

[0079] Step 102: Generate first electronic tag data, and send the electronic tag data to the base station, so that the base station sends the electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp.

[0080] In some embodiments provided by the present disclosure, in order to continuously locate the first terminal, it is possible but not limited to that the server generates the first electronic tag data in batches and sends it to the base station so that the base station sends the electronic tag data to the first terminal, wherein the first electronic tag is electronic tag data without recording time information. In order to record the time information when the electronic tag data is sent from the base station to the first terminal, it is also necessary to add a corresponding timestamp to each electronic tag data. One electronic tag data carries one timestamp, and the timestamp is used to record the time information when the electronic tag data is sent from the base station to the first terminal.

[0081] Step 103: Receive the second electronic tag data sent by the base station, and obtain time information corresponding to the timestamp from the second electronic tag data.

[0082] In some embodiments provided by the present disclosure, the second electronic tag data is the first electronic tag data sent from the base station to the server, which has recorded the time information, and the time information includes the sending time of the first electronic tag data from the base station to the first terminal, the receiving time of the first terminal receiving the first electronic tag data, and the time redundancy required for the first electronic tag data to be sent by the base station. After obtaining the second electronic tag data, the first terminal also needs to send the second electronic tag data to the base station, and the base station sends it to the server, and the server completes the positioning calculation according to the time information.

[0083] Step 104: Position the first terminal based on the location information of the base station and the time information to obtain an estimated location corresponding to the first terminal.

[0084] In some embodiments provided in the present disclosure, based on the sending time of the first electronic tag data contained in the time information when the first electronic tag data is sent from the base station to the first terminal, the receiving time when the first terminal receives the first electronic tag data, and the time redundancy required for the first electronic tag data to be sent by the base station, the time difference in the process of sending the first electronic tag data from the base station to the first terminal can be calculated, and the time difference is the flight time of the first electronic tag data. Based on the time difference, the distance between the base station and the first terminal can be calculated. Based on the location information of the base station and the distance between the base station and the first terminal, the first terminal can be roughly located to determine the estimated location corresponding to the first terminal.

[0085] Step 105, positioning the first terminal according to the mobile hotspot data of the second terminal within the preset distance range of the estimated position to obtain the target position of the first terminal, the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal.

[0086] In some embodiments provided in the present disclosure, the preset distance range is an empirical value and can be flexibly adjusted according to actual application conditions. For example, when the first terminal is in an urban area, due to the high density of second terminals with WIFI in the urban area, the preset distance range of the estimated position can be set relatively small, and the acquired WIFI signal is stronger, so that the positioning accuracy is higher, for example, the preset distance range can be set to 5 meters, 10 meters, or 20 meters, etc.; when the first terminal is in a mountainous area or suburb, due to the presence of more obstructions and the low density of second terminals with WIFI, the preset distance range of the estimated position can be set relatively large, so as to obtain more WIFI data, thereby improving the positioning accuracy, for example, the preset distance range can be set to 50 meters, 100 meters, or 150 meters, etc.

[0087] In some embodiments provided by the present disclosure, in order to reduce the amount of positioning tasks of the base station, thereby reducing the base station resources occupied by the positioning service, after the first terminal is roughly positioned, the mobile hotspot (Mobile WIFI, referred to as WIFI) data of the second terminal within the preset distance range of the estimated position is obtained, and the first terminal is continuously positioned according to the signal strength of the WIFI of the second terminal and the Internet Protocol Address (IP address) of the second terminal, and finally the real-time and accurate position of the first terminal is obtained. Wherein, the second terminal is a terminal that has not initiated a positioning request within the preset distance range.

[0088] The positioning method provided by the present disclosure performs time calibration according to timing information in response to a positioning request sent by a first terminal, wherein the first terminal has a positioning function; generates first electronic tag data, and sends the electronic tag data to the base station, so that the base station sends the electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp; receives second electronic tag data sent by the base station, and obtains time information corresponding to the timestamp from the second electronic tag data; locates the first terminal based on the location information and the time information of the base station, and obtains an estimated location corresponding to the first terminal; locates the first terminal based on mobile hotspot data of a second terminal within a preset distance range of the estimated location, and obtains a target location of the first terminal, wherein the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal. The positioning method provided by the present invention avoids the decrease in positioning accuracy caused by systematic errors due to the inconsistency between the sending time and the receiving time of the electronic tag data by performing time calibration on the server side, and performs nearby positioning of the first terminal again through the mobile hotspot data of the second terminal, thereby reducing the positioning task load of the base station, thereby reducing the base station resource occupation of the positioning service, and further improving the positioning accuracy of the first terminal.

[0089] In actual applications, when positioning the first terminal, since there may be many base stations within the preset distance range of the first terminal, these base stations may not all be used to position the first terminal. Therefore, it is first necessary to determine which base stations are used to position the first terminal. The base station used for positioning can be determined in the following manner but is not limited to: the base station of the operator or the base station of a friendly company with the largest signal strength within the preset distance range is determined as the first base station, and the base station of the operator or the base station of a friendly company that is closest to the first terminal within the preset distance range is determined as the second base station. It should be noted that the embodiment of the present disclosure does not limit the number of the first base station and the second base station, that is, one first base station or one second base station can be determined to position the first terminal, or multiple first base stations or multiple second base stations can be determined to position the first terminal.

[0090] After determining the first base station and the second base station, the first base station and the second base station are located to obtain the first location information of the first base station and the second location information of the second base station, so as to subsequently use the first location information and the second location information to locate the first terminal. At the same time, in order to further improve the positioning accuracy, it is also necessary to calibrate the system time of the first base station and the second base station respectively according to the timing information, so that the system time of the first base station and the second base station is consistent with the system time of the service end.

[0091] The disclosed embodiment unifies the system time of the service end and the base station through timing information, thereby solving the problem of systematic error caused by inconsistent system time, and continuously locates the first terminal by batch generating first electronic tag data, thereby improving positioning accuracy.

[0092] In actual applications, when the first terminal is in a mountainous area or suburbs, the density of the base stations of the operator within the preset distance range of the first terminal may be relatively low, which may make it impossible to coordinate different base stations to locate the first terminal. In order to solve this problem, when the density of the base stations of the operator within the preset distance range of the first terminal is lower than the preset density threshold, the base station of the friendly operator within the preset distance range can be determined as the first base station or the second base station, and the positioning of the first terminal is completed by calling the base station data of the friendly operator base station.

[0093] In some embodiments provided by the present disclosure, the base station data of a friendly company's base station may be called in the following manner, but is not limited to: in response to an access application of a friendly company's base station, access the friendly company's base station, obtain the base station data of the friendly company's base station, and record it. In the process of obtaining the base station data of the friendly company's base station, the data needs to be encrypted for transmission.

[0094] When the density of base stations of the operator within the preset distance range of the first terminal is low, the first terminal can be positioned by calling the positioning data of the base stations of other operators, so as to expand the service scope of the positioning service to the greatest extent and avoid positioning blind spots.

[0095] In some embodiments provided in the present disclosure, in order to further illustrate the above step 104, Figure 2 A schematic diagram of a process for determining an estimated location of a first terminal provided in an embodiment of the present disclosure, such as Figure 2 As shown, the method comprises the following steps:

[0096] Step 201: Calculate a first time difference between the first terminal and the first base station, and a second time difference between the first terminal and the second base station based on the time information.

[0097] In some embodiments provided by the present disclosure, the time information includes a sending time, a receiving time, and a time redundancy, the sending time is the time when the first base station or the second base station sends the first electronic tag data, the receiving time is the time when the first base station or the second base station receives the first electronic tag data, and the time redundancy is the time period required for the first electronic tag data to be sent from the positioning base station; after obtaining the first time, the second time, and the first time redundancy corresponding to the first base station, the first total time of the first electronic tag data from the first base station to the first terminal is determined according to the second time and the first time, and the first time redundancy is subtracted from the first total time to obtain the first time difference between the first terminal and the first base station, that is, the flight time of the first electronic tag data from the first base station to the first terminal. Similarly, after obtaining the third time, the fourth time, and the second time redundancy corresponding to the second base station, the second total time of the first electronic tag data from the second base station to the first terminal is determined according to the third time and the fourth time, and the second time redundancy is subtracted from the second total time to obtain the second time difference between the first terminal and the second base station, that is, the flight time of the first electronic tag data from the second base station to the first terminal.

[0098] Step 202: Calculate a first distance between the first terminal and the first base station according to the first time difference, and calculate a second distance between the first terminal and the second base station according to the second time difference.

[0099] In some embodiments provided in the present disclosure, after obtaining the first time difference and the second time difference, the first distance between the first terminal and the first base station can be calculated according to the first time difference, and the second distance between the first terminal and the second base station can be calculated according to the second time difference. The specific calculation method of the first distance and the second distance can adopt but is not limited to solving a nonlinear hyperbolic equation system and other methods. The specific calculation method is not limited in the embodiments of the present disclosure.

[0100] Step 203: Perform positioning calculation on the first terminal according to the first distance and the first position information, and the second distance and the second position information to determine the estimated position of the first terminal.

[0101] Finally, according to the first distance and the first location information, as well as the second distance and the second location information, the location of the first terminal can be roughly located to obtain an estimated location of the first terminal. Exemplarily, the estimated location is a geographical location range that includes the first terminal. For example, the estimated location may be a circular range with the first terminal as the center, or an elliptical range, or even an irregular area.

[0102] pass Figure 2 The positioning method shown can obtain the estimated position of the first terminal, so as to subsequently optimize the positioning of the estimated position, determine the target position of the first terminal, and further improve the positioning accuracy of the positioning method.

[0103] In some embodiments provided in the present disclosure, in order to further illustrate the above step 105, Figure 3 A schematic diagram of a process for determining a target location of a first terminal provided in an embodiment of the present disclosure, such as Figure 3 As shown, the method comprises the following steps:

[0104] Step 301: Acquire the signal strength of the mobile hotspot data of the second terminal, and determine the estimated distance between the second terminal and the first terminal according to the signal strength.

[0105] Since a characteristic of a WIFI signal is that the signal strength decreases in proportion to the distance, the estimated distance between the second terminal and the first terminal may be calculated based on the characteristic that the signal strength decreases in proportion to the distance of the WIFI signal.

[0106] Step 302: Acquire parameter information of the mobile hotspot data of the second terminal, wherein the parameter information includes a channel frequency.

[0107] Step 303: Perform positioning calculation on the second terminal based on the channel frequency and the estimated distance to obtain location information of the second terminal.

[0108] After determining the channel frequency and the estimated distance, the position of the second terminal may be determined, so as to subsequently determine the target position of the first terminal according to the position of the second terminal.

[0109] Step 304: Perform positioning calculation on the first terminal according to the location information and the estimated distance of the second terminal to obtain the target location of the first terminal.

[0110] After determining the position of the second terminal, the first terminal can be accurately positioned in real time based on the position of the second terminal and the estimated distance between the second terminal and the first terminal. At the same time, the positioning method provided by the present invention can also locate the height of the first terminal, and finally obtain the target position of the first terminal, which includes the three-dimensional spatial coordinates of the first terminal in the electronic map.

[0111] By using the WIFI data of the second terminal within a preset distance range of the estimated position of the first terminal to continuously locate the first terminal, the positioning task load of the base station is reduced, thereby reducing the base station resource occupation of the positioning service, and the WIFI data of the second terminal within the preset distance range is used to locate the first terminal nearby, thereby further improving the positioning accuracy.

[0112] In summary, the embodiments of the present disclosure can achieve the following effects:

[0113] 1. The disclosed embodiment unifies the system time of the service end and the base station through timing information, thereby solving the problem of systematic error caused by inconsistent system time, and continuously locates the first terminal by batch generating the first electronic tag data, thereby improving the positioning accuracy.

[0114] 2. When the density of base stations of the operator within the preset distance range of the first terminal is low, the first terminal can be positioned by calling the positioning data of the base stations of other operators, so as to expand the service scope of the positioning service to the greatest extent and avoid positioning blind spots.

[0115] 3. By using the WIFI data of the second terminal within a preset distance range of the estimated position of the first terminal to continuously locate the first terminal, the positioning task load of the base station is reduced, thereby reducing the base station resource occupancy of the positioning service, and the WIFI data of the second terminal within the preset distance range is used to locate the first terminal nearby, further improving the positioning accuracy.

[0116] Corresponding to the above positioning method, the present invention also provides a positioning device. Since the device embodiment of the present invention corresponds to the above method embodiment, details not disclosed in the device embodiment can be referred to the above method embodiment, and will not be described in detail in the present invention.

[0117] Figure 4 A schematic diagram of a positioning device provided in an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, it includes: a first calibration unit 41, a sending unit 42, an acquisition unit 43, a first positioning unit 44 and a second positioning unit 45.

[0118] A first calibration unit 41 is configured to perform time calibration according to the timing information in response to a positioning request sent by a first terminal, wherein the first terminal has a positioning function;

[0119] The sending unit 42 is used to generate first electronic tag data and send the first electronic tag data to the base station, so that the base station sends the first electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp;

[0120] An acquiring unit 43 is configured to receive the second electronic tag data sent by the base station, and acquire time information corresponding to the timestamp from the second electronic tag data;

[0121] A first positioning unit 44 is configured to locate the first terminal based on the position information of the base station and the time information to obtain an estimated position corresponding to the first terminal;

[0122] The second positioning unit 45 is used to locate the first terminal according to the mobile hotspot data of the second terminal within the preset distance range of the estimated position to obtain the target position of the first terminal, the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal.

[0123] The positioning device provided by the present disclosure performs time calibration according to timing information in response to a positioning request sent by a first terminal, wherein the first terminal has a positioning function; generates first electronic tag data, and sends the electronic tag data to the base station, so that the base station sends the electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp; receives second electronic tag data sent by the base station, and obtains time information corresponding to the timestamp from the second electronic tag data; locates the first terminal based on the location information and the time information of the base station, and obtains an estimated location corresponding to the first terminal; locates the first terminal based on mobile hotspot data of a second terminal within a preset distance range of the estimated location, and obtains a target location of the first terminal, wherein the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal. The positioning method provided by the present invention avoids the decrease in positioning accuracy caused by systematic errors due to the inconsistency between the sending time and the receiving time of the electronic tag data by performing time calibration on the server side, and performs nearby positioning of the first terminal again through the mobile hotspot data of the second terminal, thereby reducing the positioning task load of the base station, thereby reducing the base station resource occupation of the positioning service, and further improving the positioning accuracy of the first terminal.

[0124] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the device also includes:

[0125] The third positioning unit 46 is used to locate the first base station and the second base station before sending the electronic tag data to the positioning base station, and obtain the first position information of the first base station and the second position information of the second base station; the base station includes the first base station and the second base station, the first base station is the base station of the operator or the base station of the friendly business with the largest signal strength within the preset distance range, and the second base station is the base station of the operator or the base station of the friendly business that is closest to the first terminal within the preset distance range; the position information includes the first position information and the second position information;

[0126] The second calibration unit 47 is used to calibrate the system time of the first base station and the second base station respectively according to the timing information.

[0127] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the third positioning unit 46 is also used for:

[0128] If the density of the base stations of the operator within the preset distance range is lower than a preset density threshold, the base station of the friendly operator within the preset distance range is determined as the first base station or the second base station.

[0129] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the first positioning unit 44 includes:

[0130] A first calculation module 441, configured to calculate a first time difference between the first terminal and the first base station, and a second time difference between the first terminal and the second base station based on the time information;

[0131] A second calculation module 442, configured to calculate a first distance between the first terminal and the first base station according to the first time difference, and calculate a second distance between the first terminal and the second base station according to the second time difference;

[0132] The third calculation module 443 is used to perform positioning calculation on the first terminal according to the first distance and the first position information, and the second distance and the second position information, to determine the estimated position of the first terminal.

[0133] Further, in a possible implementation of this embodiment, the time information includes a sending time, a receiving time, and a time redundancy, the sending time is the time when the first base station or the second base station sends the electronic tag data, the receiving time is the time when the first base station or the second base station receives the electronic tag data, and the time redundancy is the time period required for the electronic tag data to be sent from the positioning base station;

[0134] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the first calculation module 441 is also used for:

[0135] Obtain a first moment, a second moment, and a first time redundancy corresponding to the first base station, wherein the sending moment includes the first moment and the third moment, the receiving moment includes the second moment and the fourth moment, and the time redundancy includes the first time redundancy and the second time redundancy;

[0136] Performing addition and subtraction operations on the first moment, the second moment, and the first time redundancy to obtain a first time difference between the first terminal and the first base station;

[0137] Obtain a third time, a fourth time, and a second time redundancy corresponding to the first base station;

[0138] Perform addition and subtraction operations on the third moment, the fourth moment and the second time redundancy to obtain a second time difference between the first terminal and the second base station.

[0139] Furthermore, in a possible implementation of this embodiment, as Figure 5 As shown, the second positioning unit 45 includes:

[0140] A first acquisition module 451 is used to acquire the signal strength of the mobile hotspot data of the second terminal;

[0141] A determination module 452, configured to determine an estimated distance between the second terminal and the first terminal according to the signal strength;

[0142] A second acquisition module 453 is used to acquire parameter information of the mobile hotspot data of the second terminal, where the parameter information includes a channel frequency;

[0143] A first positioning module 454, configured to perform positioning calculation on the second terminal based on the channel frequency and the estimated distance to obtain location information of the second terminal;

[0144] The second positioning module 455 is used to perform positioning calculation on the first terminal according to the location information and the estimated distance of the second terminal to obtain the target location of the first terminal.

[0145] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.

[0146] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0147] Figure 6 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0148] like Figure 6 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 502 or a computer program loaded from a storage unit 508 to a RAM (Random Access Memory) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An I / O (Input / Output) interface 505 is also connected to the bus 504.

[0149] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0150] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the positioning method. For example, in some embodiments, the positioning method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to execute the aforementioned positioning method in any other appropriate manner (for example, by means of firmware).

[0151] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0152] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0153] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the foregoing.

[0154] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0155] The systems and techniques described herein may be implemented in a computing system that includes a backend component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a frontend component (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0156] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0157] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0158] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0159] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A positioning method, characterized in that: The method is applied to the server, and includes: In response to a positioning request sent by a first terminal, performing time calibration according to the timing information, wherein the first terminal has a positioning function; Positioning a first base station and a second base station to obtain first location information of the first base station and second location information of the second base station; the base station includes a first base station and a second base station, the first base station is a base station of the same operator or a base station of a friendly business with the largest signal strength within a preset distance range, and the second base station is a base station of the same operator or a base station of a friendly business that is closest to the first terminal within the preset distance range; the location information includes the first location information and the second location information; According to the timing information, calibrate the system time of the first base station and the second base station respectively; Generate first electronic tag data, and send the first electronic tag data to the base station, so that the base station sends the first electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp; Receiving the second electronic tag data sent by the base station, and acquiring time information corresponding to the timestamp from the second electronic tag data; Positioning the first terminal based on the location information of the base station and the time information to obtain an estimated location corresponding to the first terminal; The first terminal is positioned according to the mobile hotspot data of the second terminal within the preset distance range of the estimated position to obtain the target position of the first terminal, the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal.

2. The method according to claim 1, characterized in that: The method further comprises: If the density of the base stations of the operator within the preset distance range is lower than a preset density threshold, the base station of the friendly operator within the preset distance range is determined as the first base station or the second base station.

3. The method according to claim 1, characterized in that The locating the first terminal based on the position information and the time information to obtain an estimated position corresponding to the first terminal includes: Calculate, based on the time information, a first time difference between the first terminal and the first base station, and a second time difference between the first terminal and the second base station; Calculating a first distance between the first terminal and the first base station according to the first time difference, and calculating a second distance between the first terminal and the second base station according to the second time difference; Based on the first distance and the first position information, and the second distance and the second position information, a positioning calculation is performed on the first terminal to determine an estimated position of the first terminal.

4. The method according to claim 3, characterized in that The time information includes a sending time, a receiving time, and a time redundancy, wherein the sending time is the time when the first base station or the second base station sends the first electronic tag data, the receiving time is the time when the first base station or the second base station receives the first electronic tag data, and the time redundancy is the time period required for the first electronic tag data to be sent from the positioning base station; The calculating a first time difference between the first terminal and the first base station, and a second time difference between the first terminal and the second base station, comprises: Obtain a first moment, a second moment, and a first time redundancy corresponding to the first base station, wherein the sending moment includes the first moment and the third moment, the receiving moment includes the second moment and the fourth moment, and the time redundancy includes the first time redundancy and the second time redundancy; Performing addition and subtraction operations on the first moment, the second moment, and the first time redundancy to obtain a first time difference between the first terminal and the first base station; Obtain a third time, a fourth time, and a second time redundancy corresponding to the first base station; Perform addition and subtraction operations on the third moment, the fourth moment and the second time redundancy to obtain a second time difference between the first terminal and the second base station.

5. The method according to claim 1, characterized in that The locating the first terminal according to the mobile hotspot data of the second terminal within the preset distance range of the estimated position to obtain the target position of the first terminal includes: Acquire the signal strength of the mobile hotspot data of the second terminal, and determine the estimated distance between the second terminal and the first terminal according to the signal strength; Acquire parameter information of the mobile hotspot data of the second terminal, where the parameter information includes a channel frequency; Based on the channel frequency and the estimated distance, performing positioning calculation on the second terminal to obtain location information of the second terminal; The first terminal is positioned and calculated based on the location information and the estimated distance of the second terminal to obtain the target location of the first terminal.

6. A positioning device, characterized in that: include: A first calibration unit, configured to perform time calibration according to the timing information in response to a positioning request sent by a first terminal, wherein the first terminal has a positioning function; A third positioning unit locates the first base station and the second base station to obtain first location information of the first base station and second location information of the second base station; the base station includes the first base station and the second base station, the first base station is a base station of the same operator or a base station of a friendly business with the largest signal strength within a preset distance range, and the second base station is a base station of the same operator or a base station of a friendly business that is closest to the first terminal within the preset distance range; the location information includes the first location information and the second location information; A second calibration unit, configured to calibrate the system time of the first base station and the second base station respectively according to the timing information; A sending unit, configured to generate first electronic tag data, and send the first electronic tag data to the base station, so that the base station sends the first electronic tag data to the first terminal; wherein the first electronic tag data carries a unique timestamp; an acquiring unit, configured to receive the second electronic tag data sent by the base station, and acquire time information corresponding to the timestamp from the second electronic tag data; A first positioning unit, configured to locate the first terminal based on the position information of the base station and the time information, and obtain an estimated position corresponding to the first terminal; The second positioning unit is used to locate the first terminal according to the mobile hotspot data of the second terminal within the preset distance range of the estimated position to obtain the target position of the first terminal, the second terminal is a terminal that has not initiated a positioning request within the preset distance range, and the second terminal does not include the first terminal.

7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, a non-transitory computer-readable storage medium, storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.

9. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5.