[go: up one dir, main page]

CN106681619A - Method and device for controlling energy consumption of electronic equipment - Google Patents

Method and device for controlling energy consumption of electronic equipment Download PDF

Info

Publication number
CN106681619A
CN106681619A CN201510745522.9A CN201510745522A CN106681619A CN 106681619 A CN106681619 A CN 106681619A CN 201510745522 A CN201510745522 A CN 201510745522A CN 106681619 A CN106681619 A CN 106681619A
Authority
CN
China
Prior art keywords
exercise
amount
time period
user
period
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201510745522.9A
Other languages
Chinese (zh)
Other versions
CN106681619B (en
Inventor
姚振杰
吴寒潇
张志鹏
许利群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510745522.9A priority Critical patent/CN106681619B/en
Publication of CN106681619A publication Critical patent/CN106681619A/en
Application granted granted Critical
Publication of CN106681619B publication Critical patent/CN106681619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

本发明公开了一种控制电子设备的能耗的方法及装置,其方法包括:获取用户的历史运动数据;根据历史运动数据,确定得到用户的运动规律;根据运动规律,调整对应时间段的电子设备的休眠时间。本发明通过获取用户的历史运动数据,并根据该历史运动数据得到用户的运动规律,根据运动规律动态调整不同时间段下电子设备的休眠时间,以在保证计步准确的前提下,降低电子设备的能耗。

The invention discloses a method and device for controlling energy consumption of electronic equipment. The method comprises: obtaining historical motion data of a user; determining the user's motion law according to the historical motion data; The sleep time of the device. The present invention obtains the user's historical motion data, and obtains the user's motion law according to the historical motion data, and dynamically adjusts the sleep time of the electronic device in different time periods according to the motion law, so as to reduce the electronic device's electronic device speed while ensuring the accuracy of step counting. energy consumption.

Description

一种控制电子设备的能耗的方法及装置Method and device for controlling energy consumption of electronic equipment

技术领域technical field

本发明涉及智能终端领域,尤其涉及一种控制电子设备的能耗的方法及装置。The present invention relates to the field of intelligent terminals, in particular to a method and device for controlling energy consumption of electronic equipment.

背景技术Background technique

随着智能终端的不断普及和发展,电子设备上配置了多种传感器。目前市面上有很多具备计步功能的电子设备,以满足用户的计步要求。通过电子设备进行计步,需要持续访问电子设备的内置传感器,这就需要电子设备的系统持续保持唤醒状态,因此电子设备的能耗较高。With the continuous popularization and development of smart terminals, various sensors are configured on electronic devices. At present, there are many electronic devices with step counting function on the market to meet the step counting requirements of users. Step counting by an electronic device requires continuous access to the built-in sensor of the electronic device, which requires the system of the electronic device to be continuously awake, so the energy consumption of the electronic device is relatively high.

现有技术中常采用设定一固定休眠时间的方式来降低能耗,即当检测到用户一段时间内未发生运动动作时,进入休眠状态,但是,在休眠状态下检测到用户发生运动动作时,可能会漏记一定步数,如图1所示,休眠时间越长,漏记步数越多,计步的准确性就越低,若休眠时间越短,则电子设备的能耗就越高。In the prior art, a method of setting a fixed sleep time is often used to reduce energy consumption, that is, when it is detected that the user has not moved for a period of time, it enters the sleep state. However, when the user detects that the user has moved in the sleep state, A certain number of steps may be missed, as shown in Figure 1, the longer the sleep time, the more steps missed, the lower the accuracy of step counting, and the shorter the sleep time, the higher the energy consumption of electronic equipment .

发明内容Contents of the invention

为了解决上述技术问题,本发明提供了一种控制电子设备的能耗的方法及装置,解决了现有技术中保证计步准确性的前提下电子设备能耗高的问题。In order to solve the above technical problems, the present invention provides a method and device for controlling the energy consumption of electronic equipment, which solves the problem of high energy consumption of electronic equipment in the prior art under the premise of ensuring the accuracy of step counting.

依据本发明的一个方面,提供了一种控制电子设备的能耗的方法,该方法包括:According to one aspect of the present invention, a method for controlling energy consumption of an electronic device is provided, the method comprising:

获取用户的历史运动数据,历史运动数据至少包括:运动时间段和与运动时间段对应的运动量;Obtain the user's historical exercise data, which at least includes: exercise time period and exercise amount corresponding to the exercise time period;

根据历史运动数据,确定得到用户的运动规律,运动规律用于表示用户在不同时间段下对应运动量;According to the historical exercise data, the user's exercise law is determined, and the exercise law is used to indicate the corresponding amount of exercise of the user in different time periods;

根据运动规律,调整对应时间段的电子设备的休眠时间。According to the law of movement, the sleep time of the electronic device in the corresponding time period is adjusted.

其中,获取用户的历史运动数据,具体包括:Among them, the user's historical exercise data is obtained, including:

获取记录有用户前N个统计周期内的运动时间段和对应运动量的历史运动数据;其中,N为正整数。Acquire historical exercise data that records the user's exercise time period and corresponding exercise amount in the previous N statistical periods; where N is a positive integer.

其中,获取用户的历史运动数据,具体包括:Among them, the user's historical exercise data is obtained, including:

获取用户前N个统计周期内的运动时间段与对应的运动量;Obtain the user's exercise time period and corresponding exercise amount in the first N statistical periods;

根据运动时间和对应的运动量,计算用户在不同时间段的运动量分布情况;According to the exercise time and the corresponding exercise amount, calculate the user's exercise amount distribution in different time periods;

根据运动量分布情况,得到用户的历史运动数据。According to the distribution of the amount of exercise, the user's historical exercise data is obtained.

其中,根据历史运动数据,通过以下公式确定得到用户的运动规律:Among them, according to the historical exercise data, the user's exercise law is determined by the following formula:

rn+1=(1-α)*rn+α*dn;0<n≤N,且n为正整数;r n+1 =(1-α)*r n +α*d n ; 0<n≤N, and n is a positive integer;

其中,rn+1表示当前统计周期内不同时间段下的预测运动量,α表示权重衰减因子,rn表示前N-n个统计周期内不同时间段下的运动量统计值,dn表示前N-n个统计周期内的运动量分布情况。Among them, r n+1 represents the predicted exercise amount in different time periods in the current statistical cycle, α represents the weight attenuation factor, r n represents the statistical value of exercise amount in different time periods in the previous Nn statistical cycles, and d n represents the previous Nn statistics The distribution of exercise in the cycle.

其中,根据运动规律,调整对应时间段的电子设备的休眠时间,具体包括:Among them, according to the law of motion, the sleep time of the electronic device in the corresponding time period is adjusted, specifically including:

根据预测运动量与休眠时间的关系,调整对应时间段的休眠时间;According to the relationship between the predicted amount of exercise and the sleep time, adjust the sleep time of the corresponding time period;

其中,预测运动量与休眠时间呈反比关系。Among them, the predicted amount of exercise is inversely proportional to the sleep time.

其中,根据历史运动数据,确定得到用户的运动规律,具体包括:Among them, according to the historical exercise data, the user's exercise law is determined, specifically including:

获取历史数据中记录的前N个统计周期内同一时间段下对应的运动量,并对其计算平均值,得到第一运动量;Obtain the corresponding amount of exercise in the same time period in the first N statistical periods recorded in the historical data, and calculate the average value of it to obtain the first amount of exercise;

当第一运动量超过第一预设阈值时,确定该时间段为运动密集期;When the first amount of exercise exceeds the first preset threshold, it is determined that the time period is an exercise-intensive period;

当第一运动量低于第二预设阈值时,确定该时间段为运动稀发期;其中,第一预设阈值高于第二预设阈值;When the first amount of exercise is lower than the second preset threshold, it is determined that the time period is an exercise-sparse period; wherein, the first preset threshold is higher than the second preset threshold;

当第一运动量处于第一预设阈值和第二预设阈值之间时,确定该时间段为普通运动期。When the first exercise amount is between the first preset threshold and the second preset threshold, it is determined that the time period is a normal exercise period.

其中,根据运动规律,调整对应时间段的电子设备的休眠时间,具体包括:Among them, according to the law of motion, the sleep time of the electronic device in the corresponding time period is adjusted, specifically including:

当对应时间段为运动密集期时,确定对应时间段的休眠时间为第一时长;When the corresponding time period is an exercise-intensive period, it is determined that the dormancy time of the corresponding time period is the first duration;

当对应时间段为运动稀发期时,确定对应时间段的休眠时间为第二时长;When the corresponding time period is the exercise-sparse period, it is determined that the dormancy time of the corresponding time period is the second duration;

当对应时间段为普通运动期时,确定对应时间段的休眠时间为第三时长;When the corresponding time period is the normal exercise period, determine that the sleep time of the corresponding time period is the third duration;

其中,第一时长小于第三时长,第三时长小于第二时长。Wherein, the first duration is shorter than the third duration, and the third duration is shorter than the second duration.

其中,根据运动规律,调整对应时间段的电子设备的休眠时间之后,还包括:Among them, after adjusting the sleep time of the electronic device in the corresponding time period according to the law of motion, it also includes:

当对应时间段的休眠时间到期后,检测用户是否发生运动动作;When the sleep time of the corresponding time period expires, detect whether the user has exercised;

若发生,则结束休眠状态,启动计步进程;If it happens, end the dormant state and start the step counting process;

若未发生,则启动下一时间段对应的休眠时间。If not, start the sleep time corresponding to the next time period.

依据本发明的另一个方面,还提供了一种控制电子设备的能耗的装置,该装置包括:According to another aspect of the present invention, a device for controlling energy consumption of electronic equipment is also provided, the device comprising:

获取模块,用于获取用户的历史运动数据,历史运动数据至少包括:运动时间段和与运动时间段对应的运动量;An acquisition module, configured to acquire the user's historical exercise data, the historical exercise data at least including: exercise time period and exercise amount corresponding to the exercise time period;

第一处理模块,用于根据历史运动数据,确定得到用户的运动规律,运动规律用户表示用户在不同时间段下对应运动量;The first processing module is used to determine and obtain the user's exercise law according to the historical exercise data, and the exercise law user indicates that the user corresponds to the amount of exercise in different time periods;

调整模块,用于根据运动规律,调整对应时间段的电子设备的休眠时间。The adjustment module is used to adjust the sleep time of the electronic equipment in the corresponding time period according to the motion rule.

其中,获取模块具体包括:Among them, the acquisition module specifically includes:

第一获取单元,用于获取记录有用户前N个统计周期内的运动时间段和对应运动量的历史运动数据;其中,N为正整数。The first acquisition unit is configured to acquire historical exercise data recorded with the user's exercise time period and corresponding exercise amount in the previous N statistical periods; wherein, N is a positive integer.

其中,获取模块具体包括:Among them, the acquisition module specifically includes:

第二获取单元,用于获取用户前N个统计周期内的运动时间段与对应的运动量;The second acquisition unit is used to acquire the user's exercise time period and corresponding exercise amount in the first N statistical periods;

计算单元,用于根据运动时间和对应的运动量,计算用户在不同时间段的运动量分布情况;A calculation unit, configured to calculate the distribution of the user's exercise amount in different time periods according to the exercise time and the corresponding amount of exercise;

确定单元,用于根据运动量分布情况,得到用户的历史运动数据。The determining unit is configured to obtain the historical exercise data of the user according to the distribution of the amount of exercise.

其中,根据历史运动数据,通过以下公式确定得到用户的运动规律:Among them, according to the historical exercise data, the user's exercise law is determined by the following formula:

rn+1=(1-α)*rn+α*dn;0<n≤N,且n为正整数;r n+1 =(1-α)*r n +α*d n ; 0<n≤N, and n is a positive integer;

其中,rn+1表示当前统计周期内不同时间段下的预测运动量,α表示权重衰减因子,rn表示前N-n个统计周期内不同时间段下的运动量统计值,dn表示前N-n个统计周期内的运动量分布情况。Among them, r n+1 represents the predicted exercise amount in different time periods in the current statistical cycle, α represents the weight attenuation factor, r n represents the statistical value of exercise amount in different time periods in the previous Nn statistical cycles, and d n represents the previous Nn statistics The distribution of exercise in the cycle.

其中,调整模块具体包括:Among them, the adjustment module specifically includes:

第一调整单元,用于根据预测运动量与休眠时间的关系,调整对应时间段的休眠时间;The first adjustment unit is used to adjust the sleep time of the corresponding time period according to the relationship between the predicted amount of exercise and the sleep time;

其中,预测运动量与休眠时间呈反比关系。Among them, the predicted amount of exercise is inversely proportional to the sleep time.

其中,第一处理模块具体包括:Wherein, the first processing module specifically includes:

第三获取单元,用于获取历史数据中记录的前N个统计周期内同一时间段下对应的运动量,并对其计算平均值,得到第一运动量;The third acquisition unit is used to acquire the corresponding exercise amount in the same time period in the first N statistical periods recorded in the historical data, and calculate the average value thereof to obtain the first exercise amount;

第一处理单元,用于当第一运动量超过第一预设阈值时,确定该时间段为运动密集期;A first processing unit, configured to determine that the time period is an exercise-intensive period when the first amount of exercise exceeds a first preset threshold;

第二处理单元,用于当第一运动量低于第二预设阈值时,确定该时间段为运动稀发期;其中,第一预设阈值高于第二预设阈值;The second processing unit is configured to determine that the period of time is an exercise-sparse period when the first amount of exercise is lower than a second preset threshold; wherein, the first preset threshold is higher than the second preset threshold;

第三处理单元,用于当第一运动量处于第一预设阈值和第二预设阈值之间时,确定该时间段为普通运动期。The third processing unit is configured to determine that the time period is a normal exercise period when the first exercise amount is between the first preset threshold and the second preset threshold.

其中,调整模块包括:Among them, the adjustment module includes:

第二调整单元,用于当对应时间段为运动密集期时,确定对应时间段的休眠时间为第一时长;The second adjustment unit is used to determine that the sleep time of the corresponding time period is the first duration when the corresponding time period is an exercise-intensive period;

第三调整单元,用于当对应时间段为运动稀发期时,确定对应时间段的休眠时间为第二时长;The third adjustment unit is used to determine that the dormancy time of the corresponding time period is the second duration when the corresponding time period is the exercise-sparse period;

第四调整单元,用于当对应时间段为普通运动期时,确定对应时间段的休眠时间为第三时长;The fourth adjustment unit is used to determine that the sleep time of the corresponding time period is the third duration when the corresponding time period is a normal exercise period;

其中,第一时长小于第三时长,第三时长小于第二时长。Wherein, the first duration is shorter than the third duration, and the third duration is shorter than the second duration.

其中,该装置还包括:Among them, the device also includes:

检测模块,用于当对应时间段的休眠时间到期后,检测用户是否发生运动动作;The detection module is used to detect whether the user takes an exercise action when the sleep time of the corresponding time period expires;

启动模块,用于当检测到用户发生运动动作时,结束休眠状态,启动计步进程;The startup module is used to end the dormant state and start the step counting process when the motion of the user is detected;

第二处理模块,用于当检测到用户未发生运动动作时,启动下一时间段对应的休眠时间;当检测到对应时间段的休眠时间未到期时,保持休眠状态。The second processing module is configured to start the sleep time corresponding to the next time period when it is detected that the user does not take any motion; and maintain the sleep state when it is detected that the sleep time of the corresponding time period has not expired.

本发明的实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:

通过获取用户的历史运动数据,并根据该历史运动数据得到用户的运动规律,根据运动规律动态调整不同时间段下电子设备的休眠时间,以在保证计步准确的前提下,降低电子设备的能耗。By obtaining the user's historical exercise data, and according to the historical exercise data to obtain the user's exercise law, dynamically adjust the sleep time of the electronic device in different time periods according to the exercise law, so as to reduce the performance of the electronic device on the premise of ensuring accurate step counting. consumption.

附图说明Description of drawings

图1表示现有技术中用户运动与系统休眠示意图;FIG. 1 shows a schematic diagram of user movement and system sleep in the prior art;

图2表示本发明第一实施例中控制电子设备的能耗的方法的流程图;Fig. 2 shows the flow chart of the method for controlling the energy consumption of electronic equipment in the first embodiment of the present invention;

图3表示用户不同时间段内运动量的统计分布图;Fig. 3 shows the statistical distribution diagram of the amount of exercise of the user in different time periods;

图4表示本发明第二实施例中控制电子设备的能耗的方法的流程图;FIG. 4 shows a flowchart of a method for controlling energy consumption of an electronic device in a second embodiment of the present invention;

图5表示权重衰减因子取值的衰减示意图;Fig. 5 shows the attenuation schematic diagram of the value of the weight attenuation factor;

图6表示本发明第三实施例中控制电子设备的能耗的方法的流程图;FIG. 6 shows a flowchart of a method for controlling energy consumption of an electronic device in a third embodiment of the present invention;

图7表示本发明第四实施例中控制电子设备的能耗的方法的流程图;FIG. 7 shows a flowchart of a method for controlling energy consumption of an electronic device in a fourth embodiment of the present invention;

图8表示本发明第五实施例中控制电子设备的能耗的装置的模块示意图。FIG. 8 is a block diagram of an apparatus for controlling energy consumption of electronic equipment in a fifth embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

第一实施例first embodiment

如图2所示,本发明的第一实施例提供了一种控制电子设备的能耗的方法,具体包括以下步骤:As shown in FIG. 2, the first embodiment of the present invention provides a method for controlling the energy consumption of an electronic device, which specifically includes the following steps:

步骤S201:获取用户的历史运动数据。Step S201: Obtain the user's historical exercise data.

这里所说的历史运动数据至少包括:运动时间段和运动时间段对应的运动量。也就是说用户的历史运动数据指的是用户在某一时间段下的运动量,且运动量与运动时间段相互对应。The historical exercise data mentioned here at least includes: exercise time period and exercise amount corresponding to the exercise time period. That is to say, the user's historical exercise data refers to the user's exercise amount in a certain time period, and the exercise amount and the exercise time period correspond to each other.

步骤S202:根据历史运动数据,确定得到用户的运动规律。Step S202: According to the historical exercise data, determine the user's exercise law.

由于用户运动具有很强的周期性和规律性,例如:有人喜欢在早上运动,有人喜欢在晚上运动,而大多数上班族的在早晚通勤和中午午餐时段的运动量或活动量比较大;而对于同一个用户每天的活动或运动时间基本一致,故可根据获取到的用户的历史运动数据,计算或学习该用户的运动规律。这里,运动规律用于表示用户在不同时间段下对应的运动量,这样即可知道用户在什么时间段运动量大,什么时间段运动量小。如图3所示,上方曲线表示该用户每天不同运动时间段对应的运动量的实际统计值,下方曲线表示总结的用户运动规律,该曲线表明该用户在9点、11点到12点、13点、19点到21点等时间段的活动比较密集,在20点左右会持续运动较长时间。Due to the strong periodicity and regularity of user movement, for example: some people like to exercise in the morning, some people like to exercise in the evening, and most office workers have a relatively large amount of exercise or activity during morning and evening commuting and lunchtime at noon; and for The same user's daily activity or exercise time is basically the same, so the user's exercise law can be calculated or learned according to the obtained user's historical exercise data. Here, the exercise law is used to represent the corresponding amount of exercise of the user in different time periods, so that it can be known in which time period the user has a large amount of exercise and in which time period the user has a small amount of exercise. As shown in Figure 3, the upper curve represents the actual statistical value of the user's exercise volume corresponding to different exercise time periods every day, and the lower curve represents the summarized user's exercise law. 1. The activities during the time period from 19:00 to 21:00 are relatively intensive, and the exercise will continue for a long time around 20:00.

步骤S203:根据运动规律,调整对应时间段的电子设备的休眠时间。Step S203: According to the law of motion, adjust the sleep time of the electronic device in the corresponding time period.

为了保证计步的准确性,需要在用户频繁运动的时间段休眠时间短,以减少漏记运动量,提高计步的准确性。一般地,在用户运动强度高的时间段,将休眠时间调短一些,在用户运动强度低的时间段,将休眠时间调长一些,以达到节省能耗的目的。In order to ensure the accuracy of step counting, the sleep time needs to be short during the time period when the user is frequently exercising, so as to reduce the amount of missed exercise and improve the accuracy of step counting. Generally, the sleep time is shortened when the user's exercise intensity is high, and the sleep time is lengthened during the time period when the user's exercise intensity is low, so as to save energy consumption.

第二实施例second embodiment

以上第一实施例简单介绍了控制电子设备的能耗的方法,下面本实施例将结合具体应用场景,对该方法进行进一步地详细介绍。The above first embodiment briefly introduces the method for controlling the energy consumption of the electronic device, and the following embodiment will further introduce the method in detail in combination with specific application scenarios.

具体地,如图4所示,该方法包括以下步骤:Specifically, as shown in Figure 4, the method includes the following steps:

步骤S401:获取记录有用户前N个统计周期内的运动时间段和对应运动量的历史运动数据。Step S401: Obtain historical exercise data that records the user's exercise time period and corresponding exercise amount in the previous N statistical periods.

其中,N为正整数。这里所说的统计周期指的是统计历史运动数据相应的时间范围,但具体统计周期的时长并不做限制,例如统计周期可以是若干分钟、若干小时、一天、一周或一个月,具体可根据需求选择。例如,以1分钟前的运动量预测下1分钟的运动量,也可以以周为单位进行预测,比如最近几个周三的运动量预测本周三的运动量。Wherein, N is a positive integer. The statistical cycle mentioned here refers to the time range corresponding to the statistics of historical sports data, but there is no limit to the length of the specific statistical cycle. For example, the statistical cycle can be several minutes, several hours, one day, one week or one month. Demand selection. For example, the exercise amount of the next minute can be predicted based on the amount of exercise one minute ago, and can also be predicted on a weekly basis. For example, the amount of exercise in the last few Wednesdays can be used to predict the amount of exercise for this Wednesday.

具体地,步骤S401可参照以下步骤实现:Specifically, step S401 can be implemented with reference to the following steps:

获取用户前N个统计周期内的运动时间段与对应的运动量。Obtain the user's exercise time period and corresponding exercise amount in the previous N statistical periods.

其中,N为正整数。为了保证数据的可靠性和规律性,优选地采集前N个统计周期内用户运动时间段和对应的运动量。Wherein, N is a positive integer. In order to ensure the reliability and regularity of the data, it is preferable to collect the user's exercise time period and corresponding exercise amount in the first N statistical periods.

根据运动时间和对应的运动量,计算用户在不同时间段的运动量分布情况。According to the exercise time and the corresponding amount of exercise, the user's exercise amount distribution in different time periods is calculated.

以一个统计周期为一天为例进行说明,即采集用户前N天的运动时间段和对应的运动量。将每天的24小时分段,依次获取前N天中各个运动时间段所对应的运动量,这样即可得到每天不同时间段的运动量分布情况。Take one statistical period as one day as an example for illustration, that is, collect the user's exercise time period and corresponding exercise amount in the previous N days. Divide the 24 hours of each day into segments, and sequentially obtain the exercise volume corresponding to each exercise time period in the previous N days, so that the distribution of exercise volume in different time periods every day can be obtained.

根据运动量分布情况,得到用户的历史运动数据。意思是说,可将对应的运动量分布情况作为用户的历史运动数据。According to the distribution of the amount of exercise, the user's historical exercise data is obtained. That is to say, the corresponding exercise amount distribution can be used as the user's historical exercise data.

步骤S402:根据历史运动数据,确定得到用户的运动规律。Step S402: According to the historical exercise data, determine the user's exercise law.

根据运动量分布情况,可以了解到该用户在某个时间段的运动量,进而得到用户的运动规律。According to the distribution of the amount of exercise, the amount of exercise of the user in a certain period of time can be known, and then the law of the user's exercise can be obtained.

具体地,确定用户运动规律可参照以下公式计算得到:Specifically, the determination of the user's motion law can be calculated by referring to the following formula:

rn+1=(1-α)*rn+α*dn;0<n≤N,且n为正整数;r n+1 =(1-α)*r n +α*d n ; 0<n≤N, and n is a positive integer;

其中,rn+1表示当前统计周期内不同时间段下的预测运动量,α表示权重衰减因子,rn表示前N-n个统计周期内不同时间段下的运动量统计值,dn表示前N-n个统计周期内的运动量分布情况。以一个统计周期为一天为例,rn+1表示当天不同时间段下的预测运动量,rn表示前N-n天不同时间段下的运动量统计值,dn表示前N-n天运动量分布情况。其中,α表示权重衰减因子,即距离当天越近的一天,预测权重越大,之前的数据权重逐天减小,权重衰减因子的具体取值,可参照如图5所示的衰减示意图确定,例如,当天前一天的α=0.6。值得指出的是,该权重衰减因子的取值规律亦可适用于统计周期为其他时长的情况。Among them, r n+1 represents the predicted exercise amount in different time periods in the current statistical cycle, α represents the weight attenuation factor, r n represents the statistical value of exercise amount in different time periods in the previous Nn statistical cycles, and d n represents the previous Nn statistics The distribution of exercise in the cycle. Taking a statistical cycle as one day as an example, r n+1 represents the predicted exercise volume in different time periods of the day, r n represents the statistical value of exercise volume in different time periods of the previous Nn days, and d n represents the distribution of exercise volume in the previous Nn days. Among them, α represents the weight attenuation factor, that is, the closer the day is to the current day, the greater the forecast weight, and the weight of the previous data decreases day by day. The specific value of the weight attenuation factor can be determined by referring to the attenuation schematic diagram shown in Figure 5. For example, α=0.6 for the day before today. It is worth pointing out that the value rule of the weight attenuation factor can also be applied to the case where the statistical period is other time lengths.

步骤S403:根据预测运动量与休眠时间的关系,调整对应时间段的休眠时间。Step S403: According to the relationship between the predicted amount of exercise and the sleep time, adjust the sleep time of the corresponding time period.

其中,预测运动量与休眠时间呈反比关系,即 Among them, the predicted exercise amount is inversely proportional to the sleep time, that is,

其中,s表示当前统计周期内不同时间段下的休眠时间,当rn+1的值越大,对应的s值越小,即预测运动量越高,对应的休眠时间越短,反之,预测运动量越低,对应的休眠时间越长。Among them, s represents the sleep time under different time periods in the current statistical cycle. When the value of r n+1 is larger, the corresponding s value is smaller, that is, the higher the predicted exercise amount, the shorter the corresponding sleep time. Conversely, the predicted exercise amount The lower the value, the longer the corresponding sleep time.

综上,通过获取用户的历史运动数据,并根据该历史运动数据得到用户的运动规律,根据运动规律动态调整不同时间段下电子设备的休眠时间,以在保证计步准确的前提下,降低电子设备的能耗。To sum up, by obtaining the user's historical exercise data and obtaining the user's exercise law according to the historical exercise data, the sleep time of the electronic device in different time periods is dynamically adjusted according to the exercise law, so as to reduce the electronic load while ensuring the accuracy of step counting. The energy consumption of the equipment.

第三实施例third embodiment

以上第二实施例在第一实施例的基础上更加详细介绍了控制电子设备的能耗的方法的具体实现方案,下面本实施例将介绍该方法的另外一种实现方式。On the basis of the first embodiment, the above second embodiment introduces in more detail the specific implementation scheme of the method for controlling the energy consumption of the electronic device. The following embodiment will introduce another implementation manner of the method.

具体地,如图6所示,该方法包括以下步骤:Specifically, as shown in Figure 6, the method includes the following steps:

步骤S601:获取记录有用户前N个统计周期内的运动时间段和对应运动量的历史运动数据。Step S601: Obtain historical exercise data recording the user's exercise time period and corresponding exercise amount in the previous N statistical periods.

其中,N为正整数。这里所说的统计周期指的是统计历史运动数据相应的时间范围,但具体统计周期的时长并不做限制,例如统计周期可以是若干分钟、若干小时、一天、一周或一个月,具体可根据需求选择。Wherein, N is a positive integer. The statistical cycle mentioned here refers to the time range corresponding to the statistics of historical sports data, but there is no limit to the length of the specific statistical cycle. For example, the statistical cycle can be several minutes, several hours, one day, one week or one month. Demand selection.

步骤S602:获取历史数据中记录的前N个统计周期内同一时间段下对应的运动量,并对其计算平均值,得到第一运动量。Step S602: Acquiring the corresponding amount of exercise in the same time period in the first N statistical periods recorded in the historical data, and calculating the average value thereof, to obtain the first amount of exercise.

以每天上午7点到9点为例,统计前N天这一时间段内对应的运动量,并对其计算平均值,得到这一时间段下的平均运动量,作为第一运动量。值得说明的是,其他时间段计算对应运动量亦可采用该方式。此外,若统计精度要求较高,可将统计时间的时长缩短。Take every day from 7:00 am to 9:00 am as an example, count the corresponding amount of exercise in the time period of the previous N days, and calculate the average value, and obtain the average amount of exercise in this time period as the first amount of exercise. It is worth noting that this method can also be used to calculate the corresponding exercise amount in other time periods. In addition, if the statistical precision is required to be high, the duration of the statistical time can be shortened.

步骤S603:当第一运动量超过第一预设阈值时,确定该时间段为运动密集期。Step S603: When the first amount of exercise exceeds the first preset threshold, determine that the time period is an exercise-intensive period.

这里,第一预设阈值指的是正常情况下用户持续运动时间较长的运动量的阀值,当计算得到的第一运动量的值超过第一预设阈值时,表示用户在该段时间段内运动比较集中,确定该时间段为运动密集期。Here, the first preset threshold refers to the threshold value of the amount of exercise that the user continues to exercise for a long time under normal circumstances. When the calculated value of the first amount of exercise exceeds the first preset threshold, it means that the user has The exercise is relatively concentrated, and this time period is determined to be the exercise-intensive period.

步骤S604:当第一运动量低于第二预设阈值时,确定该时间段为运动稀发期。Step S604: When the first amount of exercise is lower than the second preset threshold, determine that this period of time is a period of low exercise.

其中,第一预设阈值高于第二预设阈值。这里,第二预设阈值指的是用户基本不运动或活动时所对应的门限值,当计算得到的第一运动量的值低于第二预设阈值时,表示用户在该段时间段内基本不运动,确定该时间段为运动稀发期。Wherein, the first preset threshold is higher than the second preset threshold. Here, the second preset threshold refers to the corresponding threshold value when the user basically does not exercise or is active. When the calculated value of the first amount of exercise is lower than the second preset threshold, it means that the user has If there is basically no exercise, this period of time is determined as the exercise-sparse period.

步骤S605:当第一运动量处于第一预设阈值和第二预设阈值之间时,确定该时间段为普通运动期。Step S605: When the first exercise amount is between the first preset threshold and the second preset threshold, determine that this time period is a normal exercise period.

即当第一运动量处于一中间值时,确定该段时间段为普通运动期。That is, when the first exercise amount is at an intermediate value, it is determined that this period of time is a normal exercise period.

步骤S606:当对应时间段为运动密集期时,确定对应时间段的休眠时间为第一时长。Step S606: When the corresponding time period is an exercise-intensive period, determine that the sleep time of the corresponding time period is the first duration.

这里对应于步骤S603,在运动密集期时,对应的休眠时间为第一时长,具体第一时长的时间可设置的短一些,以避免漏记运动量的情况,从而提高统计精度。Corresponding to step S603 here, during the exercise-intensive period, the corresponding sleep time is the first duration, and the specific first duration can be set shorter, so as to avoid missing exercise amount and improve statistical accuracy.

步骤S607:当对应时间段为运动稀发期时,确定对应时间段的休眠时间为第二时长。Step S607: When the corresponding time period is the exercise-sparse period, determine that the sleep time of the corresponding time period is the second duration.

这里对应于步骤S604,其中,第一时长小于第二时长。由于该段时间处于运动稀发期,用户的运动量较低,不需要系统长时间处于唤醒或激活状态,为了达到省电的效果,可将该段时间的休眠时间设置的相对长一些。This corresponds to step S604, wherein the first duration is shorter than the second duration. Since this period of time is in a low-activity period, the user's exercise volume is low, and the system does not need to be in the wake-up or active state for a long time. In order to achieve the effect of power saving, the sleep time of this period can be set relatively longer.

步骤S608:当对应时间段为普通运动期时,确定对应时间段的休眠时间为第三时长。Step S608: When the corresponding time period is a normal exercise period, determine that the sleep time of the corresponding time period is the third duration.

这里对应于步骤S605,其中,第一时长小于第三时长,第三时长小于第二时长,即,该段时间内的运动量处于中间值,对应的休眠时间也处于中间值,以权衡统计准确性和电子设备能耗之间的关系。This corresponds to step S605, wherein the first duration is less than the third duration, and the third duration is shorter than the second duration, that is, the amount of exercise within this period is at an intermediate value, and the corresponding sleep time is also at an intermediate value, in order to weigh statistical accuracy and the relationship between energy consumption of electronic equipment.

综上,通过获取用户的历史运动数据,并根据该历史运动数据得到用户的运动规律,根据运动规律动态调整不同时间段下电子设备的休眠时间,以在保证计步准确的前提下,降低电子设备的能耗。To sum up, by obtaining the user's historical exercise data and obtaining the user's exercise law according to the historical exercise data, the sleep time of the electronic device in different time periods is dynamically adjusted according to the exercise law, so as to reduce the electronic load while ensuring the accuracy of step counting. The energy consumption of the equipment.

第四实施例Fourth embodiment

以上第一实施例至第三实施例分别介绍了如何动态调整电子设备休眠时间的方法,下面将结合图7对该方法做补充说明。The above-mentioned first to third embodiments respectively introduce the method of how to dynamically adjust the sleep time of the electronic device, and the method will be supplemented below with reference to FIG. 7 .

具体地,在根据运动规律,调整对应时间段的电子设备的休眠时间之后,还包括:Specifically, after adjusting the sleep time of the electronic device in the corresponding time period according to the law of motion, it also includes:

步骤S701:当对应时间段的休眠时间到期后,检测用户是否发生运动动作。上述检测过程中,可以通过手机内置惯性测量单元(IMU,Inertialmeasurement unit)检测手机是否为静止状态。当手机静止时,IMU各个传感器的读数均保持不变,用户活动时,手机的传感器读数会有波动。Step S701: When the sleep time of the corresponding time period expires, detect whether the user takes an exercise action. During the above detection process, it is possible to detect whether the mobile phone is in a static state through a built-in inertial measurement unit (IMU, Inertialmeasurement unit) of the mobile phone. When the mobile phone is stationary, the readings of each sensor of the IMU remain unchanged, and when the user is active, the readings of the mobile phone's sensors fluctuate.

步骤S702:若发生,则结束休眠状态,启动计步进程。Step S702: If it happens, end the dormant state and start the step counting process.

步骤S703:若未发生,则启动下一时间段对应的休眠时间。Step S703: If not, start the sleep time corresponding to the next time period.

第五实施例fifth embodiment

以上第一实施例至第四实施例介绍了控制电子设备的能耗的方法,下面将结合附图对相应的控制电子设备的能耗的装置作进一步介绍。The first to fourth embodiments above have introduced the method for controlling the energy consumption of the electronic equipment, and the corresponding apparatus for controlling the energy consumption of the electronic equipment will be further introduced below in conjunction with the accompanying drawings.

具体地,如图8所示,该装置包括:Specifically, as shown in Figure 8, the device includes:

获取模块81,用于获取用户的历史运动数据,历史运动数据至少包括:运动时间段和与运动时间段对应的运动量;An acquisition module 81, configured to acquire historical exercise data of the user, the historical exercise data at least including: exercise time period and exercise amount corresponding to the exercise time period;

第一处理模块82,用于根据历史运动数据,确定得到用户的运动规律,运动规律用户表示用户在不同时间段下对应运动量;The first processing module 82 is used to determine and obtain the user's exercise law according to the historical exercise data, and the exercise law user indicates that the user corresponds to the amount of exercise in different time periods;

调整模块83,用于根据运动规律,调整对应时间段的电子设备的休眠时间。The adjustment module 83 is configured to adjust the sleep time of the electronic device in a corresponding time period according to the movement law.

其中,获取模块具体包括:Among them, the acquisition module specifically includes:

第一获取单元,用于获取记录有用户前N个统计周期内的运动时间段和对应运动量的历史运动数据;其中,N为正整数。The first acquisition unit is configured to acquire historical exercise data recorded with the user's exercise time period and corresponding exercise amount in the previous N statistical periods; wherein, N is a positive integer.

其中,获取模块具体包括:Among them, the acquisition module specifically includes:

第二获取单元,用于获取用户前N个统计周期内的运动时间段与对应的运动量;The second acquisition unit is used to acquire the user's exercise time period and corresponding exercise amount in the first N statistical periods;

计算单元,用于根据运动时间和对应的运动量,计算用户在不同时间段的运动量分布情况;A calculation unit, configured to calculate the distribution of the user's exercise amount in different time periods according to the exercise time and the corresponding amount of exercise;

确定单元,用于根据运动量分布情况,得到用户的历史运动数据。The determining unit is configured to obtain the historical exercise data of the user according to the distribution of the amount of exercise.

其中,根据历史运动数据,通过以下公式确定得到用户的运动规律:Among them, according to the historical exercise data, the user's exercise law is determined by the following formula:

rn+1=(1-α)*rn+α*dn;0<n≤N,且n为正整数;r n+1 =(1-α)*r n +α*d n ; 0<n≤N, and n is a positive integer;

其中,rn+1表示当前统计周期内不同时间段下的预测运动量,α表示权重衰减因子,rn表示前N-n个统计周期内不同时间段下的运动量统计值,dn表示前N-n个统计周期内的运动量分布情况。Among them, r n+1 represents the predicted exercise amount in different time periods in the current statistical cycle, α represents the weight attenuation factor, r n represents the statistical value of exercise amount in different time periods in the previous Nn statistical cycles, and d n represents the previous Nn statistics The distribution of exercise in the cycle.

其中,调整模块具体包括:Among them, the adjustment module specifically includes:

第一调整单元,用于根据预测运动量与休眠时间的关系,调整对应时间段的休眠时间;The first adjustment unit is used to adjust the sleep time of the corresponding time period according to the relationship between the predicted amount of exercise and the sleep time;

其中,预测运动量与休眠时间呈反比关系。Among them, the predicted amount of exercise is inversely proportional to the sleep time.

其中,第一处理模块具体包括:Wherein, the first processing module specifically includes:

第三获取单元,用于获取历史数据中记录的前N个统计周期内同一时间段下对应的运动量,并对其计算平均值,得到第一运动量;The third acquisition unit is used to acquire the corresponding exercise amount in the same time period in the first N statistical periods recorded in the historical data, and calculate the average value thereof to obtain the first exercise amount;

第一处理单元,用于当第一运动量超过第一预设阈值时,确定该时间段为运动密集期;A first processing unit, configured to determine that the time period is an exercise-intensive period when the first amount of exercise exceeds a first preset threshold;

第二处理单元,用于当第一运动量低于第二预设阈值时,确定该时间段为运动稀发期;其中,第一预设阈值高于第二预设阈值;The second processing unit is configured to determine that the period of time is an exercise-sparse period when the first amount of exercise is lower than a second preset threshold; wherein, the first preset threshold is higher than the second preset threshold;

第三处理单元,用于当第一运动量处于第一预设阈值和第二预设阈值之间时,确定该时间段为普通运动期。The third processing unit is configured to determine that the time period is a normal exercise period when the first exercise amount is between the first preset threshold and the second preset threshold.

其中,调整模块包括:Among them, the adjustment module includes:

第二调整单元,用于当对应时间段为运动密集期时,确定对应时间段的休眠时间为第一时长;The second adjustment unit is used to determine that the sleep time of the corresponding time period is the first duration when the corresponding time period is an exercise-intensive period;

第三调整单元,用于当对应时间段为运动稀发期时,确定对应时间段的休眠时间为第二时长;The third adjustment unit is used to determine that the dormancy time of the corresponding time period is the second duration when the corresponding time period is the exercise-sparse period;

第四调整单元,用于当对应时间段为普通运动期时,确定对应时间段的休眠时间为第三时长;The fourth adjustment unit is used to determine that the sleep time of the corresponding time period is the third duration when the corresponding time period is a normal exercise period;

其中,第一时长小于第三时长,第三时长小于第二时长。Wherein, the first duration is less than the third duration, and the third duration is shorter than the second duration.

其中,该装置还包括:Among them, the device also includes:

检测模块,用于当对应时间段的休眠时间到期后,检测用户是否发生运动动作;The detection module is used to detect whether the user takes an exercise action when the sleep time of the corresponding time period expires;

启动模块,用于当检测到用户发生运动动作时,结束休眠状态,启动计步进程;The startup module is used to end the dormant state and start the step counting process when the motion of the user is detected;

第二处理模块,用于当检测到用户未发生运动动作时,启动下一时间段对应的休眠时间;当检测到对应时间段的休眠时间未到期时,保持休眠状态。The second processing module is configured to start the sleep time corresponding to the next time period when it is detected that the user does not take any motion; and maintain the sleep state when it is detected that the sleep time of the corresponding time period has not expired.

需要说明的是,该装置是与上述控制电子设备的能耗的方法对应的装置,上述方法实施例中所有实现方式均适用于该装置的实施例中,也能达到相同的技术效果。It should be noted that this device is a device corresponding to the above-mentioned method for controlling energy consumption of electronic equipment, and all the implementation methods in the above-mentioned method embodiments are applicable to the embodiments of the device, and can also achieve the same technical effect.

以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。What has been described above is a preferred embodiment of the present invention. It should be pointed out that for those skilled in the art, some improvements and modifications can also be made without departing from the principles described in the present invention. within the scope of protection of the invention.

Claims (16)

1.一种控制电子设备的能耗的方法,其特征在于,所述方法包括:1. A method for controlling the energy consumption of electronic equipment, characterized in that the method comprises: 获取用户的历史运动数据,所述历史运动数据至少包括:运动时间段和与所述运动时间段对应的运动量;Acquiring the user's historical exercise data, the historical exercise data at least including: exercise time period and exercise amount corresponding to the exercise time period; 根据所述历史运动数据,确定得到所述用户的运动规律,所述运动规律用户表示所述用户在不同时间段下对应运动量;According to the historical exercise data, determine and obtain the exercise law of the user, and the exercise law user indicates the corresponding amount of exercise of the user in different time periods; 根据所述运动规律,调整对应时间段的所述电子设备的休眠时间。According to the movement rule, the sleep time of the electronic device in a corresponding time period is adjusted. 2.根据权利要求1所述的控制电子设备的能耗的方法,其特征在于,所述获取用户的历史运动数据,具体包括:2. The method for controlling the energy consumption of an electronic device according to claim 1, wherein the acquiring the user's historical exercise data specifically comprises: 获取记录有所述用户前N个统计周期内的运动时间段和对应运动量的历史运动数据;其中,N为正整数。Acquiring historical exercise data recorded with the user's exercise time period and corresponding exercise amount in the previous N statistical periods; wherein, N is a positive integer. 3.根据权利要求2所述的控制电子设备的能耗的方法,其特征在于,所述获取用户的历史运动数据,具体包括:3. The method for controlling the energy consumption of an electronic device according to claim 2, wherein said obtaining the user's historical exercise data specifically comprises: 获取所述用户前N个统计周期内的运动时间段与对应的运动量;Obtain the exercise time period and corresponding exercise amount of the user in the first N statistical periods; 根据所述运动时间和对应的运动量,计算所述用户在不同时间段的运动量分布情况;According to the exercise time and the corresponding exercise amount, calculate the distribution of the user's exercise amount in different time periods; 根据所述运动量分布情况,得到所述用户的历史运动数据。According to the distribution of the amount of exercise, the historical exercise data of the user is obtained. 4.根据权利要求3所述的控制电子设备的能耗的方法,其特征在于,根据所述历史运动数据,通过以下公式确定得到所述用户的运动规律:4. The method for controlling the energy consumption of an electronic device according to claim 3, wherein, according to the historical exercise data, the user's exercise law is determined by the following formula: rn+1=(1-α)*rn+α*dn;0<n≤N,且n为正整数;r n+1 =(1-α)*r n +α*d n ; 0<n≤N, and n is a positive integer; 其中,rn+1表示当前统计周期内不同时间段下的预测运动量,α表示权重衰减因子,rn表示前N-n个统计周期内不同时间段下的运动量统计值,dn表示前N-n个统计周期内的运动量分布情况。Among them, r n+1 represents the predicted exercise amount in different time periods in the current statistical cycle, α represents the weight attenuation factor, r n represents the statistical value of exercise amount in different time periods in the previous Nn statistical cycles, and d n represents the previous Nn statistics The distribution of exercise in the cycle. 5.根据权利要求4所述的控制电子设备的能耗的方法,其特征在于,根据所述运动规律,调整对应时间段的所述电子设备的休眠时间,具体包括:5. The method for controlling energy consumption of an electronic device according to claim 4, characterized in that, according to the law of motion, adjusting the sleep time of the electronic device in a corresponding time period, specifically comprising: 根据预测运动量与休眠时间的关系,调整对应时间段的休眠时间;According to the relationship between the predicted amount of exercise and the sleep time, adjust the sleep time of the corresponding time period; 其中,所述预测运动量与休眠时间呈反比关系。Wherein, the predicted amount of exercise is inversely proportional to the sleep time. 6.根据权利要求2所述的控制电子设备的能耗的方法,其特征在于,所述根据所述历史运动数据,确定得到所述用户的运动规律,具体包括:6. The method for controlling the energy consumption of an electronic device according to claim 2, wherein said determining and obtaining the user's exercise law according to the historical exercise data specifically comprises: 获取所述历史数据中记录的前N个统计周期内同一时间段下对应的运动量,并对其计算平均值,得到第一运动量;Obtaining the corresponding amount of exercise in the same time period in the first N statistical periods recorded in the historical data, and calculating the average value thereof to obtain the first amount of exercise; 当所述第一运动量超过第一预设阈值时,确定该时间段为运动密集期;When the first amount of exercise exceeds a first preset threshold, it is determined that the time period is an exercise-intensive period; 当所述第一运动量低于第二预设阈值时,确定该时间段为运动稀发期;其中,所述第一预设阈值高于所述第二预设阈值;When the first amount of exercise is lower than a second preset threshold, it is determined that the period of time is an exercise-sparse period; wherein, the first preset threshold is higher than the second preset threshold; 当所述第一运动量处于所述第一预设阈值和所述第二预设阈值之间时,确定该时间段为普通运动期。When the first amount of exercise is between the first preset threshold and the second preset threshold, it is determined that this time period is a normal exercise period. 7.根据权利要求6所述的控制电子设备的能耗的方法,其特征在于,所述根据所述运动规律,调整对应时间段的所述电子设备的休眠时间,具体包括:7. The method for controlling energy consumption of an electronic device according to claim 6, wherein the adjusting the sleep time of the electronic device in a corresponding period of time according to the law of motion specifically comprises: 当对应时间段为运动密集期时,确定所述对应时间段的休眠时间为第一时长;When the corresponding time period is an exercise-intensive period, determine that the sleep time of the corresponding time period is the first duration; 当对应时间段为运动稀发期时,确定所述对应时间段的休眠时间为第二时长;When the corresponding time period is an exercise-sparse period, it is determined that the sleep time of the corresponding time period is the second duration; 当对应时间段为普通运动期时,确定所述对应时间段的休眠时间为第三时长;When the corresponding time period is the normal exercise period, determine that the sleep time of the corresponding time period is the third duration; 其中,所述第一时长小于所述第三时长,所述第三时长小于所述第二时长。Wherein, the first duration is less than the third duration, and the third duration is shorter than the second duration. 8.根据权利要求1至7任一项所述的控制电子设备的能耗的方法,其特征在于,根据所述运动规律,调整对应时间段的所述电子设备的休眠时间之后,还包括:8. The method for controlling the energy consumption of an electronic device according to any one of claims 1 to 7, characterized in that, after adjusting the sleep time of the electronic device in a corresponding time period according to the law of motion, further comprising: 当对应时间段的休眠时间到期后,检测所述用户是否发生运动动作;When the dormancy time of the corresponding time period expires, detect whether the user takes a motion action; 若发生,则结束休眠状态,启动计步进程;If it happens, end the dormant state and start the step counting process; 若未发生,则启动下一时间段对应的休眠时间。If not, start the sleep time corresponding to the next time period. 9.一种控制电子设备的能耗的装置,其特征在于,所述装置包括:9. A device for controlling energy consumption of electronic equipment, characterized in that the device comprises: 获取模块,用于获取用户的历史运动数据,所述历史运动数据至少包括:运动时间段和与所述运动时间段对应的运动量;An acquisition module, configured to acquire historical exercise data of the user, the historical exercise data at least including: an exercise time period and an exercise amount corresponding to the exercise time period; 第一处理模块,用于根据所述历史运动数据,确定得到所述用户的运动规律,所述运动规律用户表示所述用户在不同时间段下对应运动量;The first processing module is configured to determine and obtain the exercise law of the user according to the historical exercise data, and the exercise law user indicates the corresponding amount of exercise of the user in different time periods; 调整模块,用于根据所述运动规律,调整对应时间段的所述电子设备的休眠时间。An adjustment module, configured to adjust the sleep time of the electronic device in a corresponding time period according to the motion rule. 10.根据权利要求9所述的控制电子设备的能耗的装置,其特征在于,所述获取模块具体包括:10. The device for controlling energy consumption of electronic equipment according to claim 9, wherein the acquisition module specifically comprises: 第一获取单元,用于获取记录有所述用户前N个统计周期内的运动时间段和对应运动量的历史运动数据;其中,N为正整数。The first acquiring unit is configured to acquire historical exercise data recorded with the user's exercise time period and corresponding exercise amount in the previous N statistical periods; wherein, N is a positive integer. 11.根据权利要求10所述的控制电子设备的能耗的装置,其特征在于,所述获取模块具体包括:11. The device for controlling energy consumption of electronic equipment according to claim 10, wherein the acquisition module specifically comprises: 第二获取单元,用于获取所述用户前N个统计周期内的运动时间段与对应的运动量;The second acquisition unit is used to acquire the exercise time period and the corresponding exercise amount of the user in the previous N statistical periods; 计算单元,用于根据所述运动时间和对应的运动量,计算所述用户在不同时间段的运动量分布情况;A calculation unit, configured to calculate the distribution of the user's exercise amount in different time periods according to the exercise time and the corresponding exercise amount; 确定单元,用于根据所述运动量分布情况,得到所述用户的历史运动数据。The determining unit is configured to obtain the historical exercise data of the user according to the distribution of the amount of exercise. 12.根据权利要求11所述的控制电子设备的能耗的装置,其特征在于,根据所述历史运动数据,通过以下公式确定得到所述用户的运动规律:12. The device for controlling energy consumption of electronic equipment according to claim 11, characterized in that, according to the historical exercise data, the user's exercise law is determined by the following formula: rn+1=(1-α)*rn+α*dn;0<n≤N,且n为正整数;r n+1 =(1-α)*r n +α*d n ; 0<n≤N, and n is a positive integer; 其中,rn+1表示当前统计周期内不同时间段下的预测运动量,α表示权重衰减因子,rn表示前N-n个统计周期内不同时间段下的运动量统计值,dn表示前N-n个统计周期内的运动量分布情况。Among them, r n+1 represents the predicted exercise amount in different time periods in the current statistical cycle, α represents the weight attenuation factor, r n represents the statistical value of exercise amount in different time periods in the previous Nn statistical cycles, and d n represents the previous Nn statistics The distribution of exercise in the cycle. 13.根据权利要求12所述的控制电子设备的能耗的装置,其特征在于,所述调整模块具体包括:13. The device for controlling energy consumption of electronic equipment according to claim 12, wherein the adjustment module specifically comprises: 第一调整单元,用于根据预测运动量与休眠时间的关系,调整对应时间段的休眠时间;The first adjustment unit is used to adjust the sleep time of the corresponding time period according to the relationship between the predicted amount of exercise and the sleep time; 其中,所述预测运动量与休眠时间呈反比关系。Wherein, the predicted amount of exercise is inversely proportional to the sleep time. 14.根据权利要求9所述的控制电子设备的能耗的装置,其特征在于,所述第一处理模块具体包括:14. The device for controlling energy consumption of electronic equipment according to claim 9, wherein the first processing module specifically comprises: 第三获取单元,用于获取所述历史数据中记录的前N个统计周期内同一时间段下对应的运动量,并对其计算平均值,得到第一运动量;The third obtaining unit is used to obtain the corresponding exercise amount in the same time period in the first N statistical periods recorded in the historical data, and calculate the average value thereof to obtain the first exercise amount; 第一处理单元,用于当所述第一运动量超过第一预设阈值时,确定该时间段为运动密集期;A first processing unit, configured to determine that the time period is an exercise-intensive period when the first amount of exercise exceeds a first preset threshold; 第二处理单元,用于当所述第一运动量低于第二预设阈值时,确定该时间段为运动稀发期;其中,所述第一预设阈值高于所述第二预设阈值;A second processing unit, configured to determine that the period of time is an exercise-sparse period when the first amount of exercise is lower than a second preset threshold; wherein the first preset threshold is higher than the second preset threshold ; 第三处理单元,用于当所述第一运动量处于所述第一预设阈值和所述第二预设阈值之间时,确定该时间段为普通运动期。A third processing unit, configured to determine that the time period is a normal exercise period when the first exercise amount is between the first preset threshold and the second preset threshold. 15.根据权利要求14所述的控制电子设备的能耗的装置,其特征在于,所述调整模块包括:15. The device for controlling energy consumption of electronic equipment according to claim 14, wherein the adjustment module comprises: 第二调整单元,用于当对应时间段为运动密集期时,确定所述对应时间段的休眠时间为第一时长;The second adjustment unit is configured to determine that the sleep time of the corresponding time period is the first duration when the corresponding time period is an exercise-intensive period; 第三调整单元,用于当对应时间段为运动稀发期时,确定所述对应时间段的休眠时间为第二时长;A third adjustment unit, configured to determine that the sleep time of the corresponding time period is the second duration when the corresponding time period is the exercise-sparse period; 第四调整单元,用于当对应时间段为普通运动期时,确定所述对应时间段的休眠时间为第三时长;A fourth adjustment unit, configured to determine that the sleep time of the corresponding time period is the third duration when the corresponding time period is a normal exercise period; 其中,所述第一时长小于所述第三时长,所述第三时长小于所述第二时长。Wherein, the first duration is less than the third duration, and the third duration is shorter than the second duration. 16.根据权利要求8至15任一项所述的控制电子设备的能耗的装置,其特征在于,所述装置还包括:16. The device for controlling energy consumption of electronic equipment according to any one of claims 8 to 15, characterized in that the device further comprises: 检测模块,用于当对应时间段的休眠时间到期后,检测所述用户是否发生运动动作;A detection module, configured to detect whether the user takes an exercise action after the dormancy time of the corresponding time period expires; 启动模块,用于当检测到所述用户发生运动动作时,结束休眠状态,启动计步进程;The starting module is used to end the dormant state and start the step counting process when it is detected that the user is in motion; 第二处理模块,用于当检测到所述用户未发生运动动作时,启动下一时间段对应的休眠时间。The second processing module is configured to start the sleep time corresponding to the next time period when it is detected that the user does not take any exercise action.
CN201510745522.9A 2015-11-05 2015-11-05 Method and device for controlling energy consumption of electronic equipment Active CN106681619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510745522.9A CN106681619B (en) 2015-11-05 2015-11-05 Method and device for controlling energy consumption of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510745522.9A CN106681619B (en) 2015-11-05 2015-11-05 Method and device for controlling energy consumption of electronic equipment

Publications (2)

Publication Number Publication Date
CN106681619A true CN106681619A (en) 2017-05-17
CN106681619B CN106681619B (en) 2019-12-31

Family

ID=58858774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510745522.9A Active CN106681619B (en) 2015-11-05 2015-11-05 Method and device for controlling energy consumption of electronic equipment

Country Status (1)

Country Link
CN (1) CN106681619B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018222374A1 (en) * 2017-06-01 2018-12-06 Apple Inc. Electronic device with activity-based power management
CN110889911A (en) * 2018-08-15 2020-03-17 杭州海康威视数字技术股份有限公司 Low-power-consumption control method and device based on intelligent lock dormancy awakening
CN111147277A (en) * 2019-11-25 2020-05-12 重庆特斯联智慧科技股份有限公司 Community house energy saving method and system based on edge calculation
CN112149091A (en) * 2020-09-18 2020-12-29 珠海格力电器股份有限公司 Device unlocking method, device, electronic device and storage medium
CN112749950A (en) * 2021-01-14 2021-05-04 珠海大横琴科技发展有限公司 Energy consumption management method and device, electronic equipment and storage medium
CN116225493A (en) * 2023-02-15 2023-06-06 广东壹健康健康产业集团股份有限公司 Intelligent hardware upgrade firmware configuration generation method

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493865A (en) * 2009-02-03 2009-07-29 杭州义盛祥通信技术有限公司 Electricity saving device and method for sport wrist-watch
CN101742981A (en) * 2007-02-16 2010-06-16 希盟(中国)科技有限公司 Wearable mini-size intelligent healthcare system
CN102743849A (en) * 2012-07-11 2012-10-24 吴敬杰 Control system used for sports fitness
CN102948225A (en) * 2010-06-23 2013-02-27 摩托罗拉移动有限责任公司 A method and device with dynamic dormancy
CN202887420U (en) * 2012-08-22 2013-04-17 南京合一健康咨询服务有限公司 Large-scale movement data acquisition system
CN103646366A (en) * 2013-11-15 2014-03-19 北京耀华康业科技发展有限公司 Interactive type autonomous heath management system and method
KR20140037626A (en) * 2012-09-19 2014-03-27 아주대학교산학협력단 Step counter detection apparatus and method using accelerometer
CN103983988A (en) * 2014-05-30 2014-08-13 厦门云朵网络科技有限公司 Positioning equipment, wearable equipment and positioning system
CN104102749A (en) * 2013-04-11 2014-10-15 华为技术有限公司 Terminal device
CN104248837A (en) * 2014-09-16 2014-12-31 华南理工大学 Pressure sensing based player motion analysis system
CN104305648A (en) * 2014-10-28 2015-01-28 广东小天才科技有限公司 Energy-saving bracelet and control method applied to energy-saving bracelet
CN204146484U (en) * 2014-10-28 2015-02-11 广东小天才科技有限公司 Energy-saving bracelet
CN104836905A (en) * 2015-04-13 2015-08-12 惠州Tcl移动通信有限公司 System adjusting method and apparatus based on user state
CN105011484A (en) * 2015-06-04 2015-11-04 潍坊市三田科技有限公司 Intelligent bracelet with dual-Bluetooth modules

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742981A (en) * 2007-02-16 2010-06-16 希盟(中国)科技有限公司 Wearable mini-size intelligent healthcare system
CN101493865A (en) * 2009-02-03 2009-07-29 杭州义盛祥通信技术有限公司 Electricity saving device and method for sport wrist-watch
CN102948225A (en) * 2010-06-23 2013-02-27 摩托罗拉移动有限责任公司 A method and device with dynamic dormancy
CN102743849A (en) * 2012-07-11 2012-10-24 吴敬杰 Control system used for sports fitness
CN202887420U (en) * 2012-08-22 2013-04-17 南京合一健康咨询服务有限公司 Large-scale movement data acquisition system
KR20140037626A (en) * 2012-09-19 2014-03-27 아주대학교산학협력단 Step counter detection apparatus and method using accelerometer
CN104102749A (en) * 2013-04-11 2014-10-15 华为技术有限公司 Terminal device
CN103646366A (en) * 2013-11-15 2014-03-19 北京耀华康业科技发展有限公司 Interactive type autonomous heath management system and method
CN103983988A (en) * 2014-05-30 2014-08-13 厦门云朵网络科技有限公司 Positioning equipment, wearable equipment and positioning system
CN104248837A (en) * 2014-09-16 2014-12-31 华南理工大学 Pressure sensing based player motion analysis system
CN104305648A (en) * 2014-10-28 2015-01-28 广东小天才科技有限公司 Energy-saving bracelet and control method applied to energy-saving bracelet
CN204146484U (en) * 2014-10-28 2015-02-11 广东小天才科技有限公司 Energy-saving bracelet
CN104836905A (en) * 2015-04-13 2015-08-12 惠州Tcl移动通信有限公司 System adjusting method and apparatus based on user state
CN105011484A (en) * 2015-06-04 2015-11-04 潍坊市三田科技有限公司 Intelligent bracelet with dual-Bluetooth modules

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018222374A1 (en) * 2017-06-01 2018-12-06 Apple Inc. Electronic device with activity-based power management
US10862329B2 (en) 2017-06-01 2020-12-08 Apple Inc. Electronic device with activity-based power management
US11923917B2 (en) 2017-06-01 2024-03-05 Apple Inc. Electronic device with activity-based power management
CN110889911A (en) * 2018-08-15 2020-03-17 杭州海康威视数字技术股份有限公司 Low-power-consumption control method and device based on intelligent lock dormancy awakening
CN110889911B (en) * 2018-08-15 2022-01-25 杭州海康威视数字技术股份有限公司 Low-power-consumption control method and device based on intelligent lock dormancy awakening
CN111147277A (en) * 2019-11-25 2020-05-12 重庆特斯联智慧科技股份有限公司 Community house energy saving method and system based on edge calculation
CN111147277B (en) * 2019-11-25 2023-04-21 重庆特斯联智慧科技股份有限公司 Community house energy saving method and system based on edge calculation
CN112149091A (en) * 2020-09-18 2020-12-29 珠海格力电器股份有限公司 Device unlocking method, device, electronic device and storage medium
CN112749950A (en) * 2021-01-14 2021-05-04 珠海大横琴科技发展有限公司 Energy consumption management method and device, electronic equipment and storage medium
CN116225493A (en) * 2023-02-15 2023-06-06 广东壹健康健康产业集团股份有限公司 Intelligent hardware upgrade firmware configuration generation method

Also Published As

Publication number Publication date
CN106681619B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN106681619B (en) Method and device for controlling energy consumption of electronic equipment
TWI518304B (en) A step counting method and pedometer based on 3-axis accelerometer
EP2827161B1 (en) Detection circuit and electronic terminal
KR101606102B1 (en) Terminal device
US8249667B2 (en) Wireless communication terminal and battery capacitance measuring method thereof
US9432916B2 (en) Situation aware sensor power management
CN104571990A (en) A method and device for adjusting the operating state of a display screen
CN102541254B (en) A kind of method of adjustment of text display manner, adjusting gear and mobile terminal
JP2012505478A5 (en)
US20210215763A1 (en) Method for improving accuracy of capacity measurement
JP2011215130A (en) Altimeter
CN105636181B (en) A kind of awakening method and device being adapted dynamically threshold value
CN105698815A (en) Method and device for adjusting pedometer data
CN101083815B (en) Method and apparatus for realizing mobile terminal clock relation track
CN108632963A (en) A kind of change grain size characteristic method of sampling based on multi-media sensor
JP2017192563A (en) Activity meter and exercise amount calculation device
CN112383498B (en) Low-frequency clock compensation method and device, storage medium and terminal
US9124131B2 (en) Dynamic control of the power sourcing capability of a power source
CN116893728A (en) Method for determining endurance time of terminal equipment and related equipment
CN106304296A (en) Power saving control method and device for wearable device, and wearable device
CN107152936B (en) Step counting method, step counting equipment and mobile phone
CN114626642A (en) Dosing system control method and device, storage medium and electronic equipment
CN114815735B (en) Tap water chlorination control method and device, electronic equipment and storage medium
CN113759268B (en) Electronic device battery health detection method, device and electronic device
CN111107199B (en) Illumination value reporting method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant