Method for setting positioning mode and mobile terminal
First Claim
1. A method for setting a positioning mode for a mobile terminal, comprising:
- obtaining an azimuth and a signal parameter value of each preset satellite of M preset satellites when the mobile terminal is at a first location, wherein the each preset satellite has a corresponding preset value, and M is an integer greater than 1;
sorting the M preset satellites according to values of azimuths of the M preset satellites;
obtaining, from the M sorted preset satellites, N satellite combinations, wherein each of the N satellite combinations includes consecutively arranged sorted preset satellites, wherein each particular preset satellite in a satellite combination has a signal parameter value less than a corresponding preset value of the particular preset satellite, wherein N is an integer greater than or equal to 1, and wherein each satellite combination comprises at least one preset satellite;
determining a quantity of preset satellites in a first satellite combination of the N satellite combinations, wherein the first satellite combination is a satellite combination comprising a largest quantity of preset satellites of the N satellite combinations;
calculating a ratio of the quantity of the preset satellites in the first satellite combination to M; and
in response to determining that the ratio of the quantity of the preset satellites in the first satellite combination to M is less than a first threshold, setting the positioning mode to an outdoor positioning mode;
orin response to determining that the ratio of the quantity of the preset satellites in the first satellite combination to M is greater than a second threshold, setting the positioning mode to an indoor positioning mode, wherein the first threshold is less than or equal to the second threshold;
wherein the mobile terminal sets the positioning mode to the outdoor positioning mode or the indoor positioning mode when the mobile terminal is at the first location and at a first moment, wherein the mobile terminal further moves to a second location at a second moment, and wherein the method further comprises;
in response to determining that at least one of a location interval between the second location and the first location is greater than a first preset distance and less than a second preset distance, or, a time interval between the second moment and the first moment is greater than a first preset time interval and less than a second preset time interval, obtaining the signal parameter values of the M preset satellites when the mobile terminal is at the second location and at the second moment, wherein the second preset distance is greater than the first preset distance, and wherein the second preset time interval is greater than the first preset time interval; and
setting a second positioning mode for the mobile terminal based on the signal parameter values of the M preset satellites when the mobile terminal is at the second location and at the second moment, and the azimuths of the M preset satellites when the mobile terminal is at the first location and at the first moment.
1 Assignment
0 Petitions
Accused Products
Abstract
A method includes: obtaining an azimuth and a signal parameter value of each preset satellite of M preset satellites when a mobile terminal is at a first location. The M preset satellites are sorted according to the values of their azimuths and N satellite combinations are obtained from those satellites that are consecutively arranged and have signal parameter values less than preset values. In response to determining that a ratio of the quantity of the preset satellites in the first satellite combination to M is less than a first threshold, the positioning mode of the mobile terminal is set to an outdoor positioning mode. In response to determining that a ratio of the quantity of the preset satellites in the first satellite combination to M is greater than a second threshold, the positioning mode is set to an indoor positioning mode.
7 Citations
15 Claims
-
1. A method for setting a positioning mode for a mobile terminal, comprising:
-
obtaining an azimuth and a signal parameter value of each preset satellite of M preset satellites when the mobile terminal is at a first location, wherein the each preset satellite has a corresponding preset value, and M is an integer greater than 1; sorting the M preset satellites according to values of azimuths of the M preset satellites; obtaining, from the M sorted preset satellites, N satellite combinations, wherein each of the N satellite combinations includes consecutively arranged sorted preset satellites, wherein each particular preset satellite in a satellite combination has a signal parameter value less than a corresponding preset value of the particular preset satellite, wherein N is an integer greater than or equal to 1, and wherein each satellite combination comprises at least one preset satellite; determining a quantity of preset satellites in a first satellite combination of the N satellite combinations, wherein the first satellite combination is a satellite combination comprising a largest quantity of preset satellites of the N satellite combinations; calculating a ratio of the quantity of the preset satellites in the first satellite combination to M; and in response to determining that the ratio of the quantity of the preset satellites in the first satellite combination to M is less than a first threshold, setting the positioning mode to an outdoor positioning mode;
orin response to determining that the ratio of the quantity of the preset satellites in the first satellite combination to M is greater than a second threshold, setting the positioning mode to an indoor positioning mode, wherein the first threshold is less than or equal to the second threshold; wherein the mobile terminal sets the positioning mode to the outdoor positioning mode or the indoor positioning mode when the mobile terminal is at the first location and at a first moment, wherein the mobile terminal further moves to a second location at a second moment, and wherein the method further comprises; in response to determining that at least one of a location interval between the second location and the first location is greater than a first preset distance and less than a second preset distance, or, a time interval between the second moment and the first moment is greater than a first preset time interval and less than a second preset time interval, obtaining the signal parameter values of the M preset satellites when the mobile terminal is at the second location and at the second moment, wherein the second preset distance is greater than the first preset distance, and wherein the second preset time interval is greater than the first preset time interval; and setting a second positioning mode for the mobile terminal based on the signal parameter values of the M preset satellites when the mobile terminal is at the second location and at the second moment, and the azimuths of the M preset satellites when the mobile terminal is at the first location and at the first moment. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A mobile terminal, comprising:
-
one or more hardware processors; and a non-transitory computer-readable storage medium coupled to the one or more hardware processors and storing programming instructions for execution by the one or more hardware processors, wherein the programming instructions instruct the one or more hardware processors to; obtain an azimuth and a signal parameter value of each preset satellite of M preset satellites when the mobile terminal is at a first location, wherein the each preset satellite has a corresponding preset value, and M is an integer greater than 1; sort the M preset satellites according to values of azimuths of the M preset satellites; obtain, from the M sorted preset satellites, N satellite combinations, wherein each of the N satellite combinations includes consecutively arranged sorted preset satellites, wherein each particular preset satellite in a satellite combination has a signal parameter value less than a corresponding preset value of the particular preset satellite, wherein N is an integer greater than or equal to 1, and wherein each satellite combination comprises at least one preset satellite; determine a quantity of preset satellites in a first satellite combination of the N satellite combinations, wherein the first satellite combination is a satellite combination comprising a largest quantity of preset satellites of the N satellite combinations; calculate a ratio of the quantity of the preset satellites in the first satellite combination to M; and in response to determining that the ratio of the quantity of the preset satellites in the first satellite combination to M is less than a first threshold, setting the positioning mode to an outdoor positioning mode;
orin response to determining that the ratio of the quantity of the preset satellites in the first satellite combination to M is greater than a second threshold, setting the positioning mode to an indoor positioning mode, wherein the first threshold is less than or equal to the second threshold; wherein the mobile terminal sets the positioning mode to the outdoor positioning mode or the indoor positioning mode when the mobile terminal is at the first location and at a first moment, wherein the mobile terminal further moves to a second location at a second moment, and wherein the programming instructions further instruct the one or more hardware processors to; in response to determining that at least one of a location interval between the second location and the first location is greater than a first preset distance and less than a second preset distance, or, a time interval between the second moment and the first moment is greater than a first preset time interval and less than a second preset time interval, obtain the signal parameter values of the M preset satellites when the mobile terminal is at the second location and at the second moment, wherein the second preset distance is greater than the first preset distance, and wherein the second preset time interval is greater than the first preset time interval; and set a second positioning mode for the mobile terminal based on the signal parameter values of the M preset satellites when the mobile terminal is at the second location and at the second moment, and the azimuths of the M preset satellites when the mobile terminal is at the first location and at the first moment. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A non-transitory computer readable storage medium storing computer instructions, when executed by one or more hardware processors of a mobile terminal, cause the one or more hardware processors to perform operations comprising:
-
obtaining an azimuth and a signal parameter value of each preset satellite of M preset satellites when the mobile terminal is at a first location, wherein each preset satellite has a corresponding preset value, and M is an integer greater than 1; sorting the M preset satellites according to values of azimuths of the M preset satellites; obtaining, from the M sorted preset satellites, N satellite combinations, wherein each of the N satellite combinations includes consecutively arranged sorted preset satellites, wherein each particular preset satellite in a satellite combination has a signal parameter value less than a corresponding preset value of the particular preset satellite, wherein N is an integer greater than or equal to 1, and wherein each satellite combination comprises at least one preset satellite; determining a quantity of preset satellites in a first satellite combination of the N satellite combinations, wherein the first satellite combination is a satellite combination comprising a largest quantity of preset satellites of the N satellite combinations; calculating a ratio of the quantity of the preset satellites in the first satellite combination to M; and in response to determining that the ratio of the quantity of the preset satellites in the first satellite combination to M is less than a first threshold, setting the positioning mode to an outdoor positioning mode;
orin response to determining that the ratio of the quantity of the preset satellites in the first satellite combination to M is greater than a second threshold, setting the positioning mode to an indoor positioning mode, wherein the first threshold is less than or equal to the second threshold; wherein the mobile terminal sets the positioning mode to the outdoor positioning mode or the indoor positioning mode when the mobile terminal is at the first location and at a first moment, wherein the mobile terminal further moves to a second location at a second moment, and wherein the operations further comprise; in response to determining that at least one of a location interval between the second location and the first location is greater than a first preset distance and less than a second preset distance, or, a time interval between the second moment and the first moment is greater than a first preset time interval and less than a second preset time interval, obtaining the signal parameter values of the M preset satellites when the mobile terminal is at the second location and at the second moment, wherein the second preset distance is greater than the first preset distance, and wherein the second preset time interval is greater than the first preset time interval; and setting a second positioning mode for the mobile terminal based on the signal parameter values of the M preset satellites when the mobile terminal is at the second location and at the second moment, and the azimuths of the M preset satellites when the mobile terminal is at the first location and at the first moment. - View Dependent Claims (12, 13, 14, 15)
-
Specification