WO2016004676A1 - 无线网络配置方法、终端及计算机存储介质 - Google Patents
无线网络配置方法、终端及计算机存储介质 Download PDFInfo
- Publication number
- WO2016004676A1 WO2016004676A1 PCT/CN2014/086332 CN2014086332W WO2016004676A1 WO 2016004676 A1 WO2016004676 A1 WO 2016004676A1 CN 2014086332 W CN2014086332 W CN 2014086332W WO 2016004676 A1 WO2016004676 A1 WO 2016004676A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- mode
- wireless network
- configuration
- status information
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
-
- 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
Definitions
- the present invention relates to the field of mobile communication and wireless local area networks, and in particular, to a wireless network configuration method, a terminal, and a computer storage medium.
- WIFI Wireless Fidelity
- the WIFI device works in the station (Station, STA) mode and is connected to an AP, it is in the state of being off-screen or does not need to connect to other APs for a long time, and high-frequency scanning and data analysis will cause great uselessness. Power consumption.
- embodiments of the present invention are directed to a wireless network configuration method, a terminal, and a computer storage medium, which can reduce power consumption of a wireless local area network without affecting user experience.
- the status information of the terminal includes at least one of the following status information: wireless network status information, screen status information, and battery status information.
- the configuring the wireless network of the terminal to the corresponding scanning frequency according to the status information of the terminal includes:
- a configuration mode of the terminal Determining, according to the state information of the terminal, a configuration mode of the terminal, where the configuration mode includes a normal mode, a power saving mode, and a super save mode, where different configuration modes respectively correspond to a preset scanning frequency;
- the determining, according to the status information of the terminal, the configuration mode of the terminal including:
- the preset algorithm includes: weighting the quantized state information according to a preset weight.
- the determining, according to the integrated state value, the configuration mode of the terminal when the integrated state value is not less than a first preset threshold, determining that the configuration mode of the terminal is If the integrated state value is less than the second preset threshold, determining that the configuration mode of the terminal is a super save mode; when the integrated state value is less than the first preset threshold and not less than the second preset threshold And determining that the configuration mode of the terminal is a power saving mode.
- the embodiment of the invention further provides a terminal, where the terminal includes:
- the configuration module is configured to configure the wireless network of the terminal to the corresponding scanning frequency according to the state information of the terminal acquired by the acquiring module.
- the status information of the terminal includes at least one of the following status information: wireless network status information, screen status information, and battery status information.
- the configuration module includes:
- Determining a sub-module configured to determine a configuration mode of the terminal according to status information of the terminal, where the configuration mode includes a normal mode, a power saving mode, and a super-province mode, where different configuration modes respectively correspond to a preset scanning frequency;
- the adjusting submodule is configured to configure the wireless network of the terminal to the scanning frequency corresponding to the configuration mode according to the configuration mode of the terminal determined by the determining submodule.
- the determining submodule comprises:
- a quantization unit configured to quantize the state information of the terminal, and determine the integrated state value according to a preset algorithm according to the preset state information
- a matching unit configured to determine a matching mode of the terminal according to the integrated state value determined by the quantization unit.
- the matching unit is configured to determine that the configuration mode of the terminal is a normal mode when the integrated state value is not less than a first preset threshold; and when the integrated state value is less than a second preset threshold, Determining that the configuration mode of the terminal is a super power saving mode; when the integrated state value is less than a first preset threshold and not less than a second preset threshold, determining that the configuration mode of the terminal is a power saving mode.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the wireless network configuration method according to the embodiment of the invention.
- the power consumption function of the terminal can be reduced by effectively selecting the scanning frequency of the current network, thereby greatly extending the working time of the terminal battery and improving the user experience.
- FIG. 1 is a flowchart of a wireless network configuration method according to Embodiment 1 of the present invention.
- FIG. 2 is a flowchart of a method for configuring a wireless network according to Embodiment 2 of the present invention
- FIG. 3 is a flowchart of a terminal state detecting method in Embodiment 2 of the present invention.
- FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a configuration module in a terminal according to an embodiment of the present invention.
- 6-1 and 6-2 are schematic diagrams of simulation of power saving effect according to an embodiment of the present invention.
- the mobile terminal configures the corresponding working mode according to different state information by acquiring state information, and adjusts the scanning interval of the wireless network to achieve the purpose of power saving.
- FIG. 1 is a flowchart of a method for configuring a wireless network according to Embodiment 1 of the present invention.
- the method for configuring a wireless network is specifically illustrated in FIG. 1 and includes the following steps:
- Step S11 Acquire status information of the terminal.
- the status information of the terminal may be, but not limited to, at least one of the following status information: wireless network status information, screen status information, and battery status information.
- Step S12 Configure the wireless network of the terminal to the corresponding scanning frequency according to the status information of the terminal.
- step S12 includes:
- the configuration mode includes: a normal mode, a power saving mode, and a super save mode, and different configuration modes respectively correspond to a preset scanning frequency.
- the determining, according to the state information of the terminal, the configuration mode of the terminal, where the method used includes:
- the preset algorithm includes: weighting the quantized state information according to a preset weight.
- the scanning frequency of the wireless network is adjusted according to the state of the terminal, and the power saving is achieved due to the increase of the scanning period.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the wireless network configuration method according to the embodiment of the invention.
- FIG. 2 is a flowchart of a method for configuring a wireless network according to Embodiment 2 of the present invention. As shown in FIG. 2, the method includes:
- Step 100 Acquire status information of the terminal.
- the status information of the terminal may be at least one of the following status information: a wireless network Status information, screen status information, battery status information.
- the mobile terminal collects its own state information.
- the state information of the terminal is: three state information: wireless local area network connection state information, battery state information, and screen state information.
- the embodiment of the present invention includes at least one of the foregoing state information.
- FIG. 3 is a flowchart of a terminal state detecting method in Embodiment 2 of the present invention; as shown in FIG. 3, the method includes:
- Step 3010 Define a message listening service (L-Service), run the message monitoring service when the system is started, and record WIFI status information, battery status information, and interface display status information of the terminal.
- L-Service message listening service
- Step 3011 The L-Service waits for the arrival of the notification message.
- Step 3012 When it is detected that the state of the terminal changes, the process goes to step 3013.
- the notification message of the WIFI state change (WIFI_State_Change) is broadcasted; when it is detected that the remaining battery power is reduced to a preset power threshold, for example, 5%, the broadcast output is low (Low_Battery) a notification message of the broadcast user interface (UI) change (UI_Change) when detecting the entry or exit of the hotspot list interface;
- UI broadcast user interface
- Step 3013 Update status information of the terminal recorded by the L-Service, and quantize the status information of the terminal.
- Step 3014 Obtain a comprehensive state value according to each state information quantized value obtained in step 3013.
- Step 101 Find a preset state information quantization mapping table, and obtain a corresponding state information quantization value according to the state information of the terminal.
- the state information quantization mapping table is preset in the terminal, and may also be adjusted according to the needs of the user.
- Embodiments of the present invention are shown in Table 1, Table 2, and Table 3.
- Table 1, Table 2, and Table 3 For example, a quantization process of each state information of the terminal is described, and each of the quantization information mapping tables is shown in Table 1, Table 2, and Table 3.
- Table 1 is a wireless network state quantization correspondence table.
- the quantization value ⁇ is equal to 1; when the network is connected to the hotspot but cannot access the Internet, the quantization value ⁇ is equal to 0.5; when the network is connected to the hotspot and can access the Internet, the scanning is performed.
- the terminal After detecting the state of the wireless network, the terminal queries Table 1 to obtain a quantized value of the corresponding wireless network state information.
- Table 2 is a battery state quantization correspondence table. After detecting the battery state, the terminal queries Table 2 to obtain the corresponding battery quantization state information quantized into a value ⁇ , wherein the value of ⁇ is obtained by the terminal power detector.
- the value of ⁇ is expressed as a decimal number of the remaining battery power. For example, if the remaining battery power is 70%, the decimal value of ⁇ is 70%, that is, 0.7. Other similar. The smaller the quantized value ⁇ , the smaller the remaining battery power, and the more power is needed.
- Table 3 is a screen state quantization correspondence table. After detecting the screen state, the terminal queries Table 3 to obtain the corresponding screen quantization state information quantized into a value ⁇ . Table 3 is only an example, when the user adjusts the terminal to enter the setting. When the interface of the network hotspot list is available, the user needs to get the information of the surrounding hotspot in time, and ⁇ is equal to 1. When other screens are displayed, the user's demand for surrounding hotspot information is low, and ⁇ is equal to 0; wherein the value of ⁇ can be selected according to user needs.
- Step 102 Determine the integrated state value (K synthesis ) according to the preset algorithm according to the preset state information.
- the preset algorithm includes: respectively weighting the quantized state information according to a preset weight.
- k1 is 0.3
- k2 is 0.7
- k3 is 1. It can be set according to user requirements.
- ⁇ , ⁇ , and ⁇ are network connection state information quantized values, battery state information quantized values, and screen state information quantized values, respectively, k1, k2, and k3 are weight coefficients.
- the weighting coefficient may be modified or set according to the user's demand for each state of the terminal.
- Step 103 Determine a corresponding configuration mode according to the integrated state value.
- Table 4 is a map of the terminal integrated state value (K synthesis ) and the corresponding WIFI working mode; according to the integrated weight value and the data shown in FIG. 4, the matching working state of the WIFI of the terminal and the scanning interval in the corresponding state are determined. Specifically, when the K synthesis is ⁇ 1, it is determined that the configuration mode of the terminal is a normal mode; when the K synthesis is less than 0.5, determining that the configuration mode of the terminal is a super-province mode; when 1>K is integrated ⁇ And determining that the configuration mode of the terminal is a power saving mode, where the first and second thresholds are respectively a first preset threshold and a second preset threshold; the first preset threshold and the second preset threshold. Can be set according to actual needs.
- the WIFI working mode is divided into a normal mode, a power saving mode, and a super-saving mode, and the corresponding WIFI scanning intervals are 10 seconds, 20, and 30 seconds, respectively.
- the configuration mode of the wireless network of the terminal is determined according to the table.
- Step 104 Load the obtained scan interval into the wireless network driver through the middleware, so that the wireless network works in the corresponding power saving mode.
- the integrated weight is smaller. And the effect of remaining battery power is greater than others.
- the comprehensive weight get different working modes. Different working modes achieve the purpose of the node through different scanning intervals. The larger the scanning interval, the more obvious the power saving effect.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the wireless network configuration method according to the embodiment of the invention.
- FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention; as shown in FIG. 4, the terminal disclosed in the embodiment of the present invention includes: an acquiring module M1 and a configuration module M2, where
- the acquiring module M1 is configured to acquire state information of the terminal.
- the configuration module M2 is configured to adjust the wireless network configuring the terminal to a corresponding scanning frequency according to the state information of the terminal acquired by the acquiring module M1.
- the acquiring module M1 is configured to acquire state information of the terminal, and the state information of the terminal includes at least one of the following state information: wireless network state information, screen state information, and battery state information.
- FIG. 5 is a schematic structural diagram of a configuration module in a terminal according to an embodiment of the present invention. As shown in FIG. 5, The configuration module M2 further includes: a determining submodule M21 and an adjusting submodule M22; wherein
- the determining sub-module M21 is configured to determine a corresponding configuration mode of the terminal according to the state information of the terminal, where the configuration mode includes a normal mode, a power saving mode, and a super-province mode, and different configuration modes respectively correspond to a preset scan frequency;
- the adjustment submodule M22 is configured to configure the wireless network of the terminal to the scanning frequency corresponding to the configuration mode according to the configuration mode of the terminal determined by the determining submodule M21.
- the determining submodule M21 includes: a quantization unit M211 and a matching unit M212; wherein
- the quantization unit M211 is configured to quantize the state information of the terminal, and determine the integrated state value according to a preset algorithm according to the preset algorithm; wherein the preset algorithm includes: respectively: after the quantizing The status information is weighted and averaged according to preset weights;
- the matching unit M212 is configured to determine a matching mode of the terminal according to the integrated quantization state information value determined by the quantization unit M211.
- the quantization unit M211 is configured to obtain a state information quantization value corresponding to the state information according to the state information quantization mapping table stored in advance by the terminal.
- the matching unit M212 is configured to: when the integrated state value is not less than the first preset threshold, determine that the configuration mode of the terminal is a normal mode; when the integrated state value is less than a second preset threshold, determine the location The configuration mode of the terminal is a super save mode; when the integrated state value is less than the first preset threshold and not less than the second preset threshold, determining that the configuration mode of the terminal is the power saving mode.
- the terminal in the embodiment of the present invention may be implemented by a terminal device capable of connecting to a wireless network, such as a computer, a mobile phone, or a tablet computer; the acquiring module M1 and the configuration module M2 in the terminal, and the configuration module M2.
- the matching unit M212 in practical applications, may be a central processing unit (CPU) in the terminal, or a digital signal processor (DSP), or a programmable gate array (FPGA, Field- Programmable Gate Array) implementation.
- CPU central processing unit
- DSP digital signal processor
- FPGA Field- Programmable Gate Array
- the functions of the processing units in the terminal of the embodiment of the present invention can be understood by referring to the related description of the foregoing wireless network configuration method, and the processing units in the terminal of the embodiment of the present invention can be implemented by implementing the present invention.
- the function of the analog circuit described in the example is implemented, and can also be implemented by running the software of the function described in the embodiment of the present invention on the smart terminal.
- FIG. 6-1 and 6-2 are schematic diagrams of simulation of power saving effect according to an embodiment of the present invention. As shown in FIG. 6-1 and FIG. 6-2,
- Figure 6-1 is a power consumption diagram of the WIFI after the WIFI is connected to the hotspot based on the above settings and the terminal is in the normal working mode. As shown in Figure 6-1, the system scans every ten seconds, and each scan takes 6 seconds to complete. The total power consumption of WIFI in one minute is 36P2+24P1.
- FIG. 6-2 is a power consumption diagram of a WIFI connection hotspot based on the above settings and the terminal is in a super power saving operation mode. As shown in Figure 6-2, since the scan period is 30 seconds, the total power consumption of WIFI in one minute is 12P2+48P1.
- the embodiment provided by the present invention can be achieved by effectively selecting the scanning frequency of the current network. Reduce the power consumption of the terminal.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
- the embodiment of the invention achieves the function of reducing the power consumption of the terminal by effectively selecting the scanning frequency of the current network, thereby greatly extending the working time of the terminal battery and improving the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
本发明实施例公开了一种无线网络配置方法、终端及计算机存储介质,所述方法包括:获取所述终端的状态信息;根据所述终端的状态信息,配置所述终端的无线网络至相应的扫描频率。
Description
本发明涉及移动通讯及无线局域网领域,特别涉及一种无线网络配置方法、终端及计算机存储介质。
随着科技的进步及社会的发展,越来越多的电子产品进入普通人的生活,作为新兴电子产品的典型代表,包括智能手机和平板电脑在内的移动终端越来越受到大家的关注和欢迎。虽然移动终端为大家的衣食住行等各方面提供了很多的方便,具有其他产品无可比拟的优势,但仍有某些性能难以满意大家的需求,其中重要的一点就是续航能力。续航能力是衡量移动终端性能的重要标准之一,在现有的技术条件下,短时间内无法看到电池扩容新技术的出现,在有限的电池容量下,如何降低终端系统的功率消耗成为当前移动终端领域亟需解决的重点问题之一。
现在的移动终端系统中,无线保真(WIFI)支持已经成为其必不可少的功能。而作为移动系统的能耗大户,WIFI基本业务、WIFI热点及WIFI直连等几大功能的耗能大小对移动终端系统整体的续航能力有重要影响。由于数据业务资费依旧昂贵,而且WIFI热点越来越普及,基于WIFI的衍生业务越来越多,更多的移动终端持有者喜欢通过WIFI连接某个接入点(Access Point,AP)进行上网等。当WIFI设备工作时,为了及时得到周围环境的信息,需不断的进行自动扫描。但很多情况下,WIFI设备收到扫描得到的实时信息后进行解析处理后,用户并不进行任何关注。如WIFI设备工作于工作站(Station,STA)模式连接某个AP后处于灭屏状态或长时间无需连接其他AP等情况,而高频率的扫描、数据解析等会造成极大无用
功耗。
发明内容
有鉴于此,本发明实施例旨在提供一种无线网络配置方法、终端及计算机存储介质,能够实现在不影响用户体验的同时降低无线局域网的功耗。
为达到上述目的,本发明实施例的技术方案是这样实现的:
获取终端的状态信息;
根据所述终端的状态信息,配置所述终端的无线网络至相应的扫描频率。
优选的,所述终端的状态信息包括以下状态信息的至少一种:无线网络状态信息、屏幕状态信息和电池状态信息。
优选的,所述根据所述终端的状态信息,配置所述终端的无线网络至相应的扫描频率,包括:
根据所述终端的状态信息,确定所述终端的配置模式;其中,所述配置模式包括普通模式、省电模式和超省模式,不同的配置模式分别对应一个预设的扫描频率;
根据所述配置模式确定所述配置模式对应的扫描频率,配置所述终端的无线网络至所述配置模式对应的扫描频率。
优选的,所述根据所述终端的状态信息,确定所述终端的配置模式,包括:
将所述终端的状态信息量化,并将量化后的状态信息按照预设的算法确定综合状态值;
根据所述综合状态值,确定所述终端的配置模式;其中,所述预设的算法包括:分别将所述量化后的状态信息按照预设的权重加权平均。
优选的,所述根据所述综合状态值,确定所述终端的配置模式,包括:当所述综合状态值不小于第一预设阈值时,确定所述终端的配置模式为普
通模式;当所述综合状态值小于第二预设阈值时,确定所述终端的配置模式为超省模式;当所述综合状态值小于第一预设阈值并且不小于第二预设阈值时,确定所述终端的配置模式为省电模式。
本发明实施例还提供了一种终端,所述终端包括:
获取模块,配置为获取所述终端的状态信息;
配置模块,配置为根据所述获取模块获取的所述终端的状态信息,配置所述终端的无线网络至相应的扫描频率。
优选的,所述终端的状态信息包括以下状态信息的至少一种:无线网络状态信息、屏幕状态信息和电池状态信息。
优选的,所述配置模块包括:
确定子模块,配置为根据所述终端的状态信息,确定所述终端的配置模式;其中,所述配置模式包括普通模式、省电模式和超省模式,不同的配置模式分别对应一个预设的扫描频率;
调整子模块,配置为根据所述确定子模块确定的所述终端的配置模式配置所述终端的无线网络至所述配置模式对应的扫描频率。
优选的,所述确定子模块包括:
量化单元,配置为将所述终端的状态信息量化,并将量化后的状态信息按照预设的算法,确定综合状态值;
匹配单元,配置为根据所述量化单元确定的所述综合状态值,确定所述终端的匹配模式,。
优选的,所述匹配单元,配置为当所述综合状态值不小于第一预设阈值时,确定所述终端的配置模式为普通模式;当所述综合状态值小于第二预设阈值时,确定所述终端的配置模式为超省模式;当所述综合状态值小于第一预设阈值并且不小于第二预设阈值时,确定所述终端的配置模式为省电模式。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的无线网络配置方法。
通过本发明实施例的技术方案,可以通过有效选择当前网络的扫描频率来达到降低终端的功耗功能,大大延长了终端电池的工作时间,提升用户的体验。
图1是本发明实施例一的无线网络配置方法的流程图;
图2是本发明实施例二的无线网络配置方法的流程图;
图3是本发明实施例二中的终端状态检测方法的流程图;
图4是本发明实施例的终端结构示意图;
图5是本发明实施例的终端中的配置模块的结构示意图;
图6-1和图6-2是本发明实施例的节电效果仿真示意图。
以下结合说明书附图及具体实施例对本发明实施例提供的技术方案做进一步详细的阐述。
在本发明的各种实施例中,移动终端通过获取状态信息,并根据不同的状态信息配置相应的工作模式,并调整无线网络扫描间隔,达到节电的目的。
图1是本发明实施例一的无线网络配置方法的流程图,所述无线网络配置方法具体说明如图1所示,包括以下步骤:
步骤S11:获取所述终端的状态信息。
所述终端的状态信息可以是但不局限于以下状态信息的至少一种:无线网络状态信息、屏幕状态信息、电池状态信息。
步骤S12:根据所述终端的状态信息,配置所述终端的无线网络至相应的扫描频率。
本实施例中,步骤S12包括:
根据所述终端的状态信息,确定所述终端的配置模式;根据所述配置模式确定所述配置模式对应的扫描频率,配置调整所述终端的无线网络至所述配置模式对应至相应的扫描频率;
其中,所述配置模式包括:普通模式、省电模式和超省模式,不同的配置模式分别对应一个预设的扫描频率。
具体的,本实施例中,所述根据所述终端的状态信息,确定所述终端的配置模式,采用的方法包括:
根据所述终端的状态信息量化映射表,获取所述状态信息对应的状态信息量化值;并将量化后的状态信息按照预设的算法,确定综合状态值;
根据所述综合状态值,确定所述终端的配置模式;其中,所述预设的算法包括:分别将所述量化后的状态信息按照预设的权重加权平均。
采用本发明实施例所述的方法,根据终端的状态调整无线网络扫描频率,由于扫描周期的增大,达到节电的目的。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的无线网络配置方法。
下面结合附图对本专利的实施方法做进一步的详细说明。
图2是本发明实施例二的无线网络配置方法的流程图,如图2所示,所述方法包括:
步骤100:获取所述终端的状态信息。
所述终端的状态信息可以是以下状态信息的至少一种:无线网络状
态信息、屏幕状态信息、电池状态信息。
当所述移动终端状态发生变化时,所述移动终端采集自身的状态信息,本发明实施例以所述终端的状态信息为:无线局域网连接状态信息、电池状态信息和屏幕状态信息三个状态信息为例进行说明,本发明实施例包括并不局限于上述状态信息的至少一种。
具体的,图3是本发明实施例二中的终端状态检测方法的流程图;如图3所示,所述方法包括:
步骤3010:定义一个消息监听服务(L-Service),在系统启动时运行所述消息监听服务,并记录所述终端的WIFI状态信息、电池状态信息和界面显示状态信息。
步骤3011:L-Service等待通知消息的到来。
步骤3012:检测到终端的状态发生变化时,跳至步骤3013。
具体的,当检测到WIFI状态发生变化时,广播出WIFI状态改变(WIFI_State_Change)的通知消息;当检测到电池剩余电量减小到预设的电量阈值,例如5%时,广播出电量低(Low_Battery)的通知消息;当检测到进入或离开热点列表界面时,广播用户界面(User Interface,UI)变化(UI_Change)的通知消息;
步骤3013:更新L-Service记录的所述终端的状态信息,并将所述终端的状态信息进行量化。
步骤3014:根据步骤3013得到的各状态信息量化值,得到综合状态值。
步骤101:查找预设的状态信息量化映射表,根据所述终端的状态信息获取对应的状态信息量化值。
本实施例的步骤101中,所述状态信息量化映射表预置在所述终端中,也可以根据用户的需求自行调整。本发明实施例以表1、表2、表3
为例,描述所述终端的各状态信息的量化过程,各个量化信息映射表参照表1、表2和表3所示。
表1为无线网络状态量化对应表,当网络未连接热点时,量化值α等于1;当网络连接热点,但无法上网时,量化值α等于0.5;当网络连接热点且可以上网时,对扫描热点的需求越小,其量化值α最小,等于0.2;表1中的数据仅为一个示例,其中α的值可以根据用户需求自行选择。
所述终端在检测到无线网络状态后,查询表1,得到对应的无线网络状态信息的量化值。
无线网络状态 | α取值 |
未连接热点 | α=1 |
已连接、不可上网 | α=0.5 |
已连接、可上网 | α=0.2 |
表1
表2为电池状态量化对应表,所述终端在检测到电池状态后,查询表2,得到对应的电池量化状态信息的量化为值β,其中β的值由所述终端电量检测器得到。
如表所示β的取值为电池剩余电量百分比的小数表示,例如电池剩余电量为70%,则β为70%的小数表示,即0.7。其他类似。量化数值β越小,电池剩余电量越小,越需要节电。
电池状态 | β取值 |
剩余电量 | 剩余电量的小数格式 |
表2
表3为屏幕状态量化对应表,终端在检测到屏幕状态后,查询表3,得到对应的屏幕量化状态信息的量化为值γ,表3只是一个示例,当用户调整所述终端进入设置里的可用网络热点列表的界面时,用户需要及时的得到周围热点的信息,γ等于1。当其他屏幕显示时,用户对周围热点信息的需求度较低,γ等于0;其中γ的值可以根据用户需求自行选择。
屏幕状态 | γ取值 |
显示热点列表界面 | γ=1 |
其他界面 | γ=0 |
表3
步骤102:将量化后的状态信息按照预设的算法,确定综合状态值(K综合)。
这里,所述预设算法包括:分别将所述量化后的状态信息按照预设的权重加权平均。具体的,本实施例采用加权方式:K综合=k1*α+k2*β+k3*γ,获取状态量化值后一个综合信息。本实施例中,采用k1为0.3、k2为0.7、k3为1,可以根据用户需求设置。基于步骤102中的表1、表2和表3,其中,α、β、γ分别为网络连接状态信息量化值、电池状态信息量化值和屏幕状态信息量化值,k1、k2和k3为权重系数,所述权重系数可以根据用户对所述终端各状态的需求度自行修改或设置。
所述权重系数的计算有很多成熟的方法,如主观赋权法、客观赋权法和组合赋权法等。由于此算法不是本方案的重点,不再细致描述。由于屏幕显示状态为决策红线,其系数为1,WIFI连接状态及电池剩余电量的系数可以根据实际需求进行更改优化,本方案已0.3、0.7为例进行说明。
步骤103:根据所述综合状态值,确定相应的配置模式。
表4为终端综合状态值(K综合)及对应WIFI工作模式映射图;根据综合权重值及图4所示的数据,确定所述终端的WIFI的匹配工作状态及对应状态下的扫描间隔。具体的,当所述K综合≥1时,确定所述终端的配置模式为普通模式;当所述K综合<0.5时,确定所述终端的配置模式为超省模式;当1>K综合≥0.5,确定所述终端的配置模式为省电模式;其中,所述1、0.5分别为第一预设阈值和第二预设阈值;所述第一预设阈值和所述第二预设阈值可根据实际需求设置。
综合状态值K综合 | 配置模式 | 扫描间隔(秒) |
K综合≥1 | 普通模式 | 10 |
1>K综合≥0.5 | 省电模式 | 20 |
K综合<0.5 | 超省模式 | 30 |
表4
如表4所示,WIFI工作模式分为普通模式、省电模式、超省模式,对应的WIFI扫描间隔分别为10秒、20、30秒。基于预设算法得到综合状态值(K综合)后,依据本表确定所述终端的无线网络的配置模式。
步骤104:将得到的扫描间隔通过中间件加载到无线网络驱动,使无线网络工作在对应的节电模式下。
本发明实施例提供的无线网络配置方法,当电池剩余电量越少、无线网络状态越接近已连接可上网的状态,综合权重越小。且电池剩余电量的影响大于其他。最后根据综合权重,获取不同的工作模式。不同的工作模式通过不同的扫描间隔,达到节点的目的。扫描间隔越大,节电效果越明显。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的无线网络配置方法。
图4是本发明实施例的终端结构示意图;如图4所示,本发明实施例公开的终端包括:获取模块M1和配置模块M2,其中,
所述获取模块M1,配置为获取所述终端的状态信息;
所述配置模块M2,配置为根据所述获取模块M1获取的所述终端的状态信息,调整配置所述终端的无线网络至相应的扫描频率。
其中,所述获取模块M1,配置为获取所述终端的状态信息,所述终端的状态信息包括以下状态信息的至少一种:无线网络状态信息、屏幕状态信息和电池状态信息。
图5是本发明实施例的终端中的配置模块的结构示意图;如图5所示,
所述配置模块M2还包括:确定子模块M21和调整子模块M22;其中,
所述确定子模块M21,配置为根据所述终端的状态信息,确定所述终端相应的配置模式;其中,所述配置模式包括普通模式、省电模式和超省模式,不同的配置模式分别对应一个预设的扫描频率;
所述调整子模块M22,配置为根据所述确定子模块M21确定的所述终端的配置模式配置所述终端的无线网络至所述配置模式对应的扫描频率。
图5中,所述确定子模块M21包括:量化单元M211和匹配单元M212;其中,
所述量化单元M211,配置为将所述终端的状态信息量化,并将量化后的状态信息按照预设的算法确定综合状态值;其中,所述预设的算法包括:分别将所述量化后的状态信息按照预设的权重加权平均;
所述匹配单元M212,配置为根据所述量化单元M211确定的所述综合量化状态信息值,确定所述终端的匹配模式。
所述量化单元M211,配置为根据所述终端预先存储的的状态信息量化映射表,获取所述状态信息对应的状态信息量化值。
所述匹配单元M212,配置为当所述综合状态值不小于第一预设阈值时,确定所述终端的配置模式为普通模式;当所述综合状态值小于第二预设阈值时,确定所述终端的配置模式为超省模式;当所述综合状态值小于第一预设阈值并且不小于第二预设阈值时,确定所述终端的配置模式为省电模式。
其中,本发明实施例中的终端在实际应用中,可由电脑、手机或平板电脑等能够连接无线网络的终端设备实现;所述终端中的获取模块M1和配置模块M2,以及所述配置模块M2的子模块:确定子模块M21和调整子模块M22,以及所述确定子模块M21中的子模块:量化单元M211
和匹配单元M212,在实际应用中,可由所述终端中的中央处理器(CPU,Central Processing Unit)、或数字信号处理器(DSP,Digital Signal Processor)、或可编程门阵列(FPGA,Field-Programmable Gate Array)实现。
本领域技术人员应当理解,本发明实施例的终端中各处理单元的功能,可参照前述无线网络配置方法的相关描述而理解,本发明实施例的终端中各处理单元,可通过实现本发明实施例所述的功能的模拟电路而实现,也可以通过执行本发明实施例所述的功能的软件在智能终端上的运行而实现。
图6-1和图6-2是本发明实施例的节电效果仿真示意图;如图6-1和图6-2所示,
以安卓(Android)4.0系统为例,当WIFI连接热点后,系统如果使用固定的间隔进行周期性扫描,完成一次扫描的时间为5-6秒,在仿真过程中假设为6秒。假设WIFI设备进行扫描时,其功率为P2,不进行扫描时其功率为P1,则P2>P1。
图6-1是基于以上设定、且所述终端处于普通工作模式下,在WIFI连接热点后,WIFI的功率消耗图。如图6-1所示,系统每隔十秒进行一次扫描,每次扫描需要6秒完成,则一分钟内WIFI的总功耗为36P2+24P1。
图6-2是基于以上设定、且所述终端在超省电工作模式下,WIFI连接热点的功率消耗图。如图6-2所示,由于扫描周期为30秒,其一分钟内WIFI的总功耗为12P2+48P1。
由图6-1与图6-2对比可得,使用本发明实施例的超省电工作模式方式,每分钟内可降低功耗24(P2—P1),假设P2=2*P1,则可降低功耗的百分比为25%。
本发明提供的实施例可以通过有效选择当前网络的扫描频率来达到
降低终端的功耗功能。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
本发明实施例通过有效选择当前网络的扫描频率来达到降低终端的功耗功能,大大延长了终端电池的工作时间,提升用户的体验。
Claims (11)
- 一种无线网络配置方法,所述方法包括:获取终端的状态信息;根据所述终端的状态信息,配置所述终端的无线网络至相应的扫描频率。
- 根据权利要求1所述的无线网络配置方法,其中,所述终端的状态信息包括以下状态信息的至少一种:无线网络状态信息、屏幕状态信息和电池状态信息。
- 根据权利要求1或2所述的无线网络配置方法,其中,所述根据所述终端的状态信息,配置所述终端的无线网络至相应的扫描频率,包括:根据所述终端的状态信息,确定所述终端的配置模式;其中,所述配置模式包括普通模式、省电模式和超省模式,不同的配置模式分别对应一个预设的扫描频率;根据所述配置模式确定所述配置模式对应的扫描频率,配置所述终端的无线网络至所述配置模式对应的扫描频率。
- 根据权利要求3所述的无线网络配置方法,其中,所述根据所述终端的状态信息,确定所述终端的配置模式,包括:将所述终端的状态信息量化,并将量化后的状态信息按照预设的算法确定综合状态值;根据所述综合状态值,确定所述终端的配置模式;其中,所述预设的算法包括:分别将所述量化后的状态信息按照预设的权重加权平均。
- 根据权利要求4所述的无线网络配置方法,其中,所述根据所述综合状态值,确定所述终端的配置模式,包括:当所述综合状态值不小于第一预设阈值时,确定所述终端的配置模式 为普通模式;当所述综合状态值小于第二预设阈值时,确定所述终端的配置模式为超省模式;当所述综合状态值小于第一预设阈值并且不小于第二预设阈值时,确定所述终端的配置模式为省电模式。
- 一种终端,所述终端包括:获取模块,配置为获取所述终端的状态信息;配置模块,配置为根据所述获取模块获取的所述终端的状态信息,配置所述终端的无线网络至相应的扫描频率。
- 根据权利要求6所述的终端,其中,所述终端的状态信息包括以下状态信息的至少一种:无线网络状态信息、屏幕状态信息和电池状态信息。
- 根据权利要求6或7所述的终端,其中,所述配置模块包括:确定子模块,配置为根据所述终端的状态信息,确定所述终端的配置模式;其中,所述配置模式包括普通模式、省电模式和超省模式,不同的配置模式分别对应一个预设的扫描频率;调整子模块,配置为根据所述确定子模块确定的所述终端的配置模式配置所述终端的无线网络至所述配置模式对应的扫描频率。
- 根据权利要求8所述的终端,其中,所述确定子模块包括:量化单元,配置为将所述终端的状态信息量化,并将量化后的状态信息按照预设的算法确定综合状态值;其中,所述预设的算法包括:分别将所述量化后的状态信息按照预设的权重加权平均;匹配单元,配置为根据所述量化单元确定的所述综合状态值,确定所述终端的匹配模式。
- 根据权利要求9所述的终端,其中,所述匹配单元,配置为当所述综合状态值不小于第一预设阈值时,确定所述终端的配置模式为普通模式;当所述综合状态值小于第二预设阈值时,确定所述终端的配置模式为超省模式;当所述综合状态值小于第一预设阈值并且不小于第二预设阈值 时,确定所述终端的配置模式为省电模式。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至5任一项所述的无线网络配置方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410323929.8A CN105307153A (zh) | 2014-07-08 | 2014-07-08 | 终端的无线网络配置方法及终端 |
CN201410323929.8 | 2014-07-08 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016004676A1 true WO2016004676A1 (zh) | 2016-01-14 |
Family
ID=55063540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/086332 WO2016004676A1 (zh) | 2014-07-08 | 2014-09-11 | 无线网络配置方法、终端及计算机存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105307153A (zh) |
WO (1) | WO2016004676A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106792873A (zh) * | 2016-12-07 | 2017-05-31 | 广东欧珀移动通信有限公司 | WiFi信号强度的更新方法及装置 |
CN107517445B (zh) * | 2017-08-30 | 2020-12-01 | 太仓市世纪港制衣有限公司 | Wlan热点搜索方法及移动终端 |
CN110248401B (zh) * | 2019-06-18 | 2022-03-22 | Oppo广东移动通信有限公司 | WiFi的扫描控制方法、装置、存储介质及移动终端 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711226A (zh) * | 2012-05-23 | 2012-10-03 | 中兴通讯股份有限公司 | Wifi接入点扫描方法及装置 |
CN103442413A (zh) * | 2013-08-29 | 2013-12-11 | 惠州Tcl移动通信有限公司 | 移动终端的无线网络设置方法 |
WO2014092799A1 (en) * | 2012-12-14 | 2014-06-19 | Intel Corporation | Techniques and apparatus to manage power in wireless device |
-
2014
- 2014-07-08 CN CN201410323929.8A patent/CN105307153A/zh not_active Withdrawn
- 2014-09-11 WO PCT/CN2014/086332 patent/WO2016004676A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711226A (zh) * | 2012-05-23 | 2012-10-03 | 中兴通讯股份有限公司 | Wifi接入点扫描方法及装置 |
WO2014092799A1 (en) * | 2012-12-14 | 2014-06-19 | Intel Corporation | Techniques and apparatus to manage power in wireless device |
CN103442413A (zh) * | 2013-08-29 | 2013-12-11 | 惠州Tcl移动通信有限公司 | 移动终端的无线网络设置方法 |
Also Published As
Publication number | Publication date |
---|---|
CN105307153A (zh) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105898777B (zh) | 邻区测量方法及装置 | |
EP3171618B1 (en) | Radio communication devices and methods for performing wireless peer-to-peer discovery | |
US8433321B2 (en) | Method and apparatus for intelligently reporting neighbor information to facilitate automatic neighbor relations | |
US8386816B2 (en) | Methods, apparatuses, and computer program products for reducing power consumption in computing devices | |
CN106445072B (zh) | 实现移动终端降低功耗的方法、装置以及移动终端 | |
CN101534540B (zh) | 无线局域网络中探测帧的响应方法和设备 | |
US20180103430A1 (en) | Access point discovery using a wakeup receiver | |
US10681200B2 (en) | Message processing method and system, and related device | |
US10028255B2 (en) | Delivering data to a wireless station | |
US11375426B2 (en) | Method and apparatus for mobility mechanism in the scenario including both EPC and 5GC | |
KR101623399B1 (ko) | 무선 통신 기기에서의 동시 수신기의 전력 소비를 감소시키는 방법 및 장치 | |
WO2020157261A1 (en) | Wake-up signal grouping based on paging probability | |
US11546104B2 (en) | Communications method, device, and system | |
WO2016004676A1 (zh) | 无线网络配置方法、终端及计算机存储介质 | |
WO2015169238A1 (zh) | 一种小区选择及其控制方法及装置 | |
EP2929729A1 (en) | Methods and apparatus for selecting an inter-radio access technology for an electronic device | |
WO2023004965A1 (zh) | 邻区测量方法及装置 | |
US10064139B2 (en) | Context-assisted thermal management scheme in a portable device | |
KR20120080403A (ko) | 시스템 신호 측정 방법 및 장치 | |
US20240214935A1 (en) | Communication method and communication apparatus | |
TWI425850B (zh) | 無線通訊終端與其省電方法 | |
TWM463943U (zh) | 無線通訊裝置 | |
JP2019220772A (ja) | 通信システム、通信システムの制御方法、無線通信親機、無線通信親機の制御方法、情報処理装置、情報処理装置の制御方法、無線通信装置、無線通信装置の制御方法、および、通信システムの制御プログラム | |
WO2022206633A1 (zh) | 一种智能选网的方法及相关装置 | |
CN110582108A (zh) | 一种无线接入网络的控制方法、网络设备和存储介质 |
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: 14897219 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: 14897219 Country of ref document: EP Kind code of ref document: A1 |