CN116382786B - Method for entering long standby mode, electronic device and readable storage medium - Google Patents
Method for entering long standby mode, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN116382786B CN116382786B CN202310664862.3A CN202310664862A CN116382786B CN 116382786 B CN116382786 B CN 116382786B CN 202310664862 A CN202310664862 A CN 202310664862A CN 116382786 B CN116382786 B CN 116382786B
- Authority
- CN
- China
- Prior art keywords
- screen
- electronic device
- historical
- event
- standby mode
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3215—Monitoring of peripheral devices
- G06F1/3218—Monitoring of peripheral devices of display devices
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及终端领域,尤其涉及一种进入长待机模式的方法、电子设备及可读存储介质。The present application relates to the field of terminals, and in particular to a method for entering a long standby mode, an electronic device, and a readable storage medium.
背景技术Background Art
市场上许多电子设备均使用电池为其供能,由于电池的电量有限,如何在有限的电量下尽可能的增长电子设备的续航时间是一个需要探索的问题。Many electronic devices on the market are powered by batteries. Since the battery power is limited, how to extend the battery life of electronic devices as much as possible with limited power is an issue that needs to be explored.
目前存在一种方案,在电子设备灭屏后等待预设时长,当在预设时长内电子设备未被主动操作,则进入长待机模式以降低功耗,增长续航时间。Currently, there is a solution that waits for a preset period of time after the screen of an electronic device is turned off. If the electronic device is not actively operated within the preset period of time, it enters a long standby mode to reduce power consumption and increase battery life.
但是,该方案中等待的时长需要预先设置,设置的时长可能不准确,存在过早或过晚进入长待机模式,导致降低功耗的效果不明显或影响用户的使用体验。However, the waiting time in this solution needs to be set in advance, and the set time may be inaccurate, resulting in the long standby mode being entered too early or too late, resulting in an insignificant effect of reducing power consumption or affecting the user's experience.
发明内容Summary of the invention
本申请提供一种进入长待机模式的方法、电子设备及可读存储介质,通过在控制电子设备进入长待机模式之前,确定电子设备的目标参数是否符合第一预设条件,若符合则确定控制电子设备进入长待机模式。可以改善进入长待机模式的时间不准确,导致降低功耗的效果不明显或影响用户的使用体验的问题。The present application provides a method for entering a long standby mode, an electronic device, and a readable storage medium, by determining whether a target parameter of the electronic device meets a first preset condition before controlling the electronic device to enter the long standby mode, and if so, determining to control the electronic device to enter the long standby mode. The problem that the time of entering the long standby mode is inaccurate, resulting in an insignificant effect of reducing power consumption or affecting the user's experience can be improved.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above purpose, this application adopts the following technical solutions:
第一方面,提供了一种进入长待机模式的方法,包括:In a first aspect, a method for entering a long standby mode is provided, comprising:
在检测到电子设备在非充电状态下发生灭屏事件的情况下,获取灭屏事件对应的第一时空信息,第一时空信息包括灭屏事件发生的时段和电子设备在灭屏事件发生时所处的地点。获取第一时空信息对应的第一概率,第一概率用于指示电子设备在第一时空信息对应的时段和地点进入长待机模式的概率。当第一概率大于或等于第一时空信息对应的第一概率阈值时,获取电子设备的目标参数,目标参数包括发生灭屏事件时的环境参数、发生灭屏事件后的运动状态以及发生灭屏事件时的后台应用序列中的至少一种。当电子设备的目标参数符合第一预设条件时,确定控制电子设备进入长待机模式。In the case where a screen-off event is detected in an electronic device in a non-charging state, the first spatiotemporal information corresponding to the screen-off event is obtained, and the first spatiotemporal information includes the time period when the screen-off event occurs and the location where the electronic device is located when the screen-off event occurs. The first probability corresponding to the first spatiotemporal information is obtained, and the first probability is used to indicate the probability that the electronic device enters the long standby mode in the time period and location corresponding to the first spatiotemporal information. When the first probability is greater than or equal to the first probability threshold corresponding to the first spatiotemporal information, the target parameters of the electronic device are obtained, and the target parameters include at least one of the environmental parameters when the screen-off event occurs, the motion state after the screen-off event occurs, and the background application sequence when the screen-off event occurs. When the target parameters of the electronic device meet the first preset conditions, it is determined to control the electronic device to enter the long standby mode.
在本申请的实施例中,进入长待机模式的方法可以应用于电子设备,包括手机、平板电脑、掌上游戏机、可穿戴设备、增强现实/虚拟现实设备、笔记本电脑、超级移动个人计算机、上网本、个人数字助理等。In an embodiment of the present application, the method for entering the long standby mode can be applied to electronic devices, including mobile phones, tablet computers, handheld game consoles, wearable devices, augmented reality/virtual reality devices, laptops, ultra-mobile personal computers, netbooks, personal digital assistants, etc.
在第一方面中,通过在控制电子设备进入长待机模式之前,确定电子设备的目标参数是否符合第一预设条件,若符合则确定控制电子设备进入长待机模式。可以降低误识别进入长待机模式的概率,提高进入长待机模式的时机的准确度,提供更好的用户体验。In the first aspect, before controlling the electronic device to enter the long standby mode, by determining whether the target parameter of the electronic device meets the first preset condition, and if so, determining to control the electronic device to enter the long standby mode, the probability of misidentifying the entry into the long standby mode can be reduced, the accuracy of the timing of entering the long standby mode can be improved, and a better user experience can be provided.
一些可能的实施方式中,在获取第一时空信息对应的第一概率之前,该方法还包括:In some possible implementations, before obtaining the first probability corresponding to the first spatiotemporal information, the method further includes:
获取电子设备的历史灭屏数据,历史灭屏数据包括在第一预设时长内发生的历史灭屏事件对应的历史时空信息和参考信息,历史时空信息包括历史灭屏事件发生的时段和电子设备在历史灭屏事件发生时所处的地点,参考信息包括历史灭屏事件发生的日期、以及电子设备在历史灭屏事件发生后是否处于长待机模式。根据历史灭屏数据,确定多个进入长待机模式的概率,其中,相同时段、相同地点发生的历史灭屏事件对应的历史时空信息和参考信息用于确定一个进入长待机模式的概率。Obtain historical screen-off data of the electronic device, the historical screen-off data including historical spatiotemporal information and reference information corresponding to historical screen-off events that occurred within a first preset time period, the historical spatiotemporal information including the time period when the historical screen-off event occurred and the location of the electronic device when the historical screen-off event occurred, and the reference information including the date when the historical screen-off event occurred, and whether the electronic device was in long standby mode after the historical screen-off event occurred. Determine multiple probabilities of entering long standby mode based on the historical screen-off data, wherein the historical spatiotemporal information and reference information corresponding to historical screen-off events that occurred in the same time period and the same location are used to determine a probability of entering long standby mode.
获取第一时空信息对应的第一概率,包括:根据多个进入长待机模式的概率,确定第一概率。Acquiring a first probability corresponding to the first spatiotemporal information includes: determining the first probability according to multiple probabilities of entering the long standby mode.
一些可能的实施方式中,目标参数包括发生灭屏事件时的环境参数,参考信息还包括电子设备发生历史灭屏事件时的历史环境参数。In some possible implementations, the target parameters include environmental parameters when the screen off event occurs, and the reference information also includes historical environmental parameters when historical screen off events occur on the electronic device.
确定电子设备的目标参数符合第一预设条件,包括:获取第一时空信息对应的时段和地点的历史环境参数。当电子设备发生灭屏事件时的环境参数与历史环境参数相同或相近时,确定目标参数符合第一预设条件。Determining that the target parameter of the electronic device meets the first preset condition includes: obtaining historical environmental parameters of the time period and location corresponding to the first spatiotemporal information. When the environmental parameters of the electronic device when the screen goes off are the same as or similar to the historical environmental parameters, it is determined that the target parameter meets the first preset condition.
一些可能的实施方式中,环境参数包括环境光照强度、环境声音强度、环境温度中的至少一种。In some possible implementations, the environmental parameter includes at least one of ambient light intensity, ambient sound intensity, and ambient temperature.
一些可能的实施方式中,环境参数包括环境光照强度或环境声音强度,该方法还包括:当电子设备发生灭屏事件时的环境参数小于历史环境参数,和/或,电子设备发生灭屏事件时的环境参数小于或等于环境参数阈值时,确定目标参数符合第一预设条件。In some possible implementations, the environmental parameters include ambient light intensity or ambient sound intensity, and the method further includes: when the environmental parameters when the screen goes off on the electronic device are less than the historical environmental parameters, and/or when the environmental parameters when the screen goes off on the electronic device are less than or equal to the environmental parameter threshold, determining that the target parameters meet the first preset condition.
一些可能的实施方式中,目标参数包括在电子设备发生灭屏时间后的第二预设时长内电子设备的运动状态。In some possible implementations, the target parameter includes the motion state of the electronic device within a second preset time period after the screen of the electronic device is turned off.
确定目标参数符合第一预设条件,包括:当未检测到电子设备在第二预设时长内发生运动时,确定目标参数符合第一预设条件。Determining that the target parameter meets the first preset condition includes: when no movement of the electronic device is detected within a second preset time period, determining that the target parameter meets the first preset condition.
一些可能的实施方式中,在检测到电子设备在非充电状态下发生灭屏事件的情况下,获取灭屏事件对应的第一时空信息,包括:In some possible implementations, when a screen-off event is detected in an electronic device in a non-charging state, obtaining first spatiotemporal information corresponding to the screen-off event includes:
确定检测到电子设备在非充电状态下发生主动灭屏事件后,当在第二预设时长内未检测到来自用户的亮屏操作时,获取主动灭屏事件对应的第一时空信息,主动灭屏事件包括电子设备检测到来自用户的亮屏操作后的自动灭屏事件或电子设备响应来自用户的灭屏操作后的灭屏事件。After determining that an active screen-off event has been detected in the electronic device when it is not charging, when no screen-on operation is detected from the user within a second preset time period, first time-space information corresponding to the active screen-off event is obtained. The active screen-off event includes an automatic screen-off event after the electronic device detects a screen-on operation from the user or a screen-off event after the electronic device responds to a screen-off operation from the user.
一些可能的实施方式中,目标参数包括电子设备发生灭屏事件时的后台应用序列,参考信息还包括电子设备发生历史灭屏事件时的第二特征,第二特征是电子设备在第一预设时长内进入长待机模式后获取的发生历史灭屏事件时对应的后台应用序列的特征。In some possible implementations, the target parameters include a background application sequence when a screen-off event occurs in the electronic device, and the reference information also includes a second feature when a historical screen-off event occurs in the electronic device, and the second feature is a feature of the background application sequence corresponding to the historical screen-off event obtained after the electronic device enters a long standby mode within a first preset time period.
确定目标参数符合第一预设条件,包括:获取电子设备发生灭屏事件时的后台应用序列的第一特征。当第一特征和至少一个与第一时空信息地点相同、时段相同的第二特征相匹配时,确定目标参数符合第一预设条件。Determining that the target parameter meets the first preset condition includes: obtaining a first feature of the background application sequence when the screen turns off event occurs in the electronic device. When the first feature matches at least one second feature of the same location and time period as the first spatiotemporal information, it is determined that the target parameter meets the first preset condition.
一些可能的实施方式中,获取第一时空信息对应的第一概率,包括:获取与第一时空信息具有相同时段和相同地点的历史时空信息对应的进入长待机模式的概率。将与第一时空信息具有相同时段和相同地点的历史时空信息对应的进入长待机模式的概率作为第一时空信息对应的第一概率。In some possible implementations, obtaining the first probability corresponding to the first spatiotemporal information includes: obtaining the probability of entering the long standby mode corresponding to the historical spatiotemporal information having the same time period and the same location as the first spatiotemporal information. The probability of entering the long standby mode corresponding to the historical spatiotemporal information having the same time period and the same location as the first spatiotemporal information is used as the first probability corresponding to the first spatiotemporal information.
一些可能的实施方式中,获取第一时空信息对应的第一概率,包括:根据第一时空信息中的地点获取对应的时间围栏,当第一时空信息中的时段落入对应的时间围栏中时,获取与第一时空信息具有相同时段和相同地点的历史时空信息的进入长待机模式的概率。将与第一时空信息具有相同时段和相同地点的历史时空信息对应的进入长待机模式的概率作为第一时空信息对应的第一概率。In some possible implementations, obtaining the first probability corresponding to the first spatiotemporal information includes: obtaining a corresponding time fence according to a location in the first spatiotemporal information, and when a time period in the first spatiotemporal information falls within the corresponding time fence, obtaining a probability of entering the long standby mode for historical spatiotemporal information having the same time period and the same location as the first spatiotemporal information. The probability of entering the long standby mode corresponding to the historical spatiotemporal information having the same time period and the same location as the first spatiotemporal information is used as the first probability corresponding to the first spatiotemporal information.
一些可能的实施方式中,根据第一时空信息中的地点获取对应的时间围栏,包括:获取时空信息集合,时空信息集合中包括至少一个符合第二预设条件的历史时空信息,第二预设条件包括历史时空信息对应的进入长待机模式的概率大于或等于历史时空信息对应的第二概率阈值。获取时空信息集合中地点相同的历史时空信息对应的至少一个时段。根据地点和至少一个时段获取每个地点的时间围栏。In some possible implementations, obtaining a corresponding time fence according to a location in the first spatiotemporal information includes: obtaining a spatiotemporal information set, the spatiotemporal information set including at least one historical spatiotemporal information that meets a second preset condition, the second preset condition including that a probability of entering a long standby mode corresponding to the historical spatiotemporal information is greater than or equal to a second probability threshold corresponding to the historical spatiotemporal information. Obtaining at least one time period corresponding to historical spatiotemporal information with the same location in the spatiotemporal information set. Obtaining a time fence for each location according to the location and at least one time period.
一些可能的实施方式中,第二概率阈值等于第一概率阈值。In some possible implementations, the second probability threshold is equal to the first probability threshold.
一些可能的实施方式中,该方法还包括:根据第一预设时长,确定第一概率阈值。In some possible implementations, the method further includes: determining a first probability threshold according to a first preset duration.
一些可能的实施方式中,根据第一预设时长,确定第一概率阈值,包括:根据第一预设时长确定对应的时长权重。将时长权重输入预先设置的函数中,得到第一概率阈值。In some possible implementations, determining the first probability threshold according to the first preset duration includes: determining a corresponding duration weight according to the first preset duration, and inputting the duration weight into a preset function to obtain the first probability threshold.
一些可能的实施方式中,根据历史灭屏数据,确定多个进入长待机模式的概率,包括:对于相同时段、相同地点发生的历史灭屏事件对应的历史时空信息,获取历史时空信息在预设的时长内对应的多组参考信息。根据参考信息中历史灭屏事件发生的日期与当前日期之间的间隔确定权重系数。根据电子设备在每个历史灭屏事件发生后是否处于长待机模式、权重系数,获取历史时空信息对应的进入长待机模式的概率。In some possible implementations, based on historical screen-off data, multiple probabilities of entering long standby mode are determined, including: for historical spatiotemporal information corresponding to historical screen-off events that occurred in the same period and the same place, multiple groups of reference information corresponding to the historical spatiotemporal information within a preset duration are obtained. The weight coefficient is determined based on the interval between the date of the historical screen-off event in the reference information and the current date. Based on whether the electronic device is in long standby mode after each historical screen-off event and the weight coefficient, the probability of entering long standby mode corresponding to the historical spatiotemporal information is obtained.
一些可能的实施方式中,在控制电子设备进入长待机模式之后,该方法还包括:当检测到电子设备处于充电状态后,控制电子设备退出长待机模式。In some possible implementations, after controlling the electronic device to enter the long standby mode, the method further includes: when it is detected that the electronic device is in a charging state, controlling the electronic device to exit the long standby mode.
第二方面,提供了一种电子设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时行第一方面或第一方面中任一种方法中进行处理的步骤。In a second aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program and performs the steps of processing in the first aspect or any one of the methods in the first aspect.
第三方面,提供了一种芯片,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行第一方面或第一方面中任一种方法中进行处理的步骤。According to a third aspect, a chip is provided, characterized in that it comprises: a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes the steps of processing in the first aspect or any one of the methods in the first aspect.
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时,使所述处理器执行第一方面或第一方面中任一种方法中进行处理的步骤。In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the steps of processing in the first aspect or any one of the methods in the first aspect.
其中,第二方面至第四方面的有益效果可以参照第一方面,在此不做赘述。Among them, the beneficial effects of the second to fourth aspects can refer to the first aspect and will not be elaborated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例提供的一种进入长待机模式的方法的应用场景示意图;FIG1 is a schematic diagram of an application scenario of a method for entering a long standby mode provided in an embodiment of the present application;
图2是本申请实施例提供的一种电子设备的硬件结构框图;FIG2 is a hardware structure block diagram of an electronic device provided in an embodiment of the present application;
图3是本申请实施例提供的电子设备的系统结构框图;FIG3 is a system structure block diagram of an electronic device provided in an embodiment of the present application;
图4是本申请实施例提供的电子设备的软件结构框图;FIG4 is a software structure block diagram of an electronic device provided in an embodiment of the present application;
图5是本申请实施例提供的进入长待机模式的方法的流程示意图;FIG5 is a flow chart of a method for entering a long standby mode provided in an embodiment of the present application;
图6是本申请实施例提供的进入长待机模式的方法中S501的流程示意图;FIG6 is a flow chart of step S501 in the method for entering the long standby mode provided in an embodiment of the present application;
图7是本申请实施例提供的进入长待机模式的方法中S5012的流程示意图;FIG. 7 is a flow chart of step S5012 in the method for entering the long standby mode provided in an embodiment of the present application;
图8是本申请实施例提供的一种芯片的结构示意图。FIG8 is a schematic diagram of the structure of a chip provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the accompanying drawings.
在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。In the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
目前,市场上大多数的电子设备均使用电池为其供能,由于电池的电量有限,如何在有限的电量下尽可能的增长电子设备的续航时间是一个需要探索的问题。对此,可以通过减少电子设备在灭屏状态下的功耗,增加电子设备的续航时间。At present, most electronic devices on the market are powered by batteries. Since the battery power is limited, how to extend the battery life of electronic devices as much as possible under limited power is a problem that needs to be explored. To this end, the battery life of electronic devices can be increased by reducing the power consumption of electronic devices when the screen is off.
一种方案中,可以在电子设备未充电时,若主动灭屏后的30分钟内电子设备未被主动操作,则在主动灭屏30分钟后进入长待机模式。In one solution, when the electronic device is not being charged, if the electronic device is not actively operated within 30 minutes after the screen is actively turned off, it will enter the long standby mode 30 minutes after the screen is actively turned off.
例如,对于安卓系统,长待机模式即低耗电(Doze)模式。当运行有安卓系统的电子设备进入Doze模式后,电子设备会限制后台应用访问中央处理器(Central ProcessingUnit,CPU)和网络的频率。For example, for the Android system, the long standby mode is the low power consumption (Doze) mode. When an electronic device running the Android system enters the Doze mode, the electronic device will limit the frequency of background applications accessing the central processing unit (CPU) and the network.
例如,电子设备在Doze模式下,可以每过一段间隔时间后,进入时长为30秒的窗口期(maintenance window)。在窗口期中,后台应用可以访问CPU,进行网络交互等。For example, when an electronic device is in Doze mode, it can enter a 30-second maintenance window after a certain period of time. During the maintenance window, background applications can access the CPU and interact with the network.
当电子设备处于Doze模式的时长超过一定时长后,可以增长进入窗口期的间隔时间。例如,电子设备进入Doze模式后,可以每隔10分钟进入一次窗口期;当电子设备进入Doze模式超过1小时后,可以每隔15分钟进入一次窗口期;当电子设备进入Doze模式超过2小时后,可以每隔20分钟进入一次窗口期。When an electronic device is in Doze mode for more than a certain period of time, the interval between entering the window period can be increased. For example, after an electronic device enters Doze mode, it can enter a window period every 10 minutes; when an electronic device enters Doze mode for more than 1 hour, it can enter a window period every 15 minutes; when an electronic device enters Doze mode for more than 2 hours, it can enter a window period every 20 minutes.
但是,由于该方案需在主动灭屏后等待固定时长(如30分钟),再进入长待机模式。该方案无法根据用户的历史习惯预测电子设备是否需要进入长待机模式。进入长待机模式的时机过于固定,不够灵活。However, since this solution requires waiting for a fixed time (such as 30 minutes) after the screen is turned off before entering the long standby mode, this solution cannot predict whether the electronic device needs to enter the long standby mode based on the user's historical habits. The timing of entering the long standby mode is too fixed and not flexible enough.
例如,当设置固定等待时长为30分钟时,可能会过晚进入长待机模式,增加电子设备续航的效果不佳。当设置的固定等待时长为5分钟时,可能会过早进入长待机模式,导致用户无法及时接收信息,影响用户体验。For example, when the fixed waiting time is set to 30 minutes, the long standby mode may be entered too late, and the effect of increasing the battery life of the electronic device is not good. When the fixed waiting time is set to 5 minutes, the long standby mode may be entered too early, resulting in the user being unable to receive information in time, affecting the user experience.
有鉴于此,本申请提供了一种进入长待机模式的方法,应用于电子设备,方法包括:In view of this, the present application provides a method for entering a long standby mode, which is applied to an electronic device, and the method includes:
在检测到电子设备在非充电状态下发生灭屏事件的情况下,获取灭屏事件对应的第一时空信息,第一时空信息包括灭屏事件发生的时段和电子设备在灭屏事件发生时所处的地点。获取第一时空信息对应的第一概率,第一概率用于指示电子设备在第一时空信息对应的时段和地点进入长待机模式的概率。当第一概率大于或等于第一时空信息对应的第一概率阈值时,获取电子设备的目标参数,目标参数包括发生灭屏事件时的环境参数、发生灭屏事件后的运动状态以及发生灭屏事件时的后台应用序列中的至少一种。当电子设备的目标参数符合第一预设条件时,确定控制电子设备进入长待机模式。In the case where a screen-off event is detected in an electronic device in a non-charging state, the first spatiotemporal information corresponding to the screen-off event is obtained, and the first spatiotemporal information includes the time period when the screen-off event occurs and the location where the electronic device is located when the screen-off event occurs. The first probability corresponding to the first spatiotemporal information is obtained, and the first probability is used to indicate the probability that the electronic device enters the long standby mode in the time period and location corresponding to the first spatiotemporal information. When the first probability is greater than or equal to the first probability threshold corresponding to the first spatiotemporal information, the target parameters of the electronic device are obtained, and the target parameters include at least one of the environmental parameters when the screen-off event occurs, the motion state after the screen-off event occurs, and the background application sequence when the screen-off event occurs. When the target parameters of the electronic device meet the first preset conditions, it is determined to control the electronic device to enter the long standby mode.
本申请中,在控制电子设备进入长待机模式之前,确定电子设备的目标参数是否符合第一预设条件,若符合则确定控制电子设备进入长待机模式。可以降低误识别进入长待机模式的概率,提高进入长待机模式的时机的准确度,提供更好的用户体验。In the present application, before controlling the electronic device to enter the long standby mode, it is determined whether the target parameter of the electronic device meets the first preset condition, and if so, it is determined to control the electronic device to enter the long standby mode. The probability of misidentifying the entry into the long standby mode can be reduced, the accuracy of the timing of entering the long standby mode can be improved, and a better user experience can be provided.
图1是本申请实施例提供的一种进入长待机模式的方法的应用场景示意图。FIG1 is a schematic diagram of an application scenario of a method for entering a long standby mode provided in an embodiment of the present application.
参考图1,首先对本申请实施例的应用场景进行简要说明。With reference to FIG1 , the application scenario of the embodiment of the present application is first briefly described.
图1中示出了电子设备100,在电子设备100发生主动灭屏事件(如接收到用户的灭屏操作)后等待5分钟,若电子设备100未被解锁,则可以根据发生灭屏事件的时段和地点,预测是否提前进入长待机模式。FIG1 shows an electronic device 100. After an active screen-off event occurs on the electronic device 100 (such as receiving a screen-off operation from the user), the electronic device 100 waits for 5 minutes. If the electronic device 100 is not unlocked, it can be predicted whether to enter the long standby mode in advance based on the time period and location of the screen-off event.
当预测结果为确定提前进入长待机模式后,还可以根据发生灭屏事件时的环境参数、电子设备在等待期间的运动状态以及电子设备发生灭屏事件时的后台应用序列等目标参数是否符合第一预设条件,对预测结果进行修正。当修正后的预测结果仍然为确定提前进入长待机模式后,电子设备提前进入长待机模式。When the prediction result is to determine that the long standby mode is to be entered in advance, the prediction result may be corrected according to whether target parameters such as the environmental parameters when the screen-off event occurs, the motion state of the electronic device during the waiting period, and the background application sequence when the screen-off event occurs in the electronic device meet the first preset condition. When the corrected prediction result is still to determine that the long standby mode is to be entered in advance, the electronic device enters the long standby mode in advance.
需要说明的是,本场景中所称的提前进入长待机模式,是相对于上述需要等待固定时长后进入长待机模式。It should be noted that the early entry into the long standby mode in this scenario is relative to the need to wait for a fixed period of time before entering the long standby mode.
本场景中无需等待至固定时长,而是在发生主动灭屏事件后进行预测,并对预测结果进行修正,判断电子设备是否提前进入长待机模式。In this scenario, there is no need to wait for a fixed period of time. Instead, a prediction is made after an active screen-off event occurs, and the prediction result is corrected to determine whether the electronic device enters the long standby mode in advance.
一种可能的实现场景中,当电子设备所处的地点为办公室时,在午休时段,用户进行午休,在午休前使用了电子设备且用户未对电子设备充电。In a possible implementation scenario, when the electronic device is located in an office, during the lunch break period, the user takes a lunch break, uses the electronic device before the lunch break, and does not charge the electronic device.
在使用完毕后,电子设备响应用户的灭屏操作灭屏,或,电子设备在一定时间内未被操作后自动灭屏。电子设备在灭屏后等待5分钟,根据发生灭屏事件的时段和地点进行预测,预测结果为确定提前进入长待机模式。然后,电子设备确定在5分钟内未发生移动,且电子设备采集到的环境参数与历史环境参数相同或相近,则确定电子设备可以提前进入长待机模式,以降低电子设备的功耗,提高续航。After use, the electronic device responds to the user's screen-off operation to turn off the screen, or the electronic device automatically turns off the screen after being not operated for a certain period of time. The electronic device waits for 5 minutes after the screen is turned off, and makes a prediction based on the time period and location of the screen-off event. The prediction result is to determine to enter the long standby mode in advance. Then, the electronic device determines that there is no movement within 5 minutes, and the environmental parameters collected by the electronic device are the same or similar to the historical environmental parameters, then it is determined that the electronic device can enter the long standby mode in advance to reduce the power consumption of the electronic device and improve the battery life.
或者,另一种可能的实现场景中,当电子设备所处的地点为家时,在夜间时段,用户进入睡眠,在睡眠前使用了电子设备且用户未对电子设备充电。Or, in another possible implementation scenario, when the electronic device is located at home, the user falls asleep at night, uses the electronic device before falling asleep, and does not charge the electronic device.
在使用完毕后,电子设备响应用户的灭屏操作灭屏,或,电子设备在一定时间内未被操作后自动灭屏。电子设备在灭屏后等待5分钟,根据发生灭屏事件的时段和地点进行预测,预测结果为确定提前进入长待机模式。然后,电子设备确定在5分钟内未发生移动,且电子设备采集到的环境参数与历史环境参数相同或相近,则确定电子设备可以提前进入长待机模式,以降低电子设备的功耗,提高续航。After use, the electronic device responds to the user's screen-off operation to turn off the screen, or the electronic device automatically turns off the screen after being not operated for a certain period of time. The electronic device waits for 5 minutes after the screen is turned off, and makes a prediction based on the time period and location of the screen-off event. The prediction result is to determine to enter the long standby mode in advance. Then, the electronic device determines that there is no movement within 5 minutes, and the environmental parameters collected by the electronic device are the same or similar to the historical environmental parameters, then it is determined that the electronic device can enter the long standby mode in advance to reduce the power consumption of the electronic device and improve the battery life.
图2是本申请实施例提供的一种电子设备的硬件结构框图。FIG. 2 is a block diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
作为示例,电子设备可以包括手机、平板电脑、掌上游戏机、可穿戴设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personaldigital assistant,PDA)等。对于电子设备的具体类型,本申请实施例不作任何限制。As an example, the electronic device may include a mobile phone, a tablet computer, a handheld game console, a wearable device, an augmented reality (AR)/virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
参考图2,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。2 , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
作为举例,当电子设备100为手机或平板电脑时,可以包括图示中的全部部件,也可以仅包括图示中的部分部件。For example, when the electronic device 100 is a mobile phone or a tablet computer, it may include all the components shown in the figure, or may include only some of the components shown in the figure.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。The modulation and demodulation processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC ,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system ,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
ISP 用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
摄像头193用于捕获静态图像或视频。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
NPU为神经网络(neural-network ,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。The pressure sensor 180A is used to sense pressure signals and convert the pressure signals into electrical signals.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
在本申请实施例中,温度传感器180J可以包括多个,用于检测电子设备100不同位置的温度,如可以设置在处理器附近,获取处理器的温度,设置在电池附近,获取电池的温度或者设置在电子设备100的外壳内侧,用于获取电子设备100外壳的温度。In an embodiment of the present application, the temperature sensor 180J may include multiple ones for detecting the temperatures at different positions of the electronic device 100, such as being set near the processor to obtain the temperature of the processor, being set near the battery to obtain the temperature of the battery, or being set on the inside of the outer casing of the electronic device 100 to obtain the temperature of the outer casing of the electronic device 100.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
对于以上示例中的场景,电子设备100的操作系统可以包括但不限于塞班(Symbian)、安卓(Andriod)、窗口(Windows)、苹果(MacOS、iOS)、黑莓(Blackberry)、鸿蒙(HarmonyOS)、林纳斯(Linux)或尤内克斯(Unix)等操作系统。For the scenario in the above example, the operating system of the electronic device 100 may include but is not limited to Symbian, Android, Windows, MacOS, iOS, Blackberry, HarmonyOS, Linux or Unix operating systems.
图3是本申请实施例提供的电子设备的系统结构框图。FIG3 is a system structure block diagram of an electronic device provided in an embodiment of the present application.
作为示例,当本申请提供的进入长待机模式的方法在电子设备100上运行时,电子设备100的操作系统可以是Andriod,其系统结构可以参照图3。As an example, when the method for entering the long standby mode provided in the present application is executed on the electronic device 100 , the operating system of the electronic device 100 may be Andriod, and its system structure may refer to FIG. 3 .
其中,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。Among them, the layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in FIG. 3 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in FIG. 3 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示字符的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示字符的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying characters, controls for displaying pictures, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text message notification icon can include a view for displaying characters and a view for displaying pictures.
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如: MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。A 2D graphics engine is a drawing engine for 2D drawings.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
图4是本申请实施例提供的电子设备的软件结构框图。FIG. 4 is a software structure block diagram of the electronic device provided in an embodiment of the present application.
参考图4,电子设备的软件结构包括计算引擎、长待机应用以及感知模块。计算引擎、长待机应用以及感知模块均以应用的方式部署在应用程序层。4, the software structure of the electronic device includes a computing engine, a long standby application and a perception module. The computing engine, the long standby application and the perception module are all deployed in the application layer in the form of applications.
一些可能的实施方式中,感知模块中包括数据中台、事件采集组件以及事件围栏。In some possible implementations, the perception module includes a data center, an event collection component, and an event fence.
事件围栏包括亮屏事件围栏和灭屏事件围栏。当亮屏事件围栏或灭屏事件围栏被亮屏事件或灭屏事件触发时,对应的事件围栏指示事件采集组件采集发生亮屏事件的时间、发生灭屏事件的时间、灭屏事件发生时电子设备所处地点的位置信息、灭屏事件发生的日期、以及目标参数等。The event fence includes the screen on event fence and the screen off event fence. When the screen on event fence or the screen off event fence is triggered by the screen on event or the screen off event, the corresponding event fence instructs the event collection component to collect the time when the screen on event occurs, the time when the screen off event occurs, the location information of the electronic device when the screen off event occurs, the date when the screen off event occurs, and the target parameters, etc.
其中,目标参数可以包括灭屏事件发生时电子设备所处地点的环境参数、灭屏事件发生后电子设备的运动状态以及灭屏事件发生时电子设备的后台应用序列中的至少一种。Among them, the target parameters may include at least one of the environmental parameters of the location where the electronic device is located when the screen off event occurs, the motion state of the electronic device after the screen off event occurs, and the background application sequence of the electronic device when the screen off event occurs.
事件围栏还用于响应当前发生的灭屏事件,指示计算引擎预测是否进入长待机模式。例如,若当前发生的灭屏事件的时空信息落入了事件围栏中的灭屏事件围栏,则指示计算引擎根据当前发生的灭屏事件的时段、地点以及目标参数,预测是否进入长待机模式。The event fence is also used to respond to the current screen off event and instruct the computing engine to predict whether to enter the long standby mode. For example, if the spatiotemporal information of the current screen off event falls into the screen off event fence in the event fence, the computing engine is instructed to predict whether to enter the long standby mode based on the time period, location, and target parameters of the current screen off event.
数据中台中存储有历史事件表,历史事件表中记录了事件采集组件在历史每次发生亮屏事件或灭屏事件时采集的历史时空信息和目标参数。The data center stores a historical event table, which records the historical time and space information and target parameters collected by the event collection component each time a screen-on event or screen-off event occurs in history.
一些可能的实施方式中,计算引擎包括长待机模型生成模块、长待机预测模块以及长待机控制模块。In some possible implementations, the computing engine includes a long standby model generation module, a long standby prediction module, and a long standby control module.
长待机模型生成模块用于根据历史事件表,通过相同时段、相同地点的历史时空信息进行训练,得到多个进入长待机模式的概率。其中,相同时段、相同地点发生的历史灭屏事件对应一个进入长待机模式的概率。The long standby model generation module is used to train the historical spatiotemporal information of the same time period and the same location according to the historical event table to obtain multiple probabilities of entering the long standby mode. Among them, the historical screen-off event occurring in the same time period and the same location corresponds to a probability of entering the long standby mode.
长待机预测模块用于响应灭屏事件围栏的指示,根据触发灭屏事件围栏的灭屏事件对应的时空信息,调用长待机模型生成模块预测该灭屏事件后是否进入长待机模式,然后根据目标参数修正预测结果,最终确定是否进入长待机模式。The long standby prediction module is used to respond to the indication of the screen off event fence. According to the spatiotemporal information corresponding to the screen off event that triggers the screen off event fence, the long standby model generation module is called to predict whether to enter the long standby mode after the screen off event, and then the prediction result is corrected according to the target parameters to finally determine whether to enter the long standby mode.
当长待机预测模块预测需要进入长待机模式时,长待机控制模块将对应的控制指令发送至长待机应用。When the long standby prediction module predicts that it is necessary to enter the long standby mode, the long standby control module sends a corresponding control instruction to the long standby application.
长待机应用中包括长待机模块,长待机模块用于响应长待机预测模块发送的控制指令,控制电子设备进入长待机模式。例如,对于安卓系统长待机模块可以指示电子设备进入Doze模式。The long standby application includes a long standby module, which is used to respond to the control instruction sent by the long standby prediction module and control the electronic device to enter the long standby mode. For example, for an Android system, the long standby module can instruct the electronic device to enter the Doze mode.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。例如,“模块”可以是实现上述功能的软件程序、硬件电路或二者结合。所述硬件电路可能包括应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional unit. For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the above-mentioned functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit, and/or other suitable components that support the described functions.
因此,在本申请的实施例中描述的各示例的模块,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Therefore, the modules of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考以下方法实施例中的对应过程,在此不再赘述。In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other and are not used to limit the protection scope of this application. The specific working process of the units and modules in the above system can refer to the corresponding process in the following method embodiment, which will not be repeated here.
图5是本申请实施例提供的进入长待机模式的方法的流程示意图。FIG5 is a flow chart of a method for entering a long standby mode provided in an embodiment of the present application.
参考图5,进入长待机模式的方法包括:Referring to FIG5 , the method for entering the long standby mode includes:
S501、获取电子设备的历史灭屏数据,根据历史灭屏数据,确定多个进入长待机模式的概率。S501. Obtain historical screen-off data of the electronic device, and determine the probability of multiple devices entering the long standby mode based on the historical screen-off data.
一些可能的实现方式中,参考图3,事件采集组件可以在每次发生亮屏事件或灭屏事件时采集事件对应的历史时空信息和目标参数,并将每次采集的事件对应的历史时空信息和目标参数存储在数据中台的历史事件表中。In some possible implementations, referring to Figure 3, the event collection component can collect the historical spatiotemporal information and target parameters corresponding to each screen-on event or screen-off event, and store the historical spatiotemporal information and target parameters corresponding to each collected event in the historical event table of the data center.
计算引擎中的长待机模型生成模块可以根据历史事件表中的数据,处理得到历史灭屏数据。The long standby model generation module in the computing engine can process the historical screen-off data based on the data in the historical event table.
历史灭屏数据包括:历史灭屏事件的历史时空信息和参考信息。历史时空信息包括历史灭屏事件发生的时段和电子设备在历史灭屏事件发生时所处的地点。参考信息包括历史灭屏事件发生的日期、以及电子设备在历史灭屏事件发生后是否处于长待机模式。The historical screen-off data includes: historical spatiotemporal information and reference information of the historical screen-off events. The historical spatiotemporal information includes the time period when the historical screen-off events occurred and the location of the electronic device when the historical screen-off events occurred. The reference information includes the date when the historical screen-off events occurred and whether the electronic device was in long standby mode after the historical screen-off events occurred.
然后长待机模型生成模块根据历史灭屏数据进行训练,得到一个或多个长待机模式的预测模型。每个长待机模式的预测模型包括对应的历史时空信息以及在该历史时空信息下进入长待机模式的概率。每个长待机模式的预测模型可以通过模型文件的形式存储在本地或云端。Then the long standby model generation module is trained based on the historical screen-off data to obtain one or more prediction models for the long standby mode. Each prediction model for the long standby mode includes the corresponding historical spatiotemporal information and the probability of entering the long standby mode under the historical spatiotemporal information. Each prediction model for the long standby mode can be stored locally or in the cloud in the form of a model file.
图6是本申请实施例提供的进入长待机模式的方法中S501的流程示意图。FIG. 6 is a flow chart of S501 in the method for entering the long standby mode provided in an embodiment of the present application.
一些可能的实现方式中,参考图5,S501可以通过以下步骤实现:In some possible implementations, referring to FIG5 , S501 may be implemented by the following steps:
S5011、数据中台在历史事件表中记录来自事件采集组件的亮屏事件或灭屏事件的原始数据。S5011. The data center records the original data of the screen-on event or screen-off event from the event collection component in the historical event table.
一些可能的实现方式中,亮屏事件或灭屏事件通过事件围栏进行监控。当发生亮屏事件或灭屏事件时,事件围栏被触发并指示事件采集组件采集亮屏事件或灭屏事件的原始数据。In some possible implementations, the screen on event or screen off event is monitored through an event fence. When the screen on event or screen off event occurs, the event fence is triggered and instructs the event collection component to collect the original data of the screen on event or screen off event.
其中,亮屏事件或灭屏事件的原始数据包括事件类型、事件发生的时刻以及事件发生的地点信息。事件类型包括亮屏,可记为事件类型1(EventType1);灭屏,可记为事件类型2(EventType2);以及解锁屏,记为事件类型3(EventType3)。事件发生的时刻可以通过自然时间记录。事件发生的地点信息可以包括经纬度、电子设备连接的无线接入点的服务集标识(Service Set Identifier,ssid)、电子设备接入局域网的基础服务集标识(BasicService Set Identifier ,bssid)以及电子设备连接的基站的小区识别码(Cell TowerID,cellid或cid) 。Among them, the original data of the screen-on event or screen-off event includes the event type, the time when the event occurred, and the location information of the event. Event types include screen-on, which can be recorded as event type 1 (EventType1); screen-off, which can be recorded as event type 2 (EventType2); and screen-unlock, which is recorded as event type 3 (EventType3). The time when the event occurred can be recorded by natural time. The location information of the event may include longitude and latitude, the service set identifier (Service Set Identifier, ssid) of the wireless access point to which the electronic device is connected, the basic service set identifier (BasicService Set Identifier, bssid) of the electronic device to access the local area network, and the cell identification code (Cell TowerID, cellid or cid) of the base station to which the electronic device is connected.
S5012、数据中台对原始数据进行数据预处理,得到历史灭屏数据。S5012. The data center performs data preprocessing on the original data to obtain historical screen blackout data.
图7是本申请实施例提供的进入长待机模式的方法中S5012的流程示意图。FIG. 7 is a flow chart of S5012 in the method for entering the long standby mode provided in an embodiment of the present application.
一些可能的实现方式中,参考图6,对原始数据进行数据预处理可以包括以下步骤:In some possible implementations, referring to FIG6 , performing data preprocessing on the original data may include the following steps:
S5012a、清洗原始数据,筛选主动灭屏事件。S5012a. Clean the original data and filter out the active screen-off events.
一些可能的实现方式中,清洗数据是指保留同一时刻的多条亮屏事件、灭屏事件或解锁屏中的第一条。In some possible implementations, cleaning data refers to retaining the first of multiple screen-on events, screen-off events, or screen-unlock events at the same moment.
例如,在10点35分30秒有多个应用同时推送通知,在原始数据中每个应用的推送通知都会被记录为一个亮屏事件。但是在该时刻(例如, 时刻的粒度可以是1秒),电子设备实际仅亮屏一次,因此可以仅将第一条推送通知对应的亮屏事件保留,清洗掉其他的亮屏事件。For example, at 10:35:30, multiple applications simultaneously push notifications, and in the original data, each application's push notification will be recorded as a screen-on event. However, at this moment (for example, the granularity of the moment can be 1 second), the electronic device actually only turns on the screen once, so only the screen-on event corresponding to the first push notification can be retained, and other screen-on events can be cleared.
再例如,在10点35分30秒,电子设备可能通过人脸解锁和指纹解锁同时产生了两个解锁屏。在该时刻(例如, 时刻的粒度可以是1秒),可以仅保留将第一条解锁屏,清洗掉其他的解锁屏。For another example, at 10:35:30, the electronic device may generate two unlock screens simultaneously through face unlocking and fingerprint unlocking. At this moment (for example, the granularity of the moment may be 1 second), only the first unlock screen may be retained, and the other unlock screens may be cleared.
一些可能的实现方式中,筛选主动灭屏事件以及对应的灭屏时长,可以先将原始数据中的亮屏事件、灭屏事件以及解锁屏按照事件发生的时刻的时间顺序排列。In some possible implementations, active screen-off events and corresponding screen-off durations may be filtered by first arranging the screen-on events, screen-off events, and screen-unlock events in the original data in chronological order according to the time when the events occurred.
然后,定位到解锁屏,获取解锁屏之后下一次灭屏事件以及该灭屏事件发生的时刻,该灭屏事件即为主动灭屏事件。Then, locate the unlocked screen, obtain the next screen-off event after the screen is unlocked and the time when the screen-off event occurs, and the screen-off event is an active screen-off event.
最后,根据主动灭屏事件发生的时刻与下一次解锁屏发生的时刻之间的时间差,得到该次主动灭屏事件发生后的灭屏时长。Finally, according to the time difference between the time when the active screen-off event occurs and the time when the screen is unlocked next time, the screen-off duration after the active screen-off event occurs is obtained.
对每次解锁屏进行定位、计算后,即可筛选得到主动灭屏事件,以及得到每次主动灭屏事件发生后对应的灭屏时长。After locating and calculating each time the screen is unlocked, the active screen-off events can be filtered out, as well as the corresponding screen-off duration after each active screen-off event occurs.
在本实施例中,筛选主动灭屏事件可以规避应用推送通知、系统提示等原因导致的非主动灭屏,排除干扰,提高预测的准确度。In this embodiment, filtering active screen-off events can avoid inactive screen-off events caused by application push notifications, system prompts, etc., eliminate interference, and improve the accuracy of prediction.
S5012b、根据主动灭屏事件发生的时刻,关联相同时刻采集的地点信息。S5012b. According to the time when the active screen-off event occurs, associate the location information collected at the same time.
一些可能的实现方式中,主动灭屏事件发生的时刻即为S5012a中解锁屏之后下一次灭屏事件发生的时刻。将在该时刻采集的地点信息与主动灭屏事件进行关联。In some possible implementations, the time when the active screen-off event occurs is the time when the next screen-off event occurs after the screen is unlocked in S5012a. The location information collected at this time is associated with the active screen-off event.
S5012c、根据主动灭屏事件对应的地点信息,标记发生主动灭屏事件的地点。S5012c. Mark the location where the active screen-off event occurs according to the location information corresponding to the active screen-off event.
一些可能的实现方式中,可以先将主动灭屏事件对应的地点信息与预先获取的用户画像中的地点进行比对匹配,若存在匹配的地点,则将该地点标注至主动灭屏事件上。In some possible implementations, the location information corresponding to the active screen-off event can be compared and matched with the location in the pre-acquired user portrait. If there is a matching location, the location is marked on the active screen-off event.
例如,预先获取的用户画像可以是从电子设备中的用户配置文件(userProfiling)中获取的。其中可以包括用户的常驻地(地点)信息,例如,常驻地可以包括多个地点,如家、公司等。For example, the pre-acquired user profile may be obtained from a user profile (userProfiling) in the electronic device, which may include the user's permanent residence (location) information, for example, the permanent residence may include multiple locations, such as home, company, etc.
一些可能的实现方式中,可以先获取常驻地信息对应的地点围栏。例如,若用户配置文件中存在“HomeHistory”字段或“CompanyHistory” 字段,则表示存在家和公司的地点围栏。可以从对应的字段中获取家或公司的地点围栏,地点围栏可以包括对应地点的bssid列表(bssidlist)、ssid列表(ssidlist)、cellid列表(cellidlist)以及中心经纬度等。In some possible implementations, the location fence corresponding to the permanent location information may be obtained first. For example, if there is a "HomeHistory" field or a "CompanyHistory" field in the user profile, it indicates that there are location fences for the home and company. The location fence of the home or company may be obtained from the corresponding field, and the location fence may include a bssid list (bssidlist), a ssid list (ssidlist), a cellid list (cellidlist), and the center longitude and latitude of the corresponding location.
一些可能的实现方式中,在获取到常驻地信息对应的地点围栏后,根据主动灭屏事件关联的地点信息,按照优先级进行匹配。例如,优先级可以按照bssidlist、ssidlist、cellidlist、中心经纬度的顺序。In some possible implementations, after obtaining the location fence corresponding to the permanent location information, matching is performed according to the location information associated with the active screen off event according to the priority. For example, the priority can be in the order of bssidlist, ssidlist, cellidlist, and center longitude and latitude.
例如,可以先使用主动灭屏事件关联的地点信息中的bssid与每个常驻地信息对应的地点围栏中的bssidList进行匹配,若在某个地点围栏的bssidlist中匹配到相同的bssid,则将该地点围栏对应的常驻地标注为该主动灭屏事件发生的地点。For example, you can first use the bssid in the location information associated with the active screen-off event to match the bssidList in the location fence corresponding to each permanent location information. If the same bssid is matched in the bssidlist of a certain location fence, the permanent location corresponding to the location fence is marked as the location where the active screen-off event occurred.
其中,若在不同的地点围栏中存在相同的bssid、ssid或cellid。在进行匹配时可能会存在匹配到多个地点围栏的情况。这个情况下,可以获取每个地点围栏中相同的bssid、ssid或cellid的时间戳(timestamp)。将时间戳最新的一个地点围栏对应的常驻地标注为该主动灭屏事件发生地点。If the same bssid, ssid or cellid exists in different location fences, multiple location fences may be matched during matching. In this case, the timestamp of the same bssid, ssid or cellid in each location fence can be obtained. The permanent location corresponding to the location fence with the latest timestamp is marked as the location where the active screen off event occurred.
对于未匹配到bssid、ssid或cellid时,可以根据主动灭屏事件关联的地点信息中的经纬度以及每个地点围栏的中心经纬度,计算主动灭屏事件关联的地点与每个地点围栏中心的距离,若主动灭屏事件关联的地点与某个地点围栏中心的距离小于或等于预设距离,如200米,则将该地点围栏对应的常驻地标注为主动灭屏事件发生的地点。When no bssid, ssid or cellid is matched, the distance between the location associated with the active screen off event and the center of each location fence can be calculated based on the longitude and latitude in the location information associated with the active screen off event and the center longitude and latitude of the fence of each location. If the distance between the location associated with the active screen off event and the center of a location fence is less than or equal to the preset distance, such as 200 meters, the permanent location corresponding to the fence of that location is marked as the location where the active screen off event occurred.
对于bssid、ssid、cellid以及中心经纬度均为匹配到的地点信息,可以将主动灭屏事件发生的地点标注为其他(other)。当在其他中存在多个相同或相近的地点时,可以根据多个相同或相近的地点生成新的地点围栏。其中,相近的地点是指根据经纬度计算得到的距离小于或等于预设距离的地点。If bssid, ssid, cellid, and center longitude and latitude are all matched location information, the location where the active screen off event occurs can be marked as other. When there are multiple identical or similar locations in other, a new location fence can be generated based on multiple identical or similar locations. Among them, a similar location refers to a location whose distance calculated based on longitude and latitude is less than or equal to the preset distance.
S5013、计算引擎从历史事件表中获取第一预设时长内的历史灭屏数据。S5013. The computing engine obtains historical screen-off data within a first preset time period from the historical event table.
一些可能的实施方式中,可以每天根据历史灭屏数据,确定一次多个进入长待机模式的概率,或者也可以在接收到的模型更新指令后,根据历史灭屏数据,确定一次多个进入长待机模式的概率。In some possible implementations, the probability of entering the long standby mode multiple times at a time can be determined based on historical screen off data every day, or the probability of entering the long standby mode multiple times at a time can be determined based on historical screen off data after receiving a model update instruction.
例如,计算引擎可以每天在预设的时刻(如凌晨2点、凌晨5点等),依次执行S5013至S5018的步骤。或者,电子设备可以在接收到来自用户的更新指令后,指示计算引擎依次执行S5013至S5018的步骤。For example, the computing engine may sequentially execute steps S5013 to S5018 at a preset time (such as 2 a.m., 5 a.m., etc.) every day. Alternatively, the electronic device may instruct the computing engine to sequentially execute steps S5013 to S5018 after receiving an update instruction from the user.
一些可能的实现方式中,计算引擎从历史事件表中获取的历史灭屏数据包括:历史灭屏事件的历史时空信息和参考信息。In some possible implementations, the historical screen-off data obtained by the computing engine from the historical event table includes: historical temporal and spatial information and reference information of the historical screen-off events.
作为示例,历史灭屏事件可以是在第一预设时长发生的每次主动灭屏事件,则历史时空信息包括每次主动灭屏事件发生的时段和地点。参考信息包括每次历史灭屏事件发生的日期,以及历史灭屏事件发生后电子设备是否处于长待机模式。As an example, a historical screen-off event may be each active screen-off event that occurs within a first preset duration, and the historical spatiotemporal information includes the time period and location of each active screen-off event. The reference information includes the date of each historical screen-off event, and whether the electronic device is in long standby mode after the historical screen-off event occurs.
其中,第一预设时长指采集数据的时长,例如可以是一周、一个月或者3个月等。历史灭屏事件发生的地点即为根据历史灭屏事件关联的地点信息标注的地点,如家、公司、其他等。The first preset duration refers to the duration of data collection, for example, one week, one month, or three months, etc. The location where the historical screen-off event occurred is the location marked according to the location information associated with the historical screen-off event, such as home, company, or other.
一些可能的实现方式中,可以将一天24小时按照一定时长划分为多个时段,记录历史灭屏事件发生的时刻对应的时段。作为示例,可以将一天24小时按照半个小时为一个时段,划分为48个时段,历史灭屏事件发生的时刻落入哪个时段,即将历史灭屏事件发生的时段列入该时段。In some possible implementations, 24 hours a day can be divided into multiple time periods according to a certain length, and the time period corresponding to the time when the historical screen-off event occurred can be recorded. As an example, 24 hours a day can be divided into 48 time periods with half an hour as a time period, and the time period in which the historical screen-off event occurs is included in the time period.
例如,历史灭屏事件发生在10点35分30秒,在一天48个时段中,该时刻落入第22时段(10:30~11:00)。则可以将历史灭屏事件发生的时段记为22,即该历史灭屏事件对应的历史时空信息中的时段为22。For example, the historical screen-off event occurred at 10:35:30, which falls into the 22nd time period (10:30-11:00) among the 48 time periods in a day. Then the time period when the historical screen-off event occurred can be recorded as 22, that is, the time period in the historical spatiotemporal information corresponding to the historical screen-off event is 22.
一些可能的实现方式中,获取历史灭屏事件发生后电子设备是否处于长待机模式,可以根据历史灭屏事件发生后对应的灭屏时长,确定历史灭屏事件发生后电子设备是否处于长待机模式,然后进行记录。In some possible implementations, whether the electronic device is in long standby mode after a historical screen off event occurs can be obtained. Whether the electronic device is in long standby mode after the historical screen off event occurs can be determined based on the corresponding screen off duration after the historical screen off event occurs, and then recorded.
例如,对于安卓系统,历史灭屏事件发生后进入Doze模式的等待时长为30分钟。对此,可以将历史灭屏事件发生后对应的灭屏时长大于30分钟的,确定为历史灭屏事件发生后电子设备处于长待机模式;将历史灭屏事件发生后对应的灭屏时长小于或等于30分钟的,确定为历史灭屏事件发生后电子设备未处于长待机模式。For example, for the Android system, the waiting time for entering Doze mode after a historical screen-off event occurs is 30 minutes. In this regard, if the screen-off time corresponding to the historical screen-off event is greater than 30 minutes, it can be determined that the electronic device is in long standby mode after the historical screen-off event occurs; if the screen-off time corresponding to the historical screen-off event is less than or equal to 30 minutes, it can be determined that the electronic device is not in long standby mode after the historical screen-off event occurs.
作为示例,对于每个历史灭屏事件,可以设置一个历史灭屏事件发生后电子设备处于长待机模式的标识符,标识符记录为1时,即表示历史灭屏事件发生后电子设备处于长待机模式。标识符记录为0时,即表示历史灭屏事件发生后电子设备未处于长待机模式。As an example, for each historical screen-off event, an identifier can be set to indicate that the electronic device is in long standby mode after the historical screen-off event occurs. When the identifier is recorded as 1, it indicates that the electronic device is in long standby mode after the historical screen-off event occurs. When the identifier is recorded as 0, it indicates that the electronic device is not in long standby mode after the historical screen-off event occurs.
S5014、获取第一预设时长内,相同地点的对应的不同时段的参考信息。S5014. Obtain reference information of different time periods corresponding to the same location within the first preset time period.
一些可能的实现方式中,第一预设时长内,历史灭屏数据可能会包括个历史灭屏事件对应的历史时空信息和参考信息。遍历历史灭屏数据,筛选历史时空信息中地点相同的历史灭屏事件,并获取每个地点下不同时段的参考信息。In some possible implementations, within the first preset time period, the historical screen-off data may include historical spatiotemporal information and reference information corresponding to each historical screen-off event. The historical screen-off data is traversed to filter the historical screen-off events with the same location in the historical spatiotemporal information, and reference information of different time periods at each location is obtained.
S5015、根据多个参考信息确定在相同地点每个时段发生灭屏事件后进入长待机模式的概率。S5015. Determine the probability of entering the long standby mode after a screen off event occurs at the same location in each time period based on multiple reference information.
一些可能的实现方式中,可以根据相同时段、相同地点发生的历史灭屏事件对应的参考信息中,历史灭屏时刻对应的日期与当前日期之间的间隔确定权重系数。根据每个历史灭屏事件发生后是否处于长待机模式、权重系数,获取在相同地点每个时段发生灭屏事件后进入长待机模式的概率。In some possible implementations, the weight coefficient can be determined based on the interval between the date corresponding to the historical screen-off moment and the current date in the reference information corresponding to the historical screen-off events that occurred at the same time period and the same location. The probability of entering the long standby mode after the screen-off event occurs in each time period at the same location is obtained based on whether the device is in the long standby mode and the weight coefficient after each historical screen-off event occurs.
参考S5013,假设当前日期为2023年4月8日,第一预设时长为7天,表1中示出了历史灭屏数据的中7个相同地点相同时段的参考信息以及权重系数:Referring to S5013, assuming that the current date is April 8, 2023, and the first preset duration is 7 days, Table 1 shows the reference information and weight coefficients of the same 7 locations and time periods in the historical screen-off data:
表1Table 1
一些可能的实施方式中,参考表1,在地点为公司,时段为27时,发生灭屏事件后进入长待机模式的概率(P)可以根据表1进行计算,公式如下:In some possible implementations, referring to Table 1, when the location is the company and the time period is 27:00, the probability (P) of entering the long standby mode after the screen off event occurs can be calculated according to Table 1, and the formula is as follows:
例如,参考表1,根据公式计算,在地点为公司,时段为27时,发生灭屏事件后进入长待机模式的概率为:0.89。For example, referring to Table 1, according to the formula, when the location is the company and the time period is 27:00, the probability of entering the long standby mode after the screen off event occurs is: 0.89.
一些可能的实施方式中,对于每个地点的每个时段,均可根据历史灭屏数据,参考上述方式进行计算,得到每个地点每个时段发生灭屏事件后进入长待机模式的概率。In some possible implementations, for each time period at each location, the probability of entering long standby mode after a screen off event occurs at each location and in each time period can be calculated based on historical screen off data and with reference to the above method.
在本实施例中,通过根据历史灭屏时刻对应的日期与当前日期之间的间隔确定权重系数,可以提高近期历史灭屏事件的权重,能够更加准确的学习用户近期习惯,提高预测的准确度。In this embodiment, by determining the weight coefficient based on the interval between the date corresponding to the historical screen-off moment and the current date, the weight of recent historical screen-off events can be increased, and the user's recent habits can be learned more accurately, thereby improving the accuracy of the prediction.
一些可能的实施方式中,在对每个地点的每个时段进行计算时,可以将每个时段前后各多取一个时间滑窗的数据进行计算。例如,假设时间滑窗的窗口为15分钟,对于时段27(13:00~13:30),可以获取12:45~13:45的数据进行计算。In some possible implementations, when calculating each time period at each location, data from one more time sliding window before and after each time period may be taken for calculation. For example, assuming that the time sliding window is 15 minutes, for time period 27 (13:00-13:30), data from 12:45-13:45 may be obtained for calculation.
例如,若存在发生在12:59分的历史灭屏事件。对于时段27,原本未包括该历史灭屏事件,但是12:59分发生的历史灭屏事件有可能会延续到时段27中,未考虑该历史灭屏事件会导致时段27的预测准确度受到影响。For example, if there is a historical screen-off event that occurred at 12:59, the time period 27 was not originally included in the historical screen-off event, but the historical screen-off event that occurred at 12:59 may continue into the time period 27. Failure to consider the historical screen-off event will affect the prediction accuracy of the time period 27.
在本实施例中,通过可以将靠近时段分界点的数据也考虑进来,可以有效提高预测的准确度。In this embodiment, the accuracy of the prediction can be effectively improved by taking the data close to the time period dividing point into consideration.
S5016、确定每个时段对应的第二概率阈值。S5016. Determine a second probability threshold corresponding to each time period.
一些可能的实施方式中,第二概率阈值可以是每个时段的准出阈值。即,当一个时段发生灭屏事件后进入长待机模式的概率大于第二概率阈值时,该时段发生灭屏事件后进入长待机模式的概率才会被发布并使用。In some possible implementations, the second probability threshold may be an exit threshold for each time period. That is, when the probability of entering the long standby mode after a screen-off event occurs in a time period is greater than the second probability threshold, the probability of entering the long standby mode after a screen-off event occurs in the time period will be published and used.
一些可能的实施方式中,可以根据第一预设时长,确定第二概率阈值。In some possible implementations, the second probability threshold may be determined based on the first preset duration.
作为示例,可以根据第一预设时长确定对应的时长权重。将时长权重输入预先设置的函数中,得到第二概率阈值。As an example, the corresponding duration weight may be determined according to the first preset duration, and the duration weight is input into a preset function to obtain the second probability threshold.
其中,函数可以在电子设备出厂时,或系统更新时进行配置。或者,也可以在云端进行配置,通过电子设备与云端通信获取等,本申请对此不做限制。The function may be configured when the electronic device leaves the factory or when the system is updated. Alternatively, the function may be configured in the cloud and obtained through communication between the electronic device and the cloud, etc., which is not limited in this application.
例如,表2示出了一种根据第一预设时长,确定第二概率阈值的方案。For example, Table 2 shows a solution for determining the second probability threshold according to the first preset duration.
表2Table 2
表3示出了另一种根据第一预设时长,确定第二概率阈值的方案。Table 3 shows another solution for determining the second probability threshold according to the first preset time length.
表3Table 3
表4示出了又一种根据第一预设时长,确定第二概率阈值的方案。Table 4 shows another solution for determining the second probability threshold according to the first preset duration.
表4Table 4
参考表2、表3和表4中的示例,第一预设时长越长,获取的历史灭屏数据越多,第二概率阈值则可以适当的降低。第二概率阈值根据第一预设时长动态变化。Referring to the examples in Table 2, Table 3 and Table 4, the longer the first preset duration is, the more historical screen-off data is obtained, and the second probability threshold can be appropriately lowered. The second probability threshold changes dynamically according to the first preset duration.
在本实施例中,通过动态变化的第二概率阈值,可以更准确地给出相同地点下,每个时段发生灭屏事件后进入长待机模式的概率,提高预测的准确性。In this embodiment, by using a dynamically changing second probability threshold, the probability of entering the long standby mode after a screen off event occurs in each time period at the same location can be given more accurately, thereby improving the accuracy of the prediction.
S5017、对于每个时段,确定发生灭屏事件后进入长待机模式的概率是否大于或等于对应的第二概率阈值,若是,则执行S5018,若否,则结束流程。S5017. For each time period, determine whether the probability of entering the long standby mode after the screen off event occurs is greater than or equal to the corresponding second probability threshold. If so, execute S5018; if not, end the process.
一些可能的实施方式中,可以将发生灭屏事件后进入长待机模式的概率是否大于或等于对应的第二概率阈值的时段对应的历史时空信息写入时空信息集合。时空信息集合中包括至少一个符合第二预设条件的历史时空信息,第二预设条件包括历史时空信息对应的进入长待机模式的概率大于或等于所述历史时空信息对应的第二概率阈值。In some possible implementations, the historical spatiotemporal information corresponding to the time period of whether the probability of entering the long standby mode after the screen-off event is greater than or equal to the corresponding second probability threshold can be written into the spatiotemporal information set. The spatiotemporal information set includes at least one historical spatiotemporal information that meets the second preset condition, and the second preset condition includes that the probability of entering the long standby mode corresponding to the historical spatiotemporal information is greater than or equal to the second probability threshold corresponding to the historical spatiotemporal information.
S5018、将地点和时段写入时空信息集合并发布。S5018. Write the location and time period into the space-time information set and publish it.
一些可能的实施方式中,时空信息集合中包括长待机模型生成模块生成的模型文件。模型文件可以通过如文本文档、JS对象简谱(JavaScriptObject Notation, JSON)等文件形式存储。In some possible implementations, the spatiotemporal information set includes a model file generated by the long standby model generation module. The model file may be stored in a file format such as a text document, JavaScript Object Notation (JSON), or the like.
作为示例,得到以下符合S5017中条件的地点和时段:地点为家,时段14,发生灭屏事件后进入长待机模式的概率为0.8;地点为家,时段47,发生灭屏事件后进入长待机模式的概率为0.9;地点为公司,时段27,发生灭屏事件后进入长待机模式的概率为0.95;地点为其他,时段36,发生灭屏事件后进入长待机模式的概率为0.6;地点为其他,时段20,发生灭屏事件后进入长待机模式的概率为0.85;As an example, the following locations and time periods that meet the conditions in S5017 are obtained: the location is home, the time period is 14, and the probability of entering the long standby mode after the screen off event occurs is 0.8; the location is home, the time period is 47, and the probability of entering the long standby mode after the screen off event occurs is 0.9; the location is the company, the time period is 27, and the probability of entering the long standby mode after the screen off event occurs is 0.95; the location is other, the time period is 36, and the probability of entering the long standby mode after the screen off event occurs is 0.6; the location is other, the time period is 20, and the probability of entering the long standby mode after the screen off event occurs is 0.85;
则模型文件中可以记录为:The model file can be recorded as:
一些可能的实施方式中,可以获取时空信息集合中地点相同的历史时空信息对应的至少一个时段。然后,根据地点和至少一个时段获取每个地点的时间围栏。例如,参考上述模型文件,对于地点“家”,时间围栏为“时段47、时段14”;对于地点“公司”,时间围栏为“时段27”。In some possible implementations, at least one time period corresponding to the historical spatiotemporal information of the same location in the spatiotemporal information set may be obtained. Then, a time fence of each location is obtained based on the location and at least one time period. For example, referring to the above model file, for the location "home", the time fence is "time period 47, time period 14"; for the location "company", the time fence is "time period 27".
一些可能的实施方式中,当时空信息集合发布表示发布模型文件,即时空信息集合中的模型文件启用,长待机预测模块可以调用该模型文件进行预测、推理。In some possible implementations, when the release of the spatiotemporal information set indicates the release of a model file, that is, the model file in the spatiotemporal information set is enabled, the long standby prediction module can call the model file for prediction and reasoning.
S502、在检测到电子设备在非充电状态下发生灭屏事件的情况下,获取灭屏事件对应的第一时空信息。S502: When it is detected that a screen-off event occurs in the electronic device when it is not charging, obtain first spatiotemporal information corresponding to the screen-off event.
一些可能的实施方式中,电子设备的充电状态可以通过接收电源管理器广播的电池状态获取。当充电状态标识为假时,则电子设备处于非充电状态。第一时空信息可以是时间围栏监测到灭屏事件时通知事件采集组件采集的。In some possible implementations, the charging status of the electronic device can be obtained by receiving the battery status broadcast by the power manager. When the charging status indicator is false, the electronic device is in a non-charging state. The first spatiotemporal information can be collected by notifying the event collection component when the time fence detects a screen-off event.
一些可能的实施方式中,灭屏事件可以是主动灭屏事件。主动灭屏事件包括电子设备检测到来自用户的亮屏操作后的自动灭屏事件或电子设备响应来自用户的灭屏操作后的灭屏事件。In some possible implementations, the screen-off event may be an active screen-off event, which includes an automatic screen-off event after the electronic device detects a screen-on operation from a user or a screen-off event after the electronic device responds to a screen-off operation from a user.
需要说明的是,本实施例中主动灭屏事件的检测方式可以参照S5012a中示出的筛选主动灭屏事件的方式,在此不做赘述。It should be noted that the method for detecting active screen-off events in this embodiment can refer to the method for screening active screen-off events shown in S5012a, which will not be elaborated here.
一些可能的实施方式中,可以在发生主动灭屏事件后,经过第二预设时长且第二预设时长内未检测到来自用户的亮屏操作时再获取主动灭屏事件对应的第一时空信息。这样,可以避免用户主动灭屏后短时间内又进行操作的情况,在更加合理的时间进行推理预测,提高推理预测的准确度。作为示例,第二预设时长可以是3分钟、5分钟或10分钟等,本申请对此不做限制。In some possible implementations, after an active screen-off event occurs, the first spatiotemporal information corresponding to the active screen-off event can be obtained after a second preset time has passed and no screen-on operation from the user is detected within the second preset time. In this way, it is possible to avoid the situation where the user performs another operation within a short period of time after actively turning off the screen, and to perform inference prediction at a more reasonable time, thereby improving the accuracy of inference prediction. As an example, the second preset time can be 3 minutes, 5 minutes, or 10 minutes, etc., and this application does not limit this.
S503、获取第一时空信息对应的第一概率。S503: Obtain a first probability corresponding to the first spatiotemporal information.
一些可能的实施方式中,可以先获取与第一时空信息具有相同时段和相同地点的历史时空信息对应的进入长待机模式的概率。然后,将与第一时空信息具有相同时段和相同地点的历史时空信息对应的进入长待机模式的概率作为第一时空信息对应的第一概率。In some possible implementations, the probability of entering the long standby mode corresponding to the historical spatiotemporal information having the same time period and the same location as the first spatiotemporal information may be first obtained. Then, the probability of entering the long standby mode corresponding to the historical spatiotemporal information having the same time period and the same location as the first spatiotemporal information is used as the first probability corresponding to the first spatiotemporal information.
例如,第一时空信息中时段为27,地点为公司。长待机预测模块可以根据第一时空信息在S5018的示例中时空信息集合发布的模型文件中匹配,得到第一时空信息对应的第一概率为0.95。For example, the time period in the first spatiotemporal information is 27 and the location is the company. The long standby prediction module can match the first spatiotemporal information in the model file published by the spatiotemporal information set in the example of S5018 to obtain a first probability corresponding to the first spatiotemporal information of 0.95.
一些可能的实施方式中,参考S5018中示出的每个地点的时间围栏。可以先根据所述第一时空信息中的地点获取对应的时间围栏,当第一时空信息中的时段落入对应的时间围栏中时,获取与第一时空信息具有相同时段和相同地点的所述历史时空信息的进入长待机模式的概率。将与第一时空信息具有相同时段和相同地点的历史时空信息对应的进入长待机模式的概率作为第一时空信息对应的第一概率。In some possible implementations, refer to the time fence of each location shown in S5018. The corresponding time fence can be first obtained according to the location in the first spatiotemporal information, and when the time period in the first spatiotemporal information falls into the corresponding time fence, the probability of entering the long standby mode of the historical spatiotemporal information having the same time period and the same location as the first spatiotemporal information is obtained. The probability of entering the long standby mode corresponding to the historical spatiotemporal information having the same time period and the same location as the first spatiotemporal information is used as the first probability corresponding to the first spatiotemporal information.
例如,若第一时空信息中时段为27,地点为公司。事件围栏可以根据第一时空信息中的地点“公司”获取时间围栏“时段27”。第一时空信息中的时段也为27,即第一时空信息中的时段落入了时间围栏中。事件围栏指示长待机预测模块根据“公司”和“时段27”,在S5018的示例中时空信息集合发布的模型文件中进行匹配,最终得到第一时空信息对应的第一概率为0.95。For example, if the time period in the first spatiotemporal information is 27 and the location is the company. The event fence can obtain the time fence "time period 27" according to the location "company" in the first spatiotemporal information. The time period in the first spatiotemporal information is also 27, that is, the time period in the first spatiotemporal information is included in the time fence. The event fence instructs the long standby prediction module to match the model file published by the spatiotemporal information set in the example of S5018 according to "company" and "time period 27", and finally obtains the first probability corresponding to the first spatiotemporal information as 0.95.
若第一时空信息中时段为29,地点为公司。事件围栏可以根据第一时空信息中的地点“公司”获取时间围栏“时段27”。第一时空信息中的时段为29,即第一时空信息中的时段未落入了时间围栏中。这个情况下,事件围栏不做响应,即不指示长待机预测模块进行推理预测。If the time period in the first spatiotemporal information is 29 and the location is the company, the event fence can obtain the time fence "time period 27" according to the location "company" in the first spatiotemporal information. The time period in the first spatiotemporal information is 29, that is, the time period in the first spatiotemporal information does not fall into the time fence. In this case, the event fence does not respond, that is, it does not instruct the long standby prediction module to perform inference prediction.
在本实施例中,通过设置时间围栏,可以避免对无效的时空信息(即无法匹配到对应的第一概率的时空信息)进行推理预测,减少电子设备的功耗,提高电子设备的续航时间。In this embodiment, by setting a time fence, it is possible to avoid inference prediction of invalid spatiotemporal information (i.e., spatiotemporal information that cannot be matched to the corresponding first probability), reduce the power consumption of the electronic device, and improve the battery life of the electronic device.
S504、确定第一概率是否大于或等于第一时空信息对应的第一概率阈值,若是则执行S505,否则结束流程。S504: Determine whether the first probability is greater than or equal to a first probability threshold corresponding to the first spatiotemporal information. If so, execute S505; otherwise, terminate the process.
一些可能的实施方式中,第一概率阈值等于第二概率阈值。获取第一概率阈值的方式与S5016中获取第二概率阈值的方式相同,在此不做赘述。In some possible implementations, the first probability threshold is equal to the second probability threshold. The method for obtaining the first probability threshold is the same as the method for obtaining the second probability threshold in S5016, and will not be described in detail here.
作为示例,S503中第一时空信息中的地点为“公司”时段为“时段27”,假设第一预设时长为30天。第一概率为0.95。第一概率阈值等于第二概率阈值,参考S5016中的表2,第一概率阈值为0.85。确定第一概率大于第一概率阈值,执行S505。As an example, the location in the first spatiotemporal information in S503 is "company" and the time period is "time period 27", assuming that the first preset time period is 30 days. The first probability is 0.95. The first probability threshold is equal to the second probability threshold. Referring to Table 2 in S5016, the first probability threshold is 0.85. It is determined that the first probability is greater than the first probability threshold, and S505 is executed.
S505、获取电子设备的目标参数。S505: Obtain target parameters of the electronic device.
一些可能的实施方式中,目标参数包括发生灭屏事件时的环境参数、发生灭屏事件后的运动状态以及发生灭屏事件时的后台应用序列中的至少一种。In some possible implementations, the target parameters include at least one of the environmental parameters when the screen off event occurs, the motion state after the screen off event occurs, and the background application sequence when the screen off event occurs.
其中,获取发生灭屏事件时的环境参数以及发生灭屏事件时的后台应用序列可以参考S5011。事件采集组件采集的亮屏事件或灭屏事件的原始数据时,可以同时采集发生灭屏事件时的环境参数以及发生灭屏事件时的后台应用序列。Among them, obtaining the environmental parameters when the screen off event occurs and the background application sequence when the screen off event occurs can refer to S5011. When the event collection component collects the original data of the screen on event or screen off event, the environmental parameters when the screen off event occurs and the background application sequence when the screen off event occurs can be collected at the same time.
例如,灭屏事件时的环境参数可以包括环境光照强度、环境声音强度、环境温度中的至少一种。采集灭屏事件时的环境光照强度,可以通过图1中示出的环境光传感器180L采集。或者,若存在与电子设备通信连接的,具有光照强度采集功能的智能设备,也可以通过智能设备采集后传输给电子设备。For example, the environmental parameters during the screen off event may include at least one of the ambient light intensity, ambient sound intensity, and ambient temperature. The ambient light intensity during the screen off event can be collected by the ambient light sensor 180L shown in FIG. 1. Alternatively, if there is a smart device with a light intensity collection function that is connected to the electronic device for communication, it can also be collected by the smart device and transmitted to the electronic device.
类似的,环境声音强度可以通过图1中示出的麦克风170C采集,或者通过与电子设备通信连接的,具有声音强度采集功能的智能设备采集。采集环境温度的方式也与之类似,可以通过图1中示出的温度传感器180J采集,或者通过与电子设备通信连接的,具有温度采集功能的智能设备采集。Similarly, the ambient sound intensity can be collected by the microphone 170C shown in FIG1 , or by a smart device with a sound intensity collection function connected to the electronic device for communication. The ambient temperature can be collected in a similar manner, and can be collected by the temperature sensor 180J shown in FIG1 , or by a smart device with a temperature collection function connected to the electronic device for communication.
作为示例,采集发生灭屏事件时的后台应用序列可以获取发生灭屏事件时的后台应用列表,根据后台应用列表中每个应用上一次在前台激活的时间排序,得到发生灭屏事件时的后台应用序列。或者,还可以采集后台应用列表中每个应用的使用时长、耗电量或内存占用数量等。As an example, the background application sequence when the screen goes out event can be collected to obtain the background application list when the screen goes out event occurs, and the background application sequence when the screen goes out event occurs can be obtained by sorting the background application list according to the time when each application was last activated in the foreground. Alternatively, the usage time, power consumption or memory usage of each application in the background application list can be collected.
S506、确定目标参数是否符合第一预设条件,若是则执行S507,否则结束流程。S506: Determine whether the target parameter meets the first preset condition. If so, execute S507; otherwise, end the process.
一些可能的实施方式中,当目标参数包括发生灭屏事件时的环境参数时,参考信息还可以包括电子设备发生历史灭屏事件时的历史环境参数,即S505中的示例,在事件采集组件采集的亮屏事件或灭屏事件的原始数据时,可以同时采集发生灭屏事件时的环境参数作为历史环境参数。对于相同地点相同时段的采集的多个环境参数,可以取其平均值作为历史环境参数。In some possible implementations, when the target parameters include environmental parameters when a screen-off event occurs, the reference information may also include historical environmental parameters when a historical screen-off event occurs on the electronic device, i.e., in the example of S505, when the event collection component collects the original data of the screen-on event or screen-off event, the environmental parameters when the screen-off event occurs may be collected at the same time as the historical environmental parameters. For multiple environmental parameters collected at the same location and during the same period, their average value may be taken as the historical environmental parameter.
一些可能的实施方式中,确定电子设备发生灭屏事件时的环境参数符合第一预设条件,可以先获取将第一时空信息对应的时段和地点的历史环境参数。In some possible implementations, to determine whether the environmental parameters when the screen goes off event occurs on the electronic device meet the first preset condition, the historical environmental parameters of the time period and location corresponding to the first spatiotemporal information can be first obtained.
然后,将电子设备发生灭屏事件时的环境参数与历史环境参数进行比对,当电子设备发生灭屏事件时的环境参数与历史环境参数相同或相近时,确定目标参数符合第一预设条件。Then, the environmental parameters when the screen goes off on the electronic device are compared with the historical environmental parameters. When the environmental parameters when the screen goes off on the electronic device are the same as or similar to the historical environmental parameters, it is determined that the target parameters meet the first preset conditions.
其中,电子设备发生灭屏事件时的环境参数与历史环境参数相同或相近是指电子设备发生灭屏事件时的环境参数与历史环境参数数值相同,或者数值之间的差值小于预设差值范围。Among them, the environmental parameters of the electronic device when the screen goes off event is the same or similar to the historical environmental parameters means that the environmental parameters of the electronic device when the screen goes off event is the same as the historical environmental parameters, or the difference between the values is less than a preset difference range.
例如,当环境参数为环境光照强度时,历史环境参数为历史环境光照强度。假设历史环境光照强度为100勒克斯(lx)。若电子设备发生灭屏事件时的环境光照强度也为100lx,则可以确认电子设备发生灭屏事件时的环境参数与历史环境参数相同。For example, when the environmental parameter is the ambient light intensity, the historical environmental parameter is the historical ambient light intensity. Assume that the historical ambient light intensity is 100 lux (lx). If the ambient light intensity when the screen goes off on the electronic device is also 100lx, it can be confirmed that the environmental parameter when the screen goes off on the electronic device is the same as the historical environmental parameter.
或者,当预设差值范围为10lx时,对于历史环境光照强度为100勒克斯(lx),若电子设备发生灭屏事件时的环境光照强度大于或等于90lx且小于或等于110lx,则可以确认电子设备发生灭屏事件时的环境参数与历史环境参数相似。Alternatively, when the preset difference range is 10lx, for the historical ambient light intensity of 100 lux (lx), if the ambient light intensity when the screen goes off on the electronic device is greater than or equal to 90lx and less than or equal to 110lx, it can be confirmed that the environmental parameters when the screen goes off on the electronic device are similar to the historical environmental parameters.
还有一些可能的实施方式中,在电子设备进入长灭屏模式时,用户大概率会处于弱光、低噪声等安静的环境中。故,若确定电子设备发生灭屏事件时所处的环境为弱光或低噪声环境,则也可以确定目标参数符合第一预设条件。In some other possible implementations, when the electronic device enters the long screen-off mode, the user is likely to be in a quiet environment such as low light and low noise. Therefore, if it is determined that the environment in which the electronic device is located when the screen-off event occurs is a low light or low noise environment, it can also be determined that the target parameter meets the first preset condition.
作为示例,当环境参数包括环境光照强度或环境声音强度时,若当电子设备发生灭屏事件时的环境参数小于历史环境参数,和/或,电子设备发生灭屏事件时的环境参数小于或等于环境参数阈值时,确定目标参数符合第一预设条件。As an example, when the environmental parameters include ambient light intensity or ambient sound intensity, if the environmental parameters when the screen turns off on the electronic device are less than the historical environmental parameters, and/or the environmental parameters when the screen turns off on the electronic device are less than or equal to the environmental parameter threshold, it is determined that the target parameter meets the first preset condition.
例如,当环境参数为环境光照强度时,假设历史环境光照强度为100勒克斯(lx),若电子设备发生灭屏事件时的环境光照强度小于100lx,即电子设备发生灭屏事件时处于弱光环境,则也可以确定目标参数符合第一预设条件。For example, when the environmental parameter is the ambient light intensity, assuming that the historical ambient light intensity is 100 lux (lx), if the ambient light intensity when the electronic device turns off the screen is less than 100lx, that is, the electronic device is in a low-light environment when the screen turns off, then it can also be determined that the target parameter meets the first preset condition.
或者,当环境参数为环境光照强度时,假设历史环境光照强度为50勒克斯(lx),环境参数阈值为100lx。若电子设备发生灭屏事件时的环境光照强度大于50lx,但是小于100lx,则电子设备发生灭屏事件时处于弱光环境,则也可以确定目标参数符合第一预设条件。Alternatively, when the environmental parameter is the ambient light intensity, assuming that the historical ambient light intensity is 50 lux (lx), the environmental parameter threshold is 100lx. If the ambient light intensity when the electronic device turns off the screen is greater than 50lx but less than 100lx, the electronic device is in a low-light environment when the screen turns off, and it can also be determined that the target parameter meets the first preset condition.
需要说明的是,当电子设备发生灭屏事件时的环境参数与历史环境参数相同或相近时,表示电子设备所处的环境与历史环境相似,符合用户的习惯,预测结果无需修正。当电子设备发生灭屏事件时的环境参数与历史环境参数不同或相差较大时,表示电子设备所处的环境与历史环境相差较大,与用户的习惯不符,可以修正预测结果。It should be noted that when the environmental parameters of the electronic device when the screen goes off are the same or similar to the historical environmental parameters, it means that the environment of the electronic device is similar to the historical environment, which is in line with the user's habits, and the prediction result does not need to be corrected. When the environmental parameters of the electronic device when the screen goes off are different from or greatly different from the historical environmental parameters, it means that the environment of the electronic device is greatly different from the historical environment, which is inconsistent with the user's habits, and the prediction result can be corrected.
一些可能的实施方式中,目标参数还可以包括在电子设备发生灭屏时间后的第二预设时长内电子设备的运动状态。其中,第二预设时长与S502中的相同,在此不做赘述。In some possible implementations, the target parameter may also include the motion state of the electronic device within a second preset time period after the screen-off time of the electronic device occurs. The second preset time period is the same as that in S502 and will not be described in detail here.
作为示例,确定目标参数符合第一预设条件,可以当未检测到电子设备在第二预设时长内发生运动时,确定目标参数符合第一预设条件。As an example, it is determined that the target parameter meets the first preset condition. When no movement of the electronic device is detected within a second preset time period, it is determined that the target parameter meets the first preset condition.
一些可能的实施方式中,检测电子设备在第二预设时长内发生运动,可以通过图1中示出的陀螺仪传感器180B和/或加速度传感器180E实现。例如,当检测到陀螺仪传感器检测到电子设备的姿态发生变化,且加速度传感器检测到某个方向产生了加速度时,即可确认电子设备发生运动。In some possible implementations, detecting that the electronic device moves within the second preset time period can be achieved by the gyroscope sensor 180B and/or the acceleration sensor 180E shown in Figure 1. For example, when the gyroscope sensor detects that the posture of the electronic device has changed, and the acceleration sensor detects that acceleration has occurred in a certain direction, it can be confirmed that the electronic device has moved.
需要说明的是,根据对用户习惯的分析,发生灭屏事件且电子设备进入长待机模式时,电子设备静止(即不发生运动)的概率在80%~90%之间。故,当检测电子设备在第二预设时长内发生运动时,表示电子设备可能不会进入长待机模式,可以修正预测结果。It should be noted that, based on the analysis of user habits, when a screen-off event occurs and the electronic device enters the long standby mode, the probability that the electronic device is stationary (i.e., not moving) is between 80% and 90%. Therefore, when the electronic device is detected to be moving within the second preset time, it means that the electronic device may not enter the long standby mode, and the prediction result can be corrected.
还有一些可能的实施方式中,目标参数还可以包括电子设备发生灭屏事件时的后台应用序列。参考信息还包括电子设备发生所述历史灭屏事件时的第二特征,第二特征是电子设备在第一预设时长内进入长待机模式后获取的发生历史灭屏事件时对应的后台应用序列的特征。In some other possible implementations, the target parameter may also include a background application sequence when a screen-off event occurs on the electronic device. The reference information also includes a second feature when the electronic device has the historical screen-off event, and the second feature is a feature of the background application sequence corresponding to the historical screen-off event obtained after the electronic device enters the long standby mode within the first preset time.
作为示例,确定目标参数符合第一预设条件,可以包括获取电子设备发生灭屏事件时的后台应用序列的第一特征。当第一特征和至少一个与第一时空信息第一时空信息地点相同、时段相同的第二特征相匹配时,确定目标参数符合第一预设条件。As an example, determining that the target parameter meets the first preset condition may include obtaining a first feature of a background application sequence when a screen-off event occurs in the electronic device. When the first feature matches at least one second feature having the same location and time period as the first spatiotemporal information, it is determined that the target parameter meets the first preset condition.
其中,第一特征和第二特征可以包括后台应用序列的顺序、后台应用序列中每个应用的使用时长等。第一特征和第二特征相匹配则可以是后台应用序列的顺序相同。或者后台应用序列中每个应用的使用时长相同或相近等。The first feature and the second feature may include the order of the background application sequence, the usage time of each application in the background application sequence, etc. The first feature and the second feature may match if the order of the background application sequence is the same, or the usage time of each application in the background application sequence is the same or similar.
需要说明的是,当第一特征和第二特征不匹配时,表示电子设备当前的使用情况与用户习惯不同。表示电子设备可能不会进入长待机模式,可以修正预测结果。It should be noted that when the first feature and the second feature do not match, it means that the current usage of the electronic device is different from the user's habits, which means that the electronic device may not enter the long standby mode, and the prediction result can be corrected.
在本实施例中,当执行S506时,表示第一概率大于第一概率阈值,预测结果为控制电子设备进入长待机模式。修正预测结果则是指将预测结果修正为不控制电子设备进入长待机模式。In this embodiment, when S506 is executed, it means that the first probability is greater than the first probability threshold, and the prediction result is to control the electronic device to enter the long standby mode. Modifying the prediction result means modifying the prediction result to not control the electronic device to enter the long standby mode.
通过目标参数对预测结果进行修正,可以避免误识别,过滤掉错误的预测,提高预测的准确度,为用户提供更好的使用体验。By correcting the prediction results through target parameters, we can avoid misidentification, filter out erroneous predictions, improve the accuracy of predictions, and provide users with a better user experience.
S507、控制电子设备进入长待机模式。S507: Control the electronic device to enter a long standby mode.
一些可能的实施方式中,以安卓设备为例,控制电子设备进入长待机模式,即通过图3中的长待机控制模块,指示长待机应用中的长待机模块,进入Doze模式。类似的,对于运行其他系统的设备,可以指示电子设备进入对应系统提供的长待机模式。若系统未提供长待机模式,可以根据Doze模式为该系统配置长待机模式并进入。In some possible implementations, taking Android devices as an example, the electronic device is controlled to enter the long standby mode, that is, through the long standby control module in Figure 3, the long standby module in the long standby application is instructed to enter the Doze mode. Similarly, for devices running other systems, the electronic device can be instructed to enter the long standby mode provided by the corresponding system. If the system does not provide a long standby mode, the long standby mode can be configured for the system according to the Doze mode and entered.
S508、当检测到电子设备处于充电状态后,控制电子设备退出长待机模式。S508: When it is detected that the electronic device is in a charging state, control the electronic device to exit the long standby mode.
一些可能的实施方式中,当电子设备处于长待机模式时,若检测到电子设备开始充电,则表示电子设备可以不考虑功耗续航的问题,即可以退出长待机模式,提供更好的性能。In some possible implementations, when the electronic device is in the long standby mode, if it is detected that the electronic device starts to charge, it means that the electronic device can ignore the issue of power consumption and battery life, that is, it can exit the long standby mode and provide better performance.
还有一些可能的实现方式中,当电子设备处于长待机模式时,若发生解锁屏或检测到S506中的目标参数不再符合第一预设条件时,表示用户可能需要使用电子设备。这个情况下,也可以退出长待机模式时,为用户提供更好的使用体验。In some other possible implementations, when the electronic device is in the long standby mode, if the unlock screen occurs or it is detected that the target parameter in S506 no longer meets the first preset condition, it means that the user may need to use the electronic device. In this case, when the long standby mode is exited, a better user experience can be provided for the user.
应理解,上述举例说明是为了帮助本领域技术人员理解本申请实施例,而非要将本申请实施例限于所例示的具体数值或具体场景。It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, and are not intended to limit the embodiments of the present application to the specific numerical values or specific scenarios illustrated.
本领域技术人员根据所给出的上述举例说明,显然可以进行各种等价的修改或变化,这样的修改或变化也落入本申请实施例的范围内。It is obvious that those skilled in the art can make various equivalent modifications or changes based on the above examples, and such modifications or changes also fall within the scope of the embodiments of the present application.
应理解,本申请实施例中的硬件系统以及芯片可以执行前述本申请实施例的各种进入长待机模式的方法,即以下各种产品的具体工作过程,可以参考前述方法实施例中的对应过程。It should be understood that the hardware system and chip in the embodiments of the present application can execute the various methods of entering the long standby mode in the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.
本申请实施例还提供另一种电子设备,包括处理器和存储器。An embodiment of the present application also provides another electronic device, including a processor and a memory.
存储器,用于存储可在处理器上运行的计算机程序。Memory is used to store computer programs that can be executed on the processor.
处理器,用于执行如上述所述的进入长待机模式的方法中进行处理的步骤。The processor is used to execute the processing steps in the method for entering the long standby mode as described above.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令;当所述计算机可读存储介质在电子设备上运行时,使得该电子设备执行如前述所示的方法。An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored; when the computer-readable storage medium is executed on an electronic device, the electronic device executes the method as shown above.
所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriberline,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。The computer-readable storage medium may be any available medium that can be accessed by a computer or may include one or more servers, data centers, and other data storage devices that can be integrated with the medium.
所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (eg, a solid state disk (SSD)).
本申请实施例还提供了一种包含计算机指令的计算机程序产品,当其在电子设备上运行时,使得电子设备可以执行前述所示的技术方案。The embodiment of the present application also provides a computer program product including computer instructions, which, when executed on an electronic device, enables the electronic device to execute the technical solution shown above.
图8是本申请实施例提供的一种芯片的结构示意图。图8所示的芯片可以为通用处理器,也可以为专用处理器。该芯片包括处理器801。其中,处理器801用于支持电子设备执行前述所示的技术方案。FIG8 is a schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip shown in FIG8 can be a general-purpose processor or a dedicated processor. The chip includes a processor 801. The processor 801 is used to support the electronic device to execute the technical solution shown above.
可选的,该芯片还包括收发器802,收发器802用于接受处理器801的控制,用于支持通信装置执行前述所示的技术方案。Optionally, the chip further includes a transceiver 802, and the transceiver 802 is used to accept the control of the processor 801 and to support the communication device to execute the technical solution shown above.
可选的,图8所示的芯片还可以包括:存储介质803。Optionally, the chip shown in FIG. 8 may further include: a storage medium 803 .
需要说明的是,图8所示的芯片可以使用下述电路或者器件来实现:一个或多个现场可编程门阵列(field programmable gate array,FPGA)、可编程逻辑器件(programmable logic device,PLD)、控制器、状态机、门逻辑、分立硬件部件、任何其他适合的电路、或者能够执行本申请通篇所描述的各种功能的电路的任意组合。It should be noted that the chip shown in Figure 8 can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGA), programmable logic devices (PLD), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits that can perform the various functions described throughout this application.
上述本申请实施例提供的电子设备、计算机存储介质、计算机程序产品、芯片均用于执行上文所提供的方法,因此,其所能达到的有益效果可参考上文所提供的方法对应的有益效果,在此不再赘述。The electronic device, computer storage medium, computer program product, and chip provided in the above-mentioned embodiments of the present application are all used to execute the methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the methods provided above, and will not be repeated here.
应理解,上述只是为了帮助本领域技术人员更好地理解本申请实施例,而非要限制本申请实施例的范围。本领域技术人员根据所给出的上述示例,显然可以进行各种等价的修改或变化。It should be understood that the above is only to help those skilled in the art to better understand the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application. Those skilled in the art can obviously make various equivalent modifications or changes based on the above examples given.
例如,上述方法的各个实施例中某些步骤可以是不必须的,或者可以新加入某些步骤等。或者上述任意两种或者任意多种实施例的组合。这样的修改、变化或者组合后的方案也落入本申请实施例的范围内。For example, some steps in the various embodiments of the above method may not be necessary, or some new steps may be added, etc. Or any combination of any two or any multiple embodiments above. Such modified, changed or combined solutions also fall within the scope of the embodiments of the present application.
还应理解,上文对本申请实施例的描述着重于强调各个实施例之间的不同之处,未提到的相同或相似之处可以互相参考,为了简洁,这里不再赘述。It should also be understood that the above description of the embodiments of the present application focuses on emphasizing the differences between the various embodiments. The same or similar points that are not mentioned can be referenced to each other. For the sake of brevity, they will not be repeated here.
还应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
还应理解,本申请实施例中,“预先设定”、“预先定义”可以通过在设备(例如,包括电子设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。It should also be understood that in the embodiments of the present application, "pre-setting" and "pre-definition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including an electronic device), and the present application does not limit its specific implementation method.
还应理解,本申请实施例中的方式、情况、类别以及实施例的划分仅是为了描述的方便,不应构成特别的限定,各种方式、类别、情况以及实施例中的特征在不矛盾的情况下可以相结合。It should also be understood that the division of the methods, situations, categories and embodiments in the embodiments of the present application is only for the convenience of description and should not constitute a special limitation. The features of various methods, categories, situations and embodiments can be combined without contradiction.
还应理解,在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310664862.3A CN116382786B (en) | 2023-06-07 | 2023-06-07 | Method for entering long standby mode, electronic device and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310664862.3A CN116382786B (en) | 2023-06-07 | 2023-06-07 | Method for entering long standby mode, electronic device and readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116382786A CN116382786A (en) | 2023-07-04 |
| CN116382786B true CN116382786B (en) | 2023-09-01 |
Family
ID=86971708
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310664862.3A Active CN116382786B (en) | 2023-06-07 | 2023-06-07 | Method for entering long standby mode, electronic device and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116382786B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119277488A (en) * | 2023-07-07 | 2025-01-07 | 华为技术有限公司 | A standby method and electronic equipment |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017184347A1 (en) * | 2016-04-20 | 2017-10-26 | Microsoft Technology Licensing, Llc | Adaptive doze to hibernate |
| CN108647048A (en) * | 2018-05-17 | 2018-10-12 | Oppo(重庆)智能科技有限公司 | Doze mode regulating methods, device, mobile terminal and storage medium |
| CN111050388A (en) * | 2019-12-03 | 2020-04-21 | Oppo广东移动通信有限公司 | Doze mode control method, device, mobile terminal and storage medium |
| CN111290565A (en) * | 2020-01-13 | 2020-06-16 | Oppo广东移动通信有限公司 | Doze mode control method, device, terminal and storage medium |
| CN113050783A (en) * | 2019-12-26 | 2021-06-29 | Oppo广东移动通信有限公司 | Terminal control method and device, mobile terminal and storage medium |
| CN114415816A (en) * | 2021-11-30 | 2022-04-29 | 荣耀终端有限公司 | An information screen display method and electronic device |
| CN114467324A (en) * | 2022-01-10 | 2022-05-10 | 北京小米移动软件有限公司 | Information processing method and device, communication device and storage medium |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11520498B2 (en) * | 2020-06-25 | 2022-12-06 | Intel Corporation | Memory management to improve power performance |
-
2023
- 2023-06-07 CN CN202310664862.3A patent/CN116382786B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017184347A1 (en) * | 2016-04-20 | 2017-10-26 | Microsoft Technology Licensing, Llc | Adaptive doze to hibernate |
| CN108647048A (en) * | 2018-05-17 | 2018-10-12 | Oppo(重庆)智能科技有限公司 | Doze mode regulating methods, device, mobile terminal and storage medium |
| CN111050388A (en) * | 2019-12-03 | 2020-04-21 | Oppo广东移动通信有限公司 | Doze mode control method, device, mobile terminal and storage medium |
| CN113050783A (en) * | 2019-12-26 | 2021-06-29 | Oppo广东移动通信有限公司 | Terminal control method and device, mobile terminal and storage medium |
| CN111290565A (en) * | 2020-01-13 | 2020-06-16 | Oppo广东移动通信有限公司 | Doze mode control method, device, terminal and storage medium |
| CN114415816A (en) * | 2021-11-30 | 2022-04-29 | 荣耀终端有限公司 | An information screen display method and electronic device |
| CN114467324A (en) * | 2022-01-10 | 2022-05-10 | 北京小米移动软件有限公司 | Information processing method and device, communication device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116382786A (en) | 2023-07-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111371938B (en) | Fault detection method and electronic equipment | |
| CN111316199B (en) | Information processing method and electronic equipment | |
| WO2021057452A1 (en) | Method and device for presenting atomic service | |
| CN112671080B (en) | Charging method and device | |
| CN113747374B (en) | A message push method and device | |
| CN112014866B (en) | Motion trail recording method and related equipment | |
| CN114466449B (en) | Position feature obtaining method and terminal equipment | |
| WO2021057472A1 (en) | Display control method and electronic device | |
| CN114546511A (en) | Plug-in management method, system and device | |
| CN111249728A (en) | Image processing method and image processing device | |
| CN116382786B (en) | Method for entering long standby mode, electronic device and readable storage medium | |
| CN116048831B (en) | Target signal processing method and electronic device | |
| CN116070035B (en) | Data processing methods and electronic equipment | |
| CN116400974B (en) | Method for entering long standby mode, electronic device and readable storage medium | |
| CN115513571A (en) | Battery temperature control method and terminal equipment | |
| CN111752648A (en) | A system language switching method and related device | |
| CN116541102B (en) | File preloading method and device, electronic equipment and readable storage medium | |
| CN116049122B (en) | Log information transmission control method, electronic device and storage medium | |
| CN114173286B (en) | Method and device for determining test path, electronic equipment and readable storage medium | |
| CN114489469B (en) | A data reading method, electronic device and storage medium | |
| CN113672454B (en) | Freeze screen monitoring method, electronic device and computer-readable storage medium | |
| CN113886060B (en) | Method and device for compressing memory | |
| CN118524109A (en) | Data synchronization method, electronic equipment and medium | |
| CN116662130A (en) | Method for counting application usage time, electronic device and readable storage medium | |
| CN116737295A (en) | An operation and maintenance information display method and related equipment |
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 | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |