CN111885708B - Positioning method, positioning device, user equipment and computer readable storage medium - Google Patents

Positioning method, positioning device, user equipment and computer readable storage medium Download PDF

Info

Publication number
CN111885708B
CN111885708B CN202010787300.4A CN202010787300A CN111885708B CN 111885708 B CN111885708 B CN 111885708B CN 202010787300 A CN202010787300 A CN 202010787300A CN 111885708 B CN111885708 B CN 111885708B
Authority
CN
China
Prior art keywords
network
information
longitude
user equipment
network information
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.)
Active
Application number
CN202010787300.4A
Other languages
Chinese (zh)
Other versions
CN111885708A (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010787300.4A priority Critical patent/CN111885708B/en
Publication of CN111885708A publication Critical patent/CN111885708A/en
Application granted granted Critical
Publication of CN111885708B publication Critical patent/CN111885708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination

Abstract

The application is applicable to the technical field of positioning, and provides a positioning method, a positioning device, user equipment and a computer readable storage medium, wherein the positioning method comprises the following steps: acquiring first network information and second network information, wherein the first network information is network information of the user equipment in a current network mode, the second network information is network information of the user equipment in other network modes, and the network information comprises MCC, MNC, TAC and CID; the first network information and the second network information are sent to a position server, and the position server is used for determining corresponding longitude and latitude information according to the received MCC, MNC, TAC and CID; receiving first longitude and latitude information corresponding to the first network information and second longitude and latitude information corresponding to the second network information, which are sent by a position server; and positioning the user equipment according to the first longitude and latitude information and the second longitude and latitude information. By the method, the positioning speed and accuracy can be improved.

Description

Positioning method, positioning device, user equipment and computer readable storage medium
Technical Field
The present application belongs to the field of positioning technologies, and in particular, to a positioning method, an apparatus, a user equipment, and a computer-readable storage medium.
Background
The existing positioning technology includes Wireless Fidelity (WIFI) positioning, Internet Protocol (IP) positioning, Location Based Services (LBS) positioning, and the like, and the principles of different positioning methods are as follows:
the principle of WIFI positioning is as follows: the user equipment can scan and collect surrounding wireless Access Point (AP) signals under the condition of starting Wi-Fi, whether the signals are encrypted or not, whether the signals are connected or not, even if the signal strength is insufficient, the signals can be displayed in a wireless signal list, and Media Access Control (MAC) addresses broadcasted by the AP can be acquired. By utilizing the characteristic that the wireless AP cannot move within a period of time, after the user equipment sends the data capable of marking the AP to the location server, the location server retrieves the geographical position of each AP, and calculates the geographical position of the user equipment by combining the strength of each signal and returns the geographical position to the user equipment.
The basic principle of IP positioning: the geographical location of the user equipment is estimated using its IP name, registration information, or latency information, etc.
LBS positioning principle: and sending the network information of the user equipment in the current network mode to a position server, acquiring the position information by the position server according to the network information of the user equipment in the current network mode, and returning the acquired position information to the user equipment.
At present, the requirements of users on the positioning accuracy and speed are higher and higher, and the existing methods, such as LBS positioning, have the problems of lower positioning accuracy and slower positioning speed.
Therefore, it is necessary to provide a new method to solve the above technical problems.
Disclosure of Invention
The embodiment of the application provides a positioning method, which can solve the problems of low positioning speed and low positioning precision in the existing positioning aspect.
In a first aspect, an embodiment of the present application provides a positioning method, applied to a user equipment, including:
acquiring first Network information and second Network information, wherein the first Network information is Network information of the user equipment in a current Network mode, the second Network information is Network information of the user equipment in other Network modes, the other Network modes are Network modes different from the current Network mode of the user equipment, and the Network information includes a Mobile Country Code (MCC), a Mobile Network number (MNC), a Location Area Code (TAC) and a base station Identity (CID);
sending the first network information and the second network information to a location server, wherein the location server is used for determining corresponding longitude and latitude information according to the received MCC, MNC, TAC and CID;
receiving first longitude and latitude information corresponding to the first network information and second longitude and latitude information corresponding to the second network information, which are sent by the position server;
and positioning the user equipment according to the first longitude and latitude information and the second longitude and latitude information.
Compared with the prior art, the embodiment of the application has the advantages that:
in the embodiment of the application, first network information and second network information are acquired, the first network information and the second network information are sent to a position server, first longitude and latitude information corresponding to the first network information and second longitude and latitude information corresponding to the second network information sent by the position server are received, and the user equipment is positioned according to the first longitude and latitude information and the second longitude and latitude information. Since the first network information is network information of the user equipment in a current network mode, the second network information is network information of the user equipment in other network modes, and the other network modes are usually at least 1, that is, the embodiment of the present application can acquire network information of at least 2 network modes, so that at least 2 corresponding latitude and longitude information can be acquired from the location server according to the network information of the at least 2 network modes. Compared with the positioning of the user equipment according to the 1 piece of longitude and latitude information, the method and the device can improve the positioning accuracy and speed when the user equipment is positioned according to the at least 2 pieces of corresponding longitude and latitude information because the longitude and latitude information used for positioning is more and is obtained from different network modes.
In a second aspect, an embodiment of the present application provides a positioning apparatus, which is applied to a user equipment, and includes:
a network information obtaining unit, configured to obtain first network information and second network information, where the first network information is network information of a current network mode in which the user equipment is located, the second network information is network information of the user equipment in another network mode, the another network mode is a network mode different from the current network mode in which the user equipment is located, and the network information includes a mobile country code MCC, a mobile network number MNC, a location area code TAC, and a base station number CID;
a network information sending unit, configured to send the first network information and the second network information to a location server, where the location server is configured to determine corresponding longitude and latitude information according to the received MCC, MNC, TAC, and CID;
a latitude and longitude information receiving unit, configured to receive first latitude and longitude information corresponding to the first network information and second latitude and longitude information corresponding to the second network information, which are sent by the location server;
and the positioning unit is used for positioning the user equipment according to the first longitude and latitude information and the second longitude and latitude information.
In a third aspect, an embodiment of the present application provides a user equipment, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on a user equipment, causes the user equipment to perform the method according to the first aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a flowchart of a positioning method according to an embodiment of the present application;
fig. 2 is a schematic diagram for determining an area for locating a user equipment according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a positioning device according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a user equipment according to a third embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The first embodiment is as follows:
the existing positioning method comprises WIFI positioning, IP positioning, LBS positioning and the like, and the inventor of the application can know through analyzing the existing positioning method that the existing positioning method is based on information in a network mode to position the user equipment, for example, in the WIFI positioning method, the user equipment is positioned based on the geographic position of an AP (access point) in a Wi-Fi mode and the like; in the IP positioning method, the user equipment is positioned based on the IP name and the like of the user equipment in a certain network mode; in the LBS positioning method, the user equipment is positioned based on the network information of the network mode in which the user equipment is currently located. However, since only the information in one network mode is obtained, the error possibly existing in the information cannot be identified, and thus the positioning accuracy is low, and since the information obtained in one network mode is less, the information which can be referred in the positioning process is less, and thus the positioning speed is low. In order to solve the above technical problem, an embodiment of the present application provides a positioning method, where in the embodiment of the present application, a user equipment is positioned by obtaining information in different network modes, so as to improve positioning accuracy and speed.
Fig. 1 shows a flowchart of a positioning method provided in an embodiment of the present application, where the positioning method is applied to a user equipment, where the user equipment includes a terminal capable of communicating with other terminals in multiple network modes, such as a mobile phone, a wearable device, and the like, and the positioning method includes:
step S11, acquiring first network information and second network information, where the first network information is network information of the user equipment in a current network mode, the second network information is network information of the user equipment in other network modes, the other network modes are network modes different from the current network mode, and the network information includes a mobile country code MCC, a mobile network number MNC, a location area code TAC, and a base station number CID.
In this embodiment, the network mode in which the ue is currently located refers to a network mode that is currently used by the ue to communicate with other devices, for example, if the network mode that is currently used by the ue to communicate with other devices is a fifth generation mobile communication technology (5th generation mobile networks, 5G), the network mode in which the ue is currently located is 5G. The network mode in which the ue is currently located may be 5G, 4G, 3G, or 2G. Of course, with the development of communication technology, the network mode in which the user equipment is currently located may also be 6G, and the like, which is not limited herein.
In this embodiment, the other network mode refers to a network mode different from the current network mode of the ue. For example, assuming that the network mode in which the user equipment is currently located is 5G, the other network modes may be 4G and/or 3G and/or 2G, etc.
In this embodiment, the ue acquires network information of the ue in a current network mode, and acquires network information of the ue in other networks to obtain corresponding first network information and second network information.
In some embodiments, after step S11, the method further includes the user equipment storing the acquired first network information and the acquired second network information.
Step S12, sending the first network information and the second network information to a location server, where the location server is configured to determine corresponding longitude and latitude information according to the received MCC, MNC, TAC, and CID.
In this embodiment, the user equipment sends the acquired first network information and second network information to the location server, or the user equipment sends the stored first network information and second network information to the location server.
The location server stores the corresponding relation between the network information (MCC, MNC, TAC and CID) and the latitude and longitude information in advance. After receiving the network information sent by the user equipment, determining corresponding longitude and latitude information, for example, after receiving the first network information and the second network information sent by the user equipment, the location server determines first longitude and latitude information corresponding to the first network information, and determines second longitude and latitude information corresponding to the second network information. That is, the location server determines the latitude and longitude information corresponding to the network information in different network modes respectively.
Step S13, receiving first longitude and latitude information corresponding to the first network information and second longitude and latitude information corresponding to the second network information, which are sent by the location server.
In this embodiment, after the user equipment sends the first network information and the second network information to the location server, the corresponding first longitude and latitude information and the corresponding second longitude and latitude information may be obtained from the location server.
It should be noted that, because the second network information is the network information corresponding to the network mode in which the non-user equipment is currently located, the second network information may include network information in a plurality of network modes, and at this time, the second longitude and latitude information corresponds to a plurality of longitude and latitude information corresponding to the network information in the plurality of network modes. For example, if the second network information includes network information under 3G and network information under 2G, the second longitude and latitude information includes longitude and latitude information corresponding to the network information under 3G and longitude and latitude information corresponding to the network information under 2G.
Step S14, positioning the ue according to the first longitude and latitude information and the second longitude and latitude information.
Because the first longitude and latitude information and the second longitude and latitude information are the position information which is determined under different network modes and used for identifying the user equipment, the position of the user equipment can be determined approximately after the user equipment acquires the first longitude and latitude information and the second longitude and latitude information, and the positioning of the user equipment can be completed quickly and accurately.
In this embodiment, the center points of the first longitude and latitude information and the second longitude and latitude information may be used as the positioning information of the user equipment, and the first longitude and latitude information and the second longitude and latitude information may also be combined with other positioning methods to realize positioning of the user equipment, which is not limited herein.
In the embodiment of the application, first network information and second network information are acquired, the first network information and the second network information are sent to a position server, first longitude and latitude information corresponding to the first network information and second longitude and latitude information corresponding to the second network information sent by the position server are received, and the user equipment is positioned according to the first longitude and latitude information and the second longitude and latitude information. Since the first network information is network information of the user equipment in a current network mode, the second network information is network information of the user equipment in other network modes, and the other network modes are usually at least 1, that is, the embodiment of the present application can acquire network information of at least 2 network modes, so that at least 2 corresponding latitude and longitude information can be acquired from the location server according to the network information of the at least 2 network modes. Compared with the positioning of the user equipment according to the 1 piece of longitude and latitude information, the method and the device can improve the positioning accuracy and speed when the user equipment is positioned according to the at least 2 pieces of corresponding longitude and latitude information because the longitude and latitude information used for positioning is more and is obtained from different network modes.
In some embodiments, since the number of other network modes is greater than or equal to 1:
if the number of the other network modes is 1, the acquiring the second network information includes: and after the user equipment is switched to the other network mode, registering the other network mode, and if the other network mode is successfully registered, acquiring the network information of the user equipment in the other network mode.
If the number of the other network modes is greater than 1, the acquiring the second network information includes: selecting one of the other network modes, registering the selected network mode after the user equipment is switched to the selected network mode, if the selected network mode is registered successfully, acquiring network information of the user equipment in the selected network mode, and returning to the step of selecting one of the other network modes and the subsequent steps until the network modes of the other network modes are all selected, wherein the acquired network information of the user equipment in each selected network mode is the acquired second network information.
In this embodiment, if the number of the other network modes is greater than 1, the user equipment needs to register to different network modes one by one to acquire network information in different network modes. For example, if the current network mode of the user equipment is 5G, and the other network modes are 4G, 3G and 2G, it is assumed that the 4G network mode is selected first, and if the user equipment successfully registers the 4G network mode, network information of the user equipment in the 4G network mode is acquired; then, selecting a 3G network mode, and if the user equipment successfully registers the 3G network mode, acquiring network information of the user equipment in the 3G network mode; and finally, selecting a 2G network mode, and if the user equipment successfully registers the 2G network mode, acquiring the network information of the user equipment in the 2G network mode. And the network information acquired by the user equipment at 4G, 3G and 2G forms second network information acquired by the user equipment. Since 4G, 3G, and 2G have all been selected, acquisition of the second network information is stopped.
In some embodiments, in order to quickly acquire the network information in the different network modes, the acquiring the second network information further includes:
if the selected network mode is not registered successfully, judging whether the registration time length exceeds a preset time length threshold value, if not, continuing to try to register to the selected network mode, and if the preset time length threshold value is exceeded, returning to the step of selecting one network mode of other network modes and the subsequent steps, wherein the registration time length is used for representing the time length of the user equipment trying to register to the selected network mode.
The preset time threshold may be 2 seconds, 3 seconds, or the like, and of course, may also be other time durations, which is not limited herein. In some embodiments, in order to reduce the time period for acquiring the network information, i.e., in order to avoid the positioning time period being too long, the preset time period threshold is set to be less than or equal to 5 seconds.
In this embodiment, if the user equipment is not successfully registered in the selected network mode, it is determined whether the registration time length exceeds a preset time length threshold, if so, a new network mode is reselected for registration, and otherwise, the user equipment continues to try to register in the selected network mode. For example, if the ue fails to attempt to register in the 4G network mode and determines that the registration duration exceeds the preset duration threshold (e.g. exceeds 3 seconds), the 3G network mode is selected and attempts to register in the 3G network mode.
In some embodiments, after the obtaining the second network information, considering that the positioning accuracy and the speed of the user equipment are related to the number of network information included in the second network information, the method includes: and judging whether the number of the network information included in the second network information is smaller than a preset number threshold, if so, retrying to register to a network mode in which the network information is not acquired, and acquiring the network information in the corresponding network mode after the registration is successful.
For example, assuming that the network mode in which the user equipment is currently located is 5G, and the second network information includes network information in 4G, in order to improve the speed and accuracy of subsequent positioning of the user equipment, registration to the 3G network mode and the 2G network mode is retried, so as to obtain the network information in the 3G network mode and the 2G network mode, respectively. In this embodiment, the user equipment re-registers to the network mode in which the network information is not acquired, so as to increase the number of network information included in the second network information, thereby increasing the positioning accuracy and the positioning speed of the user equipment.
In some embodiments, it is considered that a certain time duration is required for acquiring the network information, and therefore, in order to avoid that the positioning time duration of the ue is too long, after the acquiring the second network information, the method includes: judging whether the duration for acquiring the second network information is less than a preset duration threshold, if so, retrying to register to a network mode in which the network information is not acquired, and acquiring the network information in the corresponding network mode after the registration is successful.
For example, if the second network information includes network information 1 in a 4G network mode and network information 2 in a 4G network mode, and the duration for acquiring the network information 1 is 2 seconds, and the duration for acquiring the network information 2 is 3 seconds, the duration for acquiring the second network information is 2+ 3-5 seconds.
In some embodiments, the step S14 includes:
a1, determining an area for positioning according to the first longitude and latitude information and the second longitude and latitude information.
A2, positioning the user equipment in the positioning area.
The shape of the area for positioning may be circular or rectangular, etc.
In this embodiment, the user equipment may be located by combining with other locating methods, for example, locating the user equipment by combining with a Global Navigation Satellite System (GNSS), specifically, first, an area for locating the user equipment is determined according to the first longitude and latitude information and the second longitude and latitude information, and then, accurate locating of the user equipment is achieved in the determined area by using the GNSS. Of course, in practice, the method may be combined with other positioning methods, and is not limited herein.
In some embodiments, if the second longitude and latitude information includes at least 2 pieces of longitude and latitude information and the area for positioning is a circular area, the determining an area for positioning according to the first longitude and latitude information and the second longitude and latitude information includes:
and B1, determining a first minimum circumcircle comprising the first longitude and latitude information and the second longitude and latitude information.
And B2, if the radius of the first minimum circumcircle is smaller than a preset radius threshold, taking the area where the first minimum circumcircle is located as an area for positioning.
B3, if the radius of the first minimum circumcircle is larger than or equal to the preset radius threshold, determining abnormal longitude and latitude information in the first longitude and latitude information and the second longitude and latitude information, and determining a second minimum circumcircle according to non-abnormal longitude and latitude information in the first longitude and latitude information and the second longitude and latitude information, wherein the area where the second minimum circumcircle is located is used as the area for positioning, the longitude and latitude information corresponding to the distance threshold value that the distances between the first longitude and latitude information and the M longitude and latitude information are larger than or equal to the preset distance threshold value in the first longitude and latitude information and the second longitude and latitude information is used as abnormal longitude and latitude information, M is an integer, and M is larger than half of the number of all the longitude and latitude information included in the first longitude and latitude information and the second longitude and latitude information.
In this embodiment, the first longitude and latitude information includes only longitude and latitude information corresponding to the network information of the user equipment in the current network mode, so that the first longitude and latitude information includes only one longitude and latitude information, and the second longitude and latitude information includes at least one longitude and latitude information corresponding to the network information in at least one network mode. Assuming that the first longitude and latitude information and the second longitude and latitude information include X longitude and latitude information, wherein M is greater than X/2, if the distances between certain longitude and latitude information and the M longitude and latitude information (assumed distances are M1, M2 and MM respectively) are greater than or equal to a preset distance threshold, determining that the certain longitude and latitude information is abnormal longitude and latitude information, at the moment, eliminating the abnormal longitude and latitude information, determining a second minimum circumscribed circle only according to the non-abnormal longitude and latitude information (namely normal longitude and latitude information), and determining the area where the second minimum circumscribed circle is located, namely the area for positioning the user equipment. As shown in fig. 2, assuming that the distance between N3 and N1 and the distance between N3 and N2 are both greater than the preset distance threshold, a second minimum circumscribed circle is determined according to N1 and N2, and the area where the second minimum circumscribed circle is located is the area for locating the user equipment.
In some embodiments, before the step S11, the method includes:
and starting a predefined multi-network mode positioning function, wherein the predefined multi-network mode positioning function is used for acquiring the first network information and the second network information.
After the step S11, the method includes:
turning off the positioning function of the multi-network mode.
In this embodiment, a setting page of the user equipment may provide setting options for turning on and off the predefined multi-network-mode positioning function, and after the user turns on the predefined multi-network-mode positioning function, the user equipment may obtain the first network information and the second network information. In consideration of the fact that the user equipment needs to be switched without stopping in different network modes to acquire the network information in the corresponding network mode when acquiring the second network information, and the user equipment is not beneficial to the communication between the user equipment and other equipment when being switched without stopping in different network modes, the user equipment automatically closes the positioning function in the predefined multi-network mode after acquiring the first network information and the second network information.
In some embodiments, after turning off the positioning function of the multi-network mode, the method comprises: the user equipment switches to the general network mode. The general network mode is that the user equipment adaptively selects a certain network mode and communicates with other equipment in the network mode. For example, in a general network mode, the user equipment may adaptively select a corresponding network mode among 5G, 4G, 3G, and 2G.
In some embodiments, before the step S12, the method includes:
and detecting whether the data service of the user equipment is normal.
The step S12 includes:
and if the data service of the user equipment is normal, sending the first network information and the second network information to a position server.
The user equipment can judge whether the data service of the user equipment is normal or not by checking whether the data network setting item of the user equipment is opened or not.
In this embodiment, the user equipment sends the first network information and the second network information to the location server only when judging that the data service is normal, so that the success rate of sending can be improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two:
fig. 3 shows a structural block diagram of a positioning apparatus provided in the embodiment of the present application, where the positioning apparatus is used in a user equipment, and for convenience of description, only the parts related to the embodiment of the present application are shown.
Referring to fig. 3, the positioning device 3 includes: a network information acquisition unit 31, a network information transmission unit 32, a latitude and longitude information reception unit 33, and a positioning unit 34. Wherein, the first and the second end of the pipe are connected with each other,
a network information obtaining unit 31, configured to obtain first network information and second network information, where the first network information is network information of the user equipment in a current network mode, the second network information is network information of the user equipment in another network mode, the another network mode is a network mode different from the current network mode of the user equipment, and the network information includes a mobile country code MCC, a mobile network number MNC, a location area code TAC, and a base station number CID.
In some embodiments, the positioning device 3 further comprises:
and the storage unit is used for storing the acquired first network information and the acquired second network information.
A network information sending unit 32, configured to send the first network information and the second network information to a location server, where the location server is configured to determine corresponding longitude and latitude information according to the received MCC, MNC, TAC, and CID.
Specifically, the network information sending unit 32 is configured to send the first network information and the second network information acquired by the network information acquiring unit 31 to a location server, or send the first network information and the second network information stored in the storage unit to the location server.
A latitude and longitude information receiving unit 33, configured to receive first latitude and longitude information corresponding to the first network information and second latitude and longitude information corresponding to the second network information, which are sent by the location server.
A positioning unit 34, configured to position the ue according to the first longitude and latitude information and the second longitude and latitude information.
In this embodiment of the present application, since the first network information is network information of the user equipment in a current network mode, the second network information is network information of the user equipment in other network modes, and the other network modes are usually at least 1, that is, the embodiment of the present application can obtain network information in at least 2 network modes, so that at least 2 corresponding longitude and latitude information can be obtained from the location server according to the network information in the at least 2 network modes. Compared with the method for positioning the user equipment according to the 1 piece of longitude and latitude information, the method for positioning the user equipment according to the embodiment of the application has the advantages that the longitude and latitude information used for positioning is more, and the longitude and latitude information is obtained from different network modes, so that the positioning accuracy and speed can be improved when the user equipment is positioned according to the at least 2 pieces of corresponding longitude and latitude information.
In some embodiments, if the number of the other network modes is 1, when the network information acquiring unit 31 acquires the second network information, it is specifically configured to:
and after the user equipment is switched to the other network mode, registering the other network mode, and if the other network mode is successfully registered, acquiring the network information of the user equipment in the other network mode.
If the number of the other network modes is greater than 1, when the network information acquiring unit 31 acquires the second network information, the network information acquiring unit is specifically configured to:
selecting one of the other network modes, registering the selected network mode after the user equipment is switched to the selected network mode, if the selected network mode is successfully registered, acquiring the network information of the user equipment in the selected network mode, and returning to the step of selecting one of the other network modes and the subsequent steps until the network modes of the other network modes are all selected, wherein the acquired network information of the user equipment in each selected network mode is the acquired second network information.
In some embodiments, the network information acquiring unit 31, when acquiring the second network information, is further configured to:
if the selected network mode is not registered successfully, judging whether the registration time length exceeds a preset time length threshold value, if not, continuing to try to register to the selected network mode, and if the preset time length threshold value is exceeded, returning to the step of selecting one network mode of other network modes and the subsequent steps, wherein the registration time length is used for representing the time length of the user equipment trying to register to the selected network mode.
In some embodiments, considering that the positioning accuracy and speed of the user equipment are related to the number of network information included in the second network information, the positioning apparatus 3 further includes:
and the first network information re-acquiring unit is used for judging whether the number of the network information included in the second network information is smaller than a preset number threshold, if so, retrying to register to a network mode in which the network information is not acquired, and acquiring the network information under the corresponding network mode after the registration is successful.
In some embodiments, it is considered that a certain time period is required for acquiring the network information, and therefore, in order to avoid that the positioning time period of the ue is too long, the positioning apparatus 3 further includes:
and the second network information reacquiring unit is used for judging whether the duration for acquiring the second network information is less than a preset duration threshold, if so, retrying to register to a network mode in which the network information is not acquired, and acquiring the network information in the corresponding network mode after the registration is successful.
In some embodiments, the positioning unit 34 includes:
and the positioning area determining module is used for determining an area for positioning according to the first longitude and latitude information and the second longitude and latitude information.
And the accurate positioning module is used for positioning the user equipment in the positioning area.
In some embodiments, if the second longitude and latitude information includes at least 2 pieces of longitude and latitude information, and the area for positioning is a circular area, the positioning area determining module is specifically configured to:
determining a first minimum circumscribed circle including the first longitude and latitude information and the second longitude and latitude information; if the radius of the first minimum circumscribed circle is smaller than a preset radius threshold, taking the area where the first minimum circumscribed circle is located as an area for positioning; if the radius of the first minimum circumscribed circle is larger than or equal to the preset radius threshold, determining abnormal longitude and latitude information in the first longitude and latitude information and the second longitude and latitude information, and determining a second minimum circumscribed circle according to non-abnormal longitude and latitude information in the first longitude and latitude information and the second longitude and latitude information, wherein the area where the second minimum circumscribed circle is located is used as an area for positioning, and longitude and latitude information corresponding to the fact that the existing distances between the first longitude and latitude information and the M longitude and latitude information are larger than or equal to the preset distance threshold in the first longitude and latitude information and the second longitude and latitude information is used as abnormal longitude and latitude information, M is an integer, and M is larger than half of the number of all longitude and latitude information included in the first longitude and latitude information and the second longitude and latitude information.
In some embodiments, the positioning device 3 further comprises:
the positioning function starting unit is used for starting a positioning function of a predefined multi-network mode, and the positioning function of the predefined multi-network mode is used for acquiring the first network information and the second network information.
And the positioning function closing unit is used for closing the positioning function of the multi-network mode.
In some embodiments, the positioning device 3 further comprises:
and the network mode switching unit is used for switching to a general network mode. The general network mode is that the user equipment adaptively selects a certain network mode and communicates with other equipment in the network mode.
In some embodiments, the positioning device 3 further comprises:
and the data service detection unit is used for detecting whether the data service of the user equipment is normal or not.
The network information sending unit 32 is specifically configured to:
and if the data service of the user equipment is normal, sending the first network information and the second network information to a position server.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Example three:
fig. 4 is a schematic structural diagram of a user equipment according to an embodiment of the present application. As shown in fig. 4, the user equipment 4 of this embodiment includes: at least one processor 40 (only one processor is shown in fig. 4), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the steps in any of the various method embodiments described above being implemented when the computer program 42 is executed by the processor 40;
acquiring first network information and second network information, wherein the first network information is network information of the user equipment in a current network mode, the second network information is network information of the user equipment in other network modes, the other network modes are network modes different from the current network mode of the user equipment, and the network information comprises a mobile country code MCC, a mobile network number MNC, a location area code TAC and a base station number CID;
sending the first network information and the second network information to a location server, wherein the location server is used for determining corresponding longitude and latitude information according to the received MCC, MNC, TAC and CID;
receiving first longitude and latitude information corresponding to the first network information and second longitude and latitude information corresponding to the second network information, which are sent by the position server;
and positioning the user equipment according to the first longitude and latitude information and the second longitude and latitude information.
The user device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The user equipment may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of the user equipment 4, and does not constitute a limitation to the user equipment 4, and may include more or less components than those shown, or some of the components may be combined, or different components may be included, such as input and output devices, network access devices, and so on.
The Processor 40 may be a Central Processing Unit (CPU), and the Processor 40 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may in some embodiments be an internal storage unit of the user equipment 4, such as a hard disk or a memory of the user equipment 4. In other embodiments, the memory 41 may also be an external storage device of the user equipment 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), or the like, provided on the user equipment 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the user equipment 4. The memory 41 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/user device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-drive, a removable hard drive, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A positioning method applied to User Equipment (UE) comprises the following steps:
acquiring first network information and second network information, wherein the first network information is network information of the user equipment in a current network mode, the second network information is network information of the user equipment in other network modes, the other network modes are network modes different from the current network mode of the user equipment, and the network information comprises a mobile country code MCC, a mobile network number MNC, a location area code TAC and a base station number CID;
sending the first network information and the second network information to a location server, wherein the location server is used for determining corresponding longitude and latitude information according to the received MCC, MNC, TAC and CID;
receiving first longitude and latitude information corresponding to the first network information and second longitude and latitude information corresponding to the second network information, which are sent by the position server;
and positioning the user equipment according to the first longitude and latitude information and the second longitude and latitude information.
2. The positioning method of claim 1,
if the number of the other network modes is 1, the acquiring the second network information includes:
after the user equipment is switched to the other network mode, registering the other network mode, and if the other network mode is successfully registered, acquiring network information of the user equipment in the other network mode;
if the number of the other network modes is greater than 1, the acquiring the second network information includes:
selecting one of the other network modes, registering the selected network mode after the user equipment is switched to the selected network mode, if the selected network mode is registered successfully, acquiring network information of the user equipment in the selected network mode, and returning to the step of selecting one of the other network modes and the subsequent steps until the network modes of the other network modes are all selected, wherein the acquired network information of the user equipment in each selected network mode is the acquired second network information.
3. The positioning method of claim 2, wherein the obtaining the second network information further comprises:
if the selected network mode is not registered successfully, judging whether the registration time length exceeds a preset time length threshold value, and if the registration time length does not exceed the preset time length threshold value, continuously trying to register the selected network mode; and if the preset time length threshold value is exceeded, returning to the step of selecting one network mode of the other network modes and the subsequent steps, wherein the registration time length is used for representing the time length of the user equipment trying to register to the selected network mode.
4. The method of claim 1, wherein the locating the user equipment according to the first longitude and latitude information and the second longitude and latitude information comprises:
determining an area for positioning according to the first longitude and latitude information and the second longitude and latitude information;
locating the user equipment in a location area.
5. The method of claim 4, wherein if the second longitude and latitude information includes at least 2 longitude and latitude information and the area for positioning is a circular area, the determining an area for positioning according to the first longitude and latitude information and the second longitude and latitude information comprises:
determining a first minimum circumscribed circle including the first longitude and latitude information and the second longitude and latitude information;
if the radius of the first minimum circumscribed circle is smaller than a preset radius threshold, taking the area where the first minimum circumscribed circle is located as an area for positioning;
if the radius of the first minimum circumscribed circle is larger than or equal to the preset radius threshold, determining abnormal longitude and latitude information in the first longitude and latitude information and the second longitude and latitude information, and determining a second minimum circumscribed circle according to non-abnormal longitude and latitude information in the first longitude and latitude information and the second longitude and latitude information, wherein the area where the second minimum circumscribed circle is located is used as an area for positioning, and longitude and latitude information corresponding to the fact that the existing distances between the first longitude and latitude information and the M longitude and latitude information are larger than or equal to the preset distance threshold in the first longitude and latitude information and the second longitude and latitude information is used as abnormal longitude and latitude information, M is an integer, and M is larger than half of the number of all longitude and latitude information included in the first longitude and latitude information and the second longitude and latitude information.
6. The positioning method according to any of claims 1 to 5, wherein prior to said obtaining first network information and obtaining second network information, comprising:
starting a positioning function of a predefined multi-network mode, wherein the positioning function of the predefined multi-network mode is used for acquiring first network information and second network information;
after the acquiring the first network information and the acquiring the second network information, the method includes:
turning off the positioning function of the multi-network mode.
7. The positioning method according to any of claims 1 to 5, wherein before said sending the first network information and the second network information to a location server, comprising:
detecting whether the data service of the user equipment is normal or not;
the sending the first network information and the second network information to a location server includes:
and if the data service of the user equipment is normal, sending the first network information and the second network information to a position server.
8. A positioning device applied to User Equipment (UE), comprising:
a network information obtaining unit, configured to obtain first network information and second network information, where the first network information is network information of a network mode in which the user equipment is currently located, the second network information is network information of the user equipment in another network mode, the another network mode is a network mode different from the network mode in which the user equipment is currently located, and the network information includes a mobile country code MCC, a mobile network number MNC, a location area code TAC, and a base station number CID;
a network information sending unit, configured to send the first network information and the second network information to a location server, where the location server is configured to determine corresponding longitude and latitude information according to the received MCC, MNC, TAC, and CID;
a latitude and longitude information receiving unit, configured to receive first latitude and longitude information corresponding to the first network information and second latitude and longitude information corresponding to the second network information, which are sent by the location server;
and the positioning unit is used for positioning the user equipment according to the first longitude and latitude information and the second longitude and latitude information.
9. A user device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010787300.4A 2020-08-07 2020-08-07 Positioning method, positioning device, user equipment and computer readable storage medium Active CN111885708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010787300.4A CN111885708B (en) 2020-08-07 2020-08-07 Positioning method, positioning device, user equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010787300.4A CN111885708B (en) 2020-08-07 2020-08-07 Positioning method, positioning device, user equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111885708A CN111885708A (en) 2020-11-03
CN111885708B true CN111885708B (en) 2022-05-27

Family

ID=73210339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010787300.4A Active CN111885708B (en) 2020-08-07 2020-08-07 Positioning method, positioning device, user equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111885708B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738887A (en) * 2020-12-31 2021-04-30 上海杉诺信息技术有限公司 Positioning method and system, communication terminal and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012005469A2 (en) * 2010-07-09 2012-01-12 에스케이텔레콤 주식회사 Positioning device of mobile communication terminal, method for constructing wireless lan information of device, positioning server of mobile communication terminal, and method for driving server
EP2733980A1 (en) * 2012-11-15 2014-05-21 Telefonaktiebolaget L M Ericsson (publ) Method and arrangement for terminal reporting

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103582115B (en) * 2012-07-27 2019-05-10 华为技术有限公司 A kind of localization method, control equipment and mobile communication system
US20150237465A1 (en) * 2014-02-19 2015-08-20 Qualcomm Incorporated Method and apparatus to switch between network-based and mobile-based positioning modes
CN107820313A (en) * 2016-09-12 2018-03-20 中兴通讯股份有限公司 Network registering method and its device
CN106572444A (en) * 2016-11-07 2017-04-19 工业和信息化部电信研究院 Longitude and latitude information updating method and device
CN108828512A (en) * 2018-06-25 2018-11-16 北京易途客信息技术有限公司 Accurate positioning method and equipment based on the base station LBS
CN111356075A (en) * 2018-12-22 2020-06-30 华为技术有限公司 Multi-site positioning method and device
CN110113711B (en) * 2019-05-16 2020-09-18 四川九洲北斗导航与位置服务有限公司 Positioning method, positioning device and integrated gateway
CN110456398B (en) * 2019-07-30 2021-11-26 广州市百果园信息技术有限公司 Geographic position determining method, device, storage medium and equipment
CN110740506B (en) * 2019-10-25 2020-12-04 成都精位科技有限公司 Control method and device based on dual-network embedded UWB network
CN110933611A (en) * 2019-12-09 2020-03-27 西安锐驰电器有限公司 Positioning method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012005469A2 (en) * 2010-07-09 2012-01-12 에스케이텔레콤 주식회사 Positioning device of mobile communication terminal, method for constructing wireless lan information of device, positioning server of mobile communication terminal, and method for driving server
EP2733980A1 (en) * 2012-11-15 2014-05-21 Telefonaktiebolaget L M Ericsson (publ) Method and arrangement for terminal reporting

Also Published As

Publication number Publication date
CN111885708A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US11032858B2 (en) Network access method, terminal, access network, and core network
ES2691236T3 (en) Network access method and mobile communication terminal
US20090002237A1 (en) Method and device for determining a position of a portable electronic device
EP3197213B1 (en) Network access method and mobile communication terminal
US20080242373A1 (en) Method and device for providing position information
EP2059075A2 (en) Method and system for locating a lost and/or stolen phone based on supl network initiated, triggered by reverse-billed SMS
CN102883432A (en) Method and apparatus for using historic network information for determining approximate position
CN111241856A (en) Method for selecting NFC analog card and watch
EP3163946A1 (en) Information transmission method and apparatus, device, computer program and recording medium
US9513362B2 (en) Method for enhancing positioning measurement and communications apparatus utilizing the same
WO2016041171A1 (en) Method and apparatus for determining terminal roaming status, terminal and server
CN111885708B (en) Positioning method, positioning device, user equipment and computer readable storage medium
CN105578471A (en) Intelligent recognition system for GSM pseudo base station
JP6696569B2 (en) Service providing apparatus, service providing method and program
CN107613099B (en) Method and device for loading emergency number
US20090098887A1 (en) Mobile terminal and location information acquisition method thereof
WO2022007901A1 (en) Cloud card distribution method and apparatus, electronic device, and storage medium
US9510317B1 (en) Location estimation of mobile stations by coordinating the acquisition and use of control plane and user plane location data
CN108476487B (en) Electronic device and server hosting location service
KR101585140B1 (en) Localized secure user plane location (supl) emergency session
CN112738887A (en) Positioning method and system, communication terminal and computer readable storage medium
CN104105055A (en) Communication processing method and device
CN113300910A (en) Method and system for obtaining use rate, terminal, access point and MEC server
CN111343627A (en) Network registration method and device and terminal equipment
US9354325B2 (en) Apparatus and method for acquiring the position of a portable terminal

Legal Events

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