×

Method for setting positioning mode and mobile terminal

  • US 10,539,677 B2
  • Filed: 06/04/2015
  • Issued: 01/21/2020
  • Est. Priority Date: 06/04/2015
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×