CN107979863A - A kind of WiFi automatic connection methods, system and terminal device - Google Patents
A kind of WiFi automatic connection methods, system and terminal device Download PDFInfo
- Publication number
- CN107979863A CN107979863A CN201711205710.8A CN201711205710A CN107979863A CN 107979863 A CN107979863 A CN 107979863A CN 201711205710 A CN201711205710 A CN 201711205710A CN 107979863 A CN107979863 A CN 107979863A
- Authority
- CN
- China
- Prior art keywords
- preserved
- disabled
- signal strength
- time
- connection request
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/02—Access restriction performed under specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application is suitable for wireless communication technology field, there is provided a kind of WiFi automatic connection methods, system and terminal device, wherein, method includes:AP is scanned, obtains all AP preserved scanned;Connection request is sent to all AP preserved;When all AP for having preserved are disabled, the disabled reason of each AP preserved is obtained;According to the disabled reason of each AP preserved, corresponding automatic concatenate rule is set.The embodiment of the present application is by when all AP that have preserved scanned are disabled, obtaining the disabled reason of each AP preserved;And according to the disabled reason of each AP preserved, corresponding automatic concatenate rule is set, intelligent terminal is timely automatically connected to WiFi network, improves network connection efficiency.
Description
Technical field
The application belongs to wireless communication technology field, more particularly to a kind of WiFi automatic connection methods, system and terminal are set
It is standby.
Background technology
Wireless communication technique higher as current frequency of use WiFi (Wireless Fidelity, Wireless Fidelity), covers
Lid rate is extremely extensive, for example, the public place such as commercial center, station, airport, can provide free WiFi network.AP
(Wireless Access Point, wireless access points) are the access points of intelligent communication device access WiFi network, are used for
Each intelligent communication device is connected together by WiFi network, then by WiFi network access network based on ethernet.In general, intelligence is logical
Believe that equipment after WiFi network is accessed by AP, can preserve the AP, to be accessed when next time, the AP was arrived in scanning automatically by the AP
WiFi network.
However, current intelligent communication device can disable within a certain period of time when by more networking failures of a certain AP
The AP, it is all changeless usually to disable the time, only can just be carried out in the case where disabling time time-out next time automatic
Connection, causes intelligent terminal can not timely be automatically connected to WiFi network.
Apply for content
In view of this, the embodiment of the present application provides a kind of WiFi automatic connection methods, system and terminal device, Ke Yigen
According to disabled reasons of AP when disabled, corresponding automatic concatenate rule is set, enables intelligent terminal timely automatic
WiFi network is connected to, improves network connection efficiency.
The first aspect of the embodiment of the present application provides a kind of WiFi automatic connection methods, it includes:
AP is scanned, obtains all AP preserved scanned;
Connection request is sent to all AP preserved;
When all AP for having preserved are disabled, the disabled reason of each AP preserved is obtained;
According to the disabled reason of each AP preserved, corresponding automatic concatenate rule is set.
The second aspect of the embodiment of the present application provides a kind of WiFi automatic connecting systems, it includes:
Scan module, for scanning AP, obtains all AP preserved scanned;
Sending module, for sending connection request to all AP preserved;
Acquisition module, for all AP for having preserved it is disabled when, obtain the quilt of each AP preserved
Disable reason;
Setup module, for the disabled reason according to each AP preserved, sets corresponding automatic connection rule
Then.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor performs the computer program
The step of realizing any of the above-described the method.
The fourth aspect of the embodiment of the present application provides a kind of computer-readable recording medium, the computer-readable storage
Media storage has computer program, and the computer program realizes the step of any of the above-described the method when being executed by processor
Suddenly.
The embodiment of the present application is by when all AP that have preserved scanned are disabled, obtaining each AP preserved
Disabled reason;And according to the disabled reason of each AP preserved, corresponding automatic concatenate rule is set, makes intelligence
Energy terminal device can timely be automatically connected to WiFi network, improve network connection efficiency.
Brief description of the drawings
, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical solution in the embodiment of the present application
Needed in attached drawing be briefly described, it should be apparent that, drawings in the following description are only some of the application
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
The flow diagram for the WiFi automatic connection methods that Fig. 1 the embodiment of the present application one provides;
Fig. 2 is the mapping table of the disabled reason that the embodiment of the present application one provides and automatic concatenate rule;
Fig. 3 is the flow diagram for the step S104 that the embodiment of the present application two provides;
Fig. 4 is the flow diagram for the step S104 that the embodiment of the present application three provides;
Fig. 5 is the flow diagram for the step S104 that the embodiment of the present application four provides;
Fig. 6 is the structure diagram for the WiFi automatic connecting systems that the embodiment of the present application five provides;
Fig. 7 is the structure diagram for the setup module that the embodiment of the present application six provides;
Fig. 8 is the structure diagram for the setup module that the embodiment of the present application seven provides;
Fig. 9 is the structure diagram for the setup module that the embodiment of the present application eight provides;
Figure 10 is the structure diagram for the terminal device that the embodiment of the present application nine provides.
Embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present application.However, it will be clear to one skilled in the art that these are specific
The application can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity
Road and the detailed description of method, in case unnecessary details hinders the description of the present application.
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
Embodiment one
The present embodiment provides a kind of WiFi automatic connection methods, it can be applied to arbitrarily have wireless communication function,
The intelligent terminal of WiFi network can be automatically connected to, for example, mobile phone, tablet computer, Intelligent bracelet, personal digital assistant
And controlling intelligent household appliances of air-conditioning, refrigerator, television set etc etc..
As shown in Figure 1, WiFi automatic connection methods provided in this embodiment, including:
Step S101:AP is scanned, obtains all AP preserved scanned.
In a particular application, terminal device, can be to the AP after first time is connected to corresponding WiFi network by AP
Preserved, when the AP is arrived in scanning next time, corresponding WiFi network is connected to automatically by the AP.Preserving AP is specifically
Refer to the WiFi passwords of the network address and the corresponding WiFi networks of the AP that preserve the AP.
In addition, in network environment residing for terminal device, a WiFi network is usually comprised more than, it is more likely that including one
A above WiFi network, terminal device are likely to save one or more WiFi nets in its residing network environment
The AP of network.Therefore, after AP is scanned, one or more AP may be scanned, in the AP scanned, is also likely to
The AP preserved including one or more.
Step S102:Connection request is sent to all AP preserved.
In a particular application, since terminal device has saved the network address of AP and corresponding WiFi passwords,
When scanning is to the AP preserved, the connection request for including WiFi passwords can be automatically sent according to the network address of AP, with
Corresponding WiFi network is automatically connected to by the AP preserved.There is password AP, it is necessary to when connecting first for unsaved,
Connect manually and input WiFi passwords;Exempt from close AP, it is necessary to when connecting first for unsaved, connect manually.
It should be noted that for the AP preserved, if its corresponding network address or WiFi passwords are modified or preserve
Time exceeds the time limit, then needs the connection mode according to above-mentioned unsaved AP, manually connection.
Step S103:When all AP for having preserved are disabled, the disabled of each AP preserved is obtained
Reason.
In a particular application, if being automatically connected to AP failure, the reason for which can be disabled, automatic connection failure
Be probably the corresponding WiFi networks of the AP signal quality is bad, number of users (terminal device that the same time is connected to the AP
Quantity) more and network address (i.e. IP address (Internet Protocol Address, internet protocol address)) or
WiFi passwords are modified or the holding time exceeds the time limit, wherein, the network address of AP is modified or the holding time exceeds the time limit, and can be caused
DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) consults failure.
Step S104:According to the disabled reason of each AP preserved, corresponding automatic concatenate rule is set.
In a particular application, can be set corresponding with the disabled reason of the AP according to the disabled reason of each AP
Automatic concatenate rule, enables intelligent terminal to be timely automatically connected to WiFi network, improves network connection efficiency.
As shown in Fig. 2, the exemplary mapping table for showing disabled reason and automatic concatenate rule, wherein, it is former
Because of 1, reason 2 ..., reason n-1 and reason n represent different disabled reasons, rule 1, rule 2 ..., rule n-1 and
Regular n represents different automatic concatenate rules, and n is positive integer more than 1 and n.
In one embodiment, the WiFi automatic connection methods further include:
When not scanning the AP preserved, the step of disabling all AP preserved, and returning to the scanning AP, (returns
Perform step S101);
Be successfully connected to it is any preserved AP when, stop scanning.
In a particular application, if not scanning the AP preserved, need to rescan, when be successfully connected to it is any
During the AP of preservation, then other AP need not be then connected to, can stop scanning, to save power consumption, except non-user is manually entered
Command adapted thereto triggering terminal equipment rescans AP.
The present embodiment is by when all AP that have preserved scanned are disabled, obtaining the quilt of each AP preserved
Reason is disabled, and according to the disabled reason of each AP preserved, corresponding automatic concatenate rule is set, makes intelligent end
End equipment can timely be automatically connected to WiFi network, improve network connection efficiency.
Embodiment two
The present embodiment is the further refinement to step S104 in embodiment one on the basis of embodiment one.Such as Fig. 3 institutes
Show, in the present embodiment, step S104 includes:
Step S201:When the disabled reason of the AP preserved is password mistake, using predetermined time period as the cycle,
Connection request is sent to the AP preserved.
In a particular application, predetermined time period can be configured according to actual needs, for example, 3S (second), 5S or 8S
Etc. arbitrary integer or non-integer duration.Using predetermined time period as the cycle, connection request, tool are sent to the AP preserved
Body refers to, a connection request is sent in each predetermined time period or sends once connection at interval of predetermined time period and is asked
Ask, the frequency for sending connection request is to be sent once per predetermined time period, for example, a length of 5S when predetermined time period
When, the frequency for sending connection request is to be sent once per 5S.
Step S202:After the cycle of the first default quantity, when the AP that has preserved is still disabled, protected described
The AP deposited is arranged to forever disable.
In a particular application, after multiple connection request has been continuously transmitted, if the AP preserved is still disabled, by institute
The AP preserved is stated to be arranged to forever disable.First default quantity is to refer to the number for continuously transmitting connection request, and first is default
Quantity can be configured according to actual needs, for example, the arbitrary integers such as 3,5 or 8.The AP preserved is still disabled to be referred to,
After sending connection request to the AP, still because password mistake, and cause connection failure so that the AP is disabled.
Step S203:When the password entrained by connection request sent to the AP preserved is modified, by described in
The AP of preservation is arranged to available.
In a particular application, if user changes the WiFi passwords for sending and being carried into the connection request of AP, temporarily will
The AP is arranged to available, and enters step S201.
Step S204:Receive it is input by user connection request is sent to the AP that has preserved instruction when, will described in
The AP preserved is arranged to available.
In a particular application, if user is manually entered corresponding instruction, asked, then temporarily will with resending connection to AP
The AP is arranged to available, if still connection failure, is again set at forever disabling, and enter step S203 or S204.
The present embodiment is by when the disabled reason of AP is password mistake, using predetermined time period as the cycle, periodically
Send connection request to the AP, and in the connection request that the first default quantity is continuously sent to AP, when the AP is still disabled, then
The AP is arranged to forever disable, until user's Modify password or triggering connection manually, is just again set at can use, can be to avoid
Terminal device continuation sends connection request to AP, so as to reduce power consumption.
Embodiment three
The present embodiment is the further refinement to step S104 in embodiment one on the basis of embodiment one.Such as Fig. 4 institutes
Show, in the present embodiment, step S104 includes:
Step S301:When the disabled reason of the AP preserved is that number of users is exceeded, current point in time is obtained.
In a particular application, number of users specifically refers to be connected to the quantity of the terminal device of same AP, and number of users is exceeded to be
Refer to the number of users for being connected to same AP more than the maximum user capacity that the AP can be supported.In theory, the use of an AP
Family capacity does not limit, it is solely dependent upon the capacity for the network address range for distributing to the AP.But from the net that can actually bear
From the point of view of network speed, the number of users that an AP can be born is limited, and in general the quantity of family expenses AP is no more than 20-30,
And enterprise-level be no more than 100.If number of users is excessive, it is too small to will result in the available bandwidth of each user, so as to drop
Low network service speed.
In a particular application, current point in time refers to that the disabled reason of the AP preserved is when number of users is exceeded
The specific time.For example, current point in time is 12 o'clock sharp of noon (i.e. 12:00) or at night eight o'clock sharps (i.e. 20:00).
Step S302:Period according to residing for current point in time, using time span corresponding with the period as week
Phase, connection request is sent to the AP preserved.
In a particular application, specific period that can be according to residing for current point in time, using corresponding time span as week
Phase, periodically sends connection request to AP.It is different in the number of users that the different periods is connected on same AP, leads to
Often, for the WiFi network of office, be on duty rush hour section, and the number of users for being connected to same AP can be more, at this time
Be connected to the AP it is very possible because number of users is exceeded and connection failure, so as to cause the AP disabled;And be on duty ebb when
Between section, the number of users for being connected to same AP can be less, is then easier to be successfully connected to the corresponding WiFi networks of the AP at this time.Cause
This, can set longer time length in peak period, shorter time span can be set in offpeak period.
In a particular application, can by one day 24 it is small when be divided into multiple and different periods, according to residing for current point in time
Period difference, using different time spans as the cycle, cause forbidden AP to send connection to because number of users is exceeded
Request, power is connected into improve, while reduces power consumption.For example, can by one day 24 it is small when, be divided into 8:00-18:00 height
Peak phase, 18:00-21:The peak phase and 21 in 00:00-8:00 low peak period totally three periods, were sent out in peak period with 30 minutes for the cycle
Send connection request, the middle peak phase be within 15 minutes send in the cycle connection request, low peak period be within 5 minutes send connection the cycle please
Ask.The setting of specific period dividing mode and the time span in cycle, can determine according to being actually needed.
In one embodiment, the WiFi connection methods further include:
Obtain the number of users for being connected to the AP preserved;
Using time span corresponding with the number of users as the cycle, connection request is sent to the AP preserved;Wherein,
The number of users and the time span positive correlation.
In a particular application, it is connected to that the number of users of AP is more, then the probability of connection failure is bigger, should when user is more
When appropriate extension sends the time interval of connection request, shortening when number of users is less suitably was sent between the time of connection request
Every connect into power with raising reduces power consumption at the same time.
Example IV
The present embodiment is the further refinement to step S104 in embodiment one on the basis of embodiment one.Such as Fig. 5 institutes
Show, in the present embodiment, step S104 includes:
Step S401:When the disabled reason of the AP preserved is presence signal quality problems, protected described in detection
The signal strength of the AP deposited.
In a particular application, when the signal quality of AP is poor or unstable, connection failure can be caused so that the AP is banned
With.
Step S402:According to the signal strength, using time span corresponding with the signal strength as the cycle, to described
The AP preserved sends connection request;Wherein, the size of the time span and the signal strength is negatively correlated.
In a particular application, when the signal strength of AP is stronger, a relatively short time span can be set so that
Terminal device can send to the AP and connect after AP failures are automatically connected to again after a shorter time span
Request is connect, to be timely connected to the AP, shortens the Connection Time, improves joint efficiency., can be with when the signal strength of AP is weaker
One relatively long time span is set, to save terminal device when signal quality is bad, frequently sends connection request
Spent electric energy, reduces power consumption.For example, when signal strength is respectively A, B, C, D, corresponding time span be respectively a, b, c,
d;Wherein, A > B > C > D and a < b < c < d.By make signal strength size and time span length it is negatively correlated, can be with
According to the size of signal strength, the regulating time length of adaptability.
In one embodiment, step S402 includes:
When the signal strength is in the range of weak signal strength, the time span is arranged at the first time;
When the signal strength is in strong signal strength range, the time span was arranged to for the second time;Wherein,
The lower limit of the strong signal strength range is more than the upper limit value of the weak signal strength scope, and the length of the first time is big
In the length of second time.
In a particular application, weak signal strength scope and first time can be configured according to actual needs, for example,
Weak signal strength scope can be arranged to [- 120db, -85db], be arranged to 30S at the first time.
In a particular application, strong signal strength range and the second time can also be configured according to actual needs, for example,
Strong signal strength range can be arranged to (- 85db, -30db], the second time was arranged to 20S.
It should be appreciated that weak signal strength scope and strong signal strength range are not necessarily two continuous numerical value models
Enclose or two discontinuous number ranges.For example, weak signal strength scope can be arranged to [- 120db ,-
80db], strong signal strength range is arranged to (- 75db, -30db].
In a particular application, can also be set according to more than two unlike signal strength ranges the disabling time, and
There is no lap between different signal strength ranges, the number and range size of specific signal strength range can bases
Actual needs is configured.For example, can be according to weak signal strength scope, secondary weak signal strength scope, secondary strong signal intensity model
Enclose, strong signal strength range, totally four signal strength ranges disable the time to set.It is corresponding, in one embodiment, step
S104 includes:
When the signal strength is in the range of weak signal strength, the time span is arranged at the first time;
When the signal strength is in the range of time weak signal strength, the time span was arranged to for the 3rd time;
When the signal strength is in time strong signal strength range, the time span was arranged to for the 4th time;
When the signal strength is in strong signal strength range, the time span was arranged to for the second time;
Wherein, the upper limit value of time strong signal strength range described in the lower limit > of the strong signal strength range, described time
The upper limit value of time weak signal strength scope described in the lower limit > of strong signal strength range, under the secondary weak signal strength scope
The upper limit value of weak signal strength scope described in limit value >, the 4th time > institutes described in the 3rd time > described in the first time >
Stated for the second time.
Specifically, in an example, can be strong by weak signal strength scope, secondary weak signal strength scope, secondary strong signal
Degree scope, strong signal strength range and corresponding disabling time are respectively set to:[- 120db, -100db], (- 100db, -
85db], (- 85db, -65db], (- 65db, -30db] and 30S (second), 25S, 20S, 15S.
Similarly, four signal strength ranges are not necessarily continuous number range or four discontinuous numerical value
Scope.For example, can be by weak signal strength scope, secondary weak signal strength scope, secondary strong signal strength range, strong signal intensity model
Enclose and be respectively set to:[- 120db, -100db], [- 95db, -85db], [- 80db, -65db], [- 60db, -30db].
Principle based on above-mentioned setting signal strength range and disabling time, in one embodiment, step S402 may be used also
With including:
When the signal strength is in middle signal strength range, the time span was arranged to for the 5th time;
Wherein, the upper limit value of middle signal strength range described in the lower limit > of the strong signal strength range, the middle letter
The upper limit value of weak signal strength scope, the 5th time > institutes described in the first time > described in the lower limit > of number strength range
Stated for the second time.
In one embodiment, step S402 includes:
When the signal strength reduces, extend the time span;
During the signal strength increase, shorten the time span.
In a particular application, since the signal strength of AP is not usually changeless, but can with AP connections with
The change for the signal strength netted very much and change, therefore, the corresponding time is being provided with according to the signal strength of AP preserved
, should be according to the change of signal strength, the extension or shortening of adaptability when the signal strength of the AP changes after length
The time span.
In one embodiment, after step S402, return to step S401, to detect the AP's preserved again
Signal strength, so as to judge whether current signal strength changes.
Similarly, in one embodiment, step S402 is further included:
When the signal strength in weak signal strength scope by changing into strong signal strength range, when will be described
Between length by being revised as the second time at the first time;
When the signal strength in strong signal strength range by changing into the range of weak signal strength, when will be described
Between length by the second time modification at the first time.
The present embodiment is by when the disabled reason of the AP preserved is signal quality problem, detecting the AP's preserved
Signal strength, and the change of the signal strength according to the AP, the modification of adaptability send the interval time lengths of connection request, energy
Enough change in signal strength according to AP, dynamic adjustment send the interval time lengths of connection request, can maximumlly improve
Automatic joint efficiency and saving power consumption.
Embodiment five
The present embodiment provides a kind of WiFi automatic connecting systems, for performing the method and step in embodiment one, it can be with
It is that arbitrarily there are wireless communication function, the software systems that can be automatically connected in WiFi network intelligent terminal.
As shown in fig. 6, the WiFi automatic connecting systems 100 that the present embodiment is provided, including:
Scan module 101, for scanning AP, obtains all AP preserved scanned;
Sending module 102, for sending connection request to all AP preserved;
Acquisition module 103, for all AP for having preserved it is disabled when, obtain each AP's preserved
Disabled reason;
Setup module 104, for the disabled reason according to each AP preserved, sets corresponding automatic connection
Rule.
In one embodiment, the WiFi automatic connecting systems further include:
Module being returned, during for not scanning the AP preserved, disabling all AP preserved, and return to the scanning AP
The step of;
Stopping modular, for be successfully connected to it is any preserved AP when, stop scanning.
The present embodiment is by when all AP that have preserved scanned are disabled, obtaining the quilt of each AP preserved
Reason is disabled, and according to the disabled reason of each AP preserved, corresponding automatic concatenate rule is set, makes intelligent end
End equipment can timely be automatically connected to WiFi network, improve network connection efficiency.
Embodiment six
In the present embodiment, the setup module in embodiment five includes being used for the knot for performing the method and step in embodiment two
Structure.As shown in fig. 7, setup module 104 includes:
First transmitting element 201, when the disabled reason for connecting the AP preserved is password mistake, with default
Time span is the cycle, and connection request is sent to the AP preserved;
First setting unit 202, for after the cycle of the first default quantity, the AP that has preserved is still disabled
When, the AP preserved is arranged to forever disable;
Second setting unit 203, is modified for the password entrained by the connection request to the AP transmissions preserved
When, the AP preserved is arranged to available;
3rd setting unit 204, for receiving the finger input by user that connection request is sent to the AP preserved
When making, the AP preserved is arranged to available.
The present embodiment is by when the disabled reason of AP is password mistake, using predetermined time period as the cycle, periodically
Send connection request to the AP, and in the connection request that the first default quantity is continuously sent to AP, when the AP is still disabled, then
The AP is arranged to forever disable, until user's Modify password or triggering connection manually, is just again set at can use, can be to avoid
Terminal device continuation sends connection request to AP, so as to reduce power consumption.
Embodiment seven
In the present embodiment, the setup module in embodiment five includes being used for the knot for performing the method and step in embodiment three
Structure.As shown in figure 8, setup module 104 includes:
Acquiring unit 301, when the disabled reason for the AP preserved is that number of users is exceeded, obtains current time
Point;
Second transmitting element 302, for the period according to residing for current point in time, with it is corresponding with the period when
Between length be the cycle, send connection request to the AP that has preserved.
In one embodiment, the acquiring unit is additionally operable to obtain the number of users for being connected to the AP preserved;
Second transmitting element is additionally operable to, using time span corresponding with the number of users as the cycle, preserve to described
AP send connection request;Wherein, the number of users and the time span positive correlation.
Embodiment eight
In the present embodiment, the setup module in embodiment five includes being used for the knot for performing the method and step in example IV
Structure.As shown in figure 9, setup module 104 includes:
Detection unit 401, when the disabled reason of the AP preserved is presence signal quality problems, described in detection
The signal strength of the AP of preservation;
3rd transmitting element 402, for according to the signal strength, using time span corresponding with the signal strength as
In the cycle, connection request is sent to the AP preserved;Wherein, the size negative of the time span and the signal strength
Close.
In one embodiment, the 3rd transmitting element 402 includes:
First setting unit, when being in for the signal strength in the range of weak signal strength, the time span is set
It is set at the first time;
Second setting unit, when being in for the signal strength in strong signal strength range, the time span is set
It was set to for the second time;Wherein, the lower limit of the strong signal strength range is more than the upper limit value of the weak signal strength scope, institute
The length for stating first time is more than the length of second time.
In one embodiment, the 3rd transmitting element 402 includes:
First setting unit, when being in for the signal strength in the range of weak signal strength, the time span is set
It is set at the first time;
3rd setting unit, when being in for the signal strength in the range of time weak signal strength, by the time span
It was arranged to for the 3rd time;
4th setting unit, when being in for the signal strength in time strong signal strength range, by the time span
It was arranged to for the 4th time;
Second setting unit, when being in for the signal strength in strong signal strength range, the time span is set
It was set to for the second time;
Wherein, the upper limit value of time strong signal strength range described in the lower limit > of the strong signal strength range, described time
The upper limit value of time weak signal strength scope described in the lower limit > of strong signal strength range, under the secondary weak signal strength scope
The upper limit value of weak signal strength scope described in limit value >, the 4th time > institutes described in the 3rd time > described in the first time >
Stated for the second time.
In one embodiment, the 3rd transmitting element 402 can also include:
5th setting unit, when being in for the signal strength in middle signal strength range, the time span is set
It was set to for the 5th time;
Wherein, the upper limit value of middle signal strength range described in the lower limit > of the strong signal strength range, the middle letter
The upper limit value of weak signal strength scope, the 5th time > institutes described in the first time > described in the lower limit > of number strength range
Stated for the second time.
In one embodiment, the 3rd transmitting element 402 includes:
Time lengthening unit, when reducing for the signal strength, extends the time span;
Time shortens unit, when increasing for the signal strength, shortens the time span.
In one embodiment, the WiFi automatic connecting systems further include:
Module is returned to, for returning to detection unit, to detect the signal strength again, so as to judge the signal strength
Whether change.
Similarly, in one embodiment, the 3rd transmitting element 402 further includes:
First time adjustment unit, for the signal strength by being changed into weak signal strength scope in strong signal
When in strength range, by the time span by being revised as the second time at the first time;
Second time adjustment unit, for the signal strength by being changed into strong signal strength range in weak signal
When in strength range, by the time span by the second time modification at the first time.
The present embodiment is by when the disabled reason of the AP preserved is signal quality problem, detecting the AP's preserved
Signal strength, and the change of the signal strength according to the AP, the modification of adaptability send the interval time lengths of connection request, energy
Enough change in signal strength according to AP, dynamic adjustment send the interval time lengths of connection request, can maximumlly improve
Automatic joint efficiency and saving power consumption.
Embodiment nine
Figure 10 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in Figure 10, the embodiment
Terminal device 5 includes:Processor 50, memory 51 and it is stored in the memory 51 and can be transported on the processor 50
Capable computer program 52.The processor 50 realizes above-mentioned each WiFi automatic connection sides when performing the computer program 52
Step in method embodiment, such as the step S101 to S104 shown in Fig. 1.Alternatively, the processor 50 performs the computer
The function of each module/unit in above-mentioned each device embodiment, such as the work(of module 101 to 104 shown in Fig. 6 are realized during program 52
Energy.
Exemplary, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are performed by the processor 50, to complete the application.Described one
A or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.For example, the computer program 52 can be divided
It is cut into scan module, sending module, acquisition module, setup module, each module concrete function is as follows:
Scan module, for scanning AP, obtains all AP preserved scanned;
Sending module, for sending connection request to all AP preserved;
Acquisition module, for all AP for having preserved it is disabled when, obtain the quilt of each AP preserved
Disable reason;
Setup module, for the disabled reason according to each AP preserved, sets corresponding automatic connection rule
Then.
The terminal device 5 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that figure
10 be only the example of terminal device 5, does not form the restriction to terminal device 5, can be included more more or fewer than illustrating
Component, either combines some components or different components, for example, the terminal device can also include input-output equipment,
Network access equipment, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk of terminal device 5 or interior
Deposit.The memory 51 can also be the External memory equipment of the terminal device 5, such as be equipped with the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), security value (s) (Secure Digital, SD) card, dodges
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5
Member also includes External memory equipment.The memory 51 is used to store needed for the computer program and the terminal device
Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Said system
The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment
The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that each exemplary list described with reference to the embodiments described herein
Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, can be with
Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as
Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or
In use, it can be stored in a computer read/write memory medium.Based on such understanding, the application realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer-readable recording medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or some intermediate forms etc..Computer-readable Jie
Matter can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, mobile hard disk,
Magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described
The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to foregoing reality
Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to foregoing each
Technical solution described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical solution of the application, should all
Within the protection domain of the application.
Claims (10)
- A kind of 1. WiFi automatic connection methods, it is characterised in that including:AP is scanned, obtains all AP preserved scanned;Connection request is sent to all AP preserved;When all AP for having preserved are disabled, the disabled reason of each AP preserved is obtained;According to the disabled reason of each AP preserved, corresponding automatic concatenate rule is set.
- 2. WiFi automatic connection methods as claimed in claim 1, it is characterised in that each AP preserved of the basis Disabled reason, corresponding automatic concatenate rule is set, including:When the disabled reason of the AP preserved is password mistake, using predetermined time period as the cycle, preserved to described AP send connection request;After the cycle of the first default quantity, when the AP that has preserved is still disabled, the AP preserved is arranged to Permanent disabling;When the password entrained by connection request sent to the AP preserved is modified, the AP preserved is arranged to It can use;Receive it is input by user connection request is sent to the AP that has preserved instruction when, the AP preserved is set It is available.
- 3. WiFi automatic connection methods as claimed in claim 1, it is characterised in that each AP preserved of the basis Disabled reason, corresponding automatic concatenate rule is set, including:When the disabled reason of the AP preserved is that number of users is exceeded, current point in time is obtained;Period according to residing for current point in time, using time span corresponding with the period as the cycle, has protected to described The AP deposited sends connection request.
- 4. WiFi automatic connection methods as claimed in claim 1, it is characterised in that each AP preserved of the basis Disabled reason, corresponding automatic concatenate rule is set, including:When the disabled reason of the AP preserved is presence signal quality problems, the signal of the AP preserved described in detection is strong Degree;According to the signal strength, using time span corresponding with the signal strength as the cycle, sent out to the AP preserved Send connection request;Wherein, the size of the time span and the signal strength is negatively correlated.
- 5. such as Claims 1-4 any one of them WiFi automatic connection methods, it is characterised in that the method further includes:When not scanning the AP preserved, the step of disabling all AP preserved, and return to the scanning AP;Be successfully connected to it is any preserved AP when, stop scanning.
- A kind of 6. WiFi automatic connecting systems, it is characterised in that including:Scan module, for scanning AP, obtains all AP preserved scanned;Sending module, for sending connection request to all AP preserved;Acquisition module, for all AP for having preserved it is disabled when, obtain the disabled of each AP preserved Reason;Setup module, for the disabled reason according to each AP preserved, sets corresponding automatic concatenate rule.
- 7. WiFi automatic connecting systems as claimed in claim 6, it is characterised in that the setup module includes:First transmitting element, when the disabled reason for connecting the AP preserved is password mistake, is grown with preset time Spend for the cycle, connection request is sent to the AP preserved;First setting unit, for after the cycle of the first default quantity, when the AP that has preserved is still disabled, will described in The AP preserved is arranged to forever disable;Second setting unit, when being modified for the password entrained by the connection request to the AP transmissions preserved, by institute State the AP preserved and be arranged to available;3rd setting unit, for receive it is input by user connection request is sent to the AP that has preserved instruction when, will The AP preserved is arranged to available;Acquiring unit, when the disabled reason for the AP preserved is that number of users is exceeded, obtains current point in time;Second transmitting element, for the period according to residing for current point in time, with time span corresponding with the period For the cycle, connection request is sent to the AP preserved;Detection unit, when the disabled reason of the AP preserved is presence signal quality problems, has preserved described in detection The signal strength of AP;3rd transmitting element, for according to the signal strength, using time span corresponding with the signal strength as the cycle, to The AP preserved sends connection request;Wherein, the size of the time span and the signal strength is negatively correlated.
- 8. such as 6 or 7 any one of them WiFi automatic connecting systems of claim, it is characterised in that the system also includes:Disabled module, during for not scanning the AP preserved, disables all AP preserved, and return to the step of the scanning AP Suddenly;Stopping modular, for be successfully connected to it is any preserved AP when, stop scanning.
- 9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that the processor realizes such as claim 1 to 5 when performing the computer program The step of any one the method.
- 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711205710.8A CN107979863B (en) | 2017-11-27 | 2017-11-27 | WiFi automatic connection method, system and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711205710.8A CN107979863B (en) | 2017-11-27 | 2017-11-27 | WiFi automatic connection method, system and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107979863A true CN107979863A (en) | 2018-05-01 |
CN107979863B CN107979863B (en) | 2020-03-17 |
Family
ID=62011860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711205710.8A Active CN107979863B (en) | 2017-11-27 | 2017-11-27 | WiFi automatic connection method, system and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107979863B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327915A (en) * | 2018-09-29 | 2019-02-12 | Oppo广东移动通信有限公司 | A kind of connection method, device and terminal |
CN110958665A (en) * | 2018-09-27 | 2020-04-03 | 九阳股份有限公司 | Method for accessing household appliance to router network and household appliance |
CN112805691A (en) * | 2018-11-19 | 2021-05-14 | 深圳市欢太科技有限公司 | Exception handling method, terminal device and storage medium |
CN114363831A (en) * | 2021-12-02 | 2022-04-15 | 北京万集科技股份有限公司 | Method, apparatus and computer-readable storage medium for transmitting V2X message |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103997768A (en) * | 2014-05-16 | 2014-08-20 | 深圳市欧珀通信软件有限公司 | Method and device for preventing access to invalid Wi-Fi hot spots |
CN105119776A (en) * | 2015-09-08 | 2015-12-02 | 广东欧珀移动通信有限公司 | Method and system for detecting cause of WiFi connection failure |
CN105120505A (en) * | 2015-07-28 | 2015-12-02 | 小米科技有限责任公司 | Method, apparatus and system for making intelligent equipment accessed to router |
CN105163370A (en) * | 2015-08-05 | 2015-12-16 | 中国联合网络通信集团有限公司 | Network access processing method and access point |
CN105827598A (en) * | 2016-03-11 | 2016-08-03 | 四川长虹电器股份有限公司 | Method and system for strengthening WiFi security of access router |
US20160262146A1 (en) * | 2006-06-30 | 2016-09-08 | Core Wireless Licensing S.A.R.L. | Method of controlling a mobile terminal, and an associated mobile terminal |
CN106604314A (en) * | 2016-12-07 | 2017-04-26 | 广东欧珀移动通信有限公司 | Network access method for Wi-Fi roaming and terminal device |
CN106851780A (en) * | 2016-12-07 | 2017-06-13 | 广东欧珀移动通信有限公司 | The method and terminal of a kind of network connection |
CN107277896A (en) * | 2017-08-08 | 2017-10-20 | 广东欧珀移动通信有限公司 | Wifi hotspot management method, device and terminal device |
-
2017
- 2017-11-27 CN CN201711205710.8A patent/CN107979863B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160262146A1 (en) * | 2006-06-30 | 2016-09-08 | Core Wireless Licensing S.A.R.L. | Method of controlling a mobile terminal, and an associated mobile terminal |
CN103997768A (en) * | 2014-05-16 | 2014-08-20 | 深圳市欧珀通信软件有限公司 | Method and device for preventing access to invalid Wi-Fi hot spots |
CN105120505A (en) * | 2015-07-28 | 2015-12-02 | 小米科技有限责任公司 | Method, apparatus and system for making intelligent equipment accessed to router |
CN105163370A (en) * | 2015-08-05 | 2015-12-16 | 中国联合网络通信集团有限公司 | Network access processing method and access point |
CN105119776A (en) * | 2015-09-08 | 2015-12-02 | 广东欧珀移动通信有限公司 | Method and system for detecting cause of WiFi connection failure |
CN105827598A (en) * | 2016-03-11 | 2016-08-03 | 四川长虹电器股份有限公司 | Method and system for strengthening WiFi security of access router |
CN106604314A (en) * | 2016-12-07 | 2017-04-26 | 广东欧珀移动通信有限公司 | Network access method for Wi-Fi roaming and terminal device |
CN106851780A (en) * | 2016-12-07 | 2017-06-13 | 广东欧珀移动通信有限公司 | The method and terminal of a kind of network connection |
CN107277896A (en) * | 2017-08-08 | 2017-10-20 | 广东欧珀移动通信有限公司 | Wifi hotspot management method, device and terminal device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958665A (en) * | 2018-09-27 | 2020-04-03 | 九阳股份有限公司 | Method for accessing household appliance to router network and household appliance |
CN109327915A (en) * | 2018-09-29 | 2019-02-12 | Oppo广东移动通信有限公司 | A kind of connection method, device and terminal |
CN112805691A (en) * | 2018-11-19 | 2021-05-14 | 深圳市欢太科技有限公司 | Exception handling method, terminal device and storage medium |
CN114363831A (en) * | 2021-12-02 | 2022-04-15 | 北京万集科技股份有限公司 | Method, apparatus and computer-readable storage medium for transmitting V2X message |
Also Published As
Publication number | Publication date |
---|---|
CN107979863B (en) | 2020-03-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107979863A (en) | A kind of WiFi automatic connection methods, system and terminal device | |
CN108040358B (en) | Wireless network connection method, terminal device and storage medium | |
CN108173727B (en) | Intelligent household appliance network access method and equipment | |
CN107980241B (en) | Gateway multi-connection method and device | |
CN106954225A (en) | Method, device and the wireless device of radio roaming | |
CN111177025B (en) | Data storage method and device and terminal equipment | |
CN111132267A (en) | Network distribution method and device and terminal equipment | |
CN209949085U (en) | User identity identification integrated card, data communication equipment and system | |
CN107404740A (en) | Method for switching network, device and the terminal device of safety | |
CN107708175A (en) | A kind of WiFi automatic connection methods, system and terminal device | |
CN111585817B (en) | Power-saving mode switching method and device | |
CN107968848A (en) | A kind of method, terminal device and storage medium for obtaining IP address | |
CN111130828B (en) | Intelligent network distribution method and device and terminal equipment | |
CN112715040B (en) | Method for reducing power consumption, terminal equipment and storage medium | |
CN107820298A (en) | Wireless network management method, wireless network management device and intelligent terminal | |
CN108021639A (en) | Information-pushing method, device, server and storage medium | |
CN110460997A (en) | A kind of 4G terminal management-control method and system | |
CN108551429A (en) | Flow control methods, electronic device and the computer readable storage medium of application program | |
AU2018407192A1 (en) | Resource configuration method and device, and computer storage medium | |
CN109657471B (en) | Cloud equipment management system and method | |
CN109788435B (en) | Wireless hotspot control method and device, electronic equipment and storage medium | |
CN105282818A (en) | Method for connecting wireless speaker to network and user terminal | |
CN207664994U (en) | A kind of appliance control system | |
CN113485135B (en) | Event processing method and device, storage medium and electronic device | |
CN111127706A (en) | Intelligent lock control method, intelligent lock, cloud server and computing equipment |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |