GPS positioning default Time setting scheme

Source: Internet
Author: User

The following schemes are given from the angle of feasibility and adaptability.
Based on the principle of locality: we will find some common laws in our life, repetition is often local.
For example, you talk to a person, you say a word, will often repeat, but you will not be 5 hours to repeat this sentence, everywhere is this example, such as when you are programming, you define a variable int ncount, this ncount generally you will use, will not be very far away.
Since our software has automatic reporting of GPS function, and the time of automatic reporting is not long, we can also think that the current location environment and the last automatic escalation of the location environment is similar, then the time to obtain GPS is similar, we will be the last time the default location escalation as the default time for this location escalation.
Read from the relevant information, the GPS positioning time and the handset motherboard settings is how many channels of the signal channel, and the location of the relevant, that is, the phone model and the scope of the party's activities. Therefore, the default time that is obtained from the last location environment and the location required for this position can be equal and better suited.
Then the remaining problem is to get a default with the default time that already exists to select the problem.

1, when the system does not set the default time, set the default time is 30s.
2, set the positioning time-consuming reasonable interval 5-30s.
Below 5s is considered to be a hot start, discard value; Out of 30s is considered indoors, setting the default value to 5s (in order to shorten the waiting time for next positioning); The value between 5-30s is considered to be time-consuming for GPS positioning in the current environment.
3. The location of other pages is time-consuming to read only the default value of the configuration file.

Ps:

Original plan: Statistics of the various models of mobile phone positioning time-consuming average, and then for different phones give different default time.

GPS positioning default Time setting scheme

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.