WO2019071522A1 - Smart terminal-based wireless network control method and wireless network control device - Google Patents

Smart terminal-based wireless network control method and wireless network control device Download PDF

Info

Publication number
WO2019071522A1
WO2019071522A1 PCT/CN2017/105854 CN2017105854W WO2019071522A1 WO 2019071522 A1 WO2019071522 A1 WO 2019071522A1 CN 2017105854 W CN2017105854 W CN 2017105854W WO 2019071522 A1 WO2019071522 A1 WO 2019071522A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless network
ssid
smart terminal
connection
traffic
Prior art date
Application number
PCT/CN2017/105854
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 深圳传音通讯有限公司
Priority to PCT/CN2017/105854 priority Critical patent/WO2019071522A1/en
Publication of WO2019071522A1 publication Critical patent/WO2019071522A1/en

Links

Images

Classifications

    • 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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the invention relates to the field of wireless network technologies, and in particular, to a wireless network control method based on an intelligent terminal and a wireless network control device.
  • RF radio frequency
  • the intelligent terminal realizes the communication connection between each other by means of the wireless network, which greatly improves the intelligence and convenience of the intelligent terminal, and is favored by the user.
  • communication or information media such as WeChat and Weibo has changed the traditional way of information exchange and dissemination.
  • users usually reduce the power consumption of smart terminals by turning off unnecessary applications. Therefore, in the prior art, users often need to continuously connect to the network and disconnect the network, so as to reduce the power consumption of the smart terminal by the wireless network connection, but it brings great inconvenience to the user.
  • the present invention provides a wireless network control method based on an intelligent terminal and a wireless network control device.
  • the invention can automatically connect to the wireless network by scanning the service set identifier of the wireless network connected to the smart terminal and the connection password thereof when scanning and discovering the SSID of the same wireless network; meanwhile, by monitoring the traffic consumption of the intelligent terminal, when When the intelligent terminal consumes a small amount of traffic, the connection to the wireless network can be automatically disconnected.
  • an aspect of the present invention provides a wireless terminal control method based on an intelligent terminal, including the steps of: scanning a wireless network in a current environment, and acquiring a service set identifier (SSID) of a wireless network in a current environment, where the The SSID of the wireless network is compared with the pre-stored SSID in a pre-stored database, when the SSID of the wireless network Establishing a connection with the wireless network to monitor the traffic consumption of the smart terminal, and comparing the traffic consumption with a preset traffic threshold, when the traffic is matched with the pre-stored SSID in the pre-stored database. When the consumption is less than the preset traffic threshold, the wireless network connection of the smart terminal is disconnected.
  • SSID service set identifier
  • the step of scanning the wireless network in the current environment and acquiring the service set identifier (SSID) of the wireless network in the current environment comprises: receiving, by the smart terminal, the SSID broadcast of the wireless network in the current environment, and parsing the SSID Broadcast to obtain the SSID of the wireless network that issued the SSID broadcast.
  • SSID service set identifier
  • the step of establishing a connection with the wireless network comprises: reading an SSID of the wireless network, retrieving in the pre-stored database, acquiring password information of the wireless network, and transmitting the information to an access point of the wireless network
  • the password information is used to establish a connection relationship with the wireless network when the password information matches the connection password information of the wireless network.
  • the step of monitoring the traffic consumption of the smart terminal includes: detecting the traffic consumption of each application in the smart terminal at a preset time, and calculating the obtained smart terminal in the preset time Traffic consumption.
  • the method for controlling a wireless network further includes: scanning a wireless network in a current environment of the smart terminal, acquiring an SSID of a wireless network in a current environment, and performing an SSID of the wireless network with a pre-stored SSID in a pre-stored database. Comparing, when the pre-stored SSID in the pre-stored database does not match the SSID of the wireless network, generating an alert signal, capturing a pair of feedback commands of the alert signal, responding to the feedback command, and the wireless The network establishes a connection, and stores an SSID of the wireless network and a connection password of the wireless network.
  • a smart terminal-based wireless network control apparatus which includes the following module, a network scanning module, scanning a wireless network in a current environment, and acquiring a service set identifier (SSID) of a wireless network in a current environment.
  • a network matching module comparing the SSID of the wireless network with a pre-stored SSID in a pre-stored database, and generating a connection instruction when the SSID of the wireless network matches a pre-stored SSID in the pre-stored database
  • the network connection module establishes a connection with the wireless network
  • the traffic monitoring module monitors the traffic consumption of the intelligent terminal
  • the traffic calculation module compares the traffic consumption amount with a preset traffic threshold. When the traffic consumption is less than the preset traffic threshold, a shutdown command is generated, and the control module disconnects the wireless network connection of the smart terminal according to the shutdown command.
  • the network scanning module comprises: a receiving unit, receiving an SSID broadcast of the wireless network in a current environment, a parsing unit, parsing the SSID broadcast, and obtaining an SSID of a wireless network that issues the SSID broadcast.
  • the network connection module includes: an information reading unit that reads an SSID of the wireless network, a password retrieval unit, searches in the pre-stored database, acquires password information of the wireless network, and connects the unit to The access point of the wireless network sends the password information, when the password information is related to the connection password information of the wireless network
  • the smart terminal establishes a connection relationship with the wireless network.
  • the traffic monitoring module includes: a traffic monitoring unit that detects the traffic consumption of each application in the smart terminal every predetermined time, and the processing unit calculates and obtains the smart terminal in the preset time. The amount of traffic consumed.
  • the wireless network control device further includes: a network alarm module, when the pre-stored SSID in the pre-stored database does not match the SSID of the wireless network, generating an alarm signal, the instruction module, capturing a pair of the a feedback instruction of the alarm signal, the storage module, the network connection module responding to the feedback instruction, and after establishing a connection with the wireless network, the storage module stores an SSID of the wireless network and a connection password of the wireless network.
  • a network alarm module when the pre-stored SSID in the pre-stored database does not match the SSID of the wireless network, generating an alarm signal
  • the instruction module capturing a pair of the a feedback instruction of the alarm signal
  • the storage module the network connection module responding to the feedback instruction, and after establishing a connection with the wireless network
  • the storage module stores an SSID of the wireless network and a connection password of the wireless network.
  • the present invention has the advantages that the present invention can automatically connect to the wireless network by scanning the service set identifier of the wireless network connected to the smart terminal and the connection password thereof when scanning and discovering the SSID of the same wireless network. At the same time, by monitoring the traffic consumption of the intelligent terminal, when the traffic of the smart terminal is consumed, the connection of the wireless network can be automatically disconnected. Improve the intelligence of smart terminal wireless network connection.
  • FIG. 1 is a schematic flow chart of a method for controlling a wireless network based on a smart terminal according to a preferred embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a method for controlling a wireless network based on a smart terminal according to another preferred embodiment of the present invention
  • FIG. 3 is a schematic flow chart of a method for controlling a wireless network based on an intelligent terminal according to another preferred embodiment of the present invention.
  • FIG. 4 is a structural diagram of a wireless terminal control device based on a smart terminal in accordance with a preferred embodiment of the present invention
  • FIG. 5 is a structural diagram of a smart terminal-based wireless network control apparatus according to another preferred embodiment of the present invention.
  • FIG. 6 is a structural diagram of a smart terminal-based wireless network control apparatus according to another preferred embodiment of the present invention.
  • connection should be understood broadly, and may be, for example, a mechanical connection or an electrical connection, or may be internal to the two elements, or may be The direct connection may also be indirectly connected through an intermediate medium.
  • connection should be understood broadly, and may be, for example, a mechanical connection or an electrical connection, or may be internal to the two elements, or may be The direct connection may also be indirectly connected through an intermediate medium.
  • suffixes such as “module”, “unit” and the like for indicating elements is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, “module” and “unit” can be used in combination.
  • the wireless network control method and the wireless network control device of the present invention can be applied to smart terminals, and the smart terminals can be in various forms.
  • the smart terminal described in the present invention can include, for example, a mobile phone, a smart phone, a notebook computer, a PDA ( Mobile terminals such as personal digital assistants), PADs (tablets), PMPs (portable multimedia players), navigation devices, smart watches, and the like, and fixed terminals such as digital TVs, desktop computers, and the like.
  • PDA Mobile terminals such as personal digital assistants
  • PADs tablets
  • PMPs portable multimedia players
  • navigation devices smart watches, and the like
  • fixed terminals such as digital TVs, desktop computers, and the like.
  • the present invention will be described assuming that the terminal is a mobile terminal and assuming that the mobile terminal is a smart phone.
  • the smart terminal can realize the communication connection between each other by means of the wireless network, realizes the information to be portable, and greatly increases the dependence of the user on the intelligent terminal.
  • the battery life of the smart terminal battery becomes one of the factors that the user considers for the smart terminal.
  • the consumption of the power of the smart terminal by the connected wireless network has also become one of the factors affecting the use time of the smart terminal.
  • the user usually needs to manually turn on or off the wireless network connection to reduce the power consumption of the smart terminal connected to the wireless network, but the user's use is greatly inconvenient.
  • the present invention provides a wireless network control method based on an intelligent terminal. The advantages of the present invention are explained in detail below through various specific embodiments.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a schematic flowchart of a wireless terminal control method based on a smart terminal according to a preferred embodiment of the present invention.
  • the wireless connection method provided by this embodiment mainly includes the following steps:
  • SSID service set identifier
  • the smart terminal may scan the current environment to scan the wireless network signal in the current environment; when the current environment has at least one wireless network signal, the smart terminal acquires the current environment. a service set identifier (SSID) of the wireless network; and compare the SSID of the wireless network with the wireless network service set identifier in a pre-stored database one by one, when there is an SSID of the wireless network and the pre-stored database When a pre-stored SSID is matched, the smart terminal will automatically establish a connection with the wireless network, so that the smart terminal can acquire information, resources, and information interaction with each other through the wireless network and related application programs. .
  • SSID service set identifier
  • the smart terminal after the smart terminal finally establishes a connection relationship with the wireless network in the current environment, the smart terminal further monitors the traffic consumption therein. And comparing the traffic consumption amount with a preset traffic threshold, when the traffic consumption is less than the preset traffic threshold, the smart terminal disconnects its wireless network. Therefore, when the smart terminal does not need the Internet access requirement, the wireless network connection of the smart terminal is disconnected in a timely manner, the unnecessary power consumption caused by the connection of the wireless network is reduced, and the use time of the single battery charging of the smart terminal is improved.
  • the step of scanning the wireless network in the current environment and acquiring the service set identifier (SSID) of the wireless network in the current environment includes:
  • the smart terminal when the smart terminal scans its current environment and senses a wireless network signal in the current environment, that is, an SSID broadcast of the wireless network, the smart terminal accepts the SSID. Broadcasting; and further parsing the SSID broadcast to obtain an SSID of the wireless network that issued the SSID broadcast.
  • the step of establishing a connection with the wireless network includes:
  • the smart terminal when the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
  • the smart terminal after the smart terminal acquires the SSID of the wireless network, the smart terminal further reads the SSID of the wireless network; and according to the SSID of the wireless network, the pre-stored database. Medium Performing the search.
  • the SSID and the connection password of the pre-stored wireless network are stored in association with each other, so that the SSID can be obtained in the pre-stored database according to the SSID of the wireless network.
  • connection password of the wireless network the smart terminal further sends the connection password information to an access point of the wireless network; the access point of the wireless network verifies the connection password information sent by the intelligent terminal, When the password information is correct, the smart terminal obtains the admission, so that the smart terminal establishes a connection relationship with the wireless network.
  • the step of monitoring the traffic consumption of the smart terminal includes:
  • the smart terminal monitors the internal traffic consumption.
  • the smart terminal obtains its total traffic consumption by monitoring the traffic consumption of each internal application program.
  • the smart terminal acquires the traffic consumption amount of each application program, and the preset time may be 30 seconds, 1 minute, 5 minutes, etc., according to actual conditions.
  • the application can be configured differently; then, the smart terminal can calculate the total internal traffic consumption according to the traffic consumption of each application; and further compare the traffic consumption with a preset traffic threshold. Therefore, the traffic consumption of the smart terminal is known, and it is determined whether the smart terminal is in an unnecessary wireless network connection state. Providing a basis for intelligently controlling the wireless network connection of the smart terminal.
  • the present invention also provides a wireless network control method.
  • the provided wireless network control method includes the following steps:
  • the smart terminal first scans the current environment in which it is located, and when the wireless network signal exists in the current environment, the smart terminal acquires the wireless in the current environment.
  • the SSID of the network then, comparing the SSID of the wireless network with the pre-stored SSID in a pre-stored database;
  • the pre-stored SSID in the pre-stored database does not match the SSID of the wireless network, that is, when there is only the first occurrence of the wireless network signal in the current environment, the smart terminal generates an alarm signal and sends it out.
  • the alarm signal may be a piece of music, a prompt voice, a mobile phone vibration, a mobile phone flash, etc.; after the user observes the alarm signal sent by the smart terminal, the user may know that there is an unstored wireless in the current environment of the smart terminal. a network signal, the user may feed back a feedback instruction to the smart terminal to connect or not connect to the wireless network according to the requirement; after the smart terminal captures the feedback instruction, parse the feedback instruction, and if the feedback is parsed, the feedback The operation content of the instruction is to connect to the wireless network, and the smart terminal establishes a connection relationship with the wireless network in response to the feedback instruction; and the intelligent terminal stores the SSID of the wireless network and its connection password. When the smart terminal enters the same network environment again, the smart terminal can implement automatic control of the wireless network. Connecting technical effect.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the present invention further provides a wireless network control method based on the smart terminal, which further improves the control wireless network by monitoring the screen brightness of the smart terminal based on the first embodiment.
  • the validity of the connection Referring to FIG. 2, it is a schematic flowchart of a smart terminal-based wireless network control method according to another preferred embodiment of the present invention. It can be seen from the figure that the wireless network control method provided by this embodiment specifically includes the following steps:
  • the smart terminal after the smart terminal establishes a connection relationship with a wireless network in the current environment, the smart terminal also continues to monitor the traffic consumption inside the smart terminal, and the traffic consumption is Comparing with a preset traffic threshold; different from the above embodiment, when the traffic consumption of the smart terminal is less than a preset traffic threshold, the smart terminal further monitors its screen brightness when its screen When the brightness is 0, that is, when the smart terminal is in a black screen state, the smart terminal will disconnect its wireless network, thereby more effectively determining the invalid Internet access status of the smart terminal, and realizing that the smart terminal does not need the Internet access requirement.
  • the wireless network connection of the smart terminal is disconnected in a timely manner, the unnecessary power consumption caused by the connection of the wireless network is reduced, and the use time of the single battery charging of the smart terminal is improved.
  • the step of monitoring the screen brightness of the smart terminal includes:
  • the smart terminal can monitor the brightness of the screen by monitoring the passing current of the screen light.
  • the smart terminal can monitor the current intensity of the screen light passing through the smart terminal in a second preset time, wherein the second preset time can be 30 seconds, 1 minute, 2 minutes, etc., according to actual application.
  • the situation is specifically set; after obtaining the current intensity of the screen light in a second preset time, the smart terminal may calculate the screen brightness of the smart terminal according to a preset algorithm.
  • a technical solution for controlling the connection between the smart terminal and a wireless network according to the screen brightness of the smart terminal is further provided, and the specific steps include:
  • the smart terminal continues to monitor its screen brightness condition; when the screen brightness value of the smart terminal is greater than 0, The smart terminal will establish a connection with a wireless network in its current environment, thereby preparing the network for the user to use the smart terminal. When the user wakes up the smart terminal again, there is no impact of the use of the network connection on the user.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the present invention further provides another intelligent network-based wireless network control method, which is further combined with the monitoring smart terminal screen black screen on the basis of the first embodiment. Time to improve the effectiveness of controlling wireless network connections.
  • FIG. 3 it is a schematic flowchart of a smart terminal-based wireless network control method according to another preferred embodiment of the present invention. It can be seen from the figure that the wireless network control method provided by this embodiment specifically includes the following steps:
  • the wireless network connection module of the smart terminal is turned off.
  • the smart terminal keeps listening to the screen brightness of the smart terminal; when the screen brightness of the smart terminal is black, that is, the screen brightness of the smart terminal is 0.
  • the timer in the smart terminal is started to record the black screen time of the smart terminal; when the black screen time of the smart terminal is greater than a preset time threshold, the smart terminal monitors the wireless network connection status of the smart terminal.
  • the smart terminal is further provided with a wireless network dynamic control module, and the user may pre-activate the wireless network dynamic control module of the smart terminal, so that after the smart terminal intelligently closes its wireless connection module, The smart terminal can still intelligently activate the wireless network connection module of the smart terminal and establish a connection with a wireless network when necessary. It specifically includes the following steps:
  • the wireless network connection module of the smart terminal is activated.
  • the smart terminal is further configured with a wireless network dynamic control module, and the user may pre-launch the wireless network dynamic control module of the smart terminal. Therefore, after the smart terminal closes its wireless network connection module, the smart terminal will continue to monitor its screen brightness.
  • the screen brightness of the smart terminal is greater than 0, that is, when the smart terminal screen is awakened
  • the smart terminal activates its wireless network connection module by using the wireless network dynamic control module; thus, the smart terminal can scan a wireless network signal in its current environment, and at least one wireless network signal exists in the smart terminal.
  • the smart terminal can establish a connection with the wireless network. Therefore, the smart terminal can open its wireless network connection module in time when its screen is awakened, and establish a connection with the wireless network in the current environment to provide timely network service for the user's use.
  • the present invention further provides a smart terminal-based wireless network control device.
  • FIG. 4 it is a structural diagram of a smart terminal-based wireless network control apparatus in accordance with a preferred embodiment of the present invention.
  • the provided wireless network control device specifically includes the following modules:
  • the network scanning module specifically includes: a receiving unit, configured to receive an SSID broadcast of the wireless network in a current environment; a parsing unit, configured to parse the SSID broadcast, and obtain a wireless network that sends the SSID broadcast SSID.
  • the network connection module specifically includes: an information reading unit, configured to read an SSID of the wireless network; and a password retrieval unit, configured to retrieve, in the pre-stored database, the password information of the wireless network;
  • the connecting unit sends the password information to an access point of the wireless network; when the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
  • the traffic monitoring module includes: a traffic monitoring unit that detects a traffic consumption of each application in the smart terminal every preset time; and a processing unit that calculates and obtains the smart terminal in the preset time The amount of traffic consumed.
  • the present invention provides a wireless network control device, which includes the following modules:
  • the network alarm module may generate an alarm signal and send it out.
  • the storage module After the network connection module establishes a connection with the wireless network in response to the feedback instruction, the storage module stores an SSID of the wireless network and a connection password of the wireless network.
  • the present invention further provides a smart terminal-based wireless network control device.
  • FIG. 5 it is a structural diagram of a smart terminal-based wireless network control apparatus according to another preferred embodiment of the present invention.
  • the provided wireless network control device specifically includes the following modules:
  • the network connection module includes: a receiving unit that scans and receives an SSID broadcast of the wireless network in a current environment; a parsing unit that parses the SSID broadcast to obtain an SSID of a wireless network that issues the SSID broadcast; and a connection unit Sending connection password information to the access point of the wireless network, and when the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
  • the traffic monitoring module includes: a traffic monitoring unit that detects a sub-traffic consumption of each application in the smart terminal every other first preset time; the first processing unit calculates and obtains the first preset The amount of traffic consumed by the smart terminal during the time.
  • the first screen brightness monitoring module includes: a current monitoring unit that monitors a passing current intensity of the screen light of the smart terminal every second preset time; and a second processing unit that calculates the current according to the passing current The screen brightness of the smart terminal.
  • a technical solution for controlling the smart terminal to establish a connection with a wireless network according to the screen brightness of the smart terminal is further provided.
  • the second screen brightness monitoring module continues to monitor the screen brightness of the smart terminal, and when the screen brightness of the smart terminal is greater than 0, a third operation instruction is generated, and Outward send.
  • the network connection module establishes a connection with a wireless network in the current environment.
  • the present invention further provides another intelligent terminal-based wireless network control device.
  • FIG. 6 is a structural diagram of a smart terminal based wireless network control apparatus according to another preferred embodiment of the present invention.
  • the provided wireless network control device specifically includes the following modules:
  • the screen brightness of the smart terminal is monitored, and when the smart terminal is in a black screen state, a first operation instruction is generated and sent out.
  • the first screen brightness monitoring module includes: a current monitoring unit that monitors a passing current intensity of the screen light of the smart terminal every second preset time; and a second processing unit that calculates according to the passing current The screen brightness of the smart terminal.
  • the smart terminal is further provided with a wireless network dynamic control module, and the user may pre-activate the wireless network dynamic control module of the smart terminal, so that after the smart terminal intelligently closes its wireless connection module, The smart terminal can still intelligently start the wireless network connection module of the smart terminal and establish a connection with a wireless network when necessary.
  • the program specifically includes the following modules:
  • a wireless network dynamic control module for starting the smart terminal
  • the screen brightness of the smart terminal is continuously monitored.
  • the screen brightness of the smart terminal is greater than 0, a fourth operation instruction is generated and sent out.
  • the smart terminal after the smart terminal starts its wireless network connection module, the smart terminal can further scan the current environment and establish a connection with the wireless network existing in the current environment. Therefore, in this embodiment, the wireless network control apparatus further includes the following modules:
  • a wireless network in a current environment for scanning the smart terminal When at least one wireless network exists in the smart terminal, a fifth operation instruction is generated and sent out.
  • the network connection module includes: a receiving unit that scans and receives an SSID broadcast of the wireless network in a current environment; a parsing unit that parses the SSID broadcast to obtain an SSID of a wireless network that issues the SSID broadcast; and a connection unit Sending connection password information to the access point of the wireless network, and when the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
  • the present invention provides a wireless network control method and apparatus based on an intelligent terminal by monitoring internal traffic consumption of the smart terminal, screen brightness, and the like. If the smart terminal does not have an effective network occupation, the network connection of the smart terminal is disconnected, and the power consumption of the smart terminal is reduced. When the smart terminal is woken up, the wireless network connection of the smart terminal is started in time to provide the user with the wireless network connection. Convenience greatly improves the intelligence of the existing smart terminal wireless network connection scheme and has a good market application prospect.

Landscapes

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

Abstract

A smart terminal-based wireless network control method and wireless network control device, comprising the following steps: scanning for a wireless network in a current environment, acquiring a service set identifier (SSID) of the wireless network in the current network, comparing the SSID of the wireless network with prestored SSIDs in a prestored database, when the SSID of the wireless network matches a prestored SSID in the prestored database, establishing a connection to the wireless network, monitoring traffic consumption of the smart terminal, comparing the traffic consumption with a preset traffic threshold, and, when the traffic consumption is less than the preset traffic threshold, disconnecting the connection of the smart terminal to the wireless network. The present invention implements the monitoring of the state of traffic consumption of the smart terminal and, when the traffic consumption of the smart terminal is low, allows the automatic disconnection of the connection to the wireless network. The degree of intelligence in smart terminal wireless network connection is increased.

Description

一种基于智能终端的无线网络控制方法及无线网络控制装置Wireless terminal control method based on intelligent terminal and wireless network control device 技术领域Technical field
本发明无线网络技术领域,尤其涉及一种基于智能终端的无线网络控制方法及无线网络控制装置。The invention relates to the field of wireless network technologies, and in particular, to a wireless network control method based on an intelligent terminal and a wireless network control device.
背景技术Background technique
无线局域网络英文全名:Wireless Local Area Networks;简写为:WLAN。它是相当便利的数据传输系统,它利用射频(Radio Frequency;RF)的技术,使用电磁波,取代旧式碍手碍脚的双绞铜线(Coaxial)所构成的局域网络,在空中进行通信连接,使得无线局域网络能利用简单的存取架构让用户透过它,达到"信息随身化、便利走天下"的理想境界。Wireless LAN English full name: Wireless Local Area Networks; abbreviated as: WLAN. It is a very convenient data transmission system. It uses radio frequency (RF) technology, uses electromagnetic waves to replace the old-fashioned local network of twisted copper wires (Coaxial), and communicates in the air to make wireless LAN. Network can use the simple access architecture to let users through it, to achieve the ideal state of "information with the body, convenient to go to the world."
智能终端借助于无线网络实现彼此之间的通讯连接,极大地提高了智能终端的智能化及便捷性,备受用户的青睐。特别是,微信、微博等通讯或者信息媒介的发展,改变了传统的信息交流以及传播方式。然而,随着智能终端使用频率的不断增加,在智能终端电池续航能力无法大幅度提高的前提下,用户通常采用关闭不必要的应用程序的方式来降低智能终端的耗电程度。从而,现有技术中,用户往往需要不断的连接网络、断开网络,以降低无线网络连接对智能终端电量的消耗,但是却给用户的使用带来极大的不便。The intelligent terminal realizes the communication connection between each other by means of the wireless network, which greatly improves the intelligence and convenience of the intelligent terminal, and is favored by the user. In particular, the development of communication or information media such as WeChat and Weibo has changed the traditional way of information exchange and dissemination. However, with the increasing frequency of use of smart terminals, under the premise that the battery life of smart terminals cannot be greatly improved, users usually reduce the power consumption of smart terminals by turning off unnecessary applications. Therefore, in the prior art, users often need to continuously connect to the network and disconnect the network, so as to reduce the power consumption of the smart terminal by the wireless network connection, but it brings great inconvenience to the user.
发明内容Summary of the invention
为解决上述问题,本发明提出一种基于智能终端的无线网络控制方法及无线网络控制装置。本发明通过存储所述智能终端连接的无线网络的服务集标识及其连接密码,当扫描发现同一无线网络的SSID时,可自动连接该无线网络;同时,通过监听智能终端的流量消耗情况,当智能终端的流量消耗小时,可自动断开该无线网络的连接。提高了智能终端无线网络连接的智能性。To solve the above problems, the present invention provides a wireless network control method based on an intelligent terminal and a wireless network control device. The invention can automatically connect to the wireless network by scanning the service set identifier of the wireless network connected to the smart terminal and the connection password thereof when scanning and discovering the SSID of the same wireless network; meanwhile, by monitoring the traffic consumption of the intelligent terminal, when When the intelligent terminal consumes a small amount of traffic, the connection to the wireless network can be automatically disconnected. Improve the intelligence of smart terminal wireless network connection.
具体地,本发明一方面提供一种基于智能终端的无线网络控制方法,其包括以下步骤:扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识(SSID),将所述无线网络的SSID与一预存数据库中的预存SSID进行比对,当所述无线网络的SSID 与所述预存数据库中一预存SSID相匹配时,与所述无线网络建立连接,监听所述智能终端的流量消耗量,将所述流量消耗量与一预设流量阈值进行比较,当所述流量消耗量小于所述预设流量阈值时,断开所述智能终端的无线网络连接。Specifically, an aspect of the present invention provides a wireless terminal control method based on an intelligent terminal, including the steps of: scanning a wireless network in a current environment, and acquiring a service set identifier (SSID) of a wireless network in a current environment, where the The SSID of the wireless network is compared with the pre-stored SSID in a pre-stored database, when the SSID of the wireless network Establishing a connection with the wireless network to monitor the traffic consumption of the smart terminal, and comparing the traffic consumption with a preset traffic threshold, when the traffic is matched with the pre-stored SSID in the pre-stored database. When the consumption is less than the preset traffic threshold, the wireless network connection of the smart terminal is disconnected.
优选地,扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识(SSID)的步骤包括,所述智能终端接收当前环境中的所述无线网络的SSID广播,解析所述SSID广播,获得发出所述SSID广播的无线网络的SSID。Preferably, the step of scanning the wireless network in the current environment and acquiring the service set identifier (SSID) of the wireless network in the current environment comprises: receiving, by the smart terminal, the SSID broadcast of the wireless network in the current environment, and parsing the SSID Broadcast to obtain the SSID of the wireless network that issued the SSID broadcast.
优选地,与所述无线网络建立连接的步骤包括,读取所述无线网络的SSID,在所述预存数据库中检索,获取所述无线网络的密码信息,向所无线网络的接入点发送所述密码信息,当所述密码信息与所无线网络的连接密码信息相匹配时,所述智能终端与所述无线网络建立连接关系。Preferably, the step of establishing a connection with the wireless network comprises: reading an SSID of the wireless network, retrieving in the pre-stored database, acquiring password information of the wireless network, and transmitting the information to an access point of the wireless network The password information is used to establish a connection relationship with the wireless network when the password information matches the connection password information of the wireless network.
优选地,监听所述智能终端的流量消耗量的步骤包括,每隔一预设时间,检测所述智能终端中各应用程序的流量消耗量,计算获得所述预设时间内所述智能终端的流量消耗量。Preferably, the step of monitoring the traffic consumption of the smart terminal includes: detecting the traffic consumption of each application in the smart terminal at a preset time, and calculating the obtained smart terminal in the preset time Traffic consumption.
优选地,上述无线网络控制方法,还包括,扫描所述智能终端当前环境中的无线网络,获取当前环境中的无线网络的SSID,将所述无线网络的SSID与一预存数据库中的预存SSID进行比对,当所述预存数据库中的预存SSID均与所述无线网络的SSID不匹配时,生成一告警信号,捕获一对所述告警信号的反馈指令,响应所述反馈指令,与所述无线网络建立连接,存储所述无线网络的SSID及所述无线网络的连接密码。Preferably, the method for controlling a wireless network further includes: scanning a wireless network in a current environment of the smart terminal, acquiring an SSID of a wireless network in a current environment, and performing an SSID of the wireless network with a pre-stored SSID in a pre-stored database. Comparing, when the pre-stored SSID in the pre-stored database does not match the SSID of the wireless network, generating an alert signal, capturing a pair of feedback commands of the alert signal, responding to the feedback command, and the wireless The network establishes a connection, and stores an SSID of the wireless network and a connection password of the wireless network.
本发明的另一方面,在于提供一种基于智能终端的无线网络控制装置,其包括以下模块,网络扫描模块,扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识(SSID),网络配比模块,将所述无线网络的SSID与一预存数据库中的预存SSID进行比对,当所述无线网络的SSID与所述预存数据库中一预存SSID相匹配时,生产一连接指令,向外发送,网络连接模块,与所述无线网络建立连接,流量监听模块,监听所述智能终端的流量消耗量,流量计算模块,将所述流量消耗量与一预设流量阈值进行比较,当所述流量消耗量小于所述预设流量阈值时,生产一关闭指令,控制模块,根据所述关闭指令,断开所述智能终端的无线网络连接。Another aspect of the present invention provides a smart terminal-based wireless network control apparatus, which includes the following module, a network scanning module, scanning a wireless network in a current environment, and acquiring a service set identifier (SSID) of a wireless network in a current environment. a network matching module, comparing the SSID of the wireless network with a pre-stored SSID in a pre-stored database, and generating a connection instruction when the SSID of the wireless network matches a pre-stored SSID in the pre-stored database Sending, the network connection module establishes a connection with the wireless network, and the traffic monitoring module monitors the traffic consumption of the intelligent terminal, and the traffic calculation module compares the traffic consumption amount with a preset traffic threshold. When the traffic consumption is less than the preset traffic threshold, a shutdown command is generated, and the control module disconnects the wireless network connection of the smart terminal according to the shutdown command.
优选地,所述网络扫描模块包括,接收单元,接收当前环境中的所述无线网络的SSID广播,解析单元,解析所述SSID广播,获得发出所述SSID广播的无线网络的SSID。Preferably, the network scanning module comprises: a receiving unit, receiving an SSID broadcast of the wireless network in a current environment, a parsing unit, parsing the SSID broadcast, and obtaining an SSID of a wireless network that issues the SSID broadcast.
优选地,所述网络连接模块包括,信息读取单元,读取所述无线网路的SSID,密码检索单元,在所述预存数据库中检索,获取所述无线网络的密码信息,连接单元,向所无线网络的接入点发送所述密码信息,当所述密码信息与所无线网络的连接密码信息相 匹配时,所述智能终端与所述无线网络建立连接关系。Preferably, the network connection module includes: an information reading unit that reads an SSID of the wireless network, a password retrieval unit, searches in the pre-stored database, acquires password information of the wireless network, and connects the unit to The access point of the wireless network sends the password information, when the password information is related to the connection password information of the wireless network When matching, the smart terminal establishes a connection relationship with the wireless network.
优选地,所述流量监听模块包括,流量监听单元,每隔一预设时间,检测所述智能终端中各应用程序的流量消耗量,处理单元,计算获得所述预设时间内所述智能终端的流量消耗量。Preferably, the traffic monitoring module includes: a traffic monitoring unit that detects the traffic consumption of each application in the smart terminal every predetermined time, and the processing unit calculates and obtains the smart terminal in the preset time. The amount of traffic consumed.
优选地,上述无线网络控制装置,还包括,网络告警模块,当所述预存数据库中的预存SSID均与所述无线网络的SSID不匹配时,生产一告警信号,指令模块,捕获一对所述告警信号的反馈指令,存储模块,所述网络连接模块响应所述反馈指令,与所述无线网络建立连接后,所述存储模块存储所述无线网络的SSID及所述无线网络的连接密码。Preferably, the wireless network control device further includes: a network alarm module, when the pre-stored SSID in the pre-stored database does not match the SSID of the wireless network, generating an alarm signal, the instruction module, capturing a pair of the a feedback instruction of the alarm signal, the storage module, the network connection module responding to the feedback instruction, and after establishing a connection with the wireless network, the storage module stores an SSID of the wireless network and a connection password of the wireless network.
与现有技术相比较,本发明的优势在于:本发明通过存储所述智能终端连接的无线网络的服务集标识及其连接密码,当扫描发现同一无线网络的SSID时,可自动连接该无线网络;同时,通过监听智能终端的流量消耗情况,当智能终端的流量消耗小时,可自动断开该无线网络的连接。提高了智能终端无线网络连接的智能性。Compared with the prior art, the present invention has the advantages that the present invention can automatically connect to the wireless network by scanning the service set identifier of the wireless network connected to the smart terminal and the connection password thereof when scanning and discovering the SSID of the same wireless network. At the same time, by monitoring the traffic consumption of the intelligent terminal, when the traffic of the smart terminal is consumed, the connection of the wireless network can be automatically disconnected. Improve the intelligence of smart terminal wireless network connection.
附图说明DRAWINGS
图1为一符合本发明一优选实施例的基于智能终端的无线网络控制方法的流程示意图;1 is a schematic flow chart of a method for controlling a wireless network based on a smart terminal according to a preferred embodiment of the present invention;
图2为一符合本发明另一优选实施例的基于智能终端的无线网络控制方法的流程示意图;2 is a schematic flow chart of a method for controlling a wireless network based on a smart terminal according to another preferred embodiment of the present invention;
图3为一符合本发明另一优选实施例的基于智能终端的无线网络控制方法的流程示意图;3 is a schematic flow chart of a method for controlling a wireless network based on an intelligent terminal according to another preferred embodiment of the present invention;
图4为一符合本发明一优选实施例的基于智能终端的无线网络控制装置的结构图;4 is a structural diagram of a wireless terminal control device based on a smart terminal in accordance with a preferred embodiment of the present invention;
图5为一符合本发明另一优选实施例的基于智能终端的无线网络控制装置的结构图;FIG. 5 is a structural diagram of a smart terminal-based wireless network control apparatus according to another preferred embodiment of the present invention; FIG.
图6为一符合本发明另一优选实施例的基于智能终端的无线网络控制装置的结构图。FIG. 6 is a structural diagram of a smart terminal-based wireless network control apparatus according to another preferred embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图及具体实施例,详细阐述本发明的优势。The advantages of the present invention are explained in detail below in conjunction with the drawings and specific embodiments.
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。 Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
在本发明使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本发明和所附权利要求书中所使用的单数形式的“一”、“所述”、“该”等也旨在包括多数形式,除非上下文清楚地表示其他含义。The terminology used in the present invention is for the purpose of describing particular embodiments, and is not intended to limit the disclosure. The singular forms "a", "the", "the" and "the"
在本发明的描述中,除非另有规定和限定,需要说明的是,术语“连接”应做广义理解,例如,可以是机械连接或电连接,也可以是两个元件内部的连通,可以是直接相连,也可以通过中间媒介间接相连,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。在后续的描述中,使用用于表示元件的诸如“模块”、“单元”等的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”、“单元”可以混合地使用。In the description of the present invention, unless otherwise specified and limited, it should be noted that the term "connected" should be understood broadly, and may be, for example, a mechanical connection or an electrical connection, or may be internal to the two elements, or may be The direct connection may also be indirectly connected through an intermediate medium. For those skilled in the art, the specific meanings of the above terms may be understood according to specific situations. In the following description, the use of suffixes such as "module", "unit" and the like for indicating elements is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, "module" and "unit" can be used in combination.
本发明的无线网络控制方法及无线网络控制装置,可以应用于智能终端,智能终端可以以各种形式,例如,本发明中描述的智能终端可以包括诸如移动电话、智能电话、笔记本电脑、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置、智能手表等的移动终端,以及诸如数字TV、台式计算机等的固定终端。下面,假设终端是移动终端,并假设该移动终端为智能手机,对本发明进行说明。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。为便于描述,本发明实施例均以智能手机为例进行说明,其它应用场景相互参照即可。The wireless network control method and the wireless network control device of the present invention can be applied to smart terminals, and the smart terminals can be in various forms. For example, the smart terminal described in the present invention can include, for example, a mobile phone, a smart phone, a notebook computer, a PDA ( Mobile terminals such as personal digital assistants), PADs (tablets), PMPs (portable multimedia players), navigation devices, smart watches, and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Hereinafter, the present invention will be described assuming that the terminal is a mobile terminal and assuming that the mobile terminal is a smart phone. However, those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes. For convenience of description, the embodiments of the present invention are described by taking a smart phone as an example, and other application scenarios may be referred to each other.
在现有技术中,智能终端借助于无线网络,可实现彼此之间的通讯连接,实现了信息随身化,更大大提高了用户对智能终端的依赖程度。然而,随着智能终端使用频率的增加,智能终端电池的续航能力成为用户对智能终端的考量因素之一。而,连接无线网络对智能终端电量的消耗,也成为智能终端使用时间的影响因素之一。现有技术中,用户通常需要手动开启或者关闭无线网络连接,以减少连接无线网络对智能终端电量的消耗,但对用户的使用带来极大的不便。为解决上述问题,本发明提出一种基于智能终端的无线网络控制方法。下面通过多个具体实施例,详细阐述本发明的优势。In the prior art, the smart terminal can realize the communication connection between each other by means of the wireless network, realizes the information to be portable, and greatly increases the dependence of the user on the intelligent terminal. However, with the increase of the frequency of use of the smart terminal, the battery life of the smart terminal battery becomes one of the factors that the user considers for the smart terminal. However, the consumption of the power of the smart terminal by the connected wireless network has also become one of the factors affecting the use time of the smart terminal. In the prior art, the user usually needs to manually turn on or off the wireless network connection to reduce the power consumption of the smart terminal connected to the wireless network, but the user's use is greatly inconvenient. To solve the above problems, the present invention provides a wireless network control method based on an intelligent terminal. The advantages of the present invention are explained in detail below through various specific embodiments.
实施例一:Embodiment 1:
参阅图1,其为一符合本发明一优选实施例的基于智能终端的无线网络控制方法的流程示意图。从图中可以看出,本实施例所提供的无线连接方法主要包括以下步骤:Referring to FIG. 1, which is a schematic flowchart of a wireless terminal control method based on a smart terminal according to a preferred embodiment of the present invention. As can be seen from the figure, the wireless connection method provided by this embodiment mainly includes the following steps:
-扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识(SSID);- scanning a wireless network in the current environment to obtain a service set identifier (SSID) of the wireless network in the current environment;
-将所述无线网络的SSID与一预存数据库中的预存SSID进行比对;- comparing the SSID of the wireless network with a pre-stored SSID in a pre-stored database;
-当所述无线网络的SSID与所述预存数据库中一预存SSID相匹配时,与所述无线网络建立连接; Establishing a connection with the wireless network when the SSID of the wireless network matches a pre-stored SSID in the pre-stored database;
-监听所述智能终端的流量消耗量;- monitoring the traffic consumption of the smart terminal;
-将所述流量消耗量与一预设流量阈值进行比较;- comparing the traffic consumption amount with a preset traffic threshold;
-当所述流量消耗量小于所述预设流量阈值时,断开所述智能终端的无线网络连接。- disconnecting the wireless network connection of the smart terminal when the traffic consumption is less than the preset traffic threshold.
具体地,本实施例中,所述智能终端可对其当前环境进行扫描,扫描当前环境中的无线网络信号;当当前环境中具有至少一个无线网络信号时,所述智能终端将获取当前环境中的无线网络的服务集标识(SSID);并逐一将所述无线网络的SSID与一预存数据库中的无线网络服务集标识进行比对,当存在一所述无线网络的SSID与所述预存数据库中一预存SSID相匹配时,所述智能终端将自动与所述无线网络建立连接,从而所述智能终端可通过所述无线网络,并借助相关应用程序实现获取信息、资源,彼此间信息交互等功能。Specifically, in this embodiment, the smart terminal may scan the current environment to scan the wireless network signal in the current environment; when the current environment has at least one wireless network signal, the smart terminal acquires the current environment. a service set identifier (SSID) of the wireless network; and compare the SSID of the wireless network with the wireless network service set identifier in a pre-stored database one by one, when there is an SSID of the wireless network and the pre-stored database When a pre-stored SSID is matched, the smart terminal will automatically establish a connection with the wireless network, so that the smart terminal can acquire information, resources, and information interaction with each other through the wireless network and related application programs. .
尤其区别于现有技术的是,本实施例中,所述智能终在实现与当前环境中的无线网络建立连接关系后,所述智能终端将进一步监听其中的流量消耗量。并将所述流量消耗量与一预设流量阈值进行比较,当所述流量消耗量小于所述预设流量阈值时,所述智能终端将断开其无线网络连接。从而,实现在智能终端无必要上网需求时,及时自主地断开智能终端的无线网络连接,减少由于连接无线网络造成的不必要的电量消耗,提高智能终端的单次电池充电的使用时间。In particular, in the embodiment, after the smart terminal finally establishes a connection relationship with the wireless network in the current environment, the smart terminal further monitors the traffic consumption therein. And comparing the traffic consumption amount with a preset traffic threshold, when the traffic consumption is less than the preset traffic threshold, the smart terminal disconnects its wireless network. Therefore, when the smart terminal does not need the Internet access requirement, the wireless network connection of the smart terminal is disconnected in a timely manner, the unnecessary power consumption caused by the connection of the wireless network is reduced, and the use time of the single battery charging of the smart terminal is improved.
更加具体地,优选地,本实施例中,扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识(SSID)的步骤包括:More specifically, preferably, in this embodiment, the step of scanning the wireless network in the current environment and acquiring the service set identifier (SSID) of the wireless network in the current environment includes:
-接收当前环境中的所述无线网络的SSID广播;Receiving an SSID broadcast of the wireless network in a current environment;
-解析所述SSID广播,获得发出所述SSID广播的无线网络的SSID。- Parsing the SSID broadcast to obtain the SSID of the wireless network that issued the SSID broadcast.
具体地,本实施例中,当所述智能终端对其当前环境进行扫描,并感应到当前环境中的无线网络信号,也即所述无线网络的SSID广播时,所述智能终端接受所述SSID广播;并进一步解析所述SSID广播,从而获得发出所述SSID广播的无线网络的SSID。Specifically, in this embodiment, when the smart terminal scans its current environment and senses a wireless network signal in the current environment, that is, an SSID broadcast of the wireless network, the smart terminal accepts the SSID. Broadcasting; and further parsing the SSID broadcast to obtain an SSID of the wireless network that issued the SSID broadcast.
更加具体地,本实施例中,与所述无线网络建立连接的步骤包括:More specifically, in this embodiment, the step of establishing a connection with the wireless network includes:
-读取所述无线网路的SSID;Reading the SSID of the wireless network;
-在所述预存数据库中检索,获取所述无线网络的密码信息;- retrieving in the pre-stored database to obtain password information of the wireless network;
-向所无线网络的接入点发送所述密码信息;Transmitting the password information to an access point of the wireless network;
-当所述密码信息与所无线网络的连接密码信息相匹配时,所述智能终端与所述无线网络建立连接关系。- when the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
具体地,本实施例中,当所述智能终端获取所述无线网络的SSID后,所述智能终端将进一步读取所述无线网络的SSID;并按照所述无线网络的SSID在所述预存数据库中 进行检索,由于本实施例中,所述预存数据库中,所预先存储的无线网络的SSID及连接密码呈相互关联存储,从而,根据所述无线网络的SSID可在所述预存数据库中获取所述无线网络的连接密码;所述智能终端进一步向所述无线网络的接入点发送所述连接密码信息;所述无线网络的接入点对所述智能终端发送的连接密码信息进行验证,当所述密码信息正确时,所述智能终端获得准入,从而,所述智能终端与所述无线网络建立连接关系。Specifically, in this embodiment, after the smart terminal acquires the SSID of the wireless network, the smart terminal further reads the SSID of the wireless network; and according to the SSID of the wireless network, the pre-stored database. Medium Performing the search. In the embodiment, in the pre-stored database, the SSID and the connection password of the pre-stored wireless network are stored in association with each other, so that the SSID can be obtained in the pre-stored database according to the SSID of the wireless network. a connection password of the wireless network; the smart terminal further sends the connection password information to an access point of the wireless network; the access point of the wireless network verifies the connection password information sent by the intelligent terminal, When the password information is correct, the smart terminal obtains the admission, so that the smart terminal establishes a connection relationship with the wireless network.
更加具体地,优选地,本实施例中,监听所述智能终端的流量消耗量的步骤包括:More specifically, preferably, in this embodiment, the step of monitoring the traffic consumption of the smart terminal includes:
-每隔一预设时间,检测所述智能终端中各应用程序的流量消耗量;- detecting the traffic consumption of each application in the smart terminal every preset time;
-计算获得所述预设时间内所述智能终端的流量消耗量。Calculating the amount of traffic consumption of the smart terminal in the preset time period.
本实施例中,所述智能终端与一无线网络建立连接关系后,所述智能终端将对其内部的流量消耗量进行监测。所述智能终端通过监测其内部各应用程序的流量消耗量,统计获得其总流量消耗情况。具体地,所述智能终端每隔一预设时间,所述智能终端分别获取其中各应用程序的流量消耗量,其中,所述预设时间可以是30秒、1分钟、5分钟等,根据实际应用情况进行不同的设置;然后,所述智能终端可根据其各应用程序的流量消耗情况,计算获得其内部的总的流量消耗量;并进一步将该流量消耗量与一预设流量阈值进行比较,从而,获知所述智能终端的流量消耗情况,判断所述智能终端是否处于不必要的无线网络连接状态。为智能控制所述智能终端的无线网络连接提供依据。In this embodiment, after the smart terminal establishes a connection relationship with a wireless network, the smart terminal monitors the internal traffic consumption. The smart terminal obtains its total traffic consumption by monitoring the traffic consumption of each internal application program. Specifically, the smart terminal acquires the traffic consumption amount of each application program, and the preset time may be 30 seconds, 1 minute, 5 minutes, etc., according to actual conditions. The application can be configured differently; then, the smart terminal can calculate the total internal traffic consumption according to the traffic consumption of each application; and further compare the traffic consumption with a preset traffic threshold. Therefore, the traffic consumption of the smart terminal is known, and it is determined whether the smart terminal is in an unnecessary wireless network connection state. Providing a basis for intelligently controlling the wireless network connection of the smart terminal.
另外,对于在所述智能终端当前环境中的首次出现的无线网络信号,其并不存在所述预存无线网络数据库中,本发明也提供一种无线网络控制方法。优选地,本实施例中,所提供的无线网络控制方法包括以下步骤:In addition, for the first appearance of the wireless network signal in the current environment of the smart terminal, which does not exist in the pre-stored wireless network database, the present invention also provides a wireless network control method. Preferably, in this embodiment, the provided wireless network control method includes the following steps:
-扫描所述智能终端当前环境中的无线网络,获取当前环境中的无线网络的SSID;- scanning a wireless network in the current environment of the smart terminal to obtain an SSID of the wireless network in the current environment;
-将所述无线网络的SSID与一预存数据库中的预存SSID进行比对;- comparing the SSID of the wireless network with a pre-stored SSID in a pre-stored database;
-当所述预存数据库中的预存SSID均与所述无线网络的SSID不匹配时;- when the pre-stored SSIDs in the pre-stored database do not match the SSID of the wireless network;
-生产一告警信号;- producing an alarm signal;
-捕获一对所述告警信号的反馈指令;- capturing a feedback command of the pair of alarm signals;
-响应所述反馈指令,与所述无线网络建立连接;- establishing a connection with the wireless network in response to the feedback instruction;
-存储所述无线网络的SSID及所述无线网络的连接密码。- storing the SSID of the wireless network and the connection password of the wireless network.
本实施例中,如上述实施例中相同,所述智能终端首先扫描其所处的当前环境,感应到所述当前环境中存在无线网络信号时,所述智能终端获取所述当前环境中的无线网络的SSID;然后,将所述无线网络的SSID与一预存数据库中的预存SSID进行比对;当 所述预存数据库中的预存SSID均与所述无线网络的SSID不匹配,也即所述当前环境中仅存在首次出现的无线网络信号时,所述智能终端生成一告警信号,并向外发送,所述告警信号可以为一段音乐、一段提示语音、手机振动、手机闪光等等;用户观察到所述智能终端发出的告警信号后,可获知所述智能终端的当前环境中存在一未存储的无线网络信号,则用户可根据需求向所述智能终端反馈一连接或者不连接所述无线网络的反馈指令;所述智能终端捕获所述反馈指令后,解析所述反馈指令,若解析后所述反馈指令的操作内容为连接所述无线网络,所述智能终端响应所述反馈指令,与所述无线网络建立连接关系;同时所述智能终端将存储所述无线网络的SSID及其连接密码,当所述智能终端再次进入相同的网络环境中时,所述智能终端可实现自动控制无线网络连接的技术效果。In this embodiment, as in the foregoing embodiment, the smart terminal first scans the current environment in which it is located, and when the wireless network signal exists in the current environment, the smart terminal acquires the wireless in the current environment. The SSID of the network; then, comparing the SSID of the wireless network with the pre-stored SSID in a pre-stored database; The pre-stored SSID in the pre-stored database does not match the SSID of the wireless network, that is, when there is only the first occurrence of the wireless network signal in the current environment, the smart terminal generates an alarm signal and sends it out. The alarm signal may be a piece of music, a prompt voice, a mobile phone vibration, a mobile phone flash, etc.; after the user observes the alarm signal sent by the smart terminal, the user may know that there is an unstored wireless in the current environment of the smart terminal. a network signal, the user may feed back a feedback instruction to the smart terminal to connect or not connect to the wireless network according to the requirement; after the smart terminal captures the feedback instruction, parse the feedback instruction, and if the feedback is parsed, the feedback The operation content of the instruction is to connect to the wireless network, and the smart terminal establishes a connection relationship with the wireless network in response to the feedback instruction; and the intelligent terminal stores the SSID of the wireless network and its connection password. When the smart terminal enters the same network environment again, the smart terminal can implement automatic control of the wireless network. Connecting technical effect.
实施例二:Embodiment 2:
另外,鉴于上述实施例一中的无线网络控制方法,本发明还提出一种基于智能终端的无线网络控制方法,其在实施例一的基础上,进一步结合监听智能终端屏幕亮度,提高控制无线网络连接的有效性。参阅图2,其为一符合本发明另一优选实施例的基于智能终端的无线网络控制方法的流程示意图。从图中可以看出,本实施例所提供的无线网络控制方法具体包括以下步骤:In addition, in view of the wireless network control method in the first embodiment, the present invention further provides a wireless network control method based on the smart terminal, which further improves the control wireless network by monitoring the screen brightness of the smart terminal based on the first embodiment. The validity of the connection. Referring to FIG. 2, it is a schematic flowchart of a smart terminal-based wireless network control method according to another preferred embodiment of the present invention. It can be seen from the figure that the wireless network control method provided by this embodiment specifically includes the following steps:
-与当前环境中一无线网络建立连接,- establish a connection with a wireless network in the current environment,
-监听所述智能终端的流量消耗量,- monitoring the traffic consumption of the smart terminal,
-将所述流量消耗量与一预设流量阈值进行比较,- comparing the traffic consumption amount with a preset traffic threshold value,
-当所述流量消耗量小于所述预设流量阈值时,监听所述智能终端的屏幕亮度,- listening to the screen brightness of the smart terminal when the traffic consumption is less than the preset traffic threshold,
-当所述智能终端的屏幕为黑屏状态时,断开所述智能终端的无线网络连接。- When the screen of the smart terminal is in a black screen state, disconnect the wireless network connection of the smart terminal.
具体地,本实施例中,当所述智能终端与其当前环境中一无线网络建立连接关系后,所述智能终端同样会继续监听所述智能终端内部的流量消耗量,并将所述流量消耗量与一预设流量阈值进行比较;与上述实施例中不同的是,当所述智能终端的所述流量消耗量小于一预设流量阈值时,所述智能终端进一步监听其屏幕亮度,当其屏幕亮度为0,也即智能终端处于黑屏状态时,所述智能终端将断开其无线网络连接,从而,更加有效地判断所述智能终端的无效上网状态,并实现在智能终端无必要上网需求时,及时自主地断开智能终端的无线网络连接,减少由于连接无线网络造成的不必要的电量消耗,提高智能终端的单次电池充电的使用时间。Specifically, in this embodiment, after the smart terminal establishes a connection relationship with a wireless network in the current environment, the smart terminal also continues to monitor the traffic consumption inside the smart terminal, and the traffic consumption is Comparing with a preset traffic threshold; different from the above embodiment, when the traffic consumption of the smart terminal is less than a preset traffic threshold, the smart terminal further monitors its screen brightness when its screen When the brightness is 0, that is, when the smart terminal is in a black screen state, the smart terminal will disconnect its wireless network, thereby more effectively determining the invalid Internet access status of the smart terminal, and realizing that the smart terminal does not need the Internet access requirement. The wireless network connection of the smart terminal is disconnected in a timely manner, the unnecessary power consumption caused by the connection of the wireless network is reduced, and the use time of the single battery charging of the smart terminal is improved.
另外,本实施例中,优选地,监听所述智能终端的屏幕亮度的步骤包括: In addition, in this embodiment, preferably, the step of monitoring the screen brightness of the smart terminal includes:
-每隔一第二预设时间,监听所述智能终端的屏幕灯的通过电流强度;- monitoring the passing current intensity of the screen light of the smart terminal every second preset time;
-根据所述通过电流,计算所述智能终端的屏幕亮度。- calculating the screen brightness of the smart terminal based on the passing current.
具体地,本实施例中,所述智能终端可通过监控其屏幕灯的通过电流来监听其屏幕亮度情况。所述智能终端可监测一第二预设时间内,通过所述智能终端的屏幕灯的电流强度,其中,所述第二预设时间可以为30秒、1分钟、2分钟等,根据实际应用情况具体设置;获得一第二预设时间内通过所述屏幕灯的电流强度后,所述智能终端可根据一预设算法,计算获得所述智能终端的屏幕亮度。Specifically, in this embodiment, the smart terminal can monitor the brightness of the screen by monitoring the passing current of the screen light. The smart terminal can monitor the current intensity of the screen light passing through the smart terminal in a second preset time, wherein the second preset time can be 30 seconds, 1 minute, 2 minutes, etc., according to actual application. The situation is specifically set; after obtaining the current intensity of the screen light in a second preset time, the smart terminal may calculate the screen brightness of the smart terminal according to a preset algorithm.
另外,优选地,本实施例中,还提供一种根据所述智能终端的屏幕亮度情况,控制所述智能终端与一无线网络建立连接的技术方案,具体步骤包括:In addition, in this embodiment, a technical solution for controlling the connection between the smart terminal and a wireless network according to the screen brightness of the smart terminal is further provided, and the specific steps include:
-断开所述智能终端的无线网络连接后,继续监听所述智能终端的屏幕亮度,- after disconnecting the wireless network connection of the smart terminal, continuing to monitor the screen brightness of the smart terminal,
-当所述智能终端的屏幕亮度大于0时,与当前环境中一无线网络建立连接。- establishing a connection with a wireless network in the current environment when the screen brightness of the smart terminal is greater than zero.
具体地,当所述智能终端根据本实施例中的控制方法断开与无线网络的连接后,所述智能终端将继续监听其屏幕亮度情况;当所述智能终端的屏幕亮度数值大于0时,所述智能终端将与其当前环境中一无线网络建立连接,从而为用户使用智能终端做好网络准备。避免用户再次唤醒所述智能终端时,无网络连接对用户造成的使用影响。Specifically, after the smart terminal disconnects from the wireless network according to the control method in this embodiment, the smart terminal continues to monitor its screen brightness condition; when the screen brightness value of the smart terminal is greater than 0, The smart terminal will establish a connection with a wireless network in its current environment, thereby preparing the network for the user to use the smart terminal. When the user wakes up the smart terminal again, there is no impact of the use of the network connection on the user.
实施例三:Embodiment 3:
另外,鉴于上述实施例一、二中的无线网络连接及控制方法,本发明还提出另一种基于智能终端的无线网络控制方法,其在实施例一的基础上,进一步结合监听智能终端屏幕黑屏时间,提高控制无线网络连接的有效性。参阅图3,其为一符合本发明另一优选实施例的基于智能终端的无线网络控制方法的流程示意图。从图中可以看出,本实施例所提供的无线网络控制方法具体包括以下步骤:In addition, in view of the wireless network connection and control method in the first embodiment and the second embodiment, the present invention further provides another intelligent network-based wireless network control method, which is further combined with the monitoring smart terminal screen black screen on the basis of the first embodiment. Time to improve the effectiveness of controlling wireless network connections. Referring to FIG. 3, it is a schematic flowchart of a smart terminal-based wireless network control method according to another preferred embodiment of the present invention. It can be seen from the figure that the wireless network control method provided by this embodiment specifically includes the following steps:
-监听所述智能终端的屏幕亮度,- monitoring the screen brightness of the smart terminal,
-当所述智能终端为黑屏状态时,记录所述智能终端的黑屏时间,- when the smart terminal is in a black screen state, recording the black screen time of the smart terminal,
-当所述智能终端的黑屏时间大于一预设时间阈值时,监听所述智能终端的无线网络连接状态,- listening to the wireless network connection status of the smart terminal when the black screen time of the smart terminal is greater than a preset time threshold,
-当所述智能终端未连接无线网络时,关闭所述智能终端的无线网络连接模块。- When the smart terminal is not connected to the wireless network, the wireless network connection module of the smart terminal is turned off.
与实施例二中不同的是,本实施例中,所述智能终端保持监听所述智能终端的屏幕亮度;当所述智能终端的屏幕亮度为黑屏,也即所述智能终端的屏幕亮度为0时,启动所述智能终端中的计时器,记录所述智能终端的黑屏时间;当所述智能终端黑屏时间大于一预设时间阈值时,所述智能终端监听所述智能终端的无线网络连接状态;当监听发 现所述智能终端在其黑屏状态下仍未与任何无线网络建立连接时,关闭所述智能终端的无线网络连接模块。从而,在实施例一、二中断开智能终端无线网络连接的基础上,进一步关闭了所述智能终端中的无线网络连接模块,从而,更加有效的避免了无线网络连接模块的工作对所述智能终端电量的消耗。Different from the second embodiment, in the embodiment, the smart terminal keeps listening to the screen brightness of the smart terminal; when the screen brightness of the smart terminal is black, that is, the screen brightness of the smart terminal is 0. The timer in the smart terminal is started to record the black screen time of the smart terminal; when the black screen time of the smart terminal is greater than a preset time threshold, the smart terminal monitors the wireless network connection status of the smart terminal. When listening to When the smart terminal is still not connected to any wireless network in its black screen state, the wireless network connection module of the smart terminal is closed. Therefore, on the basis of disconnecting the wireless network connection of the smart terminal in the first embodiment and the second, the wireless network connection module in the smart terminal is further closed, thereby more effectively avoiding the work of the wireless network connection module. The consumption of the power of the smart terminal.
另外,优选地,本实施例中,所述智能终端还设置有一无线网络动态控制模块,用户可以预先启动所述智能终端的无线网络动态控制模块,实现在智能终端智能关闭其无线连接模块后,所述智能终端仍可在必要时,智能启动所述智能终端的无线网络连接模块,并与一无线网络建立连接。其具体包括以下步骤:In addition, in the embodiment, the smart terminal is further provided with a wireless network dynamic control module, and the user may pre-activate the wireless network dynamic control module of the smart terminal, so that after the smart terminal intelligently closes its wireless connection module, The smart terminal can still intelligently activate the wireless network connection module of the smart terminal and establish a connection with a wireless network when necessary. It specifically includes the following steps:
-预先启动所述智能终端的无线网络动态控制模块,- pre-launching the wireless network dynamic control module of the smart terminal,
-关闭所述智能终端的无线网络连接模块后,继续监听所述智能终端的屏幕亮度,- after turning off the wireless network connection module of the smart terminal, continue to monitor the screen brightness of the smart terminal,
-当所述智能终端的屏幕亮度大于0时,启动所述智能终端的无线网络连接模块。- when the screen brightness of the smart terminal is greater than 0, the wireless network connection module of the smart terminal is activated.
-启动所述智能终端的无线网络连接模块后,After starting the wireless network connection module of the smart terminal,
-扫描所述智能终端的当前环境中的无线网络,Scaning the wireless network in the current environment of the smart terminal,
-当所述智能终端中存在至少一无线网络时,与所述无线网络建立连接。- establishing a connection with the wireless network when there is at least one wireless network in the intelligent terminal.
具体地,本实施例中,所述智能终端还设置有一无线网络动态控制模块,用户可以预先启动所述智能终端的无线网络动态控制模块。从而,当所述智能终端关闭其无线网络连接模块后,所述智能终端将继续监听其屏幕亮度,当所述智能终端的屏幕亮度大于0时,也即,所述智能终端屏幕被唤醒时,所述智能终端通过所述无线网络动态控制模块,启动其无线网络连接模块;从而所述智能终端可对其当前环境中的无线网络信号进行扫描,当所述智能终端中存在至少一无线网络信号时,所述智能终端可以与所述无线网络建立连接。从而,所述智能终端可在其屏幕被唤醒时,及时开启其无线网络连接模块,并与当前环境中的无线网络建立连接,为用户的使用提供及时的网络服务。Specifically, in this embodiment, the smart terminal is further configured with a wireless network dynamic control module, and the user may pre-launch the wireless network dynamic control module of the smart terminal. Therefore, after the smart terminal closes its wireless network connection module, the smart terminal will continue to monitor its screen brightness. When the screen brightness of the smart terminal is greater than 0, that is, when the smart terminal screen is awakened, The smart terminal activates its wireless network connection module by using the wireless network dynamic control module; thus, the smart terminal can scan a wireless network signal in its current environment, and at least one wireless network signal exists in the smart terminal. The smart terminal can establish a connection with the wireless network. Therefore, the smart terminal can open its wireless network connection module in time when its screen is awakened, and establish a connection with the wireless network in the current environment to provide timely network service for the user's use.
另外,为实现上述实施例一中的基于智能终端的无线网络控制方法,本发明还提供一种基于智能终端的无线网络控制装置。参阅图4,其为一符合本发明一优选实施例的基于智能终端的无线网络控制装置的结构图。从图中可以看出,本实施例中,所提供的无线网络控制装置具体包括以下模块:In addition, in order to implement the intelligent terminal-based wireless network control method in the first embodiment, the present invention further provides a smart terminal-based wireless network control device. Referring to FIG. 4, it is a structural diagram of a smart terminal-based wireless network control apparatus in accordance with a preferred embodiment of the present invention. As can be seen from the figure, in the embodiment, the provided wireless network control device specifically includes the following modules:
-网络扫描模块-Network scanning module
用于扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识(SSID)。其中,所述网络扫描模块具体包括:接收单元,用于接收当前环境中的所述无线网络的SSID广播;解析单元,用于解析所述SSID广播,获得发出所述SSID广播的无线网络的 SSID。It is used to scan the wireless network in the current environment and obtain the service set identifier (SSID) of the wireless network in the current environment. The network scanning module specifically includes: a receiving unit, configured to receive an SSID broadcast of the wireless network in a current environment; a parsing unit, configured to parse the SSID broadcast, and obtain a wireless network that sends the SSID broadcast SSID.
-网络配比模块-Network ratio module
用于将所述无线网络的SSID与一预存数据库中的预存SSID进行比对,当所述无线网络的SSID与所述预存数据库中一预存SSID相匹配时,生产一连接指令,向外发送。And comparing the SSID of the wireless network with the pre-stored SSID in a pre-stored database. When the SSID of the wireless network matches a pre-stored SSID in the pre-stored database, a connection command is generated and sent out.
-网络连接模块-Network connection module
接收所述连接指令,并根据所述连接指令与所述无线网络建立连接。其中,所述网络连接模块具体包括:信息读取单元,用于读取所述无线网路的SSID;密码检索单元,用于在所述预存数据库中检索,获取所述无线网络的密码信息;连接单元,向所无线网络的接入点发送所述密码信息;当所述密码信息与所无线网络的连接密码信息相匹配时,所述智能终端与所述无线网络建立连接关系。Receiving the connection instruction and establishing a connection with the wireless network according to the connection instruction. The network connection module specifically includes: an information reading unit, configured to read an SSID of the wireless network; and a password retrieval unit, configured to retrieve, in the pre-stored database, the password information of the wireless network; The connecting unit sends the password information to an access point of the wireless network; when the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
-流量监听模块- Traffic monitoring module
用于监听所述智能终端的流量消耗量。其中,所述流量监听模块具体包括:流量监听单元,每隔一预设时间,检测所述智能终端中各应用程序的流量消耗量;处理单元,计算获得所述预设时间内所述智能终端的流量消耗量。Used to monitor the traffic consumption of the smart terminal. The traffic monitoring module includes: a traffic monitoring unit that detects a traffic consumption of each application in the smart terminal every preset time; and a processing unit that calculates and obtains the smart terminal in the preset time The amount of traffic consumed.
-流量计算模块-Flow calculation module
用于将所述流量消耗量与一预设流量阈值进行比较,当所述流量消耗量小于所述预设流量阈值时,生产一关闭指令。And comparing the traffic consumption amount with a preset traffic threshold, and when the traffic consumption is less than the preset traffic threshold, generating a shutdown command.
-控制模块-Control module
接收所述关闭指令,并根据所述关闭指令,断开所述智能终端的无线网络连接。Receiving the shutdown command, and disconnecting the wireless network connection of the smart terminal according to the shutdown instruction.
另外,优选地,针对在所述智能终端当前环境中的首次出现的无线网络信号,其并不存在所述预存无线网络数据库中,本发明提供一种无线网络控制装置,其包括以下模块:In addition, preferably, for the first occurrence of the wireless network signal in the current environment of the smart terminal, which is not present in the pre-stored wireless network database, the present invention provides a wireless network control device, which includes the following modules:
-网络告警模块-Network alarm module
当所述预存数据库中的预存SSID均与所述无线网络的SSID不匹配时,所述网络告警模块可生产一告警信号,并向外发送。When the pre-stored SSID in the pre-stored database does not match the SSID of the wireless network, the network alarm module may generate an alarm signal and send it out.
-指令模块- instruction module
用于捕获一对所述告警信号的反馈指令,a feedback instruction for capturing a pair of the alarm signals,
-存储模块- storage module
所述网络连接模块响应所述反馈指令,与所述无线网络建立连接后,所述存储模块存储所述无线网络的SSID及所述无线网络的连接密码。 After the network connection module establishes a connection with the wireless network in response to the feedback instruction, the storage module stores an SSID of the wireless network and a connection password of the wireless network.
另外,为实现上述实施例二中的基于智能终端的无线网络控制方法,本发明还提供一种基于智能终端的无线网络控制装置。参阅图5,其为一符合本发明另一优选实施例的基于智能终端的无线网络控制装置的结构图。从图中可以看出,本实施例中,所提供的无线网络控制装置具体包括以下模块:In addition, in order to implement the intelligent terminal-based wireless network control method in the second embodiment, the present invention further provides a smart terminal-based wireless network control device. Referring to FIG. 5, it is a structural diagram of a smart terminal-based wireless network control apparatus according to another preferred embodiment of the present invention. As can be seen from the figure, in the embodiment, the provided wireless network control device specifically includes the following modules:
-网络连接模块-Network connection module
用于实现与当前环境中一无线网络建立连接。其中,所述网络连接模块包括:接收单元,扫描并接收当前环境中的所述无线网络的SSID广播;解析单元,解析所述SSID广播,获得发出所述SSID广播的无线网络的SSID;连接单元,向所无线网络的接入点发送连接密码信息,当所述密码信息与所无线网络的连接密码信息相匹配时,所述智能终端与所述无线网络建立连接关系。Used to establish a connection with a wireless network in the current environment. The network connection module includes: a receiving unit that scans and receives an SSID broadcast of the wireless network in a current environment; a parsing unit that parses the SSID broadcast to obtain an SSID of a wireless network that issues the SSID broadcast; and a connection unit Sending connection password information to the access point of the wireless network, and when the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
-流量监听模块- Traffic monitoring module
用于监听所述智能终端的流量消耗量。其中,所述流量监听模块包括:流量监听单元,每隔一第一预设时间,检测所述智能终端中各应用程序的子流量消耗量;第一处理单元,计算获得所述第一预设时间内所述智能终端的流量消耗量。Used to monitor the traffic consumption of the smart terminal. The traffic monitoring module includes: a traffic monitoring unit that detects a sub-traffic consumption of each application in the smart terminal every other first preset time; the first processing unit calculates and obtains the first preset The amount of traffic consumed by the smart terminal during the time.
-流量计算模块-Flow calculation module
用于将所述流量消耗量与一预设流量阈值进行比较,当所述流量消耗量小于所述预设流量阈值时,生产一第一操作指令,并向外发送。And comparing the traffic consumption amount with a preset traffic threshold. When the traffic consumption is less than the preset traffic threshold, a first operation instruction is generated and sent out.
-第一屏幕亮度监听模块- first screen brightness monitoring module
接收并根据所述第一操作指令,监听所述智能终端的屏幕亮度,当所述智能终端的屏幕为黑屏状态时,生产一第二操作指令,并向外发送。其中所述第一屏幕亮度监听模块包括:电流监听单元,每隔一第二预设时间,监听所述智能终端的屏幕灯的通过电流强度;第二处理单元,根据所述通过电流,计算所述智能终端的屏幕亮度。Receiving and monitoring the screen brightness of the smart terminal according to the first operation instruction, when the screen of the smart terminal is in a black screen state, generating a second operation instruction and transmitting the second operation instruction. The first screen brightness monitoring module includes: a current monitoring unit that monitors a passing current intensity of the screen light of the smart terminal every second preset time; and a second processing unit that calculates the current according to the passing current The screen brightness of the smart terminal.
-控制模块-Control module
接收并根据所述第二操作指令,断开所述智能终端的无线网络连接。Receiving and disconnecting the wireless network connection of the smart terminal according to the second operation instruction.
另外,优选地,本实施例中,还提供一种根据所述智能终端的屏幕亮度情况,控制所述智能终端与一无线网络建立连接的技术方案,基于上述实施例中的模块,还具体包括:In addition, in the embodiment, a technical solution for controlling the smart terminal to establish a connection with a wireless network according to the screen brightness of the smart terminal is further provided. :
-第二屏幕亮度监听模块-Second screen brightness monitoring module
断开所述智能终端的无线网络连接后,所述第二屏幕亮度监听模块继续监听所述智能终端的屏幕亮度,当所述智能终端的屏幕亮度大于0时,生产一第三操作指令,并向外 发送。从而,根据所述第三操作指令,所述网络连接模块与当前环境中一无线网络建立连接。After the wireless network connection of the smart terminal is disconnected, the second screen brightness monitoring module continues to monitor the screen brightness of the smart terminal, and when the screen brightness of the smart terminal is greater than 0, a third operation instruction is generated, and Outward send. Thus, according to the third operation instruction, the network connection module establishes a connection with a wireless network in the current environment.
另外,为实现上述实施例三中的基于智能终端的无线网络控制方法,本发明还提供另一种基于智能终端的无线网络控制装置。参阅图6,其为一符合本发明另一优选实施例的基于智能终端的无线网络控制装置的结构图。从图中可以看出,本实施例中,所提供的无线网络控制装置具体包括以下模块:In addition, in order to implement the intelligent terminal-based wireless network control method in the foregoing third embodiment, the present invention further provides another intelligent terminal-based wireless network control device. Referring to FIG. 6, which is a structural diagram of a smart terminal based wireless network control apparatus according to another preferred embodiment of the present invention. As can be seen from the figure, in the embodiment, the provided wireless network control device specifically includes the following modules:
-第一屏幕亮度监听模块- first screen brightness monitoring module
用于监听所述智能终端的屏幕亮度,当所述智能终端为黑屏状态时,生成一第一操作指令,并向外发送。其中,所述第一屏幕亮度监听模块包括:电流监听单元,每隔一第二预设时间,监听所述智能终端的屏幕灯的通过电流强度;第二处理单元,根据所述通过电流,计算所述智能终端的屏幕亮度。The screen brightness of the smart terminal is monitored, and when the smart terminal is in a black screen state, a first operation instruction is generated and sent out. The first screen brightness monitoring module includes: a current monitoring unit that monitors a passing current intensity of the screen light of the smart terminal every second preset time; and a second processing unit that calculates according to the passing current The screen brightness of the smart terminal.
-计时模块- Timing module
接收并根据所述第一操作指令,记录所述智能终端的黑屏时间,当所述智能终端的黑屏时间大于一预设时间阈值时,生成一第二操作指令,并向外发送。And receiving, according to the first operation instruction, a black screen time of the smart terminal, and when the black screen time of the smart terminal is greater than a preset time threshold, generating a second operation instruction and transmitting the second operation instruction.
-网络状态监听模块- Network status monitoring module
接收并根据所述第二操作指令,监听所述智能终端的无线网络连接状态,当所述智能终端未连接无线网络时,生成一第三操作指令,并向外发送。Receiving and monitoring the wireless network connection status of the smart terminal according to the second operation instruction, when the smart terminal is not connected to the wireless network, generating a third operation instruction and transmitting the same.
-控制模块-Control module
接收并根据所述第三操作指令,关闭所述智能终端的无线网络连接模块。Receiving and shutting down the wireless network connection module of the smart terminal according to the third operation instruction.
另外,优选地,本实施例中,所述智能终端还设置有一无线网络动态控制模块,用户可以预先启动所述智能终端的无线网络动态控制模块,实现在智能终端智能关闭其无线连接模块后,所述智能终端仍可在必要时,智能启动所述智能终端的无线网络连接模块,并与一无线网络建立连接的技术方案。该方案具体包括以下模块:In addition, in the embodiment, the smart terminal is further provided with a wireless network dynamic control module, and the user may pre-activate the wireless network dynamic control module of the smart terminal, so that after the smart terminal intelligently closes its wireless connection module, The smart terminal can still intelligently start the wireless network connection module of the smart terminal and establish a connection with a wireless network when necessary. The program specifically includes the following modules:
-启动模块-Start module
用于启动所述智能终端的无线网络动态控制模块,a wireless network dynamic control module for starting the smart terminal,
-第二屏幕亮度监听模块-Second screen brightness monitoring module
关闭所述智能终端的无线网络连接模块后,继续监听所述智能终端的屏幕亮度,当所述智能终端的屏幕亮度大于0时,生成一第四操作指令,并向外发送。After the wireless network connection module of the smart terminal is closed, the screen brightness of the smart terminal is continuously monitored. When the screen brightness of the smart terminal is greater than 0, a fourth operation instruction is generated and sent out.
-无线网络动态控制模块-Wireless Network Dynamic Control Module
接收并根据所述第四操作指令,启动所述智能终端的无线网络连接模块。 Receiving and starting the wireless network connection module of the smart terminal according to the fourth operation instruction.
优选地,本实施例中,所述智能终端启动其无线网络连接模块后,所述智能终端进而可对当前环境进行扫描,并与当前环境中存在的无线网络建立连接。从而,本实施例中,所述无线网络控制装置还包括以下模块:Preferably, in this embodiment, after the smart terminal starts its wireless network connection module, the smart terminal can further scan the current environment and establish a connection with the wireless network existing in the current environment. Therefore, in this embodiment, the wireless network control apparatus further includes the following modules:
-网络扫描模块-Network scanning module
用于扫描所述智能终端的当前环境中的无线网络,当所述智能终端中存在至少一无线网络时,生成一第五操作指令,并向外发送。And a wireless network in a current environment for scanning the smart terminal. When at least one wireless network exists in the smart terminal, a fifth operation instruction is generated and sent out.
-网络连接模块-Network connection module
接收并根据所述第五操作指令,与所述无线网络建立连接。其中,所述网络连接模块包括:接收单元,扫描并接收当前环境中的所述无线网络的SSID广播;解析单元,解析所述SSID广播,获得发出所述SSID广播的无线网络的SSID;连接单元,向所无线网络的接入点发送连接密码信息,当所述密码信息与所无线网络的连接密码信息相匹配时,所述智能终端与所述无线网络建立连接关系。Receiving and establishing a connection with the wireless network according to the fifth operational instruction. The network connection module includes: a receiving unit that scans and receives an SSID broadcast of the wireless network in a current environment; a parsing unit that parses the SSID broadcast to obtain an SSID of a wireless network that issues the SSID broadcast; and a connection unit Sending connection password information to the access point of the wireless network, and when the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
由上述各实施例的技术方案中可以看出,本发明通过监听所述智能终端的内部流量消耗情况、屏幕亮度情况等,提供一种基于智能终端的无线网络控制方法及装置,其不仅可以实现在智能终端不存在有效网络占用的情况下,断开智能终端的网络连接,减少智能终端的电量消耗;还可以在智能终端被唤醒时,及时启动所述智能终端的无线网络连接,为用户提供便利,大大提高了现有智能终端无线网络连接方案的智能性,具有良好的市场应用前景。As can be seen from the technical solutions of the foregoing embodiments, the present invention provides a wireless network control method and apparatus based on an intelligent terminal by monitoring internal traffic consumption of the smart terminal, screen brightness, and the like. If the smart terminal does not have an effective network occupation, the network connection of the smart terminal is disconnected, and the power consumption of the smart terminal is reduced. When the smart terminal is woken up, the wireless network connection of the smart terminal is started in time to provide the user with the wireless network connection. Convenience greatly improves the intelligence of the existing smart terminal wireless network connection scheme and has a good market application prospect.
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。 It should be noted that the embodiments of the present invention are preferred embodiments, and are not intended to limit the scope of the present invention. Any one skilled in the art may use the above-disclosed technical contents to change or modify the equivalent embodiments. Any modification or equivalent changes and modifications of the above embodiments in accordance with the technical spirit of the present invention are still within the scope of the technical solutions of the present invention.

Claims (10)

  1. 一种基于智能终端的无线网络控制方法,其特征在于,包括以下步骤:A wireless terminal control method based on an intelligent terminal, comprising the following steps:
    扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识SSID,Scan the wireless network in the current environment to obtain the service set identifier SSID of the wireless network in the current environment.
    将所述无线网络的SSID与一预存数据库中的预存SSID进行比对,Comparing the SSID of the wireless network with a pre-stored SSID in a pre-stored database,
    当所述无线网络的SSID与所述预存数据库中一预存SSID相匹配时,与所述无线网络建立连接,Establishing a connection with the wireless network when the SSID of the wireless network matches a pre-stored SSID in the pre-stored database,
    监听所述智能终端的流量消耗量,Monitoring the traffic consumption of the smart terminal,
    将所述流量消耗量与一预设流量阈值进行比较,Comparing the traffic consumption amount with a preset traffic threshold,
    当所述流量消耗量小于所述预设流量阈值时,断开所述智能终端的无线网络连接。When the traffic consumption is less than the preset traffic threshold, disconnect the wireless network connection of the smart terminal.
  2. 如权利要求1所述的无线网路连接方法,其特征在于,The wireless network connection method according to claim 1, wherein
    扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识SSID的步骤包括,The steps of scanning the wireless network in the current environment and obtaining the service set identifier SSID of the wireless network in the current environment include:
    所述智能终端接收当前环境中的所述无线网络的SSID广播,Receiving, by the smart terminal, an SSID broadcast of the wireless network in a current environment,
    解析所述SSID广播,获得发出所述SSID广播的无线网络的SSID。The SSID broadcast is parsed to obtain the SSID of the wireless network that issued the SSID broadcast.
  3. 如权利要求1所述的无线网络控制方法,其特征在于,The wireless network control method according to claim 1, wherein
    与所述无线网络建立连接的步骤包括,The step of establishing a connection with the wireless network includes,
    读取所述无线网络的SSID,Reading the SSID of the wireless network,
    在所述预存数据库中检索,获取所述无线网络的密码信息,Searching in the pre-stored database to obtain password information of the wireless network,
    向所无线网络的接入点发送所述密码信息,Sending the password information to an access point of the wireless network,
    当所述密码信息与所无线网络的连接密码信息相匹配时,所述智能终端与所述无线网络建立连接关系。When the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
  4. 如权利要求1所述的无线网络控制方法,其特征在于,The wireless network control method according to claim 1, wherein
    监听所述智能终端的流量消耗量的步骤包括,The step of monitoring the traffic consumption of the smart terminal includes:
    每隔一预设时间,检测所述智能终端中各应用程序的流量消耗量,Detecting the traffic consumption of each application in the smart terminal every preset time,
    计算获得所述预设时间内所述智能终端的流量消耗量。Calculating the traffic consumption of the smart terminal in the preset time period.
  5. 如权利要求1所述的无线网络控制方法,其特征在于,The wireless network control method according to claim 1, wherein
    还包括,Also includes,
    扫描所述智能终端当前环境中的无线网络,获取当前环境中的无线网络的SSID,Scanning the wireless network in the current environment of the smart terminal to obtain the SSID of the wireless network in the current environment,
    将所述无线网络的SSID与一预存数据库中的预存SSID进行比对, Comparing the SSID of the wireless network with a pre-stored SSID in a pre-stored database,
    当所述预存数据库中的预存SSID均与所述无线网络的SSID不匹配时,When the pre-stored SSIDs in the pre-stored database do not match the SSID of the wireless network,
    生成一告警信号,Generate an alarm signal,
    捕获一对所述告警信号的反馈指令,Capturing a pair of feedback instructions of the alarm signal,
    响应所述反馈指令,与所述无线网络建立连接,Establishing a connection with the wireless network in response to the feedback instruction,
    存储所述无线网络的SSID及所述无线网络的连接密码。And storing an SSID of the wireless network and a connection password of the wireless network.
  6. 一种基于智能终端的无线网络控制装置,其特征在于,包括以下模块,A wireless network control device based on an intelligent terminal, comprising the following modules,
    网络扫描模块,扫描当前环境中的无线网络,获取当前环境中的无线网络的服务集标识SSID,The network scanning module scans the wireless network in the current environment to obtain the service set identifier SSID of the wireless network in the current environment.
    网络配比模块,将所述无线网络的SSID与一预存数据库中的预存SSID进行比对,The network matching module compares the SSID of the wireless network with the pre-stored SSID in a pre-stored database.
    当所述无线网络的SSID与所述预存数据库中一预存SSID相匹配时,生产一连接指令,向外发送,When the SSID of the wireless network matches a pre-stored SSID in the pre-stored database, a connection command is generated and sent out,
    网络连接模块,与所述无线网络建立连接,a network connection module, establishing a connection with the wireless network,
    流量监听模块,监听所述智能终端的流量消耗量,a traffic monitoring module, which monitors the traffic consumption of the smart terminal,
    流量计算模块,将所述流量消耗量与一预设流量阈值进行比较,当所述流量消耗量小于所述预设流量阈值时,生产一关闭指令,The traffic calculation module compares the traffic consumption amount with a preset traffic threshold, and when the traffic consumption is less than the preset traffic threshold, generates a shutdown command.
    控制模块,根据所述关闭指令,断开所述智能终端的无线网络连接。And the control module disconnects the wireless network connection of the smart terminal according to the shutdown instruction.
  7. 如权利要求6所述的无线网络控制装置,其特征在于,The wireless network control device according to claim 6, wherein
    所述网络扫描模块包括,The network scanning module includes
    接收单元,接收当前环境中的所述无线网络的SSID广播,Receiving unit, receiving an SSID broadcast of the wireless network in a current environment,
    解析单元,解析所述SSID广播,获得发出所述SSID广播的无线网络的SSID。The parsing unit parses the SSID broadcast to obtain an SSID of the wireless network that issues the SSID broadcast.
  8. 如权利要求6所述的无线网络控制装置,其特征在于,The wireless network control device according to claim 6, wherein
    所述网络连接模块包括,The network connection module includes
    信息读取单元,读取所述无线网路的SSID,An information reading unit that reads an SSID of the wireless network,
    密码检索单元,在所述预存数据库中检索,获取所述无线网络的密码信息,a password retrieval unit, searching in the pre-stored database, acquiring password information of the wireless network,
    连接单元,向所无线网络的接入点发送所述密码信息,a connecting unit, sending the password information to an access point of the wireless network,
    当所述密码信息与所无线网络的连接密码信息相匹配时,所述智能终端与所述无线网络建立连接关系。When the password information matches the connection password information of the wireless network, the smart terminal establishes a connection relationship with the wireless network.
  9. 如权利要求6所述的无线网络控制装置,其特征在于,The wireless network control device according to claim 6, wherein
    所述流量监听模块包括,The traffic monitoring module includes
    流量监听单元,每隔一预设时间,检测所述智能终端中各应用程序的流量消耗量, The traffic monitoring unit detects the traffic consumption of each application in the smart terminal every preset time,
    处理单元,计算获得所述预设时间内所述智能终端的流量消耗量。The processing unit calculates and obtains a traffic consumption amount of the smart terminal in the preset time.
  10. 如权利要求6所述的无线网络控制装置,其特征在于,The wireless network control device according to claim 6, wherein
    还包括,Also includes,
    网络告警模块,当所述预存数据库中的预存SSID均与所述无线网络的SSID不匹配时,生产一告警信号,The network alarm module generates an alarm signal when the pre-stored SSID in the pre-stored database does not match the SSID of the wireless network,
    指令模块,捕获一对所述告警信号的反馈指令,An instruction module that captures a pair of feedback instructions of the alarm signal,
    存储模块,所述网络连接模块响应所述反馈指令,与所述无线网络建立连接后,所述存储模块存储所述无线网络的SSID及所述无线网络的连接密码。 a storage module, the network connection module, after responding to the feedback instruction, after establishing a connection with the wireless network, the storage module stores an SSID of the wireless network and a connection password of the wireless network.
PCT/CN2017/105854 2017-10-12 2017-10-12 Smart terminal-based wireless network control method and wireless network control device WO2019071522A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105854 WO2019071522A1 (en) 2017-10-12 2017-10-12 Smart terminal-based wireless network control method and wireless network control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105854 WO2019071522A1 (en) 2017-10-12 2017-10-12 Smart terminal-based wireless network control method and wireless network control device

Publications (1)

Publication Number Publication Date
WO2019071522A1 true WO2019071522A1 (en) 2019-04-18

Family

ID=66100291

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105854 WO2019071522A1 (en) 2017-10-12 2017-10-12 Smart terminal-based wireless network control method and wireless network control device

Country Status (1)

Country Link
WO (1) WO2019071522A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060056322A1 (en) * 2004-09-10 2006-03-16 Simpson Floyd D Method for updating a timer function in a mobile station in a wireless local area network
US20070249305A1 (en) * 2006-04-25 2007-10-25 Mediatek Inc. Station control method and station using the same
CN102833813A (en) * 2011-06-14 2012-12-19 华为技术有限公司 Method, terminal and network equipment for distributing data to wireless local area network
CN103365399A (en) * 2013-06-26 2013-10-23 贝壳网际(北京)安全技术有限公司 Control method and device for application object of mobile terminal
US20140369201A1 (en) * 2011-10-03 2014-12-18 Vivek Gupta Multi-rat carrier aggregation for integrated wwan-wlan operation
CN105916196A (en) * 2016-06-16 2016-08-31 硕诺科技(深圳)有限公司 Power-saving stepped wifi control method
CN106878562A (en) * 2017-03-02 2017-06-20 东软集团股份有限公司 Control the method and device of wifi functional switches
CN106937407A (en) * 2017-05-15 2017-07-07 广东虹勤通讯技术有限公司 A kind of wireless network connection management method and device, terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060056322A1 (en) * 2004-09-10 2006-03-16 Simpson Floyd D Method for updating a timer function in a mobile station in a wireless local area network
US20070249305A1 (en) * 2006-04-25 2007-10-25 Mediatek Inc. Station control method and station using the same
CN102833813A (en) * 2011-06-14 2012-12-19 华为技术有限公司 Method, terminal and network equipment for distributing data to wireless local area network
US20140369201A1 (en) * 2011-10-03 2014-12-18 Vivek Gupta Multi-rat carrier aggregation for integrated wwan-wlan operation
CN103365399A (en) * 2013-06-26 2013-10-23 贝壳网际(北京)安全技术有限公司 Control method and device for application object of mobile terminal
CN105916196A (en) * 2016-06-16 2016-08-31 硕诺科技(深圳)有限公司 Power-saving stepped wifi control method
CN106878562A (en) * 2017-03-02 2017-06-20 东软集团股份有限公司 Control the method and device of wifi functional switches
CN106937407A (en) * 2017-05-15 2017-07-07 广东虹勤通讯技术有限公司 A kind of wireless network connection management method and device, terminal

Similar Documents

Publication Publication Date Title
US7792066B2 (en) Wireless wake-on-LAN power management
US10149241B2 (en) Device, method, and system for starting mobile hotspot
WO2021047390A1 (en) Method for reducing power consumption and mobile terminal
JP5296104B2 (en) Technology that uses network layer 2 proxies to ensure high energy efficient service discovery and connectivity
WO2018000134A1 (en) Bluetooth connection method and terminal
US9215654B2 (en) System wakeup on wireless network messages
US20160029198A1 (en) Immediate connection following device discovery
US8738094B2 (en) Automatically enabling wireless communication
US9451551B2 (en) Controlling a power state of a cellular packet data subsystem in a portable electronic device
CN110381489B (en) Bluetooth connection method, display terminal and television
WO2022017359A1 (en) Direct communication start-up control method and related device
CN111294460A (en) Communication method, terminal, network equipment and communication device
WO2023236715A1 (en) Pulse heating method and apparatus for traction battery, and terminal and storage medium
WO2019071524A1 (en) Intelligent terminal-based wireless network control method and wireless network control device
US10945207B2 (en) Beacon signal processing system and filtering method of reducing wake-up frequency
WO2015154615A1 (en) Wireless access point terminal and method for saving electricity intelligently thereof
CN106980353B (en) Electronic device, control method and control device thereof
WO2019071522A1 (en) Smart terminal-based wireless network control method and wireless network control device
WO2019071523A1 (en) Wireless network control method and wireless network control apparatus based on intelligent terminal
US20190208469A1 (en) Beacon signal processing system
WO2023016337A1 (en) Electronic device and charging control method for electronic device
US11061464B2 (en) Electronic device, method for reducing power consumption, and apparatus
JP3890278B2 (en) Wireless LAN availability detection device and wireless LAN availability detection method
JP5456141B2 (en) Communication device and wireless communication method
US8873536B2 (en) Identifying a random advertising device as a connected device

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: 17928309

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: 17928309

Country of ref document: EP

Kind code of ref document: A1