CN108834164A - WiFi connection control method, device and equipment, storage medium - Google Patents

WiFi connection control method, device and equipment, storage medium Download PDF

Info

Publication number
CN108834164A
CN108834164A CN201810344908.2A CN201810344908A CN108834164A CN 108834164 A CN108834164 A CN 108834164A CN 201810344908 A CN201810344908 A CN 201810344908A CN 108834164 A CN108834164 A CN 108834164A
Authority
CN
China
Prior art keywords
access point
wifi
signal intensity
terminal
connection
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
Application number
CN201810344908.2A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810344908.2A priority Critical patent/CN108834164A/en
Publication of CN108834164A publication Critical patent/CN108834164A/en
Priority to PCT/CN2019/082974 priority patent/WO2019201263A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

A kind of WiFi connection control method, device and equipment, storage medium, the WiFi connection control method include:After terminal connects WiFi network, obtain the rated signal intensity of the access point of the WiFi network, signal strength section is determined according to the rated signal intensity, obtain the actual signal intensity of the WiFi network of the terminal measurement, when except the actual signal intensity being located at the signal strength section, the terminal disconnects the connection with described access point.Scheme provided by the present application can determine whether to disconnect with the access point according to the rated signal intensity of access point, can preferably reflect current network quality.

Description

WiFi connection control method, device and equipment, storage medium
Technical field
The present invention relates to the communication technology, espespecially a kind of WiFi (Wireless Fidelity, Wireless Fidelity) accesses controlling party Method, device and equipment, computer readable storage medium.
Background technique
With the rise of mobile internet, WiFi plays important work as crucial access technology in real life With.But in actual use, due to WiFi is limited to distance, signal strength of access point etc., the case where access And the performance of network will be different.
Particularly, the network constructions such as present 4G/LTE are highly developed, and under the environment such as subway, public transport WiFi layout And using very extensive.In the network coexisted network environment of WiFi and 4G/LTE, WiFi and 4G/LTE need the network of user The access capability asked is of equal importance.In the environment of high-speed mobile, the coverage density of WiFi is significantly less than 4G/LTE.In addition WiFi Equal Near Field Communication are significantly stronger than 4G/LTE by the interference of surrounding objects, landform, this results in the edge effect of WiFi obvious Be better than 4G/LTE, thus will lead to WiFi access range edge data experience it is bad, cause data traffic interruptions, application A series of the case where influence user's online experiences such as data buffering.But in the design of existing Network access control, WiFi's Access priority is higher than 4G/LTE.Terminal is at the edge of the access range of WiFi, since the access priority of WiFi is high, WiFi is still in connection status, and the 4G/LTE of comparative good-quality network service is then idle, and causes data experience bad.
Summary of the invention
A present invention at least embodiment provides a kind of WiFi connection control method, device and equipment, computer-readable to deposit Storage media can be disconnected with WiFi network in time when network quality is bad.
In order to reach the object of the invention, a present invention at least embodiment provides a kind of WiFi connection control method, including:
After terminal connects WiFi network, the rated signal intensity of the access point of the WiFi network is obtained, according to the volume Determine signal strength and determine signal strength section, the actual signal intensity of the WiFi network of the terminal measurement is obtained, when described When actual signal intensity is located at except the signal strength section, the terminal disconnects the connection with described access point.
A present invention at least embodiment provides a kind of WiFi access control apparatus, including:
Signal strength monitoring module, is set as, and obtains the specified letter of the access point for the WiFi network that the terminal is connected Number intensity, determines signal strength section according to the rated signal intensity;And obtain the reality of the WiFi network of terminal measurement Border signal strength, when except the actual signal intensity being located at the signal strength section, transmission disconnects instruction to institute State link control module;
Link control module is set as, receive it is described disconnect instruction after, disconnect the connection with described access point.
One embodiment of the invention provides a kind of WiFi access control equipment, including memory and processor, the memory It is stored with program, described program realizes the access control of WiFi described in any embodiment when reading execution by the processor Method.
One embodiment of the invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has One or more program, one or more of programs can be executed by one or more processor, to realize any reality Apply WiFi connection control method described in example.
Compared with the relevant technologies, in a present invention at least embodiment, after terminal connects WiFi network, the WiFi net is obtained The rated signal intensity of the access point of network determines signal strength section according to the rated signal intensity, obtains the WiFi network Actual signal intensity, when except the actual signal intensity being located at the signal strength section, the terminal disconnects and institute State the connection of WiFi network.Scheme provided by the present application can determine whether and the access according to the rated signal intensity of access point Point disconnects, can be more compared to the judgment method for using different access points a fixed signal strength threshold in the related technology Good reflection current network quality, in addition, net can also be disconnected in time when (multiple AP amplification effects cause) excessive in signal strength Network connection promotes user experience to access the better network of other performance.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the WiFi connection control method flow chart that one embodiment of the invention provides;
Fig. 2 is the signal strength relation schematic diagram of terminal side and the side AP that one embodiment of the invention provides;
Fig. 3 is the WiFi access control apparatus block diagram that one embodiment of the invention provides;
Fig. 4 is the WiFi connection control method flow chart that one embodiment of the invention provides;
Fig. 5 is the WiFi connection control method flow chart that one embodiment of the invention provides;
Fig. 6 is the WiFi access control equipment block diagram that one embodiment of the invention provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
WiFi in the related technology disconnects strategy:During using WiFi network, according to AP whether also in WiFi It is attached in the range of can scanning, if AP not in the range of WiFi can be scanned, i.e. the AP is arranged in WiFi It has disappeared in table, at this moment selection disconnects AP;If AP enters in the range of WiFi can scan, i.e., the AP is appeared in again In WiFi list, the AP at this moment can be actively connected.
Due to WiFi network quality be not only by end-probing to RSSI (Received Signal Strength Indication, received signal strength indicator) value determines, other factors:The RSSI value of AP, the quality of channel itself and by To interference also influence whether the quality of WiFi network.Specifically:If RSSI is low, rate is low or high (the packet loss of packet loss Rate and rate can evaluate WiFi mass), but rate is low in turn or packet loss is high, and not necessarily RSSI is with regard to low, In the case that RSSI is relatively high, it also will appear the situation that rate is low or packet loss is relatively high, it may be possible to due to interference, channel matter Amount difference or directionality cause.Such as 1, WiFi is accessed in the more situation of people in public, not far from the feelings of AP The RSSI that user receives under condition is relatively high, but the bandwidth that AP can give each user is limited, and results in WiFi network It is second-rate;Such as 2, on the subway or motor-car of high-speed mobile, due to Doppler effect, terminal is caused not parse in time The quality of the signal received out, WiFi network is also poor.
In order to solve the problems, such as that single RSSI because of data inaccuracy caused by interfering with doppler shift effect, utilizes terminal With the correlativity of the RSSI value of access point, current network environment can be judged with assistant reinforcement, thus to provide corresponding plan Slightly come determine disconnect or connect WiFi.
One embodiment of the invention provides a kind of WiFi connection control method, as shown in Figure 1, including:
Step 101, after terminal connection WiFi network, the rated signal intensity of the access point of the WiFi network, root are obtained Signal strength section is determined according to the rated signal intensity;
Step 102, the actual signal intensity for obtaining the WiFi network of terminal measurement, when the actual signal intensity is located at When except the signal strength section, the terminal disconnects the connection with described access point.
WiFi connection control method provided in this embodiment determines signal strength area according to the rated signal intensity of access point Between, when the actual signal intensity that terminal detects is more than that the signal strength section just disconnects, compared to using in the related technology Fixed individual signals intensity threshold, signal strength section is related with rated signal intensity in the application, can preferably embody net Network quality.In addition, signal strength section is the section that the first signal strength and second signal intensity form.In the application, not only The connection with access point is disconnected when actual signal intensity is outer on the left of signal strength section, when outer on the right side of signal strength section Also the connection with access point is disconnected, compared in the related technology, is only broken when actual signal intensity is less than signal strength threshold It opens, when there are multiple AP, the AP of terminal access is acted on by the amplification of other AP, and signal strength is very big at this time, but network matter Bad, still maintenance WiFi connection in the related technology is measured, and uses this embodiment scheme, can be disconnected in time, to access The better network of other performance.
In one embodiment, signal strength section is also possible to signal strength waving interval, and actual signal intensity is in signal Refer to the difference of actual signal intensity and rated signal intensity except signal strength section except intensity interval.
Wherein, the signal strength can be RSSI.Wherein it is possible to obtain specified RSSI from Beacon frame.Furthermore it is possible to Actual signal intensity is obtained from WiFi Service (service).
It is obtained by a large amount of data experiment and experience, the specified RSSI and terminal of the side AP (usually hot spot/router) The RSSI of actual detection has certain linear relationship, which can be used as the index for determining WiFi network quality.It can To obtain the nominal RSSI value (i.e. specified RSSI value, the hereinafter referred to as side AP RSSI value) of the side AP from Beacon frame, and it is corresponding In terminal side, practical RSSI value (abbreviation terminal side RSSI value, similarly hereinafter) can be monitored by WiFi Service to reinforce sentencing Disconnected current network environment.
Fig. 2 show the linear relationship between the side AP and the double RSSI in terminal side, if between the side AP and terminal side RSSI value Linear relationship between two straight lines of y=ax+b (see Fig. 2 middle line 202) and y=cx+d (Fig. 2 middle line 201) (wherein x characterize The RSSI value of the side AP, y characterize the RSSI value of terminal side), it was demonstrated that the consistency of current network is higher, the reception ability and AP of terminal Emissivities it is consistent, terminal can exclude environmental disturbances and direction sexual factor;If linear relationship between this two line, is not said The interference of bright surrounding wireless environment is bigger, and also the directionality between terminal and AP has relationship.And the side AP RSSI value is fixed, this A linear relationship is from the environmental concerns for characterizing terminal and AP to a certain degree.In general, especially indoors in environment, a etc. The space of disturbance fluctuation is just determined in the difference of c, b and d.Wherein, the slope, that is, a and c of two straight lines are empirical value, and b, d can With measured in advance.For example, if the specified RSSI value of AP1 is x1, corresponding signal strength section is [y1, y2] to AP1, The connection with AP1 is disconnected when beyond the section.To AP2, if the specified RSSI value of AP2 is x2, corresponding signal strength area Between be [y3, y4], disconnected and the connection of AP2 when beyond the section.It can be seen that when specified RSSI difference, corresponding signal Intensity interval is also different, so as to preferably reflect that real network quality carries out access control.It should be noted that Fig. 2 is only Example, in other embodiments, the figure that the upper limit in its signal strength section different AP may also be constituted is not y=ax+b, and It is a curve, the figure not instead of y=cx+d that the lower limit in its signal strength section different AP is constituted, a curve.To single AP, Its signal strength section can be determined according to above-mentioned y=ax+b, y=cx+d, can also directly establish signal strength section and volume Determine the mapping table of signal strength, table look-at obtains its signal strength section.Specifically, described obtain the rated signal The corresponding signal strength section of intensity includes:
According to the first linear relationship curve (such as y=ax+b) of preset rated signal intensity and actual signal intensity, The corresponding first actual signal intensity of the rated signal intensity of the access point of the WiFi network is determined, according to preset specified letter Second linear relationship curve (for example, y=cx+d) of number intensity and actual signal intensity, determines the access point of the WiFi network The corresponding second actual signal intensity of rated signal intensity, the first actual signal intensity and second actual signal are strong The section that degree is constituted is the signal strength section;
Alternatively, determining the rated signal according to the mapping table of the rated signal intensity and signal strength section that prestore The corresponding signal strength section of intensity.
In one embodiment, in order to cope with spacious mobile context, using the detection of Beacon (beacon) frame as judgement is It is no move close or remote from judgment criteria.Beacon frame relatively close to WiFi bottom, can quick sensing and comprehensive descision it is current Change of network environment.Therefore, it can use the judgement that Beacon frame carrys out Strengthens network quality.The transmission of Beacon frame is located at MAC layer, time delay is relatively small, and data perception is sensitive, can be than the performance of more objective reflection terminal.The method also includes: When the duration that the terminal does not listen to the beacon frame of the access point of the WiFi network reaching the first preset time, break Open the connection with described access point;Alternatively, after the terminal sends probe request to described access point, when first is default When the interior probing response frame for not receiving described access point return, the connection with described access point is disconnected.First preset time It can be set as needed, for example be set as 4s, terminal can be previously written, it can also be by user setting.Timing can be used Device carries out timing, when beginning listening for, starts timer, if the timer time reaches the first preset time, port and access The connection of point.
In another embodiment, network quality can also be judged using packet loss, packet loss also can be used as letter The judgment basis of road conflict spectrum.Packet loss can be obtained from the WiFi Service (service) of relatively close driving, time delay It is relatively small, and data perception is sensitive, it can be than the performance of more objective reflection terminal.The method also includes servicing from WiFi The packet loss for obtaining the terminal, when the packet loss of the terminal be greater than packet loss threshold value duration reach second it is default when Between when, disconnect and the connection of described access point.Second preset time can be set as needed, for example be set as 3s.Packet loss Threshold value can be set as needed, for example be set as 50%.Above-mentioned parameter can be previously written terminal, can also be set by user It sets.When detecting that packet loss is more than or equal to 50%, starting timer carries out timing and loses in timing course if detected Timer is then reset and is stopped less than 50% by packet rate.If reaching the second preset time when timer, show packet loss Duration more than or equal to 50% reaches the second preset time, disconnects the connection with described access point at this time.In the present embodiment, from WiFi service acquisition packet loss, time delay is small, and compared to the mode for obtaining packet loss from upper layer (application layer), time delay is small, and reflection is sensitive, The connection with access point can be disconnected in time when network quality is bad.
It in another embodiment, after the terminal disconnects the connection with described access point, further include when waiting third default Between after, reacquire terminal measurement the WiFi network actual signal intensity, if reacquire actual signal intensity position Within the signal strength section, the connection with described access point is initiated.I.e. after network performance recovery, the company of re-starting It connects.Certainly, if continued waiting for also except signal strength section, continuing waiting for the time can be third preset time, It can be another duration, the subsequent waiting time can be determined based on binary system back off algorithm.Third preset time can basis It needs to set, for example is 30s.The parameter can be previously written terminal, can also be by user setting.
It in another embodiment, after the terminal disconnects the connection with described access point, further include when waiting third default Between after, when the terminal listens to the beacon frame of described access point in the 4th preset time, initiate with described access point Connection, alternatively, the terminal sends probe request to described access point and when the 4th is default after waiting third preset time When the interior probing response frame for receiving described access point return, the connection with described access point is initiated.It is described 4th it is default when Between can be set as needed, for example be 2s.Generally, the 4th preset time of setting is less than the first preset time, when the end End is not when listening to the beacon frame of described access point in the 4th preset time, alternatively, the terminal send probe request to Described access point and do not received in the 4th preset time described access point return probing response frame when, continue waiting for, after The continuous time waited can be third preset time, be also possible to other times, for example, based on the determination of binary system back off algorithm after The continuous waiting time.
It in another embodiment, further include the specified letter for obtaining alternative access point after disconnecting the connection with described access point Number intensity, the signal strength section of alternative access point is determined according to the rated signal intensity of the alternative access point, it is standby to detect this The actual signal intensity of access point is selected, if the actual signal intensity of the alternative access point is located at the letter of the alternative access point Within number intensity interval, then the connection with the alternative access point is initiated.Herein be multiple access points the case where, with currently connect After access point disconnects, other access points can be accessed.It should be noted that it is merely illustrative herein, it can also take in the related technology Cut-in method access other access points.
It in another embodiment, further include listening to alternative access point, when described after disconnecting the connection with described access point When terminal listens to the beacon frame of the alternative access point in the 4th preset time, the company with the alternative access point is initiated It connects.
In one embodiment of the invention, a kind of control method of WiFi access is provided, in poor shape network is avoided, exists as far as possible WiFi connection state is connected when good using WiFi, including:
After terminal connects WiFi network, according to the quality for being currently accessed WiFi network to determine whether disconnecting WiFi net The connection of network.Wherein, the WiFi network mass parameter includes Beacon frame losing duration, packet loss, signal strength.When When terminal detects actual signal intensity beyond signal strength section or the Beacon frame frame losing duration of the side AP reaches first When the duration that preset time or packet loss are greater than packet loss threshold value reaches the second preset time, disconnects current WiFi and connect It connects.
The program can in some specific network environments, especially high-speed mobile, the more, WiFi of WiFi interference accidentally compared with In weak situation, good user experience is able to maintain under WiFi roaming environments.
As shown in figure 3, one embodiment of the invention provides a kind of WiFi access control apparatus, including:
Signal strength monitoring module 301, is set as, and obtains the specified of the access point for the WiFi network that the terminal is connected Signal strength determines signal strength section according to the rated signal intensity;And obtain the WiFi network of terminal measurement Actual signal intensity, when except the actual signal intensity being located at the signal strength section, transmission disconnects instruction extremely The link control module 302;
Link control module 302, is set as, receive it is described disconnect instruction after, disconnect the company with described access point It connects.
In one embodiment, signal strength monitoring module 301 obtains actual signal intensity from WiFi Service broadcast, Actual signal intensity is such as RSSI value.
In another embodiment, the WiFi access control apparatus further includes:Frame monitoring module 303, the frame monitor mould Block 303 is set as, and the beacon frame of described access point broadcast is listened to, when the duration for the beacon frame for not listening to described access point When reaching the first preset time, transmission disconnects instruction to the link control module;Alternatively, sending probe request to institute Access point is stated, when the first preset time does not receive the probing response frame of described access point return, transmission disconnects instruction To the link control module.In addition, being obtained from beacon frame specified after frame monitoring module 303 is also used to listen to beacon frame Signal strength is sent to signal strength monitoring module 301.
In another embodiment, the WiFi access control apparatus further includes:Packet loss monitoring module 304, the packet loss Rate monitoring module 304 is set as, and the packet loss of the terminal is obtained from WiFiService, when the packet loss of the terminal is greater than When duration equal to packet loss threshold value reaches the second preset time, transmission disconnects instruction to the link control module 302.Wherein, the packet loss of the terminal is obtained from WiFi Service broadcast.
In one embodiment, it may also include Timer module 305, which is used for described to not listening to The beacon frame time of access point carries out timing, and, the duration for being more than or equal to packet loss threshold value to packet loss carries out timing. Timer module 305 may include multiple timers.It should be noted that the module also can be omitted, in 303 He of frame monitoring module Timer is directly arranged in packet loss monitoring module 304.
Application example one
In the present embodiment, the concurrent free switching of terminal WiFi and 3GPP data service, in concurrent time section, if WiFi Connection it is bad, then disconnect WiFi, automatically switch to 3GPP network;If the connection of WiFi restores normal, reconnect WiFi network.
As shown in figure 4, including:
Step 401, terminal is defaulted after powering opens low-quality strategy switch, according to the user's choice or automatically accesses One WiFi network;
It should be noted that low-quality strategy switch can also be not provided with, directly accessed using WiFi provided by the present application Control function.
Step 402, start to monitor, the starting of frame monitoring module, the starting of packet loss monitoring module, signal strength monitoring module opens It is dynamic, while the state of the instantiation parameter of WiFi Service is listened to, wherein:
Frame monitoring module records last time and this receiving time of Beacon frame, and calculating difference, and parsing Beacon frame obtains Specified RSSI value is obtained, signal strength monitoring modular is passed to;In addition, Beacon frame monitoring module can incite somebody to action after receiving Beacon frame Reset message passes to the first timer, the first timer initiation timing;
Packet loss monitoring and statistical module from the WiFi Service of instantiation obtain current packet loss, if described lose Packet rate is greater than preset threshold, then reset message is passed to the second timer, the second timer initiation timing;The preset threshold For example be 50%, it is merely illustrative herein, it can be set as needed.If packet loss is less than preset threshold, by the second timing Device is reset, and stops the second timer;
Signal strength monitoring module obtains terminal side RSSI value and the transmitting of frame monitoring module from instantiation WiFi Service Come over the side AP RSSI value, after obtaining the data in certain data volume or certain period of time, generates signal strength section, judges end Whether end side RSSI is more than signal strength section;
Step 403, if the first timer reaches the first preset time, alternatively, when the second timer arrival second is default Between, alternatively, RSSI monitoring modular judges that the RSSI of terminal side is more than signal strength section, when one of them meets, go to step 404, otherwise, return step 402;
Step 404, opening operation is executed;
Step 405, third timer initiation, terminal will not be initiated actively and the company of the SSID in third preset time It connects, i.e. terminal WiFi enters dormant period, and third timer reaches third preset time, the WiFi net before attempting to once again listen for Network.
Step 406, frame monitoring module executes policer operation, starts the first timer, listens to whether the side AP has Beacon frame It issues, the operation of signal strength monitoring module obtains the side AP RSSI value and terminal side RSSI value, if the first timer reaches the 4th Beacon frame is received before preset time, alternatively, terminal side RSSI value is in signal strength section, executes step 407, if the One timer reaches the 4th preset time and does not receive Beacon frame, return step 405 also, if terminal side RSSI value is more than letter Number intensity interval, return step 405;
In one embodiment, the 4th preset time of setting is less than the first preset time, for example, being set as 2s.
Step 407, attended operation is executed, current WiFi network is accessed, continues to step 402 after connection and be monitored.
A kind of strategy is given below:
The loss situation and implementation strategy of terminal monitoring Beacon frame are as follows:Beacon frame is sent once, such as every 1 millisecond Fruit Beacon frame loss for 4 seconds, just disconnects the connection with the WiFi network.Continue 30 seconds after disconnecting, within 30 seconds, eventually End will not actively initiate the connection with the WiFi network, after the 30 seconds, continue to monitor Beacon frame, connect if within 2 seconds Beacon frame is received, the automatic connection with the WiFi network is just actively initiated;If not receiving Beacon frame also at 2 seconds, The automatic connection with the WiFi network will not actively be initiated.It can continue waiting for
A kind of implementation strategy of terminal monitoring packet loss is as follows:If packet loss is more than or equal to 50% for 3 seconds, just disconnection With the connection of the WiFi network.
The calculation and implementation strategy of double RSSI is as follows, this is sentenced for differential technique:When connecting for the first time, obtain AP and The data of RSSI, for example the data of beacon broadcast of the side AP are -20dbm, and that terminal receives is -25dbm, then herein Slope it is available be 1, then the sensor (motion sensor, gyro sensor) of terminal judges the movement of user at that time State reacquires both lower value when motion state is opposing stationary, for example is respectively -20dbm, -45dbm, this fluctuation Range can be taken as [- 5, -25], and corresponding signal strength section is [- 25, -45], i.e., subsequent fluctuation is just in this section Often, not caused by this section can be judged as abnormal interference, when persistent anomaly interference is more than that this range just disconnects network company It connects.
In the specific implementation, can be continued to obtain corresponding number with the mode of registration broadcast by taking android system as an example According to, for example, using broadcast recipient persistently listen to WiFi Service obtain WiFi bottom state, and frame monitoring module, The data broadcasting that packet loss monitoring module, signal strength monitoring module need is gone out.Alternatively, it is also possible to use monitoring kernel log Method carry out detecting data.For example, record has the status data of WiFi bottom in kernel log, can make in Android kernel Log output is carried out with printk function.
Application example two
In the present embodiment, terminal free switching, that is, WiFi roaming in different WiFi environment.Multiple hot spots of operator Or the different hot spots of multiple operators, when being evenly distributed on certain section of route, user is after connecting a Wi-Fi hotspot, it is desirable to In moving process in free switching to other Wi-Fi hotspots.The data of the roaming scence of WiFi and above-mentioned WiFi and 3GPP business Handoff scenario is similar, and uniquely the difference is that, during actual user's usage scenario, upper layer is used in the disconnection or reconnection of WiFi The perception at family is moment, and user experience is seamless switching in other words.
The Beacon frame of the hot spot broadcast of different operators has different marks, most notably SSID (Service Set Identifier, service set), identical carrier network SSID having the same, and the difference for identifying such hot spot exists In BSSID (Basic Service Set Identifier, Basic Service Set Identification)
As shown in figure 5, WiFi connection control method provided in this embodiment includes:
Step 501, terminal is defaulted after powering opens low-quality strategy switch, according to the user's choice or automatically accesses One WiFi network;
It should be noted that low-quality strategy switch can also be not provided with, directly accessed using WiFi provided by the present application Control function.
Step 502, start to monitor, the starting of frame monitoring module, the starting of packet loss monitoring module, signal strength monitoring module opens It is dynamic, while WiFi Service is listened to, wherein:
Frame monitoring module records last time and this receiving time of Beacon frame, and calculating difference, and parsing Beacon frame obtains Specified RSSI value is obtained, signal strength monitoring modular is passed to;In addition, Beacon frame monitoring module can incite somebody to action after receiving Beacon frame Reset message passes to the first timer, the first timer initiation timing;
Packet loss monitoring and statistical module from the WiFi Service of instantiation obtain current packet loss, if described lose Packet rate is greater than preset threshold, then reset message is passed to the second timer, the second timer initiation timing;The preset threshold For example be 50%, if packet loss is less than or equal to preset threshold, the second timer is reset;
Signal strength monitoring module obtains terminal side RSSI value and the transmitting of frame monitoring module from instantiation WiFi Service Come over the side AP RSSI value, after obtaining the data in certain data volume or certain period of time, generates signal strength section, judges end Whether end side RSSI is more than signal strength section;
Step 503, if the first timer reaches the first preset time, alternatively, when the second timer arrival second is default Between, alternatively, RSSI monitoring modular judges that the RSSI of terminal side is more than signal strength section, when one of them meets, go to step 504, otherwise, return step 502;
Step 504, AP hot point inspection or search are initiated;
Step 505, if only searching an AP hot spot, judge its SSID/BSSID and the WiFi network currently connected is It is no consistent, if unanimously, executing step 506, otherwise, execute step 507;
Step 506, opening operation is executed, is terminated;
Step 507, alternative hotspot list is generated or updated, an alternative hot spot is selected, which is monitored;
Step 508, frame monitoring module executes policer operation, starts the first timer, the side AP for listening to the alternative hot spot is No to have the sending of Beacon frame, the operation of signal strength monitoring module obtains the side AP RSSI value and terminal side RSSI value, if the first meter When device reach the 4th preset time before receive Beacon frame, alternatively, terminal side RSSI value is in signal strength section, execute step Rapid 509, if the first timer reaches the 4th preset time and does not receive Beacon frame, return step 507, from alternative hot spot also Next alternative hot spot is selected to be monitored in list, if terminal side RSSI value is more than signal strength section, return step 507, select next alternative hot spot to be monitored from alternative hotspot list;
Step 509, the WiFi network currently connected is disconnected, connection is established with alternative hot spot and continues to step 502 progress Monitoring.
Search or detection are initiated for terminal, it, can be using active scan or the side passively listened in order to reduce power consumption Formula still uses the mode of Beacon frame if passively listening, if it is active scan, then just using Probe (detection) request/probing response frame completes information.
It in one embodiment, can be according to certain preferential grading for multiple alternative hot spots in alternative hotspot list Row sequence, for example be ranked up according to the signal strength that terminal detects, if all alternative hot spots still do not have after all monitoring Optional hot spot then disconnects current WiFi connection.
Wherein, other networks include being not limited only to other WiFi networks, 3GPP network, WiMax network etc..
Wherein, alternative network can be same multiple network elements, be also possible to the different network elements of heterogeneous networks.Alternative net The settable priority of network, priority can determine according to above-mentioned mass parameter, including but not limited to above-mentioned mass parameter.
In one embodiment, a switch option is provided in WiFi function menu, user can choose " ON/OFF " or " ON/ OFF " determines to open or close function provided by the present application.
Wherein, each parameter in the application can using dynamic adjustable strategies according to it is different be successfully connected or disconnect it is secondary Number is adjusted.
The scheme that the application at least embodiment provides, far from after hot spot certain distance, can break in advance in mobile environment Fall connected WiFi, and will not reconnect, especially apart from edge, will not disconnect or connect repeatedly;In some spaces Under environment complicated, interference is more, the bad network of quality can be effectively identified and be disconnected, guarantees the good network of user Experience.
One embodiment of the invention provides a kind of WiFi access control equipment 60, as shown in fig. 6, including memory 610 and place Device 620 is managed, the memory 610 is stored with program, and described program is realized above-mentioned when reading execution by the processor 620 WiFi connection control method described in any embodiment.
One embodiment of the invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has One or more program, one or more of programs can be executed by one or more processor, be realized any of the above-described WiFi connection control method described in embodiment.
The computer readable storage medium includes:It is USB flash disk, read-only memory (ROM, Read-Only Memory), random Access memory (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. are various to can store program The medium of code.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (13)

1. a kind of WiFi connection control method, including:
After terminal connects WiFi network, the rated signal intensity of the access point of the WiFi network is obtained, according to the specified letter Number intensity determines signal strength section, the actual signal intensity of the WiFi network of the terminal measurement is obtained, when the reality When signal strength is located at except the signal strength section, the terminal disconnects the connection with described access point.
2. WiFi connection control method as described in claim 1, which is characterized in that described true according to the rated signal intensity Determining signal strength section includes:
According to the first linear relationship curve of preset rated signal intensity and actual signal intensity, the WiFi network is determined The corresponding first actual signal intensity of the rated signal intensity of access point is strong according to preset rated signal intensity and actual signal Second linear relationship curve of degree, determines corresponding second actual signal of the rated signal intensity of the access point of the WiFi network The section that intensity, the first actual signal intensity and the second actual signal intensity are constituted is the signal strength area Between;
Alternatively, determining the rated signal intensity according to the mapping table of the rated signal intensity and signal strength section that prestore Corresponding signal strength section.
3. WiFi connection control method as described in claim 1, which is characterized in that the method also includes:When the terminal When not listening to duration of the beacon frame of the access point of the WiFi network and reaching the first preset time, disconnection connects with described The connection of access point;Alternatively, not received in the first preset time after the terminal sends probe request to described access point When the probing response frame returned to described access point, disconnect and the connection of described access point.
4. WiFi connection control method as described in claim 1, which is characterized in that the method also includes servicing from WiFi The packet loss for obtaining the terminal reaches second in advance when the duration that the packet loss of the terminal is more than or equal to packet loss threshold value If when the time, disconnecting the connection with described access point.
5. WiFi connection control method as described in claim 1, which is characterized in that the terminal disconnects and described access point It after connection, further include after waiting third preset time, reacquiring the actual signal intensity of the WiFi network of terminal measurement, If the actual signal intensity reacquired is located within the signal strength section, the connection with described access point is initiated.
6. WiFi connection control method as described in claim 1, which is characterized in that the terminal disconnects and described access point After connection, further include, after waiting third preset time, when the terminal listens to described access point in the 4th preset time When beacon frame, the connection with described access point is initiated, alternatively, the terminal sends probe requests thereby after waiting third preset time Frame received to described access point and in the 4th preset time described access point return probing response frame when, initiate with it is described The connection of access point.
7. claim 1,3 or 4 it is any as described in WiFi connection control method, which is characterized in that disconnect and described access point Connection after, further include the rated signal intensity for obtaining alternative access point, according to the rated signal intensity of the alternative access point The signal strength section for determining alternative access point obtains the actual signal intensity of the alternative access point, if the alternative access The actual signal intensity of point is located within the signal strength section of the alternative access point, then initiates and the alternative access point Connection.
8. claim 1,3 or 4 it is any as described in WiFi connection control method, which is characterized in that disconnect and described access point Connection after, further include listening to alternative access point, when the terminal listens to the letter of alternative access point in the 4th preset time When marking frame, the connection with the alternative access point is initiated.
9. a kind of WiFi access control apparatus, which is characterized in that including:
Signal strength monitoring module, is set as, and the rated signal for obtaining the access point for the WiFi network that the terminal is connected is strong Degree, determines signal strength section according to the rated signal intensity;And obtain the practical letter of the WiFi network of terminal measurement Number intensity, when except the actual signal intensity being located at the signal strength section, transmission disconnects instruction to the company Connect control module;
Link control module is set as, receive it is described disconnect instruction after, disconnect the connection with described access point.
10. WiFi access control apparatus as claimed in claim 9, which is characterized in that the WiFi access control apparatus also wraps It includes:Frame monitoring module, the frame monitoring module are set as, and listen to the beacon frame of described access point broadcast, described when not listening to When the duration of the beacon frame of access point reaches the first preset time, transmission disconnects instruction to the connection and controls mould Block;Alternatively, sending probe request to described access point, the detection of described access point return is not received in the first preset time When response frame, transmission disconnects instruction to the link control module.
11. the WiFi access control apparatus as described in claim 9 or 10, which is characterized in that the WiFi access control apparatus Further include:Packet loss monitoring module, the packet loss monitoring module are set as, from the packet loss of terminal described in WiFi service acquisition Rate sends and disconnects when the duration that the packet loss of the terminal is more than or equal to packet loss threshold value reaching the second preset time Link order is to the link control module.
12. a kind of WiFi access control equipment, which is characterized in that including memory and processor, the memory is stored with journey Sequence, described program realize WiFi access control as described in any of the claims 1 to 8 when reading execution by the processor Method.
13. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any WiFi connection control method.
CN201810344908.2A 2018-04-17 2018-04-17 WiFi connection control method, device and equipment, storage medium Pending CN108834164A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810344908.2A CN108834164A (en) 2018-04-17 2018-04-17 WiFi connection control method, device and equipment, storage medium
PCT/CN2019/082974 WO2019201263A1 (en) 2018-04-17 2019-04-17 Wifi access control method, apparatus and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810344908.2A CN108834164A (en) 2018-04-17 2018-04-17 WiFi connection control method, device and equipment, storage medium

Publications (1)

Publication Number Publication Date
CN108834164A true CN108834164A (en) 2018-11-16

Family

ID=64155044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810344908.2A Pending CN108834164A (en) 2018-04-17 2018-04-17 WiFi connection control method, device and equipment, storage medium

Country Status (2)

Country Link
CN (1) CN108834164A (en)
WO (1) WO2019201263A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149158A (en) * 2019-05-14 2019-08-20 深圳市亿联智能有限公司 A kind of pinpoint accuracy WiFi module detection method
CN110290596A (en) * 2019-06-28 2019-09-27 南昌黑鲨科技有限公司 Network channel control method, system, intelligent terminal and computer readable storage medium
WO2019201263A1 (en) * 2018-04-17 2019-10-24 中兴通讯股份有限公司 Wifi access control method, apparatus and device, and storage medium
CN110943892A (en) * 2019-12-27 2020-03-31 海信集团有限公司 Network access method, intelligent household equipment and storage medium
CN111465084A (en) * 2020-06-01 2020-07-28 杭州鸿雁智能科技有限公司 Access method and device of equipment, storage medium and processor
CN111491337A (en) * 2019-01-28 2020-08-04 青岛海信移动通信技术股份有限公司 Hotspot switching method and device
CN111757275A (en) * 2020-06-05 2020-10-09 海尔优家智能科技(北京)有限公司 Device connection method and device, storage medium and electronic device
CN111866994A (en) * 2020-07-26 2020-10-30 广云物联网科技(广州)有限公司 Method and device for rapidly distributing network at hot spot
CN112566173A (en) * 2020-12-02 2021-03-26 深圳创维数字技术有限公司 Signal measurement method based on Mesh network, wireless access point and storage medium
CN114006845A (en) * 2020-07-14 2022-02-01 芜湖美的厨卫电器制造有限公司 Control method and control device for household appliance, household appliance and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254135A (en) * 2011-06-21 2011-11-23 国民技术股份有限公司 Method, device and system for control distance
CN104080012A (en) * 2014-06-30 2014-10-01 广东欧珀移动通信有限公司 Method, device and system for controlling multiple display devices
CN105792290A (en) * 2014-12-23 2016-07-20 乐视移动智能信息技术(北京)有限公司 Method and device for controlling intelligent terminal to perform wireless roaming

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497659B (en) * 2011-12-05 2014-08-13 中国电信股份有限公司 Method and system for network selection under dual-network coverage, and dual-mode terminal
CN102711164B (en) * 2012-05-15 2015-05-13 上海交通大学无锡研究院 Intelligent management method for data communication link of mobile terminal
US9414301B2 (en) * 2013-04-26 2016-08-09 Telefonaktiebolaget Lm Ericsson (Publ) Network access selection between access networks
CN104427538B (en) * 2013-08-19 2019-07-09 中兴通讯股份有限公司 A kind of method and device of the terminal energy-efficient treatment of band WIFI
CN107396378B (en) * 2016-05-17 2021-08-17 中兴通讯股份有限公司 Control method and terminal
CN108834164A (en) * 2018-04-17 2018-11-16 中兴通讯股份有限公司 WiFi connection control method, device and equipment, storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254135A (en) * 2011-06-21 2011-11-23 国民技术股份有限公司 Method, device and system for control distance
CN104080012A (en) * 2014-06-30 2014-10-01 广东欧珀移动通信有限公司 Method, device and system for controlling multiple display devices
CN105792290A (en) * 2014-12-23 2016-07-20 乐视移动智能信息技术(北京)有限公司 Method and device for controlling intelligent terminal to perform wireless roaming

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019201263A1 (en) * 2018-04-17 2019-10-24 中兴通讯股份有限公司 Wifi access control method, apparatus and device, and storage medium
CN111491337A (en) * 2019-01-28 2020-08-04 青岛海信移动通信技术股份有限公司 Hotspot switching method and device
CN111491337B (en) * 2019-01-28 2022-01-28 青岛海信移动通信技术股份有限公司 Hotspot switching method and device
CN110149158A (en) * 2019-05-14 2019-08-20 深圳市亿联智能有限公司 A kind of pinpoint accuracy WiFi module detection method
CN110290596A (en) * 2019-06-28 2019-09-27 南昌黑鲨科技有限公司 Network channel control method, system, intelligent terminal and computer readable storage medium
CN110943892A (en) * 2019-12-27 2020-03-31 海信集团有限公司 Network access method, intelligent household equipment and storage medium
CN111465084A (en) * 2020-06-01 2020-07-28 杭州鸿雁智能科技有限公司 Access method and device of equipment, storage medium and processor
CN111465084B (en) * 2020-06-01 2022-06-03 杭州鸿雁智能科技有限公司 Access method and device of equipment, storage medium and processor
CN111757275A (en) * 2020-06-05 2020-10-09 海尔优家智能科技(北京)有限公司 Device connection method and device, storage medium and electronic device
CN114006845A (en) * 2020-07-14 2022-02-01 芜湖美的厨卫电器制造有限公司 Control method and control device for household appliance, household appliance and storage medium
CN111866994A (en) * 2020-07-26 2020-10-30 广云物联网科技(广州)有限公司 Method and device for rapidly distributing network at hot spot
CN112566173A (en) * 2020-12-02 2021-03-26 深圳创维数字技术有限公司 Signal measurement method based on Mesh network, wireless access point and storage medium

Also Published As

Publication number Publication date
WO2019201263A1 (en) 2019-10-24

Similar Documents

Publication Publication Date Title
CN108834164A (en) WiFi connection control method, device and equipment, storage medium
JP6517853B2 (en) Method and telecommunication infrastructure for activating inactive cells
RU2504117C2 (en) Method and apparatus for measuring log for minimisation of drive test
JP5922133B2 (en) Method and apparatus for controlling measurement information in 3GPP system
EP2606681B1 (en) Method for small cell discovery in heterogeneous network
US8254337B2 (en) Method and apparatus for power management in handover between heterogeneous networks
US10999770B2 (en) Method and network element for beam-based mobility management
US9008659B1 (en) Cell reselection methods based on tracking area for cellular systems
US20230156573A1 (en) Inter-radio access technology (rat)
US20130115956A1 (en) Location Based Radio Access System Selection
CN110677886B (en) Wireless communication access network switching scheduling method facing edge computing environment
EP2445248A1 (en) Method and device for reporting or acquiring neighbor information
US20140295847A1 (en) Radio communication system, radio terminal, radio station, evolved packet core, and information gathering method
CN110636567B (en) Method, device and base station for evaluating and reporting switching
CN107889066B (en) Cell reselection method, base station and terminal
US9179499B1 (en) Network selection at a wireless communication device in wireless communications based on two or more radio access technologies
WO2016029850A1 (en) Station control
CN101827384B (en) Cell handover method and base station
US20230171656A1 (en) Electronic device, method and storage medium for radio link measurement
CN111954278A (en) Information reporting method and device, mobile terminal and storage medium
US10341922B2 (en) Radio base station and radio terminal
KR20140010698A (en) Apparatus and method of processing ue mobility
JP2011250092A (en) Wireless communication device, base station, wireless communication method, and wireless communication system
CN108924891A (en) A kind of cell determination method, user equipment and the device with store function
KR101386159B1 (en) Method for analyzing cause of dropped call and setup fail call in wireless mobile communication network

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181116