CN107396434B - Wireless network connection method and mobile terminal - Google Patents

Wireless network connection method and mobile terminal Download PDF

Info

Publication number
CN107396434B
CN107396434B CN201710677392.9A CN201710677392A CN107396434B CN 107396434 B CN107396434 B CN 107396434B CN 201710677392 A CN201710677392 A CN 201710677392A CN 107396434 B CN107396434 B CN 107396434B
Authority
CN
China
Prior art keywords
wireless network
preset
mobile terminal
address
controlling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710677392.9A
Other languages
Chinese (zh)
Other versions
CN107396434A (en
Inventor
吴晓勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710677392.9A priority Critical patent/CN107396434B/en
Publication of CN107396434A publication Critical patent/CN107396434A/en
Application granted granted Critical
Publication of CN107396434B publication Critical patent/CN107396434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • 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

Abstract

The embodiment of the invention discloses a wireless network connection method and a mobile terminal, wherein the method comprises the following steps: when the mobile terminal is not connected with a wireless network, controlling the terminal main system and the wireless network subsystem to enter a dormant state, and controlling the wireless network chip to monitor a beacon; and when the beacon monitored by the wireless network chip is matched with the target address, waking up the terminal main system and the wireless network subsystem, and connecting the terminal main system and the wireless network subsystem with a wireless network corresponding to the target address. According to the embodiment of the invention, the automatic connection of the wireless network is realized, and meanwhile, the electric quantity consumed by the mobile terminal is saved.

Description

Wireless network connection method and mobile terminal
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a wireless network connection method and a mobile terminal.
Background
With the development of communication technology, more and more users access the network through mobile terminals such as mobile phones and tablet computers. Generally, a mobile terminal connects to a nearby available WiFi (Wireless-Fidelity) through a built-in WiFi connection system, and when a certain WiFi is connected, a user can access the network through the WiFi. In actual use, the mobile terminal may be disconnected from WiFi due to factors such as the mobile terminal leaving the WiFi coverage area and the WiFi current signal being interfered. After the mobile terminal is disconnected from the WiFi, the WiFi connection system can periodically scan the WiFi nearby on each channel through the WiFi chip, and the WiFi connection system is connected when available WiFi is scanned, so that the automatic connection of the WiFi is realized.
However, in the process of automatically connecting WiFi, the WiFi connection system needs to be awakened periodically, and since the WiFi connection system is usually a high power consumption system, a large amount of power of the mobile terminal needs to be consumed. Therefore, the wireless network connection method in the prior art has the problem of consuming the power of the mobile terminal.
Disclosure of Invention
The invention provides a wireless network connection method and a mobile terminal, which aim to solve the problem that the wireless network connection method in the prior art consumes the electric quantity of the mobile terminal in the background technology.
In a first aspect, a method for connecting a wireless network is provided, and is applied to a mobile terminal, where the mobile terminal includes a terminal main system, a wireless network subsystem and a wireless network chip, and the method includes:
when the mobile terminal is not connected with a wireless network, controlling the terminal main system and the wireless network subsystem to enter a dormant state, and controlling the wireless network chip to monitor a beacon;
and when the beacon monitored by the wireless network chip is matched with the target address, waking up the terminal main system and the wireless network subsystem, and connecting the terminal main system and the wireless network subsystem with a wireless network corresponding to the target address.
In a second aspect, a mobile terminal is provided, including:
the monitoring control module is used for controlling the terminal main system and the wireless network subsystem to enter a dormant state and controlling the wireless network chip to monitor a beacon when the mobile terminal is not connected with a wireless network;
and the network connection module is used for awakening the terminal main system and the wireless network subsystem when the beacon monitored by the wireless network chip is matched with the target address, and is connected with the wireless network corresponding to the target address.
In a third aspect, a mobile terminal is provided, which includes a processor and a memory, and a processing program for wireless network connection stored in the memory and operable on the processor, wherein when the processing program for wireless network connection is executed by the processor, the steps of the method for wireless network connection are implemented.
In a fourth aspect, a computer-readable storage medium is provided, on which a wireless network connection processing program is stored, and the wireless network connection processing program, when executed by a processor, implements the steps of the wireless network connection method.
Compared with the prior art, the invention has the following advantages:
according to the embodiment of the invention, when the mobile terminal is not connected with a wireless network, the terminal main system and the wireless network subsystem with high power consumption are controlled to enter a dormant state, the wireless network chip with low power consumption is controlled to monitor the beacon, the terminal main system and the wireless network subsystem are awakened when the monitored beacon is matched with the target address, and the wireless network is accessed through the awakened terminal main system and the wireless network subsystem, so that the terminal main system and the wireless network subsystem do not need to be awakened periodically to monitor the beacon, and the electric quantity consumed by the mobile terminal is saved while the automatic connection of the wireless network is realized.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating a method for connecting a wireless network according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for connecting a wireless network according to a second embodiment of the present invention;
fig. 3 is a first schematic diagram illustrating a WiFi connection flow according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for connecting a wireless network according to a third embodiment of the present invention;
fig. 5 is a second schematic diagram of a WiFi connection flow according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for connecting a wireless network according to a fourth embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;
fig. 8 is a block diagram of a mobile terminal according to a sixth embodiment of the present invention;
fig. 9 is a block diagram of a mobile terminal according to a seventh embodiment of the present invention;
fig. 10 is a block diagram of a mobile terminal according to an eighth embodiment of the present invention;
fig. 11 is a block diagram of a mobile terminal according to a ninth embodiment of the present invention;
fig. 12 is a block diagram of a mobile terminal according to a tenth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Fig. 1 is a flowchart of steps of a method for connecting a wireless network according to an embodiment of the present invention, where the method is applied to a mobile terminal, where the mobile terminal includes a terminal main system, a wireless network subsystem, and a wireless network chip, and the method includes:
step 101, when the mobile terminal is not connected with a wireless network, controlling the terminal main system and the wireless network subsystem to enter a dormant state, and controlling the wireless network chip to monitor a beacon.
It should be noted that the mobile terminal according to the embodiment of the present invention may have a terminal main system, a wireless network subsystem, and a wireless network chip built therein. The mobile terminal can comprise a mobile phone, a tablet computer and other terminals.
The terminal main system and the wireless network subsystem can have a sleep state and an awakening state, the mobile terminal can be accessed to a wireless network through the terminal main system and the wireless network subsystem in the awakening state, and the mobile terminal can also monitor beacons through the wireless network chip.
In specific implementation, when it is detected that the mobile terminal is not connected to any wireless network, the mobile terminal can control the terminal main system and the wireless network subsystem to enter the sleep mode, so as to save the electric quantity of the mobile terminal. Meanwhile, the wireless network chip is controlled to monitor the beacon so as to judge whether the monitored beacon is matched with the target address.
And 102, when the beacon monitored by the wireless network chip is matched with a target address, waking up the terminal main system and the wireless network subsystem, and connecting with a wireless network corresponding to the target address.
In specific implementation, the wireless network chip of the mobile terminal can monitor the beacon, and awaken the terminal main system and the wireless network subsystem when the monitored beacon is matched with the target address. In a specific embodiment of the wireless network chip monitoring the beacon, the wireless network chip may receive the beacon on one or more channels, extract an address from the received beacon, match the extracted address with one or more preset target addresses, and if the extracted address is matched with any one of the target addresses, determine that the beacon monitored by the wireless network chip is matched with the target address. Where the address of the beacon may provide the physical address MAC of the device for the wireless network that sent the beacon.
And when the currently monitored beacon is determined to be matched with the target address, the terminal main system and the wireless network subsystem can be awakened, and a wireless network corresponding to the target address is connected through the terminal main system and the wireless network subsystem.
In practical application, the wireless network chip of the mobile terminal has the characteristic of low power consumption compared with the terminal main system and the wireless network subsystem, and the beacon is monitored through the wireless network chip with low power consumption, so that the electric quantity consumed by the mobile terminal for monitoring the beacon through the terminal main system and the wireless network subsystem is reduced.
According to the embodiment of the invention, when the mobile terminal is not connected with a wireless network, the terminal main system and the wireless network subsystem with high power consumption are controlled to enter a dormant state, the wireless network chip with low power consumption is controlled to monitor the beacon, the terminal main system and the wireless network subsystem are awakened when the monitored beacon is matched with the target address, and the wireless network is accessed through the awakened terminal main system and the wireless network subsystem, so that the terminal main system and the wireless network subsystem do not need to be awakened periodically to monitor the beacon, and the electric quantity consumed by the mobile terminal is saved while the automatic connection of the wireless network is realized.
Example two
Fig. 2 is a flowchart of steps of a method for connecting a wireless network according to a second embodiment of the present invention, where the method is applied to a mobile terminal, and the mobile terminal includes a terminal main system, a wireless network subsystem, and a wireless network chip, and the method includes:
step 201, when the mobile terminal is not connected to the wireless network, controlling the terminal main system and the wireless network subsystem to enter a sleep state, and controlling the wireless network chip to monitor a beacon.
Optionally, before the step of controlling the terminal main system and the radio network subsystem to enter the sleep state, the method further includes:
controlling the radio network subsystem to specify a target channel and the target address.
In a specific implementation, the wireless network subsystem may implement the designation of the target channel and the target address by caching the channel and the address in a register. More specifically, the terminal host system of the mobile terminal may inform the radio network subsystem of the channels and addresses of the historically connected radio networks. The radio network subsystem may cache the channel and address of the radio network in a register. The wireless network chip can acquire the channel and the address of the wireless network in the register as the current target channel and the current target address.
Optionally, before the step of controlling the wireless network chip to listen for a beacon, the method further includes:
setting a timer and controlling the wireless network chip to enter a dormant state after the timer is set;
and when the timer is overtime, awakening the wireless network chip.
In specific implementation, the mobile terminal can control the wireless network chip to set the timing time of the timer, the timer starts timing after the setting is finished, and the wireless network chip is controlled to enter a dormant state. And after the timing time of the timer is overtime, the wireless network chip is awakened so as to control the wireless network chip to start monitoring the beacon.
Optionally, the step of controlling the wireless network chip to listen for a beacon includes:
and controlling the wireless network chip to receive beacons on the target channel and extracting addresses from the received beacons.
In the specific process of monitoring the beacon by the wireless network chip, the beacon can be received on a target channel designated by the wireless network subsystem, and an address can be extracted from the beacon. The address may provide the physical address MAC of the device for the wireless network that sent the beacon.
Step 202, when the extracted address is the same as the target address, determining that the beacon monitored by the wireless network chip is matched with the target address.
In specific implementation, when the address extracted from the beacon by the wireless network chip is the same as the target address, it can be determined that the monitored beacon is matched with the target address.
Step 203, when the beacon monitored by the wireless network chip is matched with the target address, waking up the terminal main system and the wireless network subsystem, and connecting with the wireless network corresponding to the target address.
And 204, when the beacon monitored by the wireless network chip is not matched with the target address, setting a timer, and controlling the wireless network chip to enter a sleep state after the timer is set.
And step 205, awakening the wireless network chip after the timer is overtime, and controlling the wireless network chip to monitor the beacon.
In specific implementation, if the monitored beacon is matched with the target address, the terminal main system and the wireless network subsystem can be awakened and connected with a wireless network corresponding to the target address through the terminal main system and the wireless network subsystem.
If the monitored beacon is not matched with the target address, the wireless network chip can reset the timing time of the timer, and after the timer starts to time after the setting is finished, the wireless chip is controlled to enter the dormant state again. And after the timing time of the timer is overtime, the wireless network chip is awakened so as to control the wireless network chip to start monitoring the beacon. That is, when the monitored beacon does not match the target address, the steps of setting the timer and controlling the wireless network chip to enter the sleep state are returned to. Thus, the wireless chip cycles between the sleep state and the listen state until a wireless network is heard that can be connected.
To facilitate a thorough understanding of embodiments of the present invention by those skilled in the art, reference will now be made to the specific example of fig. 3.
Fig. 3 is a first schematic diagram of a WiFi connection procedure according to an embodiment of the present invention. As can be seen from the figure, the terminal host system of the handset can inform the wireless network subsystem of a certain MAC address and network channel of the WiFi that was once connected. And when detecting that the mobile terminal is not connected with WiFi currently, the terminal main system enters a dormant state. The radio network subsystem may designate the MAC address and network channel as the currently snooped MAC address and network channel and cache to a register. The radio network subsystem then enters a dormant state. The wireless network chip enters a dormant state after setting the timing time of the timer, and is awakened and enters a monitoring state after the timing time of the timer is up. In the specific monitoring process, the wireless network chip obtains an MAC address and a network channel specified by the wireless network subsystem from a register, receives a beacon on the network channel and judges whether the received new beacon is matched with the specified MAC address; if not, returning to the step of entering the sleep after setting the timing time of the timer; and if the terminal is matched with the wireless network subsystem, waking up the terminal main system and the wireless network subsystem to carry out WiFi connection.
EXAMPLE III
Fig. 4 is a flowchart of steps of a method for connecting a wireless network according to a third embodiment of the present invention, where the method is applied to a mobile terminal, and the mobile terminal includes a terminal main system, a wireless network subsystem, and a wireless network chip, and the method includes:
step 301, when the mobile terminal is not connected to the wireless network, controlling the terminal main system and the wireless network subsystem to enter a sleep state, and controlling the wireless network chip to monitor a beacon.
Optionally, before the step of controlling the terminal main system and the radio network subsystem to enter the sleep state, the method further includes:
controlling the radio network subsystem to specify a target channel and the target address.
Optionally, the step of controlling the radio network subsystem to specify a target channel and the target address includes:
and controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as a currently specified target channel and a currently specified target address.
Optionally, the method further comprises:
recording a wireless network successfully connected with the mobile terminal;
and respectively taking the channel and the address of the wireless network as the preset channel and the preset address.
In a practical application scenario, the mobile terminal may be located in an environment with a large number of wireless networks available for connection. That is, the wireless network chip may need to listen for multiple different beacons on multiple different channels. However, the wireless network chip of the mobile terminal is limited in hardware functionality and can only listen to a limited number of beacons at the same time.
Therefore, in the embodiment of the present invention, the wireless network to which the mobile terminal has successfully connected can be recorded, and the recorded channel and address of the wireless network are used as the preset channel and the preset address. When the wireless network subsystem is controlled to designate a target channel and a target address, the wireless network subsystem can be controlled to select one or more channels and preset addresses from a plurality of preset channels and a plurality of preset addresses as the currently designated target channel and target address, so that the wireless network chip can monitor beacons on a limited number of target channels and compare the monitored beacons with the limited number of target addresses to judge whether the monitored beacons are matched with any one target address. Typically, the radio network subsystem may be controlled to assign one target channel and one target address at a time.
Optionally, the step of controlling the radio network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses, as a currently specified target channel and target address, may specifically include:
and controlling the wireless network subsystem to circularly select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses according to a preset sequence to serve as a currently specified target channel and a currently specified target address.
In a specific implementation, the selected order may be preset for a plurality of preset channels and a plurality of preset addresses, for example, ordered according to an initial letter or a signal strength. And when the control wireless network subsystem appoints a target channel and a target address, one or more preset channels and preset addresses are sequentially selected as the target channel and the target address according to the preset sequence. And when all the preset channels and the preset addresses are selected, returning to the initially selected preset channels and the initially selected preset addresses to realize the cyclic selection.
Optionally, the step of controlling the wireless network chip to listen for a beacon includes:
and controlling the wireless network chip to receive beacons on the target channel and extracting addresses from the received beacons.
Step 302, when the extracted address is the same as the target address, determining that the beacon monitored by the wireless network chip is matched with the target address.
In a specific implementation, when the address extracted from the beacon by the wireless network chip is the same as a currently specified target address, or the same as any one of a plurality of currently specified target addresses, it may be determined that the monitored beacon is matched with the target address.
Step 303, when the beacon monitored by the wireless network chip matches with the target address, waking up the terminal main system and the wireless network subsystem, and connecting with the wireless network corresponding to the target address.
Step 304, when the beacon monitored by the wireless network chip is not matched with the target address, waking up the wireless network subsystem, and returning to the step of controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as the currently specified target channel and target address.
In specific implementation, if the monitored beacon is matched with the target address, the terminal main system and the wireless network subsystem can be awakened and connected with a wireless network corresponding to the target address through the terminal main system and the wireless network subsystem.
If the monitored beacon is not matched with the target address, the wireless network subsystem can be awakened, and the wireless network subsystem is controlled to appoint the target channel and the target address again. In practical application, the wireless network subsystem may select at least one other channel and address different from the last designated channel and address from the plurality of preset channels and addresses as a currently designated target channel and target address, so that the wireless network chip enters the next round of beacon monitoring.
To facilitate a thorough understanding of embodiments of the present invention by those skilled in the art, reference will now be made to the specific example of fig. 5.
Fig. 5 is a second schematic diagram of a WiFi connection procedure according to an embodiment of the present invention. As can be seen from the figure, the terminal host system of the handset can inform the wireless network subsystem of the MAC address and network channel of the WiFi that was once connected. And when detecting that the mobile terminal is not connected with WiFi currently, the terminal main system enters a dormant state. The wireless network subsystem may select one MAC address and network channel from among MAC addresses and network channels of a plurality of WiFi devices that have been connected once, as a currently specified MAC address and network channel, and buffer the MAC address and network channel into a register. The radio network subsystem then enters a dormant state. The wireless network chip enters a dormant state after setting the timing time of the timer, and is awakened and enters a monitoring state after the timing time of the timer is up. In the specific monitoring process, after the WiFi chip obtains the MAC address and the network channel specified by the wireless network subsystem from the register, the beacon is received on the network channel, and whether the received new beacon is matched with the specified MAC address or not is judged; if not, waking up the wireless network subsystem, and returning to the step that the wireless network subsystem designates the MAC address and the network channel; and if the terminal is matched with the wireless network subsystem, awakening the terminal main system and the wireless network subsystem to carry out WiFi connection.
Example four
Fig. 6 is a flowchart of steps of a method for connecting a wireless network according to a fourth embodiment of the present invention, where the method is applied to a mobile terminal, and the mobile terminal includes a terminal main system, a wireless network subsystem, and a wireless network chip, and the method includes:
step 401, recording a network usage time range of a user using a wireless network.
Step 402, setting the monitoring time range by using the network use time range.
In a specific implementation, when a user uses a wireless network, a time starting point of the user using the wireless network can be recorded as a network use time range. The listening time range may be set with the network usage time range such that listening to the wireless network is triggered within the listening time range. For example, the user uses the wireless network 01 in a time range of 8am to 9am, and may set the listening time range to 8am to 9am, or may set the listening time range to 7am to 10 am.
Generally, the time ranges of the users using different wireless networks may be different, so that the time ranges of the users using different wireless networks can be recorded respectively, and different listening time ranges can be set accordingly. For example, the time range for the user to use the wireless network 01 is 8am-9am, and the time range for the user to use the wireless network 02 is 2pm-4pm, so that the listening time range 8am-9am can be set for the wireless network 01, and the listening time range 2pm-4pm can be set for the wireless network 02.
In practical application, the monitoring time range can also be set according to other user habits. The setting can be carried out by the person skilled in the art according to the actual need. For example, the time when the user performs the network connection operation is recorded, and the listening time range is set according to the time.
And step 403, when the mobile terminal is not connected with the wireless network, controlling the terminal main system and the wireless network subsystem to enter a dormant state, and controlling the wireless network chip to monitor a beacon.
In practical application, before controlling the main system of the terminal to sleep, whether the mobile terminal is in the screen-off state or not may be detected, and when detecting that the mobile terminal is currently in the screen-off state, the main system of the terminal of the mobile terminal is controlled to enter into sleep. It should be noted that, when the mobile terminal accesses the wireless network, the wireless network subsystem and the terminal main system need to be in an awake state at the same time to perform connection processing. When the mobile terminal does not have a connectable wireless network, the user may extinguish the screen of the mobile terminal, resulting in an out-of-screen state. Therefore, when the screen-off state is detected, the current mobile terminal does not have a wireless network for connection, and the user does not need to execute operation through the terminal main system, and at the moment, the terminal main system can be controlled to enter the sleep mode.
Optionally, before the step of controlling the wireless network chip to listen for a beacon, the method further includes:
the current time is read.
And if the current time is within the preset monitoring time range, controlling the wireless network chip to monitor the beacon.
In the specific implementation, after the terminal main system and the wireless network subsystem of the mobile terminal both enter the sleep mode, whether the current time is within the preset monitoring time range can be judged, and if yes, the wireless network chip is controlled to monitor the beacon. When different monitoring time ranges are preset for different wireless networks, if the current time is within a certain monitoring time range, the wireless network corresponding to the monitoring time range is monitored at present. For example, if the preset listening time range 8am-9am for the wireless network 01 is 8am, the wireless network 01 is triggered to listen.
And 404, when the beacon monitored by the wireless network chip is matched with a target address, waking up the terminal main system and the wireless network subsystem, and connecting with a wireless network corresponding to the target address.
According to the embodiment of the invention, the monitoring time range is set according to the network use time range of the user, and the beacon is monitored in the monitoring time range, so that the monitoring is avoided when the user does not need to use a wireless network, and the electric quantity consumed by the mobile terminal is further saved.
EXAMPLE five
Fig. 7 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention, where the mobile terminal 500 shown in fig. 7 includes a terminal main system, a wireless network subsystem, and a wireless network chip, and the mobile terminal 500 includes:
a monitoring control module 501, configured to control the terminal main system and the wireless network subsystem to enter a sleep state and control the wireless network chip to monitor a beacon when the mobile terminal is not connected to a wireless network;
a network connection module 502, configured to wake up the terminal main system and the wireless network subsystem when the beacon monitored by the wireless network chip matches a target address, and connect to a wireless network corresponding to the target address.
According to the embodiment of the invention, when the mobile terminal is not connected with a wireless network, the terminal main system and the wireless network subsystem with high power consumption are controlled to enter a dormant state, the wireless network chip with low power consumption is controlled to monitor the beacon, the terminal main system and the wireless network subsystem are awakened when the monitored beacon is matched with the target address, and the wireless network is accessed through the awakened terminal main system and the wireless network subsystem, so that the terminal main system and the wireless network subsystem do not need to be awakened periodically to monitor the beacon, and the electric quantity consumed by the mobile terminal is saved while the automatic connection of the wireless network is realized.
EXAMPLE six
Fig. 8 is a block diagram of a mobile terminal according to a sixth embodiment of the present invention, where the mobile terminal 600 illustrated in fig. 8 includes a terminal main system, a wireless network subsystem, and a wireless network chip, and the mobile terminal 600 includes:
and the monitoring control module 601 is configured to control the terminal main system and the wireless network subsystem to enter a sleep state and control the wireless network chip to monitor a beacon when the mobile terminal is not connected to a wireless network.
Optionally, the mobile terminal 600 further includes:
and the appointed channel and address control module is used for controlling the wireless network subsystem to appoint the target channel and the target address.
Optionally, the mobile terminal 600 further includes:
and the timer setting module is used for setting a timer and controlling the wireless network chip to enter a dormant state after the timer is set.
And the awakening module is used for awakening the wireless network chip after the timer is overtime.
The listening control module 601 includes:
and the wireless network chip extracts an address submodule for controlling the wireless network chip to receive beacons on the target channel and extracting addresses from the received beacons.
A matching determination module 602, configured to determine that the beacon monitored by the wireless network chip matches the target address when the extracted address is the same as the target address.
The network connection module 603 is configured to wake up the terminal main system and the wireless network subsystem when the beacon monitored by the wireless network chip matches a target address, and connect to a wireless network corresponding to the target address.
A first calling module 604, configured to call the timer setting module and the wake-up module when the beacon monitored by the wireless network chip is not matched with the target address.
According to the embodiment of the invention, when the mobile terminal is not connected with a wireless network, the terminal main system and the wireless network subsystem with high power consumption are controlled to enter a dormant state, the wireless network chip with low power consumption is controlled to monitor the beacon, the terminal main system and the wireless network subsystem are awakened when the monitored beacon is matched with the target address, and the wireless network is accessed through the awakened terminal main system and the wireless network subsystem, so that the terminal main system and the wireless network subsystem do not need to be awakened periodically to monitor the beacon, and the electric quantity consumed by the mobile terminal is saved while the automatic connection of the wireless network is realized.
EXAMPLE seven
Fig. 9 is a block diagram of a mobile terminal according to a seventh embodiment of the present invention, where the mobile terminal 700 shown in fig. 9 includes a terminal main system, a wireless network subsystem, and a wireless network chip, and the mobile terminal 700 includes:
and the monitoring control module 701 is used for controlling the terminal main system and the wireless network subsystem to enter a dormant state and controlling the wireless network chip to monitor the beacon when the mobile terminal is not connected with the wireless network.
Optionally, the mobile terminal 700 further includes:
and the appointed channel and address control module is used for controlling the wireless network subsystem to appoint the target channel and the target address.
Optionally, the designated channel and address control module comprises:
and the appointed control submodule is used for controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as a currently appointed target channel and a currently appointed target address.
Optionally, the specified control sub-module is specifically configured to:
and controlling the wireless network subsystem to circularly select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses according to a preset sequence to serve as a currently specified target channel and a currently specified target address.
Optionally, the mobile terminal 700 further includes:
and the historical connection network determining module is used for recording the wireless network successfully connected with the mobile terminal.
And the preset channel and address determining module is used for respectively using the channel and the address of the wireless network as the preset channel and the preset address.
The listening control module 701 includes:
and the wireless network chip extracts an address submodule for controlling the wireless network chip to receive beacons on the target channel and extracting addresses from the received beacons.
A matching determination module 702, configured to determine that the beacon monitored by the wireless network chip matches the target address when the extracted address is the same as the target address.
A network connection module 703, configured to wake up the terminal main system and the wireless network subsystem when the beacon monitored by the wireless network chip matches a target address, and connect to a wireless network corresponding to the target address.
A second calling module 704, configured to call the wireless network subsystem wake-up module and call the designated channel and address control module when the beacon monitored by the wireless network chip is not matched with the target address; and the wireless network subsystem awakening module is used for awakening the wireless network subsystem.
According to the embodiment of the invention, when the mobile terminal is not connected with a wireless network, the terminal main system and the wireless network subsystem with high power consumption are controlled to enter a dormant state, the wireless network chip with low power consumption is controlled to monitor the beacon, the terminal main system and the wireless network subsystem are awakened when the monitored beacon is matched with the target address, and the wireless network is accessed through the awakened terminal main system and the wireless network subsystem, so that the terminal main system and the wireless network subsystem do not need to be awakened periodically to monitor the beacon, and the electric quantity consumed by the mobile terminal is saved while the automatic connection of the wireless network is realized.
Example eight
Fig. 10 is a block diagram of a mobile terminal according to an eighth embodiment of the present invention, where the mobile terminal 800 shown in fig. 10 includes a terminal main system, a wireless network subsystem, and a wireless network chip, and the mobile terminal 800 includes:
a network usage time recording module 801, configured to record a network usage time range of a user using a wireless network.
A monitoring time setting module 802, configured to set the monitoring time range by using the network usage time range.
And the monitoring control module 803 is configured to control the terminal main system and the wireless network subsystem to enter a sleep state and control the wireless network chip to monitor a beacon when the mobile terminal is not connected to a wireless network.
Optionally, the mobile terminal 800 further includes:
and the current time reading module is used for reading the current time.
And the monitoring condition judging module is used for controlling the wireless network chip to monitor the beacon if the current time is within a preset monitoring time range.
And the network connection module 804 is configured to wake up the terminal main system and the wireless network subsystem when the beacon monitored by the wireless network chip is matched with the target address, and connect with the wireless network corresponding to the target address.
According to the embodiment of the invention, the monitoring time range is set according to the network use time range of the user, and the beacon is monitored in the monitoring time range, so that the monitoring is avoided when the user does not need to use a wireless network, and the electric quantity consumed by the mobile terminal is further saved.
Example nine
Fig. 11 is a block diagram of a mobile terminal according to a ninth embodiment of the present invention. The mobile terminal 900 shown in fig. 11 includes: at least one processor 901, memory 902, at least one network interface 904, and other user interfaces 903. Various components in mobile terminal 900 are coupled together by bus system 905. It is understood that the bus system 905 is used to enable communications among the components. The bus system 905 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 9 as bus system 905.
The user interface 903 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 902 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 902 of the systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory. The memory 902 may store a preset operation rule, which includes data in a preset condition, such as a preset sliding track, a preset pressure threshold, a preset operation time interval, and the like.
In some embodiments, memory 902 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 9021 and application programs 9022.
The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application 9022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in application 9022.
In this embodiment of the present invention, the mobile terminal 900 further includes: a wireless network connection handler stored in the memory 902 and operable on the processor 901, specifically, a wireless network connection handler in the application 9022, which when executed by the processor 901, implements the following steps:
when the mobile terminal is not connected with a wireless network, controlling the terminal main system and the wireless network subsystem to enter a dormant state, and controlling the wireless network chip to monitor a beacon; and when the beacon monitored by the wireless network chip is matched with the target address, waking up the terminal main system and the wireless network subsystem, and connecting the terminal main system and the wireless network subsystem with a wireless network corresponding to the target address.
The method disclosed in the above embodiments of the present invention may be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 901. The Processor 901 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902, and completes the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
controlling the radio network subsystem to specify a target channel and the target address;
the step of controlling the wireless network chip to monitor the beacon comprises the following steps:
controlling the wireless network chip to receive beacons on the target channel and extracting addresses from the received beacons;
before the step of waking up the terminal main system and the radio network subsystem, the method further comprises:
and when the extracted address is the same as the target address, judging that the beacon monitored by the wireless network chip is matched with the target address.
Optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
setting a timer and controlling the wireless network chip to enter a dormant state after the timer is set;
and when the timer is overtime, awakening the wireless network chip.
Optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
when the beacon monitored by the wireless network chip is not matched with the target address, setting a timer, and controlling the wireless network chip to enter a dormant state after the timer is set;
and when the timer is overtime, awakening the wireless network chip and controlling the wireless network chip to monitor the beacon.
Optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
and controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as a currently specified target channel and a currently specified target address.
Optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
and when the beacon monitored by the wireless network chip is not matched with the target address, waking up the wireless network subsystem, and returning to the step of controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as the currently specified target channel and target address.
Optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
and controlling the wireless network subsystem to circularly select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses according to a preset sequence to serve as a currently specified target channel and a currently specified target address.
Optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
reading the current time;
if the current time is within a preset monitoring time range, controlling the wireless network chip to monitor the beacon;
optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
recording the network use time range of the user using the wireless network;
and setting the monitoring time range by adopting the network use time range.
Optionally, when executed by the processor 901, the processing program of the wireless network connection may further implement the following steps:
recording a wireless network successfully connected with the mobile terminal;
and respectively taking the channel and the address of the wireless network as the preset channel and the preset address.
The mobile terminal 900 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the details are not described here.
According to the embodiment of the invention, when the mobile terminal is not connected with a wireless network, the terminal main system and the wireless network subsystem with high power consumption are controlled to enter a dormant state, the wireless network chip with low power consumption is controlled to monitor the beacon, the terminal main system and the wireless network subsystem are awakened when the monitored beacon is matched with the target address, and the wireless network is accessed through the awakened terminal main system and the wireless network subsystem, so that the terminal main system and the wireless network subsystem do not need to be awakened periodically to monitor the beacon, and the electric quantity consumed by the mobile terminal is saved while the automatic connection of the wireless network is realized.
Example ten
Fig. 12 is a block diagram of a mobile terminal according to a tenth embodiment of the present invention. Specifically, the mobile terminal 1000 in fig. 12 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 1000 in fig. 12 includes a Radio Frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a processor 1060, an audio circuit 1070, a Wi-fi (wireless fidelity) module 1080, and a power supply 1090.
The input unit 1030 may be used to receive numeric or character information input by a user and generate signal inputs related to user settings and function control of the mobile terminal 1000, among other things. Specifically, in the embodiment of the present invention, the input unit 1030 may include a touch panel 1031. The touch panel 1031, also referred to as a touch screen, may collect touch operations by a user (e.g., operations of the user on the touch panel 1031 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends it to the processor 1060 where it can receive and execute commands from the processor 1060. In addition, the touch panel 1031 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1031, the input unit 1030 may also include other input devices 1032, and the other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, etc.
Among other things, the display unit 1040 may be used to display information input by a user or information provided to the user and various menu interfaces of the mobile terminal 1000. The display unit 1040 may include a display panel 1041, and optionally, the display panel 1041 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 1031 may cover the display panel 1041 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 1060 to determine the type of the touch event, and then the processor 1060 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 1060 is a control center of the mobile terminal 1000, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions and processes data of the mobile terminal 1000 by running or executing software programs and/or modules stored in the first memory 1021 and calling data stored in the second memory 1022, thereby performing overall monitoring of the mobile terminal 1000. Optionally, processor 1090 may include one or more processing units.
In this embodiment of the present invention, the mobile terminal 1000 further includes: the processing program for wireless network connection stored in the first memory 1021 and/or the second memory 1022, when executed by the processor 1060, implements the following steps:
when the mobile terminal is not connected with a wireless network, controlling the terminal main system and the wireless network subsystem to enter a dormant state, and controlling the wireless network chip to monitor a beacon; and when the beacon monitored by the wireless network chip is matched with the target address, waking up the terminal main system and the wireless network subsystem, and connecting the terminal main system and the wireless network subsystem with a wireless network corresponding to the target address.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
controlling the radio network subsystem to specify a target channel and the target address;
the step of controlling the wireless network chip to monitor the beacon comprises the following steps:
controlling the wireless network chip to receive beacons on the target channel and extracting addresses from the received beacons;
before the step of waking up the terminal main system and the radio network subsystem, the method further comprises:
and when the extracted address is the same as the target address, judging that the beacon monitored by the wireless network chip is matched with the target address.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
setting a timer and controlling the wireless network chip to enter a dormant state after the timer is set;
and when the timer is overtime, awakening the wireless network chip.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
when the beacon monitored by the wireless network chip is not matched with the target address, setting a timer, and controlling the wireless network chip to enter a dormant state after the timer is set;
and when the timer is overtime, awakening the wireless network chip and controlling the wireless network chip to monitor the beacon.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
and controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as a currently specified target channel and a currently specified target address.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
and when the beacon monitored by the wireless network chip is not matched with the target address, waking up the wireless network subsystem, and returning to the step of controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as the currently specified target channel and target address.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
and controlling the wireless network subsystem to circularly select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses according to a preset sequence to serve as a currently specified target channel and a currently specified target address.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
reading the current time;
and if the current time is within the preset monitoring time range, controlling the wireless network chip to monitor the beacon.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
recording the network use time range of the user using the wireless network;
and setting the monitoring time range by adopting the network use time range.
Optionally, when executed by the processor 1060, the processing program for wireless network connection implements the following steps:
recording a wireless network successfully connected with the mobile terminal;
and respectively taking the channel and the address of the wireless network as the preset channel and the preset address.
Therefore, according to the embodiment of the invention, when the mobile terminal is not connected with the wireless network, the terminal main system and the wireless network subsystem with high power consumption are controlled to enter the dormant state, the wireless network chip with low power consumption is controlled to monitor the beacon, the terminal main system and the wireless network subsystem are awakened when the monitored beacon is matched with the target address, and the wireless network is accessed through the awakened terminal main system and the wireless network subsystem, so that the terminal main system and the wireless network subsystem do not need to be awakened periodically to monitor the beacon, and the electric quantity consumed by the mobile terminal is saved while the automatic connection of the wireless network is realized.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (18)

1. A wireless network connection method is applied to a mobile terminal, and the mobile terminal comprises a terminal main system, a wireless network subsystem and a wireless network chip, and is characterized by comprising the following steps:
when the mobile terminal is not connected with a wireless network, controlling the terminal main system and the wireless network subsystem to enter a dormant state, and controlling the wireless network chip to monitor a beacon;
when the beacon monitored by the wireless network chip is matched with a target address, awakening the terminal main system and the wireless network subsystem, and connecting the terminal main system and the wireless network subsystem with a wireless network corresponding to the target address;
before the step of controlling the wireless network chip to listen for beacons, the method further comprises:
reading the current time;
if the current time is within a preset monitoring time range, controlling the wireless network chip to monitor the beacon;
the method further comprises the following steps:
recording the network use time range of the user using the wireless network;
and setting the monitoring time range of the wireless network chip by adopting the network use time range.
2. The method according to claim 1, further comprising, before the step of controlling the terminal main system and the radio network subsystem to enter the sleep state:
controlling the radio network subsystem to specify a target channel and the target address;
the step of controlling the wireless network chip to monitor the beacon comprises the following steps:
controlling the wireless network chip to receive beacons on the target channel and extracting addresses from the received beacons;
before the step of waking up the terminal main system and the radio network subsystem, the method further comprises:
and when the extracted address is the same as the target address, judging that the beacon monitored by the wireless network chip is matched with the target address.
3. The method of claim 1, wherein before the step of controlling the wireless network chip to listen for beacons, the method further comprises:
setting a timer and controlling the wireless network chip to enter a dormant state after the timer is set;
and when the timer is overtime, awakening the wireless network chip.
4. The method of claim 3, wherein after the step of controlling the wireless network chip to listen for beacons, the method further comprises:
when the beacon monitored by the wireless network chip is not matched with the target address, setting a timer, and controlling the wireless network chip to enter a dormant state after the timer is set;
and when the timer is overtime, awakening the wireless network chip and controlling the wireless network chip to monitor the beacon.
5. The method of claim 2, wherein the step of controlling the radio network subsystem to specify the target channel and the target address comprises:
and controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as a currently specified target channel and a currently specified target address.
6. The method of claim 5, wherein after the step of controlling the wireless network chip to listen for beacons, the method further comprises:
and when the beacon monitored by the wireless network chip is not matched with the target address, waking up the wireless network subsystem, and returning to the step of controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as the currently specified target channel and target address.
7. The method of claim 5, wherein the controlling the radio network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as the currently specified target channel and target address comprises:
and controlling the wireless network subsystem to circularly select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses according to a preset sequence to serve as a currently specified target channel and a currently specified target address.
8. The method of claim 5, further comprising:
and recording a wireless network successfully connected with the mobile terminal, and respectively using a channel and an address of the wireless network as the preset channel and the preset address.
9. A mobile terminal comprises a terminal main system, a wireless network subsystem and a wireless network chip, and is characterized in that the mobile terminal comprises:
the monitoring control module is used for controlling the terminal main system and the wireless network subsystem to enter a dormant state and controlling the wireless network chip to monitor a beacon when the mobile terminal is not connected with a wireless network;
the network connection module is used for awakening the terminal main system and the wireless network subsystem when the beacon monitored by the wireless network chip is matched with a target address, and is connected with a wireless network corresponding to the target address;
the mobile terminal further includes:
the current time reading module is used for reading the current time;
the monitoring condition judging module is used for controlling the wireless network chip to monitor the beacon if the current time is within a preset monitoring time range;
the mobile terminal further includes:
the network use time recording module is used for recording the network use time range of the user using the wireless network;
and the monitoring time setting module is used for setting the monitoring time range of the wireless network chip by adopting the network use time range.
10. The mobile terminal of claim 9, wherein the mobile terminal further comprises:
the appointed channel and address control module is used for controlling the wireless network subsystem to appoint a target channel and the target address;
the monitoring control module comprises:
the wireless network chip extraction address submodule is used for controlling the wireless network chip to receive beacons on the target channel and extracting addresses from the received beacons;
the mobile terminal further includes:
and the matching judgment module is used for judging that the beacon monitored by the wireless network chip is matched with the target address when the extracted address is the same as the target address.
11. The mobile terminal of claim 9, wherein the mobile terminal further comprises:
the timer setting module is used for setting a timer and controlling the wireless network chip to enter a dormant state after the timer is set;
and the awakening module is used for awakening the wireless network chip after the timer is overtime.
12. The mobile terminal of claim 11, wherein the mobile terminal further comprises:
the first calling module is used for calling the timer setting module and the awakening module when the beacon monitored by the wireless network chip is not matched with the target address.
13. The mobile terminal of claim 10, wherein the assigned channel and address control module comprises:
and the appointed control submodule is used for controlling the wireless network subsystem to select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses as a currently appointed target channel and a currently appointed target address.
14. The mobile terminal of claim 13, wherein the mobile terminal further comprises:
the wireless network subsystem awakening module is used for awakening the wireless network subsystem;
and the second calling module is used for calling the wireless network subsystem awakening module and calling the designated channel and the address control module when the beacon monitored by the wireless network chip is not matched with the target address.
15. The mobile terminal according to claim 13, wherein the specified control sub-module is specifically configured to:
and controlling the wireless network subsystem to circularly select at least one preset channel and at least one preset address from a plurality of preset channels and a plurality of preset addresses according to a preset sequence to serve as a currently specified target channel and a currently specified target address.
16. The mobile terminal of claim 13, wherein the mobile terminal further comprises:
the wireless network recording module is used for recording the wireless network successfully connected with the mobile terminal;
and the preset channel and address determining module is used for respectively using the channel and the address of the wireless network as the preset channel and the preset address.
17. A mobile terminal, characterized by comprising a processor and a memory, a wireless network connection processing program stored on the memory and operable on the processor, the wireless network connection processing program, when executed by the processor, implementing the steps of the wireless network connection method according to any one of claims 1-8.
18. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a processing program of a wireless network connection, which when executed by a processor implements the steps of the connecting method of a wireless network according to any one of claims 1-8.
CN201710677392.9A 2017-08-09 2017-08-09 Wireless network connection method and mobile terminal Active CN107396434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710677392.9A CN107396434B (en) 2017-08-09 2017-08-09 Wireless network connection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710677392.9A CN107396434B (en) 2017-08-09 2017-08-09 Wireless network connection method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107396434A CN107396434A (en) 2017-11-24
CN107396434B true CN107396434B (en) 2020-03-10

Family

ID=60354375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710677392.9A Active CN107396434B (en) 2017-08-09 2017-08-09 Wireless network connection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107396434B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173339B (en) * 2020-09-10 2023-05-05 合肥君正科技有限公司 Method and device for quickly connecting WiFi network, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316564A (en) * 2010-06-11 2012-01-11 任天堂株式会社 Portable data assistance, portable information system, portable information system control method
CN102316555A (en) * 2011-09-19 2012-01-11 华为终端有限公司 Method for scanning wireless fidelity (WiFi) network by mobile terminal and mobile terminal adopting method
CN105744604A (en) * 2014-12-09 2016-07-06 航天信息股份有限公司 WIFI module power consumption control device and method based on android system
CN106793039A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 Terminal control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316564A (en) * 2010-06-11 2012-01-11 任天堂株式会社 Portable data assistance, portable information system, portable information system control method
CN102316555A (en) * 2011-09-19 2012-01-11 华为终端有限公司 Method for scanning wireless fidelity (WiFi) network by mobile terminal and mobile terminal adopting method
CN105744604A (en) * 2014-12-09 2016-07-06 航天信息股份有限公司 WIFI module power consumption control device and method based on android system
CN106793039A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 Terminal control method and device

Also Published As

Publication number Publication date
CN107396434A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107357574B (en) Operation method and mobile terminal
CN106126077B (en) Display control method of application program icons and mobile terminal
WO2018001293A1 (en) Wi-fi password sharing method and mobile terminal
KR101780499B1 (en) Apparatus and method for controlling operation of mobile terminal
US20200183704A1 (en) Method and apparatus for waking up computer from sleep state
CN107172287B (en) Multi-card communication method and mobile terminal
CN112015502A (en) Display processing method and device
CN108366169B (en) Notification message processing method and mobile terminal
CN106453925B (en) Information transmission method and mobile terminal
CN107566624B (en) Display method for power consumption and temperature of terminal, terminal and computer readable storage medium
CN107221347B (en) Audio playing method and terminal
CN107565639B (en) Charging reminding method and mobile terminal
CN109075820A (en) A kind of Bluetooth pairing methods and terminal device
CN107566622B (en) Temperature control method and mobile terminal
US20130332885A1 (en) Method for controlling a terminal device, terminal device and electronic device
US10528248B2 (en) Method for providing user interface and electronic device therefor
CN107454664B (en) Data transmission method and mobile terminal
CN107635067B (en) Recording control method and mobile terminal
CN106991150B (en) Webpage data display method and mobile terminal
US20140282058A1 (en) Electronic device with a funiction of applying applications of different operating systems, system and method thereof
CN110830127A (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN110402442B (en) Fingerprint input method and terminal
CN107396434B (en) Wireless network connection method and mobile terminal
US11147038B2 (en) Notification message processing method and terminal
CN106507351B (en) Method for acquiring connection password of wireless network and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant