TWI631359B - Electronic devices and methods for providing location information - Google Patents

Electronic devices and methods for providing location information Download PDF

Info

Publication number
TWI631359B
TWI631359B TW106122334A TW106122334A TWI631359B TW I631359 B TWI631359 B TW I631359B TW 106122334 A TW106122334 A TW 106122334A TW 106122334 A TW106122334 A TW 106122334A TW I631359 B TWI631359 B TW I631359B
Authority
TW
Taiwan
Prior art keywords
gps
location information
event
location
mcu
Prior art date
Application number
TW106122334A
Other languages
Chinese (zh)
Other versions
TW201802493A (en
Inventor
謝昀珈
胡國鼎
蔡雨坤
謝清霖
Original Assignee
曦恩體感科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US15/619,607 external-priority patent/US11029414B2/en
Application filed by 曦恩體感科技股份有限公司 filed Critical 曦恩體感科技股份有限公司
Publication of TW201802493A publication Critical patent/TW201802493A/en
Application granted granted Critical
Publication of TWI631359B publication Critical patent/TWI631359B/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/34Power consumption
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/48Determining position by combining or switching between position solutions derived from the satellite radio beacon positioning system and position solutions derived from a further system
    • G01S19/49Determining position by combining or switching between position solutions derived from the satellite radio beacon positioning system and position solutions derived from a further system whereby the further system is an inertial position system, e.g. loosely-coupled

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Navigation (AREA)
  • Telephone Function (AREA)

Abstract

一種電子裝置及用於提供位置資訊的方法,此方法包括:產生對應於電子裝置感測到的運動的感測器讀數;判斷參考位置資訊;基於參考位置資訊、感測器讀數,計算GPS融合的位置資訊;基於GPS融合的位置資訊的變化,產生GPS所需的事件;響應於參考位置資訊,產生GPS不需要的事件;接收GPS融合的位置資訊及GPS所需的事件或GPS不需要的事件的一個;響應於接收GPS所需的事件,在位置資訊獲取模式下操作GPS接收器,在位置資訊獲取模式期間,GPS接收器產生地理位置讀數;響應於接收GPS不需要的事件,在省電模式下,操作GPS接收器,在省電模式期間, GPS接收器為停用。An electronic device and a method for providing location information, the method comprising: generating a sensor reading corresponding to the motion sensed by the electronic device; determining the reference position information; calculating the GPS fusion based on the reference position information, the sensor reading Location information; changes in location information based on GPS convergence, generating events required by GPS; generating unwanted events for GPS in response to reference location information; receiving location information for GPS convergence and events required for GPS or GPS not required One of the events; operating the GPS receiver in the location information acquisition mode in response to an event required to receive the GPS, the GPS receiver generating a geographic location reading during the location information acquisition mode; in response to receiving an event not required by the GPS, in the province In the electrical mode, the GPS receiver is operated, and during the power saving mode, the GPS receiver is deactivated.

Description

電子裝置以及用於提供位置資訊的方法Electronic device and method for providing location information

本發明是有關於一種用於移動裝置中的絕對定位及相對定位技術的使用。 The present invention relates to the use of an absolute positioning and relative positioning technique for use in a mobile device.

絕對定位技術(例如,全球定位系統(GPS)、Wi-Fi及鄰近標記)雖然可提供信賴及準確的位置資訊,但若是以最大可能速率來更新此類資訊將消耗相當大的功率且無法保證完整的覆蓋率。相對定位技術(例如,步行航位推算(pedestrian dead reckoning,PDR))是基於先前所判定的位置利用使用者裝置的慣性感測器來估計使用者裝置的當前位置,其甚至可在絕對位置資訊無法取得的環境下使用,然而以此技術所估計當前位置將存在累計誤差。 Absolute positioning techniques (eg, Global Positioning System (GPS), Wi-Fi, and proximity tags) provide reliable and accurate location information, but updating such information at the highest possible rate consumes considerable power and is not guaranteed Complete coverage. A relative positioning technique (eg, pedestrian dead reckoning (PDR)) is to estimate the current position of the user device using the inertial sensor of the user device based on the previously determined position, which may even be in absolute position information. Unusable in the environment, however, there is a cumulative error in the current position estimated by this technique.

值得注意的是,移動裝置常配備有可以用於執行相對定位技術的嵌入式感測器(例如,加速計、陀螺感測器及磁力計)。 移動裝置的中央處理單元(CPU)可以收集感測器產生的樣本並基於樣本執行一些處理。例如,CPU可以計算移動裝置的移動和方位或計算移動裝置的使用者已經行走的步數。 It is worth noting that mobile devices are often equipped with embedded sensors (eg, accelerometers, gyro sensors, and magnetometers) that can be used to perform relative positioning techniques. The central processing unit (CPU) of the mobile device can collect samples generated by the sensors and perform some processing based on the samples. For example, the CPU can calculate the movement and orientation of the mobile device or calculate the number of steps the user of the mobile device has traveled.

由於感測器不斷地產生樣本,因此CPU必須不斷地接收並分析樣本。因此,CPU必須很長一段時間處於其完全工作模式中,這會消耗電力並縮短移動裝置的電池壽命。 Since the sensor continuously generates samples, the CPU must continuously receive and analyze the samples. Therefore, the CPU must be in its full operating mode for a long time, which consumes power and shortens the battery life of the mobile device.

有鑑於此,本發明提供一種電子裝置以及用於提供位置資訊的方法。 In view of this, the present invention provides an electronic device and a method for providing location information.

本發明提供一種電子裝置,包括GPS接收器、慣性感測器主控制單元(MCU)以及應用程式處理器。GPS接收器具有接收器電路,經配置以在位置資訊獲取模式與省電模式之間切換,在所述位置資訊獲取模式期間,所述GPS接收器產生地理位置讀數,在所述省電模式期間,所述GPS接收器為停用。慣性傳感器具有感測器電路,經配置以產生對應於所述電子裝置所感測到的運動的感測器讀數。MCU具有控制電路,經配置以判斷參考位置資訊,基於所述參考位置資訊和所述感測器讀數,計算GPS融合的位置資訊,基於所述GPS融合的位置資訊的變化,產生GPS所需的事件,以及響應於確定所述參考位置資訊,產生GPS不需要的事件。應用程式處理器,具有處理器電路,經配置以接收所述GPS融合的位置資訊以及所述GPS所需的事件或所述GPS不需要 的事件中的一個,響應於接收到所述GPS所需的事件,在所述位置資訊獲取模式下操作所述GPS接收器以產生所述地理位置讀數,以及響應於接收到所述GPS不需要的事件,在所述省電模式下操作所述GPS接收器,並且在省電模式期間,GPS接收器為停用。 The present invention provides an electronic device including a GPS receiver, an inertial sensor main control unit (MCU), and an application processor. The GPS receiver has a receiver circuit configured to switch between a location information acquisition mode and a power save mode, the GPS receiver generating a geographic location reading during the location information acquisition mode, during the power save mode The GPS receiver is deactivated. The inertial sensor has a sensor circuit configured to generate a sensor reading corresponding to the motion sensed by the electronic device. The MCU has a control circuit configured to determine reference position information, calculate location information of the GPS fusion based on the reference position information and the sensor reading, and generate GPS required based on the change of the position information of the GPS fusion An event, and in response to determining the reference location information, generating an event that is not required by the GPS. An application processor having processor circuitry configured to receive location information of the GPS convergence and an event required by the GPS or the GPS does not need One of the events, in response to receiving an event required by the GPS, operating the GPS receiver in the location information acquisition mode to generate the geographic location reading, and responsive to receiving the GPS An event in which the GPS receiver is operated in the power saving mode, and during the power saving mode, the GPS receiver is deactivated.

本發明提供一種用於提供位置資訊的方法,適用於電子裝置,方法包括:產生對應於電子裝置所感測到的運動的感測器讀數;判斷參考位置資訊;基於參考位置資訊和感測器讀數,計算GPS融合的位置資訊;基於GPS融合的位置資訊的變化,產生GPS所需的事件;響應於判斷出參考位置資訊,產生GPS不需要的事件;接收GPS融合的位置資訊以及GPS所需的事件或GPS不需要的事件中的一個;響應於接收到GPS所需的事件,在位置資訊獲取模式下操作GPS接收器,在位置資訊獲取模式期間,GPS接收器產生地理位置讀數;以及響應於接收到GPS不需要的事件,在省電模式下操作GPS接收器。 The present invention provides a method for providing location information, suitable for an electronic device, the method comprising: generating a sensor reading corresponding to the motion sensed by the electronic device; determining reference position information; based on the reference position information and the sensor reading Calculating the location information of the GPS fusion; generating the events required by the GPS based on the change of the location information of the GPS fusion; generating the events not required by the GPS in response to determining the reference location information; receiving the location information of the GPS fusion and the GPS required One of an event or an event not required by the GPS; operating the GPS receiver in the location information acquisition mode in response to receiving the event required by the GPS, the GPS receiver generating a geographic location reading during the location information acquisition mode; and responsive to Receiving an event not required by GPS, operating the GPS receiver in the power saving mode.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the invention will be apparent from the following description.

100‧‧‧電子設備 100‧‧‧Electronic equipment

110‧‧‧絕對定位電路 110‧‧‧Absolute positioning circuit

120‧‧‧相對定位電路 120‧‧‧ Relative positioning circuit

130‧‧‧感測器中樞 130‧‧‧Sensor hub

140‧‧‧記憶體 140‧‧‧ memory

150‧‧‧處理器 150‧‧‧ processor

160‧‧‧資料匯流排 160‧‧‧ data bus

200A‧‧‧應用程式層 200A‧‧‧Application layer

200B‧‧‧應用程式架構層 200B‧‧‧Application Architecture Layer

200C‧‧‧硬體抽象層 200C‧‧‧ hardware abstraction layer

200D‧‧‧核心層 200D‧‧‧ core layer

201‧‧‧位置服務應用程式 201‧‧‧Location Service App

203‧‧‧位置管理器 203‧‧‧Location Manager

204‧‧‧感測器管理器 204‧‧‧Sensor Manager

205‧‧‧最佳的位置提供商 205‧‧‧The best location provider

207‧‧‧GPS位置提供商 207‧‧‧GPS location provider

209‧‧‧網路位置提供商 209‧‧‧Network Location Provider

211‧‧‧GPS介面 211‧‧‧GPS interface

212‧‧‧感測器介面 212‧‧‧sensor interface

213‧‧‧GPS硬體抽象層 213‧‧‧GPS hardware abstraction layer

214‧‧‧GPS共用記憶體硬體抽象層 214‧‧‧GPS shared memory hardware abstraction layer

215‧‧‧感測器硬體抽象層 215‧‧‧Sensor hardware abstraction layer

216‧‧‧記憶體塊MB 216‧‧‧ memory block MB

217‧‧‧全球導航衛星系統驅動器 217‧‧‧Global Navigation Satellite System Driver

218‧‧‧感測器驅動器 218‧‧‧Sensor Driver

S302、S304、S306、S308、S310a、S310b、510、520、530、540、550、560、570、610、620、630、640、650、660、670、710、720、730、740、750、760、770、772、774、776、778、780、790‧‧‧方塊 S302, S304, S306, S308, S310a, S310b, 510, 520, 530, 540, 550, 560, 570, 610, 620, 630, 640, 650, 660, 670, 710, 720, 730, 740, 750, 760, 770, 772, 774, 776, 778, 780, 790‧ ‧ blocks

500、600、700‧‧‧方法 500, 600, 700 ‧ ‧ methods

400‧‧‧電子裝置 400‧‧‧Electronic devices

402、802‧‧‧GPS接收器 402, 802‧‧‧ GPS Receiver

404、406、804、806‧‧‧慣性感測器 404, 406, 804, 806‧‧‧ inertial sensors

408、808‧‧‧主控制單元 408, 808‧‧‧ main control unit

410、810‧‧‧應用程式處理器 410, 810‧‧‧ application processor

800‧‧‧電子裝置 800‧‧‧Electronic devices

812‧‧‧緩衝器 812‧‧‧buffer

圖1是示出根據本發明的實施例的電子設備。 FIG. 1 is a diagram showing an electronic device in accordance with an embodiment of the present invention.

圖2是示出根據本發明的實施例所提出的混合定位方法。 2 is a diagram showing a hybrid positioning method proposed in accordance with an embodiment of the present invention.

圖3是示出根據本發明的實施例所提出用於提供混合位置資訊服務的方法。 3 is a diagram showing a method for providing a hybrid location information service in accordance with an embodiment of the present invention.

圖4是示出根據本發明的實施例的電子裝置。 FIG. 4 is a diagram showing an electronic device in accordance with an embodiment of the present invention.

圖5是示出根據本發明的實施例所提出可以由圖4的電子裝置400所實現的方法流程圖。 FIG. 5 is a flow chart showing a method that can be implemented by the electronic device 400 of FIG. 4, in accordance with an embodiment of the present invention.

圖6是示出根據本發明的實施例所提出可以由AP所實現的方法流程圖。 6 is a flow chart showing a method that can be implemented by an AP in accordance with an embodiment of the present invention.

圖7A和7B是示出根據本發明的實施例所提出響應於由AP請求GPS融合的位置資訊的方法流程圖。 7A and 7B are flow diagrams illustrating methods in response to requesting location information for GPS fusion by an AP, in accordance with an embodiment of the present invention.

圖8是示出根據本發明的另一實施例的電子裝置。 FIG. 8 is a diagram showing an electronic device according to another embodiment of the present invention.

本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的方法以及裝置的範例。 The components of the present invention will be described in detail in the following description in conjunction with the accompanying drawings. These examples are only a part of the invention and do not disclose all of the embodiments of the invention. Rather, these embodiments are merely examples of methods and apparatus within the scope of the patent application of the present invention.

絕對定位技術雖然可提供信賴及準確的位置資訊,但若是以最大可能速率來更新此類資訊將消耗相當大的功率且無法保證完整的覆蓋率。相對定位技術是基於先前所判定的位置利用使用者裝置的慣性感測器來估計使用者裝置的當前位置,其甚至可 在絕對位置資訊無法取得的環境下使用,然而以此技術所估計當前位置將存在累計誤差。以下所提出方法的優點可包括(但不限於)通過兩個前述技術整合而在電力消耗保持最小的前提下,使定位的精確性及覆蓋率達到優化。 While absolute positioning technology provides reliable and accurate location information, updating such information at the highest possible rate consumes considerable power and does not guarantee complete coverage. The relative positioning technique estimates the current position of the user device using the inertial sensor of the user device based on the previously determined position, which may even It is used in an environment where absolute position information cannot be obtained. However, there is a cumulative error in the current position estimated by this technique. Advantages of the methods presented below may include, but are not limited to, optimization of positioning accuracy and coverage with minimum power consumption while integrating through the two aforementioned techniques.

圖1是示出根據本發明的實施例的電子設備。圖1中首先介紹電子設備的所有元件以及其配置,元件的詳細功能性將結合圖2一併揭示。 FIG. 1 is a diagram showing an electronic device in accordance with an embodiment of the present invention. All of the components of the electronic device and their configuration are first described in FIG. 1, and the detailed functionality of the components will be disclosed in conjunction with FIG.

請參考圖1,出於示例性目的,電子設備100至少包括絕對定位電路110、相對定位電路120、感測器中樞(Sensor Hub)130、記憶體140、處理器150和資料匯流排160。本文中,感測器中樞130可以通過資料匯流排160耦合到相對定位電路120、記憶體140和處理器150。處理器150可以通過資料匯流排160耦合到絕對定位電路110、感測器中樞130和記憶體140。電子設備100可以是獨立設備,例如,智慧手機、平板電腦、個人數位助理(person digital assistant,PDA)、智慧手錶等等。電子設備100的元件還可以單獨地設置並且無線地連接到彼此。例如,絕對定位電路110和相對定位電路120中的至少一個可以安裝在可穿戴式裝置上,而處理器150可以位於例如智慧手機的遠端監視器中。電子設備100也可以是車輛內置設備。 Referring to FIG. 1 , for exemplary purposes, the electronic device 100 includes at least an absolute positioning circuit 110 , a relative positioning circuit 120 , a sensor hub 130 , a memory 140 , a processor 150 , and a data bus 160 . Herein, the sensor hub 130 can be coupled to the relative positioning circuit 120, the memory 140, and the processor 150 via a data bus 160. The processor 150 can be coupled to the absolute positioning circuit 110, the sensor hub 130, and the memory 140 via a data bus 160. The electronic device 100 may be a standalone device such as a smart phone, a tablet, a personal digital assistant (PDA), a smart watch, and the like. The elements of the electronic device 100 can also be individually arranged and wirelessly connected to each other. For example, at least one of the absolute positioning circuit 110 and the relative positioning circuit 120 can be mounted on a wearable device, and the processor 150 can be located in a remote monitor such as a smart phone. The electronic device 100 can also be a built-in device of the vehicle.

絕對定位電路110可取樣位置讀數,其包括來自經由天線從GPS衛星星座接收GPS衛星無線電信號的GPS接收器的讀數。絕對定位電路110可以將位置讀數傳遞到處理器150,使得處 理器150可以基於位置讀數而回報當前位置資訊。絕對定位電路110還可以基於取樣的位置讀數而將位置資訊直接傳回到處理器150。絕對定位電路110可以在處理器150的控制下動態地改變位置讀數的取樣速率。絕對定位電路110可以提供包括從通信模組產生的讀數的位置讀數,所述讀數可以通過網路無線地指出電子設備100的當前位置資訊。 Absolute positioning circuit 110 may sample a position reading that includes readings from a GPS receiver that receives GPS satellite radio signals from a GPS satellite constellation via an antenna. Absolute positioning circuit 110 can pass position readings to processor 150, causing The processor 150 can report the current location information based on the location reading. The absolute positioning circuit 110 can also pass location information directly back to the processor 150 based on the sampled position readings. The absolute positioning circuit 110 can dynamically change the sampling rate of the position reading under the control of the processor 150. The absolute positioning circuit 110 can provide a position reading that includes readings from the communication module that can wirelessly indicate current location information of the electronic device 100 over the network.

相對定位電路120可包括檢測其位置中的事件或變化且提供相對基礎的對應輸出的慣性感測器。在本實施例中,出於示範性目的,相對定位電路120可提供包括來自加速計、陀螺儀、磁力計、計步器、氣壓計、光感測器、聲壓感測器或耦接到取樣裝置的無線電接收器中的至少一個的讀數的感測器讀數。取樣裝置對在傳輸系統的部分處可檢測的信號源的無線電RF信號的強度進行取樣。信號源可為蜂窩式通信網路的社區月臺、無線接入點或低功耗藍牙(Bluetooth low energy,BLE)信標。感測器讀數可包括關於加速度和減速度的速率、運動速度、方向變化和/或關於電子裝置100的方向變化的速率的資訊。舉例來說,響應於電子裝置100遇到外力時突然移動的任何檢測,三軸加速計將輸出對應於每一軸線的加速度數據。陀螺儀將檢測圍繞空間中的特定軸旋轉的電子裝置100的旋轉移動並且輸出表示所述旋轉移動的資料。加速計和陀螺儀的組合可以形成電子裝置100的整體移動和定向的更精確測量。 The relative positioning circuit 120 can include an inertial sensor that detects an event or change in its position and provides a corresponding output relative to the base. In this embodiment, for exemplary purposes, the relative positioning circuit 120 can be provided to include from an accelerometer, a gyroscope, a magnetometer, a pedometer, a barometer, a light sensor, a sound pressure sensor, or a coupling A sensor reading of a reading of at least one of the radio receivers of the sampling device. The sampling device samples the intensity of the radio RF signal of the signal source detectable at a portion of the transmission system. The signal source can be a community platform of a cellular communication network, a wireless access point, or a Bluetooth low energy (BLE) beacon. The sensor readings may include information regarding the rate of acceleration and deceleration, the speed of motion, the change in direction, and/or the rate of change in direction of the electronic device 100. For example, in response to any detection that the electronic device 100 suddenly moves when an external force is encountered, the three-axis accelerometer will output acceleration data corresponding to each axis. The gyroscope will detect the rotational movement of the electronic device 100 that rotates around a particular axis in space and output data representing the rotational movement. The combination of the accelerometer and the gyroscope can result in a more accurate measurement of the overall movement and orientation of the electronic device 100.

感測器中樞130可以是由微控制器所構成,所述微控制 器具有可程式設計微控制器核心、記憶體和用於將其本身連接到處理器150的介面以及用於將其本身連接到相對定位電路120的另一介面,例如,串列週邊介面匯流排(serial peripheral interface,SPI)或內部積體電路(inter integrated circuit,I2C)。感測器中樞130還可以是由具有外部記憶體和介面電路的微控制器所構成。感測器中樞130經配置以相對較低的功耗整合和處理即時資料。感測器中樞130可以動態地或週期性地監聽感測器讀數並且提供相對位置資訊,所述相對位置信號可以包括所估計的移動距離和所估計的旋轉角度。所估計的移動距離可以指步長,並且所估計的旋轉角度可以指電子設備100的當前航向與前一航向之間的角度。基於從相對定位電路120產生的相對位置資訊以及先前通過處理器150獲得的地理位置,感測器中樞130可以回報所估計的位置資訊,所述所估計的位置資訊可以包括電子設備100的所估計位置以及所估計的航向位置資訊。 The sensor hub 130 may be composed of a microcontroller, the micro control The device has a programmable microcontroller core, a memory and an interface for connecting itself to the processor 150 and another interface for connecting itself to the relative positioning circuit 120, for example, a serial peripheral interface bus (serial peripheral interface, SPI) or internal integrated circuit (I2C). The sensor hub 130 can also be constructed from a microcontroller having external memory and interface circuitry. The sensor hub 130 is configured to integrate and process real-time data with relatively low power consumption. The sensor hub 130 can monitor sensor readings dynamically and periodically and provide relative position information, which can include the estimated travel distance and the estimated angle of rotation. The estimated distance of movement may refer to a step size, and the estimated angle of rotation may refer to an angle between the current heading of the electronic device 100 and the previous heading. Based on the relative position information generated from the relative positioning circuitry 120 and the geographic location previously obtained by the processor 150, the sensor hub 130 can report the estimated location information, which may include an estimate of the electronic device 100. Location and estimated heading position information.

記憶體140可以包括不同形式的非暫時性、揮發性和非揮發性記憶體,例如,靜態或移動隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體記憶體、硬碟驅動器或其它類似裝置或介面中的一個或組合。記憶體140可以儲存作業系統和應用程式以操作電子設備100以及從相對定位電路120收集的即時資料。 The memory 140 can include different forms of non-transitory, volatile, and non-volatile memory, such as static or mobile random access memory (RAM), read-only memory (ROM). One or a combination of flash memory memory, hard disk drive or other similar device or interface. The memory 140 can store operating systems and applications to operate the electronic device 100 and the instant data collected from the relative positioning circuitry 120.

處理器150經配置以整合和處理從絕對定位電路110和感測器中樞130獲得的資料,以便執行混合定位方法。處理器150 可以自例如是絕對定位電路110或感測器中樞130等位置提供商獲得指出最後一個已知位置的位置資訊。對於週期性地由感測器中樞130回報的每個連續步子,處理器150可以基於最後一個已知位置以及多個所估計位置和/或所估計航向而開發行進軌跡。處理器150可以包括以下項中的一個或多個:北橋、南橋、現場可程式設計陣列(field programmable array,FPGA)、可程式設計邏輯裝置(programmable logic device,PLD)、專用積體電路(application specific integrated circuit,ASIC),或其它類似裝置或其組合。處理器150還可以包括中央處理單元(central processing unit,CPU)、可程式設計通用或專用微處理器、數位訊號處理器(digital signal processor,DSP)、應用處理器、基帶處理器、無線處理器、專用積體電路(application specific integrated circuit,ASIC)、可程式設計邏輯裝置(programmable logic device,PLD),或其它類似裝置或其組合。 The processor 150 is configured to integrate and process the data obtained from the absolute positioning circuit 110 and the sensor hub 130 to perform a hybrid positioning method. Processor 150 Location information indicating the last known location may be obtained from a location provider such as absolute positioning circuit 110 or sensor hub 130. For each successive step periodically reported by the sensor hub 130, the processor 150 may develop a travel trajectory based on the last known location and the plurality of estimated locations and/or estimated headings. The processor 150 may include one or more of the following: a north bridge, a south bridge, a field programmable array (FPGA), a programmable logic device (PLD), a dedicated integrated circuit (application) Specific integrated circuit (ASIC), or other similar device or combination thereof. The processor 150 may further include a central processing unit (CPU), a programmable general purpose or special purpose microprocessor, a digital signal processor (DSP), an application processor, a baseband processor, and a wireless processor. , an application specific integrated circuit (ASIC), a programmable logic device (PLD), or other similar device or a combination thereof.

圖2是示出根據本發明的實施例所提出的混合定位方法的功能框圖。出於示例性目的,將以Android OS中的Google地圖來進行說明。 2 is a functional block diagram showing a hybrid positioning method proposed in accordance with an embodiment of the present invention. For exemplary purposes, it will be described in Google Maps in the Android OS.

請同時參照圖1以及圖2,軟體作業系統架構主要包括應用程式層200A、應用程式架構層200B、硬體抽象層(hardware abstraction layer,HAL)200C和核心層200D。 Referring to FIG. 1 and FIG. 2 simultaneously, the software operating system architecture mainly includes an application layer 200A, an application architecture layer 200B, a hardware abstraction layer (HAL) 200C, and a core layer 200D.

應用程式層200A可以包括不同應用程式以及至少一個位置服務應用程式201。在此,Google地圖201可以是示例性應 用程式。此外,當至少一個位置服務應用程式201已啟動時,還可以啟動額外的位置服務應用程式以請求位置資訊。所啟動的位置服務應用程式將從應用程式架構層200B的位置管理器203中請求位置資訊。 The application layer 200A can include different applications and at least one location service application 201. Here, Google Maps 201 can be an exemplary application. Program. In addition, when at least one location service application 201 has been launched, an additional location service application can be launched to request location information. The launched location service application will request location information from the location manager 203 of the application architecture layer 200B.

應用程式開發者通常使用應用程式架構層200B來進入架構應用程式設計介面(application programming interface,API)並且管理用以執行Android的電子設備100的基本功能。應用程式架構層200B可以包括不同管理器,所述管理器包括將位置信息(例如location fix)提供到至少一個位置服務程式的位置管理器203。應用程式架構層200B可以包括多個位置提供商,所述位置提供商可以接收位置讀數並且判斷電子設備100的位置資訊。位置管理器203可以在Android中的兩個主要位置提供商(GPS位置提供商207與網路位置提供商209)之間選擇最佳的位置提供商205。所述選擇可以是基於可用性、電池耗電量、使用者設置、從軟體作業系統架構的其它層產生的命令等等。位置管理器203可以基於由GPS位置提供商207和網路位置提供商209中所選定的一個所提供的位置資料而計算位置資訊。位置資料可以包括關於電子設備100的緯度、經度、精度等的資訊。基於從GPS位置提供商207或網路位置提供商209獲得的位置資料而計算出的位置資訊可以通過GPS介面211將基於從GPS位置傳遞到HAL 200C。位置管理器203可以記錄更新速率,GPS位置提供商207和網路位置提供商209以所述更新速率回報位置資料。更新速率可以基 於從感測器中樞130的請求或位置服務應用程式201中所啟動的至少一個位置服務應用程式來判斷。如果感測器中樞130不啟用混合定位方法或PDR演算法來更新所估計的位置資訊,則位置服務應用程式201中所啟動的至少一個位置服務應用程式可以記錄規則的更新速率。另一方面,在完全更新速率高於規則更新速率時,如果執行混合定位方法,則位置管理器203可以記錄完全更新速率。完全更新速率還可以是GPS位置提供商207可以支援的最快速率。位置管理器203可以基於多個所估計位置和/或所估計航向而計算行進軌跡,所述多個所估計位置和/或所估計航向可以對於每個連續步子由應用程式架構層200B的感測器管理器204提供。 Application developers typically use the application architecture layer 200B to enter an architectural application programming interface (API) and manage the basic functionality of the electronic device 100 to execute Android. The application architecture layer 200B can include different managers including a location manager 203 that provides location information (e.g., location fix) to at least one location service program. The application architecture layer 200B can include a plurality of location providers that can receive location readings and determine location information for the electronic device 100. The location manager 203 can select the best location provider 205 between the two primary location providers in Android (the GPS location provider 207 and the network location provider 209). The selection may be based on availability, battery power consumption, user settings, commands generated from other layers of the software operating system architecture, and the like. The location manager 203 can calculate location information based on location profiles provided by one of the GPS location provider 207 and the network location provider 209. The location data may include information regarding the latitude, longitude, accuracy, and the like of the electronic device 100. The location information calculated based on the location data obtained from the GPS location provider 207 or the network location provider 209 may be passed from the GPS location to the HAL 200C via the GPS interface 211. The location manager 203 can record the update rate, and the GPS location provider 207 and the network location provider 209 can report the location profile at the update rate. Update rate can be based It is determined from the request of the sensor hub 130 or at least one location service application launched in the location service application 201. If the sensor hub 130 does not enable the hybrid positioning method or the PDR algorithm to update the estimated location information, then at least one location service application launched in the location service application 201 can record the update rate of the rules. On the other hand, when the full update rate is higher than the rule update rate, if the hybrid positioning method is performed, the location manager 203 can record the full update rate. The full update rate can also be the fastest rate that the GPS location provider 207 can support. The location manager 203 can calculate a travel trajectory based on a plurality of estimated locations and/or estimated headings that can be managed by the sensors of the application architecture layer 200B for each successive step. The device 204 provides.

應用程式架構層200B可以包括感測器管理器204。感測器管理器204可以通過感測器介面212、HAL 200C以及隨後核心200D連接到感測器中樞130。感測器管理器可以從感測器中樞130接收控制消息。基於所述控制消息,感測器管理器204可以將暫停命令傳遞到位置管理器203。響應於暫停命令,位置管理器203可以減小從位置提供商產生的位置資料和/或從絕對定位電路110產生的位置讀數的更新頻率。具體來說,響應於暫停命令,位置管理器203可以指示GPS位置提供商在不切換絕對定位電路時停止監聽位置讀數。感測器管理器204還可以基於控制消息產生休眠模式命令。響應於休眠模式命令,處理器150可以進入休眠模式。 The application architecture layer 200B can include a sensor manager 204. The sensor manager 204 can be coupled to the sensor hub 130 via the sensor interface 212, the HAL 200C, and the subsequent core 200D. The sensor manager can receive control messages from the sensor hub 130. Based on the control message, the sensor manager 204 can pass a pause command to the location manager 203. In response to the pause command, the location manager 203 can reduce the location data generated from the location provider and/or the update frequency of the location readings generated from the absolute positioning circuitry 110. In particular, in response to the pause command, the location manager 203 can instruct the GPS location provider to stop listening for position readings when the absolute positioning circuitry is not switched. The sensor manager 204 can also generate a sleep mode command based on the control message. In response to the sleep mode command, the processor 150 can enter a sleep mode.

HAL 200C包括多個函式庫(library)並且界定硬體供應商用於實施Android並且允許Android不可知先前描述的低階驅動器實施方案的標準介面。在將位置資訊傳遞到GPS HAL 213之後,預先註冊的GPS共用記憶體HAL 214可以收集緯度、經度和精度的資訊並且將所述資訊儲存到記憶體140的記憶體塊MB 216中。 The HAL 200C includes a plurality of libraries and defines a standard interface for hardware vendors to implement Android and allows Android to be unaware of the previously described low-order driver implementations. After the location information is passed to the GPS HAL 213, the pre-registered GPS shared memory HAL 214 can collect information on latitude, longitude, and accuracy and store the information in the memory block MB 216 of the memory 140.

此外,處理器150可以啟用感測器管理器204來從相對定位電路120提取感測器讀數。感測器讀數可以通過應用程式架構層200B中的感測器介面212從感測器HAL 215提取。 Moreover, processor 150 can enable sensor manager 204 to extract sensor readings from relative positioning circuitry 120. The sensor readings can be extracted from the sensor HAL 215 through the sensor interface 212 in the application architecture layer 200B.

GPS HAL 213可以從絕對定位電路110提取位置讀數。所提取的位置讀數可以是包括GPS測量值的原始GPS資料。GPS HAL 213可以對位置讀數進行編譯,並且隨後可以將位置讀數傳送到GPS位置提供商207。GPS位置提供商207可以基於傳送的位置讀數計算和回報位置資料,而位置資料通過位置管理器203處理以判斷位置資訊。可以將位置資訊回饋回GPS HAL 213。 The GPS HAL 213 can extract position readings from the absolute positioning circuit 110. The extracted position reading may be raw GPS data including GPS measurements. The GPS HAL 213 can compile the position readings and can then transmit the position readings to the GPS location provider 207. The GPS location provider 207 can calculate and report location data based on the transmitted location readings, while the location data is processed by the location manager 203 to determine location information. The location information can be fed back to the GPS HAL 213.

GPS共用記憶體HAL 214可以視為GPS HAL 213與感測器HAL 215之間的橋樑。GPS共用記憶體HAL 214可以存取回饋給GPS HAL 213的位置資訊並且將所述位置資訊儲存於記憶體塊MB 216中。此外,GPS共用記憶體HAL 214可以從記憶體塊MB 216提取所儲存的位置資訊,並且響應於從感測器HAL 215產生的請求而將所述位置資訊傳遞到感測器HAL 215。GPS共用記憶體HAL可以編譯提取的位置資料,使得感測器HAL 215可讀取編 譯後的位置資料。 The GPS shared memory HAL 214 can be considered as a bridge between the GPS HAL 213 and the sensor HAL 215. The GPS shared memory HAL 214 can access the location information fed back to the GPS HAL 213 and store the location information in the memory block MB 216. In addition, the GPS shared memory HAL 214 can extract the stored location information from the memory block MB 216 and pass the location information to the sensor HAL 215 in response to a request generated from the sensor HAL 215. The GPS shared memory HAL can compile the extracted location data so that the sensor HAL 215 can read and edit Post-translation location information.

包括個人裝置驅動器(例如,全球導航衛星系統(Global Navigation Satellite System,GNSS)驅動器217和感測器驅動器218)的核心層200D用以與電子設備100的各硬體元件進行互動。核心層200D可以通過感測器HAL 215獲得位置資訊並且將位置資訊傳遞到感測器中樞130作為系統消息。 A core layer 200D including personal device drivers (eg, Global Navigation Satellite System (GNSS) driver 217 and sensor driver 218) is used to interact with various hardware components of electronic device 100. The core layer 200D can obtain location information through the sensor HAL 215 and pass the location information to the sensor hub 130 as a system message.

感測器中樞130可以判斷電子設備是否滿足位置更新條件。位置更新條件可以與電子設備100從先前啟用絕對定位裝置110的位置的行進距離、電子設備100尚未行進的漸增的時間、電子設備100的移動方向等相關聯。位置更新條件可以基於從相對定位電路120產生的感測器讀數來判斷。 The sensor hub 130 can determine whether the electronic device satisfies the location update condition. The location update condition may be associated with the travel distance of the electronic device 100 from the location at which the absolute positioning device 110 was previously enabled, the increasing time that the electronic device 100 has not traveled, the direction of movement of the electronic device 100, and the like. The location update condition can be determined based on sensor readings generated from the relative positioning circuitry 120.

如果不符合位置更新條件,則感測器中樞130可以基於PDR演算法而不斷地估計當前所估計的位置資訊。另一方面,當感測器中樞130判斷符合位置更新條件時,感測器中樞130可以請求位置管理器203以完全更新速率更新位置資訊。因此,位置管理器203可以從GPS位置提供商207和網路位置提供商209中所選定一個請求位置資料。 If the location update condition is not met, the sensor hub 130 can continually estimate the current estimated location information based on the PDR algorithm. On the other hand, when the sensor hub 130 determines that the location update condition is met, the sensor hub 130 can request the location manager 203 to update the location information at the full update rate. Therefore, the location manager 203 can request location information from one of the GPS location provider 207 and the network location provider 209.

感測器中樞130可以判斷更新的位置資訊是否滿足停用條件,而此停用條件是基於更新的位置資訊的可靠性來判斷。如果在特定時間範圍內由位置管理器203計算和獲得的多個更新的位置資訊對應於一組靠近/收斂的地理位置,則指示代表更新的位置資訊是可靠的並且絕對定位電路110是穩定的。在符合停用條 件之後,感測器中樞130可以通過感測器HAL 215和感測器管理器204將控制消息傳輸到位置管理器203,其中控制消息指出是否暫停GPS服務。如果位置資料滿足停用條件,則位置管理器203可以出於省電目的切斷GPS服務。 The sensor hub 130 can determine whether the updated location information satisfies the deactivation condition, and the deactivation condition is determined based on the reliability of the updated location information. If the plurality of updated location information calculated and obtained by the location manager 203 in a particular time range corresponds to a set of near/converged geographic locations, indicating that the updated location information is reliable and the absolute positioning circuitry 110 is stable . In compliance with the bar After the device, the sensor hub 130 can transmit a control message to the location manager 203 via the sensor HAL 215 and the sensor manager 204, wherein the control message indicates whether to suspend the GPS service. If the location profile satisfies the deactivation condition, the location manager 203 can turn off the GPS service for power saving purposes.

圖3是示出根據本發明的實施例所提出用於提供混合位置資訊服務的方法流程圖。圖3的步驟可以通過圖1中結合圖2所說明的所提出電子設備100來實施。 3 is a flow chart showing a method for providing a hybrid location information service in accordance with an embodiment of the present invention. The steps of FIG. 3 may be implemented by the proposed electronic device 100 illustrated in FIG. 1 in conjunction with FIG.

請同時參考圖1以及圖3,在混合定位方法開始之後,位置管理器203可以首先基於絕對定位電路110的位置讀數而回報電子設備100的絕對位置資訊(步驟S302)。絕對位置資訊可以包括電子設備100的地理位置和地理航向。在步驟304中,處理器150可以通過由介面功能組成的硬體抽象層(hardware abstraction layer,HAL)將絕對位置資訊儲存於感測器中樞130可存取的記憶體140的記憶體塊中。位置管理器203將指示絕對定位電路110以完全更新速率連續地回報位置讀數。位置管理器203可以在一時間內監聽和計算所回報的位置讀數並且獲得一序列的地理位置。所述一序列的地理位置可以儲存於記憶體塊MB 216中。在步驟306中,感測器中樞130可以獲得從記憶體塊提取的絕對位置資訊。 Referring to FIG. 1 and FIG. 3 simultaneously, after the hybrid positioning method starts, the location manager 203 may first report the absolute location information of the electronic device 100 based on the position reading of the absolute positioning circuit 110 (step S302). The absolute location information may include the geographic location and geographic heading of the electronic device 100. In step 304, the processor 150 may store the absolute location information in a memory block of the memory 140 accessible by the sensor hub 130 through a hardware abstraction layer (HAL) composed of interface functions. The location manager 203 will instruct the absolute positioning circuitry 110 to continuously report the position readings at a full update rate. The location manager 203 can monitor and calculate the reported position readings and obtain a sequence of geographic locations over a period of time. The geographic location of the sequence can be stored in the memory block MB 216. In step 306, the sensor hub 130 can obtain absolute position information extracted from the memory block.

在步驟308中,處理器150可以判斷絕對位置資訊是否滿足停用條件,此停用條件是基於絕對位置資訊的可靠性來判斷。感測器中樞130可以判斷儲存於記憶體塊MB 216中的一序列 的地理位置是否彼此靠近或趨於收斂。如果判斷一組靠近/趨於收斂的地理位置,則感測器中樞130可以推斷位置資訊是可靠的並且回報一序列的地理位置中的最後一個作為當前位置。在判斷當前位置之後,感測器中樞130可以判斷絕對位置資訊滿足停用條件並且發送控制消息以停用GPS服務(步驟310a)。如果任何所獲得的地理位置遠離某一時間內獲得的其它地理位置,則所述地理位置可能是受暫時干擾或雜訊所影響的誤差且將不視為穩定的地理位置測量值。因此,感測器中樞130可以判斷絕對位置資訊不滿足停用條件並且發送指出不停用GPS服務的控制消息(步驟310b)。 In step 308, the processor 150 may determine whether the absolute location information satisfies the deactivation condition, which is determined based on the reliability of the absolute location information. The sensor hub 130 can determine a sequence stored in the memory block MB 216 Whether the geographical locations are close to each other or tend to converge. If a set of geographical locations that are close/convergent are determined, the sensor hub 130 can infer that the location information is reliable and report the last of a sequence of geographic locations as the current location. After determining the current location, the sensor hub 130 can determine that the absolute location information satisfies the deactivation condition and sends a control message to disable the GPS service (step 310a). If any of the acquired geographic locations are away from other geographic locations obtained during a certain time, the geographic location may be an error that is affected by temporary interference or noise and will not be considered a stable geographic location measurement. Accordingly, the sensor hub 130 can determine that the absolute position information does not satisfy the deactivation condition and send a control message indicating that the GPS service is not deactivated (step 310b).

如果感測器中樞130判斷絕對位置資訊滿足停用條件,則由感測器中樞130發送的控制消息還可以包括休眠參考消息。休眠參考消息指示處理器150可以進入休眠模式或低功率模式。在其它實施例中,處理器150還可以停止請求或在所述處理器接收停用控制消息之後減小對從絕對定位電路110產生的位置讀數進行取樣的頻率。 If the sensor hub 130 determines that the absolute position information satisfies the deactivation condition, the control message transmitted by the sensor hub 130 may also include a sleep reference message. The sleep reference message indicates that the processor 150 can enter a sleep mode or a low power mode. In other embodiments, processor 150 may also stop the request or reduce the frequency at which the position readings generated from absolute positioning circuit 110 are sampled after the processor receives the deactivation control message.

應注意,在處理器150停用絕對定位電路110之後,感測器中樞130或處理器150可以計算所估計的位置資訊以基於PDR演算法而開發電子設備100的行進軌跡。PDR演算法涉及基於從相對定位電路120獲得的相對位置資訊和前一絕對位置資訊而計算當前所估計的位置資訊。因此,可以實現相當低的功率消耗。 It should be noted that after the processor 150 deactivates the absolute positioning circuit 110, the sensor hub 130 or processor 150 may calculate the estimated position information to develop a travel trajectory of the electronic device 100 based on the PDR algorithm. The PDR algorithm involves calculating the currently estimated position information based on the relative position information obtained from the relative positioning circuit 120 and the previous absolute position information. Therefore, a relatively low power consumption can be achieved.

現將相對於若干額外實施例描述其它特徵和/或特徵的組合。應注意,下文描述的特徵中的一個或多個可以併入到其它實施例(例如,先前描述的實施例)中作為替代特徵和/或額外特徵。 Other features and/or combinations of features will now be described with respect to several additional embodiments. It should be noted that one or more of the features described below can be incorporated into other embodiments (eg, the previously described embodiments) as an alternate feature and/or additional feature.

就此而言,圖4是示出根據本發明的實施例的電子裝置。如圖4中所示,電子裝置400(例如,移動裝置)具有GPS接收器402、慣性感測器(例如,感測器404、406)、主控制單元(main control unit,MCU)408和應用程式處理器(application processor,AP)410。GPS接收器402包括接收器電路並且經配置以在位置資訊獲取模式與省電模式之間切換,在所述位置資訊獲取模式期間,GPS接收器產生地理位置讀數,而在省電模式期間,GPS接收器為停用。慣性感測器中的每一個包括感測器電路並且經配置以產生對應於電子裝置的所感測運動的感測器讀數。 In this regard, FIG. 4 is a diagram showing an electronic device in accordance with an embodiment of the present invention. As shown in FIG. 4, the electronic device 400 (eg, mobile device) has a GPS receiver 402, an inertial sensor (eg, sensors 404, 406), a main control unit (MCU) 408, and an application. An application processor (AP) 410. The GPS receiver 402 includes a receiver circuit and is configured to switch between a location information acquisition mode and a power save mode during which the GPS receiver generates a geographic location reading, while during the power saving mode, the GPS The receiver is deactivated. Each of the inertial sensors includes a sensor circuit and is configured to generate a sensor reading corresponding to the sensed motion of the electronic device.

MCU 408包括控制電路並且經配置以執行若干功能。具體而言,MCU 408經配置以:判斷參考位置資訊;基於參考位置資訊和感測器讀數而計算GPS融合的位置資訊;基於GPS融合的位置資訊的變化而產生GPS所需的事件;以及響應於判斷參考位置資訊而產生GPS不需要的事件。在一些實施例中,MCU進一步經配置以產生事件包資料,所述事件包資料包括GPS融合的位置資訊以及GPS所需的事件或GPS不需要的事件中的一個。在這些實施例中的一些實施例中,在MCU將GPS所需的事件添加到事件包資料之後,相關聯的AP可以經配置以AP所指定的最快速率將一序列的地理讀數注入MCU。應注意,相關聯的GPS接收器可 能夠支援比AP所指定的最快速率高的速率。應注意,在一些實施例中,與MCU相關聯的功能性可以嵌入用於提供CPU的元件(例如,半導體晶片)內。 MCU 408 includes control circuitry and is configured to perform several functions. Specifically, the MCU 408 is configured to: determine reference location information; calculate GPS-fused location information based on reference location information and sensor readings; generate GPS-required events based on changes in GPS-fused location information; and respond An event that is not required for GPS is generated by judging the reference position information. In some embodiments, the MCU is further configured to generate event package material including GPS-fused location information and one of an event required by the GPS or an event not required by the GPS. In some of these embodiments, after the MCU adds the events required by the GPS to the event package material, the associated AP can be configured to inject a sequence of geographic readings into the MCU at the fastest rate specified by the AP. It should be noted that the associated GPS receiver can Can support a higher rate than the fastest rate specified by the AP. It should be noted that in some embodiments, the functionality associated with the MCU can be embedded within an element (eg, a semiconductor wafer) for providing a CPU.

AP 410包括處理器電路並且還經配置以執行若干功能。具體而言,AP 410經配置以:接收GPS融合的位置資訊以及GPS所需的事件或GPS不需要的事件中的一個;響應於接收GPS所需的事件,在位置資訊獲取模式下操作GPS接收器以產生地理位置讀數;以及響應於接收GPS不需要的事件,在省電模式下操作GPS接收器。在一些實施例中,AP 410進一步經配置以:選擇性地請求GPS融合的位置資訊或GPS位置資訊中的一個(例如,通過請求事件包資料);以及基於從事件包資料中提取的GPS所需的事件和GPS不需要的事件中的所接收一個而執行位置服務過程以在省電模式與位置資訊獲取模式之間切換GPS接收器。具體來說,如果從事件包資料中提取GPS所需的事件,則在一些實施例中,AP 410可以從GPS接收器獲取地理位置讀數。值得注意的是,地理位置讀數可以併入有緯度讀數、經度讀數和精度讀數中的一個或多個。 The AP 410 includes processor circuitry and is also configured to perform several functions. Specifically, the AP 410 is configured to: receive location information of the GPS convergence and one of an event required by the GPS or an event not required by the GPS; and operate the GPS reception in the location information acquisition mode in response to an event required to receive the GPS To generate a geographic location reading; and to operate the GPS receiver in a power saving mode in response to receiving an event not required by the GPS. In some embodiments, the AP 410 is further configured to: selectively request one of GPS-fused location information or GPS location information (eg, by requesting event package material); and based on GPS extracted from the event package material The location service process is performed to receive the GPS receiver between the power saving mode and the location information acquisition mode by the received event and the received one of the GPS unwanted events. In particular, if an event required by the GPS is extracted from the event package material, in some embodiments, the AP 410 can obtain a geographic location reading from the GPS receiver. It is worth noting that the geographic location readings can be incorporated into one or more of latitude readings, longitude readings, and precision readings.

響應於接收到GPS融合的位置資訊,AP 410可以執行感測器服務過程以通知MCU計算GPS融合的位置資訊並且產生於GPS融合的位置資訊的識別相關聯的第一ID。此後,AP 410可以獲得GPS融合的位置資訊以及GPS所需的事件和GPS不需要的事件中所選定的一個。相反,響應於接收到GPS位置資訊,AP 410 可以執行位置服務過程以從GPS接收器獲取地理位置讀數,從而以動態速率產生GPS位置資訊。AP 410隨後可以選擇GPS融合的位置資訊和GPS位置資訊中的一個作為位置輸出。 In response to receiving the location information of the GPS convergence, the AP 410 may perform a sensor service procedure to notify the MCU to calculate location information of the GPS convergence and to generate an associated first ID of the location information generated by the GPS convergence. Thereafter, the AP 410 can obtain location information of the GPS convergence and a selected one of the events required by the GPS and the events not required by the GPS. Instead, in response to receiving GPS location information, AP 410 A location service process can be performed to obtain geographic location readings from the GPS receiver to generate GPS location information at a dynamic rate. The AP 410 can then select one of the GPS fused location information and the GPS location information as the location output.

關於感測器服務過程,如果從事件包資料中提取GPS所需的事件,則一些實施例經配置以:通知位置服務過程在位置資訊獲取模式下操作GPS接收器,從而以最快速率產生地理位置讀數。此後,AP可以將地理位置讀數傳遞到MCU,使得MCU可以基於地理位置讀數而產生參考位置資訊並且將GPS不需要的事件添加到事件包資料。然而,如果從事件包資料中提取GPS不需要的事件,則感測器服務過程可以經配置以在省電模式下操作GPS接收器。 Regarding the sensor service process, if an event required by the GPS is extracted from the event package material, some embodiments are configured to: notify the location service process to operate the GPS receiver in the location information acquisition mode to generate the geography at the fastest rate Position reading. Thereafter, the AP can communicate the geographic location readings to the MCU so that the MCU can generate reference location information based on the geographic location readings and add events not required by the GPS to the event package data. However, if an event not required by the GPS is extracted from the event package material, the sensor service process can be configured to operate the GPS receiver in the power save mode.

圖5是示出根據本發明的實施例所提出可以由圖4的電子裝置400所實現的方法流程圖。如圖5中所示,方法500可以視為開始於方塊510,其中產生對應於電子裝置的所感測運動的感測器讀數。具體而言,可以通過電子裝置所攜載的慣性感測器產生感測器讀數。在方塊520中,判斷參考位置資訊。在一些實施例中,可以基於由GPS接收器提供的地理位置讀數通過MCU判斷參考位置資訊。借助於實例,在一些實施例中,可以計算多個處理後的GPS位置(例如,5個位置)之間的方差,並且如果計算出的方差小於閾值,則可以採用最近的GPS位置作為用於參考位置資訊的參考位置。作為另一實例,MCU可以經配置以響應於判斷出地理位置讀數趨於收斂而判斷參考位置資訊。 FIG. 5 is a flow chart showing a method that can be implemented by the electronic device 400 of FIG. 4, in accordance with an embodiment of the present invention. As shown in FIG. 5, method 500 can be considered to begin at block 510 where a sensor reading corresponding to the sensed motion of the electronic device is generated. In particular, the sensor readings can be generated by an inertial sensor carried by the electronic device. In block 520, reference location information is determined. In some embodiments, the reference location information can be determined by the MCU based on the geographic location readings provided by the GPS receiver. By way of example, in some embodiments, a variance between a plurality of processed GPS locations (eg, 5 locations) may be calculated, and if the calculated variance is less than a threshold, the nearest GPS location may be employed as Refer to the reference location of the location information. As another example, the MCU can be configured to determine reference location information in response to determining that the geographic location readings tend to converge.

在方塊530中,可以基於參考位置資訊和感測器讀數而由MCU計算出GPS融合的位置資訊。在一些實施例中,這可以涉及使用PDR演算法來基於前一個絕對位置資訊(參考位置資訊)和相對位置資訊(基於感測器讀數的資訊)而計算當前所估計的位置資訊。隨後,如在方塊540中所描繪,通過MCU產生GPS事件(其可以充當用於判斷GPS接收器的操作模式的控制消息)。在一些實施例中,GPS事件可以包括基於GPS融合的位置資訊的變化的GPS所需的事件,以及響應於判斷出參考位置資訊而產生的GPS不需要的事件。 In block 530, the location information of the GPS fusion can be calculated by the MCU based on the reference location information and the sensor readings. In some embodiments, this may involve using the PDR algorithm to calculate the current estimated position information based on the previous absolute position information (reference position information) and relative position information (based on sensor readings). Subsequently, as depicted in block 540, a GPS event (which may act as a control message for determining the mode of operation of the GPS receiver) is generated by the MCU. In some embodiments, the GPS event may include a GPS required event based on a change in GPS fusion based location information, and an event not required by the GPS generated in response to determining the reference location information.

在方塊550中,通過AP接收GPS融合的位置資訊以及GPS所需的事件或GPS不需要的事件中的一個。如果接收到GPS所需的事件,則過程前進到方塊560,其中GPS接收器在位置資訊獲取模式下操作並且產生地理位置讀數。在一些實施例中,這可以涉及以動態速率(例如,由AP指定的最快速率)產生地理位置讀數。如果接收到GPS不需要的事件,則過程前進到方塊570,其中GPS接收器在省電模式下操作(即,GPS接收器為停用)。 In block 550, the GPS-fused location information and one of the events required by the GPS or the events not required by the GPS are received by the AP. If an event required by the GPS is received, the process proceeds to block 560 where the GPS receiver operates in the location information acquisition mode and generates a geographic location reading. In some embodiments, this may involve generating a geographic location reading at a dynamic rate (eg, the fastest rate specified by the AP). If an event not required by the GPS is received, the process proceeds to block 570 where the GPS receiver operates in a power save mode (ie, the GPS receiver is deactivated).

圖6是示出根據本發明的實施例所提出可以由AP所實現的方法流程圖。如圖6中所示,方法600可以視為開始於方塊610,其中由AP選擇性地請求GPS融合的位置資訊或GPS位置資訊中的一個。AP基於由使用者啟動的不同類型的應用程式而選擇性地請求GPS融合的位置資訊或GPS位置資訊中的一個。例如,當啟動地圖應用程式(類似於GOOGLE®地圖)時,可以請求GPS位 置資訊。當由使用者啟動混合位置追蹤應用程式時,可以請求GPS融合的位置資訊。隨後,在方塊620中,判斷請求GPS融合的位置資訊還是GPS位置資訊。如果請求GPS融合的位置資訊,則過程前進到方塊630,其中通過AP執行感測器服務過程以通知MCU計算GPS融合的位置資訊。 6 is a flow chart showing a method that can be implemented by an AP in accordance with an embodiment of the present invention. As shown in FIG. 6, method 600 can be considered to begin at block 610, where one of the GPS-fused location information or GPS location information is selectively requested by the AP. The AP selectively requests one of GPS-fused location information or GPS location information based on different types of applications launched by the user. For example, when launching a map app (similar to a GOOGLE® map), you can request a GPS bit. Set information. When the hybrid location tracking application is launched by the user, the location information of the GPS fusion can be requested. Subsequently, in block 620, it is determined whether location information requesting GPS fusion or GPS location information is requested. If location information for GPS convergence is requested, the process proceeds to block 630 where a sensor service procedure is performed by the AP to inform the MCU to calculate location information for the GPS fusion.

在方塊630中,通過感測器服務過程將與GPS融合的位置資訊的識別相關聯的第一ID分配到MCU。前述已說明可以由相關聯MCU具有GPS融合的位置資訊以及GPS所需的事件或GPS不需要的事件中的一個的事件包資料。響應於第一ID的分配,MCU可以將第一ID添加到事件包資料中。因此,AP可以識別GPS融合的位置資訊。 In block 630, a first ID associated with the identification of GPS-fused location information is assigned to the MCU by a sensor service procedure. The foregoing has explained event package information that may be provided by the associated MCU with GPS-fused location information and one of the events required by the GPS or the events not required by the GPS. In response to the assignment of the first ID, the MCU may add the first ID to the event package material. Therefore, the AP can identify the location information of the GPS fusion.

在方塊630之後,執行位置服務過程以在省電模式與位置資訊獲取模式之間切換相關聯的GPS接收器(方塊640)。取決於從MCU接收到的事件包資料中提取的內容,可以基於GPS所需的事件或GPS不需要的事件而通過AP執行切換。在一些實施例中,AP執行感測器服務過程以從事件包資料中提取GPS所需的事件或GPS不需要的事件中的一個。作為回應,執行感測器服務過程可以包括如果從事件包資料中提取GPS所需的事件,則通知位置服務過程在位置資訊獲取模式下操作GPS接收器。可以執行此以用最快速率產生地理位置讀數,此後AP可以經配置以將地理位置讀數傳遞到MCU,這使MCU能夠給予地理位置讀數而產生參考位置資訊並且將GPS不需要的事件添加到事件包資料。另外 或或者,執行感測器服務過程可以包括如果從事件包資料中提取GPS不需要的事件,則在省電模式下操作GPS接收器。 After block 630, a location service procedure is performed to switch the associated GPS receiver between the power save mode and the location information acquisition mode (block 640). Depending on the content extracted from the event package data received from the MCU, the handover can be performed by the AP based on an event required by the GPS or an event not required by the GPS. In some embodiments, the AP performs a sensor service process to extract one of an event required by the GPS or an event not required by the GPS from the event package material. In response, executing the sensor service process can include notifying the location service process to operate the GPS receiver in the location information acquisition mode if the event required by the GPS is extracted from the event package material. This can be done to generate a geo-location reading at the fastest rate, after which the AP can be configured to pass geo-location readings to the MCU, which enables the MCU to give geo-location readings to generate reference location information and add events not required by the GPS to the event. Package information. In addition Or alternatively, performing the sensor service process may include operating the GPS receiver in the power save mode if an event not required by the GPS is extracted from the event package material.

隨後,如在方塊650中所描繪,將獲得從事件包資料中提取的GPS融合的位置資訊以及GPS所需的事件和GPS不需要的事件中所選定的一個。 Subsequently, as depicted in block 650, the location information of the GPS fusion extracted from the event package material and the selected one of the events required by the GPS and the events not required by the GPS will be obtained.

然而,如果在方塊620中判斷請求GPS位置資訊(即,不請求GPS融合的位置資訊),則過程可以從方塊620前進到方塊660,在方塊660中執行位置服務過程以從GPS接收器獲取地理位置讀數,從而以動態速率產生GPS位置資訊。隨後,在方塊650或方塊660之後,將選擇GPS融合的位置資訊和GPS位置資訊中的其中一個作為位置輸出(方塊670)。 However, if it is determined in block 620 that the GPS location information is requested (i.e., the location information for the GPS fusion is not requested), then the process may proceed from block 620 to block 660 where a location service procedure is performed to acquire the geography from the GPS receiver. Position readings to generate GPS position information at a dynamic rate. Subsequently, after block 650 or block 660, one of the GPS fused location information and GPS location information is selected for location output (block 670).

圖7A和7B是示出根據本發明的實施例所提出響應於由AP請求GPS融合的位置資訊的方法流程圖。請參考圖7A和7B,方法700可以視為開始於方塊710,其中獲得初始位置資訊。在方塊720中,基於感測器讀數(例如,從慣性感測器中的一個或多個產生的感測器讀取)而計算初始移動資訊。在方塊730中,基於初始移動資訊和初始位置資訊而計算出所估計的位置資訊,並且隨後判斷是否符合位置更新條件(方塊740)。如果不符合位置更新條件,則過程前進到方塊750,其中所估計的位置資訊被設定為GPS融合的位置資訊。如果符合位置更新條件,則判斷(在方塊760中)是否將校準所估計的位置資訊。如果不校準所估計的位置資訊,則過程可以前進到方塊790(下文描述)。 7A and 7B are flow diagrams illustrating methods in response to requesting location information for GPS fusion by an AP, in accordance with an embodiment of the present invention. Referring to Figures 7A and 7B, method 700 can be considered to begin at block 710 where initial location information is obtained. In block 720, initial movement information is calculated based on sensor readings (eg, reading from sensors generated by one or more of the inertial sensors). In block 730, the estimated location information is calculated based on the initial motion information and the initial location information, and then it is determined whether the location update condition is met (block 740). If the location update condition is not met, the process proceeds to block 750 where the estimated location information is set to GPS-fused location information. If the location update condition is met, it is determined (in block 760) whether the estimated location information will be calibrated. If the estimated location information is not calibrated, the process can proceed to block 790 (described below).

如果將校準所估計的位置資訊,則如下執行在方塊770至780中描述的過程:通知AP獲取地理位置讀數(方塊770);基於所獲取的地理位置讀數而產生參考位置資訊,此後MCU將GPS不需要的事件添加到事件包資料中,使得應用程式處理器將GPS接收器切換到省電模式(方塊772);將所估計的位置資訊與參考位置資訊相比較以獲得偏離資訊(方塊774);基於所估計的位置資訊和偏離資訊而計算出校準後的移動資訊(方塊776);基於偏離資訊、校準後的移動資訊以及所估計的位置資訊而計算出校準後的位置資訊(方塊778);以及將校準後的位置資訊設定為GPS融合的位置資訊(方塊780)。此後,例如在方塊790中描繪,產生包括GPS融合的位置資訊的事件包資料。 If the estimated position information is to be calibrated, the process described in blocks 770-780 is performed as follows: the AP is notified to obtain a geographic location reading (block 770); the reference location information is generated based on the acquired geographic location readings, after which the MCU will GPS Unneeded events are added to the event package data, causing the application processor to switch the GPS receiver to the power save mode (block 772); comparing the estimated location information to the reference location information to obtain the offset information (block 774) Calculating the calibrated movement information based on the estimated position information and deviation information (block 776); calculating the calibrated position information based on the deviation information, the calibrated movement information, and the estimated position information (block 778) And setting the calibrated location information to GPS fused location information (block 780). Thereafter, as depicted, for example, in block 790, event package material including location information for GPS fusion is generated.

圖8是示出根據本發明的另一實施例的電子裝置。如圖8中所示,電子裝置800(例如,移動裝置)併入有GPS接收器802、慣性感測器(例如,感測器804、806)、主控制單元(main control unit,MCU)808、應用程式處理器(application processor,AP)810和緩衝器812。GPS接收器802包括接收器電路並且經配置以在位置資訊獲取模式與省電模式之間切換,在所述位置資訊獲取模式期間,GPS接收器產生地理位置讀數,在省電模式期間,GPS接收器為停用。慣性感測器中的每一個包括感測器電路並且經配置以產生對應於電子裝置的所感測運動的感測器讀數。 FIG. 8 is a diagram showing an electronic device according to another embodiment of the present invention. As shown in FIG. 8, an electronic device 800 (eg, a mobile device) incorporates a GPS receiver 802, an inertial sensor (eg, sensors 804, 806), a main control unit (MCU) 808. An application processor (AP) 810 and a buffer 812. The GPS receiver 802 includes a receiver circuit and is configured to switch between a location information acquisition mode and a power save mode, during which the GPS receiver generates a geographic location reading, during the power saving mode, the GPS reception The device is disabled. Each of the inertial sensors includes a sensor circuit and is configured to generate a sensor reading corresponding to the sensed motion of the electronic device.

MCU 808包括控制電路並且經配置以執行若干功能。具體而言,MCU 808經配置以:判斷參考位置資訊;基於參考位置 資訊和感測器讀數而計算GPS融合的位置資訊;基於GPS融合的位置資訊的變化而產生GPS所需的事件;以及響應於判斷參考位置資訊而產生GPS不需要的事件。 MCU 808 includes control circuitry and is configured to perform several functions. Specifically, the MCU 808 is configured to: determine reference location information; based on the reference location The information of the GPS fusion is calculated by the information and the sensor reading; the event required by the GPS is generated based on the change of the position information of the GPS fusion; and the event not required by the GPS is generated in response to determining the reference position information.

AP 810包括處理器電路並且還經配置以執行若干功能。具體而言,AP 810經配置以:接收GPS融合的位置資訊以及GPS所需的事件或GPS不需要的事件中的一個;響應於接收GPS所需的事件,在位置資訊獲取模式下操作GPS接收器以產生地理位置讀數;以及響應於接收GPS不需要的事件,在省電模式下操作GPS接收器。在一些實施例中,與AP 810通信的緩衝器812位於AP 810外部。 The AP 810 includes processor circuitry and is also configured to perform several functions. In particular, the AP 810 is configured to: receive GPS-fused location information and one of an event required by the GPS or an event not required by the GPS; operate the GPS reception in the location information acquisition mode in response to an event required to receive the GPS To generate a geographic location reading; and to operate the GPS receiver in a power saving mode in response to receiving an event not required by the GPS. In some embodiments, the buffer 812 in communication with the AP 810 is external to the AP 810.

如前述,AP可以選擇性地請求GPS融合的位置資訊或GPS位置資訊中的一個,在此實施例中,在請求GPS融合的位置資訊之後,AP 810將在休眠模式與喚醒模式之間切換。具體而言,當AP 810在休眠模式下操作時,MCU 808不斷地將一序列的GPS融合的位置資訊儲存在緩衝器812中,直到MCU設定中斷事件。此中斷事件可以與以下項中的任一個相關聯:批量超時事件;緩衝器已滿警報事件;以及GPS所需的事件的產生。值得注意的是,響應於中斷事件,AP 810切換到喚醒模式以從緩衝器812提取所儲存的一序列的GPS融合的位置資訊。 As described above, the AP may selectively request one of GPS-fused location information or GPS location information. In this embodiment, after requesting GPS-fused location information, the AP 810 will switch between the sleep mode and the awake mode. In particular, when the AP 810 is operating in the sleep mode, the MCU 808 continually stores a sequence of GPS fused location information in the buffer 812 until the MCU sets an interrupt event. This interrupt event can be associated with any of the following: a batch timeout event; a buffer full alert event; and the generation of events required by the GPS. It is worth noting that in response to the interrupt event, the AP 810 switches to the awake mode to extract a stored sequence of GPS fused location information from the buffer 812.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍 當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of protection of the present invention It is subject to the definition of the scope of the patent application attached.

Claims (20)

一種電子裝置,包括:GPS接收器,具有接收器電路,經配置以在位置資訊獲取模式與省電模式之間切換,在所述位置資訊獲取模式期間,所述GPS接收器產生地理位置讀數,在所述省電模式期間,所述GPS接收器為停用;慣性感測器,具有感測器電路,經配置以產生對應於所述電子裝置所感測到的運動的感測器讀數;主控制單元(MCU),具有控制電路,經配置以:判斷參考位置資訊;基於所述參考位置資訊和所述感測器讀數,使用相對定位技術計算GPS融合的位置資訊;基於所述GPS融合的位置資訊的變化,產生GPS所需的事件;以及響應於判斷出所述參考位置資訊,產生GPS不需要的事件;以及應用程式處理器,具有處理器電路,經配置以:接收所述GPS融合的位置資訊以及所述GPS所需的事件或所述GPS不需要的事件中的一個;響應於接收到所述GPS所需的事件,在所述位置資訊獲取模式下操作所述GPS接收器以產生所述地理位置讀數;以及 響應於接收到所述GPS不需要的事件,在所述省電模式下操作所述GPS接收器。 An electronic device comprising: a GPS receiver having a receiver circuit configured to switch between a location information acquisition mode and a power save mode, wherein the GPS receiver generates a geographic location reading during the location information acquisition mode, During the power saving mode, the GPS receiver is deactivated; an inertial sensor having a sensor circuit configured to generate a sensor reading corresponding to motion sensed by the electronic device; a control unit (MCU) having a control circuit configured to: determine reference position information; calculate a position information of the GPS fusion using a relative positioning technique based on the reference position information and the sensor reading; based on the GPS fusion a change in location information to generate an event required by the GPS; and in response to determining the reference location information, generating an event not required by the GPS; and an application processor having a processor circuit configured to: receive the GPS fusion Location information and one of the events required by the GPS or the events not required by the GPS; in response to receiving an event required by the GPS, Said location information acquisition operation mode of the GPS receiver to generate said reading location; and The GPS receiver is operated in the power saving mode in response to receiving an event not required by the GPS. 如申請專利範圍第1項所述的電子裝置,其中所述GPS接收器經配置以在所述位置資訊獲取模式下時以動態速率產生所述地理位置讀數。 The electronic device of claim 1, wherein the GPS receiver is configured to generate the geographic location reading at a dynamic rate when in the location information acquisition mode. 如申請專利範圍第1項所述的電子裝置,其中所述GPS接收器經配置以在所述位置資訊獲取模式下時以由所述應用程式處理器指定的最快速率產生所述地理位置讀數。 The electronic device of claim 1, wherein the GPS receiver is configured to generate the geographic location reading at a fastest rate specified by the application processor when in the location information acquisition mode . 如申請專利範圍第1項所述的電子裝置,其中所述MCU經配置以響應於所述地理位置讀數趨於收斂而判斷所述參考位置資訊。 The electronic device of claim 1, wherein the MCU is configured to determine the reference location information in response to the geographic location reading tending to converge. 如申請專利範圍第1項所述的電子裝置,其中所述MCU進一步經配置以產生事件包資料,所述事件包資料包括所述GPS融合的位置資訊以及所述GPS所需的事件或所述GPS不需要的事件中的一個。 The electronic device of claim 1, wherein the MCU is further configured to generate event package data, the event package data including location information of the GPS fusion, and an event required by the GPS or the One of the events that GPS does not need. 如申請專利範圍第5項所述的電子裝置,其中所述應用程式處理器進一步經配置以:選擇性地請求所述GPS融合的位置資訊或GPS位置資訊中的一個;執行位置服務過程以基於從所述事件包資料中提取的所述GPS所需的事件和所述GPS不需要的事件中所接收的一個而在所述省電模式與所述位置資訊獲取模式之間切換所述GPS接收器; 對於請求所述GPS融合的位置資訊,執行感測器服務過程以通知所述MCU計算所述GPS融合的位置資訊,其中所述應用程式處理器進一步經配置以獲得所述GPS融合的位置資訊以及從所述事件包資料中提取的所述GPS所需的事件和所述GPS不需要的事件中所選定的一個;對於所請求的所述GPS位置資訊,執行所述位置服務過程以從所述GPS接收器獲取所述地理位置讀數,從而以動態速率產生所述GPS位置資訊;以及選擇所述GPS融合的位置資訊和所述GPS位置資訊中的一個作為位置輸出。 The electronic device of claim 5, wherein the application processor is further configured to: selectively request one of the GPS-fused location information or GPS location information; perform a location service process based on Switching the GPS reception between the power saving mode and the location information acquisition mode from one of the events required by the GPS and the one of the GPS unnecessary events extracted from the event package data Device For requesting location information of the GPS fusion, performing a sensor service process to notify the MCU to calculate location information of the GPS convergence, wherein the application processor is further configured to obtain location information of the GPS convergence and a selected one of an event required by the GPS and an event not required by the GPS extracted from the event package material; for the requested GPS location information, performing the location service process to The GPS receiver acquires the geographic location reading to generate the GPS location information at a dynamic rate; and selects one of the GPS fused location information and the GPS location information as a location output. 如申請專利範圍第6項所述的電子裝置,其中所述感測器服務過程進一步經配置以:當從所述事件包資料中提取所述GPS所需的事件,則通知所述位置服務過程在所述位置資訊獲取模式下操作所述GPS接收器,從而以最快速率產生所述地理位置讀數,此後所述應用程式處理器將所述地理位置讀數傳遞到所述MCU,並且所述MCU基於所述地理位置讀數而產生所述參考位置資訊,並且將所述GPS不需要的事件添加到所述事件包資料;以及當從所述事件包資料中提取所述GPS不需要的事件,則在所述省電模式下操作所述GPS接收器。 The electronic device of claim 6, wherein the sensor service process is further configured to notify the location service process when an event required by the GPS is extracted from the event package material Operating the GPS receiver in the location information acquisition mode to generate the geographic location reading at the fastest rate, after which the application processor passes the geographic location reading to the MCU and the MCU Generating the reference location information based on the geographic location readings, and adding an event not required by the GPS to the event package material; and when extracting an event not required by the GPS from the event package material, The GPS receiver is operated in the power saving mode. 如申請專利範圍第6項所述的電子裝置,其中響應於請求所述GPS融合的位置資訊,所述MCU經配置以: 獲得初始位置資訊;基於所述感測器讀數而計算初始移動資訊;基於所述初始移動資訊和所述初始位置資訊而計算所估計的位置資訊;判斷是否符合位置更新條件;當不符合所述位置更新條件,則將所述所估計的位置資訊設定為所述GPS融合的位置資訊;當所述所估計的位置資訊將被校準:在符合位置更新條件的情況下通知所述應用程式處理器獲取地理位置讀數;基於所獲取的所述地理位置讀數而產生參考位置資訊,此後所述MCU將所述GPS不需要的事件添加到所述事件包資料中,使得所述應用程式處理器將所述GPS接收器切換到所述省電模式;將所述所估計的位置資訊與所述參考位置資訊相比較以獲得偏離資訊;基於所述所估計的位置資訊和所述偏離資訊而計算校準後的移動資訊;基於所述偏離資訊、校準後的移動資訊和所述所估計的位置資訊而計算校準後的位置資訊;以及將所述校準後的位置資訊設定為所述GPS融合的位置資訊;以及 產生包括所述GPS融合的位置資訊的所述事件包資料。 The electronic device of claim 6, wherein the MCU is configured to: in response to requesting location information of the GPS fusion: Obtaining initial position information; calculating initial movement information based on the sensor reading; calculating the estimated position information based on the initial movement information and the initial position information; determining whether the position update condition is met; Position update condition, the estimated location information is set as the location information of the GPS convergence; when the estimated location information is to be calibrated: the application processor is notified if the location update condition is met Obtaining a geographic location reading; generating reference location information based on the acquired geographic location readings, wherein the MCU thereafter adds an event not required by the GPS to the event package material, such that the application processor is Transmitting the GPS receiver to the power saving mode; comparing the estimated location information with the reference location information to obtain offset information; calculating a calibration based on the estimated location information and the deviation information Mobile information; calculating a school based on the deviation information, the calibrated movement information, and the estimated position information After location; and the location of the calibration set for the location information of said GPS fusion; and The event package data including the location information of the GPS fusion is generated. 如申請專利範圍第6項所述的電子裝置,其中:當從所述事件包資料中提取所述GPS所需的事件,則所述應用程式處理器從所述GPS接收器獲取所述地理位置讀數,其中所述地理位置讀數包括緯度讀數、經度讀數和精度讀數。 The electronic device of claim 6, wherein: when extracting an event required by the GPS from the event package material, the application processor acquires the geographic location from the GPS receiver Readings, wherein the geographic location readings include latitude readings, longitude readings, and precision readings. 如申請專利範圍第6項所述的電子裝置,其中在所述MCU將所述GPS所需的事件添加到所述事件包資料時,所述應用程式處理器經配置以所述最快速率將一序列的地理讀數注入所述MCU。 The electronic device of claim 6, wherein when the MCU adds an event required by the GPS to the event package material, the application processor is configured to at the fastest rate A sequence of geographic readings is injected into the MCU. 如申請專利範圍第10項所述的電子裝置,其中:所述電子裝置還包括在所述應用程式處理器外部的緩衝器;在請求所述GPS融合的位置資訊之後,所述應用程式處理器在休眠模式與喚醒模式之間切換,使得當所述應用程式處理器在所述休眠模式下操作時所述MCU不斷地將一序列的所述GPS融合的位置資訊儲存在所述緩衝器中,直到所述MCU響應於以下的任一個設定中斷事件:批量超時事件、緩衝器已滿警報事件、以及產生所述GPS所需的事件,而所述應用程式處理器切換到所述喚醒模式以提取所儲存的一序列的所述GPS融合的位置資訊。 The electronic device of claim 10, wherein: the electronic device further comprises a buffer external to the application processor; after requesting the GPS-fused location information, the application processor Switching between a sleep mode and an awake mode such that when the application processor is operating in the sleep mode, the MCU continuously stores a sequence of the GPS fused location information in the buffer, Until the MCU sets an interrupt event in response to any of the following: a batch timeout event, a buffer full alarm event, and an event required to generate the GPS, and the application processor switches to the wake mode to Extracting a stored sequence of the GPS fused location information. 一種提供位置資訊的方法,適用於電子裝置,所述電子裝置具有GPS接收器、慣性感測器、主控制單元(MCU)和應用程式處理器(AP),所述方法包括: 通過所述慣性感測器產生對應於所述電子裝置所感測到的運動的感測器讀數;通過所述MCU判斷參考位置資訊;基於所述參考位置資訊和所述感測器讀數,通過所述MCU使用相對定位技術計算GPS融合的位置資訊;基於所述GPS融合的位置資訊的變化,通過所述MCU產生GPS所需的事件;響應於判斷出所述參考位置資訊,通過所述MCU產生GPS不需要的事件;通過所述AP接收所述GPS融合的位置資訊以及所述GPS所需的事件或所述GPS不需要的事件中的一個;響應於通過所述AP接收所述GPS所需的事件,在位置資訊獲取模式下操作所述GPS接收器,在所述位置資訊獲取模式期間,所述GPS接收器產生地理位置讀數;以及響應於通過所述AP接收所述GPS不需要的事件,在省電模式下操作所述GPS接收器,在所述省電模式期間,所述GPS接收器為停用。 A method for providing location information is applicable to an electronic device having a GPS receiver, an inertial sensor, a main control unit (MCU), and an application processor (AP), the method comprising: Generating a sensor reading corresponding to the motion sensed by the electronic device by the inertial sensor; determining reference position information by the MCU; and based on the reference position information and the sensor reading The MCU calculates the location information of the GPS fusion using the relative positioning technology; generates an event required by the GPS through the MCU based on the change of the location information of the GPS fusion; and generates the information through the MCU in response to determining the reference location information An event that is not required by the GPS; receiving, by the AP, location information of the GPS convergence and one of an event required by the GPS or an event not required by the GPS; in response to receiving the GPS through the AP An event of operating the GPS receiver in a location information acquisition mode, the GPS receiver generating a geographic location reading during the location information acquisition mode; and responsive to receiving an event not required by the GPS by the AP The GPS receiver is operated in a power saving mode during which the GPS receiver is deactivated. 如申請專利範圍第12項所述的方法,其中在所述位置資訊獲取模式下操作所述GPS接收器包括以動態速率產生所述地理位置讀數。 The method of claim 12, wherein operating the GPS receiver in the location information acquisition mode comprises generating the geographic location reading at a dynamic rate. 如申請專利範圍第12項所述的方法,其中在所述位置資訊獲取模式下操作所述GPS接收器包括以由所述AP指定的最快速率產生所述地理位置讀數。 The method of claim 12, wherein operating the GPS receiver in the location information acquisition mode comprises generating the geographic location reading at a fastest rate specified by the AP. 如申請專利範圍第12項所述的方法,其中響應於所述地理位置讀數趨於收斂而執行判斷所述參考位置資訊。 The method of claim 12, wherein the determining the reference location information is performed in response to the geographic location reading tending to converge. 如申請專利範圍第12項所述的方法,更包括通過所述MCU產生事件包資料,所述事件包資料包括所述GPS融合的位置資訊和所述GPS所需的事件或所述GPS不需要的事件中的一個。 The method of claim 12, further comprising generating event package data by using the MCU, the event package data including location information of the GPS fusion and an event required by the GPS or the GPS does not need One of the events. 如申請專利範圍第16項所述的方法,更包括:通過所述AP選擇性地請求所述GPS融合的位置資訊或GPS位置資訊中的一個;通過所述AP執行位置服務過程以基於從所述事件包資料中提取的所述GPS所需的事件和所述GPS不需要的事件中所接收的一個而在所述省電模式與所述位置資訊獲取模式之間切換所述GPS接收器;對於請求所述GPS融合的位置資訊:通過所述AP執行感測器服務過程,以通知所述MCU計算所述GPS融合的位置資訊;以及獲得所述GPS融合的位置資訊以及從所述事件包資料中提取的所述GPS所需的事件和所述GPS不需要的事件中所選定的一個;對於請求所述GPS位置資訊: 執行所述位置服務過程以從所述GPS接收器獲取所述地理位置讀數,從而以動態速率產生所述GPS位置資訊;以及選擇所述GPS融合的位置資訊和所述GPS位置資訊中的一個作為位置輸出。 The method of claim 16, further comprising: selectively requesting, by the AP, one of location information or GPS location information of the GPS convergence; performing a location service process by using the AP to perform a location service process Switching the GPS receiver between the power saving mode and the location information acquisition mode by the event required by the GPS extracted in the event package data and the received one of the GPS unnecessary events; For location information requesting the GPS convergence: performing a sensor service process by the AP to notify the MCU to calculate location information of the GPS convergence; and obtaining location information of the GPS convergence and from the event package The selected one of the GPS required events and the selected one of the GPS undesired events extracted from the data; for requesting the GPS location information: Performing the location service process to acquire the geographic location reading from the GPS receiver to generate the GPS location information at a dynamic rate; and selecting one of the GPS fused location information and the GPS location information as Position output. 如申請專利範圍第17項所述的方法,其中執行所述感測器服務過程更包括:當從所述事件包資料中提取所述GPS所需的事件,則通知所述位置服務過程在所述位置資訊獲取模式下操作所述GPS接收器,從而以所述最快速率產生所述地理位置讀數,此後所述應用程式處理器將所述地理位置讀數傳遞到所述MCU,並且所述MCU基於所述地理位置讀數而產生所述參考位置資訊,並且將所述GPS不需要的事件添加到所述事件包資料;以及當從所述事件包資料中提取所述GPS不需要的事件,則在所述省電模式下操作所述GPS接收器。 The method of claim 17, wherein the performing the sensor service process further comprises: when the event required by the GPS is extracted from the event package material, notifying the location service process Operating the GPS receiver in the location information acquisition mode to generate the geographic location reading at the fastest rate, after which the application processor passes the geographic location reading to the MCU and the MCU Generating the reference location information based on the geographic location readings, and adding an event not required by the GPS to the event package material; and when extracting an event not required by the GPS from the event package material, The GPS receiver is operated in the power saving mode. 如申請專利範圍第17項所述的方法,更包括:當從所述事件包資料中提取所述GPS所需的事件,則通過所述AP從所述GPS接收器獲取所述地理位置讀數,其中所述地理位置讀數包括緯度讀數、經度讀數和精度讀數。 The method of claim 17, further comprising: when extracting an event required by the GPS from the event package material, acquiring the geographic location reading from the GPS receiver through the AP, The geographic location readings include latitude readings, longitude readings, and precision readings. 申請專利範圍第17項所述的方法,更包括:在所述MCU將所述GPS所需的事件添加到所述事件包資料之後,通過所述AP以所述最快速率將一序列的地理讀數注入所述MCU。The method of claim 17, further comprising: after the MCU adds an event required by the GPS to the event package data, to perform a sequence of geography at the fastest rate by the AP A reading is injected into the MCU.
TW106122334A 2016-07-14 2017-07-04 Electronic devices and methods for providing location information TWI631359B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201662362553P 2016-07-14 2016-07-14
US62/362,553 2016-07-14
US15/619,607 US11029414B2 (en) 2013-05-08 2017-06-12 Electronic devices and methods for providing location information
US15/619,607 2017-06-12

Publications (2)

Publication Number Publication Date
TW201802493A TW201802493A (en) 2018-01-16
TWI631359B true TWI631359B (en) 2018-08-01

Family

ID=60782856

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106122334A TWI631359B (en) 2016-07-14 2017-07-04 Electronic devices and methods for providing location information

Country Status (3)

Country Link
CN (1) CN107623939B (en)
DE (1) DE102017115679A1 (en)
TW (1) TWI631359B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918386B (en) * 2020-07-03 2023-09-29 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201024990A (en) * 2008-12-19 2010-07-01 Chi Mei Comm Systems Inc Electronic device and method for saving power consumption of a GPS
JP2011176550A (en) * 2010-02-24 2011-09-08 Nec Corp Accident situation notification method by cellular phone terminal, cellular phone terminal with accident situation notification function, and accident situation notification program
CN103597804A (en) * 2011-06-03 2014-02-19 苹果公司 Baseband on-board location monitoring
US20140336989A1 (en) * 2013-05-08 2014-11-13 Cywee Group Ltd. Mobile device and microcontroller unit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60113581T2 (en) * 2000-03-24 2006-05-18 Clarion Co., Ltd. GPS receiver capable of accurate 2DRMS calculation
US8952832B2 (en) * 2008-01-18 2015-02-10 Invensense, Inc. Interfacing application programs and motion sensors of a device
KR20120056687A (en) * 2010-11-25 2012-06-04 삼성전자주식회사 Method for providing location information and apparatus for the same
US8738031B2 (en) * 2012-05-25 2014-05-27 Apple Inc. Operating geographic location systems
US9104417B2 (en) 2013-05-08 2015-08-11 Cywee Group Limited Electronic apparatus capable of being waked up through detecting motions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201024990A (en) * 2008-12-19 2010-07-01 Chi Mei Comm Systems Inc Electronic device and method for saving power consumption of a GPS
JP2011176550A (en) * 2010-02-24 2011-09-08 Nec Corp Accident situation notification method by cellular phone terminal, cellular phone terminal with accident situation notification function, and accident situation notification program
CN103597804A (en) * 2011-06-03 2014-02-19 苹果公司 Baseband on-board location monitoring
US20140336989A1 (en) * 2013-05-08 2014-11-13 Cywee Group Ltd. Mobile device and microcontroller unit

Also Published As

Publication number Publication date
CN107623939B (en) 2022-02-18
DE102017115679A1 (en) 2018-01-18
TW201802493A (en) 2018-01-16
CN107623939A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
US11029414B2 (en) Electronic devices and methods for providing location information
CN107422355B (en) Hybrid positioning method and electronic device
US9591458B2 (en) Method and apparatus for adaptive positioning
EP2976658B1 (en) Methods and apparatuses for location-triggered sensor initialization
US9986529B2 (en) Methods and apparatuses for use in determining an altitude of a mobile device
CN111788852B (en) Method for supporting positioning of a wireless device, network node and wireless device
US20120258741A1 (en) Apparatus and Method for Using a Wireless Mobile Handset Application to Locate Beacons
US11711672B2 (en) Variable ping rate for a location tracker
US20160245716A1 (en) Opportunistic calibration of a barometer in a mobile device
US10184798B2 (en) Multi-stage dead reckoning for crowd sourcing
US20140274115A1 (en) Tracking device and remote monitoring system
US10274346B2 (en) Determining quality of a location-determination algorithm associated with a mobile device by processing a log of sensor data
KR20140104484A (en) Location and event triggered navigation dormancy and wakeup
WO2010033502A2 (en) Using wireless characteristic to trigger generation of position fix
CN105163386A (en) Indoor positioning system and method based on wireless beacon
US10527430B2 (en) Method and apparatus for beacon data collection
JP5870817B2 (en) Information processing apparatus, information processing method, and program
WO2014164384A2 (en) Mobile device positioning responsive to externally generated regional candidate position fix mode selection
CN106416396A (en) Running location provider processes
TWI631359B (en) Electronic devices and methods for providing location information
JP6444023B2 (en) Terminal device, positioning method and program
JP2016061762A (en) Electronic device, sensor calibration method and sensor calibration program
KR101663654B1 (en) Apparatus and method for deciding variation of in-out door position in a mobile-terminal
KR102342818B1 (en) Apparatus and method for estimating position of pedestrian
US20160299211A1 (en) Method implemented by a mobile device for obtaining its position and device implementing this method