CN107277896A - Wifi hotspot management method, device and terminal device - Google Patents
Wifi hotspot management method, device and terminal device Download PDFInfo
- Publication number
- CN107277896A CN107277896A CN201710669879.2A CN201710669879A CN107277896A CN 107277896 A CN107277896 A CN 107277896A CN 201710669879 A CN201710669879 A CN 201710669879A CN 107277896 A CN107277896 A CN 107277896A
- Authority
- CN
- China
- Prior art keywords
- wifi hotspot
- attachable
- net
- surf
- wifi
- 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/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
Abstract
The present invention is applied to focus administrative skill field there is provided a kind of wifi hotspot management method, device and terminal device, including:Detect whether there is attachable wifi hotspot;When there is attachable wifi hotspot, detect whether the attachable wifi hotspot can surf the Net;When the attachable wifi hotspot can not surf the Net, the network attribute mNetworkValid=false of the attachable wifi hotspot is set and the number of times mNetFallCount++ that can not surf the Net is set;When the attachable wifi hotspot can surf the Net, the mNetworkValid=true of the attachable wifi hotspot is set and the mNetFallCount is reset.Pass through the above method, it is possible to increase the access rate of network.
Description
Technical field
Set the invention belongs to focus administrative skill field, more particularly to a kind of wifi hotspot management method, device and terminal
It is standby.
Background technology
At present, people's using terminal equipment access network can obtain various information, and in the mistake of access network
Cheng Zhong, is usually directed to the switching between heterogeneous networks.In existing method for switching network, including from data network switch to opening
Wireless network, or, switch to another wireless network from a wireless network.
But in existing wifi hotspot management method, when needing to switch to (or access) wifi hotspot, generally
(or access) some wifi hotspot is switched to according to the random selection of the information of currently detected wifi hotspot, due to wifi hotspot
It is Stochastic accessing, therefore, the wifi hotspot being currently accessed is probably to surf the Net, so as to cause to access effective wifi hotspot
Overlong time, reduce user good experience.
Therefore, it is necessary to a kind of new technical scheme is proposed, to solve above-mentioned technical problem.
The content of the invention
In view of this, the embodiments of the invention provide a kind of wifi hotspot management method, device and terminal device, to solve
Prior art is due to Stochastic accessing wifi hotspot so that the wifi hotspot of access is probably the wifi hotspot that can not be surfed the Net, so that
The problem of causing to access the overlong time of effective wifi hotspot.
The first aspect of the embodiment of the present invention provides a kind of wifi hotspot management method, including:
Detect whether there is attachable wifi hotspot;
When there is attachable wifi hotspot, detect whether the attachable wifi hotspot can surf the Net;
When the attachable wifi hotspot can not surf the Net, the network attribute of the attachable wifi hotspot is set
MNetworkValid=false and setting can not surf the Net number of times mNetFallCount++;
When the attachable wifi hotspot can surf the Net, the attachable wifi hotspot is set
The mNetworkValid=true and clearing mNetFallCount.
The second aspect of the embodiment of the present invention provides a kind of wifi hotspot managing device, including:
Attachable wifi hotspot detection unit, for detecting whether there is attachable wifi hotspot;
Whether Wifi focuses can surf the Net detection unit, for that when there is attachable wifi hotspot, can connect described in detection
Whether the wifi hotspot connect can surf the Net;
First network attribute setting unit, for when the attachable wifi hotspot can not surf the Net, setting is described can
The network attribute mNetworkValid=false of the wifi hotspot of connection and the number of times mNetFallCount that can not surf the Net is set
++;
Second network attribute setting unit, for that when the attachable wifi hotspot can surf the Net, can connect described in setting
The mNetworkValid=true and the clearing mNetFallCount of the wifi hotspot connect.
The third aspect of the embodiment of the present invention 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, described in the computing device during computer program
Realize such as the step of any one of wifi hotspot management method methods described.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage
Media storage has computer program, is realized when the computer program is executed by processor such as any one of wifi hotspot management method
The step of methods described.
The beneficial effect that the embodiment of the present invention exists compared with prior art is:
Due to that when detecting attachable wifi hotspot, whether can be surfed the Net according to the attachable wifi hotspot, set
Newly-increased network attribute and the corresponding property value of number of times that can not surf the Net, therefore, be easy to it is follow-up directly according to the network attribute with
And the corresponding property value of number of times that can not surf the Net chooses whether to access the wifi hotspot, so as to avoid being linked into what can not be surfed the Net
Wifi hotspot, improves the speed of access network, improves the good experience of user.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of flow chart for wifi hotspot management method that the embodiment of the present invention one is provided;
Fig. 2 is a kind of structural representation for mobile terminal that the embodiment of the present invention one is provided;
Fig. 3 is a kind of structural representation for wifi hotspot managing device that the embodiment of the present invention two is provided;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention three is provided.
Embodiment
In describing 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, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention 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 description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of flow chart for wifi hotspot management method that first embodiment of the invention is provided, and details are as follows:
Step S11, detects whether there is attachable wifi hotspot.
Specifically, terminal device can regularly detect whether there is attachable wifi hotspot, or, receiving wifi inspections
Surveying instruction, (such as when terminal device is mobile phone, when user opens " WLAN " of mobile phone, mobile phone will receive wifi detections
Instruction) detect afterwards near terminal device with the presence or absence of attachable wifi hotspot.
Specifically, when terminal device is mobile terminal, the schematic diagram of the mobile terminal is as shown in Fig. 2 in fig. 2, be somebody's turn to do
Mobile terminal includes memory 201, processor 202, input equipment 203, output equipment 204, bus 205.
Step S12, when there is attachable wifi hotspot, detects whether the attachable wifi hotspot can surf the Net.
Specifically, attachable wifi hotspot can surf the Net including:The wifi hotspot of authentication information is not needed, then is had access to
The wifi hotspot and surfed the Net by the wifi hotspot;The wifi can be obtained by needing the wifi hotspot but terminal device of authentication information
The authentication information of focus.It is pointed out that the premise that above-mentioned attachable wifi hotspot can surf the Net is also attachable including this
The signal intensity of wifi hotspot meets the requirements.
Step S13, when the attachable wifi hotspot can not surf the Net, sets the net of the attachable wifi hotspot
Network attribute mNetworkValid=false and setting can not surf the Net number of times mNetFallCount++.
Alternatively, in order to provide different method for switching network, after step s 13, including:
A1, the connectivity option for judging the attachable wifi hotspot are manual connection or automatic connection.Specifically, examine
Survey whether terminal device opens wifi connection selection functions, if being not turned on, the selection of connection wifi functions is carried manually for display
Show and connection wifi functions selection prompting automatically, if having turned on, the connectivity option for judging wifi hotspot be connect manually or
Automatic connection, when user select be manual connection when, judge the connectivity option of the wifi hotspot it is corresponding be manual connection.
Due to display connection wifi functions selection prompting and automatic connection wifi functions selection prompting manually, therefore, wifi companies are enriched
Connection function.
If A2, the connectivity option of the attachable wifi hotspot are manual connections, display can not surf the Net, and preserve described
MNetworkValid and mNetFallCount property value is to file, and not handover network.Due to can not in wifi hotspot
During online, display can not surf the Net, therefore, be easy to user to know currently to cannot get online in time.Certainly, if detect again, detection
As a result show that the attachable wifi hotspot can surf the Net, then display can surf the Net, and update the attribute of the mNetworkValid
It is worth for true, and the clearing mNetFallCount property value.
If A3, the connectivity option of the attachable wifi hotspot are automatic connections, display can not surf the Net, and preserve described
MNetworkValid and mNetFallCount property value continues to detect other available networks to file, is detecting
During other available networks, other described available networks are switched to.Wherein, other available networks here include:Available data
Network and available wifi network, and priority of the priority higher than available data network of available wifi network, that is, exist
When being detected simultaneously by available data network and available wifi network, available wifi network is preferentially switched to.Certainly, if not having
Other available networks are detected, then display can not surf the Net and not handover network.
Alternatively, in step A3 described in when detecting other available networks, switch to other described available networks
Afterwards, including:
Whether A4, other described available networks of judgement are data network, and are data network in other described available networks
When, continue to detect whether there is other available wifi hotspots, and when there are other available wifi hotspots, from the data network
Switch to other described available wifi hotspots.Alternatively, in order to avoid the money spent by wifi hotspot can be used due to detection in real time
Source, then after access data network, when timing or the distance in current location and a upper position exceed pre-determined distance threshold value, inspection
Survey with the presence or absence of other available wifi hotspots.Alternatively, when there is available wifi hotspot, the available wifi hotspot is judged
Whether number is more than 1, if so, the then best wifi hotspot of prioritizing selection network performance, such as selection packet loss minimum and/or tcp
Link State is preferably and/or the signal intensity that receives indicates maximum wifi hotspot, if it is not, then directly selecting the wifi hotspot.
Alternatively, if the connectivity option of the attachable wifi hotspot described in step A3 is automatic connection, show
Showing to surf the Net, after property value to the file for preserving the mNetworkValid and mNetFallCount, including:
If B1, detecting the attachable wifi hotspot and can surf the Net, display can surf the Net, and file is preserved
MNetworkValid property value is updated to true, and resets the property value of the mNetFallCount.
If B2, after display can surf the Net detecting the attachable wifi hotspot again and can not surf the Net, show not
It can surf the Net, and the property value for the mNetworkValid that file is preserved is updated to false, and do not update described
MNetFallCount property value.Because the attachable wifi hotspot is after it can surf the Net and it is detected to surf the Net,
Do not update the property value of the mNetFallCount then, can be connected so that terminal device can subsequently have an opportunity to access this again
Wifi hotspot, and verify whether the attachable wifi hotspot can not surf the Net, pass through two to the attachable wifi hotspot
It is secondary to confirm, the scope of the accessible wifi hotspot of terminal device is not only increased, can also be improved to the attachable wifi heat
Point whether the accuracy for the judged result that can be surfed the Net.
Step S14, when the attachable wifi hotspot can surf the Net, sets the attachable wifi hotspot
The mNetworkValid=true and clearing mNetFallCount.
Alternatively, after the step S14, including:When pair attachable wifi hotspot that can be surfed the Net is entered again
Row detection, and testing result is when can not surf the Net, display can not surf the Net, and the property value of the mNetworkValid is updated to
False, and the property value (keeping the property value of the mNetFallCount constant) of the mNetFallCount is not updated.
Afterwards the step of, is identical with A1~A4's and B1~B2, and this is repeated no more.
Alternatively, the wifi hotspot management method also includes:
If C1, be not present attachable wifi hotspot, it is determined that in the absence of attachable wifi hotspot the reason for.
C2, it is when being disconnected with the wifi hotspot, to detect the wifi the reason in the absence of attachable wifi hotspot
The mNetworkValid of focus property value and mNetFallCount property value, according to the wifi hotspot
The testing result of mNetworkValid property value chooses whether the wifi hotspot adding alternative hotspot list, according to institute
The testing result for stating the mNetFallCount of wifi hotspot property value chooses whether to disable the wifi hotspot.Specifically, exist
The reason in the absence of attachable wifi hotspot is when being disconnected with the wifi hotspot, to detect the wifi hotspot
MNetworkValid property value, will be described when the mNetworkValid of wifi hotspot property value is true
Wifi hotspot adds alternative hotspot list, when the mNetworkValid of wifi hotspot property value is false, will not
The wifi hotspot adds alternative hotspot list;In addition, the property value of the wifi hotspot mNetFallCount is also detected, if
The property value of the mNetFallCount is more than preset times threshold value, then disables the wifi hotspot, and no longer automatic connection is described
Wifi hotspot, otherwise, the wifi hotspot is not disabled, and the wifi hotspot can be connected automatically.
C3, the reason in the absence of attachable wifi hotspot be restarting terminal device or wifi switches close after beat again
When convincing cause by patient analysis, the mNetworkValid of wifi hotspot described in reading and saving property value and mNetFallCount property value,
The mNetworkValid of wifi hotspot property value and mNetFallCount property value are detected, according to wifi heat
The testing result of the mNetworkValid of point property value chooses whether the wifi hotspot adding alternative hotspot list, root
Choose whether to disable the wifi hotspot according to the testing result of the mNetFallCount of wifi hotspot property value.Specifically
Ground, the reason in the absence of attachable wifi hotspot be restarting terminal device or wifi switches close after reopen and cause
When, the mNetworkValid of wifi hotspot property value described in reading and saving, in the mNetworkValid of the wifi hotspot
Property value when being true, the wifi hotspot is added into alternative hotspot list, in the mNetworkValid of the wifi hotspot
Property value when being false, the wifi hotspot is not added into alternative hotspot list;In addition, also detecting the wifi hotspot
MNetFallCount property value, if the property value of the mNetFallCount is more than preset times threshold value, disabling is described
Wifi hotspot, no longer connects the wifi hotspot automatically, otherwise, and the wifi hotspot is not disabled, and the wifi can be connected automatically
Focus.
In first embodiment of the invention, detect whether there is attachable wifi hotspot, there is attachable wifi heat
During point, detect whether the attachable wifi hotspot can surf the Net, when the attachable wifi hotspot can not surf the Net, set
The network attribute mNetworkValid=false of the attachable wifi hotspot and the number of times that can not surf the Net is set
MNetFallCount++, when the attachable wifi hotspot can surf the Net, sets the attachable wifi hotspot
The mNetworkValid=true and clearing mNetFallCount.Due to when detecting attachable wifi hotspot,
Whether can be surfed the Net according to the attachable wifi hotspot, the network attribute increased newly and the corresponding attribute of number of times that can not surf the Net are set
Value, therefore, is easy to subsequently directly choose whether that access should according to the network attribute and the corresponding property value of number of times that can not surf the Net
Wifi hotspot, so as to avoid being linked into the wifi hotspot that can not be surfed the Net, improves the speed of access network, improves the good of user
Good experience.
Embodiment two:
Corresponding with a kind of wifi hotspot management method that embodiment one is provided, Fig. 3 shows that second embodiment of the invention is carried
A kind of structural representation of the wifi hotspot managing device supplied, the wifi hotspot managing device can be applied in terminal device, be
It is easy to explanation, illustrate only the part related to the embodiment of the present invention:
The wifi hotspot managing device includes:Whether attachable wifi hotspot detection unit 31, Wifi focuses can surf the Net
Detection unit 32, first network attribute setting unit 33, the second network attribute setting unit 34.Wherein:
Attachable wifi hotspot detection unit 31, for detecting whether there is attachable wifi hotspot.
Specifically, it can regularly detect whether there is attachable wifi hotspot, or, receiving wifi detection instructions
(such as when terminal device is mobile phone, when user opens " WLAN " of mobile phone, mobile phone will receive wifi detections instruction)
It whether there is attachable wifi hotspot near detection terminal device afterwards.
Whether Wifi focuses can surf the Net detection unit 32, for when there is attachable wifi hotspot, detection is described can
Whether the wifi hotspot of connection can surf the Net.
Specifically, attachable wifi hotspot can surf the Net including:The wifi hotspot of authentication information is not needed, then is had access to
The wifi hotspot and surfed the Net by the wifi hotspot;The wifi can be obtained by needing the wifi hotspot but terminal device of authentication information
The authentication information of focus.It is pointed out that the premise that above-mentioned attachable wifi hotspot can surf the Net is also attachable including this
The signal intensity of wifi hotspot meets the requirements.
First network attribute setting unit 33, for when the attachable wifi hotspot can not surf the Net, setting described
The network attribute mNetworkValid=false of attachable wifi hotspot and the number of times that can not surf the Net is set
mNetFallCount++。
Alternatively, the wifi hotspot managing device also includes:
Connectivity option is judge module, for judging that the connectivity option of the attachable wifi hotspot is that manual connection is gone back
It is automatic connection.
The message processing module connected manually, if the connectivity option for the attachable wifi hotspot is to connect manually
Connect, display can not surf the Net, the property value for preserving the mNetworkValid and mNetFallCount switches to file, and not
Network.Certainly, if detect again, testing result shows that the attachable wifi hotspot can surf the Net, then display can surf the Net, and
The property value for updating the mNetworkValid is true, and resets the property value of the mNetFallCount.
Automatically the message processing module connected, if the connectivity option for the attachable wifi hotspot is to connect automatically
Connect, display can not surf the Net, preserve the property value of the mNetworkValid and mNetFallCount to file, and continue inspection
Other available networks are surveyed, when detecting other available networks, other described available networks are switched to.Wherein, here other
Available network includes:Available data network and available wifi network, and available wifi network priority higher than available
Data network priority, i.e., when detecting available data network and available wifi network at the same time, preferentially switch to
Available wifi network.Certainly, if not detecting other available networks, display can not surf the Net and not handover network.
Alternatively, the wifi hotspot managing device also includes:
Network type judging unit, for judging whether other described available networks are data network, and it is described other
When available network is data network, continue to detect whether there is other available wifi hotspots, and there is other available wifi heat
During point, other described available wifi hotspots are switched to from the data network.Alternatively, in order to avoid due to detecting available in real time
Resource spent by wifi hotspot, then after access data network, timing or the distance in current location and a upper position surpass
When crossing pre-determined distance threshold value, detect whether there is other available wifi hotspots.Alternatively, when there is available wifi hotspot, sentence
Whether the number for the available wifi hotspot of breaking is more than 1, if so, the then best wifi hotspot of prioritizing selection network performance, is such as selected
Select the signal intensity that packet loss is minimum and/or tcp Link States are best and/or receives and indicate maximum wifi hotspot, if it is not, then
Directly select the wifi hotspot.
Alternatively, the wifi hotspot managing device also includes:
The information process unit for the wifi hotspot that can be surfed the Net, if can for detecting the attachable wifi hotspot
Net, display can surf the Net, and the property value for the mNetworkValid that file is preserved is updated to true, and reset described
MNetFallCount property value.
The information process unit for the wifi hotspot that can not be surfed the Net, if described for being detected again after being surfed the Net in display
Attachable wifi hotspot can not surf the Net, then display can not surf the Net, and the mNetworkValid that file is preserved property value more
It is newly false, and does not update the property value of the mNetFallCount.
Second network attribute setting unit 34, for when the attachable wifi hotspot can surf the Net, setting is described can
The mNetworkValid=true and the clearing mNetFallCount of the wifi hotspot of connection.
Alternatively, the second network attribute setting unit 34 also includes:The attachable wifi hotspot is being set
MNetworkValid=true and after resetting the mNetFallCount, it is described attachable when what pair can be surfed the Net again
Wifi hotspot is detected, and testing result is when can not surf the Net, display can not surf the Net, by the category of the mNetworkValid
Property value is updated to false, and does not update the property value of the mNetFallCount.Afterwards the step of and A1~A4 and B1~
B2's is identical, and this is repeated no more.
Alternatively, the wifi hotspot managing device also includes:
The reason for Wifi focuses can not be connected determining unit, if in the absence of attachable wifi hotspot, it is determined that not depositing
The reason for attachable wifi hotspot.
Wifi hotspot disconnection process unit, for being the reason in the absence of attachable wifi hotspot and wifi heat
When point disconnects, the mNetworkValid of wifi hotspot property value and mNetFallCount property value is detected, according to
The testing result of the mNetworkValid of wifi hotspot property value chooses whether the wifi hotspot adding alternative heat
Point list, chooses whether to disable the wifi according to the testing result of the mNetFallCount of wifi hotspot property value
Focus.Specifically, when the mNetworkValid of wifi hotspot property value is true, the wifi hotspot is added
Alternative hotspot list, when the mNetworkValid of wifi hotspot property value is false, not by the wifi hotspot
Add alternative hotspot list;In addition, the property value of the wifi hotspot mNetFallCount is also detected, if described
MNetFallCount property value is more than preset times threshold value, then disables the wifi hotspot, the wifi is no longer connected automatically
Focus, otherwise, the wifi hotspot is not disabled, and the wifi hotspot can be connected automatically.
Restarting terminal device processing unit, for being restarting terminal device the reason in the absence of attachable wifi hotspot
Or wifi switches close after reopen when causing, the mNetworkValid of wifi hotspot property value described in reading and saving and
MNetFallCount property value, detects the mNetworkValid of wifi hotspot property value and mNetFallCount
Property value, chosen whether according to the testing result of the mNetworkValid of wifi hotspot property value by the wifi
Focus adds alternative hotspot list, is according to the selection of the testing result of the mNetFallCount of wifi hotspot property value
The no disabling wifi hotspot.Specifically, the mNetworkValid of wifi hotspot described in reading and saving property value, described
When the mNetworkValid of wifi hotspot property value is true, the wifi hotspot is added into alternative hotspot list, described
When the mNetworkValid of wifi hotspot property value is false, the wifi hotspot alternative hotspot list is not added into;This
Outside, the property value of the wifi hotspot mNetFallCount is also detected, if the property value of the mNetFallCount is more than in advance
If frequency threshold value, then the wifi hotspot is disabled, the wifi hotspot is no longer connected automatically, otherwise, the wifi heat is not disabled
Point, the wifi hotspot can be connected automatically.
In second embodiment of the invention, due to when detecting attachable wifi hotspot, according to the attachable wifi
Whether focus can surf the Net, and set the network attribute increased newly and the corresponding property value of number of times that can not surf the Net, therefore, be easy to follow-up straight
Connect and chosen whether to access the wifi hotspot according to the network attribute and the corresponding property value of number of times that can not surf the Net, so as to keep away
Exempt to be linked into the wifi hotspot that can not be surfed the Net, improve the speed of access network, improve the good experience of user.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment
Execution sequence should determine that the implementation process without tackling the embodiment of the present invention constitutes any limit with its function and internal logic
It is fixed.
Embodiment three:
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the invention is provided.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include:Processor 40, memory 41 and it is stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 realizes the step in the above method embodiment when performing the computer program 42, for example
Step S11 to S14 shown in Fig. 1.Or, the processor 40 realizes that above-mentioned each device is real when performing the computer program 42
The function of each module/unit in example is applied, such as the function of module 31 to 34 shown in Fig. 3.
Exemplary, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are performed by the processor 40, to complete the present invention.Described one
Individual or multiple module/units can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided
Be cut into can whether can surf the Net detection unit, first network attribute of attachable wifi hotspot detection unit, Wifi focuses set single
Member, the second network attribute setting unit, each unit concrete function are as follows:
Attachable wifi hotspot detection unit, for detecting whether there is attachable wifi hotspot;
Whether Wifi focuses can surf the Net detection unit, for that when there is attachable wifi hotspot, can connect described in detection
Whether the wifi hotspot connect can surf the Net;
First network attribute setting unit, for when the attachable wifi hotspot can not surf the Net, setting is described can
The network attribute mNetworkValid=false of the wifi hotspot of connection and the number of times mNetFallCount that can not surf the Net is set
++;
Second network attribute setting unit, for that when the attachable wifi hotspot can surf the Net, can connect described in setting
The mNetworkValid=true and the clearing mNetFallCount of the wifi hotspot connect.
The terminal device 4 can be that the calculating such as desktop PC, notebook, palm PC and cloud server is set
It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
Only the example of terminal device 4, does not constitute the restriction to terminal device 4, can include than illustrating more or less portions
Part, either combines some parts or different parts, such as described terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be CPU (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) or other PLDs, 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 41 can be the internal storage unit of the terminal device 4, such as hard disk of terminal device 4 or interior
Deposit.The memory 41 can also be the External memory equipment of the terminal device 4, such as is equipped with described terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodges
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4
Member also includes External memory equipment.The memory 41 is used for needed for storing the computer program and the terminal device
Other programs and data.The memory 41 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(
Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit 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 it is integrated in a unit, it is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each function list
Member, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system
The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment
The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example 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, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
, can be with embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method
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, only a kind of division of logic function there can be other dividing mode, for example when actually realizing
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 coupling or direct-coupling or communication connection each other 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 can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.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 invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated module/unit realized using in the form of SFU software functional unit and as independent production marketing or
In use, can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct the hardware of correlation to complete, described meter by computer program
Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium
It can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, 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 should be noted that described
The content that computer-readable medium is included 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 does not include electric carrier signal and electricity
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality
Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each
Technical scheme 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 various embodiments of the present invention technical scheme, all should
Within protection scope of the present invention.
Claims (10)
1. a kind of wifi hotspot management method, it is characterised in that including:
Detect whether there is attachable wifi hotspot;
When there is attachable wifi hotspot, detect whether the attachable wifi hotspot can surf the Net;
When the attachable wifi hotspot can not surf the Net, the network attribute of the attachable wifi hotspot is set
MNetworkValid=false and setting can not surf the Net number of times mNetFallCount++;
When the attachable wifi hotspot can surf the Net, the mNetworkValid=of the attachable wifi hotspot is set
The true and clearing mNetFallCount.
2. wifi hotspot management method as claimed in claim 1, it is characterised in that the attachable wifi is set described
The network attribute mNetworkValid=false of focus and setting can not surf the Net after number of times mNetFallCount++, bag
Include:
The connectivity option for judging the attachable wifi hotspot is manual connection or automatic connection;
If the connectivity option of the attachable wifi hotspot is manual connection, display can not surf the Net, and preserve described
MNetworkValid and mNetFallCount property value is to file, and not handover network;
If the connectivity option of the attachable wifi hotspot is automatic connection, display can not surf the Net, and preserve described
MNetworkValid and mNetFallCount property value continues to detect other available networks to file, is detecting
During other available networks, other described available networks are switched to.
3. wifi hotspot management method as claimed in claim 2, it is characterised in that detecting other available networks described
When, switch to after other described available networks, including:
Judge whether other described available networks are data network, and when other described available networks are data network, continue
Detect whether there is other available wifi hotspots, and when there are other available wifi hotspots, switched to from the data network
Other described available wifi hotspots.
4. wifi hotspot management method as claimed in claim 2, it is characterised in that if in the attachable wifi heat
The connectivity option of point is automatic connection, and display can not surf the Net, and preserve the mNetworkValid's and mNetFallCount
After property value to file, including:
If detecting the attachable wifi hotspot can surf the Net, display can surf the Net, and the mNetworkValid that file is preserved
Property value be updated to true, and reset the property value of the mNetFallCount;
If detecting the attachable wifi hotspot again after display can surf the Net can not surf the Net, display can not surf the Net,
And the property value for the mNetworkValid for preserving file is updated to false, and do not update the mNetFallCount's
Property value.
5. wifi hotspot management method as claimed in claim 1, it is characterised in that the wifi hotspot management method is also wrapped
Include:
If in the absence of attachable wifi hotspot, it is determined that the reason for attachable wifi hotspot is not present;
It is when being disconnected with the wifi hotspot, to detect the wifi hotspot the reason in the absence of attachable wifi hotspot
MNetworkValid property value and mNetFallCount property value, according to the mNetworkValid of the wifi hotspot
The testing result of property value choose whether the wifi hotspot adding alternative hotspot list, according to the wifi hotspot
The testing result of mNetFallCount property value chooses whether to disable the wifi hotspot;
The reason in the absence of attachable wifi hotspot be restarting terminal device or wifi switches close after reopen and cause
When, the mNetworkValid of wifi hotspot property value and mNetFallCount property value described in reading and saving detect institute
The mNetworkValid of wifi hotspot property value and mNetFallCount property value are stated, according to the wifi hotspot
The testing result of mNetworkValid property value chooses whether the wifi hotspot adding alternative hotspot list, according to institute
The testing result for stating the mNetFallCount of wifi hotspot property value chooses whether to disable the wifi hotspot.
6. a kind of wifi hotspot managing device, it is characterised in that including:
Attachable wifi hotspot detection unit, for detecting whether there is attachable wifi hotspot;
Whether Wifi focuses can surf the Net detection unit, for when there is attachable wifi hotspot, detecting described attachable
Whether wifi hotspot can surf the Net;
First network attribute setting unit, for that when the attachable wifi hotspot can not surf the Net, can be connected described in setting
The network attribute mNetworkValid=false and setting of wifi hotspot can not surf the Net number of times mNetFallCount++;
Second network attribute setting unit, for when the attachable wifi hotspot can surf the Net, setting described attachable
The mNetworkValid=true and the clearing mNetFallCount of wifi hotspot.
7. wifi hotspot managing device as claimed in claim 6, it is characterised in that the wifi hotspot managing device is also wrapped
Include:
Connectivity option is judge module, for judging that the connectivity option of the attachable wifi hotspot is manual connects or oneself
Dynamic connection;
The message processing module connected manually, if the connectivity option for the attachable wifi hotspot is manual connection, shows
Showing to surf the Net, and preserve the property value of the mNetworkValid and mNetFallCount to file, and not handover network;
Automatically the message processing module connected, if the connectivity option for the attachable wifi hotspot is automatic connection, shows
Showing to surf the Net, and preserve the property value of the mNetworkValid and mNetFallCount to file, and continues to detect it
His available network, when detecting other available networks, switches to other described available networks.
8. wifi hotspot managing device as claimed in claim 7, it is characterised in that the wifi hotspot managing device is also wrapped
Include:
Network type judging unit, for judging whether other described available networks are data network, and can use in described other
When network is data network, continue to detect whether there is other available wifi hotspots, and when there are other available wifi hotspots,
Other described available wifi hotspots are switched to from the data network.
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 realize such as claim 1 to 5 described in the computing device during computer program
The step of any one methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists
In the step of realizing such as any one of claim 1 to 5 methods described when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710669879.2A CN107277896B (en) | 2017-08-08 | 2017-08-08 | Wifi hotspot management method, device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710669879.2A CN107277896B (en) | 2017-08-08 | 2017-08-08 | Wifi hotspot management method, device and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107277896A true CN107277896A (en) | 2017-10-20 |
CN107277896B CN107277896B (en) | 2019-04-12 |
Family
ID=60076819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710669879.2A Active CN107277896B (en) | 2017-08-08 | 2017-08-08 | Wifi hotspot management method, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107277896B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107708175A (en) * | 2017-11-27 | 2018-02-16 | 广东欧珀移动通信有限公司 | A kind of WiFi automatic connection methods, system and terminal device |
CN107889193A (en) * | 2017-11-27 | 2018-04-06 | 广东欧珀移动通信有限公司 | Method for connecting network, mobile terminal and computer-readable recording medium |
CN107979863A (en) * | 2017-11-27 | 2018-05-01 | 广东欧珀移动通信有限公司 | A kind of WiFi automatic connection methods, system and terminal device |
CN114501566A (en) * | 2022-02-24 | 2022-05-13 | 维沃移动通信有限公司 | Network switching method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103596159A (en) * | 2013-11-05 | 2014-02-19 | 科升无线(苏州)有限公司 | 3G/WiFi network access authentication system and achieving method thereof |
CN105228226A (en) * | 2014-06-20 | 2016-01-06 | 深圳Tcl新技术有限公司 | The system of selection of Wi-Fi hotspot and device |
CN105898809A (en) * | 2016-05-25 | 2016-08-24 | 努比亚技术有限公司 | WiFi connection management device and method, and mobile terminal |
CN106412910A (en) * | 2016-10-27 | 2017-02-15 | 上海斐讯数据通信技术有限公司 | Method for intelligently screening SSID access point and wireless terminal |
-
2017
- 2017-08-08 CN CN201710669879.2A patent/CN107277896B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103596159A (en) * | 2013-11-05 | 2014-02-19 | 科升无线(苏州)有限公司 | 3G/WiFi network access authentication system and achieving method thereof |
CN105228226A (en) * | 2014-06-20 | 2016-01-06 | 深圳Tcl新技术有限公司 | The system of selection of Wi-Fi hotspot and device |
CN105898809A (en) * | 2016-05-25 | 2016-08-24 | 努比亚技术有限公司 | WiFi connection management device and method, and mobile terminal |
CN106412910A (en) * | 2016-10-27 | 2017-02-15 | 上海斐讯数据通信技术有限公司 | Method for intelligently screening SSID access point and wireless terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107708175A (en) * | 2017-11-27 | 2018-02-16 | 广东欧珀移动通信有限公司 | A kind of WiFi automatic connection methods, system and terminal device |
CN107889193A (en) * | 2017-11-27 | 2018-04-06 | 广东欧珀移动通信有限公司 | Method for connecting network, mobile terminal and computer-readable recording medium |
CN107979863A (en) * | 2017-11-27 | 2018-05-01 | 广东欧珀移动通信有限公司 | A kind of WiFi automatic connection methods, system and terminal device |
CN114501566A (en) * | 2022-02-24 | 2022-05-13 | 维沃移动通信有限公司 | Network switching method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107277896B (en) | 2019-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107295594A (en) | Method for switching network, device and mobile terminal | |
CN107277896A (en) | Wifi hotspot management method, device and terminal device | |
CN107404740B (en) | Method for switching network, device and the terminal device of safety | |
CN107360536A (en) | Control method, terminal device and the computer-readable recording medium of terminal device | |
CN108196458A (en) | Intelligent home equipment control method, device and terminal device | |
CN107241771A (en) | Method for switching network, mobile terminal and computer-readable recording medium | |
CN106954225A (en) | Method, device and the wireless device of radio roaming | |
CN107277878A (en) | Method for switching network, device and mobile terminal | |
CN107277657A (en) | A kind of earphone method for retrieving, device and earphone | |
CN109195204A (en) | Wireless network access method and device, computer-readable medium, communication terminal | |
CN107609797A (en) | Electric operating checking method and terminal device | |
CN107294811A (en) | Network detecting method, network detection means and intelligent terminal | |
CN109308217A (en) | A kind of date storage method and device of timeliness task | |
CN107944731A (en) | The method for building up and device of typical project cost template | |
CN107231647A (en) | Network detecting method, network detection means and intelligent terminal | |
CN110392414A (en) | Wireless network connecting method and terminal device | |
CN107318140A (en) | Method for switching network, mobile terminal and computer-readable recording medium | |
CN107609654A (en) | Management method, managing device and the terminal device of taiwan area | |
CN107396316A (en) | Method for switching network, device and terminal device | |
CN107333286A (en) | Wifi hotspot connection management method, device and terminal device | |
CN107708175A (en) | A kind of WiFi automatic connection methods, system and terminal device | |
CN107276856A (en) | Network detecting method, network detection means and intelligent terminal | |
CN107820298A (en) | Wireless network management method, wireless network management device and intelligent terminal | |
CN107426780B (en) | Wifi hotspot management method, device and terminal device | |
CN107292614A (en) | Pay class application management method, device and mobile terminal |
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: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |