×

Switching method and portable electronic device

  • US 10,598,797 B2
  • Filed: 12/29/2015
  • Issued: 03/24/2020
  • Est. Priority Date: 12/29/2015
  • Status: Active Grant
First Claim
Patent Images

1. A switching method, applied to a portable electronic device comprising a barometer and a sound sensor, comprising:

  • obtaining barometric data collected by the barometer in a preset duration and sound intensity data collected by the sound sensor in the preset duration, wherein the barometric data comprises barometric values collected in a series of moments in the preset duration, wherein the sound intensity data comprises sound intensity data collected in the series of moments in the preset duration, and wherein the barometer and the sound sensor perform collection synchronously;

    determining that the barometric data and the sound intensity data meet a preset condition, wherein the preset condition corresponds to the portable electronic device entering a vehicle; and

    switching a first positioning algorithm to a second positioning algorithm or switching a first positioning technology to a second positioning technology based on a determination that the portable electronic device enters the vehicle, wherein the preset condition comprises at least one of;

    at least one barometric value in the barometric data is greater than a first threshold and at least one sound intensity value in the sound intensity data is greater than a second threshold;

    the at least one barometric value in the barometric data increases at least once and the at least one sound intensity value in the sound intensity data increases at least once;

    an average value of all the barometric values in the barometric data is greater than a third threshold and an average value of all the sound intensity values in the sound intensity data is greater than a fourth threshold;

    an absolute value of a difference between a first time when a sound intensity value in the sound intensity data is greater than the second threshold and a second time when a barometric value in the barometric data is greater than the first threshold is less than a fifth threshold;

    an absolute value of a difference between a third time when a sound intensity value in the sound intensity data increases and a fourth time when a barometric value in the barometric data increases is less than a sixth threshold;

    oran absolute value of a difference between a fifth time when the average value of all the sound intensity values in the sound intensity data is greater than the fourth threshold and a sixth time when the average value of all the barometric values in the barometric data is greater than the third threshold is less than a seventh threshold.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×