WO2015154391A1 - Method and device for processing power consumption of radio access network - Google Patents

Method and device for processing power consumption of radio access network Download PDF

Info

Publication number
WO2015154391A1
WO2015154391A1 PCT/CN2014/087234 CN2014087234W WO2015154391A1 WO 2015154391 A1 WO2015154391 A1 WO 2015154391A1 CN 2014087234 W CN2014087234 W CN 2014087234W WO 2015154391 A1 WO2015154391 A1 WO 2015154391A1
Authority
WO
WIPO (PCT)
Prior art keywords
power consumption
consumption mode
network connection
wireless network
information
Prior art date
Application number
PCT/CN2014/087234
Other languages
French (fr)
Chinese (zh)
Inventor
何祥
张磊
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015154391A1 publication Critical patent/WO2015154391A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access

Definitions

  • the present invention relates to the field of communications, and in particular, to a power consumption processing method and apparatus for wireless network access.
  • the WiFi connection is simple to operate, can access the broadband network at high speed, and has the advantages of traffic cost, etc., many scenarios related to network access and data transmission are used, but since the WiFi chip is working, its power consumption is often higher. Large, this also puts higher requirements on the endurance of the mobile phone, and the endurance ability directly affects the user experience, and also affects the competitiveness of the product itself to a large extent.
  • the present invention provides a power consumption processing method and apparatus for wireless network access to solve at least the above technical problems.
  • a method for processing power consumption of a wireless network access includes: acquiring, when the wireless network access function entity of the terminal is enabled, network connection information of all applications in the application list currently running by the terminal, The network connection information is used to reflect whether the currently running application has network connection authority; and the power consumption mode of the wireless network access function entity is adjusted according to network connection information of all applications, where at least all the applications are used.
  • the network connection information of an application indicates that the power consumption mode is adjusted to a first power consumption mode when the network connection permission is not provided, and otherwise, the power consumption mode is adjusted to a second power consumption mode; The power consumption of the power mode is smaller than the power consumption of the second power mode.
  • the power consumption mode of the wireless network access function entity is adjusted according to the network connection information of all the applications, including: adjusting a scanning interval of the wireless access point according to network connection information of all applications, where The scan interval corresponding to the first power consumption mode is greater than the scan interval corresponding to the second power consumption mode.
  • the method before acquiring the network connection information of all the applications in the application list, includes: acquiring switch state change information of the wireless network access function entity or access state information of the wireless network; and changing information according to the switch state or Entering or exiting the first power consumption mode, where the switch state information indicates that the wireless network access function entity is turned off or the wireless network access function entity has accessed the network, and exits The first power consumption mode; otherwise, entering the first power consumption mode.
  • acquiring switch state change information of the wireless network access function entity or access state information of the wireless network receiving a broadcast message from the network side; acquiring the switch state change information from the broadcast message or the Access status information.
  • the method further includes: periodically updating the currently running application list, and obtaining network connection information in the updated application list.
  • the wireless network access function entity comprises: a wireless fidelity WiFi module.
  • a power consumption processing apparatus for wireless network access including: a first acquiring module, configured to acquire a list of currently running applications of the terminal when the wireless network access function entity of the terminal is turned on Network connection information of all the applications, wherein the network connection information is used to reflect whether the currently running application has network connection authority; the first adjustment module is configured to adjust the wireless network access function according to the network connection information of all the applications a power consumption mode of the entity, wherein the power connection mode is adjusted to a first power consumption mode when the network connection information of the at least one application of the all applications indicates that the network connection permission is not provided; otherwise, the The power consumption mode is adjusted to a second power consumption mode; the power consumption of the first power consumption mode is smaller than the power consumption of the second power consumption mode.
  • the device further includes: a second acquiring module, configured to acquire switch state change information of the wireless network access function entity or access state information of the wireless network; and a second adjustment module configured to be according to the switch state
  • the change information or the access status information enters or exits the first power consumption mode, wherein the switch state change information indicates that the wireless network access function entity is turned off or the wireless network access function entity has access to the network Exiting the first power consumption mode; otherwise, entering the first power consumption mode.
  • the second obtaining module includes: a receiving unit configured to receive a broadcast message from the network side; and an acquiring unit configured to acquire the switch state change information or the access state information from the broadcast message.
  • the invention solves the technical problem that the power consumption mode of the wireless network access function entity is adjusted according to whether the application in the terminal has the network connection authority, and solves the technical problem that the power consumption of the wireless network is large when the wireless network is accessed, thereby It can optimize the power consumption processing of the wireless access network, save the terminal power, and increase the terminal's battery life.
  • FIG. 2 is a structural block diagram of a power consumption processing apparatus for wireless network access according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing another structure of a power consumption processing apparatus for wireless network access according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of WiFi scan control according to an embodiment of the present invention.
  • FIG. 6 is a flow chart of WiFi low power mode management in accordance with an embodiment of the present invention.
  • the present invention provides a corresponding solution to solve the above technical problem, in view of the problem that the power consumption is large when the wireless network is accessed in the related art.
  • the details are as follows. It should be noted that the following solutions may be applied to a terminal running one of the following operating systems, but are not limited thereto: Android system, Window operating system, UNIX system, and IOS operating system.
  • FIG. 1 is a flowchart of a power consumption processing method for wireless network access according to an embodiment of the present invention. As shown in Figure 1, the method includes:
  • Step S102 When the wireless network access function entity of the terminal is enabled, obtain network connection information of all applications in the application list of the current running of the terminal, where the network connection information is used to reflect whether the currently running application has network connection authority;
  • Step S104 Adjust a power consumption mode of the wireless network access function entity according to the network connection information of all the applications, where the power connection mode is adjusted to the first time when the network connection information of the at least one application of all the applications indicates that the network connection permission is not available.
  • a power consumption mode otherwise, adjusting the power consumption mode to the second power consumption mode (ie, when the network connection information of at least one application in all applications indicates that the network connection right is available, the power consumption mode is adjusted to the second power consumption mode);
  • the power consumption of the first power consumption mode is smaller than the power consumption of the second power consumption mode.
  • the power consumption mode of the wireless network access function entity can be adjusted according to the network connection information, and the network connection information of at least one application of all applications indicates that the network connection right is not available, the power consumption mode is adjusted to The first power consumption mode can solve the problem of large power consumption during wireless access, save terminal power, and improve terminal endurance.
  • Step S104 can be implemented in various manners, for example, the signal receiving power of the wireless network access entity can be reduced.
  • the wireless access point can be adjusted according to the network connection information of all applications currently running on the terminal. The interval, wherein the scan interval corresponding to the first power consumption mode is greater than the scan interval corresponding to the second power consumption mode. Thus, since the scan time interval is increased, power consumption can be reduced.
  • the wireless network access entity is represented as a WiFi module
  • the wireless access point may be represented as a WiFi hotspot.
  • the following processing may be performed before step S102: acquiring switch state change information of the wireless network access function entity or access state information of the wireless network; entering or according to the switch state change information or the access state information Exiting the foregoing first power consumption mode, wherein when the switch state change information indicates that the wireless network access function entity is turned off or the wireless network access function entity has accessed the network, the first power consumption mode is exited; otherwise, the first power consumption is entered. mode.
  • the first power consumption mode in the low power mode can be set as the initial default mode of the wireless network access entity when turned on to better reduce power consumption.
  • adjusting the power consumption mode to the first power consumption mode in step S102 may be performed to maintain the first power consumption mode, but is not limited thereto.
  • the switch state change information of the foregoing wireless network access function entity or the access state information of the wireless network may be obtained by, but not limited to: receiving a broadcast message from the network side; from the above broadcast message Obtaining the above switch state change information or the foregoing access state information.
  • the application list may be updated.
  • step S102 may be in the following form, but is not limited thereto: periodically update the current running application list, and obtain the network in the updated application list. Connection information.
  • a power consumption processing device for wireless network access is also provided, which is used to implement the foregoing method. As shown in FIG. 2, the device includes:
  • the first obtaining module 20 is configured to: when the wireless network access function entity of the terminal is enabled, obtain network connection information of all applications in the application list currently running by the terminal, where the network connection information is used to reflect whether the current running application has a network. Connection permission
  • the first adjustment module 22 is connected to the first obtaining module 20, and is configured to adjust a power consumption mode of the wireless network access function entity according to the network connection information of all the applications, where the network connection of at least one of the foregoing applications is The information indicates that the power consumption mode is adjusted to the first power consumption mode when the network connection permission is not available, otherwise, the power consumption mode is adjusted to the second power consumption mode; the power consumption of the first power consumption mode is less than the second power consumption mode. Mode power consumption.
  • the power consumption of the terminal in the wireless access network can be reduced, and the endurance capability of the terminal can be improved.
  • the first adjustment module 22 is further configured to adjust a scan interval of the wireless access point according to the network connection information of all the applications, where the scan interval corresponding to the first power consumption mode is greater than the second work. The scan interval corresponding to the consumption mode.
  • the power consumption processing apparatus for wireless network access may further include:
  • the second obtaining module 24 is configured to acquire switch state change information of the wireless network access function entity or access state information of the wireless network;
  • the second adjustment module 26 is connected to the second obtaining module 24, and is configured to enter or exit the first power consumption mode according to the switch state change information or the access state information, wherein the switch state change information indicates that the wireless network is turned off.
  • the switch state change information indicates that the wireless network is turned off.
  • the second obtaining module 24 comprises a processing unit: a receiving unit 240 configured to receive a broadcast message from the network side; an obtaining unit 242 coupled to the receiving unit 240, configured to obtain the above from the broadcast message Switch status change information or the above access status information
  • the following embodiments are described by taking the WiFi scanning policy optimization of the intelligent terminal based on the Android system as an example.
  • the main design idea of the embodiment is to dynamically obtain the specific permission attribute of the current user running program list, correspondingly control the underlying WiFi scanning time interval, and perform timing update and synchronous refreshing, so that when the running state of the current application changes, In time, according to the latest application permission information, it is determined whether the scan parameter needs to be adjusted.
  • the WiFi low power mode can be dynamically managed according to a number of specific system broadcast messages.
  • the WiFi scan at this time has substantially no practical meaning for the current operation of the user. In this case, the scanning interval can be increased, and the power consumption due to the background scanning is reduced.
  • the flow shown in Figure 4 includes the initialization of the low-power mode and the main flow of the program information in the running. As shown in Figure 4:
  • S401-S402 The mobile phone is turned on, and the system enters the standby state after completing the initialization
  • S403 Initialize the WiFi low power mode according to the WiFi on state and the connection state; specifically, if the WiFi is already turned on and is not connected to a hot spot, enter the WiFi low power mode, and set related variables; otherwise, the related variable is reset. (Do not enter WiFi low power mode).
  • the low power consumption mode is a prerequisite for various judgment processing described below.
  • S404 Determine the current running mode. If the WiFi low power mode has been entered, proceed to the next step to obtain the running program permission information.
  • S405 In the WiFi low power mode, obtain a list of currently running applications, and sequentially query the permissions of each application. If the current program has neither WIFI rights nor INTERNET network rights, continue to judge the next one. Application, otherwise set the current WiFi scan cycle to the default value and then go to S407; if you traverse all applications, there is no WIFI permission, INTERNET network permissions, go to S406;
  • the WiFi scanning operation may increase the time interval, that is, set a longer scanning period, for example, 5 minutes;
  • S407 Update the timer related control object (for example, send a delay message), so that after a period of time, the steps of S404-S407 described above may be automatically performed.
  • the process shown in FIG. 5 includes an application information query and a WiFi scan cycle setting operation, as shown in FIG. 5, and includes the following processes:
  • S501 Get a list of currently running applications (can be completed by objects such as ActivityManager and PackageInfo);
  • S502 Loop through the list and query the permission information used by the application one by one (can be completed by the PackageManager);
  • S503 determining whether there is WIFI permission in the permission information of the current application (such as "android.permission.ACCESS_WIFI_STATE"), if there is no such permission, proceed to the next step, otherwise go directly to S507;
  • S504 determining whether there is network authority (such as "android.permission.INTERNET") in the permission information of the current application, if there is no such permission, proceed to the next step, otherwise go directly to S507;
  • network authority such as "android.permission.INTERNET”
  • S505 Determine whether the entire running program list has been traversed. If the traversal has been completed, proceed to the next step, otherwise go to S502 to continue the traversal operation.
  • S506 Modify the WiFi scanning period to be changed to a longer time parameter (for example, 5 minutes);
  • S507 Restore the default WiFi scanning period, so that the system scanning operation is performed according to the default configuration.
  • the process shown in Figure 6 includes the processing of related broadcast messages and the setting of state variables, as follows:
  • S601 Registering a broadcast receiver (BroadcastReceiver), and registering a broadcast message of a WiFi switch state and a network connection change;
  • S603 determining whether the WiFi is closed message, if the WiFi is turned off, then going to S605, exiting the low power mode, because in this case, there is no need to traverse the permission information of the query running program, otherwise continue to the next step;
  • S604 determining whether the WiFi network connection (Connected) message, if it is connected, since the Android system does not continue the scanning operation after the WiFi connection, so also go to S605, exit the low power mode; otherwise, go to S606;
  • S605 exit the low power mode, and set a corresponding state variable
  • S606 Enter a low power mode and set a corresponding state variable.
  • the scan control process in this embodiment determines whether it is necessary to modify the scan period parameter according to the authority information of the actually running program, or restore the default scan period, which is a dynamic process.
  • the low power optimization method in the embodiment of the present invention is applicable to, but not limited to, a terminal such as a smart phone or a tablet computer.
  • the above preferred embodiment provided by the present invention achieves the following beneficial effects: optimizing the periodic WiFi scanning policy and notifying the WiFi low power mode according to related system broadcast messages without affecting the user's regular use. Management to achieve the purpose of saving electricity and increasing battery life, thereby enhancing user experience and comprehensive product competitiveness.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the technical means for adjusting the power consumption mode of the wireless network access function entity according to whether the application has the network connection authority in the terminal is used, and the power consumption of the wireless network when the wireless network is accessed is solved in the related art. Larger technical problems, so that the power consumption of the wireless access network can be optimized, the terminal power is saved, and the terminal's battery life is increased.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a method and device for processing the power consumption of a radio access network. The method comprises: when a radio access network function entity of a terminal is enabled, acquiring network connection information about all applications in a list of a currently operating application, wherein the network connection information is used for reflecting whether the currently operating application has a network connection permission (S102); and according to the network connection information about all the applications, adjusting a power consumption mode of the radio access network function entity, wherein the power consumption mode is adjusted to a first power consumption mode when the network connection information about at least one application of all the applications indicates that the currently operating application doesn't have a network connection permission; otherwise, the power consumption mode is adjusted to a second power consumption mode, the power consumption under the first power consumption mode being smaller than that under the second power consumption mode (S104). By means of the technical solution provided in the present invention, the power consumption processing of a radio access network can be optimized, thereby saving the electric quantity of a terminal and increasing the endurance time of the terminal.

Description

无线网络接入的功耗处理方法及装置Power consumption processing method and device for wireless network access 技术领域Technical field
本发明涉及通信领域,尤其是涉及一种无线网络接入的功耗处理方法及装置。The present invention relates to the field of communications, and in particular, to a power consumption processing method and apparatus for wireless network access.
背景技术Background technique
目前,随着通信技术、移动互联网以及相关终端产品的快速发展,人们越来越多地使用智能终端实现出了基础通信之外的诸如社交、多媒体娱乐、办公等功能,逐渐地,智能终端尤其是安卓(Android)手机的功能和使用场景也朝着多元化的方向不断地在拓展,而这其中一个重要的业务应用便是无线保真(WIreless-Fidelity,简称为WiFi)无线上网。At present, with the rapid development of communication technologies, mobile Internet and related terminal products, people are increasingly using smart terminals to implement functions such as social, multimedia entertainment, and office functions other than basic communication. Gradually, smart terminals are especially The functions and usage scenarios of Android phones are also expanding in a diversified direction. One of the important business applications is wireless wireless (WIreless-Fidelity, WiFi for short).
由于WiFi连接操作简单、可以高速接入宽带网络,并且具有流量费用等方面的优点,在很多与网络接入、数据传输相关的场景得到使用,不过由于WiFi芯片在工作时,其功耗往往较大,这样也对手机的续航能力提出了更高的要求,而续航能力直接影响到用户的使用体验,也在较大程度上影响了产品本身的竞争力。Because the WiFi connection is simple to operate, can access the broadband network at high speed, and has the advantages of traffic cost, etc., many scenarios related to network access and data transmission are used, but since the WiFi chip is working, its power consumption is often higher. Large, this also puts higher requirements on the endurance of the mobile phone, and the endurance ability directly affects the user experience, and also affects the competitiveness of the product itself to a large extent.
针对相关技术中的上述问题,尚无有效地解决方案。There is no effective solution to the above problems in the related art.
发明内容Summary of the invention
针对相关技术中,无线网络接入时功耗较大等技术问题,本发明提供了一种无线网络接入的功耗处理方法及装置,以至少解决上述技术问题。The present invention provides a power consumption processing method and apparatus for wireless network access to solve at least the above technical problems.
根据本发明的一个实施例,提供了一种无线网络接入的功耗处理方法,包括:在终端的无线网络接入功能实体开启时,获取终端当前运行应用列表中所有应用的网络连接信息,其中,该网络连接信息用于反映所述当前运行应用是否具有网络连接权限;根据所述所有应用的网络连接信息调整无线网络接入功能实体的功耗模式,其中,在所述所有应用中至少一个应用的所述网络连接信息指示不具备网络连接权限时,将所述功耗模式调整为第一功耗模式,否则,将所述功耗模式调整为第二功耗模式;所述第一功耗模式的功耗小于第二功耗模式的功耗。According to an embodiment of the present invention, a method for processing power consumption of a wireless network access is provided, which includes: acquiring, when the wireless network access function entity of the terminal is enabled, network connection information of all applications in the application list currently running by the terminal, The network connection information is used to reflect whether the currently running application has network connection authority; and the power consumption mode of the wireless network access function entity is adjusted according to network connection information of all applications, where at least all the applications are used. The network connection information of an application indicates that the power consumption mode is adjusted to a first power consumption mode when the network connection permission is not provided, and otherwise, the power consumption mode is adjusted to a second power consumption mode; The power consumption of the power mode is smaller than the power consumption of the second power mode.
优选地,根据所述所有应用的所述网络连接信息调整无线网络接入功能实体的功耗模式,包括:根据所述所有应用的网络连接信息调整对无线接入点的扫描间隔,其中,所述第一功耗模式对应的扫描间隔大于所述第二功耗模式对应的扫描间隔。 Preferably, the power consumption mode of the wireless network access function entity is adjusted according to the network connection information of all the applications, including: adjusting a scanning interval of the wireless access point according to network connection information of all applications, where The scan interval corresponding to the first power consumption mode is greater than the scan interval corresponding to the second power consumption mode.
优选地,获取终端当前运行应用列表中所有应用的网络连接信息之前包括:获取所述无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息;根据所述开关状态变化信息或所述接入状态信息进入或退出所述第一功耗模式,其中,在所述开关状态变化信息指示关闭无线网络接入功能实体或者所述无线网络接入功能实体已经接入网络时,退出所述第一功耗模式;否则,进入所述第一功耗模式。Preferably, before acquiring the network connection information of all the applications in the application list, the method includes: acquiring switch state change information of the wireless network access function entity or access state information of the wireless network; and changing information according to the switch state or Entering or exiting the first power consumption mode, where the switch state information indicates that the wireless network access function entity is turned off or the wireless network access function entity has accessed the network, and exits The first power consumption mode; otherwise, entering the first power consumption mode.
优选地,获取所述无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息:接收来自网络侧的广播消息;从所述广播消息中获取所述开关状态变化信息或所述接入状态信息。Preferably, acquiring switch state change information of the wireless network access function entity or access state information of the wireless network: receiving a broadcast message from the network side; acquiring the switch state change information from the broadcast message or the Access status information.
优选地,获取终端当前运行应用列表中所有应用的网络连接信息,还包括:周期性更新所述当前运行应用列表,并获取更新后的应用列表中的网络连接信息。Preferably, obtaining the network connection information of all the applications in the application list that the terminal currently runs, the method further includes: periodically updating the currently running application list, and obtaining network connection information in the updated application list.
优选地,所述无线网络接入功能实体包括:无线保真WiFi模块。Preferably, the wireless network access function entity comprises: a wireless fidelity WiFi module.
根据本发明的另一个实施例,提供了一种无线网络接入的功耗处理装置,包括:第一获取模块,设置为在终端的无线网络接入功能实体开启时,获取终端当前运行应用列表中所有应用的网络连接信息,其中,该网络连接信息用于反映所述当前运行应用是否具有网络连接权限;第一调整模块,设置为根据所述所有应用的网络连接信息调整无线网络接入功能实体的功耗模式,其中,在所述所有应用中至少一个应用的所述网络连接信息指示不具备网络连接权限时,将所述功耗模式调整为第一功耗模式,否则,将所述功耗模式调整为第二功耗模式;所述第一功耗模式的功耗小于第二功耗模式的功耗。According to another embodiment of the present invention, a power consumption processing apparatus for wireless network access is provided, including: a first acquiring module, configured to acquire a list of currently running applications of the terminal when the wireless network access function entity of the terminal is turned on Network connection information of all the applications, wherein the network connection information is used to reflect whether the currently running application has network connection authority; the first adjustment module is configured to adjust the wireless network access function according to the network connection information of all the applications a power consumption mode of the entity, wherein the power connection mode is adjusted to a first power consumption mode when the network connection information of the at least one application of the all applications indicates that the network connection permission is not provided; otherwise, the The power consumption mode is adjusted to a second power consumption mode; the power consumption of the first power consumption mode is smaller than the power consumption of the second power consumption mode.
优选地,所述第一调整模块,还设置为根据所述所有应用的网络连接信息调整对无线接入点的扫描间隔,其中,所述第一功耗模式对应的扫描间隔大于所述第二功耗模式对应的扫描间隔。Preferably, the first adjustment module is further configured to adjust a scanning interval of the wireless access point according to the network connection information of all the applications, wherein the scanning interval corresponding to the first power consumption mode is greater than the second The scan interval corresponding to the power consumption mode.
优选地,上述装置还包括:第二获取模块,设置为获取所述无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息;第二调整模块,设置为根据所述开关状态变化信息或所述接入状态信息进入或退出所述第一功耗模式,其中,在所述开关状态变化信息指示关闭无线网络接入功能实体或者所述无线网络接入功能实体已经接入网络时,退出所述第一功耗模式;否则,进入所述第一功耗模式。Preferably, the device further includes: a second acquiring module, configured to acquire switch state change information of the wireless network access function entity or access state information of the wireless network; and a second adjustment module configured to be according to the switch state The change information or the access status information enters or exits the first power consumption mode, wherein the switch state change information indicates that the wireless network access function entity is turned off or the wireless network access function entity has access to the network Exiting the first power consumption mode; otherwise, entering the first power consumption mode.
优选地,所述第二获取模块包括:接收单元,设置为接收来自网络侧的广播消息;获取单元,设置为从所述广播消息中获取所述开关状态变化信息或所述接入状态信息。 Preferably, the second obtaining module includes: a receiving unit configured to receive a broadcast message from the network side; and an acquiring unit configured to acquire the switch state change information or the access state information from the broadcast message.
通过本发明,采用根据终端中应用是否具备网络连接权限来调整无线网络接入功能实体的功耗模式的技术手段,解决了相关技术中,无线网络接入时功耗较大等技术问题,从而可以优化无线接入网络的功耗处理,节省终端电量,增加终端的续航时间。The invention solves the technical problem that the power consumption mode of the wireless network access function entity is adjusted according to whether the application in the terminal has the network connection authority, and solves the technical problem that the power consumption of the wireless network is large when the wireless network is accessed, thereby It can optimize the power consumption processing of the wireless access network, save the terminal power, and increase the terminal's battery life.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为根据本发明实施例的无线网络接入的功耗处理方法的流程图;1 is a flowchart of a power consumption processing method for wireless network access according to an embodiment of the present invention;
图2为根据本发明实施例的无线网络接入的功耗处理装置的结构框图;2 is a structural block diagram of a power consumption processing apparatus for wireless network access according to an embodiment of the present invention;
图3为根据本发明实施例的无线网络接入的功耗处理装置的另一结构框图;3 is a block diagram showing another structure of a power consumption processing apparatus for wireless network access according to an embodiment of the present invention;
图4为根据本发明优选实施例的在该低功耗优化模式下的无线网络接入的功耗处理流程图;4 is a flowchart of power consumption processing of wireless network access in the low power optimization mode according to a preferred embodiment of the present invention;
图5为根据本发明实施例的WiFi扫描控制的流程图;FIG. 5 is a flowchart of WiFi scan control according to an embodiment of the present invention; FIG.
图6为根据本发明实施例的WiFi低功耗模式管理的流程图。6 is a flow chart of WiFi low power mode management in accordance with an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
针对相关技术中无线网络接入时存在功耗较大等问题,本发明实施例提供了相应的解决方案,以解决上述技术问题。以下详细说明。需要说明的是,以下方案可以应用于运行以下之一操作系统的终端中,但不限于此:安卓系统、Window操作系统、UNIX系统、IOS操作系统。The present invention provides a corresponding solution to solve the above technical problem, in view of the problem that the power consumption is large when the wireless network is accessed in the related art. The details are as follows. It should be noted that the following solutions may be applied to a terminal running one of the following operating systems, but are not limited thereto: Android system, Window operating system, UNIX system, and IOS operating system.
图1为根据本发明实施例的无线网络接入的功耗处理方法的流程图。如图1所示,该方法包括:FIG. 1 is a flowchart of a power consumption processing method for wireless network access according to an embodiment of the present invention. As shown in Figure 1, the method includes:
步骤S102,在终端的无线网络接入功能实体开启时,获取终端当前运行应用列表中所有应用的网络连接信息,其中,该网络连接信息用于反映当前运行应用是否具有网络连接权限; Step S102: When the wireless network access function entity of the terminal is enabled, obtain network connection information of all applications in the application list of the current running of the terminal, where the network connection information is used to reflect whether the currently running application has network connection authority;
步骤S104,根据所有应用的网络连接信息调整无线网络接入功能实体的功耗模式,其中,在所有应用中至少一个应用的网络连接信息指示不具备网络连接权限时,将功耗模式调整为第一功耗模式,否则,将功耗模式调整为第二功耗模式(即所有应用中至少一个应用的网络连接信息指示具备网络连接权限时,将功耗模式调整为第二功耗模式);第一功耗模式的功耗小于第二功耗模式的功耗。Step S104: Adjust a power consumption mode of the wireless network access function entity according to the network connection information of all the applications, where the power connection mode is adjusted to the first time when the network connection information of the at least one application of all the applications indicates that the network connection permission is not available. a power consumption mode, otherwise, adjusting the power consumption mode to the second power consumption mode (ie, when the network connection information of at least one application in all applications indicates that the network connection right is available, the power consumption mode is adjusted to the second power consumption mode); The power consumption of the first power consumption mode is smaller than the power consumption of the second power consumption mode.
通过上述处理步骤,由于可以根据网络连接信息调整无线网络接入功能实体的功耗模式,并且,在所有应用中至少一个应用的网络连接信息指示不具备网络连接权限时,将功耗模式调整为第一功耗模式,因此,可以解决无线接入时的功耗较大问题,节省终端电量,提高终端的续航能力。Through the above processing steps, since the power consumption mode of the wireless network access function entity can be adjusted according to the network connection information, and the network connection information of at least one application of all applications indicates that the network connection right is not available, the power consumption mode is adjusted to The first power consumption mode can solve the problem of large power consumption during wireless access, save terminal power, and improve terminal endurance.
步骤S104的实现方式有多种,例如可以降低无线网络接入实体的信号接收功率,在一个优选实施方式中,可以根据终端上当前运行的所有应用的网络连接信息调整对无线接入点的扫描间隔,其中,第一功耗模式对应的扫描间隔大于第二功耗模式对应的扫描间隔。这样,由于增大了扫描时间间隔,因此,可以减小功耗。在上述无线网络接入实体表现为WiFi模块时,上述无线接入点可以表现为WiFi热点。Step S104 can be implemented in various manners, for example, the signal receiving power of the wireless network access entity can be reduced. In a preferred embodiment, the wireless access point can be adjusted according to the network connection information of all applications currently running on the terminal. The interval, wherein the scan interval corresponding to the first power consumption mode is greater than the scan interval corresponding to the second power consumption mode. Thus, since the scan time interval is increased, power consumption can be reduced. When the wireless network access entity is represented as a WiFi module, the wireless access point may be represented as a WiFi hotspot.
在一个优选实施过程中,可以在步骤S102之前执行以下处理过程:获取无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息;根据开关状态变化信息或接入状态信息进入或退出上述第一功耗模式,其中,在开关状态变化信息指示关闭无线网络接入功能实体或者无线网络接入功能实体已经接入网络时,退出第一功耗模式;否则,进入第一功耗模式。从上述处理过程也可以看出,可以将处于低功耗模式的第一功耗模式设置为无线网络接入实体在开启时的初始默认模式,以更好地减小功耗。此时,步骤S102中将功耗模式调整为第一功耗模式可以表现为保持第一功耗模式,但不限于此。In a preferred implementation process, the following processing may be performed before step S102: acquiring switch state change information of the wireless network access function entity or access state information of the wireless network; entering or according to the switch state change information or the access state information Exiting the foregoing first power consumption mode, wherein when the switch state change information indicates that the wireless network access function entity is turned off or the wireless network access function entity has accessed the network, the first power consumption mode is exited; otherwise, the first power consumption is entered. mode. It can also be seen from the above process that the first power consumption mode in the low power mode can be set as the initial default mode of the wireless network access entity when turned on to better reduce power consumption. At this time, adjusting the power consumption mode to the first power consumption mode in step S102 may be performed to maintain the first power consumption mode, but is not limited thereto.
在上述处理过程中,可以通过以下方式获取上述无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息,但不限于此:接收来自网络侧的广播消息;从上述广播消息中获取上述开关状态变化信息或上述接入状态信息。In the foregoing process, the switch state change information of the foregoing wireless network access function entity or the access state information of the wireless network may be obtained by, but not limited to: receiving a broadcast message from the network side; from the above broadcast message Obtaining the above switch state change information or the foregoing access state information.
在一个优选实施例中,还可以对上述应用列表进行更新,此时,步骤S102可以表现为以下形式,但不限于此:周期性更新上述当前运行应用列表,并获取更新后应用列表中的网络连接信息。In a preferred embodiment, the application list may be updated. In this case, step S102 may be in the following form, but is not limited thereto: periodically update the current running application list, and obtain the network in the updated application list. Connection information.
在本实施例中,还提供了一种无线网络接入的功耗处理装置,用于实现上述方法,如图2所示,该装置包括: In this embodiment, a power consumption processing device for wireless network access is also provided, which is used to implement the foregoing method. As shown in FIG. 2, the device includes:
第一获取模块20,设置为在终端的无线网络接入功能实体开启时,获取终端当前运行应用列表中所有应用的网络连接信息,其中,该网络连接信息用于反映上述当前运行应用是否具有网络连接权限;The first obtaining module 20 is configured to: when the wireless network access function entity of the terminal is enabled, obtain network connection information of all applications in the application list currently running by the terminal, where the network connection information is used to reflect whether the current running application has a network. Connection permission
第一调整模块22,连接至第一获取模块20,设置为根据上述所有应用的网络连接信息调整无线网络接入功能实体的功耗模式,其中,在上述所有应用中至少一个应用的上述网络连接信息指示不具备网络连接权限时,将上述功耗模式调整为第一功耗模式,否则,将上述功耗模式调整为第二功耗模式;第一功耗模式的功耗小于第二功耗模式的功耗。The first adjustment module 22 is connected to the first obtaining module 20, and is configured to adjust a power consumption mode of the wireless network access function entity according to the network connection information of all the applications, where the network connection of at least one of the foregoing applications is The information indicates that the power consumption mode is adjusted to the first power consumption mode when the network connection permission is not available, otherwise, the power consumption mode is adjusted to the second power consumption mode; the power consumption of the first power consumption mode is less than the second power consumption mode. Mode power consumption.
通过上述各个模块实现的功能,同样可以实现减少终端在无线接入网络时的功耗,提高终端的续航能力。Through the functions implemented by the above modules, the power consumption of the terminal in the wireless access network can be reduced, and the endurance capability of the terminal can be improved.
在一个优选实施例中,第一调整模块22,还设置为根据上述所有应用的网络连接信息调整对无线接入点的扫描间隔,其中,第一功耗模式对应的扫描间隔大于上述第二功耗模式对应的扫描间隔。In a preferred embodiment, the first adjustment module 22 is further configured to adjust a scan interval of the wireless access point according to the network connection information of all the applications, where the scan interval corresponding to the first power consumption mode is greater than the second work. The scan interval corresponding to the consumption mode.
如图3所示,本发明实施例的一个优选实施方式中提供的无线网络接入的功耗处理装置,还可以包括:As shown in FIG. 3, the power consumption processing apparatus for wireless network access provided in a preferred embodiment of the present invention may further include:
第二获取模块24,设置为获取上述无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息;The second obtaining module 24 is configured to acquire switch state change information of the wireless network access function entity or access state information of the wireless network;
第二调整模块26,连接至第二获取模块24,设置为根据上述开关状态变化信息或上述接入状态信息进入或退出上述第一功耗模式,其中,在上述开关状态变化信息指示关闭无线网络接入功能实体或者上述无线网络接入功能实体已经接入网络时,退出上述第一功耗模式;否则,进入上述第一功耗模式。The second adjustment module 26 is connected to the second obtaining module 24, and is configured to enter or exit the first power consumption mode according to the switch state change information or the access state information, wherein the switch state change information indicates that the wireless network is turned off. When the access function entity or the foregoing wireless network access function entity has accessed the network, the first power consumption mode is exited; otherwise, the first power consumption mode is entered.
在一个优选实施例中,第二获取模块24包括以下处理单元:接收单元240,设置为接收来自网络侧的广播消息;获取单元242,连接至接收单元240,设置为从上述广播消息中获取上述开关状态变化信息或上述接入状态信息In a preferred embodiment, the second obtaining module 24 comprises a processing unit: a receiving unit 240 configured to receive a broadcast message from the network side; an obtaining unit 242 coupled to the receiving unit 240, configured to obtain the above from the broadcast message Switch status change information or the above access status information
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下形式实现,但不限于此:上述各个模块分别位于不同的处理器中,或者,上述各个模块位于同一处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the following forms may be implemented, but are not limited thereto: each of the above modules is located in a different processor, or each of the above modules is located. In the same processor.
为了更好地理解上述实施例,以下结合优选实施例详细说明。 In order to better understand the above embodiments, the following detailed description will be given in conjunction with the preferred embodiments.
以下实施例以基于Android系统的智能终端的WiFi扫描策略优化为例进行说明。本实施例的主要设计思想在于,通过动态获取当前用户运行程序列表的特定权限属性,对应控制底层WiFi扫描时间间隔,并进行定时更新、同步刷新,使得当前应用程序的运行状态发生改变时,可以及时地根据最新的应用程序权限信息对应判断是否需要调整扫描参数。另外还可以根据若干特定的系统广播消息对WiFi低功耗模式进行动态管理。The following embodiments are described by taking the WiFi scanning policy optimization of the intelligent terminal based on the Android system as an example. The main design idea of the embodiment is to dynamically obtain the specific permission attribute of the current user running program list, correspondingly control the underlying WiFi scanning time interval, and perform timing update and synchronous refreshing, so that when the running state of the current application changes, In time, according to the latest application permission information, it is determined whether the scan parameter needs to be adjusted. In addition, the WiFi low power mode can be dynamically managed according to a number of specific system broadcast messages.
先描述本发明的常见使用场景的一个参考实例。A reference example of a common use scenario of the present invention will be described first.
用户打开WiFi后,连接到一个热点,启动某应用程序(例如视频客户端)进行上网,一段时间后,退出该应用,不过没有关闭WiFi;随后走到另外一个地方,打开其他不使用WiFi与网络的本地应用例如计算器、记事本等,这时候由于离热点较远(已超出范围),手机与热点的连接会断开,系统自动开始周期性的扫描。实际上,结合用户实际正在运行的应用程序,此时的WiFi扫描对于用户当前操作基本上没有实际意义,这种情况下就可以增加扫描间隔,减少由于后台扫描带来的电量消耗。After the user turns on the WiFi, connect to a hotspot, start an application (such as a video client) to go online, and after a while, quit the application, but does not turn off the WiFi; then go to another place, open the other without using WiFi and the network The local application, such as calculator, notepad, etc., is far away from the hotspot (out of range), the connection between the mobile phone and the hotspot will be disconnected, and the system will automatically start periodic scanning. In fact, in combination with the application that the user is actually running, the WiFi scan at this time has substantially no practical meaning for the current operation of the user. In this case, the scanning interval can be increased, and the power consumption due to the background scanning is reduced.
下面结合附图进一步说明:The following further describes with reference to the accompanying drawings:
图4所示流程包括了低功耗模式的初始化与运行中的程序信息判断的主体流程。如图4所示:The flow shown in Figure 4 includes the initialization of the low-power mode and the main flow of the program information in the running. As shown in Figure 4:
S401-S402:手机开机,系统在完成初始化之后进入待机状态;S401-S402: The mobile phone is turned on, and the system enters the standby state after completing the initialization;
S403:根据WiFi开启以及连接状态,初始化WiFi低功耗模式;具体来说,这里如果WiFi已经打开,并且没有连接到某个热点,则进入WiFi低功耗模式,设置相关变量;否则复位相关变量(不进入WiFi低功耗模式)。这里低功耗模式是下述各种判断处理的前提条件。S403: Initialize the WiFi low power mode according to the WiFi on state and the connection state; specifically, if the WiFi is already turned on and is not connected to a hot spot, enter the WiFi low power mode, and set related variables; otherwise, the related variable is reset. (Do not enter WiFi low power mode). Here, the low power consumption mode is a prerequisite for various judgment processing described below.
S404:判断当前运行模式,如果已经进入WiFi低功耗模式,则继续下一步的获取运行程序权限信息。S404: Determine the current running mode. If the WiFi low power mode has been entered, proceed to the next step to obtain the running program permission information.
S405:在WiFi低功耗模式下,获取当前正在运行的应用程序列表,并依次查询每个应用程序所具有的权限,如果当前程序既没有WIFI权限、也没有INTERNET网络权限,则继续判断下一个应用程序,否则设置当前WiFi扫描周期为默认值之后转到S407;如果遍历完所有应用程序,都没有WIFI权限、INTERNET网络权限,转到S406;S405: In the WiFi low power mode, obtain a list of currently running applications, and sequentially query the permissions of each application. If the current program has neither WIFI rights nor INTERNET network rights, continue to judge the next one. Application, otherwise set the current WiFi scan cycle to the default value and then go to S407; if you traverse all applications, there is no WIFI permission, INTERNET network permissions, go to S406;
S406:由于当前运行程序都没有WIFI权限和网络权限,WiFi扫描操作可以增加时间间隔,也即设置一个较长的扫描周期,例如5分钟; S406: Since the currently running program does not have WIFI authority and network authority, the WiFi scanning operation may increase the time interval, that is, set a longer scanning period, for example, 5 minutes;
S407:更新定时器相关控制对象(例如发送一个延时消息),以使得一段时间之后,上述S404-S407的步骤可以自动执行。S407: Update the timer related control object (for example, send a delay message), so that after a period of time, the steps of S404-S407 described above may be automatically performed.
S408:流程处理完毕,返回。S408: The process is processed and returned.
图5所示流程包括应用程序信息查询与WiFi扫描周期设置操作,如图5所示,包括以下流程:The process shown in FIG. 5 includes an application information query and a WiFi scan cycle setting operation, as shown in FIG. 5, and includes the following processes:
S501:获取当前正在运行的应用程序列表(可以通过ActivityManager和PackageInfo等对象完成);S501: Get a list of currently running applications (can be completed by objects such as ActivityManager and PackageInfo);
S502:循环遍历该列表,逐个查询应用程序的所使用的权限信息(可以通过PackageManager完成);S502: Loop through the list and query the permission information used by the application one by one (can be completed by the PackageManager);
S503:判断当前应用程序的权限信息中,是否有WIFI权限(如"android.permission.ACCESS_WIFI_STATE"),如果没有该权限则继续下一步,否则直接转到S507;S503: determining whether there is WIFI permission in the permission information of the current application (such as "android.permission.ACCESS_WIFI_STATE"), if there is no such permission, proceed to the next step, otherwise go directly to S507;
S504:判断当前应用程序的权限信息中,是否有网络权限(如"android.permission.INTERNET"),如果没有该权限则继续下一步,否则直接转到S507;S504: determining whether there is network authority (such as "android.permission.INTERNET") in the permission information of the current application, if there is no such permission, proceed to the next step, otherwise go directly to S507;
S505:判断是否已经遍历完整个运行程序列表,如果已经遍历完成,则继续下一步,否则转到S502继续遍历操作。S505: Determine whether the entire running program list has been traversed. If the traversal has been completed, proceed to the next step, otherwise go to S502 to continue the traversal operation.
S506:修改WiFi扫描周期,改为一个较长的时间参数(例如5分钟);S506: Modify the WiFi scanning period to be changed to a longer time parameter (for example, 5 minutes);
S507:恢复默认的WiFi扫描周期,使得系统扫描操作按照默认配置进行。S507: Restore the default WiFi scanning period, so that the system scanning operation is performed according to the default configuration.
图6所示流程包括相关广播消息的处理以及状态变量的设置,具体如下:The process shown in Figure 6 includes the processing of related broadcast messages and the setting of state variables, as follows:
S601:注册一个广播接收器(BroadcastReceiver),并登记WiFi开关状态、网络连接变化方面的广播消息;S601: Registering a broadcast receiver (BroadcastReceiver), and registering a broadcast message of a WiFi switch state and a network connection change;
S602:在WiFi开关状态变化,或者网络连接状态变化时,该广播接收器收到对应的消息(Intent);S602: When the WiFi switch state changes, or the network connection state changes, the broadcast receiver receives a corresponding message (Intent);
S603:判断是否WiFi被关闭的消息,如果是WiFi被关闭,则转到S605,退出低功耗模式,因为这种情况下不需要再去遍历查询运行程序的权限信息,否则继续下一步; S603: determining whether the WiFi is closed message, if the WiFi is turned off, then going to S605, exiting the low power mode, because in this case, there is no need to traverse the permission information of the query running program, otherwise continue to the next step;
S604:判断是否WiFi网络连接上(Connected)的消息,如果已经连接上,由于Android系统在WiFi连接上之后不会继续扫描操作,所以也是转到S605,退出低功耗模式;否则转到S606;S604: determining whether the WiFi network connection (Connected) message, if it is connected, since the Android system does not continue the scanning operation after the WiFi connection, so also go to S605, exit the low power mode; otherwise, go to S606;
S605:退出低功耗模式,设置对应的状态变量;S605: exit the low power mode, and set a corresponding state variable;
S606:进入低功耗模式,设置对应的状态变量。S606: Enter a low power mode and set a corresponding state variable.
需要说明的是,进入低功耗模式后,本实施例中的扫描控制流程才会根据实际正在运行程序的权限信息判断是否需要修改扫描周期参数,或者是恢复默认的扫描周期,这是一个动态过程。It should be noted that, after entering the low power mode, the scan control process in this embodiment determines whether it is necessary to modify the scan period parameter according to the authority information of the actually running program, or restore the default scan period, which is a dynamic process.
本发明实施例中的低功耗优化方法适用于但不限于智能手机,平板电脑等终端。The low power optimization method in the embodiment of the present invention is applicable to, but not limited to, a terminal such as a smart phone or a tablet computer.
本发明提供的上述优选实施例实现了以下有益效果:在不影响用户常规使用的前提下,通过对周期性的WiFi扫描策略进行优化,并根据相关的系统广播消息对WiFi低功耗模式的智能管理,以达到节省电量、增加续航时间的目的,从而提升用户体验与产品综合竞争力。The above preferred embodiment provided by the present invention achieves the following beneficial effects: optimizing the periodic WiFi scanning policy and notifying the WiFi low power mode according to related system broadcast messages without affecting the user's regular use. Management to achieve the purpose of saving electricity and increasing battery life, thereby enhancing user experience and comprehensive product competitiveness.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
基于本发明实施例提供的上述技术方案,采用根据终端中应用是否具备网络连接权限来调整无线网络接入功能实体的功耗模式的技术手段,解决了相关技术中,无线网络接入时功耗较大等技术问题,从而可以优化无线接入网络的功耗处理,节省终端电量,增加终端的续航时间。 According to the foregoing technical solution provided by the embodiment of the present invention, the technical means for adjusting the power consumption mode of the wireless network access function entity according to whether the application has the network connection authority in the terminal is used, and the power consumption of the wireless network when the wireless network is accessed is solved in the related art. Larger technical problems, so that the power consumption of the wireless access network can be optimized, the terminal power is saved, and the terminal's battery life is increased.

Claims (10)

  1. 一种无线网络接入的功耗处理方法,包括:A power consumption processing method for wireless network access, comprising:
    在终端的无线网络接入功能实体开启时,获取终端当前运行应用列表中所有应用的网络连接信息,其中,该网络连接信息用于反映所述当前运行应用是否具有网络连接权限;When the wireless network access function entity of the terminal is enabled, the network connection information of all the applications in the application list is currently obtained, where the network connection information is used to reflect whether the currently running application has network connection authority;
    根据所述所有应用的网络连接信息调整无线网络接入功能实体的功耗模式,其中,在所述所有应用中至少一个应用的所述网络连接信息指示不具备网络连接权限时,将所述功耗模式调整为第一功耗模式,否则,将所述功耗模式调整为第二功耗模式;所述第一功耗模式的功耗小于所述第二功耗模式的功耗。Adjusting, according to the network connection information of all the applications, a power consumption mode of the wireless network access function entity, where the network connection information of the at least one application of the all applications indicates that the network connection permission is not available, The power consumption mode is adjusted to a first power consumption mode, otherwise, the power consumption mode is adjusted to a second power consumption mode; and the power consumption of the first power consumption mode is smaller than the power consumption of the second power consumption mode.
  2. 根据权利要求1所述的方法,其中,根据所述所有应用的所述网络连接信息调整无线网络接入功能实体的功耗模式,包括:The method according to claim 1, wherein the power consumption mode of the wireless network access function entity is adjusted according to the network connection information of all the applications, including:
    根据所述所有应用的网络连接信息调整对无线接入点的扫描间隔,其中,所述第一功耗模式对应的扫描间隔大于所述第二功耗模式对应的扫描间隔。The scanning interval of the wireless access point is adjusted according to the network connection information of all the applications, wherein the scanning interval corresponding to the first power consumption mode is greater than the scanning interval corresponding to the second power consumption mode.
  3. 根据权利要求1所述的方法,其中,获取终端当前运行应用列表中所有应用的网络连接信息之前包括:The method according to claim 1, wherein before obtaining the network connection information of all applications in the application list of the terminal currently running, the method comprises:
    获取所述无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息;Obtaining switch state change information of the wireless network access function entity or access state information of the wireless network;
    根据所述开关状态变化信息或所述接入状态信息进入或退出所述第一功耗模式,其中,在所述开关状态变化信息指示关闭无线网络接入功能实体或者所述无线网络接入功能实体已经接入网络时,退出所述第一功耗模式;否则,进入所述第一功耗模式。Entering or exiting the first power consumption mode according to the switch state change information or the access state information, where the switch state change information indicates to turn off a wireless network access function entity or the wireless network access function When the entity has accessed the network, the first power consumption mode is exited; otherwise, the first power consumption mode is entered.
  4. 根据权利要求3所述的方法,其中,获取所述无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息:The method according to claim 3, wherein the switch state change information of the wireless network access function entity or the access state information of the wireless network is obtained:
    接收来自网络侧的广播消息;Receiving broadcast messages from the network side;
    从所述广播消息中获取所述开关状态变化信息或所述接入状态信息。Obtaining the switch state change information or the access state information from the broadcast message.
  5. 根据权利要求1所述的方法,其中,获取终端当前运行应用列表中所有应用的网络连接信息,还包括: The method of claim 1, wherein obtaining network connection information of all applications in the application list of the terminal currently running, further comprising:
    周期性更新所述当前运行应用列表,并获取更新后的应用列表中的网络连接信息。Periodically updating the currently running application list and obtaining network connection information in the updated application list.
  6. 根据权利要求1至5中任一项所述的方法,其中,所述无线网络接入功能实体包括:The method according to any one of claims 1 to 5, wherein the wireless network access function entity comprises:
    无线保真WiFi模块。Wireless fidelity WiFi module.
  7. 一种无线网络接入的功耗处理装置,包括:A power consumption processing device for wireless network access, comprising:
    第一获取模块,设置为在终端的无线网络接入功能实体开启时,获取终端当前运行应用列表中所有应用的网络连接信息,其中,该网络连接信息用于反映所述当前运行应用是否具有网络连接权限;The first obtaining module is configured to: when the wireless network access function entity of the terminal is enabled, obtain network connection information of all applications in the application list currently running by the terminal, where the network connection information is used to reflect whether the currently running application has a network Connection permission
    第一调整模块,设置为根据所述所有应用的网络连接信息调整无线网络接入功能实体的功耗模式,其中,在所述所有应用中至少一个应用的所述网络连接信息指示不具备网络连接权限时,将所述功耗模式调整为第一功耗模式,否则,将所述功耗模式调整为第二功耗模式;所述第一功耗模式的功耗小于所述第二功耗模式的功耗。a first adjustment module, configured to adjust a power consumption mode of the wireless network access function entity according to the network connection information of all the applications, where the network connection information of the at least one application of the all applications indicates that the network connection is not available The power consumption mode is adjusted to the first power consumption mode, and the power consumption mode is adjusted to the second power consumption mode; the power consumption of the first power consumption mode is less than the second power consumption Mode power consumption.
  8. 根据权利要求7所述的装置,其中,所述第一调整模块,还设置为根据所述所有应用的网络连接信息调整对无线接入点的扫描间隔,其中,所述第一功耗模式对应的扫描间隔大于所述第二功耗模式对应的扫描间隔。The device according to claim 7, wherein the first adjustment module is further configured to adjust a scanning interval of the wireless access point according to network connection information of all applications, wherein the first power consumption mode corresponds to The scan interval is greater than the scan interval corresponding to the second power consumption mode.
  9. 根据权利要求7所述的装置,其中,还包括:The apparatus according to claim 7, further comprising:
    第二获取模块,设置为获取所述无线网络接入功能实体的开关状态变化信息或无线网络的接入状态信息;a second acquiring module, configured to acquire switch state change information of the wireless network access function entity or access state information of the wireless network;
    第二调整模块,设置为根据所述开关状态变化信息或所述接入状态信息进入或退出所述第一功耗模式,其中,在所述开关状态变化信息指示关闭无线网络接入功能实体或者所述无线网络接入功能实体已经接入网络时,退出所述第一功耗模式;否则,进入所述第一功耗模式。a second adjustment module, configured to enter or exit the first power consumption mode according to the switch state change information or the access state information, where the switch state change information indicates that the wireless network access function entity is turned off or When the wireless network access function entity has accessed the network, exiting the first power consumption mode; otherwise, entering the first power consumption mode.
  10. 根据权利要求9所述的装置,其中,所述第二获取模块包括:The apparatus of claim 9, wherein the second acquisition module comprises:
    接收单元,设置为接收来自网络侧的广播消息;a receiving unit, configured to receive a broadcast message from a network side;
    获取单元,设置为从所述广播消息中获取所述开关状态变化信息或所述接入状态信息。 And an acquiring unit, configured to acquire the switch state change information or the access state information from the broadcast message.
PCT/CN2014/087234 2014-08-12 2014-09-23 Method and device for processing power consumption of radio access network WO2015154391A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410396176.3A CN105338606A (en) 2014-08-12 2014-08-12 Wireless network access power consumption processing method and device
CN201410396176.3 2014-08-12

Publications (1)

Publication Number Publication Date
WO2015154391A1 true WO2015154391A1 (en) 2015-10-15

Family

ID=54287171

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087234 WO2015154391A1 (en) 2014-08-12 2014-09-23 Method and device for processing power consumption of radio access network

Country Status (2)

Country Link
CN (1) CN105338606A (en)
WO (1) WO2015154391A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672389A (en) * 2020-12-24 2021-04-16 北京小米移动软件有限公司 Network switching method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604362B (en) * 2016-12-07 2019-09-10 Oppo广东移动通信有限公司 A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN108934060B (en) * 2017-05-25 2022-03-04 中兴通讯股份有限公司 Power consumption adjusting method and device based on wireless network access
CN107911873A (en) * 2017-11-13 2018-04-13 珠海市魅族科技有限公司 Terminal control method, device, computer installation and computer-readable recording medium
CN112822742A (en) * 2021-02-01 2021-05-18 联想(北京)有限公司 Processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102823320A (en) * 2010-05-03 2012-12-12 惠普发展公司,有限责任合伙企业 Apparatus and methods for power management on mobile devices
CN103068016A (en) * 2012-12-18 2013-04-24 华为终端有限公司 Mobile terminal and method thereof to reduce power dissipation
CN103179647A (en) * 2013-03-11 2013-06-26 广东欧珀移动通信有限公司 Method and mobile terminal for intelligently controlling wifi (wireless fidelity) module
CN103905653A (en) * 2014-03-24 2014-07-02 小米科技有限责任公司 Mobile equipment data service control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102823320A (en) * 2010-05-03 2012-12-12 惠普发展公司,有限责任合伙企业 Apparatus and methods for power management on mobile devices
CN103068016A (en) * 2012-12-18 2013-04-24 华为终端有限公司 Mobile terminal and method thereof to reduce power dissipation
CN103179647A (en) * 2013-03-11 2013-06-26 广东欧珀移动通信有限公司 Method and mobile terminal for intelligently controlling wifi (wireless fidelity) module
CN103905653A (en) * 2014-03-24 2014-07-02 小米科技有限责任公司 Mobile equipment data service control method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672389A (en) * 2020-12-24 2021-04-16 北京小米移动软件有限公司 Network switching method
CN112672389B (en) * 2020-12-24 2023-03-10 北京小米移动软件有限公司 Network switching method

Also Published As

Publication number Publication date
CN105338606A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105354044B (en) A kind of application awakening method and device
US10178614B2 (en) Power saving Wi-Fi tethering
WO2015154391A1 (en) Method and device for processing power consumption of radio access network
US10057856B2 (en) Wake-up control method and apparatus, and terminal device
Cui et al. A survey of energy efficient wireless transmission and modeling in mobile cloud computing
TWI520641B (en) A method for managing the connection of a central device to a peripheral device, a system and a Bluetooth low power module
CN104601203B (en) A kind of low-power consumption bluetooth equipment dynamically adjusts the method and device of Connecting quantity
WO2016074473A1 (en) Router signal strength adjustment method and device
WO2013101763A1 (en) Opportunistic resource sharing between devices
US10206125B2 (en) Self organizing radio access network in a software defined networking environment
CN104283743A (en) Home network equipment and proxy service discovering method
WO2018107617A1 (en) Permission management method, related device, and system
CN108777862B (en) Bluetooth transmission method, Bluetooth controller and Bluetooth device
CN104105059A (en) Mobile device and method for managing background data transmission thereof
KR20130022488A (en) Apparatus and method for controlling polling
CN104935390A (en) Synchronized low-energy detection technique
US10477501B2 (en) Wireless communication device, wireless communication method, and storage medium
CN103595566A (en) Method and device for detecting idle IP addresses
US10708870B2 (en) Systems and methods for adjusting power settings of a wireless device
US11943710B2 (en) Electronic device, method, medium and apparatus for managing extender nodes
CN105682199B (en) A kind of method and system of wireless synchronization
CN111050387A (en) Base station dormancy method and device based on energy efficiency estimation, electronic equipment and medium
CN106874131A (en) Broadcast queue's method of adjustment, device and terminal device
WO2020037903A1 (en) Method and apparatus for controlling controller, and device and storage medium
US20210211979A1 (en) Control Method of Beacon Receiving Time and Station Using the Method

Legal Events

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

Ref document number: 14888933

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14888933

Country of ref document: EP

Kind code of ref document: A1