CN117956393A - Terminal equipment positioning method, device, computer equipment and storage medium - Google Patents

Terminal equipment positioning method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117956393A
CN117956393A CN202211333775.1A CN202211333775A CN117956393A CN 117956393 A CN117956393 A CN 117956393A CN 202211333775 A CN202211333775 A CN 202211333775A CN 117956393 A CN117956393 A CN 117956393A
Authority
CN
China
Prior art keywords
base station
base stations
terminal equipment
information
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211333775.1A
Other languages
Chinese (zh)
Inventor
张振国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weilai Mobile Technology Co ltd
Original Assignee
Weilai Mobile Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weilai Mobile Technology Co ltd filed Critical Weilai Mobile Technology Co ltd
Priority to CN202211333775.1A priority Critical patent/CN117956393A/en
Publication of CN117956393A publication Critical patent/CN117956393A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a terminal equipment positioning method, a terminal equipment positioning device, a computer equipment and a storage medium. The method comprises the following steps: acquiring the number of base stations identified in a location area of a terminal device and information of the base stations; determining a position positioning base station in the base stations according to the relation between the number of the base stations identified by the terminal equipment and a preset base station number threshold; and outputting the information of the position locating base station to an application program to instruct the application program to determine the locating position information of the terminal equipment in the position area according to the information of the position locating base station. By adopting the method, when an application program is positioned in a mode of integrating the three-party positioning SDK, the base station can be subjected to fuzzification processing, and then the position information is subjected to fuzzification.

Description

Terminal equipment positioning method, device, computer equipment and storage medium
Technical Field
The disclosure relates to the field of positioning technologies, and in particular, to a terminal device positioning method, a terminal device positioning device, a computer device and a storage medium.
Background
With the development of networks, various information is increasingly publicized and transparent, and thus, more attention is paid to personal privacy information of the user. And the location information is taken as one of personal privacy information, and a plurality of application programs can acquire the current location authority when acquiring the application authority.
Currently, for the characteristic that an application program acquires position authority, google pushes out fuzzy position characteristics in Android 12, when the application requests position authority, a user can select whether to grant an accurate position or a fuzzy position, and the application of the authorized fuzzy position cannot acquire accurate position information of the user; for partial applications (such as a browser, weather and the like), the provision of the fuzzy location does not affect normal business services, and privacy security of the user can be effectively protected.
However, the fuzzy location scheme of Google only supports the fuzzy processing of location information located by a system, and most application programs on the market at present are located by integrating a three-party location SDK (software defined language) mode, and the location information is not directly obtained by the system. Therefore, the system only participates in providing the base station and the WIFI information, but does not know that the application program is acquiring the position authority at the moment, and the position information cannot be subjected to blurring processing.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a terminal device positioning method, apparatus, computer device, and storage medium capable of blurring a base station and further blurring position information when an application program is positioned by integrating a three-way positioning SDK.
In a first aspect, the present disclosure provides a terminal device positioning method. The method comprises the following steps:
Acquiring the number of base stations identified in a location area of a terminal device and information of the base stations;
determining a position positioning base station in the base stations according to the relation between the number of the base stations identified by the terminal equipment and a preset base station number threshold;
And outputting the information of the position locating base station to an application program to instruct the application program to determine the locating position information of the terminal equipment in the position area according to the information of the position locating base station.
In one embodiment, the determining the position location base station in the base stations according to the relationship between the number of base stations identified by the terminal device and the preset base station number threshold value includes:
And determining a position locating base station in the base stations according to the base stations connected with the terminal equipment in response to the number of the base stations being smaller than or equal to a preset base station number threshold.
In one embodiment, the determining the position locating base station in the base stations according to the relationship between the number of base stations identified by the terminal device and the preset base station number threshold value further includes:
And determining the position positioning base stations in the base stations according to the total number of the historical base stations connected with the terminal equipment and the preset connection threshold value in response to the number of the base stations being larger than the preset base station number threshold value.
In one embodiment, the determining the position location base station in the base stations according to the total number of the historical base stations connected with the terminal equipment and a preset connection threshold value includes:
And determining a position locating base station in the base stations according to the signal strength of the historical base stations connected with the terminal equipment in response to the total number of the historical base stations connected with the terminal equipment being smaller than a preset connection threshold.
In one embodiment, the determining the position location base station in the base stations according to the signal strength of the historical base stations connected with the terminal equipment includes:
and acquiring a base station with the weakest signal strength in the historical base station connected with the terminal equipment, and determining a position positioning base station in the base station according to the base station with the weakest signal strength.
In one embodiment, the determining the position location base station in the base stations according to the total number of the historical base stations connected with the terminal equipment and a preset connection threshold value further includes:
Responding to the total number of the historical base stations connected with the terminal equipment is larger than a preset connection threshold value, and acquiring the historical base stations connected with the terminal equipment and the current base stations connected with the terminal equipment;
and determining the position positioning base station in the base stations according to the base stations except the current base station in the historical base stations.
In one embodiment, the determining the position location base station in the base stations according to the base stations except the current base station in the historical base stations includes:
Acquiring a base station with the same area code as the information of the current base station in the historical base station to obtain a first base station;
Deleting the current base station from the first base station to obtain a second base station;
And randomly selecting a base station from the second base stations, and determining a position locating base station in the base stations according to the randomly selected base station.
In one embodiment, the method further comprises:
Under the condition that the position information acquisition request of the application program is received each time, determining a position positioning base station corresponding to the received position information acquisition request according to the base stations except the current base station in the historical base stations; the position acquisition request comprises a request for acquiring information of the position positioning base station of the terminal equipment by the application program, and the position positioning base stations corresponding to the position acquisition request are different each time.
In one embodiment, the acquiring the number of base stations identified by the terminal device in the location area and the information of the base stations includes:
Acquiring a base station identified by a terminal device in a location area and information of the base station, wherein the information of the base station at least comprises: operator information, area code and base station code;
And obtaining a unique identification code of each base station according to the operator information, the area code and the base station code corresponding to each base station, wherein the unique identification code is used for identifying the base station and acquiring the information of the base station corresponding to each base station.
In a second aspect, the present disclosure further provides a terminal device positioning apparatus. The device comprises:
the data acquisition module is used for acquiring the number of the base stations identified in the position area of the terminal equipment and the information of the base stations;
The base station determining module is used for determining a position positioning base station in the base stations according to the relation between the number of the base stations identified by the terminal equipment and a preset base station number threshold value;
and the base station output module is used for outputting the information of the position positioning base station to an application program so as to instruct the application program to determine the positioning position information of the terminal equipment in the position area according to the information of the position positioning base station.
In a third aspect, the present disclosure also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of any of the method embodiments described above when the processor executes the computer program.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of any of the method embodiments described above.
In a fifth aspect, the present disclosure also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of any of the method embodiments described above.
In the above embodiments, after the number of identified base stations and the information of the base stations are acquired, the environment corresponding to the current location area can be determined according to the relationship between the number of identified base stations and the preset base station number threshold, so that the location base station which needs to be located to the application program is determined, and the location base station is fed back to the application program, where the location base station is usually different from the actual base station, or the coverage range of the location base station is very large, so that when the application program locates by integrating the three-party location SDK, the location base station can receive the location information to determine the location of the terminal device, and further, the accurate location information of the current terminal device can not be acquired, and the location information blurring mode can be realized, thereby ensuring the privacy security of the user. And in the present case, the base station identified in the location area determines the location positioning base station, so that the area with the blurred location information is not crossed in the normal case, and thus, inaccurate service of the application program is not caused.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the prior art, the drawings that are required in the detailed description or the prior art will be briefly described, it will be apparent that the drawings in the following description are some embodiments of the present disclosure, and other drawings may be obtained according to the drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a schematic diagram of an application environment of a terminal device positioning method in one embodiment;
FIG. 2 is a flow chart of a method for locating a terminal device in one embodiment;
FIG. 3 is a schematic diagram of locations of a base station, a location area, and a terminal device in one embodiment;
FIG. 4 is a flow chart of step S204 in one embodiment;
FIG. 5 is a schematic diagram illustrating positions of a base station number less than or equal to a base station number threshold according to one embodiment;
FIG. 6 is a schematic diagram of locations where the number of base stations is greater than a base station number threshold, according to one embodiment;
FIG. 7 is a flow chart of step S306 in one embodiment;
FIG. 8 is a flowchart illustrating the step S408 in one embodiment;
FIG. 9 is a flow chart of step S202 in one embodiment;
fig. 10 is a flowchart of a terminal device positioning method in another embodiment;
FIG. 11 is a block diagram schematically illustrating the structure of a terminal device positioning apparatus in one embodiment;
FIG. 12 is a schematic diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, the present disclosure will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims herein and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or device.
In this document, the term "and/or" is merely one association relationship describing the associated object, meaning that three relationships may exist. For example, a and/or B may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
As described in the background, android supports the following levels of positional information accuracy: ambiguous locations and precise locations. The ambiguous location may typically be located within 3 square kilometers and the precise location typically within 100 meters. Currently, when a positioning method such as GPS is used to perform a position blurring process, the resulting blurred position processed in this way is often displaced from the actual position, which may lead to inaccurate service of an application program. For example, the application program is a weather forecast program, the real area of the user is in A1 area of a city, and the fuzzy area after positioning is possibly caused to be in A2 area of a city by the way of performing fuzzy processing through a GPS, and the weather forecast result provided by the weather forecast program is inaccurate because the area after positioning becomes the A2 area.
Therefore, to solve the above-mentioned problem, the embodiment of the present disclosure provides a terminal device positioning method, which can be applied to an application environment as shown in fig. 1. Wherein the terminal device 102 communicates with the application server 104 via a network. The terminal device 102 transmits and receives signals transmitted by at least one base station 106. The terminal device 102 acquires the number of base stations 106 identified in its own location area and information of each base station. The terminal device 102 determines the position location base station in the identified base stations 106 according to the relationship between the number of base stations 106 identified by the terminal device and the preset base station number threshold. The terminal device 102 outputs information of the position location base station to an application program installed in the terminal device, and the application program transmits the information of the position location base station to an application program server to instruct the application program server to determine positioning position information of the terminal device 102 in the position area according to the information of the position location base station. The terminal device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The application server 104 may be implemented as a stand-alone server or as a cluster of servers.
In one embodiment, as shown in fig. 2, a terminal device positioning method is provided, and the method is applied to the terminal device 102 in fig. 1 for illustration, and includes the following steps:
S202, the number of the base stations identified in the position area by the terminal equipment and the information of the base stations are obtained.
The location area may be an area where the current terminal device is located, and the range of the location area may be determined according to an area where the current terminal device is located and an area identified by the terminal device, for example, an area with a radius in a range of 500 meters or 1000 meters centered on the terminal device, and in some embodiments of the present disclosure, the range of the location area is not specifically limited, so long as the location area includes an area that can be identified by the terminal device. The information of the base station may include various coding information of the base station, such as country code (MCC, mobile Country Code), operator (MNC, mobile Network Code), area code (LAC, location Area Code), base station code (CELLID, cell Identity) and the like, corresponding to the base station. Wherein the base station code may also be referred to as a base station number. The mobile country number (MCC) consists of a three digit decimal number indicating the country to which the mobile subscriber (or system) belongs, typically in the range of 000-999 decimal codes. An operator (MNC) is a set of decimal codes that uniquely represent a particular gsm plmn network within a country (defined by MCC). An operator (MNC) may consist of two decimal numbers, with a coding range of 00-99 decimal. To determine the location of the mobile station, the coverage area of each gsm plmn is divided into a number of location areas, and a region code (LAC) is used to identify the different location areas. The area code (LAC) is contained in the LAI, and is composed of two bytes, and is coded by 16-ary. The available range is 0001-FFFEH, the code groups 0000H and FFFFH are not available, and one area code may contain one or more cells. In order to uniquely represent each cell in a gsm plmn, the network operator needs to assign a code to all cells in the network, namely: base station Coding (CELLID), which is combined with area code (LAC) to identify each BTS in the network and its covered cells, consists of 16 bits and has a coding capacity of 65536.
Specifically, when the application program needs to locate the terminal device, an instruction needs to be sent to the terminal device. After receiving the instruction, the terminal equipment needs to feed back a base station information to the application program. The real base station information cannot be fed back due to the need for blurring. Thus, the terminal device can acquire the number of base stations it recognizes, and information of each base station recognized, within the location area. Typically, the terminal device recognizes at least two base stations, thereby implementing cross-station roaming.
In some exemplary embodiments, as shown in fig. 3, within the location area, i.e., the area identifiable by the terminal device, there are the following base stations: base station a, base station B, and base station C. Typically, the terminal device receives signals from base station a, base station B and base station C simultaneously within the location area. Thus, in the location area, the terminal device can acquire the number of base stations it recognizes from the received signals of different base stations. The relevant information of the base station may then be obtained by some instruction (e.g., an AT instruction by the AM900E module).
S204, determining the position positioning base station in the base stations according to the relation between the number of the base stations identified by the terminal equipment and the preset base station number threshold value.
The position locating base station may be a base station that the terminal device feeds back to the application program, and is different from a base station that the actual terminal device is connected to, so as to implement blurring of the position of the application program location. The base station number threshold may generally be a threshold that determines whether the base stations are dense or sparse within the current location area. When the location area is in a suburban or relatively remote area, the number of surrounding identifiable base stations is typically relatively small. When the location area is in a city center, a densely populated cell, etc., the number of base stations identifiable around the location area is generally relatively large. Therefore, a corresponding base station number threshold may be set to determine the number of base stations in the location area, and thus determine the environment corresponding to the current location area.
Specifically, the terminal device may compare the number of identified base stations with a preset base station number threshold, and further obtain a relationship between the number of identified base stations and the base station number threshold. The relationship may include: the number of the base stations is smaller than or equal to a preset base station number threshold, and the number of the base stations is larger than the preset base station number threshold. And determining the position location base station fed back to the application program by the current terminal equipment according to different relations. When the number of the base stations is smaller than or equal to a preset base station number threshold, the number of the peripheral base stations in the current position area can be determined to be smaller, and the coverage range of each base station is wider, so that the position location base station can be determined in the identified base stations through a certain rule or directly according to the base stations connected with the terminal equipment at present. And when the number of the base stations is larger than the preset base station number threshold, the base stations in the current terminal equipment can be determined to be more, and the position positioning base stations can be determined according to certain rules or random selection except the base stations connected with the current terminal equipment.
S206, outputting the information of the position locating base station to an application program to instruct the application program to determine the locating position information of the terminal equipment in the position area according to the information of the position locating base station.
The application program may be a program that needs to acquire the current terminal device location information.
Specifically, after the terminal device determines the position location base station, information of the position location base station may be output to the application program. After the application program obtains the information of the position location base station, the position information corresponding to the position location base station can be queried through the base station Code (CELLID) and the area code (LAC) of the position location base station, so as to determine the positioning position information of the terminal equipment in the position area. The application may typically determine the location of the terminal device based on the principles of base station positioning. The general principle of base station positioning is as follows: and acquiring downlink pilot signals of different base stations, obtaining TOA (TIme of Arrival) or TDOA (TIME DIFFERENCE of Arrival TIme difference) of the downlink pilot signals of the different base stations, and generally adopting a triangular formula estimation algorithm according to the measurement result and combining the coordinates of the base stations to calculate the position of the terminal equipment.
In the terminal equipment positioning method, after the number of the identified base stations and the information of the base stations are acquired, the environment corresponding to the current position area can be determined according to the relation between the number of the identified base stations and the preset base station number threshold value, so that the position positioning base stations needing to be fed back to the application program are determined, the information of the position positioning base stations is fed back to the application program, and the position positioning base stations are usually different from the actual base stations or have a large coverage range, therefore, when the application program performs positioning in a mode of integrating a three-party positioning SDK, the accurate position information of the current terminal equipment cannot be acquired when the position positioning base stations determine the position of the terminal equipment, the position information blurring mode can be realized, and the privacy safety of users is ensured. And in the present case, the base station identified in the location area determines the location positioning base station, so that the area with the blurred location information is not crossed in the normal case, and thus, inaccurate service of the application program is not caused.
In one embodiment, as shown in fig. 4, the determining a position location base station in the base stations according to the relationship between the number of base stations identified by the terminal device and a preset base station number threshold value includes:
s302, determining the relation between the number of the base stations identified by the terminal equipment and a preset base station number threshold value.
S304, determining a position locating base station in the base stations according to the base stations connected with the terminal equipment in response to the number of the base stations being smaller than or equal to a preset base station number threshold.
The base station connected to the terminal device may be the base station with the strongest communication quality or signal with the terminal device among the identified base stations.
Specifically, after determining the relationship between the number of base stations identified by the terminal device and the threshold of the number of base stations, when the number of base stations is less than or equal to the threshold of the number of base stations set in advance, it may be determined that the number of base stations in the current location area is less, and the coverage area of each base station identified by the current terminal device is larger. Therefore, the positions in the coverage area of the base station can be positioned to the positions of the base station, so that the position blurring effect of the coverage area of the base station is achieved. Thus, the position location base station can be determined from the base station to which the terminal device is connected.
In some exemplary embodiments, as shown in fig. 5, two base stations are identified in the location area by the terminal device, and the base station number threshold may be 3. Base station a and base station B are examples. The coverage area of the base station a is the location area A1, and the coverage area of the base station B is the location area A2. The coverage area of each base station of the base station A and the base station B is larger, and the terminal equipment is closer to the base station A, so that the terminal equipment establishes connection with the base station A, and the base station A can be determined to be a position location base station. The location of base station a may be defined as any one of location areas a.
S306, determining the position positioning base station in the base stations according to the total number of the historical base stations connected with the terminal equipment and the preset connection threshold value in response to the number of the base stations being larger than the preset base station number threshold value.
Wherein, the historical base station can be a base station connected in a certain time, and can comprise: a currently connected base station and a base station disconnected after having been connected. The certain time may be a time within a certain range before and after the application program needs to acquire the position location base station in this disclosure, for example, the time for acquiring the base station of the position location base station is 8:00, then a certain time period may be 7:50-8:10 times, it is understood that the above is for illustration only. The history base station may be a base station connected to the terminal device in the location area after the terminal device recognizes the base station in the location area. Taking fig. 5 as an example, after the terminal device identifies the base station a and the base station B, the terminal device connects with the base station a, so that it can be determined that the base station a can be a history base station, and when the terminal device moves to the location area A2, the terminal device connects with the base station B, so that the base station B can also be a history base station. The connection threshold may be determined based on the number of base stations identified by the terminal device, and in some embodiments of the present disclosure the value of a particular connection threshold is not limited.
Specifically, when the number of base stations is greater than the preset threshold value of the number of base stations, it may be determined that the number of base stations around the area where the current terminal device is located is greater, so that the total number of history base stations connected to the terminal device needs to be acquired at this time, and when the total number of history base stations is greater than the preset threshold value of connection, it may be determined that the terminal device moves in a large range in the location area, so that it is required to determine, according to a certain rule, for example, a base station with the weakest signal connected to the terminal device or a base station that returns randomly to other than the base station currently connected to the terminal device, and further determine the location positioning base station. When the total number of the historical base stations is smaller than or equal to the preset connection threshold value, the terminal equipment can be determined to be in a small range or not moved in the position area, so that the base station with the weakest or weaker signal connected with the terminal equipment can be determined, and further the position positioning base station can be determined.
In an exemplary embodiment, as shown in fig. 6, when the terminal device recognizes that the base station is: and if the number of the identified base stations is greater than the threshold value of the base stations, determining that the number of the base stations around the area where the current terminal equipment is positioned is greater. And the terminal equipment in 6 is closest to the base station F, and the recording base station C is farthest, the position location base station may be any base station other than the base station F or the base station C.
In this embodiment, the number of base stations in the current location area and the corresponding range covered by each base station in the current location area can be determined by the number of base stations and the preset base station number threshold, and when the number of base stations is small, the coverage area of the base stations can be wider, so that the location base station can be determined only according to the base stations connected with the terminal device, and further, the location position can be blurred by blurring the location position in which the base stations are located. When the number of the base stations is large, whether the base stations move in the position area or not can be determined according to the connection threshold value, so that the corresponding position positioning base stations are determined, and the determined position positioning base stations are not the base stations connected with the current terminal equipment, so that blurring of positions of the actually connected base stations can be realized.
In one embodiment, as shown in fig. 7, the determining a position location base station in the base stations according to the total number of the historical base stations connected with the terminal device and a preset connection threshold value includes:
S402, determining the relation between the total number of the historical base stations connected with the terminal equipment and a preset connection threshold value.
S404, determining the position locating base station in the base stations according to the signal intensity of the history base stations connected with the terminal equipment in response to the total number of the history base stations connected with the terminal equipment is smaller than a preset connection threshold value.
The signal strength may be generally understood as the signal strength of the terminal device, and may generally refer to the downlink signal strength of the base station.
Specifically, after determining the relationship between the total number of the history base stations connected with the terminal device and the preset connection threshold, when the total number of the history base stations is smaller than the preset connection threshold, it may be determined that the current terminal device moves in a small range within the location area or does not move, and at this time, the signal strength corresponding to each base station identified by the terminal device may be obtained. And comparing the signal strength with a preset signal strength threshold value so as to find a base station with weaker signal, wherein the base station can be a position location base station. If more than two base stations are found to be weak base stations according to the signal strength threshold, any one of the weak base stations can be randomly determined to be the position location base station. In general, the base station with weak signal is far away from the terminal device, so the current position of the terminal device can be obscured by the base station with weak signal.
The determining a position locating base station in the base stations according to the signal intensity of the historical base stations connected with the terminal equipment comprises the following steps:
and acquiring a base station with the weakest signal strength in the historical base station connected with the terminal equipment, and determining a position positioning base station in the base station according to the base station with the weakest signal strength.
Specifically, the base station with the weakest signal strength can be selected under normal conditions, and the position location base station is determined according to the base station with the weakest signal strength, so as to achieve the best effect of blurring the position of the current terminal equipment.
S406, responding to the total number of the history base stations connected with the terminal equipment to be larger than a preset connection threshold value, and acquiring the history base stations connected with the terminal equipment and the current base stations connected with the terminal equipment.
S408, determining the position positioning base station in the base stations according to the base stations except the current base station in the historical base stations.
Specifically, when the total number of the historical base stations is greater than the preset connection threshold, it can be determined that the terminal device moves in the location area, and if the returned signal strength is weaker or the weakest, the signal strength of each base station needs to be determined at all times, which can additionally waste computing resources. The position location base station can be determined randomly among the history base stations except the current base station. Thereby realizing the effect of position blurring in the same area.
In this embodiment, whether the terminal device moves in the current location area can be determined through the connection threshold, and if the terminal device does not move, the base station with the weakest signal can be obtained, so as to achieve the effect of blurring the location of the current terminal device. If the mobile station moves, the base stations except the current base station can be fed back, so that the effect of position blurring in the same position area is achieved.
In one embodiment, as shown in fig. 8, the determining, according to the base stations other than the current base station in the historical base stations, a position location base station in the base stations includes:
S502, acquiring a base station with the same area code as the information of the current base station in the historical base station to obtain a first base station;
s504, deleting the current base station from the first base station to obtain a second base station;
s506, randomly selecting a base station from the second base stations, and determining a position locating base station in the base stations according to the randomly selected base station.
Specifically, if the terminal device is located near the connection of two different areas, two different area codes will usually exist in the obtained base station information. Therefore, when such a situation exists, the base station with the same area code as the information of the current base station in the historical base station can be obtained, and the first base station is obtained. And deleting the current base station in the first base station to obtain a second base station, wherein the area code in the second base station is the same as the area code of the current base station, so that when the current position information is determined through the second base station, the cross-regional condition does not exist, one base station is randomly selected in the second base station, and the randomly selected base station can be determined as the position positioning base station.
In this embodiment, if the terminal device is near the connection between two areas, the first base station with the same area code needs to be determined by the current base station, so that the finally determined location information cannot cross the area, and the inaccuracy of the application service cannot be caused.
In one embodiment, the method further comprises:
Under the condition that the position information acquisition request of the application program is received each time, determining a position positioning base station corresponding to the received position information acquisition request according to the base stations except the current base station in the historical base stations;
the position acquisition request comprises a request for acquiring information of the position positioning base station of the terminal equipment by the application program, and the position positioning base stations corresponding to the position acquisition request are different each time.
Specifically, the application program may transmit a location information acquisition request to the terminal device each time the application program acquires the base station to which the terminal device is connected. And the terminal equipment determines the position locating base station corresponding to the position information acquisition request according to the base stations except the current base station in the historical base stations.
In some exemplary embodiments, taking the example of an application sending three location information acquisition requests, the three location information acquisition requests may be GET1, GET2, and GET3, respectively. The history base station includes: base station a, base station B, base station C, and base station D. Wherein, the base station D is the currently connected base station. The corresponding base station acquired by GET1 may be base station a, the corresponding base station acquired by GET2 may be base station B, and the corresponding base station acquired by GET3 may be base station C. Therefore, the base stations obtained by each position information obtaining request are different, and the regional position blurring effect can be achieved. It is to be understood that the foregoing is only illustrative.
In this embodiment, when the application program obtains the base station information, the base station information fed back by the terminal device is different, so that the actual base station where the current terminal device is located can be blurred, and a better area blurring effect is achieved.
In one embodiment, as shown in fig. 9, the acquiring the number of base stations identified by the terminal device in the location area and the information of the base stations includes:
s602, acquiring a base station identified by a terminal device in a location area and information of the base station, wherein the information of the base station at least comprises: operator information, area code and base station code;
S604, obtaining a unique identification code of each base station according to the operator information, the area code and the base station code corresponding to each base station, wherein the unique identification code is used for identifying the base station and acquiring the information of the base station corresponding to each base station.
Specifically, the terminal device may acquire the identified base stations in the location area, and information corresponding to each base station, where the information of the base station may include: country code (MCC, mobile Country Code), operator information (MNC, mobile Network Code), area code (LAC, location Area Code) and base station code (CELLID, cell Identity), each base station may be distinguished by only the operator information, area code and base station code in some embodiments of the present disclosure. The terminal can combine the operator information, the area code and the base station code corresponding to each base station according to a certain rule to obtain a unique identification code corresponding to each base station. The unique identification code may then be used to obtain base station information for each base station.
In some exemplary embodiments, the storage may be performed in a key-value pair manner, the state code+the operator information+the area code is used as a key, the base station code is used as a value, and the storage may also be directly performed in a code manner, for example, in a state code+the operator information+the area code+the base station code manner, where the specific baseline information storage manner is not limited in the embodiments of the present disclosure, so long as the information of the base station is acquired through the corresponding storage manner after the storage.
In this embodiment, the information of each base station can be conveniently acquired later by storing the unique identification code, so that the speed of outputting the information of the position location base station is improved.
In one embodiment, the present disclosure further provides another terminal device positioning method, as shown in fig. 10, where the method includes:
s702, acquiring a base station identified in a location area of a terminal device and information of the base station, wherein the information of the base station at least comprises: operator information, area codes, and base station codes.
S704, obtaining a unique identification code of each base station according to the operator information, the area code and the base station code corresponding to each base station, wherein the unique identification code is used for identifying the base station and acquiring the information of the base station corresponding to each base station.
S706, determining the relation between the number of the base stations identified by the terminal equipment and a preset base station number threshold value.
S708, determining a position locating base station in the base stations according to the base stations connected with the terminal equipment in response to the number of the base stations being smaller than or equal to a preset base station number threshold.
S710, determining the relation between the total number of the historical base stations connected with the terminal equipment and the preset connection threshold value in response to the number of the base stations being larger than the preset base station number threshold value.
S712, determining the position locating base station in the base stations according to the signal strength of the history base stations connected with the terminal equipment in response to the total number of the history base stations connected with the terminal equipment being smaller than the preset connection threshold.
S714, under the condition that the position information acquisition request of the application program is received each time, determining the position positioning base station corresponding to the received position information acquisition request according to the base stations except the current base station in the historical base stations.
S716, acquiring the history base stations connected with the terminal equipment and the current base stations connected with the terminal equipment in response to the total number of the history base stations connected with the terminal equipment being larger than a preset connection threshold.
S718, the base station with the same area code as the information of the current base station in the historical base station is obtained, and a first base station is obtained.
S720, deleting the current base station from the first base station to obtain a second base station.
S722, randomly selecting a base station from the second base stations, and determining the position positioning base station in the base stations according to the randomly selected base stations.
And S724, outputting the information of the position locating base station to an application program so as to instruct the application program to determine the locating position information of the terminal equipment in the position area according to the information of the position locating base station.
Reference may be made to the above embodiments for specific operation and limitation in this embodiment, and repeated descriptions are omitted here.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the disclosure also provides a terminal equipment positioning device for implementing the above related terminal equipment positioning method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more terminal device positioning devices provided below may refer to the limitation of the terminal device positioning method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 11, there is provided a terminal device positioning apparatus 800, including: a data acquisition module 802, a base station determination module 804, and a base station output module 806, wherein:
A data acquisition module 802, configured to acquire the number of base stations identified in the location area by the terminal device and information of the base stations;
A base station determining module 804, configured to determine a position location base station in the base stations according to a relationship between the number of base stations identified by the terminal device and a preset base station number threshold;
The base station output module 806 is configured to output information of the position location base station to an application program, so as to instruct the application program to determine positioning location information of the terminal device in the location area according to the information of the position location base station.
In one embodiment of the apparatus, the base station determining module 804 includes: and the first determining module is used for determining a position positioning base station in the base stations according to the base stations connected with the terminal equipment in response to the number of the base stations being smaller than or equal to a preset base station number threshold value.
In one embodiment of the apparatus, the base station determining module 804 further includes: and the second determining module is used for determining the position positioning base station in the base stations according to the total number of the historical base stations connected with the terminal equipment and the preset connection threshold value in response to the number of the base stations being larger than the preset base station number threshold value.
In an embodiment of the apparatus, the second determining module comprises: a signal strength determination module;
the signal strength determining module is used for determining a position locating base station in the base stations according to the signal strength of the historical base stations connected with the terminal equipment in response to the fact that the total number of the historical base stations connected with the terminal equipment is smaller than a preset connection threshold value.
In one embodiment of the apparatus, the signal strength determining module is further configured to obtain a base station with the weakest signal strength in the historical base stations connected to the terminal device, and determine a position location base station in the base stations according to the base station with the weakest signal strength.
In an embodiment of the apparatus, the second determining module further comprises: the base station determining submodule is used for acquiring the historical base stations connected with the terminal equipment and the current base stations connected with the terminal equipment in response to the fact that the total number of the historical base stations connected with the terminal equipment is larger than a preset connection threshold value; and determining the position positioning base station in the base stations according to the base stations except the current base station in the historical base stations.
In one embodiment of the apparatus, the base station determining submodule is further configured to obtain a base station in the history base station, where the base station is the same as an area code in information of a current base station, to obtain a first base station; deleting the current base station from the first base station to obtain a second base station; and randomly selecting a base station from the second base stations, and determining a position locating base station in the base stations according to the randomly selected base station.
In one embodiment of the apparatus, the base station determining submodule is further configured to determine, in each case of receiving a location information acquisition request of the application program, a location positioning base station corresponding to the location information acquisition request received at the time according to a base station other than the current base station in the historical base stations; the position acquisition request comprises a request for acquiring information of the position positioning base station of the terminal equipment by the application program, and the position positioning base stations corresponding to the position acquisition request are different each time.
In one embodiment of the apparatus, the data acquisition module 802 includes: the acquiring submodule is used for acquiring the base station identified by the terminal equipment in the position area and the information of the base station, and the information of the base station at least comprises: operator information, area code and base station code;
The coding module is used for obtaining the unique identification code of each base station according to the operator information, the area code and the base station code corresponding to each base station, wherein the unique identification code is used for identifying the base station and obtaining the information of the base station corresponding to each base station.
The above-mentioned respective modules in the terminal device positioning apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 12. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store information of the base station. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a terminal device positioning method.
Those skilled in the art will appreciate that the structures shown in FIG. 12 are only block diagrams of portions of structures associated with the disclosed aspects and are not limiting as to the computer device on which the disclosed aspects may be implemented, and that a particular computer device may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of any of the method embodiments described above when the computer program is executed.
In one embodiment, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, implements the steps of any of the method embodiments described above.
In an embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, implements the steps of any of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided by the present disclosure may include at least one of non-volatile and volatile memory, among others. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the various embodiments provided by the present disclosure may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors involved in the embodiments provided by the present disclosure may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic, quantum computing-based data processing logic, etc., without limitation thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples have expressed only a few embodiments of the present disclosure, which are described in more detail and detail, but are not to be construed as limiting the scope of the present disclosure. It should be noted that variations and modifications can be made by those skilled in the art without departing from the spirit of the disclosure, which are within the scope of the disclosure. Accordingly, the scope of the present disclosure should be determined from the following claims.

Claims (10)

1. A method for locating a terminal device, the method comprising:
Acquiring the number of base stations identified in a location area of a terminal device and information of the base stations;
determining a position positioning base station in the base stations according to the relation between the number of the base stations identified by the terminal equipment and a preset base station number threshold;
And outputting the information of the position locating base station to an application program to instruct the application program to determine the locating position information of the terminal equipment in the position area according to the information of the position locating base station.
2. The method according to claim 1, wherein said determining a position location base station among the base stations according to a relationship with the number of base stations identified by the terminal device and a preset base station number threshold value comprises:
And responding to the number of the base stations identified by the terminal equipment to be less than or equal to a preset base station number threshold, and taking the base stations connected with the terminal equipment as the position locating base stations.
3. The method of claim 1, wherein determining the position location base station among the base stations according to a relationship with the number of base stations identified by the terminal device and a preset base station number threshold value, further comprises:
And determining the position positioning base stations in the base stations according to the total number of the historical base stations connected with the terminal equipment and the preset connection threshold value in response to the number of the base stations being larger than the preset base station number threshold value.
4. A method according to claim 3, wherein said determining a position location base station of said base stations based on a total number of historic base stations connected to said terminal device and a preset connection threshold comprises:
And determining a position locating base station in the base stations according to the signal strength of the historical base stations connected with the terminal equipment in response to the total number of the historical base stations connected with the terminal equipment being smaller than a preset connection threshold.
5. The method of claim 4, wherein said determining a position location base station of said base stations based on signal strengths of historical base stations connected to said terminal device comprises:
and acquiring a base station with the weakest signal strength in the historical base station connected with the terminal equipment, and determining a position positioning base station in the base station according to the base station with the weakest signal strength.
6. A method according to claim 3, wherein said determining a position location base station of said base stations based on a total number of historic base stations connected to said terminal device and a preset connection threshold value, further comprises:
Responding to the total number of the historical base stations connected with the terminal equipment is larger than a preset connection threshold value, and acquiring the historical base stations connected with the terminal equipment and the current base stations connected with the terminal equipment;
and determining the position positioning base station in the base stations according to the base stations except the current base station in the historical base stations.
7. A terminal device positioning apparatus, the apparatus comprising:
the data acquisition module is used for acquiring the number of the base stations identified in the position area of the terminal equipment and the information of the base stations;
The base station determining module is used for determining a position positioning base station in the base stations according to the relation between the number of the base stations identified by the terminal equipment and a preset base station number threshold value;
and the base station output module is used for outputting the information of the position positioning base station to an application program so as to instruct the application program to determine the positioning position information of the terminal equipment in the position area according to the information of the position positioning base station.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202211333775.1A 2022-10-28 2022-10-28 Terminal equipment positioning method, device, computer equipment and storage medium Pending CN117956393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211333775.1A CN117956393A (en) 2022-10-28 2022-10-28 Terminal equipment positioning method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211333775.1A CN117956393A (en) 2022-10-28 2022-10-28 Terminal equipment positioning method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117956393A true CN117956393A (en) 2024-04-30

Family

ID=90796822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211333775.1A Pending CN117956393A (en) 2022-10-28 2022-10-28 Terminal equipment positioning method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117956393A (en)

Similar Documents

Publication Publication Date Title
US10473475B2 (en) Method and apparatus for determining a location of a point of interest
CN111352069B (en) Indoor positioning method, server, storage medium and program product
US10289695B2 (en) Computerized system and method for performing a location-based search
EP3308559B1 (en) Method and system for determining a positioning interval of a mobile terminal
CN111935820B (en) Positioning implementation method based on wireless network and related equipment
CN107567071B (en) Method and equipment for inquiring wireless hotspot
US20190090121A1 (en) System and method for providing location information
CN117956393A (en) Terminal equipment positioning method, device, computer equipment and storage medium
CN105025436A (en) Information acquiring method and mobile terminal
CN114973524A (en) Return processing method and device of shared equipment and computer equipment
CN113873431B (en) Building network quality presentation method and device
Cui et al. KNN search-based trajectory cloaking against the Cell-ID tracking in cellular network
CN113395655A (en) Fingerprint positioning method, device, equipment and storage medium
CN104735237A (en) Path prediction method and interactive voice response (IVR) path prediction system
CN113411745B (en) Fingerprint positioning method, device, equipment and storage medium based on main neighbor signal
CN113810992B (en) Data processing method and device
CN112468958B (en) Region determination method and device, electronic equipment and computer readable storage medium
EP4092981A1 (en) Distributed private location verification and enhancement
CN115696186B (en) Offline sharing device positioning method, device and system
US9726500B2 (en) Method and system for generating synthetic location information
CN112867145B (en) Base station positioning method, device, computer equipment and storage medium
CN113556790B (en) Network type switching method, device, computer equipment and storage medium
EP4093061A1 (en) Private location verification and enhancement
CN117436855A (en) Switching method and device for riding identification, computer equipment and storage medium
CN111831760B (en) Method of processing position data, corresponding device, computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination