CN106060897A - Method for automatically starting WiFi and electronic device using same - Google Patents
Method for automatically starting WiFi and electronic device using same Download PDFInfo
- Publication number
- CN106060897A CN106060897A CN201610394462.5A CN201610394462A CN106060897A CN 106060897 A CN106060897 A CN 106060897A CN 201610394462 A CN201610394462 A CN 201610394462A CN 106060897 A CN106060897 A CN 106060897A
- Authority
- CN
- China
- Prior art keywords
- state
- wifi
- electronic equipment
- switch condition
- further configured
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000006243 chemical reaction Methods 0.000 claims abstract description 9
- 230000005059 dormancy Effects 0.000 description 5
- 230000000284 resting effect Effects 0.000 description 4
- 230000006855 networking Effects 0.000 description 3
- 230000007958 sleep Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000005611 electricity Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000006641 stabilisation Effects 0.000 description 2
- 238000011105 stabilization Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
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
- H04W48/04—Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
-
- 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 present invention provides a method for automatically starting WiFi and an electronic device using the method. The method comprises: S1. judging a current WiFi state, and if the state is a D3 state, executing step S2; S2. judging whether a conversion condition is met, and is so, executing step S3; and S3. converting the WiFi state into a D0 state, and executing an action of connecting WiFi. The method provided by the present invention can automatically start WiFi without manual connection.
Description
Technical field
The present invention relates to WiFi control field, a kind of method automatically turning on WiFi and the electricity of application the method
Subset.
Background technology
Currently, people are the wifi configuration on meeting manual-lock mobile terminal when going out, and when going back home or handle official business field
During conjunction, need manual startup wifi, and be connected in WiFi list the wireless network preserved, on the one hand, owing to needs are used
The opening and closing WiFi that family is manual, operates cumbersome, on the other hand, usually can because of forgetting to connect Wifi, and cause losing
Missing social software or information that mail sends over, this also can bring the biggest trouble to user.
Summary of the invention
The invention provides and a kind of start the method automatically turning on WiFi and the application of WiFi without manual connection
The electronic installation of the method, described method can start wifi by the case of meeting a switch condition and perform automatically
The action that network connects.
In order to solve above-mentioned technical problem, the invention provides following technical scheme:
A kind of method automatically turning on WiFi, comprises the following steps:
S1: judge current WiFi state, as D3 state, then performs step S2;
S2: judge whether to meet switch condition, in this way, then performs step S3;
S3: by described WiFi State Transferring to D0 state, and perform to connect the action of WiFi.
As preferably, also include step S0 before described step S1: start operating system.
As preferably, described step S3 is further configured to, and when connecting WiFi failure, conversion is to D3 state.
As preferably, described step S3 is further configured in a very first time threshold value, when connecting WiFi failure, and conversion
To D3 state.
As preferably, described step S3 is further configured to, and when connecting number of times failed for WiFi more than a predetermined value, turns
Shift to D3 state.
As preferably, described switch condition includes: in the second time threshold, positional information is constant.
It addition, the present invention may be provided for a kind of electronic equipment, described electronic apparatus application automatically turns on as above
The method of WiFi, and described electronic equipment at least includes a state converter, it is configured to the WIFI at described electronic equipment
When state is D3, according to a switch condition, by WIFI State Transferring to D0 state.
As preferably, described switch condition includes: in the second time threshold, and the positional information of described electronic equipment is not
Become.
As preferably, described state converter is further configured in WiFi state is D0, and very first time threshold value,
When connecting WiFi failure, by described WiFi State Transferring to D3 state.
As preferably, it is D0 that described state converter is further configured in WiFi state, connects the secondary of WiFi failure
When number is more than a predetermined value, by described WiFi State Transferring to D3 state.
Compared with prior art, the beneficial effects of the present invention is,
The present invention can be by by sleep or the WiFi of dormancy, by the realization of a switch condition, and being automatically switched to
The opening of WiFi, it is not necessary to user carries out manual connection or closedown to WiFi, simple to operate and convenient, simultaneously also will not shadow
Ring user receive or transmit data information.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of method automatically turning on WiFi in the embodiment of the present invention;
Fig. 2 is the theory diagram of a kind of electronic equipment in the embodiment of the present invention.
Description of reference numerals
1-WiFi connects control device 2-state converter
3-switch condition supervising device
Detailed description of the invention
Below, in conjunction with accompanying drawing, embodiments of the invention are described in detail, but not as limiting to the invention.
The invention provides a kind of method automatically turning on WiFi, the method can be automatically adjusted the state of WiFi, this
WiFi state in embodiment can include D0 state and D3 state, the state that wherein D0 state representation WiFi is unlocked,
With by identifying that outside known wireless network realizes from the state being dynamically connected, the resting state of D3 state representation WiFi, quite
Dormancy in electronic equipment, it is only necessary to one triggers signal, i.e. can restart.And in the present embodiment under this D3 state, when
When meeting a switch condition, i.e. can automatically from D3 State Transferring to D0 state, and perform the connection of wireless network.Without hands
Dynamic turns off or on WiFi, saves time and convenient.
As it is shown in figure 1, be the flow chart of a kind of method automatically turning on WiFi in the embodiment of the present invention, wherein, the party
Method can apply in the electronic equipment such as mobile phone, computer, and may comprise steps of:
S1: judge current WiFi state, as D3 state, then performs step S2;This D3 state is the dormancy shape of WiFi
State.And, when performing step S1, operating system should be starting state, i.e. operating system should be the situation of normal operating, rather than stops
The states such as dormancy or sleep.
S2: judge whether to meet switch condition, in this way, then performs step S3;This switch condition can be at one second threshold
In the value time, the positional information of electronic equipment is constant, or the remaining static of electronic equipment.It is to say, can be by right
Electronic equipment carries out location positioning, or the vibration of monitoring electronic equipment, to judge that whether it is as resting state.And only meeting
During above-mentioned switch condition, WiFi just can be transformed into D0 state.This second time threshold can be 5 minutes, it is also possible to is 3 points
Clock, or such as 1-5 minute interior any number.
S3: by WiFi State Transferring to D0 state, and perform to connect the action of WiFi.
By above-mentioned configuration, i.e. can be implemented in when meeting switch condition, automatically turn on WiFi, to perform the dynamic of networking
Make.Without manual unlatching WiFi, also avoid owing to forgetting to connect WiFi, and time delay receives the time of data.
Additionally, it is preferred that, step S3 of the present embodiment can also be further configured to, and in very first time threshold value, connects
During WiFi failure, conversion is to D3 state.That is, when the baulk of the WiFi that is certainly dynamically connected, may switch to resting state, due to
The impact of the signal stabilization factor of network, cipher change factor, network speed, bandwidth etc., can occur to connect wireless network failure often
Situation, if being continuously in D0 state, constantly connecting network, the electricity usage of electronic equipment can be accelerated, nor must
The action of networking to be continued executing with.Preferably the very first time threshold value in the present embodiment can be 5 minutes, it is also possible to be any its
His value, such as the arbitrary value in the range of 1-10 minute.
Furthermore it is also possible to optimize the State Transferring of WiFi by limiting connection number of times, i.e. described step S3 can enter one
Step is configured to, and when connecting number of times failed for WiFi more than a predetermined value, conversion is to D3 state.Equally, this configuration can also rise
To the effect of saving electric power, and predetermined value can be 10 times, it is also possible to is other arbitrary value, between the scope of 5-20 time
Arbitrary value.
It addition, the present invention may be provided for a kind of electronic equipment, this electronic equipment can pass through above-mentioned automatically turning on
The method of WiFi, manages the state of WiFi automatically.As in figure 2 it is shown, be the principle of a kind of electronic equipment in the embodiment of the present invention
Structured flowchart.Wherein it is possible to include: WiFi connects control device 1, state converter 2, switch condition supervising device 3, wherein
WiFi connects control device 1 and may be used for connecting wireless network.It can identify current wireless network automatically, and sets up connection
The wireless network list crossed, and the action from the network that is dynamically connected can be performed when WiFi state is D0 state.
State converter 2, its can with the WIFI state of electronic equipment for D3 time, according to a switch condition, by WIFI shape
State is changed to D0 state.
Switch condition supervising device 3, it is for monitoring whether electronic equipment meets the switch condition preset, this switch condition
Can be included in the Second Threshold time, the positional information of electronic equipment is constant, or electronic equipment remains static.The most just
Being to say, state converter 2 can be connected with the positioner in electronic equipment and vibration detection device, to monitor electronic equipment
Positional information or the most static information.And only when meeting above-mentioned switch condition, switch condition supervising device 3 can be to
State converter 2 sends an expression and meets the signal of switch condition, and state converter 2 then can perform based on this signal
From D3 state to the conversion of D0 state.
On the other hand, when the wifi of electronic equipment is in D0 state, switch condition supervising device 3 can monitor first
In time threshold, connect the situation of WiFi, if it fails to connect, the letter about connection failure can be sent to state converter
Number, state converter 2 then based on this signal by WiFi State Transferring to D3 state.That is, when in very first time threshold value, from
Be dynamically connected the baulk of WiFi time, may switch to resting state, due to the signal stabilization factor of network, cipher change because of
The impact of element, network speed, bandwidth etc., can occur to connect the situation that wireless network is failed, if being continuously in D0 state, constantly often
Connection network, the power consumption of electronic equipment can be accelerated, nor necessity continues executing with the action of networking.Preferably this reality
Executing the very first time threshold value in example can be 5 minutes, it is also possible to be any other value, such as appointing in the range of 1-10 minute
Meaning value.
Furthermore it is also possible to optimize the State Transferring of WiFi by limiting connection number of times, i.e. at the wifi of electronic equipment
When D0 state, switch condition supervising device 3 can monitor the number of times of wifi connection failure, and is connecting the failed number of times of WiFi
During more than a predetermined value, the signal having reached the upper limit about wifi connection failure number of times can be sent to state converter 2, and
State converter 2 then can be by wifi State Transferring to D3 state.Equally, this configuration can also play the work saving electric power
With, and predetermined value can be 10 times, it is also possible to it is other arbitrary value, such as the arbitrary value between the scope of 5-20 time.
It is understood that the electronic equipment in the embodiment of the present invention can be to connect setting of wireless network arbitrarily
Standby, such as handheld terminal, computer equipment etc., but the present invention is not limited to this, arbitrarily can realize the equipment of above-described embodiment all
Can be as the electronic equipment in the embodiment of the present invention.Can lead to it addition, above-mentioned state converter, switch condition control device
Cross hardware configuration of the prior art, electronic device is combined into.
In sum, the present invention can be by by sleep or the WiFi of dormancy, by the realization of a switch condition, and from
The dynamic opening being transformed into WiFi, it is not necessary to user carries out manual connection or closedown to WiFi, simple to operate and convenient, simultaneously
Do not interfere with user receive or transmit data information yet.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art, in the technical scope that the invention discloses, can readily occur in the amendment of various equivalence or replace
Changing, these amendments or replacement all should be contained within protection scope of the present invention.Therefore, protection scope of the present invention should be with right
The protection domain required is as the criterion.
Claims (10)
1. the method automatically turning on WiFi, it is characterised in that comprise the following steps:
S1: judge current WiFi state, as D3 state, then performs step S2;
S2: judge whether to meet switch condition, in this way, then performs step S3;
S3: by described WiFi State Transferring to D0 state, and perform to connect the action of WiFi.
Method the most according to claim 1, it is characterised in that also include step S0 before described step S1: start operation
System.
Method the most according to claim 1, it is characterised in that described step S3 is further configured to, loses connecting WiFi
When losing, conversion is to D3 state.
Method the most according to claim 2, it is characterised in that described step S3 is further configured at a very first time threshold
In value, when connecting WiFi failure, conversion is to D3 state.
Method the most according to claim 2, it is characterised in that described step S3 is further configured to, loses connecting WiFi
When the number of times lost is more than a predetermined value, conversion is to D3 state.
Method the most according to claim 1, it is characterised in that described switch condition includes: in the second time threshold, position
Put Information invariability.
7. an electronic equipment, it is characterised in that described electronic apparatus application as described in any one in claim 1-6 from
Moving the method opening WiFi, and described electronic equipment at least includes a state converter, it is configured at described electronic equipment
WIFI state when being D3, according to a switch condition, by WIFI State Transferring to D0 state.
Electronic equipment the most according to claim 7, it is characterised in that described switch condition includes: at the second time threshold
In, the positional information of described electronic equipment is constant.
Electronic equipment the most according to claim 7, it is characterised in that described state converter is further configured to
In WiFi state is D0, and very first time threshold value, when connecting WiFi failure, by described WiFi State Transferring to D3 state.
Electronic equipment the most according to claim 7, it is characterised in that described state converter is further configured to
WiFi state is D0, when connecting number of times failed for WiFi more than a predetermined value, by described WiFi State Transferring to D3 state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610394462.5A CN106060897A (en) | 2016-05-31 | 2016-05-31 | Method for automatically starting WiFi and electronic device using same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610394462.5A CN106060897A (en) | 2016-05-31 | 2016-05-31 | Method for automatically starting WiFi and electronic device using same |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106060897A true CN106060897A (en) | 2016-10-26 |
Family
ID=57169607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610394462.5A Pending CN106060897A (en) | 2016-05-31 | 2016-05-31 | Method for automatically starting WiFi and electronic device using same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106060897A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327916A (en) * | 2018-10-26 | 2019-02-12 | 成都心吉康科技有限公司 | The WLAN of mobile terminal connects the method and device of WiFi automatically |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110159818A1 (en) * | 2009-07-20 | 2011-06-30 | Wefi, Inc. | System and Method of Automatically Connecting a Mobile Communication Device to A Network Using a Communications Resource Database |
CN103024929A (en) * | 2012-12-20 | 2013-04-03 | 惠州Tcl移动通信有限公司 | Mobile terminal and method for connecting wireless network based on mobile terminal |
CN103596635A (en) * | 2012-12-24 | 2014-02-19 | 华为终端有限公司 | Method for controlling wireless fidelity device in terminal, controlling device and terminal |
CN103813474A (en) * | 2014-02-25 | 2014-05-21 | 罗建平 | Method for mobile terminal to be automatically connected with WLAN |
CN104345862A (en) * | 2013-08-08 | 2015-02-11 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105282330A (en) * | 2015-09-18 | 2016-01-27 | 广东欧珀移动通信有限公司 | Method and apparatus for automatically accessing network |
-
2016
- 2016-05-31 CN CN201610394462.5A patent/CN106060897A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110159818A1 (en) * | 2009-07-20 | 2011-06-30 | Wefi, Inc. | System and Method of Automatically Connecting a Mobile Communication Device to A Network Using a Communications Resource Database |
CN103024929A (en) * | 2012-12-20 | 2013-04-03 | 惠州Tcl移动通信有限公司 | Mobile terminal and method for connecting wireless network based on mobile terminal |
CN103596635A (en) * | 2012-12-24 | 2014-02-19 | 华为终端有限公司 | Method for controlling wireless fidelity device in terminal, controlling device and terminal |
CN104345862A (en) * | 2013-08-08 | 2015-02-11 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103813474A (en) * | 2014-02-25 | 2014-05-21 | 罗建平 | Method for mobile terminal to be automatically connected with WLAN |
CN105282330A (en) * | 2015-09-18 | 2016-01-27 | 广东欧珀移动通信有限公司 | Method and apparatus for automatically accessing network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327916A (en) * | 2018-10-26 | 2019-02-12 | 成都心吉康科技有限公司 | The WLAN of mobile terminal connects the method and device of WiFi automatically |
CN109327916B (en) * | 2018-10-26 | 2021-05-18 | 成都心吉康科技有限公司 | Method and device for automatically connecting WLAN of mobile terminal to WiFi |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105409294B (en) | The management method of the wireless interface of equipment and corresponding wireless device | |
US20170264451A1 (en) | Intelligent Home Terminal and Control Method of Intelligent Home Terminal | |
EP2490368B1 (en) | Method for using wireless data card individually to access network and wireless access terminal | |
WO2011006310A1 (en) | Device and method for power supplying control | |
CN106575875A (en) | Method and system for managing power at a device | |
CN106209652A (en) | A kind of routing device and power-saving method, device | |
CN104618956B (en) | A kind of method and device for controlling cell | |
CN109298775A (en) | Terminal device and task processing method | |
CN106060897A (en) | Method for automatically starting WiFi and electronic device using same | |
CN104883613B (en) | A kind of method that TV is waken up by network-termination device | |
JP2010140241A (en) | Network repeater, and method and computer program for controlling power of network repeater | |
US20130149986A1 (en) | Communication terminal device and method for enabling urgent communication | |
US12119189B2 (en) | Controllable switch, dual-control switch and control system | |
CN202524434U (en) | PSTN power-off escape system of IP phone | |
CN107548131B (en) | Mobile broadband equipment and power saving method thereof | |
CN103188363A (en) | Public switched telephone network (PSTN) outage and escape system of Internet protocol (IP) phone | |
CN204795340U (en) | Built -in router control system and TV | |
JP6272216B2 (en) | RELAY DEVICE, RELAY DEVICE CONTROL METHOD, AND RELAY DEVICE PROGRAM | |
CN104427112A (en) | Information processing method and electronic device | |
Omenogor et al. | Design and Implementation of a Computer-Based Power Management System | |
CN214101473U (en) | A wireless network access device and network telephone system | |
CN202661999U (en) | Portable electronic device | |
JP5922601B2 (en) | Network equipment | |
CN102378056A (en) | Set-top box for television | |
KR100628103B1 (en) | How to control polling time of mobile communication terminal and instant message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161026 |