CN107580361B - Positioning method and device - Google Patents

Positioning method and device Download PDF

Info

Publication number
CN107580361B
CN107580361B CN201610517377.3A CN201610517377A CN107580361B CN 107580361 B CN107580361 B CN 107580361B CN 201610517377 A CN201610517377 A CN 201610517377A CN 107580361 B CN107580361 B CN 107580361B
Authority
CN
China
Prior art keywords
positioning
current
current application
mobile terminal
condition
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
CN201610517377.3A
Other languages
Chinese (zh)
Other versions
CN107580361A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610517377.3A priority Critical patent/CN107580361B/en
Priority to PCT/CN2016/105702 priority patent/WO2018006523A1/en
Publication of CN107580361A publication Critical patent/CN107580361A/en
Application granted granted Critical
Publication of CN107580361B publication Critical patent/CN107580361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Telephone Function (AREA)
  • Navigation (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a positioning method and a positioning device, wherein the method comprises the following steps: after receiving a current positioning request sent by a current application, judging whether the current application meets a first positioning condition; when the current application does not meet the first positioning condition, judging whether the current application meets a second positioning condition corresponding to the current positioning request; and when the current application does not meet the second positioning condition, returning pre-stored information to the current application.

Description

Positioning method and device
Technical Field
The present invention relates to positioning technologies in the field of mobile communications, and in particular, to a positioning method and apparatus.
Background
With the development of mobile communication, the positioning service in the mobile communication system is receiving more and more attention. The mobile phone positioning service is also called mobile location service, and is a value-added service for providing corresponding services for users by acquiring the location information of mobile users through the network of a telecom operator under the support of an electronic map platform.
The commonly used positioning technology in the mobile phone positioning service mainly comprises: global Positioning System (GPS)/Assisted Global Positioning System (AGPS) Positioning technology, base station Positioning technology, and the like.
As mobile terminals are continuously upgraded, more and more applications can be installed on the mobile terminals, and many applications have respective positioning requirements, that is, many applications in the mobile terminals may send positioning requests to a positioning unit (for example, a GPS chip) preset in the mobile terminal.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the existing positioning method, a positioning unit preset in a mobile terminal, after receiving a positioning request sent by each application, will immediately position the mobile terminal without limiting any received positioning request. When the positioning unit cannot position the mobile terminal, the conventional positioning method is adopted, so that the positioning times of the mobile terminal are obviously increased, and the electric energy of the mobile terminal is greatly consumed.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a positioning method and apparatus, which can greatly reduce the number of times of positioning of a mobile terminal, thereby effectively reducing the power consumption of the mobile terminal.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a positioning method, which comprises the following steps:
after receiving a current positioning request sent by a current application, judging whether the current application meets a first positioning condition;
when the current application does not meet the first positioning condition, judging whether the current application meets a second positioning condition corresponding to the current positioning request;
and when the current application does not meet the second positioning condition, returning pre-stored information to the current application.
In the above embodiment, the determining whether the current application satisfies the first positioning condition includes:
judging whether the current positioning times of the mobile terminal is a preset initial value or not;
when the current positioning times are the initial values, judging that the current application meets the first positioning condition;
and when the current positioning times are not the initial values, judging that the current application does not meet the first positioning condition.
In the above embodiment, the determining whether the current application satisfies the second positioning condition corresponding to the current positioning request includes:
calculating the time interval between the first time of returning the pre-stored information to the last application and the second time of receiving the current positioning request sent by the current application;
judging whether the time interval is greater than or equal to a preset time period or not;
when the time interval is greater than or equal to a preset time period, judging that the current application meets the second positioning condition;
and when the time interval is smaller than the preset time interval, judging that the current application does not meet the second positioning condition.
In the above embodiment, the method further comprises:
and when the current application meets the first positioning condition or the second positioning condition, positioning the mobile terminal.
In the above embodiment, the method further comprises:
judging whether the mobile terminal is successfully positioned;
when the mobile terminal is successfully positioned, returning the position information of the mobile terminal to the current application;
and when the mobile terminal fails to position, returning the pre-stored information to the current application.
In the above embodiment, the method further comprises:
when the mobile terminal is successfully positioned, if the current positioning times are not the initial values, setting the current positioning times as the initial values;
and when the mobile terminal fails to be positioned, recording the first time for returning the pre-stored information to the current application, and adding 1 to the current positioning times.
The embodiment of the invention also provides a positioning device, which comprises:
the positioning unit is used for sending the current positioning request to the judging unit after receiving the current positioning request sent by the current application;
the judging unit is used for judging whether the current application meets a first positioning condition; when the current application does not meet the first positioning condition, judging whether the current application meets a second positioning condition corresponding to the current positioning request; when the current application does not meet the second positioning condition, sending a notification message to the positioning unit;
and the positioning unit is further used for returning pre-stored information to the current application after receiving the notification message.
In the foregoing embodiment, the determining unit is specifically configured to determine whether a current positioning time of the mobile terminal is a preset initial value; when the current positioning times are the initial values, judging that the current application meets the first positioning condition; and when the current positioning times are not the initial values, judging that the current application does not meet the first positioning condition.
In the above embodiment, the determining unit includes:
the calculating subunit is configured to calculate a time interval between a first time when the pre-stored information is returned to a previous application and a second time when the current positioning request sent by the current application is received, and send the time interval to the judging subunit;
the judging subunit is configured to judge whether the time interval is greater than or equal to a preset time period; when the time interval is greater than or equal to a preset time period, judging that the current application meets the second positioning condition; and when the time interval is smaller than the preset time interval, judging that the current application does not meet the second positioning condition.
In the foregoing embodiment, the positioning unit is further configured to position the mobile terminal when the current application meets the first positioning condition or when the current application meets the second positioning condition.
In the above embodiment, the determining unit is further configured to determine whether the mobile terminal is successfully located, and send a message of successful location to the locating unit when the mobile terminal is successfully located; when the mobile terminal fails to position, sending a positioning failure message to the positioning unit;
the positioning unit is further configured to return the location information of the mobile terminal to the current application after receiving the message that the positioning is successful; and the processor is further configured to return the pre-stored information to the current application after receiving the message of the positioning failure.
In the foregoing embodiment, the positioning unit is further configured to, when the mobile terminal is successfully positioned, set the current positioning time to the initial value if the current positioning time is not the initial value; and when the mobile terminal fails to be positioned, recording the first time for returning the pre-stored information to the current application, and adding 1 to the current positioning times.
Therefore, in the technical scheme of the embodiment of the invention, after the current positioning request sent by the current application is received, whether the current application meets the first positioning condition is judged, when the current application does not meet the first positioning condition, whether the current application meets the second positioning condition corresponding to the current positioning request is further judged, and when the current application does not meet the second positioning condition, the pre-stored information is returned to the current application. That is to say, in the technical solution provided by the present invention, if the current application neither meets the first positioning condition nor the second positioning condition, the positioning unit will return the pre-stored information to the current application, and will not position the mobile terminal. Unlike the prior art, the embodiment of the invention does not limit any received positioning request, and the positioning unit preset in the mobile terminal can immediately position the mobile terminal after receiving the positioning request sent by each application. Obviously, compared with the prior art, the positioning method and the positioning device provided by the embodiment of the invention can greatly reduce the positioning times of the mobile terminal, thereby effectively reducing the power consumption of the mobile terminal; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a positioning method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an implementation method for determining whether a current application meets a first positioning condition according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation method for determining whether a current application satisfies a second positioning condition according to an embodiment of the present invention;
FIG. 4 is a flow chart of an implementation method for determining whether the mobile terminal is successfully located in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a positioning device according to an embodiment of the present invention.
Detailed Description
In various embodiments of the present invention, fig. 1 is a schematic flow chart illustrating an implementation process of a positioning method in an embodiment of the present invention, and as shown in fig. 1, the positioning method may include the following steps:
step 101, after receiving a current positioning request sent by a current application, judging whether the current application meets a first positioning condition; when the current application does not meet the first positioning condition, executing step 102; when the current application satisfies the first positioning condition, step 104 is executed.
In an embodiment of the present invention, many applications in the mobile terminal may request a positioning request from a positioning unit (e.g., a GPS chip) preset in the mobile terminal. In this step, after receiving a current positioning request sent by a current application, a positioning unit preset in the mobile terminal may first determine whether the current application satisfies a first positioning condition; when the current application does not meet the first positioning condition, executing step 102; when the current application satisfies the first positioning condition, step 104 is executed.
Fig. 2 is a schematic flow chart of an implementation method for determining whether a current application satisfies a first positioning condition in the embodiment of the present invention, and as shown in fig. 2, the implementation method for determining whether the current application satisfies the first positioning condition may include the following steps:
step 101a, judging whether the current positioning times of the mobile terminal is a preset initial value; if yes, go to step 101 b; otherwise, step 101c is performed.
In an embodiment of the present invention, the current positioning number is a natural number greater than or equal to 1, and the preset initial value may be 1. In this step, it can be judged whether the current positioning times of the mobile terminal is a preset initial value; when the current positioning times of the mobile terminal are preset initial values, executing the step 101 b; when the current positioning times in the mobile terminal is not the preset initial value, step 101c is executed.
And 101b, judging that the current application meets the first positioning condition, and ending the judging process.
In a specific embodiment of the present invention, when the current positioning times of the mobile terminal is a preset initial value, it may be determined that the current application satisfies the first positioning condition. That is, when the current positioning times of the mobile terminal is a preset initial value, it indicates that the positioning unit successfully positions the mobile terminal after receiving the positioning request sent by the previous application.
And step 101c, judging that the current application does not meet the first positioning condition.
In a specific embodiment of the present invention, when the current positioning frequency of the mobile terminal is not a preset initial value, it may be determined that the current application does not satisfy the first positioning condition. That is, when the current positioning times of the mobile terminal is not the preset initial value, it indicates that the positioning unit has failed to position the mobile terminal after receiving the positioning request sent by the previous application.
As can be seen from the above description, through the steps 101a to 101c, it can be determined whether the current application satisfies the first positioning condition, and when the current application does not satisfy the first positioning condition, it can be further determined whether the current application satisfies the second positioning condition corresponding to the current positioning request; when the current application meets the first positioning condition, the positioning unit can position the mobile terminal. Specifically, in the embodiment of the present invention, the positioning unit may employ a plurality of positioning methods to position the mobile terminal, for example, the positioning unit may employ positioning technologies such as GPS in the united states, beidou in china, GLONASS in russia, galileo in europe, and the like to position the mobile terminal.
Step 102, judging whether the current application meets a second positioning condition corresponding to the current positioning request; when the current application does not meet the second positioning condition, executing step 103; when the current application satisfies the second positioning condition, step 104 is executed.
In the specific embodiment of the present invention, when the current application does not satisfy the first positioning condition, it may be further determined whether the current application satisfies a second positioning condition corresponding to the current positioning request, and when the current application does not satisfy the second positioning condition, step 103 is executed; when the current application satisfies the second positioning condition, step 104 is executed.
Fig. 3 is a flowchart illustrating an implementation method for determining whether the current application satisfies the second positioning condition in the embodiment of the present invention, and as shown in fig. 3, the implementation method for determining whether the current application satisfies the second positioning condition may include the following steps:
step 102a, calculating a time interval between a first time when the pre-stored information is returned to the previous application and a second time when the current positioning request sent by the current application is received.
In a specific embodiment of the present invention, the pre-stored information may be location information pre-stored by the mobile terminal, or may be reminding information pre-stored by the mobile terminal. In a specific embodiment of the present invention, when the current application does not satisfy the first positioning condition, a time interval between a first time when the positioning unit returns the pre-stored information to the previous application and a second time when the current positioning request sent by the current application is received may be first calculated. That is, when the current application does not satisfy the first positioning condition, it indicates that the positioning unit fails to position the mobile terminal after receiving the positioning request sent by the previous application. In an embodiment of the present invention, after the positioning unit receives the positioning request sent by the previous application, and when the positioning unit fails to position the mobile terminal, the positioning unit may record a first time for sending the pre-stored information to the previous application. Therefore, in this step, when the current application does not satisfy the first positioning condition, a time interval between a first time when the positioning unit returns the pre-stored information to the previous application and a second time when the current positioning request sent by the current application is received may be calculated first. For example, assume that the first time for the positioning unit to return the pre-stored information to the previous application is 10: 00; the second time when the positioning unit receives the current positioning request sent by the current application is 10: 05, the time interval between the first time and the second time may be calculated to be 5 minutes.
Step 102b, judging whether the time interval is greater than or equal to a preset time interval; when the time interval is greater than or equal to the preset time period, executing the step 102 c; when the time interval is less than the preset time period, step 102d is executed.
In a specific embodiment of the present invention, the preset time period may be set according to system requirements, for example, the preset time period may be set to 10 minutes. In this step, it may be determined whether the time interval is greater than or equal to a preset time period; when the time interval is greater than or equal to the preset time period, executing the step 102 c; when the time interval is less than the preset time period, step 102d is executed. For example, assuming that the time interval between the first time when the positioning unit returns the pre-stored information to the previous application and the second time when the current positioning request sent by the current application is received is 5 minutes, since the time interval is less than the preset time period, step 102d is executed.
And 102c, judging that the current application meets the second positioning condition, and ending the judging process.
In an embodiment of the present invention, when the time interval is greater than or equal to the preset time period, it may be determined that the current application satisfies the second positioning condition corresponding to the current positioning request. That is, when the time interval is greater than or equal to the preset time period, it indicates that the time when the current application sends the current positioning request to the positioning unit is sufficiently long from the time when the previous application sends the positioning request to the positioning unit, and therefore, it can be determined that the current application satisfies the second positioning condition corresponding to the current positioning request, and the current determination process is ended.
And 102d, judging that the current application does not meet the second positioning condition.
In a specific embodiment of the present invention, when the time interval is less than the preset time period, it may be determined that the current application does not satisfy the second positioning condition corresponding to the current positioning request. That is, when the time interval is less than the preset time period, it indicates that the time when the current application sends the current positioning request to the positioning unit is not long enough from the time when the previous application sends the positioning request to the positioning unit, and therefore, it may be determined that the current application does not satisfy the second positioning condition corresponding to the current positioning request.
According to the above description, through the steps 102a to 102d, it can be determined whether the current application satisfies the second positioning condition, and when the current application does not satisfy the second positioning condition, the positioning unit can return the pre-stored information to the current application; when the current application meets the second positioning condition, the positioning unit can position the mobile terminal.
It should be noted that, after each restart of the mobile terminal, the current positioning time may be set to 1. At this time, after receiving the current positioning request sent by the current application, the positioning unit may position the mobile terminal because the current application satisfies the first positioning condition.
And step 103, returning pre-stored information to the current application.
In a specific embodiment of the present invention, when the current application does not satisfy the first positioning condition and the current application does not satisfy the second positioning condition, the positioning unit may return the pre-stored information to the current application. Wherein, the pre-stored information can be pre-stored position information; or the reminding information stored in advance.
And step 104, positioning the mobile terminal.
In a specific embodiment of the present invention, when the current application satisfies the first positioning condition, or when the current application satisfies the second positioning condition, the positioning unit preset in the mobile terminal may position the mobile terminal. Specifically, in the embodiment of the present invention, the positioning unit may employ a plurality of positioning methods to position the mobile terminal, for example, the positioning unit may employ positioning technologies such as GPS in the united states, beidou in china, GLONASS in russia, galileo in europe, and the like to position the mobile terminal.
In the specific embodiment of the present invention, after the positioning unit positions the mobile terminal, the positioning unit may further determine whether the mobile terminal is successfully positioned. Fig. 4 is a schematic flow chart of an implementation method for determining whether the mobile terminal is successfully located in the embodiment of the present invention, and as shown in fig. 4, the method for determining whether the mobile terminal is successfully located may include the following steps:
104a, judging whether position information of the mobile terminal is acquired in a preset positioning time period; if yes, go to step 104 b; otherwise, step 104c is performed.
In an embodiment of the present invention, the preset positioning time period may also be set according to system requirements. For example, the preset positioning period may be set to 1 minute. In this step, it may be determined whether the positioning unit obtains the location information of the mobile terminal within a preset positioning period; if the positioning unit obtains the position information of the mobile terminal in a preset positioning time period, executing step 104 b; if the positioning unit does not acquire the location information of the mobile terminal within the preset positioning period, step 104c is executed.
And step 104b, judging that the mobile terminal is successfully positioned, and ending the judging process.
In the specific embodiment of the present invention, if the positioning unit acquires the location information of the mobile terminal within the preset positioning time period, it may be determined that the mobile terminal is successfully positioned, and the positioning unit may return the location information of the mobile terminal to the current application. And, at this time, if the current positioning number is not the preset initial value, the positioning unit may set the current positioning number to the preset initial value. Specifically, if the current positioning number is greater than 1, the positioning unit may set the current positioning number to 1.
And step 104c, judging that the mobile terminal fails to be positioned.
In the specific embodiment of the present invention, if the positioning unit does not acquire the location information of the mobile terminal within the preset positioning time period, it may be determined that the mobile terminal has failed to be positioned, and the positioning unit may return the pre-stored information to the current application. And the first time that the positioning unit returns the pre-stored information to the current application can be recorded, and the current positioning times is added with 1.
According to the positioning method provided by the embodiment of the invention, if the current application neither meets the first positioning condition nor the second positioning condition, the positioning unit returns the pre-stored information to the current application, and the mobile terminal cannot be positioned. Unlike the prior art, the embodiment of the invention does not limit any received positioning request, and the positioning unit preset in the mobile terminal can immediately position the mobile terminal after receiving the positioning request sent by each application. Obviously, compared with the prior art, the positioning method provided by the embodiment of the invention can greatly reduce the positioning times of the mobile terminal, thereby effectively reducing the power consumption of the mobile terminal; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Fig. 5 is a schematic structural diagram of a positioning device in an embodiment of the present invention, and as shown in fig. 5, the positioning device includes: a positioning unit 501 and a judging unit 502; wherein the content of the first and second substances,
the positioning unit 501 is configured to send a current positioning request to the determining unit 502 after receiving the current positioning request sent by a current application;
the determining unit 502 is configured to determine whether the current application satisfies a first positioning condition; when the current application does not meet the first positioning condition, judging whether the current application meets a second positioning condition corresponding to the current positioning request; when the current application does not satisfy the second positioning condition, a notification message is sent to the positioning unit 501;
the positioning unit 501 is further configured to return pre-stored information to the current application after receiving the notification message.
Further, the determining unit 502 is specifically configured to determine whether the current positioning frequency of the mobile terminal is a preset initial value; when the current positioning times are the initial values, judging that the current application meets the first positioning condition; and when the current positioning times are not the initial values, judging that the current application does not meet the first positioning condition.
Further, the determining unit 502 includes: a calculation subunit 5021 and a judgment subunit 5022; wherein the content of the first and second substances,
the calculating subunit 5021 is configured to calculate a time interval between a first time when the pre-stored information is returned to an upper application and a second time when the current positioning request sent by the current application is received, and send the time interval to the judging subunit 5022;
the judging subunit 5022 is configured to judge whether the time interval is greater than or equal to a preset time period; when the time interval is greater than or equal to a preset time period, judging that the current application meets the second positioning condition; and when the time interval is smaller than the preset time interval, judging that the current application does not meet the second positioning condition.
Further, the positioning unit 501 is further configured to position the mobile terminal when the current application meets the first positioning condition or when the current application meets the second positioning condition.
Further, the determining unit 502 is further configured to determine whether the mobile terminal is successfully located, and when the mobile terminal is successfully located, send a message that the location is successful to the locating unit 501; when the mobile terminal fails to locate, sending a message of failed location to the location unit 501;
the positioning unit 501 is further configured to return the location information of the mobile terminal to the current application after receiving the message that the positioning is successful; and the processor is further configured to return the pre-stored information to the current application after receiving the message of the positioning failure.
Further, the positioning unit 501 is further configured to, when the mobile terminal is successfully positioned, set the current positioning time to the initial value if the current positioning time is not the initial value; and when the mobile terminal fails to be positioned, recording the first time for returning the pre-stored information to the current application, and adding 1 to the current positioning times.
In practical applications, the positioning unit 501 and the determining unit 502 can be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA) located in the mobile terminal.
According to the positioning device provided by the embodiment of the invention, if the current application neither meets the first positioning condition nor the second positioning condition, the prestored information is returned to the current application, and the mobile terminal cannot be positioned. Unlike the prior art, the embodiment of the invention does not limit any received positioning request, and the positioning unit preset in the mobile terminal can immediately position the mobile terminal after receiving the positioning request sent by each application. Obviously, compared with the prior art, the positioning device provided by the embodiment of the invention can greatly reduce the positioning times of the mobile terminal, thereby effectively reducing the power consumption of the mobile terminal; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A method of positioning, the method comprising:
after receiving a current positioning request sent by a current application, judging whether the current application meets a first positioning condition;
when the current application does not meet the first positioning condition, judging whether the current application meets a second positioning condition corresponding to the current positioning request;
when the current application does not meet the second positioning condition, returning pre-stored information to the current application;
the determining whether the current application satisfies a second positioning condition corresponding to the current positioning request includes:
calculating the time interval between the first time of returning the pre-stored information to the last application and the second time of receiving the current positioning request sent by the current application;
judging whether the time interval is greater than or equal to a preset time period or not;
when the time interval is greater than or equal to a preset time period, judging that the current application meets the second positioning condition;
and when the time interval is smaller than the preset time interval, judging that the current application does not meet the second positioning condition.
2. The method of claim 1, wherein the determining whether the current application satisfies a first positioning condition comprises:
judging whether the current positioning times of the mobile terminal is a preset initial value or not;
when the current positioning times are the initial values, judging that the current application meets the first positioning condition;
and when the current positioning times are not the initial values, judging that the current application does not meet the first positioning condition.
3. The method of claim 2, further comprising:
and when the current application meets the first positioning condition or the second positioning condition, positioning the mobile terminal.
4. The method of claim 3, further comprising:
judging whether the mobile terminal is successfully positioned;
when the mobile terminal is successfully positioned, returning the position information of the mobile terminal to the current application;
and when the mobile terminal fails to position, returning the pre-stored information to the current application.
5. The method of claim 4, further comprising:
when the mobile terminal is successfully positioned, if the current positioning times are not the initial values, setting the current positioning times as the initial values;
and when the mobile terminal fails to be positioned, recording the first time for returning the pre-stored information to the current application, and adding 1 to the current positioning times.
6. A positioning device, the device comprising:
the positioning unit is used for sending the current positioning request to the judging unit after receiving the current positioning request sent by the current application;
the judging unit is used for judging whether the current application meets a first positioning condition; when the current application does not meet the first positioning condition, judging whether the current application meets a second positioning condition corresponding to the current positioning request; when the current application does not meet the second positioning condition, sending a notification message to the positioning unit;
the positioning unit is further configured to return pre-stored information to the current application after receiving the notification message;
the judging unit includes:
the calculating subunit is configured to calculate a time interval between a first time when the pre-stored information is returned to a previous application and a second time when the current positioning request sent by the current application is received, and send the time interval to the judging subunit;
the judging subunit is configured to judge whether the time interval is greater than or equal to a preset time period; when the time interval is greater than or equal to a preset time period, judging that the current application meets the second positioning condition; and when the time interval is smaller than the preset time interval, judging that the current application does not meet the second positioning condition.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to determine whether a current positioning time of the mobile terminal is a preset initial value; when the current positioning times are the initial values, judging that the current application meets the first positioning condition; and when the current positioning times are not the initial values, judging that the current application does not meet the first positioning condition.
8. The apparatus according to claim 7, wherein the positioning unit is further configured to position the mobile terminal when the current application satisfies the first positioning condition or when the current application satisfies the second positioning condition.
9. The apparatus according to claim 8, wherein the determining unit is further configured to determine whether the mobile terminal is successfully located, and when the mobile terminal is successfully located, send a message that the location is successful to the locating unit; when the mobile terminal fails to position, sending a positioning failure message to the positioning unit;
the positioning unit is further configured to return the location information of the mobile terminal to the current application after receiving the message that the positioning is successful; and the processor is further configured to return the pre-stored information to the current application after receiving the message of the positioning failure.
10. The apparatus according to claim 9, wherein the positioning unit is further configured to, if the current positioning time is not the initial value when the mobile terminal is successfully positioned, set the current positioning time to the initial value; and when the mobile terminal fails to be positioned, recording the first time for returning the pre-stored information to the current application, and adding 1 to the current positioning times.
CN201610517377.3A 2016-07-04 2016-07-04 Positioning method and device Active CN107580361B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610517377.3A CN107580361B (en) 2016-07-04 2016-07-04 Positioning method and device
PCT/CN2016/105702 WO2018006523A1 (en) 2016-07-04 2016-11-14 Positioning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610517377.3A CN107580361B (en) 2016-07-04 2016-07-04 Positioning method and device

Publications (2)

Publication Number Publication Date
CN107580361A CN107580361A (en) 2018-01-12
CN107580361B true CN107580361B (en) 2020-08-28

Family

ID=60901352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610517377.3A Active CN107580361B (en) 2016-07-04 2016-07-04 Positioning method and device

Country Status (2)

Country Link
CN (1) CN107580361B (en)
WO (1) WO2018006523A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110876182A (en) * 2018-09-03 2020-03-10 成都鼎桥通信技术有限公司 Position measuring method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309441B (en) * 2007-05-16 2012-11-14 北京邮电大学 Information searching system based on subscriber location and calling center
US8744478B2 (en) * 2008-02-20 2014-06-03 Qualcomm Incorporated Method and apparatus for executing location dependent application in a mobile handset
CN101360146B (en) * 2008-09-12 2013-04-10 青岛海信移动通信技术股份有限公司 Positioning method and system of mobile communication apparatus
CN101893697B (en) * 2009-05-21 2013-05-22 宏达国际电子股份有限公司 Electronic device and power management method thereof
CN102695250B (en) * 2011-03-24 2016-03-23 中国电信股份有限公司 Third party positioning method and system, mobile terminal
CN103024659B (en) * 2011-09-22 2018-09-11 嘉兴高恒信息科技有限公司 A kind of location method and system
CN102662392B (en) * 2012-05-04 2014-02-12 西安电子科技大学 System and method for virtually debugging precise visual servo positioning system
KR101491727B1 (en) * 2013-08-13 2015-02-09 에스케이 텔레콤주식회사 Apparatus for Providing Location Based Service by Using Determining Indoor Position and Computer-Readable Recording Medium with Program
CN105142213A (en) * 2015-07-15 2015-12-09 腾讯科技(深圳)有限公司 Positioning method and device
CN105491523A (en) * 2015-12-08 2016-04-13 小米科技有限责任公司 Method and device for acquiring position information

Also Published As

Publication number Publication date
WO2018006523A1 (en) 2018-01-11
CN107580361A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
US9712973B2 (en) Method of selecting a SIM for a location service and multi-SIM device utilizing the same
EP3179790A1 (en) Method and apparatus for determining location of target portable device
CN109845216B (en) Communication method and device
CN104181567B (en) Terminal device positioning method, terminal device and terminal device positioning system
EP3163946A1 (en) Information transmission method and apparatus, device, computer program and recording medium
US9876744B2 (en) Information sending method and information sending apparatus
US11910335B2 (en) Vehicle-to-everything synchronization method and device
TW201301918A (en) Method for using geographic signal fingerprint cluster to implement end-to-end message push
CN107580361B (en) Positioning method and device
CN108197958B (en) Method and device for counting off-line cattle and storage medium
CN103957514A (en) Method and device for prompting user
WO2017054283A1 (en) Method and mobile terminal for using sim data
WO2011091661A1 (en) Method for locating and mobile terminal thereof
CN110913038B (en) IP address determination method, device, server and computer readable storage medium
CN105227351A (en) Log acquisition system, journal obtaining method and electronic equipment
US9510317B1 (en) Location estimation of mobile stations by coordinating the acquisition and use of control plane and user plane location data
CN107247280B (en) Positioning authentication and processing method and device
US20100113012A1 (en) System and method for identifying status of a mobile phone
CN109379704B (en) Method, device and equipment for correcting regional information of short message and storage medium
US9414187B2 (en) Method, location determiner, computer program and computer program product for determining a location of a mobile communication terminal
CN102572099B (en) Status query time interval determination method, device and system for mobile terminal
CN101784007B (en) Locating method of mobile terminal and related device
CN114222257B (en) 5G message issuing method and system
JP2014064062A (en) Mobile communication terminal, information processing method, and program
CN108076454B (en) Information processing method, device and system

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