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

CN109089327A - wireless network connecting method, device, terminal and storage medium - Google Patents

wireless network connecting method, device, terminal and storage medium Download PDF

Info

Publication number
CN109089327A
CN109089327A CN201811240355.2A CN201811240355A CN109089327A CN 109089327 A CN109089327 A CN 109089327A CN 201811240355 A CN201811240355 A CN 201811240355A CN 109089327 A CN109089327 A CN 109089327A
Authority
CN
China
Prior art keywords
connection
wifi network
network
history
threshold value
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.)
Granted
Application number
CN201811240355.2A
Other languages
Chinese (zh)
Other versions
CN109089327B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201811240355.2A priority Critical patent/CN109089327B/en
Publication of CN109089327A publication Critical patent/CN109089327A/en
Application granted granted Critical
Publication of CN109089327B publication Critical patent/CN109089327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application discloses a kind of wireless network connecting method, device, terminal and storage mediums, belong to field of terminal technology.The described method includes: obtaining the real-time signal strength of target Wifi network when target Wifi network is arrived in scanning;The corresponding connection threshold value of target Wifi network is obtained, when real-time signal strength is greater than connection threshold value, linking objective Wifi network.The embodiment of the present application is by determining connection threshold value according to the history maximum signal of target Wifi network, so that terminal linking objective Wifi network when real-time signal strength is greater than connection threshold value, the too low probability for causing the relatively slow this case of terminal connection speed to occur of signal strength for reducing Wifi network to be connected, ensure that the connection effect of Wifi network.

Description

Wireless network connecting method, device, terminal and storage medium
Technical field
The invention relates to field of terminal technology, in particular to a kind of wireless network connecting method, device, terminal and Storage medium.
Background technique
With the fast development of radio network technique, wireless access point using more and more extensive, and wireless access point Network coverage is also increasingly wider.
Therefore, it for a band of position, may be covered simultaneously by the wireless network of multiple wireless access point, when terminal is moved When moving to the band of position, which can scan the multiple wireless access point identifications for covering the band of position, based on wirelessly connecing Enter dot sequency from least one wireless access point identification, select a wireless access point identification, the wireless access dot sequency is logical It is often that the history connection data based on the multiple wireless access point having connected before terminal current time are ranked up to obtain;It is based on The wireless access point identification of selection carries out wireless network connection.
Summary of the invention
The embodiment of the present application provides a kind of wireless network connecting method, device, terminal and storage medium, can be used for solving The certainly too low problem for causing terminal connection speed slower of signal strength of Wifi network to be connected in the related technology.Technical solution It is as follows:
According to the embodiment of the present application in a first aspect, providing a kind of wireless network connecting method, which comprises
When Target Wireless fidelity (Wireless Fidelity, WiFi) network is arrived in scanning, the target Wifi net is obtained The real-time signal strength of network, the target Wifi network are the Wifi network that terminal connected in history;
The corresponding connection threshold value of the target Wifi network is obtained, the connection threshold value is according to the target Wifi network History maximum signal determine threshold value, the history maximum signal be scan the target Wifi network in history When the maximum signal that gets;
When the real-time signal strength is greater than the connection threshold value, the target Wifi network is connected.
According to the second aspect of the embodiment of the present application, a kind of wireless network connection device is provided, described device includes:
First obtains module, for obtaining the real-time letter of the target Wifi network when target Wifi network is arrived in scanning Number intensity, the target Wifi network are the Wifi network that terminal connected in history;
Second obtains module, and for obtaining the corresponding connection threshold value of the target Wifi network, the connection threshold value is root According to the threshold value that the history maximum signal of the target Wifi network determines, the history maximum signal is to sweep in history The maximum signal got when retouching the target Wifi network;
Link block, for connecting the target Wifi net when the real-time signal strength is greater than the connection threshold value Network.
According to the third aspect of the embodiment of the present application, a kind of terminal is provided, the terminal includes processor and memory, It is stored at least one instruction in the memory, described instruction is loaded by the processor and executed to realize such as the application the One side and its any wireless network connecting method of alternative embodiment.
According to the fourth aspect of the embodiment of the present application, a kind of computer readable storage medium, the storage medium are provided In be stored at least one instruction, described instruction is loaded by processor and is executed to realize such as the application first aspect and its optional Any wireless network connecting method of embodiment.
Technical solution bring beneficial effect provided by the embodiments of the present application includes at least:
By obtaining the real-time signal strength and target of target Wifi network when terminal scanning is to target Wifi network The corresponding connection threshold value of Wifi network, since connection threshold value is determined according to the history maximum signal of target Wifi network Threshold value, terminal linking objective Wifi network when real-time signal strength is greater than connection threshold value, reduces Wifi network to be connected The too low probability for causing the relatively slow this case of terminal connection speed to occur of signal strength, ensure that the connection effect of Wifi network Fruit.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of terminal provided by one exemplary embodiment of the application;
Fig. 2 is the flow chart for the wireless network connecting method that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart for the wireless network connecting method that another exemplary embodiment of the application provides;
Fig. 4 is the flow chart for the wireless network connecting method that another exemplary embodiment of the application provides;
Fig. 5 is the structural schematic diagram for the wireless network connection device that the application one embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
In the following description when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different attached drawings indicate same or similar Element.Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application Formula.On the contrary, they are only the device and side consistent with some aspects as detailed in the attached claim, the application The example of method.
In the description of the present application, it is to be understood that term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indication or suggestion relative importance.In the description of the present application, it should be noted that unless otherwise specific regulation And restriction, term " connected ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, Or it is integrally connected;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, intermediary can also be passed through It is indirectly connected.For the ordinary skill in the art, the tool of above-mentioned term in this application can be understood with concrete condition Body meaning.In addition, unless otherwise indicated, " multiple " refer to two or more in the description of the present application."and/or" is retouched The incidence relation of affiliated partner is stated, indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A, together When there are A and B, these three situations of individualism B.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Firstly, to the invention relates to some nouns explain:
WiFi information: for distinguishing the information of different WiFi networks.Service set is generally comprised in WiFi information (Service Set Identifier, SSID), Basic Service Set Identification (Basic Service Set Identifier, BSSID), encryption type and signal strength etc..Wherein, SSID is the title of WiFi network, and the title is not unique, can be silent Recognize value or by user's sets itself;BSSID is to provide the matchmaker of wireless access point (Access Point, AP) equipment of WiFi network The address body access control (Media Access Control, MAC), the wireless AP devices can be wireless routing device;Signal Intensity is used to characterize the signal quality of WiFi network.
WiFi environmental information: the WiFi information aggregate being made of at least one WiFi information, for describing designated place week The coverage condition of side WiFi network.For example, A corresponding WiFi environmental information in place is { WiFi information B, WiFi information C, WiFi Information D }, indicate that terminal can scan the signal of WiFi network A, B, C in place A.
It should be noted that the first WiFi environmental information is the WiFi net that terminal actual scanning arrives in the embodiment of the present application The information of network, the 2nd WiFi environmental information are then the information of pre-stored WiFi network.
In the related technology, when terminal is moved to the band of position, which, which can scan, covers the multiple of the band of position Wireless access point identification may be due to this when terminal carries out wireless network connection based on the wireless access point identification of selection The signal strength of wireless network is too low to cause connection speed very slow, even if successful connection, in the use process of the wireless network In the case where also will appear frequent suspension.Not yet provide a kind of convenience and reliable wireless network connecting method at present.
The embodiment of the present application provides a kind of wireless network connecting method, device, terminal and storage medium, can be used for solving Problem present in certainly above-mentioned the relevant technologies.In technical solution provided by the present application, it is set as by the way that threshold value will be connected and target The associated threshold value of history maximum signal of Wifi network, when the live signal for the target Wifi network that terminal scans is strong Linking objective Wifi network when degree is greater than connection threshold value, the signal strength for reducing Wifi network to be connected too low lead to terminal The probability that the relatively slow this case of connection speed occurs, ensure that the connection effect of Wifi network.
Before the embodiment of the present application is explained, first the application scenarios of the embodiment of the present application are illustrated. Fig. 1 shows the structural schematic diagram of terminal provided by one exemplary embodiment of the application.
Terminal 100 is the electronic equipment with WiFi function.The terminal 100 can be smart phone, tablet computer or just Take formula personal computer etc..By WiFi function, when, there are when WiFi network, terminal 100 can in 100 local environment of terminal Get the WiFi information of each WiFi network, wherein the WiFi information includes SSID, BSSID and signal of WiFi network Intensity etc..According to the key information of typing, terminal 100 can access corresponding WiFi network and carry out internet access.
Terminal 100 can be connected between WiFi equipment by wireless network.WiFi equipment is to provide the net of WiFi network Equipment is closed, for example, WiFi equipment is wireless router or the electronic equipment for opening routing function.When terminal enters WiFi equipment WiFi network coverage area, and when the corresponding key information of typing WiFi equipment, terminal 100 wirelessly connects with WiFi equipment foundation It connects.
It optionally, include: processor 120 and memory 140 in the terminal 100.
Processor 120 may include one or more processing core.Processor 120 utilizes various interfaces and connection Various pieces in entire terminal 100, by running or executing the instruction being stored in memory 140, program, code set or refer to Collection is enabled, and calls the data being stored in memory 140, executes the various functions and processing data of terminal 100.Optionally, Processor 120 can use Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable GateArray, FPGA), programmable logic array (Programmable Logic Array, At least one of) PLA example, in hardware is realized.Processor 120 can integrating central processor (Central Processing Unit, CPU), one of image processor (Graphics Processing Unit, GPU) and modem etc. or several The combination of kind.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for needed for display screen The rendering and drafting of content to be shown;Modem is for handling wireless communication.It is understood that above-mentioned modulation /demodulation Device can not also be integrated into processor 120, be realized separately through chip piece.
Memory 140 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non- transitory computer-readable storage medium).Memory 140 can be used for store instruction, program, generation Code, code set or instruction set.Memory 140 may include storing program area and storage data area, wherein storing program area can store Instruction for realizing operating system, the instruction at least one function (such as touch function, sound-playing function, image Playing function etc.), for realizing instruction of following each embodiments of the method etc.;It is real that storage data area can store following each method Apply the data etc. being related in example.
Referring to FIG. 2, the process of the wireless network connecting method provided it illustrates one exemplary embodiment of the application Figure.The present embodiment is applied to illustrate in terminal shown in figure 1 with the wireless network connecting method.The wireless network connects The method of connecing includes:
Step 201, when target Wifi network is arrived in scanning, the real-time signal strength of target Wifi network, target are obtained Wifi network is the Wifi network that terminal connected in history.
Optionally, when terminal detects that Wifi function is opened acquisition terminal side the first Wifi environmental information, when the It is when there is shared network identity in one Wifi environmental information and the 2nd Wifi environmental information prestored, shared network identity is signified The Wifi network shown is determined as target Wifi network.
Wherein, the first Wifi environmental information includes the network identity of the multiple Wifi networks for the terminal side scanned.The Two Wifi environmental informations include the network identity for multiple Wifi networks that the terminal had connected in history.Below only with Wifi net The network identity of network be Wifi network SSID for be illustrated.
Optionally, the first Wifi environmental information further includes signal strength, acquisition moment and the encryption class of the Wifi network At least one of type.Signal strength is the network signal intensity of WiFi network.The acquisition moment is that terminal collects WiFi network At the time of.
When the sequence of the network identity for multiple Wifi networks that terminal had connected in history can be current based on terminal Between before have connected multiple Wifi networks history connection data be ranked up to obtain.History connection packet includes connection time At least one of number, connection total duration and connection moment of the last time.
Optionally, when the first Wifi environmental information with there is shared network identity in the 2nd Wifi environmental information that prestores When, Wifi network indicated by shared network identity is determined as target Wifi network, including but not limited to following two may Implementation.
In one possible implementation, when there are one in the first WiFi environmental information and the 2nd Wifi environmental information When shared SSID, this is shared into WiFi network indicated by SSID and is determined as target WiFi network
It is more when existing in the first WiFi environmental information and the 2nd Wifi environmental information in alternatively possible implementation When a shared SSID, a shared SSID is therefrom selected according to selection strategy, by WiFi network indicated by the SSID selected It is determined as target WiFi network.
Selection strategy includes the shared SSID of selection signal maximum intensity, or selection first scan share SSID is perhaps selected according to the sequential selection of the network identity of storage positioned at first shared SSID or reception user Shared SSID.The present embodiment is not limited the setting of selection strategy.
When terminal determines target WiFi network, the real-time signal strength of target Wifi network is obtained.Live signal Intensity is the signal strength that terminal is got when scanning is to target WiFi network.
Step 202, the corresponding connection threshold value of target Wifi network is obtained, connection threshold value is going through according to target Wifi network The threshold value that history maximum signal determines, history maximum signal are to get most when scanning target Wifi network in history Big signal strength.
Terminal obtains the corresponding connection threshold value of target Wifi network.For the same terminal, there are at least two The corresponding connection threshold value of Wifi network is different.For the same Wifi network, there are at least two terminals are each Self-corresponding connection threshold value is different.
Optionally, connection threshold value is threshold value associated with the history maximum signal of target Wifi network.Connect threshold The history maximum signal correlation of value and target Wifi network.
Optionally, the corresponding connection threshold value of target Wifi network is the history maximum signal according to target Wifi network Determining threshold value.Wherein, connection threshold value is less than history maximum signal.
Schematically, connection threshold value is less than history maximum signal and connects the difference of threshold value and history maximum signal It is worth absolute value less than the first difference threshold.
First difference threshold is the customized setting of user or terminal default setting.
The history maximum signal of target Wifi network is the maximum got when scanning target Wifi network in history Signal strength.Target Wifi network is one in multiple Wifi networks that the terminal had connected in history.
Optionally, the 2nd Wifi environmental information is stored in terminal, the 2nd Wifi environmental information is in addition to including that the terminal is gone through The network identity for the multiple Wifi networks having connected in history further includes multiple Wifi networks that the terminal had connected in history Maximum signal.
Optionally, the signal strength that the Wifi network is obtained when terminal scanning for the first time is to a Wifi network, by this Signal strength is recorded as the maximum signal of the Wifi network, by the network identity of the Wifi network and maximum signal with The form of key-value pair is stored.After the completion of storage, when terminal scans again arrives the Wifi network, if what terminal was got The real-time signal strength of the Wifi network be higher than the real-time signal strength assignment that then will acquire of maximum signal of storage in Maximum signal is updated to the real-time signal strength got by maximum signal.
It should be noted that terminal determines the process of connection threshold value according to the history maximum signal of target Wifi network It can refer to the correlative detail in following example, do not introduce first herein.
Optionally, connection threshold value is used to indicate the threshold value that the terminal can be stably connected with target Wifi network.Terminal energy Enough it is stably connected with target Wifi network, including terminal at the appointed time network switching in section after connecting upper target Wifi network It connects number and is less than switching threshold.
Designated time period and switching threshold can be the customized setting of user or terminal default setting.This reality It applies example and this is not limited.
Step 203, when real-time signal strength is greater than connection threshold value, linking objective Wifi network.
Terminal judges whether real-time signal strength is greater than connection threshold value, if more than the real-time of target Wifi network is then indicated Signal strength is sufficient to make time-consuming shorter, the terminal linking objective Wifi network of terminal linking objective Wifi network;If being less than Indicate that the real-time signal strength of target Wifi network is sufficient to make taking a long time for terminal linking objective Wifi network, terminal is not Connect target Wifi network.
In conclusion the present embodiment is by obtaining the reality of target Wifi network when terminal scanning is to target Wifi network When the signal strength and corresponding connection threshold value of target Wifi network, since connection threshold value is and the history of target Wifi network is maximum The associated threshold value of signal strength, terminal linking objective Wifi network when real-time signal strength is greater than connection threshold value, reduces The too low probability for causing the relatively slow this case of terminal connection speed to occur of the signal strength of Wifi network to be connected, ensure that The connection effect of Wifi network.
Referring to FIG. 3, the process of the wireless network connecting method provided it illustrates one exemplary embodiment of the application Figure.The present embodiment is applied to illustrate in terminal shown in figure 1 with the wireless network connecting method.The wireless network connects The method of connecing includes:
Step 301, when target Wifi network is arrived in scanning, the real-time signal strength of target Wifi network is obtained.
The realization process of this step can refer to the above-mentioned associated description to step 201, and details are not described herein.
Step 302, the history maximum signal of target Wifi network is obtained.
Terminal obtains the network identity of target Wifi network, obtains the network mark with Wifi network according to the second corresponding relationship Know corresponding history maximum signal.
Be stored with the second corresponding relationship in terminal, the second corresponding relationship include the terminal had connected in history it is multiple Corresponding relationship between the network identity and history maximum signal of Wifi network.In one possible implementation, Two corresponding relationships are as shown in Table 1.
Table one
Serial number SSID History maximum signal
1 WiFi-001 -30dbm
2 WiFi-002 -50dbm
3 WiFi-003 -85dbm
Optionally, the second corresponding relationship is stored in the form of key-value pair.
Step 303, judge whether real-time signal strength is greater than history maximum signal.
Terminal judges whether real-time signal strength is greater than history maximum signal, if real-time signal strength is greater than history most Big signal strength thens follow the steps 304;305 are executed if real-time signal strength is less than history maximum signal.
It should be noted that if real-time signal strength is equal to history maximum signal, step 304 can be executed, it can also To execute step 305, it can also be directly connected to target Wifi network, terminate process.
Step 304, when real-time signal strength is greater than history maximum signal, linking objective Wifi network, by target The history maximum signal of Wifi network is updated to real-time signal strength.
Optionally, since connection threshold value is less than history maximum signal, when real-time signal strength is believed greater than history maximum When number intensity, i.e., expression target Wifi network meets the condition that real-time signal strength is greater than connection threshold value, no longer needs to execute acquisition The step of connecting threshold value, linking objective Wifi network.
Optionally, the real-time signal strength of the target Wifi network got when terminal is greater than history maximum signal When, by the real-time signal strength assignment of target Wifi network in maximum signal, i.e., maximum signal is updated to obtain The real-time signal strength arrived.
Step 305, it when real-time signal strength is less than history maximum signal, is determined according to history maximum signal Connect threshold value.
When the real-time signal strength of target Wifi network is less than history maximum signal, terminal is believed according to history maximum Number intensity determines connection threshold value.
Optionally, terminal determines connection threshold value according to history maximum signal and the first computation rule, and first calculates rule Then be used to indicate connection threshold value be less than history maximum signal and connection threshold value and the difference of history maximum signal it is absolute Value is less than the first difference threshold.
Optionally, terminal determines connection threshold value according to history maximum signal and the first computation rule, comprising: obtains pre- The the first connection numerical value first stored;The ratio that history maximum signal connect numerical value with first is determined as to connect threshold value.I.e. Connection threshold value is the ratio that history maximum signal connect numerical value with first, and connection threshold value is less than history maximum signal.
First connection numerical value is the positive number less than 1.Optionally, the first connection numerical value is the customized setting of user, or It is terminal default setting.
Optionally, the first connection numerical value is the numerical value less than specified parameter threshold.Schematically, specified parameter threshold is 0.9.For example, the first connection numerical value is 0.8.
Step 306, judge whether real-time signal strength is greater than connection threshold value.
Terminal judges whether real-time signal strength is greater than connection threshold value, executes if real-time signal strength is greater than connection threshold value Step 307;If real-time signal strength is less than or equal to connection threshold value, it is not connected to target Wifi network, terminates process.
Step 307, when real-time signal strength is greater than connection threshold value, linking objective Wifi network.
When the real-time signal strength of target Wifi network is greater than connection threshold value, terminal linking objective Wifi network.
In a schematical example, when terminal scanning is to target Wifi network, target Wifi network is obtained SSID " WiFi-001 " and real-time signal strength " -35dbm ".Terminal second corresponding relationship according to shown in above-mentioned table one obtains mesh The history maximum signal " -30dbm " of Wifi network is marked, it is strong which is less than history peak signal It spends " -30dbm ", the ratio that history maximum signal " -30dbm " connect numerical value " 0.8 " with first is determined as connecting by terminal Threshold value " -37.5dbm ", when terminal judges that real-time signal strength " -35dbm " is greater than connection threshold value " -37.5dbm ", connection Target Wifi network.
Optionally, when the real-time signal strength of target Wifi network is greater than connection threshold value, terminal judges target Wifi net Whether network meets other condition of contacts, the linking objective Wifi network if meeting, and including but not limited to following two is possible Implementation.
In one possible implementation, it is corresponding in real time to obtain at least two Wifi networks scanned for terminal Signal strength;When the real-time signal strength of target Wifi network is greater than connection threshold value and meets the first condition of contact, mesh is connected Mark Wifi network.
Wherein, the first condition of contact include target Wifi network real-time signal strength be at least two Wifi networks respectively The real-time signal strength and minimum signal of maximum signal and/or target Wifi network in corresponding real-time signal strength Difference between intensity is greater than the second difference threshold.
Optionally, maximum signal involved in the first condition of contact be at least two Wifi networks that scan respectively Maximum signal strength in corresponding real-time signal strength, minimum signal strength be at least two Wifi networks that scan respectively The smallest signal strength in corresponding real-time signal strength.
Schematically, terminal judges whether the real-time signal strength of target Wifi network is that the peak signal that scans is strong Degree is greater than connection threshold value if the real-time signal strength of the maximum signal and target Wifi network that scan, then connects mesh Mark Wifi network.
Schematically, terminal judges that the difference between the real-time signal strength and minimum signal strength of target Wifi network is It is no to be greater than the second difference threshold, if difference is greater than the second difference threshold and the real-time signal strength of target Wifi network is greater than connection Threshold value, then linking objective Wifi network.
Schematically, when the real-time signal strength of target Wifi network is the maximum signal scanned, and maximum letter Difference number between intensity and minimum signal strength is greater than the second difference threshold, and the real-time signal strength of target Wifi network is big In connection threshold value, then linking objective Wifi network.
It should be noted that the second customized setting of difference threshold user or terminal default setting.
In alternatively possible implementation, at least two Wifi networks that terminal acquisition scans are corresponding to be gone through History connects into power and/or history connection is time-consuming;When the real-time signal strength of target Wifi network is greater than connection threshold value and satisfaction When the second condition of contact, linking objective Wifi network.
Wherein, the second condition of contact includes that connect into power each at least two Wifi networks for the history of target Wifi network It is time-consuming at least two Wifi nets that self-corresponding history connects into highest and/or the connection of the history of target Wifi network in power It is most short in the corresponding history connection time-consuming of network.
Optionally, the history of target Wifi network connect into power be terminal in history linking objective Wifi network when connection The ratio of the connection total degree of successful number and linking objective Wifi network.
Optionally, it is terminal in history from beginning linking objective Wifi network being averaged to successful connection that history connection is time-consuming Connection is time-consuming.History connection time-consuming is used to indicate the connection speed that terminal connects upper Wifi network.History connection it is time-consuming with connect Speed negative correlation.
Schematically, it is respectively right at least two Wifi networks to judge that the history of target Wifi network connects into power for terminal Whether it is highest that the history answered connects into power, if it is highest and target Wifi that the history of target Wifi network, which connects into power, The real-time signal strength of network is greater than connection threshold value, then linking objective Wifi network.
Schematically, terminal judges that the history connection time-consuming of target Wifi network is respectively corresponded at least two Wifi networks History connection time-consuming in whether be most short, if it is most short and target Wifi network that the history connection of target Wifi network is time-consuming Real-time signal strength is greater than connection threshold value, then linking objective Wifi network.
Schematically, it goes through when the history of target Wifi network connects into power at least two Wifi networks are corresponding History connects into highest in power, and the history connection of target Wifi network time-consuming is gone through at least two Wifi networks are corresponding It is most short in history connection time-consuming, and the real-time signal strength of target Wifi network is greater than connection threshold value, then linking objective Wifi network.
In conclusion the embodiment of the present application is also greater than connection threshold value by the real-time signal strength when target Wifi network When, terminal judges whether target Wifi network meets other condition of contacts, the linking objective Wifi network if meeting, further It ensure that terminal and speed and succeeding target Wifi network that target Wifi network is attached stabilization in use Property.
In one possible implementation, terminal is after linking objective Wifi network, when network at the appointed time section When switching connection number is greater than switching threshold, pre-stored first connection numerical value is revised as the second connection numerical value, i.e. terminal The first connection numerical value can be adjusted according to the service condition dynamic of target Wifi network.It further include as follows after above-mentioned steps 307 Several steps, as shown in Figure 4:
Step 401, it obtains network switching at the appointed time section and connects number.
Optionally, terminal is after the success of linking objective Wifi network, in real time or at predetermined time intervals Monito ping at intervals terminal Network switching connect number, predetermined time interval be less than designated time period.
Terminal obtains network switching at the appointed time section and connects number.It includes different Wifi that network switching, which connects number, Switch the total degree of connection between network between switching connection and/or Wifi network and mobile network.
Step 402, judge whether network switching connection number is greater than switching threshold at the appointed time section.
Terminal judges whether network switching connection number is greater than switching threshold at the appointed time section.If at the appointed time section Interior network switching connection number is greater than switching threshold, then it represents that the stability of target Wifi network in use is poor, holds Row step 403;If at the appointed time network switching connection number is less than or switching threshold in section, then it represents that target Wifi network Stability in use is preferable, terminates process.
Wherein, designated time period and switching threshold are the customized setting of user or terminal default setting.Signal Property, designated time period is 5 minutes, and switching threshold is 1 time.
Step 403, when network switching connection number is greater than switching threshold, by pre-stored first connection numerical value modification For the second connection numerical value, the second connection numerical value is the positive number greater than the first connection numerical value and less than 1.
When network switching connection number is greater than switching threshold at the appointed time section, terminal connects pre-stored first It connects numerical value and is revised as the second connection numerical value.
Optionally, the first connection numerical value and the second connection numerical value are less than the numerical value of specified parameter threshold.Schematically, Specified parameter threshold is 0.9.
In a kind of possible implementation, pre-stored first connection numerical value is revised as the second connection numerical value by terminal, Include: terminal by the first connection numerical value increase designated increments, obtains the second connection numerical value.Schematically, designated increments 0.02.
In alternatively possible implementation, pre-stored first connection numerical value is revised as the second connection number by terminal Value, comprising: terminal obtains incremental value corresponding with network switching connection number according to the first corresponding relationship;It will be pre-stored First connection numerical value adds incremental value, obtains the second connection numerical value.
Optionally, incremental value is the positive number less than 0.1.
Be stored with the first corresponding relationship in terminal, the first corresponding relationship include network switching connection number and incremental value it Between corresponding relationship, i.e., at the appointed time in section network switching connection number and incremental value between corresponding relationship.
Schematically, the first corresponding relationship include in 5 minutes network switching connection number be greater than 1 and corresponding when less than 3 Incremental value be 0.02;It is 0.04 that network switching, which connects number to be more than or equal to corresponding incremental value when 3,.The present embodiment The set-up mode of first corresponding relationship is not limited.
In conclusion also pass through ought at the appointed time network switching connection number be greater than switching threshold to the embodiment of the present application in section When value, terminal obtains incremental value corresponding with network switching connection number according to the first corresponding relationship;By pre-stored One connection numerical value adds incremental value, obtains the second connection numerical value;So that terminal is after linking objective Wifi network, it can basis Service condition dynamic adjustment the first connection numerical value of target Wifi network, and then guarantee scanning target Wifi network next time When connection effect.
Following is the application Installation practice, can be used for executing the application embodiment of the method.It is real for the application device Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Referring to FIG. 5, the structural schematic diagram of the wireless network connection device provided it illustrates the application one embodiment. The wireless network connection device can be by special hardware circuit, alternatively, software and hardware is implemented in combination with as the terminal in Fig. 1 All or part of, which includes: that the first acquisition module 510, second obtains module 520 and link block 530。
First obtains module 510, for obtaining the live signal of target Wifi network when target Wifi network is arrived in scanning Intensity, target Wifi network are the Wifi network that terminal connected in history;
Second obtains module 520, and for obtaining the corresponding connection threshold value of target Wifi network, connection threshold value is according to target The threshold value that the history maximum signal of Wifi network determines, history maximum signal are to scan target Wifi network in history When the maximum signal that gets;
Link block 530 is used for when real-time signal strength is greater than connection threshold value, linking objective Wifi network.
Optionally, second module 520 is obtained, is also used to obtain the history maximum signal of target Wifi network;According to History maximum signal and the first computation rule determine connection threshold value, and the first computation rule, which is used to indicate connection threshold value and is less than, to be gone through History maximum signal and the absolute difference of threshold value and history maximum signal is connected less than the first difference threshold.
Optionally, second module 520 is obtained, is also used to obtain pre-stored first connection numerical value, the first connection numerical value For the positive number less than 1;The ratio that history maximum signal connect numerical value with first is determined as to connect threshold value.
Optionally, device further include: modified module.Modified module, for ought at the appointed time network switching connects in section When connecing number greater than switching threshold, pre-stored first connection numerical value is revised as the second connection numerical value, the second connection numerical value For the positive number greater than the first connection numerical value and less than 1.
Optionally, modified module is also used to obtain network switching connection number at the appointed time section;When network switching connects When connecing number greater than switching threshold, incremental value corresponding with network switching connection number is obtained according to the first corresponding relationship, the One corresponding relationship includes the corresponding relationship between network switching connection number and incremental value;By pre-stored first connection number Value adds incremental value, obtains the second connection numerical value.
Optionally, second module 520 is obtained, is also used to hold when real-time signal strength is less than history maximum signal The step of row determines connection threshold value according to history maximum signal.
Optionally, device further include: update module.Update module, for being greater than history maximum when real-time signal strength When signal strength, it is strong to be updated to live signal by linking objective Wifi network for the history maximum signal of target Wifi network Degree.
Optionally, link block 530 are also used to obtain the corresponding real-time letter of at least two Wifi networks scanned Number intensity;
When the real-time signal strength of target Wifi network is greater than connection threshold value and meets the first condition of contact, linking objective Wifi network;
Wherein, the first condition of contact include target Wifi network real-time signal strength be at least two Wifi networks respectively The real-time signal strength and minimum signal of maximum signal and/or target Wifi network in corresponding real-time signal strength Difference between intensity is greater than the second difference threshold.
Optionally, link block 530 are also used to obtain the corresponding history of at least two Wifi networks scanned and connect It is connected into power and/or history connection is time-consuming;
When the real-time signal strength of target Wifi network is greater than connection threshold value and meets the second condition of contact, linking objective Wifi network;
Wherein, the second condition of contact includes that connect into power each at least two Wifi networks for the history of target Wifi network It is time-consuming at least two Wifi nets that self-corresponding history connects into highest and/or the connection of the history of target Wifi network in power It is most short in the corresponding history connection time-consuming of network.
Correlative detail is in combination with referring to figs. 2 to embodiment of the method shown in Fig. 4.Wherein, first module 510 and second is obtained It obtains module 520 and is also used to realize any other implicit or disclosed function relevant to obtaining step in above method embodiment Energy;Link block 530 is also used to realize any other implicit or disclosed relevant to Connection Step in above method embodiment Function.
It should be noted that device provided by the above embodiment, when realizing its function, only with above-mentioned each functional module It divides and carries out for example, can according to need in practical application and be completed by different functional modules above-mentioned function distribution, The internal structure of equipment is divided into different functional modules, to complete all or part of the functions described above.In addition, Apparatus and method embodiment provided by the above embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, this In repeat no more.
The application also provides a kind of computer-readable medium, is stored thereon with program instruction, and program instruction is held by processor The wireless network connecting method that above-mentioned each embodiment of the method provides is realized when row.
Present invention also provides a kind of computer program products comprising instruction, when run on a computer, so that Computer executes wireless network connecting method described in above-mentioned each embodiment.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing whole or portion in the wireless network connecting method of above-described embodiment It may be implemented by hardware step by step, relevant hardware can also be instructed to complete by program, the program can deposit It is stored in a kind of computer readable storage medium, storage medium mentioned above can be read-only memory, disk or CD etc.. The foregoing is merely the preferred embodiments of the application, not to limit the application, within the spirit and principles of this application, Any modification, equivalent replacement, improvement and so on should be included within the scope of protection of this application.

Claims (12)

1. a kind of wireless network connecting method, which is characterized in that the described method includes:
When Target Wireless fidelity Wifi network is arrived in scanning, the real-time signal strength of the target Wifi network, the mesh are obtained Mark Wifi network is the Wifi network that terminal connected in history;
The corresponding connection threshold value of the target Wifi network is obtained, the connection threshold value is according to the target W ifi network The threshold value that history maximum signal determines, the history maximum signal are when scanning the target Wifi network in history The maximum signal got;
When the real-time signal strength is greater than the connection threshold value, the target Wifi network is connected.
2. the method according to claim 1, wherein described obtain the corresponding connection threshold of the target Wifi network Value, comprising:
Obtain the history maximum signal of the target Wifi network;
The connection threshold value is determined according to the history maximum signal and the first computation rule, and first computation rule is used It is less than the history maximum signal in the instruction connection threshold value and the connection threshold value and the history peak signal is strong The absolute difference of degree is less than the first difference threshold.
3. according to the method described in claim 2, it is characterized in that, described count according to the history maximum signal and first It calculates rule and determines the connection threshold value, comprising:
Pre-stored first connection numerical value is obtained, the first connection numerical value is the positive number less than 1;
The ratio that the history maximum signal connect numerical value with described first is determined as the connection threshold value.
4. according to the method described in claim 3, it is characterized in that, described when the real-time signal strength is greater than the connection threshold When value, after connecting the target Wifi network, further includes:
When network switching connection number is greater than switching threshold at the appointed time section, by pre-stored first connection number Value is revised as the second connection numerical value, and the second connection numerical value is the positive number greater than the first connection numerical value and less than 1.
5. according to the method described in claim 4, it is characterized in that, described ought at the appointed time network switching connects number in section When greater than switching threshold, the pre-stored first connection numerical value is revised as the second connection numerical value, comprising:
It obtains the network switching in the designated time period and connects number;
When network switching connection number is greater than the switching threshold, is obtained according to the first corresponding relationship and cut with the network The corresponding incremental value of connection number is changed, first corresponding relationship includes the network switching connection number and the incremental number Corresponding relationship between value;
The pre-stored first connection numerical value is added into the incremental value, obtains the second connection numerical value.
6. according to the method described in claim 2, it is characterized in that, described according to history maximum signal determination Before connection threshold value, further includes:
When the real-time signal strength is less than the history maximum signal, execute according to the history maximum signal The step of determining the connection threshold value.
7. according to the method described in claim 6, it is characterized in that, the method, further includes:
When the real-time signal strength is greater than the history maximum signal, the target Wifi network is connected, it will be described The history maximum signal of target Wifi network is updated to the real-time signal strength.
8. method according to any one of claims 1 to 7, which is characterized in that described when the real-time signal strength is greater than institute When stating connection threshold value, the target Wifi network is connected, comprising:
Obtain at least two corresponding real-time signal strengths of Wifi network scanned;
When the real-time signal strength of the target Wifi network is greater than the connection threshold value and meets the first condition of contact, connection The target Wifi network;
Wherein, it is at least two Wifi that first condition of contact, which includes the real-time signal strength of the target Wifi network, The live signal of maximum signal and/or the target W ifi network in the corresponding real-time signal strength of network is strong Difference between degree and minimum signal strength is greater than the second difference threshold.
9. method according to any one of claims 1 to 7, which is characterized in that described when the real-time signal strength is greater than institute When stating connection threshold value, the target Wifi network is connected, comprising:
It obtains at least two corresponding history of Wifi network scanned and connects into power and/or history connection time-consuming;
When the real-time signal strength of the target Wifi network is greater than the connection threshold value and meets the second condition of contact, connection The target Wifi network;
Wherein, second condition of contact includes that the history of the target Wifi network connects into power described at least two The corresponding history of Wifi network connects into highest and/or the history of target Wifi network connection time-consuming in power and exists It is most short in the corresponding history connection time-consuming of at least two Wifi network.
10. a kind of wireless network connection device, which is characterized in that described device includes:
First obtains module, for obtaining the reality of the target W ifi network when Target Wireless fidelity Wifi network is arrived in scanning When signal strength, the target Wifi network is the Wifi network that connected in history of terminal;
Second obtains module, and for obtaining the corresponding connection threshold value of the target Wifi network, the connection threshold value is according to institute The threshold value that the history maximum signal of target Wifi network determines is stated, the history maximum signal is scans institute in history The maximum signal got when stating target Wifi network;
Link block, for connecting the target Wifi network when the real-time signal strength is greater than the connection threshold value.
11. a kind of terminal, which is characterized in that the terminal includes processor, the memory that is connected with the processor, Yi Jicun The program instruction on the memory is stored up, the processor is realized when executing described program instruction as claim 1 to 9 is any The wireless network connecting method.
12. a kind of computer readable storage medium, which is characterized in that be stored thereon with program instruction, described program instruction is located Reason device realizes wireless network connecting method as described in any one of claim 1 to 9 when executing.
CN201811240355.2A 2018-10-23 2018-10-23 Wireless network connection method, device, terminal and storage medium Active CN109089327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811240355.2A CN109089327B (en) 2018-10-23 2018-10-23 Wireless network connection method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811240355.2A CN109089327B (en) 2018-10-23 2018-10-23 Wireless network connection method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109089327A true CN109089327A (en) 2018-12-25
CN109089327B CN109089327B (en) 2020-11-24

Family

ID=64843923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811240355.2A Active CN109089327B (en) 2018-10-23 2018-10-23 Wireless network connection method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109089327B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862606A (en) * 2019-02-26 2019-06-07 广州乐摇摇信息科技有限公司 Self-service device communication means, apparatus and system
CN111526515A (en) * 2020-04-29 2020-08-11 Oppo广东移动通信有限公司 Network connection method, device, terminal and storage medium
CN111835914A (en) * 2020-07-02 2020-10-27 西安闻泰电子科技有限公司 Call control method, device, computer equipment and storage medium
CN112351461A (en) * 2019-08-08 2021-02-09 Oppo广东移动通信有限公司 WiFi network switching method, device, terminal and storage medium
CN112398702A (en) * 2019-08-12 2021-02-23 腾讯科技(深圳)有限公司 Speed measurement method and device, server and storage medium
CN112988180A (en) * 2019-11-30 2021-06-18 西安诺瓦星云科技股份有限公司 Control method and device of embedded equipment
CN113472611A (en) * 2021-07-26 2021-10-01 东莞市金锐显数码科技有限公司 Method and device for acquiring WiFi signal strength and readable storage medium
CN114095293A (en) * 2020-08-24 2022-02-25 无锡小天鹅电器有限公司 Network distribution method and device of household appliance and household appliance
CN114501566A (en) * 2022-02-24 2022-05-13 维沃移动通信有限公司 Network switching method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616462A (en) * 2009-08-13 2009-12-30 杭州华三通信技术有限公司 Prevent method and device that wireless client switches in a kind of WLAN (wireless local area network)
CN107241782A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Method for network access, mobile terminal and computer-readable recording medium
CN107969027A (en) * 2017-12-08 2018-04-27 广东欧珀移动通信有限公司 wireless network management method, wireless network management device and intelligent terminal
CN108012301A (en) * 2017-11-29 2018-05-08 广东欧珀移动通信有限公司 A kind of mobile terminal and its method for connecting network, computer-readable recording medium
US20180213356A1 (en) * 2016-11-14 2018-07-26 Suresh Kumar Singamsetty Prediction algorithm for location estimation
CN108449764A (en) * 2018-06-01 2018-08-24 南昌黑鲨科技有限公司 Network connection control method, computer readable storage medium and intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616462A (en) * 2009-08-13 2009-12-30 杭州华三通信技术有限公司 Prevent method and device that wireless client switches in a kind of WLAN (wireless local area network)
US20180213356A1 (en) * 2016-11-14 2018-07-26 Suresh Kumar Singamsetty Prediction algorithm for location estimation
CN107241782A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Method for network access, mobile terminal and computer-readable recording medium
CN108012301A (en) * 2017-11-29 2018-05-08 广东欧珀移动通信有限公司 A kind of mobile terminal and its method for connecting network, computer-readable recording medium
CN107969027A (en) * 2017-12-08 2018-04-27 广东欧珀移动通信有限公司 wireless network management method, wireless network management device and intelligent terminal
CN108449764A (en) * 2018-06-01 2018-08-24 南昌黑鲨科技有限公司 Network connection control method, computer readable storage medium and intelligent terminal

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862606A (en) * 2019-02-26 2019-06-07 广州乐摇摇信息科技有限公司 Self-service device communication means, apparatus and system
CN109862606B (en) * 2019-02-26 2021-03-19 广州乐摇摇信息科技有限公司 Self-service equipment communication method, device and system
CN112351461A (en) * 2019-08-08 2021-02-09 Oppo广东移动通信有限公司 WiFi network switching method, device, terminal and storage medium
CN112351461B (en) * 2019-08-08 2023-08-22 Oppo广东移动通信有限公司 WiFi network switching method, wiFi network switching device, terminal and storage medium
CN112398702A (en) * 2019-08-12 2021-02-23 腾讯科技(深圳)有限公司 Speed measurement method and device, server and storage medium
CN112988180A (en) * 2019-11-30 2021-06-18 西安诺瓦星云科技股份有限公司 Control method and device of embedded equipment
CN112988180B (en) * 2019-11-30 2023-10-20 西安诺瓦星云科技股份有限公司 Control method and device of embedded equipment
CN111526515A (en) * 2020-04-29 2020-08-11 Oppo广东移动通信有限公司 Network connection method, device, terminal and storage medium
CN111835914A (en) * 2020-07-02 2020-10-27 西安闻泰电子科技有限公司 Call control method, device, computer equipment and storage medium
CN114095293A (en) * 2020-08-24 2022-02-25 无锡小天鹅电器有限公司 Network distribution method and device of household appliance and household appliance
CN113472611A (en) * 2021-07-26 2021-10-01 东莞市金锐显数码科技有限公司 Method and device for acquiring WiFi signal strength and readable storage medium
CN114501566A (en) * 2022-02-24 2022-05-13 维沃移动通信有限公司 Network switching method and device

Also Published As

Publication number Publication date
CN109089327B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN109089327A (en) wireless network connecting method, device, terminal and storage medium
CN105393605B (en) Terminal, base station and its communication means
CN107333293A (en) Metrical information report method and device
CN101175333B (en) Method and device for reminding subscriber terminal of being in AP subdistrict
CN108702635A (en) User apparatus and accidental access method
WO2019153145A1 (en) Communication method and communication apparatus
CN104106293B (en) Method and apparatus for promoting the position estimation in CDMA 1X networks
CN110419242B (en) Aggregation connection establishment method, device and storage medium
CN108901079B (en) Timeout time determination method, device, equipment and storage medium
CN106576292A (en) Method and apparatus for scanning access point in wireless lan system
CN107484251B (en) Reporting method and obtaining method of terminal capability information, terminal and network side equipment
CN109792614A (en) Resource occupying method, device, terminal and the storage medium of unauthorized frequency range
CN109151822A (en) Wireless network connection method and device, storage medium and electronic device
CN105657857B (en) Wireless network connecting method and device
CN116367313A (en) Method, device and terminal for determining time-frequency resource of Msg1 repeated transmission
CN111314939B (en) Voice communication method, device, terminal and storage medium
CN102577472B (en) Wireless communication system, base station, wireless communications method and storage medium
CN110100477A (en) Identify the method and device of user equipment
CN111970721B (en) Network slice management method and device
CN111935778B (en) Power regulation method, device, storage medium and network equipment
CN109219046A (en) Method for switching network and device
CN108633030A (en) Channel access method and device
CN107333322A (en) A kind of parental control methods and base station
CN116156667A (en) Session establishment method and device of Internet of things equipment
CN117155844B (en) Communication link selection method, system, electronic equipment and 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