The present invention relates to a positioning method, and more particularly, to a context managing method and an electronic device.
Traditionally, an electronic device such as a smart phone utilizes radio signals (e.g. Global Positioning System (GPS), Wireless Fidelity (WiFi), or a Bluetooth (BT)) for positioning. However, if only one single positioning method is applied for positioning, the current absolute position and continuous track data will no longer be recorded when the radio signals strength are not good enough. For example, when the user is driving/walking in an underground parking lot, the radio signals may be very weak or may be lost. In addition, constantly searching for radio signals (e.g. GPS signal or WiFi signal) for positioning causes considerable power consumption.
Therefore, a method capable of detecting the context of the user to selectively turn off the positioning source to save power and/or capable of utilizing multiple positioning sources at the same time for positioning is desirable.
One of the objectives of the present invention is to provide a location context managing method to detect a context of a user for positioning and an electronic device.
According to an embodiment of the present invention, a location context managing method applied to an electronic device having at least one sensor is disclosed, wherein the method comprises: receiving positioning information from a plurality of positioning sources; receiving a value from the sensor; choosing a scenario from a scenario table based on the value received from the sensor and the positioning information received from the plurality of positioning sources, and calculating a location of the electronic device according to the scenario, wherein the scenario table lists a plurality of scenarios, each decides which positioning information from the plurality positioning sources to be adopted for the location calculation.
According to an embodiment of the present invention, an electronic device having at least one sensor is disclosed, wherein the electronic device comprises: a storage device, arranged to store a program code; and a processor, arranged to execute the program code. When loaded and executed by the processor, the program code instructs the processor to execute following steps: receiving positioning information from a plurality of positioning sources;
receiving a value from the sensor; choosing a scenario from a scenario table based on the value received from the sensor and the positioning information received from the plurality of positioning sources, and calculating a location of the electronic device according to the scenario, wherein the scenario table lists a plurality of scenarios, each decides which positioning information from the plurality positioning sources to be adopted for the location calculation.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should not be interpreted as a close-ended term such as “consist of”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
The location context managing module 101, calculation module 102 and calibration module 103 of the location context managing system 100 may be software modules. The context managing module 101 is arranged to receive positioning information of the plurality of positioning sources and selectively turnoff the positioning sources, wherein the positioning information of the plurality of positioning sources are varied according to the context of the user of the electronic device 10. For example, the positioning information of the GNSS receiver is referred to the signal strength received by the GNSS receiver. If the user of the electronic device 10 drives a car into an underground parking lot from outdoor, the strength of the satellite signal received by the GNSS receiver becomes weaker. When the strength of the satellite signal received by the GNSS receivers is smaller than a predetermined value, the location context managing module 101 can turn off the GNSS receiver to save power. In this way, the context managing module 101 prevents the GNSS receiver from keeping searching for the satellite signal even when the strength of the satellite signal is way too small. For another example, the positioning information of the pressure sensor is referred to the pressure measured by the pressure sensor. If the user takes an elevator from the underground parking lot to high floor office, the pressure measured by the pressure sensor becomes smaller. For yet another example, the state of the map is referred to the accuracy.
The calculation module 102 is arranged to calculate a location of the electronic device 10 according to the positioning information of the plurality of positioning sources which varied with the scenarios. Because the location is calculated based on multiple positioning sources, the accuracy can be greatly improved. The calibration module 103 is arranged to calibrate the plurality of positioning sources according to the location calculated by the calculation module 102. It should be noted that the calibration module 103 may be optional depending upon actual design considerations.
Table 1 shown below illustrates scores of the positioning sources in different contexts according to an embodiment of the present invention. The scores shown in the table 1 represent the dependency of the positioning information of the plurality of sources in the specific context. For example, when the user drives outdoor, the GNSS signal scores 2 points due to the strongest dependency. In addition, the Wi-Fi device is unable to receive any Wi-Fi signal when the user drives outdoor, the Wi-fi device thus scores 0 points. At this case, the context manager module 101 turns off the Wi-Fi device to save more power. It should be noted that Table 1 is only for illustrative purpose, and the score of the positioning source only represents the dependency of the positioning source to indicate how important the positioning source is in the specific context for positioning, not an actual score.
In different contexts, the context manager module 101 can still utilize multiple positioning sources for positioning, such that the accuracy can be greatly improved. Also, by turning off the positioning source which has the poorest dependency for positioning, the power consumption can be reduced.
Step 300: receive positioning information from a plurality of positioning sources.
Step 302: receive a value from the sensor.
Step 304: choose a scenario from a scenario table based on the value received from the sensor and the positioning information received from the plurality of positioning sources.
Step 306: calculate a location of the electronic device according to the scenario.
As a person skilled in the art can readily understand details of each step shown in
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
This application claims the benefit of U.S. provisional application No. 62/218,581, filed on Sep. 15, 2015 and incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
62218581 | Sep 2015 | US |