CN107635263A - Wi Fi control methods, mobile terminal and computer-readable recording medium - Google Patents
Wi Fi control methods, mobile terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107635263A CN107635263A CN201710916782.7A CN201710916782A CN107635263A CN 107635263 A CN107635263 A CN 107635263A CN 201710916782 A CN201710916782 A CN 201710916782A CN 107635263 A CN107635263 A CN 107635263A
- Authority
- CN
- China
- Prior art keywords
- hotspot
- antennas
- network quality
- network
- mobile terminal
- 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.)
- Pending
Links
Abstract
The invention discloses a kind of Wi Fi control methods, mobile terminal for including two-way Wi Fi antennas, when being connected with two hotspot of different frequency range at the same time, the network quality of two hotspot is detected, and compare, if the network quality of a hotspot is less than another hotspot, then the Network carried on the Wi Fi antennas for connecting the poor hotspot of network quality is migrated to another Wi Fi antennas, service is provided by the preferable hotspot of network quality, so that the application program to be run on mobile terminal provides stable network service.The invention also discloses a kind of mobile terminal and computer-readable storage media.The present invention can provide stable network service for the application program run on mobile terminal.
Description
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of Wi-Fi control methods, mobile terminal and computer
Readable storage medium storing program for executing.
Background technology
With the raising of modern standard of living, the mobile terminal such as smart mobile phone, PAD (tablet personal computer) turns into life
Necessity, one important function of these mobile terminals be exactly by Wi-Fi (WirelessFidelity, Wireless Fidelity) with
Internet communication realizes network access.With the quick evolution of mobile terminal technology, to improve the network access of mobile terminal effect
Rate, mobile terminal the double Wi-Fi of support till now, significantly increase the available of mobile terminal from initial support list Wi-Fi
Bandwidth.At present, the hotspot for supporting double Wi-Fi mobile terminal to be connected to different frequency range simultaneously according to being actually needed.
However, different frequency range hotspot has different transmission characteristics, for example, the network speed of low-frequency range hotspot compares high band
The network speed of hotspot is relatively low, but its ability through walls is higher.So allow for user and carry mobile terminal when moving indoors, nothing
Method provides stable network service for its application program run.
The content of the invention
The present invention provides a kind of Wi-Fi control methods, mobile terminal and computer-readable recording medium, it is intended to for movement eventually
The application program run on end provides stable network service.
For achieving the above object, the present invention provides a kind of Wi-Fi control methods, applied to mobile terminal, the movement
The Wi-Fi module of terminal is configured with the first MAC Address and the second MAC Address, and the Wi-Fi module includes the first Wi-Fi antennas
With the 2nd Wi-Fi antennas, the Wi-Fi module is based on first MAC Address by the first Wi-Fi antennas with being operated in
First hotspot of the first frequency range establishes connection, and the Wi-Fi module passes through described second based on second MAC Address
Wi-Fi antennas and the second hotspot foundation connection for being operated in the second frequency range, the Wi-Fi control methods include:
Detect the network quality of first hotspot, and the network quality of detection second hotspot;
Compare the network quality of first hotspot and the network quality of second hotspot;
When the network quality of first hotspot is higher than the network quality of second hotspot, by described the
The Network of two Wi-Fi antennas carrying is migrated to the first Wi-Fi antennas.
Further, the present invention also provides a kind of mobile terminal, and the mobile terminal includes:
It is stored with the memory of Wi-Fi control programs;
Wi-Fi module, the Wi-Fi module are configured with the first MAC Address and the second MAC Address, the Wi-Fi module bag
The first Wi-Fi antennas and the 2nd Wi-Fi antennas are included, the Wi-Fi module passes through described first based on first MAC Address
Wi-Fi antennas and the first hotspot foundation connection for being operated in the first frequency range, the Wi-Fi module are based on the 2nd MAC
Connection is established in address by the 2nd Wi-Fi antennas with being operated in the second hotspot of the second frequency range;
It is stored with the memory of Wi-Fi control programs;
Processor, with the memory communication and being configured to perform the Wi-Fi control programs to realize following steps:
Detect the network quality of first hotspot, and the network quality of detection second hotspot;
Compare the network quality of first hotspot and the network quality of second hotspot;
When the network quality of first hotspot is higher than the network quality of second hotspot, by described the
The Network of two Wi-Fi antennas carrying is migrated to the first Wi-Fi antennas.
Further, the present invention also provides a kind of computer-readable recording medium, applied to mobile terminal, the mobile terminal
Wi-Fi module be configured with the first MAC Address and the second MAC Address, the Wi-Fi module includes the first Wi-Fi antennas and the
Two Wi-Fi antennas, the Wi-Fi module are based on first MAC Address by the first Wi-Fi antennas and are operated in first
First hotspot of frequency range establishes connection, and the Wi-Fi module passes through the 2nd Wi-Fi based on second MAC Address
Antenna establishes connection with being operated in the second hotspot of the second frequency range, and Wi-Fi is stored with the computer-readable recording medium
Control program, the Wi-Fi control programs realize following steps when being executed by processor:
Detect the network quality of first hotspot, and the network quality of detection second hotspot;
Compare the network quality of first hotspot and the network quality of second hotspot;
When the network quality of first hotspot is higher than the network quality of second hotspot, by described the
The Network of two Wi-Fi antennas carrying is migrated to the first Wi-Fi antennas.
Wi-Fi control methods, mobile terminal and computer-readable recording medium proposed by the present invention, for including two-way
The mobile terminal of Wi-Fi antennas, when being connected with two hotspot of different frequency range at the same time, to the network of two hotspot
Quality is detected, and is compared, if the network quality of a hotspot is less than another hotspot, will connection network quality compared with
The Network carried on the Wi-Fi antennas of the hotspot of difference is migrated to another Wi-Fi antennas, by the preferable nothing of network quality
Line focus provides service, so that the application program to be run on mobile terminal provides stable network service.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the logical layered architecture schematic diagram of mobile terminal Wi-Fi module;
Fig. 3 is a kind of communications network system Organization Chart of mobile terminal as shown in Figure 1;
Fig. 4 is the schematic flow sheet of Wi-Fi control methods first embodiment of the present invention;
Fig. 5 is that first Wi-Fi antennas and the 2nd Wi-Fi antennas be each in Wi-Fi control methods first embodiment of the present invention
The Network schematic diagram of carrying;
Fig. 6 is that the Network of the 2nd Wi-Fi antennas is migrated in Wi-Fi control methods first embodiment of the present invention to first
The schematic diagram of Wi-Fi antennas;
Fig. 7 is to switch the first Wi-Fi antennas and the 2nd Wi- after focus in Wi-Fi control methods first embodiment of the present invention
The Network schematic diagram of Fi antennas carrying;
Fig. 8 is that the prompt message for whether migrating Network is exported in Wi-Fi control methods fourth embodiment of the present invention
Exemplary plot.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device (such as Intelligent bracelet), pedometer
Deng mobile terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware configuration signal for each one optional mobile terminal of embodiment of the realization present invention
Figure, the mobile terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio are defeated
Go out unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, connect
The parts such as mouth unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that in Fig. 1
The mobile terminal structure shown does not form the restriction to mobile terminal, and mobile terminal can include more more or less than illustrating
Part, either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102
Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.It refer to figure
2, corresponding to the layering logic layers of Android system, Wi-Fi module 102 includes Wi-Fi chips 1021, Wi-Fi dual-port drive modules
1022nd, Wi-Fi dual-ports protocol module 1023, Wi-Fi dual-ports frame module 1024 and display module 1025.
Wi-Fi chips 1021, support double MAC technologies, can two different MAC Address of burning simultaneously, be responsible for realizing most
The data communication of bottom.
Wi-Fi dual-ports drive module 1022, on the basis of existing Wi-Fi drivings only support this port of wlan0, increase
The support to port wlan1 is added, and two MAC Address has been bound with port wlan0 and port wlan1 respectively, together
When put up the passage of communication, ensure that drive command can be smoothly sent in Wi-Fi chips 1021.
Wi-Fi dual-ports protocol module 1023, including two protocol stacks, it is respectively used to support port wlan0 and port
Wlan1, and relatively independent configuration file is contained, for the preservation of hotspot information and the guarantor of protocol stack arrangement information
Deposit.Information in two ports wlan0 and wlan1 can be synchronized by single service in protocol stack, ensure that user exists
Operation on any path can preserve, and during Wi-Fi is opened, can be opened respectively when starting protocol stack
The protocol stack of two ports is moved, while is notified that Wi-Fi dual-ports drive module 1022 enables two ports, the two of bottom
After individual wlan ports are enabled, then bottom layer driving part and following really possess double Wi-Fi functions.Wi-Fi dual-port agreement moulds
The common interface that block 1023 is provided by Wi-Fi dual-ports drive module 1022, protocol stack and the binding of bottom port are completed, is entered
And completion message passage is built.
Wi-Fi dual-ports frame module 1024, the place different from former single Wi-Fi frameworks is, has increased newly to wlan1 ends
Mouthful support, it is constant to maintain original Wi-Fi frameworks and message mechanism, has individually built a set of new message passing mechanism, and
Two socket are enabled to bind different protocol stacks simultaneously, keep the normal communication of levels.Wi-Fi dual-port frame modules
1024 belong to wlan0 or wlan1 by port numbers to distinguish the order issued.
Display module 1025, for showing user interface, and the operating user interface of triggering is received, there are other respective modules
Responded.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or Wi-Fi module 102 it is receiving or
It is sound that the voice data that person stores in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit
103 can also provide performed to mobile terminal 100 the related audio output of specific function (for example, call signal reception sound,
Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Near-field communication (NearFieldCommunication, hereinafter referred to as NFC) is a kind of radio of short distance high frequency
Technology, it is allowed to contactless Point-to-Point Data Transmission is carried out between electronic equipment and exchanges data, is identified by non-contact radio-frequency
(RFID) develop.NFC working frequencies are 13.56Hz, and effective range is that its transmission speed has 106Kbit/ within 20cm
Three kinds of second, 212Kbit/ seconds or 424Kbit/ seconds.NFC has 3 kinds of mode of operations:Card reader pattern, ad hoc mode, snap gauge are intended
Pattern.In card reader pattern, NFC device produces radiofrequency field and reads and writes data from the outside NFC label using identical standard.
In ad hoc mode, NFC can communicate with other NFC devices, carry out point-to-point data transfer.In snap gauge simulation models, read
Card device is active devices, produces radiofrequency field;NFC device is passive equipment, simulates a non-contact card for meeting NFC standard
Interacted with card reader.Mobile terminal 100 realizes NFC function by NFC controller 111, such as realizes that NFC is paid.Although
Fig. 1 shows NFC controller 111, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be with
Omitted as needed in the essential scope for do not change invention.
Mobile terminal 100 can also include the power supply 112 (such as battery) to all parts power supply, it is preferred that power supply 112
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 3, Fig. 3 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each implementation of mobile terminal of the present invention is proposed
Example.
Fig. 1 is refer to, in the first embodiment of mobile terminal of the present invention, the mobile terminal includes:
Wi-Fi module 102, Wi-Fi module 102 are configured with the first MAC Address and the second MAC Address, Wi-Fi module 102
Including the first Wi-Fi antennas and the 2nd Wi-Fi antennas, Wi-Fi module 102 passes through the first Wi-Fi antennas based on the first MAC Address
The first hotspot with being operated in the first frequency range, which is established, to be connected, and Wi-Fi module 102 passes through the 2nd Wi- based on the second MAC Address
Fi antennas and the second hotspot foundation connection for being operated in the second frequency range;
It is stored with the memory 109 of Wi-Fi control programs;
Processor 110, communicated with memory 109 and be configured to perform the Wi-Fi control programs to realize following steps:
Detect the network quality of the first hotspot, and the network quality of the second hotspot of detection;
Compare the network quality of the first hotspot and the network quality of the second hotspot;
When the network quality of the first hotspot is higher than the network quality of the second hotspot, by the 2nd Wi-Fi antennas
The Network of carrying is migrated to the first Wi-Fi antennas.
Further, when processor 110 performs the Wi-Fi control programs stored in memory 109, following grasp also is realized
Make:
The Wi-Fi signal of the first hotspot is detected, the signal for the first hotspot for detecting to obtain according to Wi-Fi signal
Intensity and negotiated speed;
Obtain the data transmit-receive success rate for being currently based on the first hotspot;
According to signal intensity, negotiated speed and data transmit-receive success rate each where big minizone, respectively determine pair
The quality score of induction signal intensity, negotiated speed and data transmit-receive success rate;
Each matter is calculated according to signal intensity, negotiated speed and each self-corresponding default weight coefficient of data transmit-receive success rate
Measure the weighted sum of score value, the network quality using the weighted sum being calculated as the first hotspot.
Further, when processor 110 performs the Wi-Fi control programs stored in memory 109, following grasp also is realized
Make:
When the network quality for detecting the second hotspot is less than the first predetermined quality threshold, Wi-Fi module 102 is controlled
Disconnect with the connection of the second hotspot, and control Wi-Fi module 102 be based on the second MAC Address by the 2nd Wi-Fi antennas with
First hotspot establishes connection.
Further, when processor 110 performs the Wi-Fi control programs stored in memory 109, following grasp also is realized
Make:
The difference of the first hotspot and the second hotspot network quality is calculated, judges whether the difference that is calculated is big
In preset difference value, wherein, when the difference being calculated is more than preset difference value, determine that the network quality of the first hotspot is higher than
The network quality of second hotspot.
Further, when processor 110 performs the Wi-Fi control programs stored in memory 109, following grasp also is realized
Make:
When the network quality of the first hotspot is higher than the network quality of the second hotspot, the second hotspot is judged
Network quality whether be higher than the second predetermined quality threshold;
When the network quality of the second hotspot is less than the second predetermined quality threshold, by the carrying of the 2nd Wi-Fi antennas
Network is migrated to the first Wi-Fi antennas.
Further, when processor 110 performs the Wi-Fi control programs stored in memory 109, following grasp also is realized
Make:
It is higher than the second predetermined quality threshold in the network quality of the second hotspot, whether output migrates carrying for Network
Show information;
When the display interface based on prompt message receives the confirmation of input, by the carrying of the 2nd Wi-Fi antennas
Network is migrated to the first Wi-Fi antennas.
Further, when processor 110 performs the Wi-Fi control programs stored in memory 109, following grasp also is realized
Make:
Whether judgement currently reaches default detection cycle;
When reaching default detection cycle, the network quality of the first hotspot, and the second hotspot of detection are detected
Network quality.
Further, when the first frequency range is 2.4G, the second frequency range is 5G, or when the first frequency range is 5G, the second frequency
Section is 2.4G.
Further, the present invention also provides a kind of Wi-Fi control methods, applied to the mobile terminal shown in Fig. 1, reference picture
4, in the first embodiment of Wi-Fi control methods of the present invention, the Wi-Fi control methods include:
Step S10, detect the network quality of the first hotspot, and the network quality of the second hotspot of detection;
Step S20, compare the network quality of the first hotspot and the network quality of the second hotspot;
Step S30, when the network quality of the first hotspot is higher than the network quality of the second hotspot, by second
The Network of Wi-Fi antennas carrying is migrated to the first Wi-Fi antennas.
Based on the associated description previously with regard to mobile terminal hardware configuration, in the present embodiment, mobile terminal also includes the
One Wi-Fi antennas and the 2nd Wi-Fi antennas, its Wi-Fi module 102 can pass through the first Wi-Fi antennas and the 2nd Wi-Fi days simultaneously
Line is attached with two hotspot, acquiescence, when Wi-Fi module 102 is based on the first MAC Address by the first Wi-Fi days
Line and be operated in the first frequency range the first hotspot establish connection after, Wi-Fi module 102 is based on the second MAC Address by the
Two Wi-Fi antennas and the second hotspot foundation connection for being operated in the second frequency range.Wherein, when the first frequency range is 2.4G, the
Two frequency ranges are 5G, or when the first frequency range is 5G, the second frequency range is 2.4G.For example, the Wi-Fi module 102 of mobile terminal exists
After hotspot with being operated in 2.4G frequency ranges establishes connection, the hotspot foundation that 5G frequency ranges are operated in another is given tacit consent to
Connection.It should be noted that in other embodiments, the Wi-Fi module 102 of mobile terminal can connect two simultaneously and be operated in
The hotspot of 2.4G frequency ranges, two hotspot for being operated in 5G frequency ranges can also be connected simultaneously.
To realize that the Wi-Fi to mobile terminal is controlled, it is ensured that mobile terminal obtains stable network service, in the present embodiment
In, the network quality of two hotspot first to having connected detects, namely the of detection the first Wi-Fi antennas connection
The network quality of one hotspot, and the network quality of the second hotspot of detection the 2nd Wi-Fi antennas connection.
Wherein, specifically can be by those skilled in the art's root for the network quality using which kind of parameter characterization hotspot
Selected according to being actually needed, the network quality of hotspot can be characterized using the signal intensity of hotspot, can also
Characterized, can also be characterized using the negotiated speed of hotspot, this reality using the data transmit-receive success rate of hotspot
Example is applied to be not particularly limited.
Because this programme mainly provides stable network service for application program by way of migrating Network, because
This is after detection obtains the network quality of the first hotspot and detection obtains the network quality of the second hotspot, to the
The network quality of one hotspot and the second hotspot is compared, to determine to migrate what is carried on which Wi-Fi antenna
Network, and which Network moved to.Specifically, mobile terminal determines the relatively low hotspot of connection network quality
Wi-Fi antennas on Network be Network to be migrated, it is determined that the Wi- of the higher hotspot of connection network quality
Fi antennas are the target Wi-Fi antennas of migration, wherein, it is higher than the net of the second hotspot in the network quality of the first hotspot
During network quality, the Network carried on the 2nd Wi-Fi antennas is migrated to the first Wi-Fi antennas;In the first hotspot
When network quality is less than the network quality of the second hotspot, the Network carried on the first Wi-Fi antennas is migrated to the
Two Wi-Fi antennas.
For example, when the negotiated speed using hotspot is to characterize network quality, if detecting the first hotspot
Negotiated speed is 150Mbps, and the negotiated speed for detecting the second hotspot is 72Mbps, it is clear that, 150Mbps is more than
72Mbps, determine that the network quality of the first hotspot is higher than the network quality of the second hotspot, refer to Fig. 5, now the
One Wi-Fi antennas carry " wechat " and " QQ " Network, and the 2nd Wi-Fi antennas carry " Netease's cloud music " and " UC
The Network of browser ";Fig. 6 is refer to, because mobile terminal is comparing the net of the first hotspot and the second hotspot
After network quality, determine that the network quality of the first hotspot is higher than the network quality of the second hotspot, mobile terminal is by the
The Network of " Netease's cloud music " and " UC browsers " that two Wi-Fi antennas are carried is migrated to the first Wi-Fi antennas.
In another example when using data transmit-receive success rate to characterize network quality, if detecting based on the first hotspot
Data transmit-receive success rate be 98%, detect the data transmit-receive success rate based on the second hotspot be 99%, it is clear that
99% is more than 98%, determines that the network quality of the second hotspot is higher than the network quality of the first hotspot, now mobile whole
End migrates the Network carried on the first Wi-Fi antennas to the 2nd Wi-Fi antennas.
Now consider following scene, parlor is provided with the first hotspot for being operated in 5G frequency ranges in user family, and master bedroom is set
There is the second hotspot for being operated in 2.4G frequency ranges, and the signal of two hotspot can cover dining room, when user carries
When mobile terminal enters dining room by parlor, due to the stop of the barriers such as wall, mobile terminal will be caused to detect that first is wireless
The network quality of focus is less than the network quality of the second hotspot, and now mobile terminal will connect the first of the first hotspot
The Network carried on Wi-Fi antennas is migrated to the 2nd Wi-Fi antennas of the second hotspot of connection, by the second hotspot
Service is provided, so, the application program run on mobile terminal can obtain preferable network service, maintain network service
Stability.
Alternatively, in the present embodiment, after step S30, in addition to:
When the network quality for detecting the second hotspot is less than the first predetermined quality threshold, Wi-Fi module 102 is controlled
Disconnect with the connection of the second hotspot, and control Wi-Fi module 102 be based on the second MAC Address by the 2nd Wi-Fi antennas with
First hotspot establishes connection.
The embodiment of the present invention is in the network industry that will be carried on the Wi-Fi antennas for connecting the relatively low hotspot of network quality
Business, migrate to the Wi-Fi antennas of the higher hotspot of connection network quality, it is relatively low to be not turned off connection network quality
The Wi-Fi antennas of hotspot, but the network quality of the Wi-Fi is continued to detect.When detecting the second hotspot
Network quality when being less than the first predetermined quality threshold, carry out the switching of Wi-Fi Hotspot, it is specific to control Wi-Fi module 102 to disconnect
With the connection of the second hotspot, and Wi-Fi module 102 is controlled to pass through the 2nd Wi-Fi antennas and first based on the second MAC Address
Hotspot establishes connection.Wherein, the first predetermined quality threshold, which characterizes hotspot, can provide normal network service most
Low network quality, it can be specifically configured by those skilled in the art according to being actually needed.
For example, when the negotiated speed using hotspot is to characterize network quality, if detecting the first hotspot
Negotiated speed is 150Mbps, and the negotiated speed for detecting the second hotspot is 72Mbps, it is clear that, 150Mbps is more than
72Mbps, determine that the network quality of the first hotspot is higher than the network quality of the second hotspot, refer to Fig. 5, now the
One Wi-Fi antennas carry " wechat " and " QQ " Network, and the 2nd Wi-Fi antennas carry " Netease's cloud music " and " UC
The Network of browser ";Fig. 6 is refer to, because mobile terminal is comparing the net of the first hotspot and the second hotspot
After network quality, determine that the network quality of the first hotspot is higher than the network quality of the second hotspot, mobile terminal is by the
The Network of " Netease's cloud music " and " UC browsers " that two Wi-Fi antennas are carried is migrated to the first Wi-Fi antennas;Afterwards
Continue to detect the network quality of the second hotspot, and when the network quality for detecting the second hotspot is less than first
During predetermined quality threshold " 128Kbps ", control Wi-Fi module 102 disconnects the connection with the second hotspot, and controls Wi-Fi
Module 102 is based on the second MAC Address and establishes connection by the 2nd Wi-Fi antennas and the first hotspot, as shown in Figure 7.
Alternatively, in the present embodiment, also include before step S10:
Whether judgement currently reaches default detection cycle;
When reaching default detection cycle, step S10 is performed.
It should be noted that in the present embodiment, to the first hotspot and the second nothing by the way of cycle detection
The network quality of line focus is detected, the specific value for presetting detection cycle, can be by those skilled in the art according to reality
Border needs to be configured, for example, when default detection cycle is arranged into 60 seconds, mobile terminal will be spaced 60 seconds it is wireless to first
The network quality of focus and the second hotspot is detected.
The Wi-Fi control methods that the embodiment of the present invention proposes, the mobile terminal for including two-way Wi-Fi antennas, same
When being connected with two hotspot of different frequency range, the network quality of two hotspot is detected, and compare, if one
The network quality of hotspot is less than another hotspot, then will connect the Wi-Fi antennas of the poor hotspot of network quality
The Network of upper carrying is migrated to another Wi-Fi antennas, and service is provided by the preferable hotspot of network quality, so as to be shifting
The application program run in dynamic terminal provides stable network service.
Further, based on first embodiment, the second embodiment of Wi-Fi control methods of the present invention is proposed, in this implementation
Example in, detect the first hotspot network quality the step of include:
The Wi-Fi signal of the first hotspot is detected, the signal for the first hotspot for detecting to obtain according to Wi-Fi signal
Intensity and negotiated speed;
Obtain the data transmit-receive success rate for being currently based on the first hotspot;
According to signal intensity, negotiated speed and data transmit-receive success rate each where big minizone, respectively determine pair
The quality score of induction signal intensity, negotiated speed and data transmit-receive success rate;
Each matter is calculated according to signal intensity, negotiated speed and each self-corresponding default weight coefficient of data transmit-receive success rate
Measure the weighted sum of score value, the network quality using the weighted sum being calculated as the first hotspot.
It should be noted that the present embodiment is on the basis of aforementioned first embodiment, it is proposed that one kind detection network quality
Concrete mode, be only explained below, other can refer to aforementioned first embodiment, and here is omitted.
In order to more accurately characterize the network quality of hotspot, binding signal intensity in the present embodiment, consult speed
Rate and data transmit-receive success rate characterize the network quality of hotspot.Below with the network quality of the first hotspot of detection
Exemplified by illustrate, the detection to the second hotspot network quality can refer to implementation.
Specifically, mobile terminal is detected by Wi-Fi module 102 to the Wi-Fi signal of the first hotspot first,
Then the obtained signal intensity and negotiated speed of the first hotspot is detected according to the first hotspot Wi-Fi signal, so
Afterwards the data transmit-receive success rate based on the first hotspot is got from bottom.
After signal intensity, negotiated speed and the data transmit-receive success rate of the first hotspot is got, according to letter
Number intensity, negotiated speed and data transmit-receive success rate each where big minizone, determine corresponding signal intensity respectively, consult
The quality score of speed and data transmit-receive success rate, then according to signal intensity, negotiated speed and data transmit-receive success rate
Each self-corresponding default weight coefficient calculates the weighted sum of each quality score, using the weighted sum being calculated as the first wireless heat
The network quality of point.
For example, it is assumed that signal intensity, negotiated speed and data transmit-receive success rate each self-corresponding default weight coefficient point
Wei 0.4,0.2 and 0.4.
Corresponding to signal intensity, 3 intensity intervals are divided altogether, and distinguish corresponding mass score value 60,40 and 20 from big to small;
Corresponding to negotiated speed, 3 rate periods are equally divided, and distinguish corresponding mass score value 60,40 and 20 from big to small;Correspond to
Data transmit-receive success rate, 3 rate periods are equally divided into, and distinguish corresponding mass score value 60,40 and 20 from big to small.
If it is determined that signal intensity, negotiated speed and each self-corresponding quality score of data transmit-receive success rate be respectively 60,
40th, 40, then the network quality of the first hotspot is 60*0.4+40*0.2+40*0.4=48.
Further, based on first embodiment, the 3rd embodiment of Wi-Fi control methods of the present invention is proposed, in this implementation
In example, step S20 includes:
The difference of the first hotspot and the second hotspot network quality is calculated, judges whether the difference that is calculated is big
In preset difference value, wherein, when the difference being calculated is more than preset difference value, determine that the network quality of the first hotspot is higher than
The network quality of second hotspot.
It should be noted that the embodiment of the present invention is on the basis of aforementioned first embodiment, it is proposed that another kind relatively the
The concrete mode of one hotspot and the second hotspot network quality, is only explained, before other can refer to below
The associated description of embodiment is stated, here is omitted.
In the present embodiment, when comparing the first hotspot and the second hotspot network quality, is specifically calculated
Whether the difference of one hotspot and the second hotspot network quality, then, the difference for judging to be calculated are more than default poor
Value, wherein, when the difference being calculated is more than preset difference value, determine that the network quality of the first hotspot is wireless higher than second
The network quality of focus.It should be noted that preset difference value sets smaller, triggering switching connection hotspot is sensitiveer, right
In the specific value of preset difference value, the present embodiment is not limited, and can be configured by those skilled in the art according to being actually needed.
For example, hotspot is being characterized based on second embodiment binding signal intensity, negotiated speed and data transmit-receive success rate
During network quality, be arranged to 15, in other words, the network quality difference of the first hotspot and the second hotspot positioned at 15 with
When interior, it is believed that the network quality of two hotspot is more or less the same, in the network matter of the first hotspot and the second hotspot
When measuring difference more than 15, the switching of hotspot is proceeded by.
Further, based on foregoing any embodiment, the fourth embodiment of Wi-Fi control methods of the present invention is proposed, at this
In embodiment, before step S30, in addition to:
When the network quality of the first hotspot is higher than the network quality of the second hotspot, the second hotspot is judged
Network quality whether be higher than the second predetermined quality threshold;
When the network quality of the second hotspot is less than the second predetermined quality threshold, step S30 is performed.
It should be noted that to avoid unnecessary business migration, the present embodiment increases on the basis of previous embodiment
The secondary-confirmation operation of business migration, is only explained, other can refer to foregoing corresponding embodiment, herein no longer below
Repeat.
In the present embodiment, after the comparison to the first hotspot and the second hotspot network quality is completed,
If it is determined that the network quality of the first hotspot is higher than the network quality of the second hotspot, then the second wireless heat is determined whether
Whether the network quality of point is higher than the second predetermined quality threshold, wherein, the second predetermined quality threshold is for limiting hotspot
It is no to provide stable network service, it is necessary to be higher than foregoing first predetermined quality threshold, its specific value can be by this area skill
Art personnel are configured according to being actually needed, and the present embodiment is not particularly limited.
When the network quality of the second hotspot is less than the second predetermined quality threshold, illustrate that the second hotspot can not
Stable network service is provided to mobile terminal, the Wi-Fi antennas of the second hotspot will be now connected, that is to say the 2nd Wi-
The Network carried on Fi antennas is migrated to the first Wi-Fi antennas, and the first hotspot connected by the first Wi-Fi antennas carries
For service.
Further, in the present embodiment, whether the foregoing network quality for judging the second hotspot is default higher than second
After the step of quality threshold, in addition to:
It is higher than the second predetermined quality threshold in the network quality of the second hotspot, whether output migrates carrying for Network
Show information;
When the display interface based on prompt message receives the confirmation of input, by the carrying of the 2nd Wi-Fi antennas
Network is migrated to the first Wi-Fi antennas.
Based on above description, it will be appreciated by persons skilled in the art that the network quality in the second hotspot is higher than
During the second predetermined quality threshold, illustrate that now the second hotspot can provide the network service stablized for mobile terminal, must not
The migration of Network is carried out, but now the network quality of the first hotspot is higher than the second hotspot, if by the 2nd Wi-
The Network carried on Fi antennas is migrated to the first Wi-Fi antennas, be able to will obtain the first hotspot provide it is more preferable
Network service, therefore, exportable prompt message, chosen whether to carry out the migration of Network by user.For example, Fig. 8 is refer to,
Mobile terminal when it is determined that the network quality of the second hotspot is higher than the second predetermined quality threshold, output prompt message " whether
Carry out business migration ", user can according to be actually needed click on the prompt message display interface on control "Yes" come input validation
Information, triggering mobile terminal carry out the migration of Network, or the control "No" clicked on the prompt message display interface is come
Input refusal information, indicates migration of the mobile terminal without Network.
In addition, the present invention also proposes a kind of computer-readable recording medium, applied to the mobile terminal shown in Fig. 1, the shifting
Dynamic terminal includes Wi-Fi module 102, and Wi-Fi module 102 is configured with the first MAC Address and the second MAC Address, Wi-Fi module
102 include the first Wi-Fi antennas and the 2nd Wi-Fi antennas, and Wi-Fi module 102 passes through the first Wi-Fi based on the first MAC Address
Antenna and the first hotspot, which are established, to be connected, and Wi-Fi module 102 passes through the 2nd Wi-Fi antennas and second based on the second MAC Address
Hotspot establishes connection, is stored with Wi-Fi control programs on the computer-readable recording medium, the Wi-Fi control program quilts
Following operation is realized when processor 110 performs:
Detect the network quality of the first hotspot, and the network quality of the second hotspot of detection;
Compare the network quality of the first hotspot and the network quality of the second hotspot;
When the network quality of the first hotspot is higher than the network quality of the second hotspot, by the 2nd Wi-Fi antennas
The Network of carrying is migrated to the first Wi-Fi antennas.
Further, following operation is also realized when foregoing Wi-Fi control programs are performed by processor 110:
The Wi-Fi signal of the first hotspot is detected, the signal for the first hotspot for detecting to obtain according to Wi-Fi signal
Intensity and negotiated speed;
Obtain the data transmit-receive success rate for being currently based on the first hotspot;
According to signal intensity, negotiated speed and data transmit-receive success rate each where big minizone, respectively determine pair
The quality score of induction signal intensity, negotiated speed and data transmit-receive success rate;
Each matter is calculated according to signal intensity, negotiated speed and each self-corresponding default weight coefficient of data transmit-receive success rate
Measure the weighted sum of score value, the network quality using the weighted sum being calculated as the first hotspot.
Further, following operation is also realized when foregoing Wi-Fi control programs are performed by processor 110:
When the network quality for detecting the second hotspot is less than the first predetermined quality threshold, Wi-Fi module 102 is controlled
Disconnect with the connection of the second hotspot, and control Wi-Fi module 102 be based on the second MAC Address by the 2nd Wi-Fi antennas with
First hotspot establishes connection.
Further, following operation is also realized when foregoing Wi-Fi control programs are performed by processor 110:
The difference of the first hotspot and the second hotspot network quality is calculated, judges whether the difference that is calculated is big
In preset difference value, wherein, when the difference being calculated is more than preset difference value, determine that the network quality of the first hotspot is higher than
The network quality of second hotspot.
Further, following operation is also realized when foregoing Wi-Fi control programs are performed by processor 110:
When the network quality of the first hotspot is higher than the network quality of the second hotspot, the second hotspot is judged
Network quality whether be higher than the second predetermined quality threshold;
When the network quality of the second hotspot is less than the second predetermined quality threshold, by the carrying of the 2nd Wi-Fi antennas
Network is migrated to the first Wi-Fi antennas.
Further, following operation is also realized when foregoing Wi-Fi control programs are performed by processor 110:
It is higher than the second predetermined quality threshold in the network quality of the second hotspot, whether output migrates carrying for Network
Show information;
When the display interface based on prompt message receives the confirmation of input, by the carrying of the 2nd Wi-Fi antennas
Network is migrated to the first Wi-Fi antennas.
Further, following operation is also realized when foregoing Wi-Fi control programs are performed by processor 110:
Whether judgement currently reaches default detection cycle;
When reaching default detection cycle, the network quality of the first hotspot, and the second hotspot of detection are detected
Network quality.
Further, when the first frequency range is 2.4G, the second frequency range is 5G, or when the first frequency range is 5G, the second frequency
Section is 2.4G.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are make it that it is each that mobile terminal performs the present invention
Method described in individual embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of Wi-Fi control methods, it is characterised in that the Wi-Fi module of mobile terminal is configured with the first MAC Address and second
MAC Address, the Wi-Fi module include the first Wi-Fi antennas and the 2nd Wi-Fi antennas, and the Wi-Fi module is based on described the
One MAC Address establishes connection, the Wi- by the first Wi-Fi antennas with being operated in the first hotspot of the first frequency range
Fi modules pass through the 2nd Wi-Fi antennas and the second hotspot for being operated in the second frequency range based on second MAC Address
Connection is established, the Wi-Fi control methods include:
Detect the network quality of first hotspot, and the network quality of detection second hotspot;
Compare the network quality of first hotspot and the network quality of second hotspot;
When the network quality of first hotspot is higher than the network quality of second hotspot, by described second
The Network of Wi-Fi antennas carrying is migrated to the first Wi-Fi antennas.
2. Wi-Fi control methods according to claim 1, it is characterised in that described to carry the 2nd Wi-Fi antennas
Network migrate the step of the first Wi-Fi antennas, in addition to:
When the network quality for detecting second hotspot is less than the first predetermined quality threshold, the Wi-Fi moulds are controlled
Block disconnects the connection with second hotspot, and it is described to control the Wi-Fi module to pass through based on second MAC Address
2nd Wi-Fi antennas are established with first hotspot and connected.
3. Wi-Fi control methods according to claim 1, it is characterised in that detection first hotspot
The step of network quality, includes:
The Wi-Fi signal of first hotspot is detected, the described first wireless heat for detecting to obtain according to the Wi-Fi signal
The signal intensity and negotiated speed of point;
Obtain the data transmit-receive success rate for being currently based on first hotspot;
According to the signal intensity, the negotiated speed and the data transmit-receive success rate each where big minizone, point
The quality score of the signal intensity, the negotiated speed and the data transmit-receive success rate Que Ding not corresponded to;
According to the signal intensity, the negotiated speed and each self-corresponding default weight coefficient of the data transmit-receive success rate
The weighted sum of each quality score is calculated, the network quality using the weighted sum being calculated as first hotspot.
4. Wi-Fi control methods according to claim 1, it is characterised in that first hotspot
The step of network quality and the network quality of second hotspot, includes:
The difference of first hotspot and the second hotspot network quality is calculated, judges whether the difference is more than
Preset difference value, wherein, when the difference is more than the preset difference value, determine that the network quality of first hotspot is higher than
The network quality of second hotspot.
5. the Wi-Fi control methods according to claim 1-4, it is characterised in that described to hold the 2nd Wi-Fi antennas
The Network of load was migrated the step of the first Wi-Fi antennas before, in addition to:
When the network quality of first hotspot is higher than the network quality of second hotspot, described second is judged
Whether the network quality of hotspot is higher than the second predetermined quality threshold;
When the network quality of second hotspot is less than second predetermined quality threshold, by the described 2nd Wi-Fi days
The Network of line carrying is migrated to the first Wi-Fi antennas.
6. Wi-Fi control methods according to claim 5, it is characterised in that judgement second hotspot
After the step of whether network quality is higher than the second predetermined quality threshold, in addition to:
It is higher than second predetermined quality threshold in the network quality of second hotspot, whether output migrates Network
Prompt message;
When the display interface based on the prompt message receives the confirmation of input, the 2nd Wi-Fi antennas are held
The Network of load is migrated to the first Wi-Fi antennas.
7. according to the Wi-Fi control methods described in claim any one of 1-4, it is characterised in that detection first nothing
Before the network quality of line focus, and the step of network quality of detection second hotspot, in addition to:
Whether judgement currently reaches default detection cycle;
When reaching default detection cycle, the network quality of detection first hotspot, and detection described second are wireless
The network quality of focus.
8. according to the Wi-Fi control methods described in claim any one of 1-4, it is characterised in that be in first frequency range
During 2.4G, second frequency range is 5G, or when first frequency range is 5G, second frequency range is 2.4G.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
The Wi-Fi module of the first MAC Address and the second MAC Address is configured with, the Wi-Fi module includes the first Wi-Fi antennas
With the 2nd Wi-Fi antennas, the Wi-Fi module is based on first MAC Address by the first Wi-Fi antennas with being operated in
First hotspot of the first frequency range establishes connection, and the Wi-Fi module passes through described second based on second MAC Address
Wi-Fi antennas and the second hotspot foundation connection for being operated in the second frequency range;
It is stored with the memory of Wi-Fi control programs;
Processor, with the memory communication and being configured to perform the Wi-Fi control programs to realize in claim 1 to 8
The step of Wi-Fi control methods described in any one.
A kind of 10. computer-readable recording medium, applied to mobile terminal, it is characterised in that the Wi-Fi moulds of the mobile terminal
Block is configured with the first MAC Address and the second MAC Address, and the Wi-Fi module includes the first Wi-Fi antennas and the 2nd Wi-Fi days
Line, the Wi-Fi module by the first Wi-Fi antennas and are operated in the of the first frequency range based on first MAC Address
One hotspot establishes connection, and the Wi-Fi module passes through the 2nd Wi-Fi antennas and work based on second MAC Address
The second hotspot made in the second frequency range establishes connection, and Wi-Fi control journeys are stored with the computer-readable recording medium
Sequence, the Wi-Fi controlling parties as any one of claim 1 to 8 are realized when the Wi-Fi control programs are executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710916782.7A CN107635263A (en) | 2017-09-29 | 2017-09-29 | Wi Fi control methods, mobile terminal and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710916782.7A CN107635263A (en) | 2017-09-29 | 2017-09-29 | Wi Fi control methods, mobile terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107635263A true CN107635263A (en) | 2018-01-26 |
Family
ID=61103966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710916782.7A Pending CN107635263A (en) | 2017-09-29 | 2017-09-29 | Wi Fi control methods, mobile terminal and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107635263A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109287002A (en) * | 2018-10-24 | 2019-01-29 | 武汉瑞莱保能源技术有限公司 | A kind of mobile networking equipment and ad hoc network method |
CN110166102A (en) * | 2019-05-28 | 2019-08-23 | Oppo广东移动通信有限公司 | The switching method and device of WiFi antenna |
CN112153713A (en) * | 2020-10-23 | 2020-12-29 | 珠海格力电器股份有限公司 | Obstacle determination method and apparatus, storage medium, and electronic apparatus |
WO2021012706A1 (en) * | 2019-07-22 | 2021-01-28 | 广东美的制冷设备有限公司 | Network connection method and household appliance |
WO2021031786A1 (en) * | 2019-08-19 | 2021-02-25 | Oppo广东移动通信有限公司 | Data transmission method and related device |
CN113053088A (en) * | 2021-03-31 | 2021-06-29 | 广东美的厨房电器制造有限公司 | Household appliance, control method and device of household appliance and readable storage medium |
US20220151018A1 (en) * | 2019-08-19 | 2022-05-12 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Wifi network disconnecting method and related device |
CN114710812A (en) * | 2021-12-27 | 2022-07-05 | 荣耀终端有限公司 | Communication method and communication device |
CN115150217A (en) * | 2022-06-30 | 2022-10-04 | 青岛海信移动通信技术股份有限公司 | Network distribution method, device and equipment for intelligent household equipment |
CN116056174A (en) * | 2022-06-30 | 2023-05-02 | 荣耀终端有限公司 | Wireless fidelity Wi-Fi roaming switching method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150103663A1 (en) * | 2013-10-14 | 2015-04-16 | Netgear, Inc. | Systems and methods for wireless load balancing and channel selection for a wireless device using wlan modules operating simultaneously in different wireless bands |
CN104754602A (en) * | 2013-12-30 | 2015-07-01 | 中国移动通信集团上海有限公司 | Wireless quality monitoring method and device |
CN104754621A (en) * | 2013-12-31 | 2015-07-01 | 中国移动通信集团上海有限公司 | Wireless network detecting method and device |
CN105050118A (en) * | 2015-07-31 | 2015-11-11 | 腾讯科技(深圳)有限公司 | Wi-Fi hotspot connecting method and device |
CN105517112A (en) * | 2015-12-31 | 2016-04-20 | 小米科技有限责任公司 | Method and device for displaying WiFi network information |
CN105682191A (en) * | 2016-03-10 | 2016-06-15 | 努比亚技术有限公司 | Mobile terminal and Wi-Fi control method |
CN105722118A (en) * | 2016-01-27 | 2016-06-29 | 努比亚技术有限公司 | Data service communication processing method and device |
CN105759937A (en) * | 2016-02-03 | 2016-07-13 | 努比亚技术有限公司 | Method for lowering terminal power consumption and terminal |
CN106060878A (en) * | 2016-05-17 | 2016-10-26 | 杭州华三通信技术有限公司 | Relay method of device and repeater |
CN106792873A (en) * | 2016-12-07 | 2017-05-31 | 广东欧珀移动通信有限公司 | The update method and device of WiFi signal intensity |
CN107148060A (en) * | 2017-05-23 | 2017-09-08 | 维沃移动通信有限公司 | A kind of method for connecting network and its mobile terminal of application |
-
2017
- 2017-09-29 CN CN201710916782.7A patent/CN107635263A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150103663A1 (en) * | 2013-10-14 | 2015-04-16 | Netgear, Inc. | Systems and methods for wireless load balancing and channel selection for a wireless device using wlan modules operating simultaneously in different wireless bands |
CN104754602A (en) * | 2013-12-30 | 2015-07-01 | 中国移动通信集团上海有限公司 | Wireless quality monitoring method and device |
CN104754621A (en) * | 2013-12-31 | 2015-07-01 | 中国移动通信集团上海有限公司 | Wireless network detecting method and device |
CN105050118A (en) * | 2015-07-31 | 2015-11-11 | 腾讯科技(深圳)有限公司 | Wi-Fi hotspot connecting method and device |
CN105517112A (en) * | 2015-12-31 | 2016-04-20 | 小米科技有限责任公司 | Method and device for displaying WiFi network information |
CN105722118A (en) * | 2016-01-27 | 2016-06-29 | 努比亚技术有限公司 | Data service communication processing method and device |
CN105759937A (en) * | 2016-02-03 | 2016-07-13 | 努比亚技术有限公司 | Method for lowering terminal power consumption and terminal |
CN105682191A (en) * | 2016-03-10 | 2016-06-15 | 努比亚技术有限公司 | Mobile terminal and Wi-Fi control method |
CN106060878A (en) * | 2016-05-17 | 2016-10-26 | 杭州华三通信技术有限公司 | Relay method of device and repeater |
CN106792873A (en) * | 2016-12-07 | 2017-05-31 | 广东欧珀移动通信有限公司 | The update method and device of WiFi signal intensity |
CN107148060A (en) * | 2017-05-23 | 2017-09-08 | 维沃移动通信有限公司 | A kind of method for connecting network and its mobile terminal of application |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109287002A (en) * | 2018-10-24 | 2019-01-29 | 武汉瑞莱保能源技术有限公司 | A kind of mobile networking equipment and ad hoc network method |
CN109287002B (en) * | 2018-10-24 | 2022-08-02 | 武汉瑞莱保科技有限公司 | Mobile networking equipment and ad hoc networking method |
CN110166102A (en) * | 2019-05-28 | 2019-08-23 | Oppo广东移动通信有限公司 | The switching method and device of WiFi antenna |
WO2021012706A1 (en) * | 2019-07-22 | 2021-01-28 | 广东美的制冷设备有限公司 | Network connection method and household appliance |
WO2021031786A1 (en) * | 2019-08-19 | 2021-02-25 | Oppo广东移动通信有限公司 | Data transmission method and related device |
US20220151018A1 (en) * | 2019-08-19 | 2022-05-12 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Wifi network disconnecting method and related device |
EP4007382A4 (en) * | 2019-08-19 | 2022-09-21 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for disconnecting wifi network and related device |
CN112153713B (en) * | 2020-10-23 | 2021-08-20 | 珠海格力电器股份有限公司 | Obstacle determination method and apparatus, storage medium, and electronic apparatus |
CN112153713A (en) * | 2020-10-23 | 2020-12-29 | 珠海格力电器股份有限公司 | Obstacle determination method and apparatus, storage medium, and electronic apparatus |
CN113053088A (en) * | 2021-03-31 | 2021-06-29 | 广东美的厨房电器制造有限公司 | Household appliance, control method and device of household appliance and readable storage medium |
CN114710812A (en) * | 2021-12-27 | 2022-07-05 | 荣耀终端有限公司 | Communication method and communication device |
CN114710812B (en) * | 2021-12-27 | 2023-11-28 | 荣耀终端有限公司 | Communication method and communication device |
CN115150217A (en) * | 2022-06-30 | 2022-10-04 | 青岛海信移动通信技术股份有限公司 | Network distribution method, device and equipment for intelligent household equipment |
CN116056174A (en) * | 2022-06-30 | 2023-05-02 | 荣耀终端有限公司 | Wireless fidelity Wi-Fi roaming switching method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107635263A (en) | Wi Fi control methods, mobile terminal and computer-readable recording medium | |
CN107787006A (en) | Hotspot network quality detection method, mobile terminal and storage medium | |
CN107635248A (en) | Network accelerating method, mobile terminal and computer-readable recording medium | |
CN107682882A (en) | Data transmission method, mobile terminal and computer-readable recording medium | |
CN107580359A (en) | Hotspot sharing method, mobile terminal and computer-readable recording medium | |
CN108307432A (en) | WiFi control methods, mobile terminal and computer readable storage medium | |
CN107436779A (en) | A kind of application management method, equipment and computer-readable recording medium | |
CN107613489A (en) | A kind of wireless charging method, hotspot equipment, terminal and storage medium | |
CN107343083A (en) | One kind lifting game experiencing method, apparatus and computer-readable recording medium | |
CN107770841A (en) | Hotspot connection method, mobile terminal and computer-readable recording medium | |
CN107340833A (en) | Terminal temperature control method, terminal and computer-readable recording medium | |
CN108307433A (en) | Hotspot sharing method, mobile terminal and computer readable storage medium | |
CN107770842A (en) | Hotspot connection method, mobile terminal and computer-readable recording medium | |
CN107635234A (en) | Wi Fi control methods, mobile terminal and computer-readable recording medium | |
CN107635232A (en) | A kind of network share method, terminal and computer-readable recording medium | |
CN107809767A (en) | A kind of information transferring method, mobile terminal, base station and computer-readable storage medium | |
CN107360558A (en) | Emergency call control method, communication terminal and computer-readable recording medium | |
CN108540639A (en) | Display processing method, equipment and the computer of Mosaic screen can storage mediums | |
CN107172605A (en) | A kind of Emmergency call method, mobile terminal and computer-readable recording medium | |
CN107708224A (en) | Wi Fi control methods, mobile terminal and computer-readable recording medium | |
CN107390856A (en) | A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption | |
CN107818022A (en) | Application programming interfaces merging method, mobile terminal and computer-readable recording medium | |
CN107613130A (en) | A kind of application management method, mobile terminal and computer-readable recording medium | |
CN107708190A (en) | Wi Fi control methods, mobile terminal and computer-readable recording medium | |
CN107770840A (en) | Focus signal display method, mobile terminal and computer-readable recording medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180126 |