[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106792940B - Electronic equipment and WIFI intelligent switching method thereof - Google Patents

Electronic equipment and WIFI intelligent switching method thereof Download PDF

Info

Publication number
CN106792940B
CN106792940B CN201611132128.9A CN201611132128A CN106792940B CN 106792940 B CN106792940 B CN 106792940B CN 201611132128 A CN201611132128 A CN 201611132128A CN 106792940 B CN106792940 B CN 106792940B
Authority
CN
China
Prior art keywords
wifi
switching
signal
intelligent
intelligent switching
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
CN201611132128.9A
Other languages
Chinese (zh)
Other versions
CN106792940A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201611132128.9A priority Critical patent/CN106792940B/en
Publication of CN106792940A publication Critical patent/CN106792940A/en
Application granted granted Critical
Publication of CN106792940B publication Critical patent/CN106792940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0094Definition of hand-off measurement parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

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

Abstract

The invention discloses an electronic device and a WIFI intelligent switching method thereof, wherein the WIFI intelligent switching method comprises the following steps: A. when a WIFI intelligent switching mode is started, monitoring the current WIFI state and judging whether a triggering condition of intelligent switching is reached; B. when the strong and weak trigger conditions are met, searching WIFI with optimal signals for switching; C. and when the download triggering condition is met, searching for WIFI with the optimal signal, prompting the download rate, and selecting switching according to user operation. The WIFI switching method and the WIFI switching system can respectively perform corresponding WIFI switching according to the strong and weak trigger conditions and the download trigger conditions, provide a more flexible and intelligent WIFI switching mode aiming at the WIFI use environment of the user, greatly facilitate the switching requirement of the user on WIFI signals, and solve the problem that the existing electronic equipment cannot intelligently switch WIFI according to the use requirement.

Description

Electronic equipment and WIFI intelligent switching method thereof
Technical Field
The invention relates to the technical field of WIFI, in particular to electronic equipment and a WIFI intelligent switching method thereof.
Background
At present, indoor and outdoor available WIFI is increasing. The electronic device can use a plurality of WIFI near a certain place, and with the change of the position, the originally strong WIFI signal may be weakened, and the originally weak WIFI signal may be strengthened. When the electronic equipment is used, a user cannot easily perceive the strong and weak transformation of the WIFI signal, and the WIFI can be actively switched less.
In addition to the intensity of the WIFI signal, the rate of the WIFI signal is less noticeable. If a WIFI is connected to a certain place and a file is downloaded, and the file needs to be driven to another place after the file is downloaded, the downloading rate is very low, and a user can only wait boring and worried. While another unconnected WIFI may download faster.
With the increasing demand for intelligence of electronic devices, the intelligent switching technology of WIFI is also required to be improved. At present, only a user can select WIFI to connect, and the WIFI cannot be intelligently switched according to use requirements.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the present invention is to provide an electronic device and a method for intelligently switching WIFI, so as to solve the problem that the existing electronic device cannot intelligently switch WIFI according to the use requirement.
In order to achieve the purpose, the invention adopts the following technical scheme:
a WIFI intelligent switching method of electronic equipment comprises the following steps:
step A, when a WIFI intelligent switching mode is started, monitoring the current WIFI state and judging whether a triggering condition of intelligent switching is reached;
b, searching WIFI with optimal signals for switching when the strong and weak trigger conditions are met;
and step C, when the download triggering condition is met, searching for WIFI with the optimal signal, prompting the download rate, and selecting switching according to user operation.
In the method for intelligently switching WIFI of an electronic device, before step a, the method further includes:
and starting WIFI, connecting the WIFI successfully, and prompting a user whether to start a WIFI intelligent switching mode.
In the intelligent WIFI switching method for the electronic device, the strong and weak trigger conditions are as follows: the intensity of the current WIFI signal is lower than a first expected value, or the downloading rate of the WIFI signal is lower than a second expected value but the WIFI signal is not downloaded.
In the method for intelligent WIFI switching of an electronic device, step B specifically includes:
step B1, judging whether a WIFI signal meeting the intelligent switching is acquired, if so, executing step B2; otherwise, the process is not processed, and the process is ended;
step B2, comparing WIFI signals meeting intelligent switching, and finding out the optimal WIFI;
and step B3, switching the current WIFI to the optimal WIFI, and prompting after switching is completed.
In the intelligent WIFI switching method for electronic devices, in step B1, the method for determining a WIFI signal that satisfies the intelligent switching specifically includes:
step B11, judging whether the WIFI is connected or not and storing the WIFI;
step B12, judging whether the intensity of the new WIFI signal is compared with the intensity of the currently connected WIFI signal and reaches or is greater than an intensity set value;
and step B13, judging whether the download rate of the new WIFI signal is compared with the download rate of the currently connected WIFI signal and reaches or is greater than a rate set value.
In the intelligent WIFI switching method for the electronic device, the download triggering conditions are as follows: the downloading rate of the current WIFI signal is continuously lower than the third expected value, the rate fluctuation range is smaller than the fourth expected value, and the duration time exceeds the time threshold.
In the method for intelligently switching WIFI of an electronic device, the step C specifically includes:
step C1, judging whether a WIFI signal meeting the intelligent switching is acquired, if so, executing step C2; otherwise, the process is not processed, and the process is ended;
step C2, comparing WIFI signals meeting intelligent switching, and finding out the optimal WIFI;
step C3, judging whether the optimal WIFI is the WIFI cancelled by the user: if yes, processing is not carried out, and the process is ended; otherwise, executing step C4;
step C4, prompting switchable WIFI and intensity and rate information thereof, and detecting whether the user selects switching: if so, executing the step B3, otherwise, executing the step C5;
and C5, recording the MAC address of the currently connected WIFI and the MAC address of the optimal WIFI.
An electronic device for realizing the WIFI intelligent switching method comprises a monitoring trigger module, a strong and weak switching module and a downloading switching module;
the monitoring triggering module is used for monitoring the current WIFI state and judging whether the triggering condition of intelligent switching is reached or not when the WIFI intelligent switching mode is started;
when the strong and weak trigger conditions are met, the strong and weak switching module searches for WIFI with optimal signals to switch;
and when the download triggering condition is met, the download switching module searches for WIFI with the optimal signal, prompts the download rate and selects switching according to user operation. .
The electronic equipment further comprises a prompting module for prompting whether the user starts the WIFI intelligent switching mode or not when the WIFI is started and a WIFI is successfully connected.
The electronic equipment further comprises a setting module for providing a setting interface for a user to set and store the expected value, the intensity set value, the intensity threshold value, the speed set value d and the speed threshold value.
Compared with the prior art, the electronic equipment and the WIFI intelligent switching method thereof provided by the invention have the advantages that when the WIFI intelligent switching mode is started, the current WIFI state is monitored and whether the triggering condition of intelligent switching is reached is judged; when the strong and weak trigger conditions are met, searching WIFI with optimal signals for switching; and when the download triggering condition is met, searching for WIFI with the optimal signal, prompting the download rate, and selecting switching according to user operation. The WIFI switching method based on the download trigger condition can perform corresponding WIFI switching according to the strong and weak trigger condition and the download trigger condition, provides a more flexible and intelligent WIFI switching mode for the WIFI use environment of a user, greatly facilitates the switching requirement of the user on WIFI signals, and solves the problem that the existing electronic equipment cannot switch WIFI intelligently according to the use requirement.
Drawings
Fig. 1 is a flowchart of a WIFI intelligent switching method for an electronic device provided by the present invention.
Fig. 2 is a flowchart of an application embodiment of the WIFI intelligent switching method of the electronic device provided by the present invention.
Fig. 3 is a block diagram of an electronic device for WIFI intelligent switching of the electronic device provided by the present invention.
Detailed Description
The invention provides electronic equipment and a WIFI intelligent switching method thereof, which can intelligently switch a WIFI network according to the strength and the speed of a WIFI signal. In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1 and fig. 2, the method for WIFI intelligent switching of an electronic device provided by the present invention includes:
s100, when a WIFI intelligent switching mode is started, monitoring the current WIFI state and judging whether a triggering condition of intelligent switching is reached;
s200, when the strong and weak trigger conditions are reached, searching for WIFI with optimal signals to switch;
s300, when the download triggering condition is met, searching for WIFI with the optimal signal, prompting the download rate, and selecting switching according to user operation.
The embodiment can intelligently search and monitor the signal intensity and the downloading rate of the WIFI network, intelligently switch WIFI or inform a user, and the user can decide whether to switch WIFI or not. Before the WIFI smart switching mode is started, the WIFI needs to be started first and a last WIFI is successfully connected (as in step S10 in fig. 2). The method for judging whether the WIFI is started comprises the following steps:
public boolean isWIFIEnabled() {
return getWIFIState() == WIFI_STATE_ENABLED;
}
returning true indicates that WIFI is turned on, and returning false indicates that WIFI is not turned on.
After the user starts WIFI, all surrounding WIFI signals can be automatically displayed, if the saved WIFI information is to be acquired, the acquisition method can be achieved through a WIFI management class, such as WIFIManager, as follows:
WIFIManager WIFIManager =(WIFIManager)this.getSystemService(Context.WIFI_SERVICE)。
the method for judging whether the WIFI is connected comprises the following steps:
obtaining connection management classes
ConnectivityManager connectivityManager =
(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
Obtaining network information through connection management classes
NetworkInfo WIFINetworkInfo = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
WIFINetworkInfo.isConnected()
Returning true indicates a connection is made and false indicates no connection.
And then a dialog box can be popped up to prompt the user whether to start the WIFI intelligent switching mode. If the user starts the WIFI intelligent switching mode, the method goes to steps S100-S300; otherwise, the current WIFI connection is defaulted. WIFI is switched intelligently (such as a plurality of previously connected WIFI or free WIFI) sometimes based on the fact that a user does not need to switch WIFI frequently (such as WIFI signal fixation in an office or a home). And adding an opening and closing selection item of the WIFI intelligent switching mode in the WIFI connection option. And when a follow-up user needs, whether the WIFI intelligent switching mode is started or not can be selected autonomously. Therefore, the WIFI can be switched and used more flexibly according to the use environment of the user.
In step S100, when the WIFI intelligent switching mode is started, the current WIFI state needs to be monitored in real time and it is determined whether a triggering condition for intelligent switching is met (as shown in steps S110 to S130 in fig. 2). The WIFI state comprises the intensity and the downloading rate of a WIFI signal. The trigger conditions include strong and weak trigger conditions and download trigger conditions.
The method for acquiring the currently connected WIFI information comprises the following steps:
public WIFIInfo getConnectionInfo(){
}
the method returns a WIFIInfo object which contains the information of the currently connected WIFI.
Getmacaddress () = = null, this means that there is no WIFI connection.
Other methods for acquiring WIFI information:
WIFIinfo.getBSSID();
WIFIinfo.getSSID();
getipaddress (); obtaining an IP address
Getmacaddress (); obtaining MAC addresses
Getnetworkid (); obtaining a network ID
Wifininfo. getlinkseed (); obtaining the connection speed can let the user know the information
WIFIinfo, getRSI (), and signal strength for obtaining RSSI measurement
The method of obtaining information (including rate) of the current data transmission is as follows:
the methods getTotalRxBytes and getTotalTxBytes provided by the data management methods, such as TrafficStats, can be used.
public static long getTotalRxBytes() //Return number of bytesreceived since device boot
public static long getTotalTxBytes() //Return number of bytestransmitted since device boot
getTotalRxBytes is used for acquiring received data, and getTotalTxBytes is used for acquiring sent data.
For example, for the sending rate, a value is obtained by getTotalTxBytes first, a value is obtained by getTotalTxBytes after 500ms, and the current sending rate of the electronic device can be known by subtracting the absolute value of the two values and dividing the absolute value by 0.5, wherein the unit is byte/second.
In this embodiment, the strength triggering condition is that the strength of the current WIFI signal is lower than the first expected value a, or the download rate of the WIFI signal is lower than the second expected value B but no download is performed (for example, in the case of web browsing). When the strong and weak trigger conditions are reached, searching for WIFI with optimal signals for switching; the step S200 specifically includes:
step S210, judging whether a WIFI signal meeting intelligent switching is acquired, if so, executing step S220; otherwise, the process is not processed, and the process is ended. Thereafter, the process returns to step S100.
In this step, the method for judging a WIFI signal satisfying the intelligent switching specifically includes:
1. and judging whether the WIFI is connected or not and storing. If the WIFI signal is not connected (private WIFI) and a password needs to be entered, the system may try to connect strong but unusable WIFI. Only those that have been previously maintained can be directly connected. The saved WIFI List < WIFI configuration > may be obtained by obtaining WIFI information that the electronic device has saved, which may be obtained through wifimanager. The WIFIConfiguration object includes various attributes of WIFI, such as Network Id, ssid (service setidentifier), Status, and the like.
2. Judging whether the intensity of the new WIFI signal is compared with that of the currently connected WIFI signal and is equal to or greater than an intensity set value strength or not; or the new WIFI signal is stronger than the currently connected WIFI signal by an intensity threshold value. Only if the intensity of the new WIFI signal reaches or exceeds the intensity set value strength, the signal is strong and can be switched. Or the new WIFI signal is stronger than the previously connected WIFI signal, so that the switching significance is achieved.
And acquiring the scanned WIFI signal source, acquiring the WIF scanned by the electronic equipment through WIFIManagergetScanResults, and returning List < ScanResult >. The ScanResult includes information related to the WIF, such as ssid (service Set identifier), Level (signal strength), and the like.
3. On the basis of item 2, judging whether the download rate of the new WIFI signal is compared with the download rate of the currently connected WIFI signal and is equal to or greater than a rate set value speed or not; or the download rate of the new WIFI signal is greater than the rate threshold value than the currently connected WIFI signal. Meeting this condition has a switch significance.
The above 3 new WIFI signals meeting all the requirements belong to WIFI signals capable of being intelligently switched, and if the new WIFI exists, the WIFI signals meeting the requirements of intelligent switching can be obtained, and subsequent steps can be executed for switching. If the condition is not met, it is indicated that the currently connected WIFI signal is optimal, switching is not needed, the process may be ended, and the process returns to step S100 to continue monitoring.
And S220, comparing the WIFI signals meeting the intelligent switching, and finding out the optimal WIFI.
There may be more than one new WIFI signal that satisfies the above 3 conditions, and this step is performed to find the optimal WIFI signal. If there is only one, no comparison is necessary. When the comparison is carried out in the step, the WIFI signal with the highest downloading rate is found out, and if a plurality of WIFI signals are still available, whether the intensity of the WIFI signal reaches the stable value S or not can be continuously detected. And the optimal WIFI is satisfied by both.
Through the steps, the strength information of the WIFI signals can be acquired, but when the two WIFI signals are compared, some data processing is firstly carried out, the level is converted into the numerical value of RSSI measurement through a specific formula, and then the comparison is carried out.
WIFIManager defined the method of comparison as follows:
public static int compareSignalLevel(int rssiA, int rssiB) {
return rssiA - rssiB;
}
the type of parameters introduced and the method of comparison can be seen from the above method.
And step 230, switching the current WIFI to the optimal WIFI, and prompting after switching is completed. And then, the process is ended, and the process returns to the step S100 to continue monitoring.
And switching to the optimal WIFI, namely connecting the optimal WIFI. In the method for connecting the WIFI, the WIFIManager provides a connect method, which comprises the following steps:
public void connect(WIFIConfiguration config, ActionListenerlistener)
when the method is called, a snoop is transmitted, by means of which the upper layer is informed when a connection is made or when there are other connection events.
If the electronic equipment is not in the condition of large flow, the step is automatically switched in the background, and Toast (prompt information similar to a prompt box) is popped up to inform the user after the switching is finished. If the electronic equipment is in a large flow condition, data transmission is large, such as watching a video, downloading a file or a video and the like. In the step, the user can be prompted by popping the frame first, so that the user can decide whether to switch the WIFI network, the switching is automatically switched to the optimal WIFI in the background, and then the user is not prompted any more.
In this embodiment, the download trigger condition is that the download rate of the current WIFI signal is continuously lower than the third expected value C, the rate fluctuation range is smaller than the fourth expected value D, and the duration time exceeds the time threshold T. In this embodiment, the download trigger condition may be three cases, that is, any one of the duration that the download rate is lower than the third expected value C or the duration that the rate fluctuation range is smaller than the fourth expected value D exceeds the time threshold T, or both of the durations exceed the time threshold T. The download trigger condition corresponds to a situation when the electronic device is in continuous file download and the rate does not reach the desired download rate. In one embodiment, the third expected value C is 50 kb/s, the fourth expected value D is 10 kb/s, and the time threshold T is 15 seconds. If the downloading speed is stabilized at 35-40 kb/s and lasts for 15 seconds, the downloading triggering condition of WIFI intelligent switching is achieved. If each download is expected, the background service can search for the fastest WIFI at present, and the third expected value C can be set higher.
The step S300 specifically includes:
step S310, judging whether a WIFI signal meeting intelligent switching is acquired, if so, executing step S320; otherwise, the process is not executed, the process is ended, and the process returns to the step S100. The details of this step are the same as those of step S210, and are not described herein.
And S320, comparing the WIFI signals meeting the intelligent switching, and finding out the optimal WIFI. The details of this step are the same as those of step S320, and are not described herein.
Step S330, judging whether the optimal WIFI is the WIFI cancelled by the user: if yes, processing is not carried out, the process is ended, and the step S100 is returned; otherwise, step S340 is performed.
If the optimal WIFI is the WIFI which has been cancelled by the user before, it is indicated that the user does not want to connect the WIFI (some WIFI has potential safety hazards or other problems are cancelled by the user), and the current WIFI is not switched. If not, step S340 may be performed.
Step S340, prompting switchable WIFI and intensity and rate information thereof, and detecting whether a user selects switching: if so, step 230 is executed, otherwise, step S350 is executed.
This step is the case of downloading, and the user may desire to switch or may be bothersome to not switch. Therefore, a prompt box can be popped out to inform a user of finding out more optimal WIFI, and the name, signal strength, speed and other information of the WIFI are attached, so that the user can select whether to switch. Here, the handover may be performed according to step 230.
And S350, recording the MAC address of the currently connected WIFI and the MAC address of the optimal WIFI. And then, the process is not processed, and the process is ended.
And recording MAC addresses of the WIFI network and the WIFI network so as to be convenient for use when the follow-up WIFI signal meeting intelligent switching is compared. Duplicate acquisitions of MAC addresses may be reduced.
It should be understood that once the connection of the WIFI is started and the WIFI intelligent switching mode is started, the background system can always run, monitor the current WIFI state and judge whether the triggering condition of the intelligent switching is achieved. After the process is finished each time, the process returns to step S100 to continue monitoring and determining. And only when the WIFI is turned off, or the WIFI is not connected, or the WIFI intelligent switching mode is exited, the monitoring and judging states are completely turned off, and the corresponding background service is turned off. The expected value (A, B, C, D), the intensity set value strength, the intensity threshold, the rate set value speed, the rate threshold and the like mentioned in the above embodiment can be default values before the electronic device leaves a factory, and a setting interface can also be provided for a user to set and store, so that the WIFI intelligent switching can better meet the personalized requirements of the user. The background service determines thresholds and desired values for each situation based on these values.
Based on the foregoing intelligent WIFI switching method for electronic devices, an embodiment of the present invention further provides an electronic device using the intelligent WIFI switching method, please refer to fig. 3, where the electronic device includes a monitoring trigger module 10, a strong and weak switching module 20, and a download switching module 30; and the monitoring trigger module 10 is used for monitoring the current WIFI state and judging whether the current WIFI state reaches the trigger condition of intelligent switching when the WIFI intelligent switching mode is started. When the strong and weak trigger conditions are met, the strong and weak switching module 20 searches for the WIFI with the optimal signal for switching. When the download triggering condition is met, the download switching module 30 searches for WIFI with an optimal signal and prompts the download rate, and selects switching according to user operation.
In a further embodiment, the electronic device further includes a prompt module 40, configured to prompt a user whether to start a WIFI intelligent switching mode when the WIFI is turned on and a WIFI is successfully connected. The prompt module 40 is also used to implement all the above-mentioned pop-box prompts.
In a further embodiment, the electronic device further includes a setting module 50, configured to provide a setting interface for a user to set and store a desired value (A, B, C, D), an intensity setting value strength, an intensity threshold, a rate setting value speed, a rate threshold, and the like.
In summary, the present invention respectively performs corresponding WIFI switching according to the strong and weak trigger conditions and the download trigger conditions, provides a more flexible and intelligent WIFI switching manner for the WIFI use environment of the user, performs switching according to the user's will during downloading, and avoids affecting the current downloading; the switching requirement of the user on the WIFI signal is greatly facilitated, and the problem that the existing electronic equipment cannot intelligently switch the WIFI according to the use requirement is solved.
The division of the functional modules is only used for illustration, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the functions may be divided into different functional modules to complete all or part of the functions described above.
It will be understood by those skilled in the art that all or part of the processes of the above methods may be implemented by hardware instructions of a computer (electronic device) program, which may be stored in a computer (electronic device) readable storage medium, and when the program is executed, the processes of the above methods may be included. The storage medium may be a magnetic disk, an optical disk, etc.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.

Claims (9)

1. A WIFI intelligent switching method of electronic equipment is characterized by comprising the following steps:
step A, when a WIFI intelligent switching mode is started, monitoring the current WIFI state and judging whether a triggering condition of intelligent switching is reached;
b, searching WIFI with optimal signals for switching when the strong and weak trigger conditions are met;
step C, when a download triggering condition is met, acquiring WIFI signals meeting intelligent switching, searching for WIFI with optimal signals, prompting a download rate, and selecting switching according to user operation; when downloading, popping up a prompt box to inform a user of finding better WIFI, and attaching the name, signal strength and rate of the WIFI to enable the user to select whether switching is performed or not; the WIFI signal meeting the intelligent switching is the connected WIFI and is stored, and the intensity of the WIFI signal reaches or is greater than the intensity set value compared with the intensity of the currently connected WIFI signal, and the download rate of the WIFI signal reaches or is greater than the rate set value compared with the download rate of the currently connected WIFI signal;
the step B specifically comprises the following steps:
step B1, judging whether a WIFI signal meeting the intelligent switching is acquired, if so, executing step B2; otherwise, the process is not processed, and the process is ended;
step B2, comparing WIFI signals meeting intelligent switching, and finding out the optimal WIFI; converting the signal strength into a numerical value of RSSI measurement, and then comparing;
step B3, switching the current WIFI to the optimal WIFI, and prompting after switching is completed;
finishing the process, and returning to the step A to continue monitoring;
and the user selects not to switch, and records the MAC address of the currently connected WIFI and the MAC address of the optimal WIFI so as to be used when the WIFI signals meeting intelligent switching are compared in the following process.
2. The method for WIFI intelligent switching of an electronic device of claim 1, further comprising, before said step a:
and starting WIFI, connecting the WIFI successfully, and prompting a user whether to start a WIFI intelligent switching mode.
3. The WIFI intelligent switching method of an electronic device according to claim 1, wherein the strong and weak trigger conditions are: the intensity of the current WIFI signal is lower than a first expected value, or the downloading rate of the WIFI signal is lower than a second expected value but the WIFI signal is not downloaded.
4. A WIFI intelligent switching method for electronic devices according to claim 3, wherein in step B1, the method for determining the WIFI signal meeting the intelligent switching specifically includes:
step B11, judging whether the WIFI is connected or not and storing the WIFI;
step B12, judging whether the intensity of the new WIFI signal is compared with the intensity of the currently connected WIFI signal and reaches or is greater than an intensity set value;
and step B13, judging whether the download rate of the new WIFI signal is compared with the download rate of the currently connected WIFI signal and reaches or is greater than a rate set value.
5. The WIFI intelligent switching method of an electronic device according to claim 3, wherein the download trigger conditions are: the downloading rate of the current WIFI signal is continuously lower than the third expected value, the rate fluctuation range is smaller than the fourth expected value, and the duration time exceeds the time threshold.
6. The WIFI intelligent switching method of the electronic device according to claim 5, wherein the step C specifically comprises:
step C1, judging whether a WIFI signal meeting the intelligent switching is acquired, if so, executing step C2; otherwise, the process is not processed, and the process is ended;
step C2, comparing WIFI signals meeting intelligent switching, and finding out the optimal WIFI;
step C3, judging whether the optimal WIFI is the WIFI cancelled by the user: if yes, processing is not carried out, and the process is ended; otherwise, executing step C4;
step C4, prompting switchable WIFI and intensity and rate information thereof, and detecting whether the user selects switching: if so, executing the step B3, otherwise, executing the step C5;
and C5, recording the MAC address of the currently connected WIFI and the MAC address of the optimal WIFI.
7. An electronic device for implementing the intelligent WIFI switching method of claim 1, wherein the electronic device comprises a monitoring trigger module, a strong and weak switching module and a downloading switching module;
the monitoring triggering module is used for monitoring the current WIFI state and judging whether the triggering condition of intelligent switching is reached or not when the WIFI intelligent switching mode is started;
when the strong and weak trigger conditions are met, the strong and weak switching module searches for WIFI with optimal signals to switch;
and when the download triggering condition is met, the download switching module searches for WIFI with the optimal signal, prompts the download rate and selects switching according to user operation.
8. The electronic device of claim 7, further comprising a prompting module configured to prompt a user whether to start a WIFI smart switching mode when WIFI is turned on and a WIFI connection is successfully made.
9. The electronic device of claim 7, further comprising a setting module for providing a setting interface for a user to set and save the desired value, the intensity setting value, the intensity threshold value, the rate setting value d, and the rate threshold value.
CN201611132128.9A 2016-12-09 2016-12-09 Electronic equipment and WIFI intelligent switching method thereof Active CN106792940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611132128.9A CN106792940B (en) 2016-12-09 2016-12-09 Electronic equipment and WIFI intelligent switching method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611132128.9A CN106792940B (en) 2016-12-09 2016-12-09 Electronic equipment and WIFI intelligent switching method thereof

Publications (2)

Publication Number Publication Date
CN106792940A CN106792940A (en) 2017-05-31
CN106792940B true CN106792940B (en) 2020-08-11

Family

ID=58879542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611132128.9A Active CN106792940B (en) 2016-12-09 2016-12-09 Electronic equipment and WIFI intelligent switching method thereof

Country Status (1)

Country Link
CN (1) CN106792940B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100505916C (en) * 2005-11-18 2009-06-24 联想(北京)有限公司 Link switching method
CN101895967A (en) * 2010-07-21 2010-11-24 中兴通讯股份有限公司 WIFI-based document downloading method and device thereof
CN102769881B (en) * 2011-05-06 2015-07-08 华为终端有限公司 Mobile terminal, network switching method of mobile terminal and network server
CN103501507B (en) * 2013-09-05 2017-08-15 小米科技有限责任公司 A kind of method and terminal of automatic switchover wireless signal
CN104812022B (en) * 2014-01-23 2018-08-24 宇龙计算机通信科技(深圳)有限公司 A kind of connection method of WIFI hot spot and its device
CN105228226B (en) * 2014-06-20 2019-01-01 深圳Tcl新技术有限公司 The selection method and device of Wi-Fi hotspot
CN106162763B (en) * 2015-04-02 2021-01-29 小米科技有限责任公司 SIM card switching method and device
CN105472706A (en) * 2015-12-09 2016-04-06 小米科技有限责任公司 Method and device for connection establishment

Also Published As

Publication number Publication date
CN106792940A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
KR101706359B1 (en) Method and device for controlling background application
CN110505508B (en) Method and device for displaying state information in smart home operating system
CN107148059B (en) Network connection switching method, storage device and mobile terminal
EP3018950A1 (en) Method and device for adjusting signal strength of router
US20220141311A1 (en) Resource subscription method, device and server, and computer storage medium
CN104796957A (en) Multi-card multi-standby mobile terminal as well as user identification card switching method and user identification card switching device thereof
CN107070727B (en) USB working mode switching method and system of router
US10834559B2 (en) Information processing method for machine-to-machine/man (M2M) application, common services entity (CSE) and application entity (AE)
CN106231595B (en) Wireless hotspot selection method and system
CN106255128B (en) Method and device for optimizing wireless network
CN105897309A (en) Intelligent device matching device and intelligent device
CN104992088A (en) Device security protection method and apparatus
CN113111199B (en) Method and device for continuing playing of multimedia resource, storage medium and electronic device
CN110392412B (en) Network distribution method, device, equipment and medium for Internet of things equipment
RU2615759C2 (en) Method and device for video recording
CN112004220A (en) Bluetooth connection method and system, Bluetooth device and readable storage medium
CN106792940B (en) Electronic equipment and WIFI intelligent switching method thereof
CN107920304B (en) Alarm method and system for wireless microphone, microphone and storage medium
CN112888026B (en) Redirection failure processing method and device, electronic equipment and readable storage medium
CN111093238B (en) Wireless network control method and device, storage medium and electronic equipment
CN113316222A (en) Data processing method and device, electronic equipment and storage medium
CN109951865B (en) WIFI performance diagnosis and feedback method, storage medium and mobile terminal
CN112748837A (en) Toothbrush monitoring method, device, terminal and computer storage medium
CN112130460A (en) Page display method and device and storage medium
CN110913416A (en) Terminal, networking method thereof and computer-readable storage 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
GR01 Patent grant
GR01 Patent grant