CN106255146B - A kind of electricity-saving control method of terminal, device and terminal - Google Patents
A kind of electricity-saving control method of terminal, device and terminal Download PDFInfo
- Publication number
- CN106255146B CN106255146B CN201610677874.XA CN201610677874A CN106255146B CN 106255146 B CN106255146 B CN 106255146B CN 201610677874 A CN201610677874 A CN 201610677874A CN 106255146 B CN106255146 B CN 106255146B
- Authority
- CN
- China
- Prior art keywords
- wifi
- terminal
- present terminal
- state
- bright screen
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
- H04W52/028—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
-
- 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)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
本发明实施例公开了一种终端的省电控制方法、装置和终端。所述方法包括:检测当前连接的无线保真WiFi状态;当检测到所述WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能。本发明实施例提供的技术方案,通过当前终端在检测到当前连接的WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能,能够在用户不需要使用WiFi时将终端的WiFi功能关闭,减少了终端的耗电量,提升了终端的续航能力。
The embodiment of the invention discloses a terminal power saving control method, device and terminal. The method includes: detecting the state of the currently connected wireless fidelity WiFi; when it is detected that the WiFi meets the condition set to be far away from the current terminal, automatically closing the WiFi function of the current terminal. In the technical solution provided by the embodiment of the present invention, when the current terminal detects that the currently connected WiFi satisfies the condition of being far away from the current terminal, it automatically turns off the WiFi function of the current terminal, so that the terminal's WiFi function can be disabled when the user does not need to use WiFi Turning off reduces the power consumption of the terminal and improves the battery life of the terminal.
Description
技术领域technical field
本发明实施例涉及终端技术领域,尤其涉及一种终端的省电控制方法、装置和终端。Embodiments of the present invention relate to the technical field of terminals, and in particular, to a method and device for controlling power saving of a terminal, and a terminal.
背景技术Background technique
随着终端技术的发展,以手机为例的终端集成了越来越多的功能,目前,无线保真(Wireless Fidelity,WiFi)网络已经成为人们日常生活和工作中常用的一种无线网络,WiFi功能也被广泛的应用到各种终端上,人们可以通过开启WiFi功能访问和下载各种资源,为用户带来了良好的体验。With the development of terminal technology, more and more functions are integrated into terminals such as mobile phones. At present, Wireless Fidelity (WiFi) network has become a kind of wireless network commonly used in people's daily life and work. WiFi The function is also widely applied to various terminals, and people can access and download various resources by turning on the WiFi function, which brings a good experience to users.
但是,当用户离开了WiFi覆盖区域的时候,经常终端所连接的WiFi已经断开了,但终端的WiFi功能还是处于开启状态,终端仍在扫描是否存在可连接的WiFi,虽然WiFi已经没有为用户提供服务,但却耗费着终端的电能,缩短了终端的续航时间。However, when the user leaves the WiFi coverage area, often the WiFi connected to the terminal has been disconnected, but the WiFi function of the terminal is still turned on, and the terminal is still scanning whether there is a WiFi that can be connected, although WiFi is no longer available for the user. Provides services, but consumes the power of the terminal and shortens the battery life of the terminal.
发明内容Contents of the invention
本发明实施例提供一种终端的省电控制方法、装置和终端,以减小终端的耗电量,提升终端的续航能力。Embodiments of the present invention provide a terminal power saving control method, device and terminal, so as to reduce the power consumption of the terminal and improve the battery life of the terminal.
在第一方面,本发明实施例提供了一种终端的省电控制方法,包括:In a first aspect, an embodiment of the present invention provides a terminal power saving control method, including:
检测当前连接的无线保真WiFi状态;Detect the status of the currently connected Wi-Fi WiFi;
当检测到所述WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能。When it is detected that the WiFi satisfies the condition set to be far away from the current terminal, the WiFi function of the current terminal is automatically turned off.
在第二方面,本发明实施例提供了一种终端的省电控制装置,包括:In a second aspect, an embodiment of the present invention provides a terminal power saving control device, including:
WiFi状态检测模块,用于检测当前连接的无线保真WiFi状态;WiFi state detection module, for detecting the wireless fidelity WiFi state of current connection;
第一WiFi功能关闭模块,用于当检测到所述WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能。The first WiFi function disabling module is configured to automatically shut down the WiFi function of the current terminal when it is detected that the WiFi satisfies the condition of being far away from the current terminal.
在第三方面,本发明实施例提供了一种终端,所述终端集成了如第二方面所提供的装置。In a third aspect, an embodiment of the present invention provides a terminal, where the terminal integrates the apparatus provided in the second aspect.
本发明实施例通过当前终端在检测到当前连接的WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能,能够在用户不需要使用WiFi时将终端的WiFi功能关闭,减少了终端的耗电量,提升了终端的续航能力。In the embodiment of the present invention, when the current terminal detects that the currently connected WiFi satisfies the condition of being far away from the current terminal, it automatically turns off the WiFi function of the current terminal, which can turn off the WiFi function of the terminal when the user does not need to use WiFi, reducing the number of terminals. The power consumption improves the battery life of the terminal.
附图说明Description of drawings
图1是本发明实施例一提供的终端的省电控制方法的流程图;FIG. 1 is a flow chart of a terminal power saving control method provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的终端的省电控制方法的流程图;FIG. 2 is a flow chart of a terminal power saving control method provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的终端的省电控制方法的流程图;FIG. 3 is a flow chart of a terminal power saving control method provided by Embodiment 3 of the present invention;
图4是本发明实施例四提供的终端的省电控制方法的流程图;FIG. 4 is a flow chart of a terminal power saving control method provided in Embodiment 4 of the present invention;
图5是本发明实施例五提供的终端的省电控制装置的结构示意图;FIG. 5 is a schematic structural diagram of a power saving control device for a terminal provided in Embodiment 5 of the present invention;
图6是本发明实施例六提供的终端的结构示意图。FIG. 6 is a schematic structural diagram of a terminal provided by Embodiment 6 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the object, technical solution and advantages of the present invention clearer, specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
实施例一Embodiment one
图1给出了本发明实施例一提供的终端的省电控制方法的流程图,本实施例的方法可以由终端的省电控制装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为终端的一部分设置在所述终端内部。FIG. 1 shows a flow chart of a terminal power saving control method provided in Embodiment 1 of the present invention. The method in this embodiment can be executed by a terminal power saving control device, which can be implemented by means of hardware and/or software. , the device may be set inside the terminal as a part of the terminal.
如图1所示,本实施例提供的终端的省电控制方法具体包括以下步骤:As shown in FIG. 1, the terminal power saving control method provided in this embodiment specifically includes the following steps:
步骤101、检测当前连接的无线保真WiFi状态。Step 101 , detecting the status of the currently connected Wi-Fi WiFi.
终端定时检测当前连接的WiFi的状态,或者终端在检测到当前有连接的WiFi时,获取当前连接的WiFi的状态。The terminal periodically detects the status of the currently connected WiFi, or the terminal acquires the status of the currently connected WiFi when detecting the currently connected WiFi.
本实施例中所述的终端包括但不限定于手机、平板电脑、笔记本等具有WiFi功能的设备。The terminals described in this embodiment include but are not limited to mobile phones, tablet computers, notebooks and other devices with WiFi functions.
步骤102、当检测到所述WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能。Step 102, when it is detected that the WiFi satisfies the condition set to be far away from the current terminal, automatically shut down the WiFi function of the current terminal.
其中,所述设定远离当前终端的条件为用于表明当前终端所连接的WiFi对应的接入点(例如,路由器)远离当前路由器的条件,具体可以为当前终端检测到自身与所述接入点之间的距离大于设定距离值时,确定所述WiFi满足设定远离当前终端的条件,或者,当前终端检测到WiFi的接收信号强度(Received Signal Strength Indication,RSSI)小于设定强度值时,确定述WiFi满足设定远离当前终端的条件。Wherein, the condition for setting the distance away from the current terminal is a condition for indicating that the access point (for example, a router) corresponding to the WiFi connected to the current terminal is far away from the current router, specifically, it may be that the current terminal detects that it is not connected with the access point. When the distance between the points is greater than the set distance value, it is determined that the WiFi satisfies the condition of being far away from the current terminal, or when the current terminal detects that the received signal strength (Received Signal Strength Indication, RSSI) of the WiFi is less than the set strength value , determining that the WiFi satisfies the condition of being far away from the current terminal.
一般情况下,用户在离开当前连接的WiFi的覆盖区后,该终端是无法继续访问该WiFi网络的,那么在终端连接的WiFi满足远离当前终端的条件时,自动关闭当前终端的WiFi功能,不仅不会影响用户使用WiFi网络,还避免了在不使用WiFi时,WiFi在后台运行导致消耗终端电量的问题。Under normal circumstances, after the user leaves the coverage area of the currently connected WiFi, the terminal cannot continue to access the WiFi network, then when the WiFi connected to the terminal meets the conditions of being far away from the current terminal, the WiFi function of the current terminal is automatically turned off, not only It will not affect the user's use of the WiFi network, and it also avoids the problem that the WiFi runs in the background and consumes the power of the terminal when the WiFi is not in use.
本实施例提供的终端的省电控制方法,通过当前终端在检测到当前连接的WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能,能够在用户不需要使用WiFi时将终端的WiFi功能关闭,减少了终端的耗电量,提升了终端的续航能力。The power-saving control method of the terminal provided in this embodiment automatically turns off the WiFi function of the current terminal when the current terminal detects that the currently connected WiFi meets the condition of being far away from the current terminal, so that the terminal can be turned off when the user does not need to use WiFi. The WiFi function of the terminal is turned off, which reduces the power consumption of the terminal and improves the battery life of the terminal.
在上述实施例的基础上,还可以包括:若检测到当前无连接成功的WiFi,则通过摄像头进行人脸识别或者判断当前终端的当前状态是否为亮屏状态;若人脸识别不成功或者当前终端的当前状态不为亮屏状态,则自动关闭当前终端的WiFi功能。On the basis of the above embodiments, it may also include: if it is detected that there is currently no successful WiFi connection, face recognition is performed through the camera or whether the current state of the current terminal is a bright screen state; If the current state of the terminal is not the bright screen state, the WiFi function of the current terminal will be automatically turned off.
在上述实施例的基础上,还可以包括:若在第二设定时间内检测到当前终端的状态一直不为亮屏状态且未触发WiFi使用事件,则提示用户关闭当前终端的WiFi功能。其中,所述第二设定时间可以根据用户的需求进行设定,例如,从检测到当前终端连接到可用WiFi之后的半个小时内。On the basis of the above embodiments, it may further include: prompting the user to turn off the WiFi function of the current terminal if it is detected that the status of the current terminal is not in the bright screen state and no WiFi usage event is triggered within the second set time. Wherein, the second setting time can be set according to user's needs, for example, within half an hour after detecting that the current terminal is connected to available WiFi.
进一步的,在自动关闭当前终端的WiFi功能之后,还可以包括:若检测到当前终端的当前状态为亮屏状态或者人脸识别成功,则自动开启当前终端的WiFi功能。Further, after automatically turning off the WiFi function of the current terminal, it may further include: automatically turning on the WiFi function of the current terminal if it is detected that the current state of the current terminal is a bright screen state or the face recognition is successful.
实施例二Embodiment two
图2给出了本发明实施例二提供的终端的省电控制方法的流程图。本实施例以上述实施例一为基础进行优化。在本实施例中,将“当检测到所述WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能”具体优化为:当检测到所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,自动关闭当前终端的WiFi功能。FIG. 2 shows a flow chart of a terminal power saving control method provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the first embodiment above. In this embodiment, "when it is detected that the WiFi meets the condition of being far away from the current terminal, automatically turn off the WiFi function of the current terminal" is specifically optimized as: when it is detected that the received signal strength RSSI of the WiFi is at the first The set time gradually decreases, and when the current terminal is disconnected from the access point corresponding to the WiFi, the WiFi function of the current terminal is automatically turned off.
相应的,如图2所示,本实施例提供的方法包括以下步骤:Correspondingly, as shown in Figure 2, the method provided in this embodiment includes the following steps:
步骤201、检测当前连接的无线保真WiFi状态。Step 201. Detect the status of the currently connected Wi-Fi WiFi.
步骤202、当检测到所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,自动关闭当前终端的WiFi功能。Step 202, when it is detected that the received signal strength RSSI of the WiFi gradually decreases within the first set time, and the current terminal is disconnected from the access point corresponding to the WiFi, automatically shut down the WiFi function of the current terminal.
其中,所述检测到所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小具体为检测到所述WiFi的接收信号强度RSSI在设定时间内为逐渐减小的趋势。其中,所述RSSI在设定时间内为逐渐减小的趋势具体为:在第一设定时间内,定时检测的所述WiFi信号的RSSI值,大部分或者全部的下一时刻的RSSI值小于上一时刻的RSSI值。其中,所述第一设定时间的开始时刻为检测到RSSI的值成减小趋势的时刻,例如,某当前时刻的RSSI值较上一时刻的RSSI值要小,则将所述当前时刻作为第一设定时间的开始时刻,所述第一设定时间的结束时刻可以为开始时刻后的5分钟或者10分钟等,具体可以根据用户的移动速度和WiFi信号的强度来确定。Wherein, the detecting that the received signal strength RSSI of the WiFi gradually decreases within the first set time is specifically detecting that the received signal strength RSSI of the WiFi gradually decreases within the set time. Wherein, the trend of the RSSI gradually decreasing within the set time is specifically: within the first set time, the RSSI value of the WiFi signal detected regularly, most or all of the RSSI values at the next moment are less than The RSSI value at the last moment. Wherein, the start time of the first set time is the time when the value of RSSI is detected to be decreasing. The start time of the first set time and the end time of the first set time may be 5 minutes or 10 minutes after the start time, which may be specifically determined according to the user's moving speed and the strength of the WiFi signal.
所述WiFi对应的接入点可以为WiFi对应的路由器。The access point corresponding to WiFi may be a router corresponding to WiFi.
本实施例提供的方法,通过当前终端在检测到当前连接的WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,自动关闭当前终端的WiFi功能,能够在用户不需要使用WiFi时将终端的WiFi功能关闭,减少了终端的耗电量,提升了终端的续航能力。In the method provided in this embodiment, when the current terminal detects that the received signal strength RSSI of the currently connected WiFi gradually decreases within the first set time, and when the current terminal is disconnected from the access point corresponding to the WiFi, automatically Turning off the WiFi function of the current terminal can turn off the WiFi function of the terminal when the user does not need to use WiFi, which reduces the power consumption of the terminal and improves the battery life of the terminal.
实施例三Embodiment Three
图3给出了本发明实施例三提供的终端的省电控制方法的流程图。本实施例以上述实施例二为基础进行优化。在本实施例中,将“当检测到所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,自动关闭当前终端的WiFi功能”具体优化为:当检测到所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,通过摄像头进行人脸识别或者判断当前终端的当前状态是否为亮屏状态;若人脸识别不成功或者当前终端的当前状态不为亮屏状态,则自动关闭当前终端的WiFi功能。FIG. 3 shows a flow chart of a terminal power saving control method provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the second embodiment above. In this embodiment, "When it is detected that the received signal strength RSSI of the WiFi gradually decreases within the first set time, and the current terminal is disconnected from the access point corresponding to the WiFi, automatically shut down the current terminal The specific optimization of the "WiFi function" is as follows: when it is detected that the received signal strength RSSI of the WiFi gradually decreases within the first set time, and the current terminal is disconnected from the access point corresponding to the WiFi, the camera is used to monitor Face recognition or judging whether the current state of the current terminal is the bright screen state; if the face recognition is unsuccessful or the current state of the current terminal is not the bright screen state, the WiFi function of the current terminal will be automatically turned off.
相应的,如图3所示,本实施例提供的方法包括以下步骤:Correspondingly, as shown in Figure 3, the method provided in this embodiment includes the following steps:
步骤301、检测当前连接的无线保真WiFi状态。Step 301 , detecting the status of the currently connected Wi-Fi WiFi.
步骤302、判断所述WiFi的接收信号强度RSSI是否在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点是否断开,若是,则执行步骤303,否则执行步骤302。Step 302, determine whether the received signal strength RSSI of the WiFi gradually decreases within the first set time, and whether the current terminal is disconnected from the access point corresponding to the WiFi, if so, execute step 303, otherwise execute step 302.
若所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开,则执行步骤303,否则执行步骤302。If the received signal strength RSSI of the WiFi gradually decreases within the first set time, and the current terminal is disconnected from the access point corresponding to the WiFi, then step 303 is executed; otherwise, step 302 is executed.
步骤303、通过摄像头进行人脸识别或者检测当前终端的当前状态。Step 303, performing face recognition or detecting the current state of the current terminal through the camera.
其中,所述通过摄像头进行人脸识别是用于识别当前终端的是否有用户在面向该终端的有显示屏的一面使用该终端。Wherein, the face recognition through the camera is used to identify whether a user of the current terminal is using the terminal on a side facing the terminal with a display screen.
步骤304、判断人脸识别是否成功或者当前终端是否为亮屏状态,若人脸识别成功或者当前终端为亮屏状态,则执行步骤302,若人脸识别不成功或者当前终端的当前状态不为亮屏状态,则执行步骤305。Step 304, determine whether the face recognition is successful or whether the current terminal is in the bright screen state, if the face recognition is successful or the current terminal is in the bright screen state, then perform step 302, if the face recognition is unsuccessful or the current state of the current terminal is not If the screen is on, step 305 is performed.
若人脸识别成功或者当前终端为亮屏状态,则用户可能正在观看和使用终端,比如查找和连接其他可用的WiFi网络,那么,此时可以执行步骤302,继续检测所连接上的WiFi的RSSI;若人脸识别不成功或者当前终端的当前状态不为亮屏状态,则说明用户当前可能没有在使用终端,比如用户在走出当前连接的WiFi的覆盖区后,将终端放入口袋中,那么,此时则可以执行步骤305。该步骤这样设置的好处是:可以在确定了用户当前确实不再使用WiFi功能以后,才关闭WiFi功能,避免了用户虽然离开了当前连接的WiFi覆盖区,却想要连接其他WiFi时,发现WiFi功能已经被关闭导致的用户体验不好的问题,可以更加贴合用户的需求。If the face recognition is successful or the current terminal is in the bright screen state, the user may be watching and using the terminal, such as finding and connecting to other available WiFi networks, then step 302 can be executed at this time to continue detecting the RSSI of the connected WiFi ; If the face recognition is unsuccessful or the current state of the current terminal is not the bright screen state, it means that the user may not be using the terminal at present. , at this point step 305 can be executed. The advantage of setting this step is that the WiFi function can be turned off only after it is confirmed that the user does not use the WiFi function anymore, which prevents the user from finding the WiFi when he leaves the currently connected WiFi coverage area but wants to connect to other WiFi. The problem of poor user experience caused by the function being turned off can better meet the needs of users.
步骤305、自动关闭当前终端的WiFi功能。Step 305, automatically shut down the WiFi function of the current terminal.
本实施例提供的方法,通过当前终端在检测到当前连接的WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,若检测到人脸识别不成功或者检测到当前终端的当前状态不为亮屏状态时,自动关闭当前终端的WiFi功能,能够在用户不需要使用WiFi时将终端的WiFi功能关闭,减少了终端的耗电量,提升了终端的续航能力。In the method provided in this embodiment, when the current terminal detects that the received signal strength RSSI of the currently connected WiFi gradually decreases within the first set time, and the current terminal is disconnected from the access point corresponding to the WiFi, if When it is detected that the face recognition is unsuccessful or the current state of the current terminal is not in the bright screen state, the WiFi function of the current terminal is automatically turned off, and the WiFi function of the terminal can be turned off when the user does not need to use WiFi, reducing the power consumption of the terminal. Power, improve the battery life of the terminal.
实施例四Embodiment Four
图4给出了本发明实施例四提供的终端的省电控制方法的流程图。本实施例以上述各实施例为基础进行优化,提供一种优选的实施例,未在本实施例中详尽描述的细节可参见上述各实施例。如图4所示,本实施例提供的方法包括以下步骤:FIG. 4 shows a flowchart of a method for controlling power saving of a terminal provided in Embodiment 4 of the present invention. This embodiment is optimized based on the foregoing embodiments, and a preferred embodiment is provided. For details not described in detail in this embodiment, reference may be made to the foregoing embodiments. As shown in Figure 4, the method provided in this embodiment includes the following steps:
步骤401、开机。Step 401, start up.
终端开机。The terminal starts up.
步骤402、开启WiFi。Step 402, enable WiFi.
终端在开机时,自动开启WiFi功能。When the terminal is turned on, the WiFi function is automatically turned on.
步骤403、判断是否有可连接的WiFi,若有,则执行步骤404,否则执行步骤405。Step 403 , judging whether there is connectable WiFi, if yes, execute step 404 , otherwise execute step 405 .
若当前有可连接的WiFi,则执行步骤404计时第一设定时长后,执行步骤407;若当前无可连接的WiFi,则执行步骤405计时第二设定时长后,执行步骤406。其中,所述第一设定时长和第二设定时长可以相同,也可以不同,所述第一设定时长和第二设定时长的取值范围可以为5秒-1分钟。If there is currently connectable WiFi, execute step 404 and then execute step 407 after timing the first set duration; if there is currently no connectable WiFi, execute step 405 and execute step 406 after timing the second preset duration. Wherein, the first set time length and the second set time length may be the same or different, and the value range of the first set time length and the second set time length may be 5 seconds to 1 minute.
步骤404、计时第一设定时长。Step 404, timing the first set duration.
步骤405、计时第二设定时长。Step 405, timing the second set duration.
步骤406、判断人脸识别是否成功或者终端是否为亮屏状态,若是,则执行步骤404,若否,则执行步骤408。Step 406 , judging whether the face recognition is successful or whether the terminal is in a bright screen state, if yes, execute step 404 , if not, execute step 408 .
若人脸识别成功或者终端为亮屏状态,则执行步骤404计时第一设定时长后,执行步骤407,若人脸识别不成功或者终端不为亮屏状态,则执行步骤408关闭终端的WiFi功能。If the face recognition is successful or the terminal is in the bright screen state, then execute step 404 and then execute step 407 after counting the first set duration, and if the face recognition is unsuccessful or the terminal is not in the bright screen state, then execute step 408 to turn off the WiFi of the terminal Function.
步骤407、判断WiFi的RSSI是否在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点是否断开,若是,则执行步骤406,否则执行步骤404。Step 407 : Determine whether the RSSI of WiFi gradually decreases within the first set time, and whether the current terminal is disconnected from the access point corresponding to the WiFi, if yes, execute step 406 , otherwise execute step 404 .
若WiFi的RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点是断开,则执行步骤406判断人脸识别是否成功或者终端是否为亮屏状态,若人脸识别不成功或者终端不为亮屏状态,则执行步骤408关闭终端的WiFi功能。If the RSSI of WiFi gradually decreases within the first set time, and the current terminal is disconnected from the access point corresponding to the WiFi, then perform step 406 to determine whether the face recognition is successful or whether the terminal is in a bright screen state, if If the face recognition is unsuccessful or the terminal is not in the screen-on state, execute step 408 to disable the WiFi function of the terminal.
步骤408、关闭WiFi功能。Step 408, turn off the WiFi function.
步骤409、判断终端是否为亮屏状态或者人脸识别是否成功,若是,则执行步骤402,否则执行步骤409。Step 409 , judging whether the terminal is in a bright screen state or whether the face recognition is successful, if so, execute step 402 , otherwise execute step 409 .
需要说明的是,在本实施例中步骤406和步骤409为实质相同的步骤,仅是为了便于描述,在图4和本实施例中表述为两个不同的步骤。It should be noted that in this embodiment, step 406 and step 409 are substantially the same steps, which are described as two different steps in FIG. 4 and in this embodiment for convenience of description.
实施例五Embodiment five
图5为本发明实施例五提供的终端的省电控制装置的结构框图,该装置可由软件和/或硬件实现,一般集成在终端中,可通过执行终端的省电控制方法来实现终端的省电控制。如图5所示,该装置包括WiFi状态检测模块51、第一WiFi功能关闭模块52。Fig. 5 is a structural block diagram of a terminal power-saving control device provided in Embodiment 5 of the present invention. The device can be implemented by software and/or hardware, and is generally integrated in the terminal. The terminal's power-saving control method can be implemented to realize the terminal's power-saving control method. electric control. As shown in FIG. 5 , the device includes a WiFi state detection module 51 and a first WiFi function disabling module 52 .
所述WiFi状态检测模块51,用于检测当前连接的无线保真WiFi状态;The WiFi state detection module 51 is used to detect the currently connected wireless fidelity WiFi state;
所述第一WiFi功能关闭模块52,用于当检测到所述WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能。The first WiFi function disabling module 52 is configured to automatically shut down the WiFi function of the current terminal when it is detected that the WiFi satisfies the condition set to be far away from the current terminal.
本发明实施例提供的技术方案,通过当前终端在检测到当前连接的WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能,能够在用户不需要使用WiFi时将终端的WiFi功能关闭,减少了终端的耗电量,提升了终端的续航能力。In the technical solution provided by the embodiment of the present invention, when the current terminal detects that the currently connected WiFi satisfies the condition of being far away from the current terminal, it automatically turns off the WiFi function of the current terminal, so that the terminal's WiFi function can be disabled when the user does not need to use WiFi Turning off reduces the power consumption of the terminal and improves the battery life of the terminal.
在上述各实施例的基础上,所述第一WiFi功能关闭模块具体用于:On the basis of the above-mentioned embodiments, the first WiFi function shutdown module is specifically used for:
当检测到所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,自动关闭当前终端的WiFi功能。When it is detected that the received signal strength RSSI of the WiFi gradually decreases within the first set time and the current terminal is disconnected from the access point corresponding to the WiFi, the WiFi function of the current terminal is automatically turned off.
在上述各实施例的基础上,所述第一WiFi功能关闭模块当检测到所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,自动关闭当前终端的WiFi功能具体为:On the basis of the above-mentioned embodiments, when the module for disabling the first WiFi function detects that the received signal strength RSSI of the WiFi gradually decreases within the first set time, and the current terminal corresponding to the WiFi access When you click disconnect, the WiFi function of the current terminal will be automatically turned off. Specifically:
当检测到所述WiFi的接收信号强度RSSI在第一设定时间内逐渐减小,且当前终端与所述WiFi对应的接入点断开时,通过摄像头进行人脸识别或者判断当前终端的当前状态是否为亮屏状态;When it is detected that the received signal strength RSSI of the WiFi gradually decreases within the first set time, and the current terminal is disconnected from the access point corresponding to the WiFi, face recognition is performed through the camera or the current status of the current terminal is judged. Whether the state is the bright screen state;
若人脸识别不成功或者当前终端的当前状态不为亮屏状态,则自动关闭当前终端的WiFi功能。If the face recognition is unsuccessful or the current state of the current terminal is not the bright screen state, the WiFi function of the current terminal will be automatically turned off.
在上述各实施例的基础上,该装置还包括:On the basis of the above-mentioned embodiments, the device also includes:
终端当前状态判断模块,用于若检测到当前无连接成功的WiFi,则通过摄像头进行人脸识别或者判断当前终端的当前状态是否为亮屏状态;The terminal current state judgment module is used to perform face recognition through the camera or judge whether the current state of the current terminal is a bright screen state if it is detected that there is currently no WiFi connected successfully;
第二WiFi功能关闭模块,用于若人脸识别不成功或者当前终端的当前状态不为亮屏状态,则自动关闭当前终端的WiFi功能。The second WiFi function closing module is used to automatically close the WiFi function of the current terminal if the face recognition is unsuccessful or the current state of the current terminal is not a bright screen state.
在上述各实施例的基础上,该装置还包括:On the basis of the above-mentioned embodiments, the device also includes:
WiFi功能关闭提示模块,用于若在第二设定时间内检测到当前终端的状态一直不为亮屏状态且未触发WiFi使用事件,则提示用户关闭当前终端的WiFi功能。The WiFi function off prompt module is used to prompt the user to turn off the WiFi function of the current terminal if it is detected that the state of the current terminal is not in the bright screen state and no WiFi usage event is triggered within the second set time.
在上述各实施例的基础上,该装置还包括:On the basis of the above-mentioned embodiments, the device also includes:
WiFi功能开启模块,用于在自动关闭当前终端的WiFi功能之后,若检测到当前终端的当前状态为亮屏状态或者人脸识别成功,则自动开启当前终端的WiFi功能。The WiFi function opening module is used to automatically open the WiFi function of the current terminal if it is detected that the current state of the current terminal is a bright screen state or the face recognition is successful after automatically closing the WiFi function of the current terminal.
本发明实施例提供的终端的省电控制装置可执行本发明任意实施例提供的终端的省电控制方法,具备执行方法相应的功能模块和有益效果。The terminal power saving control device provided in the embodiments of the present invention can execute the terminal power saving control method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
实施例六Embodiment six
图6为本发明实施例六提供的终端的结构示意图,所述终端包括实施例五所提供的终端的省电控制装置的结构。在一种实现方式中终端可以手机、平板电脑、笔记本等。所述终端6可以包括通信单元61、包括有至少一个计算机可读存储介质的存储器62、输入单元63、显示单元64、传感器66、音频电路66、WIFI(Wireless Fidelity,无线保真)模块67、包括有至少一个处理核心的处理器68、以及电源69等部件。本领域技术人员可以理解,图中示出的动终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。具体的:FIG. 6 is a schematic structural diagram of a terminal provided in Embodiment 6 of the present invention, and the terminal includes the structure of the device for controlling power saving of a terminal provided in Embodiment 5. Referring to FIG. In an implementation manner, the terminal may be a mobile phone, a tablet computer, a notebook, and the like. The terminal 6 may include a communication unit 61, a memory 62 including at least one computer-readable storage medium, an input unit 63, a display unit 64, a sensor 66, an audio circuit 66, a WIFI (Wireless Fidelity, wireless fidelity) module 67, It includes a processor 68 with at least one processing core, a power supply 69 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in the figure does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine some components, or arrange different components. specific:
通信单元61可用于收发信息或通话过程中,信号的接收和发送,该通信单元61可以为RF(Radio Frequency,射频)电路、路由器、调制解调器、等网络通信设备。特别地,当通信单元61为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器68处理;另外,将涉及上行的数据发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,通信单元61还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General PacketRadio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long TermEvolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The communication unit 61 can be used for sending and receiving information or receiving and sending signals during a call. The communication unit 61 can be an RF (Radio Frequency, radio frequency) circuit, router, modem, and other network communication equipment. In particular, when the communication unit 61 is an RF circuit, after receiving the downlink information of the base station, it is processed by one or more processors 68; in addition, the uplink data is sent to the base station. Typically, an RF circuit as a communication unit includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier, Low noise amplifier), duplexer, etc. In addition, the communication unit 61 can also communicate with a network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communications), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA (Code Division Multiple Access, Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), LTE (Long Term Evolution, Long Term Evolution), email, SMS (Short Messaging Service, Short Message Service), etc.
存储器62可用于存储软件程序以及模块,处理器68通过运行存储在存储器62的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器62可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器62可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器62还可以包括存储器控制器,以提供处理器68和输入单元63对存储器62的访问。The memory 62 can be used to store software programs and modules, and the processor 68 executes various functional applications and data processing by running the software programs and modules stored in the memory 62 . The memory 62 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of the terminal (such as audio data, phonebook, etc.) and the like. In addition, the memory 62 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 62 may also include a memory controller to provide access to the memory 62 by the processor 68 and the input unit 63 .
输入单元63可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。优选地,输入单元63可包括触敏表面631以及其他输入设备632。触敏表面631,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面631上或在触敏表面631附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器68,并能接收处理器68发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面631。除了触敏表面631,输入单元63还可以包括其他输入设备632。优选地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 63 can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Preferably, the input unit 63 may include a touch-sensitive surface 631 and other input devices 632 . The touch-sensitive surface 631, also referred to as a touch screen or a touchpad, can collect user touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch-sensitive surface 631 or on the operation near the touch-sensitive surface 631), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface 631 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 68, and can receive and execute the commands sent by the processor 68. In addition, the touch-sensitive surface 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 631 , the input unit 63 may also include other input devices 632 . Preferably, other input devices 632 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元64可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元64可包括显示面板641,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板641。进一步的,触敏表面631可覆盖显示面板641,当触敏表面631检测到在其上或附近的触摸操作后,传送给处理器68以确定触摸事件的类型,随后处理器68根据触摸事件的类型在显示面板641上提供相应的视觉输出。虽然在图6中,触敏表面631与显示面板641是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面631与显示面板641集成而实现输入和输出功能。The display unit 64 can be used to display information input by or provided to the user and various graphical user interfaces of the terminal. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display unit 64 may include a display panel 641 , and optionally, the display panel 641 may be configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light-emitting diode), or the like. Further, the touch-sensitive surface 631 may cover the display panel 641. When the touch-sensitive surface 631 detects a touch operation on or near it, it is sent to the processor 68 to determine the type of the touch event, and then the processor 68 determines the type of the touch event according to the touch event. The type provides a corresponding visual output on the display panel 641 . Although in FIG. 6, the touch-sensitive surface 631 and the display panel 641 are used as two independent components to realize input and input functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 can be integrated to realize input. and output functions.
所述终端还可包括至少一种传感器66,比如光传感器、运动传感器以及其他传感器。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板641的亮度,接近传感器可在终端移动到耳边时,关闭显示面板641和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal may also include at least one sensor 66, such as a light sensor, a motion sensor, and other sensors. The light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 641 and/or the backlight when the terminal moves to the ear. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related Gaming, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; the terminal can also be configured with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described here .
音频电路66、扬声器661,传声器662可提供用户与终端之间的音频接口。音频电路66可将接收到的音频数据转换后的电信号,传输到扬声器661,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路66接收后转换为音频数据,再将音频数据输出处理器68处理后,经RF电路61以发送给比如另一终端,或者将音频数据输出至存储器62以便进一步处理。音频电路66还可能包括耳塞插孔,以提供外设耳机与终端的通信。The audio circuit 66, the speaker 661, and the microphone 662 can provide an audio interface between the user and the terminal. Audio circuit 66 can transmit the electric signal after the audio data conversion that receives to loudspeaker 661, is converted into sound signal output by loudspeaker 661; After being received, it is converted into audio data, and then the audio data is processed by the output processor 68, and then sent to another terminal through the RF circuit 61, or the audio data is output to the memory 62 for further processing. The audio circuit 66 may also include an earplug jack to provide communication between an external earphone and the terminal.
为了实现无线通信,该第一终端上可以配置有无线通信单元67,该无线通信单元67可以为WIFI模块。WIFI属于短距离无线传输技术,终端通过无线通信单元67可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。In order to realize wireless communication, a wireless communication unit 67 may be configured on the first terminal, and the wireless communication unit 67 may be a WIFI module. WIFI is a short-distance wireless transmission technology. The terminal can help users send and receive e-mails, browse web pages, and access streaming media through the wireless communication unit 67. It provides users with wireless broadband Internet access.
处理器68可利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器62内的软件程序和/或模块,以及调用存储在存储器62内的数据,执行终端的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器68可包括一个或多个处理核心;优选的,处理器68可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器68中。The processor 68 can utilize various interfaces and lines to connect various parts of the entire mobile phone, and execute various functions of the terminal by running or executing software programs and/or modules stored in the memory 62, and calling data stored in the memory 62 And processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 68 may include one or more processing cores; preferably, the processor 68 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the modem processor may not be integrated into the processor 68 .
终端还包括给各个部件供电的电源69(比如电池),优选的,电源可以通过电源管理系统与处理器68逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源69还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal also includes a power supply 69 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 68 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. The power supply 69 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
需要说明的是,终端还可以包括摄像头、蓝牙模块等,在此不再赘述。It should be noted that the terminal may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
在本实施例中,处理器68具有下述功能:In this embodiment, the processor 68 has the following functions:
检测当前连接的无线保真WiFi状态;Detect the status of the currently connected Wi-Fi WiFi;
当检测到所述WiFi满足设定远离当前终端的条件时,自动关闭当前终端的WiFi功能。When it is detected that the WiFi satisfies the condition set to be far away from the current terminal, the WiFi function of the current terminal is automatically turned off.
上述终端可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的终端的省电控制方法。The above-mentioned terminal can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the terminal power saving control method provided in any embodiment of the present invention.
上述仅为本发明的较佳实施例及所运用的技术原理。本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由权利要求的范围决定。The foregoing are only preferred embodiments of the present invention and the applied technical principles. The present invention is not limited to the specific embodiments described here, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the claims.
Claims (9)
- A kind of 1. electricity-saving control method of terminal, it is characterised in that including:Detect the Wireless Fidelity WiFi states currently connected;When the received signal strength RSSI for detecting the WiFi is gradually reduced in the first setting time, and present terminal and institute When stating corresponding to WiFi access point and disconnecting, by camera carry out recognition of face or judge present terminal current state whether For bright screen state;If recognition of face is unsuccessful or the current state of present terminal is not bright screen state, automatic closing present terminal WiFi function.
- 2. according to the method for claim 1, it is characterised in that also include:If detecting the WiFi currently without successful connection, recognition of face is carried out by camera or judges working as present terminal Whether preceding state is bright screen state;If recognition of face is unsuccessful or the current state of present terminal is not bright screen state, automatic closing present terminal WiFi function.
- 3. according to the method for claim 1, it is characterised in that also include:If being detected in the second setting time, the state of present terminal does not trigger for bright screen state and WiFi and uses thing always Part, then prompt user's WiFi function for closing present terminal.
- 4. method according to claim 1 or 2, it is characterised in that after the WiFi function of present terminal is closed automatically, Also include:If the current state for detecting present terminal is bright screen state or recognition of face success, present terminal is automatically turned on WiFi function.
- A kind of 5. power-saving control device of terminal, it is characterised in that including:WiFi state detection modules, for detecting the Wireless Fidelity WiFi states currently connected;First WiFi function closedown module, detect the received signal strength RSSI of the WiFi in the first setting time for working as Inside be gradually reduced, and when corresponding with the WiFi access point of present terminal disconnects, by camera carry out recognition of face or Whether the current state for judging present terminal is bright screen state;If recognition of face is unsuccessful or the current state of present terminal not For the WiFi function of bright screen state, then automatic closing present terminal.
- 6. device according to claim 5, it is characterised in that also include:Terminal current state judge module, if for detecting the WiFi currently without successful connection, pedestrian is entered by camera Face identifies or judged whether the current state of present terminal is bright screen state;Second WiFi function closedown module, if unsuccessful or the current state of present terminal is not bright screen shape for recognition of face State, then the WiFi function of present terminal is closed automatically.
- 7. device according to claim 5, it is characterised in that also include:WiFi function closes reminding module, if the state for detecting present terminal in the second setting time is bright screen always State and WiFi is not triggered use event, then prompt user's WiFi function for closing present terminal.
- 8. the device according to claim 5 or 6, it is characterised in that also include:WiFi function opening module, for automatically close present terminal WiFi function after, if detecting present terminal Current state is bright screen state or recognition of face success, then automatically turns on the WiFi function of present terminal.
- 9. a kind of terminal, it is characterised in that the terminal is integrated with the device as described in claim any one of 5-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610677874.XA CN106255146B (en) | 2016-08-16 | 2016-08-16 | A kind of electricity-saving control method of terminal, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610677874.XA CN106255146B (en) | 2016-08-16 | 2016-08-16 | A kind of electricity-saving control method of terminal, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106255146A CN106255146A (en) | 2016-12-21 |
CN106255146B true CN106255146B (en) | 2018-01-19 |
Family
ID=57592183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610677874.XA Expired - Fee Related CN106255146B (en) | 2016-08-16 | 2016-08-16 | A kind of electricity-saving control method of terminal, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106255146B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107302804B (en) * | 2017-08-09 | 2018-06-19 | 厦门久凌创新科技有限公司 | Adaptive WIFI link screening arrangements |
CN107846723B (en) * | 2017-12-13 | 2020-04-24 | Oppo广东移动通信有限公司 | Wireless local area network scanning method and device, computer equipment and storage medium |
CN110602772A (en) * | 2019-09-12 | 2019-12-20 | Oppo(重庆)智能科技有限公司 | WiFi module control method, control device, electronic device and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101184610B1 (en) * | 2006-11-30 | 2012-09-21 | 삼성전자주식회사 | Apparatus for saving power by using location information and method thereof |
US7835698B2 (en) * | 2007-12-31 | 2010-11-16 | Airvana, Corp. | Interference mitigation in wireless networks |
US20100008276A1 (en) * | 2008-07-11 | 2010-01-14 | Milind Kopikare | Power save mode for access points |
CN103596635A (en) * | 2012-12-24 | 2014-02-19 | 华为终端有限公司 | Method for controlling wireless fidelity device in terminal, controlling device and terminal |
CN105072675A (en) * | 2015-07-24 | 2015-11-18 | 广东欧珀移动通信有限公司 | A method, system and mobile terminal for automatically closing WIFI connection |
CN105306682B (en) * | 2015-09-18 | 2019-01-11 | Oppo广东移动通信有限公司 | The method and device of network connection switch is automatically closed |
-
2016
- 2016-08-16 CN CN201610677874.XA patent/CN106255146B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN106255146A (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106471794B (en) | Terminal control method, device and terminal | |
CN104243671B (en) | Volume adjusting method, device and electronic equipment | |
CN106331359B (en) | A kind of speech signal collection method, device and terminal | |
WO2019029618A1 (en) | Ims voice call network switching method, storage device and mobile terminal | |
CN105306682A (en) | Method and device for automatically disconnecting network connection | |
CN105469775A (en) | Method for adjusting brightness of display screen and terminal equipment | |
WO2015081664A1 (en) | Method, apparatus, device and system for controlling wireless network to be switched on/off | |
CN106131930A (en) | A WiFi network access control method, device and terminal | |
CN105930049A (en) | A method and terminal for avoiding misoperation | |
CN106357925A (en) | Method, device and terminal for switching screen brightness adjusting modes | |
CN106936516B (en) | Display state control method, storage medium and terminal | |
CN107567080A (en) | Method for reducing power consumption and terminal equipment | |
CN105187653B (en) | Network connection switchs method for closing and device | |
CN106453908A (en) | A method, device, and mobile terminal for switching between dual-card networks based on calls | |
CN106454976B (en) | A wireless network switching method, device and terminal | |
CN105807891A (en) | Screen control method, device and electronic equipment | |
CN105162930B (en) | The way of recording and device of mobile terminal | |
CN106255146B (en) | A kind of electricity-saving control method of terminal, device and terminal | |
CN105100361B (en) | The way of recording and device of mobile terminal | |
CN106254673A (en) | Terminal fall detection method and device | |
CN106066769A (en) | A processing method for a mobile terminal and the mobile terminal | |
CN106648205B (en) | Sleep control method, device and terminal | |
CN105282330B (en) | The method and device of automatic connection network | |
CN106131892A (en) | Network access control method and device | |
CN106374988A (en) | Downlink inter-band carrier aggregation configuration method, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180119 |
|
CF01 | Termination of patent right due to non-payment of annual fee |