WO2022116754A1 - Low-power-consumption positioning method and apparatus, and electronic device - Google Patents

Low-power-consumption positioning method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022116754A1
WO2022116754A1 PCT/CN2021/127054 CN2021127054W WO2022116754A1 WO 2022116754 A1 WO2022116754 A1 WO 2022116754A1 CN 2021127054 W CN2021127054 W CN 2021127054W WO 2022116754 A1 WO2022116754 A1 WO 2022116754A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
state
duration
stationary
equal
Prior art date
Application number
PCT/CN2021/127054
Other languages
French (fr)
Chinese (zh)
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
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022116754A1 publication Critical patent/WO2022116754A1/en

Links

Images

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
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation

Definitions

  • the present application relates to the technical field of terminal positioning, and in particular, to a low-power-consumption positioning method, device, and electronic device.
  • the power consumption of positioning products is mainly generated by the GPS positioning unit and the modem (modem) communication unit, among which the power consumption of the modem communication unit accounts for the largest proportion.
  • Users of positioning products have no restrictions on positioning operations, that is, positioning operations may be initiated at any time, which will keep the modem in a continuous standby state and increase power consumption. Therefore, how to realize the modem communication unit not only meets the needs of users in various scenarios, but also reduces power consumption has become an urgent problem to be solved.
  • the purpose of the present application is to provide a low power consumption positioning method, device and electronic device, which can reduce the power consumption of the terminal while satisfying the normal use of the user.
  • the low power consumption positioning method provided by the embodiment of the present application includes: determining the dynamic and static changes of the terminal according to the acceleration sensor data; determining the state of the terminal according to the dynamic and static changes of the terminal; and controlling the state of the terminal according to the state of the terminal power consumption.
  • Embodiments of the present application also provide a low-power-consumption positioning device, including a movement monitoring module, a state monitoring module, and a power consumption control module.
  • the movement monitoring module is configured to periodically collect data of the acceleration sensing sensor of the terminal, and determine the dynamic and static changes of the terminal according to the data of the acceleration sensing sensor.
  • the state monitoring module is configured to calculate the number of times the terminal maintains a motion state in multiple consecutive cycles according to the dynamic and static changes of the terminal determined by the movement monitoring module, so as to determine the state of the terminal.
  • the power consumption control module is configured to adjust the working state according to the state of the terminal.
  • Embodiments of the present application further provide an electronic device, including a processor and a memory.
  • the memory is configured to store computer-executable instructions that, when executed, cause the processor to perform the steps of the low-power positioning method described above.
  • Embodiments of the present application further provide a computer-readable storage medium storing one or more programs.
  • the one or more programs when executed by an electronic device including a plurality of application programs, cause the electronic device to perform the steps of the above-mentioned low-power-consumption positioning method.
  • FIG. 1 is a schematic diagram of a workflow of a low-power-consumption positioning method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a terminal movement monitoring process according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a terminal state monitoring process according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a terminal power consumption control process according to an embodiment of the present application.
  • FIG. 5 is a structural frame diagram of a low-power positioning device according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a workflow of a low-power positioning method according to an embodiment of the present application. Referring to FIG. 1 , the low-power positioning method according to an embodiment of the present application will be described in detail below.
  • step 101 the dynamic and static changes of the terminal are determined according to the acceleration sensor data.
  • the data of the acceleration sensor is acquired periodically for each duration A, and the calculation is performed according to the data of the acceleration sensor to determine whether the terminal device has dynamic or static changes, and the duration A is greater than 0.
  • a timer with a fixed duration of B is started.
  • the fixed duration B of the fixed duration timer is greater than or equal to the duration A;
  • the fixed-duration timer whose fixed duration is B is stopped.
  • the terminal does not change statically during the operation of the fixed-duration timer with the fixed duration of B, after the fixed-duration timer with the fixed duration of B times out, it is determined that the terminal has movement traces; and record the current
  • the system time is the time point when the terminal detects the movement.
  • step 102 the state of the terminal is determined according to the dynamic and static changes of the terminal.
  • a periodic timer of every other duration E is started, the duration E is greater than or equal to the duration B, and the timer of duration E may be a periodic positioning timer provided by the terminal (the user can set the duration by himself/herself). ) is used to periodically monitor the state of the terminal, which includes three states: moving state, ready to enter the stationary state and having entered the stationary state.
  • the timer with the duration E is a periodic timer.
  • the current system time and the time when the terminal monitors the movement is obtained once; if the difference between the current system time and the time when the terminal monitors the movement is less than the duration E, it is considered that the During the period, the terminal moves, and the number of times of standing still F is cleared, that is, F is equal to 0; if the difference between the current system time and the time when the terminal monitors the movement is greater than or equal to E, it is considered that the terminal is not in the period. Move, and let the number of times of standing still increase by 1.
  • the terminal it is determined that the terminal has entered the rest state for the limit duration of G; if the duration E is greater than or equal to the duration G, and when the number of times of rest duration F is greater than or equal to 1, it is determined that the terminal has entered the rest state; if The duration E is greater than or equal to the duration G, and when the number of times F of standing still is 0, it is determined that the terminal is in a moving state.
  • duration E is less than the duration G, and when the value of the number of times of standing still F is less than ceil((G-E)/E), and the value of the number of times of standing still F is greater than or equal to 2, it is determined that the terminal is ready to enter the standing state.
  • step 103 the power consumption of the terminal is controlled according to the state of the terminal.
  • the state of the modem is controlled according to the current state of the terminal.
  • the modem if the terminal is ready to enter the stationary state, the modem is put into sleep to save power consumption; if the terminal is in the stationary state, the modem is turned off to save power consumption; if the terminal is in the moving state, according to the service The modem needs to be turned on again.
  • FIG. 2 is a schematic diagram of a terminal movement monitoring process according to an embodiment of the present application. Referring to FIG. 2 , the terminal movement monitoring process of the present application will be described in detail below.
  • step 201 start.
  • the mobile monitoring of the terminal is started.
  • step 202 the acceleration sensor data is acquired every time interval A.
  • whether the terminal is moving is preliminarily determined according to the data of the acceleration sensor, a timer with an interval of A is started, and the data of the acceleration sensor is continuously acquired.
  • step 203 the dynamic and static changes are determined according to the acceleration sensor data.
  • the dynamic and static changes of the terminal are determined according to the data of the acceleration sensor.
  • step 204 whether there is a movement change.
  • step 205 it is determined whether the terminal has moved according to the data of the acceleration sensor; if the determination result is yes, go to step 205 ; if the determination result is no, go to step 206 .
  • step 205 a timer with duration B is started.
  • a fixed duration timer with a fixed duration B is started. If the fixed duration timer with a fixed duration B has been started, then no longer start.
  • step 206 the timer of duration B is stopped.
  • the fixed-duration timer whose fixed duration is B is stopped.
  • step 207 if the timer whose duration is B times out, the current time is recorded and marked as the terminal moving time.
  • the current system time is acquired, and the current system time is recorded as the terminal movement time, indicating that the terminal has movement traces at the current system time point.
  • FIG. 3 is a schematic diagram of a terminal state monitoring process according to an embodiment of the present application. Referring to FIG. 3 , the terminal state monitoring process in an embodiment of the present application will be described in detail below.
  • step 301 start.
  • monitoring of the state of the terminal is started.
  • step 302 the current system time and the time point at which the movement is monitored are acquired every time interval E.
  • a periodic timer with an interval duration E is started, and the current system time and the time when the terminal movement is monitored are obtained once every period of the duration E, and the duration E is greater than 0.
  • step 303 whether the difference between the time when the current system time amount monitors the movement is less than the duration E.
  • step 304 it is determined whether the time difference between the current system time and the monitored terminal movement is less than the duration E, and if the determination result is yes, go to step 304; if the determination result is no, go to step 305.
  • step 304 the number of times of standing is reset to zero.
  • step 305 the number of standstill times is incremented by 1.
  • the difference between the current system time and the monitored terminal movement time is greater than or equal to the duration E, it is considered that the terminal has no movement traces, and the number of times of rest is incremented by 1, that is, the number of times F of the stationary state continues to increase by 1.
  • step 306 it is determined whether the duration E is greater than or equal to the limit duration G.
  • the limit duration G is the limit duration for determining that the terminal is in a stationary state, and it is determined whether the duration E is greater than the limit duration G. If the determination result is yes, continue to determine the number of stationary times; if the determination result is no, enter the Step 308.
  • step 3071 if the number of times of standing still is 0, it is determined that the terminal enters the moving state.
  • step 3072 if the value of the number of times of rest is greater than or equal to 1, it is determined that the terminal has entered the rest state.
  • the duration E is greater than or equal to the duration G, and the number of continuations F of the stationary state of the terminal is greater than or equal to 1, it is determined that the terminal has entered the stationary state. If the value of the number of stills is 0, it is in the moving state
  • step 308 check whether the number of times of standing still is greater than or equal to ceil((G-E)/E).
  • the duration E is less than the duration G, determine whether the value of the number of times F of standing still is greater than or equal to ceil((G-E)/E), (ceil(x) refers to the smallest integer greater than or equal to x); If the determination result is yes, go to step 309; if the determination result is no, go to step 310.
  • step 309 it is determined that the terminal has entered a rest state.
  • step 310 check whether the value of the number of times of standing is greater than or equal to 2.
  • step 311 it is determined that the terminal is in a mobile state.
  • the duration E is less than the duration G, and the value of the number of times of standing still F is less than ceil((G-E)/E), and the value of the number of times F of the terminal standing still is less than 2, then it is determined that the terminal is in a mobile state.
  • step 312 it is determined that the terminal is ready to enter a rest state.
  • the duration E is less than the duration G, and the value of the number of times F of standing still is less than ceil((G-E)/E), and the value of the number of times F of terminal standing still is greater than or equal to 2, it is determined that the terminal is ready to enter rest state.
  • FIG. 4 is a schematic diagram of a terminal power consumption control process according to an embodiment of the present application. Referring to FIG. 4 , the terminal power consumption control process in an embodiment of the present application will be described in detail below.
  • step 401 start.
  • the adjustment to reduce the power consumption of the terminal is started.
  • step 402 the terminal state determination result is obtained.
  • step 403 whether the terminal has entered a stationary state.
  • step 404 it is determined whether the terminal has entered a stationary state, and if the determination result is yes, then the process goes to step 404 ; if the determination result is no, the process goes to step 405 .
  • the modem is turned off.
  • the modem is turned off if the terminal has entered a stationary state.
  • step 405 whether the terminal is ready to enter a resting state.
  • step 406 if the terminal is not already in the stationary state, continue to determine whether the terminal is ready to enter the stationary state, if the determination result is yes, go to step 406; if the determination result is no, go to step 407.
  • the modem is hibernated.
  • a modem sleep operation is performed if the terminal is ready to enter a stationary state.
  • step 407 the terminal is in a mobile state, and the modem is turned on according to service requirements.
  • the terminal may select whether to enable the modem according to the actual needs of the service.
  • FIG. 5 is a structural frame diagram of a low-power positioning device according to an embodiment of the present application. Referring to FIG. 5 , the structure of the low-power positioning device according to the embodiment of the present application will be described in detail below.
  • the low-power positioning device includes: a movement monitoring module, a state monitoring module, and a power consumption control module;
  • the mobile monitoring module collects the data of the acceleration sensing sensor of the terminal at periodic intervals, and determines the dynamic and static changes of the terminal according to the data of the acceleration sensing sensor;
  • the state monitoring module calculates the number of times that the terminal maintains the moving state in a plurality of consecutive cycles, and determines the state of the terminal;
  • the power consumption control module adjusts the working state according to the state of the terminal.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory.
  • the memory may include memory, such as high-speed random-access memory (Random-Access Memory, RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM random-Access Memory
  • non-volatile memory such as at least one disk memory.
  • the electronic equipment may also include hardware required for other services.
  • the processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Component Interconnect) bus. Industry Standard Architecture, extended industry standard structure) bus, etc.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one bidirectional arrow is shown in FIG. 6, but it does not mean that there is only one bus or one type of bus.
  • the program may include program code, and the program code includes computer operation instructions.
  • the processor reads the corresponding computer program from the non-volatile memory into the memory and executes it, forming a shared resource access control device on a logical level.
  • the processor executes the program stored in the memory, and is specifically configured to execute the steps of the above-mentioned low-power-consumption positioning method.
  • Embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs include instructions, and the instructions, when used by a portable electronic device including multiple application programs When executed, the portable electronic device can be made to execute the method of the embodiment shown in the accompanying drawings, and is specifically used to execute the steps of the above-mentioned low-power-consumption positioning method.
  • the low-power-consumption positioning method of the embodiment of the present application continuously monitors the motion status of the device, and performs different power-saving operations on the modem according to the motion status of the terminal; while ensuring the normal use of the user, the power consumption is saved as much as possible, Extend battery life.

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A low-power-consumption positioning method and apparatus, and an electronic device and a computer-readable storage medium. The method comprises: determining a motion change of a terminal according to data of an acceleration sensor (101); determining the state of the terminal according to the motion change of the terminal (102); and controlling the power consumption of the terminal according to the state of the terminal (103).

Description

一种低功耗定位方法、装置及电子设备A low power consumption positioning method, device and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为202011412746.5、申请日为2020年12月02日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number of 202011412746.5 and the filing date of December 2, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is incorporated herein by reference.
技术领域technical field
本申请涉及终端定位技术领域,尤其涉及一种低功耗定位方法、装置及电子设备。The present application relates to the technical field of terminal positioning, and in particular, to a low-power-consumption positioning method, device, and electronic device.
背景技术Background technique
目前定位类产品的功耗主要就是GPS定位单元和modem(调制解调器)通讯单元产生的,其中modem通讯单元的功耗占比最大。而定位类产品用户对定位的操作是没有设限的,也就是随时都有可能会发起定位操作,这就会让modem处于持续待机状态而增大功耗。所以modem通讯单元如何实现既要满足用户各个场景下的使用需要,又要让其降低功耗成了亟待解决的问题。At present, the power consumption of positioning products is mainly generated by the GPS positioning unit and the modem (modem) communication unit, among which the power consumption of the modem communication unit accounts for the largest proportion. Users of positioning products have no restrictions on positioning operations, that is, positioning operations may be initiated at any time, which will keep the modem in a continuous standby state and increase power consumption. Therefore, how to realize the modem communication unit not only meets the needs of users in various scenarios, but also reduces power consumption has become an urgent problem to be solved.
发明内容SUMMARY OF THE INVENTION
为至少部分地解决现有技术存在的缺陷,本申请的目的在于提供了一种低功耗定位方法、装置及电子设备,可以在满足用户正常使用的同时,降低终端功耗。In order to at least partially solve the defects existing in the prior art, the purpose of the present application is to provide a low power consumption positioning method, device and electronic device, which can reduce the power consumption of the terminal while satisfying the normal use of the user.
本申请实施例提供的低功耗定位方法,其包括:根据加速度传感器数据,确定终端的动静变化;根据终端的动静变化,确定其所处的状态;以及根据终端所处的状态,控制终端的功耗。The low power consumption positioning method provided by the embodiment of the present application includes: determining the dynamic and static changes of the terminal according to the acceleration sensor data; determining the state of the terminal according to the dynamic and static changes of the terminal; and controlling the state of the terminal according to the state of the terminal power consumption.
本申请实施例还提供一种低功耗定位装置,包括移动监测模块、状态监测模块以及功耗控制模块。移动监测模块被配置为周期性的间隔采集终端的加速度感应传感器的数据,并根据加速度感应传感器的数据确定终端的动静变化。状态监测模块被配置为根据移动监测模块确定的终端的动静变化,计算终端在多个连续的周期内终端保持运动状态的次数,进行终端所处状态的确定。功耗控制模块被配置为根据终端所处状态,进行工作状态的调整。Embodiments of the present application also provide a low-power-consumption positioning device, including a movement monitoring module, a state monitoring module, and a power consumption control module. The movement monitoring module is configured to periodically collect data of the acceleration sensing sensor of the terminal, and determine the dynamic and static changes of the terminal according to the data of the acceleration sensing sensor. The state monitoring module is configured to calculate the number of times the terminal maintains a motion state in multiple consecutive cycles according to the dynamic and static changes of the terminal determined by the movement monitoring module, so as to determine the state of the terminal. The power consumption control module is configured to adjust the working state according to the state of the terminal.
本申请实施例还提供一种电子设备,包括处理器以及存储器。该存储器被配置为存储计算机可执行指令,该可执行指令在被执行时使处理器执行上述低功耗定位方法的步骤。Embodiments of the present application further provide an electronic device, including a processor and a memory. The memory is configured to store computer-executable instructions that, when executed, cause the processor to perform the steps of the low-power positioning method described above.
本申请实施例还提供一种计算机可读存储介质,其存储有一个或多个程序。该一个或多个程序当被包括多个应用程序的电子设备执行时,使得电子设备执行上述低功耗定位方法的步骤。Embodiments of the present application further provide a computer-readable storage medium storing one or more programs. The one or more programs, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform the steps of the above-mentioned low-power-consumption positioning method.
附图说明Description of drawings
图1为根据本申请实施例的低功耗定位方法工作流程示意图;1 is a schematic diagram of a workflow of a low-power-consumption positioning method according to an embodiment of the present application;
图2为根据本申请实施例的终端移动监测流程示意图;FIG. 2 is a schematic flowchart of a terminal movement monitoring process according to an embodiment of the present application;
图3为根据本申请实施例的终端状态监测流程示意图;FIG. 3 is a schematic flowchart of a terminal state monitoring process according to an embodiment of the present application;
图4为根据本申请实施例的终端功耗控制流程示意图;FIG. 4 is a schematic flowchart of a terminal power consumption control process according to an embodiment of the present application;
图5为根据本申请实施例的低功耗定位装置结构框架图;以及FIG. 5 is a structural frame diagram of a low-power positioning device according to an embodiment of the present application; and
图6为根据本申请的一个实施例电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
以下结合附图对本申请的一些实施例进行说明,应当理解,此处所描述的实施例仅用于说明和解释本申请,并不用于限定本申请。Some embodiments of the present application will be described below with reference to the accompanying drawings. It should be understood that the embodiments described herein are only used to illustrate and explain the present application, but not to limit the present application.
实施例1Example 1
图1为根据本申请实施例的低功耗定位方法工作流程示意图,下面将参考图1,对本申请实施例的低功耗定位方法进行详细描述。FIG. 1 is a schematic diagram of a workflow of a low-power positioning method according to an embodiment of the present application. Referring to FIG. 1 , the low-power positioning method according to an embodiment of the present application will be described in detail below.
首先,步骤101,根据加速度传感器数据,确定终端的动静变化。First, in step 101, the dynamic and static changes of the terminal are determined according to the acceleration sensor data.
本申请实施例中,周期性的每个时长A获取一次加速度传感器的数据,并根据加速度传感器的数据进行计算,确定终端设备是否有动静变化,时长A大于0。In the embodiment of the present application, the data of the acceleration sensor is acquired periodically for each duration A, and the calculation is performed according to the data of the acceleration sensor to determine whether the terminal device has dynamic or static changes, and the duration A is greater than 0.
本申请实施例中,若终端被确定为有移动变化(从静止到移动),则启动一个固定时长为B的定时器,如果该固定时长为B的定时器已经启动,则不再启动,该固定时长定时器的固定时长B大于等于时长A;In this embodiment of the present application, if the terminal is determined to have a movement change (from stationary to moving), a timer with a fixed duration of B is started. The fixed duration B of the fixed duration timer is greater than or equal to the duration A;
若终端被确定为有静止变化(从移动到静止),则停止固定时长为B的固定时长定时器。If the terminal is determined to have a stationary change (from moving to stationary), the fixed-duration timer whose fixed duration is B is stopped.
本申请实施例中,若固定时长为B的固定时长定时器运行期间,终端一直没有静止变化,则在固定时长为B的固定时长定时器超时后,确定为终端有移动痕迹;并记录当前的系统时间为终端监测到移动的时间点。In this embodiment of the present application, if the terminal does not change statically during the operation of the fixed-duration timer with the fixed duration of B, after the fixed-duration timer with the fixed duration of B times out, it is determined that the terminal has movement traces; and record the current The system time is the time point when the terminal detects the movement.
在步骤102,根据终端的动静变化,确定其所处的状态。In step 102, the state of the terminal is determined according to the dynamic and static changes of the terminal.
本申请实施例中,启动一个周期性的每隔一个时长E的定时器,时长E大于等于时长B,时长E的定时器可以是终端自带的周期定位的定时器(用户可以自己设定时长),用于周期性的监测终端的状态,该状态包括:移动状态、准备进入静置状态和已经进入静置状态三种。In this embodiment of the present application, a periodic timer of every other duration E is started, the duration E is greater than or equal to the duration B, and the timer of duration E may be a periodic positioning timer provided by the terminal (the user can set the duration by himself/herself). ) is used to periodically monitor the state of the terminal, which includes three states: moving state, ready to enter the stationary state and having entered the stationary state.
本申请实施例中,时长E的定时器为周期定时器。In this embodiment of the present application, the timer with the duration E is a periodic timer.
本申请实施例中,在每一个时长E的周期里,获取一次当前系统时间和终端监测到移动的时间;若当前的系统时间与终端监测到移动的时间的差值小于时长E,则认为该周期内终端是有移动的,并让静置持续次数F清零,即F等于0;若当前的系统时间与终端监测到移动的时间的差值大于等于E,则认为该周期内终端是没有移动的,并让静置持续次数F加1。In the embodiment of the present application, in each period of the duration E, the current system time and the time when the terminal monitors the movement is obtained once; if the difference between the current system time and the time when the terminal monitors the movement is less than the duration E, it is considered that the During the period, the terminal moves, and the number of times of standing still F is cleared, that is, F is equal to 0; if the difference between the current system time and the time when the terminal monitors the movement is greater than or equal to E, it is considered that the terminal is not in the period. Move, and let the number of times of standing still increase by 1.
本申请实施例中,确定终端为已经进入静置状态的界限时长为G;如果时长E大于等于时长G,且当静置持续次数F大于等于1时,确定终端为已经进入静置状态;如果时长E大于等于时长G,且当静置持续次数F为0时,确定终端为移动状态。In the embodiment of the present application, it is determined that the terminal has entered the rest state for the limit duration of G; if the duration E is greater than or equal to the duration G, and when the number of times of rest duration F is greater than or equal to 1, it is determined that the terminal has entered the rest state; if The duration E is greater than or equal to the duration G, and when the number of times F of standing still is 0, it is determined that the terminal is in a moving state.
本申请实施例中,如果时长E小于时长G,且当静置持续次数F的值大于等于ceil((G-E)/E)时,确定终端为已经进入静置状态(ceil(x)指的是大于或等于x的最小整数);In this embodiment of the present application, if the duration E is less than the duration G, and when the value of the number of times of standing still F is greater than or equal to ceil ((G-E)/E), it is determined that the terminal has entered the standing state (ceil(x) refers to the the smallest integer greater than or equal to x);
如果时长E小于时长G,且当静置持续次数F的值小于ceil((G-E)/E)时,并且静置持续次数F的值大于等于2时,确定终端为准备进入静置状态。If the duration E is less than the duration G, and when the value of the number of times of standing still F is less than ceil((G-E)/E), and the value of the number of times of standing still F is greater than or equal to 2, it is determined that the terminal is ready to enter the standing state.
本申请实施例中,其他情况,即确定结果为非已经进入静置状态、非准备进入静置状态的,确定终端为移动状态。In the embodiment of the present application, in other cases, that is, if the determination result is that the terminal has not entered the stationary state or is not ready to enter the stationary state, it is determined that the terminal is in the moving state.
在步骤103,根据终端所处的状态,控制终端的功耗。In step 103, the power consumption of the terminal is controlled according to the state of the terminal.
本申请实施例中,根据终端当前所处的状态对modem(调制解调器)进行状态控制。In this embodiment of the present application, the state of the modem (modem) is controlled according to the current state of the terminal.
本申请实施例中,如果终端处于准备进入静置状态时,则让modem休眠节省功耗;如 果终端处于已经进入静置状态,则关闭modem节省功耗;如果终端处于移动状态时,则根据业务需要再开启modem。In the embodiment of the present application, if the terminal is ready to enter the stationary state, the modem is put into sleep to save power consumption; if the terminal is in the stationary state, the modem is turned off to save power consumption; if the terminal is in the moving state, according to the service The modem needs to be turned on again.
实施例2Example 2
图2为根据本申请实施例的终端移动监测流程示意图,下面将参考图2,对本申请的终端移动监测流程进行详细描述。FIG. 2 is a schematic diagram of a terminal movement monitoring process according to an embodiment of the present application. Referring to FIG. 2 , the terminal movement monitoring process of the present application will be described in detail below.
首先,在步骤201,开始。First, at step 201, start.
本申请实施例中,开始对终端的移动监测。In this embodiment of the present application, the mobile monitoring of the terminal is started.
在步骤202,每间隔时长A获取一次加速度传感器数据。In step 202, the acceleration sensor data is acquired every time interval A.
本申请实施例中,依据加速度传感器的数据进行终端是否移动的进行初步确定,启动间隔为时长A的计时器,进行持续的获取加速度传感器的数据。In the embodiment of the present application, whether the terminal is moving is preliminarily determined according to the data of the acceleration sensor, a timer with an interval of A is started, and the data of the acceleration sensor is continuously acquired.
在步骤203,根据加速度传感器数据确定动静变化。In step 203, the dynamic and static changes are determined according to the acceleration sensor data.
本申请实施例中,根据加速度传感器的数据确定终端的动静变化。In the embodiment of the present application, the dynamic and static changes of the terminal are determined according to the data of the acceleration sensor.
在步骤204,是否有移动变化。At step 204, whether there is a movement change.
本申请实施例中,根据加速度传感器的数据确定终端是否有移动;若确定结果为是,则进入步骤205;若确定结果为否,则进入步骤206。In this embodiment of the present application, it is determined whether the terminal has moved according to the data of the acceleration sensor; if the determination result is yes, go to step 205 ; if the determination result is no, go to step 206 .
在步骤205,启动时长为B的定时器。In step 205, a timer with duration B is started.
本申请实施例中,根据加速度传感器的数据确定终端有移动变化时(从静止到移动),则启动一个固定时长为B的固定时长定时器,如果固定时长为B的固定时长定时器已经启动则不再启动。In the embodiment of the present application, when it is determined that the terminal has a movement change (from stationary to moving) according to the data of the acceleration sensor, a fixed duration timer with a fixed duration B is started. If the fixed duration timer with a fixed duration B has been started, then no longer start.
在步骤206,停止时长为B的定时器。At step 206, the timer of duration B is stopped.
本申请实施例中,如果终端有静止变化(从移动到静止),则停止固定时长为B的固定时长定时器。In this embodiment of the present application, if the terminal changes from being stationary (from moving to stationary), the fixed-duration timer whose fixed duration is B is stopped.
在步骤207,若时长为B的定时器超时,则记录当前时间,并标记为终端移动时间。In step 207, if the timer whose duration is B times out, the current time is recorded and marked as the terminal moving time.
本申请实施例中,如果固定时长为B的固定时长定时器超时,则获取当前的系统时间,并记录当前系统时间为终端移动时间,表示终端在当前的系统时间点有移动痕迹。In this embodiment of the present application, if the fixed duration timer whose fixed duration is B times out, the current system time is acquired, and the current system time is recorded as the terminal movement time, indicating that the terminal has movement traces at the current system time point.
实施例3Example 3
图3为根据本申请实施例的终端状态监测流程示意图,下面将参考图3,对本申请实施例的终端状态监测流程进行详细描述。FIG. 3 is a schematic diagram of a terminal state monitoring process according to an embodiment of the present application. Referring to FIG. 3 , the terminal state monitoring process in an embodiment of the present application will be described in detail below.
首先,在步骤301,开始。First, in step 301, start.
本申请实施例中,开始对终端的状态进行监测。In this embodiment of the present application, monitoring of the state of the terminal is started.
在步骤302,每间隔时长E获取当前系统时间和监测到移动的时间点。In step 302, the current system time and the time point at which the movement is monitored are acquired every time interval E.
本申请实施例中,启动间隔时长为E的周期定时器,每间隔一个时长E的周期,获取一次当前系统时间和监测到终端移动的时间,时长E大于0。In the embodiment of the present application, a periodic timer with an interval duration E is started, and the current system time and the time when the terminal movement is monitored are obtained once every period of the duration E, and the duration E is greater than 0.
在步骤303,当前系统时间额监测到移动的时间的差值是否小于时长E。In step 303, whether the difference between the time when the current system time amount monitors the movement is less than the duration E.
本申请实施例中,确定当前系统时间与监测到的终端移动的时间差值是否小于时长E,若确定结果为是,则进入步骤304;若确定结果为否,则进入步骤305。In this embodiment of the present application, it is determined whether the time difference between the current system time and the monitored terminal movement is less than the duration E, and if the determination result is yes, go to step 304; if the determination result is no, go to step 305.
在步骤304,静置次数清零。In step 304, the number of times of standing is reset to zero.
本申请实施例中,如果当前系统时间与监测到的终端移动的时间差值小于时长E,则认为终端是有移动痕迹的,并让静置状态的持续次数F清零,即F=0。In this embodiment of the present application, if the difference between the current system time and the monitored movement time of the terminal is less than the duration E, it is considered that the terminal has movement traces, and the number of continuations F of the stationary state is cleared, that is, F=0.
在步骤305,静置次数加1。In step 305, the number of standstill times is incremented by 1.
本申请实施例中,如果当前系统时间与监测到的终端移动的时间差值大于等于时长E,则认为终端没有移动痕迹,静置次数加1,即静置状态的持续次数F加1。In this embodiment of the present application, if the difference between the current system time and the monitored terminal movement time is greater than or equal to the duration E, it is considered that the terminal has no movement traces, and the number of times of rest is incremented by 1, that is, the number of times F of the stationary state continues to increase by 1.
在步骤306,确定时长E是否大于等于界限时长G。At step 306, it is determined whether the duration E is greater than or equal to the limit duration G.
本申请实施例中,界限时长G为确定终端为静置状态的界限时长,确定时长E是否大于界限时长G,若确定结果为是,则继续确定静置次数;若确定结果为否,则进入步骤308。In the embodiment of the present application, the limit duration G is the limit duration for determining that the terminal is in a stationary state, and it is determined whether the duration E is greater than the limit duration G. If the determination result is yes, continue to determine the number of stationary times; if the determination result is no, enter the Step 308.
在步骤3071,若静置次数为0,则确定终端进入移动状态。In step 3071, if the number of times of standing still is 0, it is determined that the terminal enters the moving state.
本申请实施例中,如果时长E大于等于时长G,且终端静置状态的持续次数F为0,则确定终端为移动状态。In this embodiment of the present application, if the duration E is greater than or equal to the duration G, and the number of continuations F of the stationary state of the terminal is 0, it is determined that the terminal is in the moving state.
在步骤3072,若静置次数的值为大于等于1,则确定终端已经进入静置状态。In step 3072, if the value of the number of times of rest is greater than or equal to 1, it is determined that the terminal has entered the rest state.
本申请实施例中,如果时长E大于等于时长G,且终端静置状态的持续次数F大于等于1,则确定终端为已经进入静置状态。若静置次数的值为0,为移动状态In this embodiment of the present application, if the duration E is greater than or equal to the duration G, and the number of continuations F of the stationary state of the terminal is greater than or equal to 1, it is determined that the terminal has entered the stationary state. If the value of the number of stills is 0, it is in the moving state
在步骤308,静置持续次数是否大于等于ceil((G-E)/E)。In step 308, check whether the number of times of standing still is greater than or equal to ceil((G-E)/E).
本申请实施例中,如果时长E小于时长G,确定静置持续次数F的值是否大于等于ceil((G-E)/E),(ceil(x)指的是大于或等于x的最小整数);若确定结果为是,则进入步骤309;若确定结果为否,则进入步骤310。In the embodiment of the present application, if the duration E is less than the duration G, determine whether the value of the number of times F of standing still is greater than or equal to ceil((G-E)/E), (ceil(x) refers to the smallest integer greater than or equal to x); If the determination result is yes, go to step 309; if the determination result is no, go to step 310.
在步骤309,确定终端已经进入静置状态。In step 309, it is determined that the terminal has entered a rest state.
本申请实施例中,如果时长E小于时长G,并且静置持续次数F的值大于等于ceil((G-E)/E),则确定终端为已经进入静置状态。In this embodiment of the present application, if the duration E is less than the duration G, and the value of the number of times F of the stationary period is greater than or equal to ceil((G-E)/E), it is determined that the terminal has entered the stationary state.
在步骤310,静置次数的值是否大于等于2。In step 310, check whether the value of the number of times of standing is greater than or equal to 2.
本申请实施例中,如果时长E小于时长G,并且静置持续次数F的值小于ceil((G-E)/E),那么确定终端静置持续次数F的值是否大于等于2;若确定结果为否,则进入步骤311;若确定结果为是,则进入步骤312。In this embodiment of the present application, if the duration E is less than the duration G, and the value of the number of times F of standing still is less than ceil((G-E)/E), then it is determined whether the value of the number of times F of terminal standing still is greater than or equal to 2; if the determination result is If no, go to step 311; if the determination result is yes, go to step 312.
在步骤311,确定终端为移动状态。In step 311, it is determined that the terminal is in a mobile state.
本申请实施例中,如果时长E小于时长G,并且静置持续次数F的值小于ceil((G-E)/E),并且终端静置持续次数F的值小于2,则确定终端为移动状态。In the embodiment of the present application, if the duration E is less than the duration G, and the value of the number of times of standing still F is less than ceil((G-E)/E), and the value of the number of times F of the terminal standing still is less than 2, then it is determined that the terminal is in a mobile state.
在步骤312,确定终端为准备进入静置状态。In step 312, it is determined that the terminal is ready to enter a rest state.
本申请实施例中,如果时长E小于时长G,并且静置持续次数F的值小于ceil((G-E)/E),并且终端静置持续次数F的值大于等于2,则确定终端为准备进入静置状态。In this embodiment of the present application, if the duration E is less than the duration G, and the value of the number of times F of standing still is less than ceil((G-E)/E), and the value of the number of times F of terminal standing still is greater than or equal to 2, it is determined that the terminal is ready to enter rest state.
实施例4Example 4
图4为根据本申请实施例的终端功耗控制流程示意图,下面将参考图4,对本申请实施例的终端功耗控制流程进行详细描述。FIG. 4 is a schematic diagram of a terminal power consumption control process according to an embodiment of the present application. Referring to FIG. 4 , the terminal power consumption control process in an embodiment of the present application will be described in detail below.
首先,在步骤401,开始。First, in step 401, start.
本申请实施例中,开始对终端降低功耗进行调整。In the embodiment of the present application, the adjustment to reduce the power consumption of the terminal is started.
在步骤402,获取终端状态确定结果。In step 402, the terminal state determination result is obtained.
本申请实施例中,获取上述终端状态的确定结果。In this embodiment of the present application, the above determination result of the terminal state is obtained.
在步骤403,终端是否已经进入静置状态。In step 403, whether the terminal has entered a stationary state.
本申请实施例中,确定终端是否是已经进入静置状态,若确定结果为是,则进入步骤404;若确定结果为否,则进入步骤405。In this embodiment of the present application, it is determined whether the terminal has entered a stationary state, and if the determination result is yes, then the process goes to step 404 ; if the determination result is no, the process goes to step 405 .
在步骤404,关闭调制解调器。At step 404, the modem is turned off.
本申请实施例中,如果终端是已经进入静置状态,则关闭调制解调器。In this embodiment of the present application, if the terminal has entered a stationary state, the modem is turned off.
在步骤405,终端是否是准备进入静置状态。In step 405, whether the terminal is ready to enter a resting state.
本申请实施例中,如果终端不是已经进入静置状态,则继续确定终端是否准备进入静置状态,若确定结果为是,则进入步骤406;若确定结果为否,则进入步骤407。In the embodiment of the present application, if the terminal is not already in the stationary state, continue to determine whether the terminal is ready to enter the stationary state, if the determination result is yes, go to step 406; if the determination result is no, go to step 407.
在步骤406,休眠调制解调器。At step 406, the modem is hibernated.
本申请实施例中,如果终端是准备进入静置状态,则执行调制解调器休眠操作。In this embodiment of the present application, if the terminal is ready to enter a stationary state, a modem sleep operation is performed.
在步骤407,终端处于移动状态,根据业务需要开启调制解调器。In step 407, the terminal is in a mobile state, and the modem is turned on according to service requirements.
本申请实施例中,如果终端非已经进入静置状态、非准备进入静置状态,则说明终端处于移动状态;终端在移动状态下,可以根据业务实际需要选择是否开启调制解调器。In the embodiment of the present application, if the terminal has not entered the stationary state or is not ready to enter the stationary state, it indicates that the terminal is in a moving state; in the moving state, the terminal may select whether to enable the modem according to the actual needs of the service.
实施例5Example 5
图5为根据本申请实施例的低功耗定位装置结构框架图,下面将参考图5,对本申请实施例的低功耗定位装置结构进行详细描述。FIG. 5 is a structural frame diagram of a low-power positioning device according to an embodiment of the present application. Referring to FIG. 5 , the structure of the low-power positioning device according to the embodiment of the present application will be described in detail below.
本申请实施例中,如图5所示,低功耗定位装置包括:移动监测模块、状态监测模块以及功耗控制模块;In the embodiment of the present application, as shown in FIG. 5 , the low-power positioning device includes: a movement monitoring module, a state monitoring module, and a power consumption control module;
移动监测模块,周期性的间隔采集终端的加速度感应传感器的数据,并根据加速度感应传感器的数据确定终端的动静变化;The mobile monitoring module collects the data of the acceleration sensing sensor of the terminal at periodic intervals, and determines the dynamic and static changes of the terminal according to the data of the acceleration sensing sensor;
状态监测模块,根据移动监测模块确定的终端的动静变化,计算终端在多个连续的周期内终端保持运动状态的次数,进行终端所处状态的确定;The state monitoring module, according to the dynamic and static changes of the terminal determined by the mobile monitoring module, calculates the number of times that the terminal maintains the moving state in a plurality of consecutive cycles, and determines the state of the terminal;
功耗控制模块,根据终端所处状态,进行工作状态的调整。The power consumption control module adjusts the working state according to the state of the terminal.
实施例6Example 6
图6为本申请的一个实施例电子设备的结构示意图,如图6所示,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in FIG. 6 , at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. The memory may include memory, such as high-speed random-access memory (Random-Access Memory, RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic equipment may also include hardware required for other services.
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Component Interconnect) bus. Industry Standard Architecture, extended industry standard structure) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one bidirectional arrow is shown in FIG. 6, but it does not mean that there is only one bus or one type of bus.
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。memory for storing programs. Specifically, the program may include program code, and the program code includes computer operation instructions.
处理器从非易失性存储器中读取对应的计算机程序到存储器中然后运行,在逻辑层面上形成共享资源访问控制装置。处理器,执行存储器所存放的程序,并具体用于执行上述低功耗定位方法的步骤。The processor reads the corresponding computer program from the non-volatile memory into the memory and executes it, forming a shared resource access control device on a logical level. The processor executes the program stored in the memory, and is specifically configured to execute the steps of the above-mentioned low-power-consumption positioning method.
实施例7Example 7
本申请实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或 多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的便携式电子设备执行时,能够使该便携式电子设备执行附图中所示实施例的方法,并具体用于执行上述低功耗定位方法的步骤。Embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs include instructions, and the instructions, when used by a portable electronic device including multiple application programs When executed, the portable electronic device can be made to execute the method of the embodiment shown in the accompanying drawings, and is specifically used to execute the steps of the above-mentioned low-power-consumption positioning method.
本申请实施例的低功耗定位方法,持续性监测设备的的运动状况,并根据终端的运动状态对调制解调器进行不同的功耗节省操作;保证用户正常使用的同时,尽可能的节省功耗,延长续航。The low-power-consumption positioning method of the embodiment of the present application continuously monitors the motion status of the device, and performs different power-saving operations on the modem according to the motion status of the terminal; while ensuring the normal use of the user, the power consumption is saved as much as possible, Extend battery life.
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present application are as above, the described contents are only the embodiments adopted to facilitate the understanding of the present application, and are not intended to limit the present application. Any person skilled in the art to which this application belongs, without departing from the spirit and scope disclosed in this application, can make any modifications and changes in the form and details of the implementation, but the scope of the patent protection of this application still needs to be The scope defined by the appended claims shall prevail.

Claims (10)

  1. 一种低功耗定位方法,包括:A low-power positioning method, comprising:
    根据加速度传感器数据,确定终端的动静变化;Determine the dynamic and static changes of the terminal according to the acceleration sensor data;
    根据所述终端的动静变化,确定其所处的状态;以及Determine the state of the terminal according to the dynamic and static changes of the terminal; and
    根据所述终端所处的状态,控制终端的功耗。The power consumption of the terminal is controlled according to the state of the terminal.
  2. 如权利要求1所述的低功耗定位方法,其中,所述根据加速度传感器数据,确定所述终端的动静变化,还包括:The low-power-consumption positioning method according to claim 1, wherein the determining the dynamic and static changes of the terminal according to the acceleration sensor data further comprises:
    周期性获取所述加速度传感器数据;periodically acquiring the acceleration sensor data;
    所述终端由静止到移动时,启动固定时长定时器;When the terminal changes from stationary to moving, a fixed duration timer is started;
    所述终端由移动到静止时,停止所述固定时长定时器;以及Stop the fixed duration timer when the terminal moves from moving to stationary; and
    其中,所述固定时长定时器的固定时长大于等于获取所述加速度传感器数据的间隔时间。Wherein, the fixed duration of the fixed duration timer is greater than or equal to the interval time for acquiring the acceleration sensor data.
  3. 如权利要求2所述的低功耗定位方法,其中,若所述固定时长定时器运行期间,所述终端未发生由移动到静止的变化时,所述固定时长定时器运行超时后,确定所述终端有移动痕迹,并记录当前的系统时间为设备监测到所述终端移动的时间点。The low-power positioning method according to claim 2, wherein, if the terminal does not change from moving to stationary during the running of the fixed-duration timer, after the running of the fixed-duration timer expires, it is determined that the terminal The terminal has movement traces, and the current system time is recorded as the time when the device monitors the movement of the terminal.
  4. 如权利要求1所述的低功耗定位方法,其中,所述根据所述终端的动静变化,确定其所处的状态,还包括:The low power consumption positioning method according to claim 1, wherein the determining the state of the terminal according to the dynamic and static changes of the terminal further comprises:
    设定周期定时器,对所述终端的状态进行监测;setting a periodic timer to monitor the state of the terminal;
    所述运动状态包括:移动状态、准备进入静置状态和已经进入静置状态;以及The motion states include: a moving state, preparing to enter a resting state, and having entered a resting state; and
    所述周期定时器的间隔时长大于等于所述固定时长定时器的时长。The interval duration of the periodic timer is greater than or equal to the duration of the fixed duration timer.
  5. 如权利要求4所述的低功耗定位方法,还包括:The low-power positioning method of claim 4, further comprising:
    在所述周期定时器一个周期内,若所述当前的系统时间与监测到所述终端移动的时间的差值小于所述周期定时器的间隔时长,则确定所述终端在所述周期定时器一个周期内是移动的,设置所述终端静置持续次数为0;以及Within one period of the periodic timer, if the difference between the current system time and the time when the terminal movement is monitored is less than the interval length of the periodic timer, it is determined that the terminal is in the periodic timer. It is moving within a period, and the number of times the terminal is stationary is set to 0; and
    若所述当前的系统时间与监测到所述终端移动的时间的差值大于等于所述周期定时器的间隔时长,则确定所述终端在所述周期定时器的间隔时长一个周期内是未移动的,并设置所述终端静置持续次数加1。If the difference between the current system time and the time when the movement of the terminal is monitored is greater than or equal to the interval duration of the periodic timer, determine that the terminal has not moved within one period of the interval duration of the periodic timer , and add 1 to the number of times that the terminal has been standing still.
  6. 如权利要求5所述的低功耗定位方法,还包括:The low-power positioning method of claim 5, further comprising:
    若所述周期定时器的间隔时长大于等于预设的已经进入静置状态的界限时长,且当所述终端静置持续次数大于等于1时,确定所述终端为已经进入静置状态;If the interval duration of the periodic timer is greater than or equal to the preset limit duration of having entered the stationary state, and when the number of times the terminal has been stationary is greater than or equal to 1, it is determined that the terminal has entered the stationary state;
    若所述周期定时器的间隔时长大于等于预设的已经进入静置状态的界限时长,且当所述终端静置持续次数等于0时,确定所述终端为移动状态;If the interval duration of the periodic timer is greater than or equal to the preset limit duration that has entered the stationary state, and when the number of times the terminal has been stationary is equal to 0, it is determined that the terminal is in the mobile state;
    若所述周期定时器的间隔时长小于预设的已经进入静置状态的界限时长,且所述终端静置持续次数大于等于ceil((G-E)/E)时,确定所述终端为已经进入静置状态;If the interval duration of the periodic timer is less than the preset limit duration of having entered the stationary state, and the number of times the terminal has been stationary is greater than or equal to ceil((G-E)/E), it is determined that the terminal has entered the stationary state set state;
    若所述周期定时器的间隔时长小于预设的已经进入静置状态的界限时长,所述终端静置持续次数小于ceil((G-E)/E)时,且所述终端静置持续次数大于等于2时,确定所述终端为准备进入静置状态;If the interval duration of the periodic timer is less than the preset limit duration of having entered the stationary state, the number of times the terminal is stationary is less than ceil((G-E)/E), and the number of times the terminal is stationary is greater than or equal to 2, it is determined that the terminal is ready to enter a resting state;
    所述终端为非所述已经入静置状态且非所述准备进入静置状态时,确定所述终端为移动状态;以及When the terminal is not in the stationary state and is not in the stationary state, determining that the terminal is in the moving state; and
    所述ceil((G-E)/E)为大于等于(G-E)/E的最小整数,其中,E为周期定时器的间隔时长,G为预设的已经进入静置状态的界限时长。The ceil((G-E)/E) is the smallest integer greater than or equal to (G-E)/E, where E is the interval duration of the periodic timer, and G is the preset limit duration that has entered the resting state.
  7. 如权利要求1所述的低功耗定位方法,其中,所述根据所述终端所处的状态,控制终端的功耗,还包括:The low power consumption positioning method according to claim 1, wherein the controlling the power consumption of the terminal according to the state of the terminal further comprises:
    当所述终端为准备进入静置状态时,设置调制解调器休眠;When the terminal is ready to enter a resting state, setting the modem to sleep;
    当所述终端为已经进入静置状态时,关闭调制解调器;以及turning off the modem when the terminal is in a quiescent state; and
    当所述终端为移动状态时,设置调制解调器开启。When the terminal is in a mobile state, the modem is set to be turned on.
  8. 一种低功耗定位装置,包括移动监测模块、状态监测模块以及功耗控制模块;其中,A low power consumption positioning device, comprising a movement monitoring module, a state monitoring module and a power consumption control module; wherein,
    所述移动监测模块,被配置为周期性的间隔采集终端的加速度感应传感器的数据,并根据所述加速度感应传感器的数据确定所述终端的动静变化;The movement monitoring module is configured to periodically collect data of the acceleration sensing sensor of the terminal, and determine the dynamic and static changes of the terminal according to the data of the acceleration sensing sensor;
    所述状态监测模块,被配置为根据所述移动监测模块确定的所述终端的动静变化,计算所述终端在多个连续的周期内所述终端保持运动状态的次数,进行所述终端所处状态的确定;以及The state monitoring module is configured to calculate the number of times that the terminal maintains a moving state in a plurality of consecutive cycles according to the dynamic and static changes of the terminal determined by the movement monitoring module, and perform the location where the terminal is located. determination of status; and
    所述功耗控制模块,被配置为根据所述终端所处状态,进行工作状态的调整。The power consumption control module is configured to adjust the working state according to the state of the terminal.
  9. 一种电子设备,包括处理器以及存储器,其中所述存储器被配置为存储计算机可执行指令,所述可执行指令在被所述处理执行时,使得所述处理器执行如权利要求1-7任一项所述低功耗定位方法的步骤。An electronic device comprising a processor and a memory, wherein the memory is configured to store computer-executable instructions that, when executed by the process, cause the processor to perform any of claims 1-7. A step of the low-power positioning method.
  10. 一种计算机可读存储介质,存储有一个或多个程序,其中所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行如权利要求1-7任一项所述低功耗定位方法的步骤。A computer-readable storage medium storing one or more programs, wherein the one or more programs, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform any one of claims 1-7. A step of the low-power positioning method.
PCT/CN2021/127054 2020-12-02 2021-10-28 Low-power-consumption positioning method and apparatus, and electronic device WO2022116754A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011412746.5 2020-12-02
CN202011412746.5A CN114578396A (en) 2020-12-02 2020-12-02 Low-power-consumption positioning method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022116754A1 true WO2022116754A1 (en) 2022-06-09

Family

ID=81769416

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/127054 WO2022116754A1 (en) 2020-12-02 2021-10-28 Low-power-consumption positioning method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN114578396A (en)
WO (1) WO2022116754A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100328154A1 (en) * 2009-06-29 2010-12-30 Research In Motion Limited Controlling a gps receiver by detecting motion based on radiofrequency signal traces
CN102565824A (en) * 2010-12-24 2012-07-11 深圳市赛格导航科技股份有限公司 GPS (Global Positioning System) equipment and power supply management method thereof
CN102938925A (en) * 2011-08-15 2013-02-20 张晨 Energy consumption control method and device and mobile terminal device
CN106019330A (en) * 2016-05-18 2016-10-12 Tcl移动通信科技(宁波)有限公司 GPS energy-saving control method and system based on mobile terminal
US20170242131A1 (en) * 2012-04-13 2017-08-24 Avago Technologies General Ip (Singapore) Pte. Ltd. Apparatus and method to conserve power in a portable gnss unit
CN107741595A (en) * 2017-11-14 2018-02-27 北京东方联星科技有限公司 The apparatus and method that mobile satellite location equipment power consumption is reduced using Inertial Measurement Unit
CN108169775A (en) * 2017-12-13 2018-06-15 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100328154A1 (en) * 2009-06-29 2010-12-30 Research In Motion Limited Controlling a gps receiver by detecting motion based on radiofrequency signal traces
CN102565824A (en) * 2010-12-24 2012-07-11 深圳市赛格导航科技股份有限公司 GPS (Global Positioning System) equipment and power supply management method thereof
CN102938925A (en) * 2011-08-15 2013-02-20 张晨 Energy consumption control method and device and mobile terminal device
US20170242131A1 (en) * 2012-04-13 2017-08-24 Avago Technologies General Ip (Singapore) Pte. Ltd. Apparatus and method to conserve power in a portable gnss unit
CN106019330A (en) * 2016-05-18 2016-10-12 Tcl移动通信科技(宁波)有限公司 GPS energy-saving control method and system based on mobile terminal
CN107741595A (en) * 2017-11-14 2018-02-27 北京东方联星科技有限公司 The apparatus and method that mobile satellite location equipment power consumption is reduced using Inertial Measurement Unit
CN108169775A (en) * 2017-12-13 2018-06-15 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module

Also Published As

Publication number Publication date
CN114578396A (en) 2022-06-03

Similar Documents

Publication Publication Date Title
US9970966B2 (en) Method, device and computer storage medium for detecting power consumption of an application
CN104424031B (en) Method and device for controlling working frequency of processor
CN106557135B (en) processor temperature regulation and control method and device
JP2009530709A5 (en)
US20080307248A1 (en) Cpu Clock Control Device, Cpu Clock Control Method, Cpu Clock Control Program, Recording Medium, and Transmission Medium
US9930618B2 (en) Apparatus and method for controlling operation mode in a wireless terminal
CN101598969A (en) Platform power management based on latency guidance
KR101941761B1 (en) Method, device and mobile terminal for reducing power consumption
CN104239079A (en) Electronic device operating system automatic awakening method and system
WO2017101362A1 (en) Method and system for managing and controlling power consumption of intelligent terminal
CN104714620A (en) Method and device for adjusting wakeup frequency of intelligent terminal
CN110704274A (en) Temperature control method, device and equipment for solid state disk
CN103108039A (en) Service quality guarantee method in low-energy cluster environment
WO2022116754A1 (en) Low-power-consumption positioning method and apparatus, and electronic device
CN114257474B (en) Power utilization control method and device for intelligent gateway, computer equipment and storage medium
CN106332247A (en) Method and system for automatically closing background redundant applications based on mobile terminal
CN113393595A (en) Vehicle monitoring method, vehicle-mounted terminal and computer-readable storage medium
CN109933419B (en) Control method and device
WO2015154562A1 (en) Method and device for reducing energy consumption of central processing unit, terminal and computer storage medium
CN115589628A (en) Method and device for reducing equipment power consumption and electronic equipment
CN114327023A (en) Energy-saving method and system for Kubernetes cluster, computer medium and electronic equipment
CN108430098B (en) Wireless communication terminal and power saving method thereof
CN112366812A (en) Energy-saving mode control method and device of uninterruptible power supply
JP7299517B2 (en) Apparatus, method and system
TW201220037A (en) Electronic device and power control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21899788

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21899788

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02/11/2023)