CN107277896B - Wifi hotspot management method, device and terminal device - Google Patents
Wifi hotspot management method, device and terminal device Download PDFInfo
- Publication number
- CN107277896B CN107277896B CN201710669879.2A CN201710669879A CN107277896B CN 107277896 B CN107277896 B CN 107277896B CN 201710669879 A CN201710669879 A CN 201710669879A CN 107277896 B CN107277896 B CN 107277896B
- Authority
- CN
- China
- Prior art keywords
- wifi hotspot
- internet
- surf
- attachable
- 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.)
- Active
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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention is suitable for hot spot administrative skill field, provides a kind of wifi hotspot management method, device and terminal device, comprising: detect whether that there are attachable wifi hotspots;When there are attachable wifi hotspot, detect whether the attachable wifi hotspot can surf the Internet;When the attachable wifi hotspot can not surf the Internet, the network attribute mNetworkValid=false of the attachable wifi hotspot is set and the number mNetFallCount++ that can not surf the Internet is set;When the attachable wifi hotspot can surf the Internet, the mNetworkValid=true of the attachable wifi hotspot is set and resets the mNetFallCount.By the above method, the access rate of network can be improved.
Description
Technical field
The invention belongs to hot spot administrative skill fields more particularly to a kind of wifi hotspot management method, device and terminal to set
It is standby.
Background technique
Currently, people's using terminal equipment access network can obtain various information, and in the mistake of access network
Cheng Zhong, the switching being usually directed between heterogeneous networks.In existing method for switching network, including from data network switch to opening
Wireless network, alternatively, switching to another wireless network from a wireless network.
But in existing wifi hotspot management method, when needing to switch to (or access) wifi hotspot, usually
(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 random access, therefore, the wifi hotspot being currently accessed may be that can not surf the Internet, so as to cause effective wifi hotspot is accessed
Overlong time, reduce the good experience of user.
Therefore need to propose a kind of new technical solution, to solve the above technical problems.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of wifi hotspot management method, device and terminal device, to solve
The prior art is due to random access wifi hotspot, so that the wifi hotspot of access may be the wifi hotspot that can not be surfed the Internet, thus
Lead to the problem of accessing 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, comprising:
Detect whether that there are attachable wifi hotspots;
When there are attachable wifi hotspot, detect whether the attachable wifi hotspot can surf the Internet;
When the attachable wifi hotspot can not surf the Internet, the network attribute of the attachable wifi hotspot is set
MNetworkValid=false and setting can not surf the Internet number mNetFallCount++;
When the attachable wifi hotspot can surf the Internet, 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, comprising:
Attachable wifi hotspot detection unit, for detecting whether there are attachable wifi hotspots;
Whether Wifi hot spot can surf the Internet detection unit, for that can connect when there are attachable wifi hotspot described in detection
Whether the wifi hotspot connect can surf the Internet;
First network attribute setting unit can described in setting for when the attachable wifi hotspot can not surf the Internet
The network attribute mNetworkValid=false of the wifi hotspot of connection and setting can not surf the Internet number mNetFallCount
++;
Second network attribute setting unit, for that can connect described in setting when the attachable wifi hotspot can surf the Internet
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, when the processor executes the computer program
It realizes such as the step of any one of wifi hotspot management method the method.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, realizes when the computer program is executed by processor such as any one of wifi hotspot management method
The step of the method.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
Due to that whether can be surfed the Internet according to the attachable wifi hotspot when detecting attachable wifi hotspot, it is arranged
Newly-increased network attribute and the corresponding attribute value of number that can not surf the Internet, therefore, convenient for it is subsequent directly according to the network attribute with
And the corresponding attribute value of number that can not surf the Internet chooses whether to access the wifi hotspot, so as to avoid being linked into and can not surf the Internet
Wifi hotspot improves the rate of access network, improves the good experience of user.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow chart for wifi hotspot management method that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention one provides;
Fig. 3 is a kind of structural schematic diagram of wifi hotspot managing device provided by Embodiment 2 of the present invention;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention three provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly 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 also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 1 shows a kind of flow chart of wifi hotspot management method of first embodiment of the invention offer, and details are as follows:
Step S11 detects whether that there are attachable wifi hotspots.
Specifically, terminal device can periodically detect whether that there are attachable wifi hotspots, alternatively, receiving wifi inspection
Surveying instruction, (such as when terminal device is mobile phone, when user opens " WLAN " of mobile phone, mobile phone will receive wifi detection
Instruction) afterwards detection terminal device nearby whether there is attachable wifi hotspot.
Specifically, when terminal device is mobile terminal, the schematic diagram of the mobile terminal is somebody's turn to do as shown in Fig. 2, in Fig. 2
Mobile terminal includes memory 201, processor 202, input equipment 203, output equipment 204, bus 205.
Step S12 detects whether the attachable wifi hotspot can surf the Internet when there are attachable wifi hotspot.
Specifically, it includes: the wifi hotspot for not needing authentication information that attachable wifi hotspot, which can surf the Internet, then has access to
It the wifi hotspot and is surfed the Internet by the wifi hotspot;It needs the wifi hotspot of authentication information but terminal device can obtain the wifi
The authentication information of hot spot.It should be pointed out that the premise that above-mentioned attachable wifi hotspot can surf the Internet further includes that this is attachable
The signal strength of wifi hotspot meets the requirements.
The net of the attachable wifi hotspot is arranged when the attachable wifi hotspot can not surf the Internet in step S13
Network attribute mNetworkValid=false and setting can not surf the Internet number mNetFallCount++.
Optionally, in order to provide different method for switching network, after step s 13, comprising:
A1, the connectivity option for judging the attachable wifi hotspot are manual connection or automatic connection.Specifically, it examines
It surveys whether terminal device opens wifi connection selection function, if being not turned on, shows that the selection of connection wifi function mentions manually
Show and connection wifi function selection prompt automatically, if having turned on, judge wifi hotspot connectivity option be manual connection or
Automatic connection, when user's selection be to connect manually when, determine the connectivity option of the wifi hotspot it is corresponding be to connect manually.
Due to showing connection wifi function selection prompt manually and automatic connection wifi function selection prompt, enrich wifi company
Connection function.
If the connectivity option of A2, the attachable wifi hotspot are to connect manually, display can not surf the Internet, described in preservation
The attribute value of mNetworkValid and mNetFallCount is to file, and not handover network.Due to can not in wifi hotspot
When online, display can not surf the Internet, and therefore, so that the user can know it in time currently cannot get online.Certainly, if detect again, detection
The result shows that the attachable wifi hotspot can surf the Internet, then display can surf the Internet, and update the attribute of the mNetworkValid
Value is true, and resets the attribute value of the mNetFallCount.
If the connectivity option of A3, the attachable wifi hotspot are to connect automatically, display can not surf the Internet, described in preservation
The attribute value of mNetworkValid and mNetFallCount continues to test other available networks to file, is detecting
When other available networks, other described available networks are switched to.Wherein, other available networks here include: available data
Network and available wifi network, and the priority of available wifi network is higher than the priority of available data network, that is, exists
When being detected simultaneously by available data network and available wifi network, available wifi network is preferentially switched to.Certainly, if not having
Detect other available networks, then display can not surf the Internet and not handover network.
Optionally, in step A3 described in when detecting other available networks, switch to other described available networks
Later, comprising:
Whether other available networks described in A4, judgement are data network, and are data network in other described available networks
When, it continues to test and wifi hotspot can be used with the presence or absence of other, and when there are other available wifi hotspots, from the data network
Switch to other described available wifi hotspots.Optionally, in order to avoid money spent by wifi hotspot can be used as real-time detection
Source, then after accessing data network, periodically or when it is more than pre-determined distance threshold value that current location is at a distance from a upper position, inspection
It surveys with the presence or absence of other available wifi hotspots.Optionally, when judging the available wifi hotspot there are available wifi hotspot
Whether number is greater than 1, if so, the preferentially best wifi hotspot of selection network performance, such as selects packet loss minimum and/or tcp
Link state is preferably and/or received signal intensity indicates maximum wifi hotspot, if it is not, then directly selecting the wifi hotspot.
Optionally, it if the connectivity option of the attachable wifi hotspot described in step A3 is to connect automatically, shows
Showing can not surf the Internet, after the attribute value to file for saving the mNetworkValid and mNetFallCount, comprising:
If B1, detecting that the attachable wifi hotspot can surf the Internet, display can surf the Internet, and file is saved
The attribute value of mNetworkValid is updated to true, and resets the attribute value of the mNetFallCount.
If B2, detecting that the attachable wifi hotspot can not surf the Internet again after display can surf the Internet, show not
It can surf the Internet, and the attribute value for the mNetworkValid that file saves is updated to false, and not update described
The attribute value of mNetFallCount.Due to the attachable wifi hotspot after it can surf the Internet again be detected to surf the Internet,
The attribute value of the mNetFallCount is not updated then, can have an opportunity to access this again so that terminal device is subsequent can connect
Wifi hotspot, and verify whether the attachable wifi hotspot can not surf the Internet, pass through two to the attachable wifi hotspot
Secondary confirmation not only increases the range of the accessible wifi hotspot of terminal device, also can be improved to the attachable wifi heat
The accuracy for the judging result whether point can surf the Internet.
The attachable wifi hotspot is arranged when the attachable wifi hotspot can surf the Internet in step S14
The mNetworkValid=true and clearing mNetFallCount.
Optionally, after the step S14, comprising: when again to the attachable wifi hotspot that can be surfed the Internet into
Row detection, and testing result is when can not surf the Internet, display can not surf the Internet, and the attribute value of the mNetworkValid is updated to
False, and the attribute value (keeping the attribute value of the mNetFallCount constant) of the mNetFallCount is not updated.
Later the step of, is identical as A1~A4's and B1~B2, this is repeated no more.
Optionally, the wifi hotspot management method further include:
C1, if it does not exist attachable wifi hotspot determine the reason of there is no attachable wifi hotspots.
It C2, is when disconnecting with the wifi hotspot, to detect the wifi the reason of attachable wifi hotspot is not present
The attribute value of the mNetworkValid of hot spot and the attribute value of mNetFallCount, according to the wifi hotspot
The testing result of the attribute value of mNetworkValid chooses whether the wifi hotspot alternative hotspot list is added, according to institute
The testing result for stating the attribute value of the mNetFallCount of wifi hotspot chooses whether to disable the wifi hotspot.Specifically, exist
It is when disconnecting with the wifi hotspot, to detect the wifi hotspot there is no the reason of attachable wifi hotspot
The attribute value of mNetworkValid will be described when the attribute value of the mNetworkValid of the wifi hotspot is true
Alternative hotspot list is added in wifi hotspot, when the attribute value of the mNetworkValid of the wifi hotspot is false, will not
Alternative hotspot list is added in the wifi hotspot;In addition, the attribute value of the wifi hotspot mNetFallCount is also detected, if
The attribute value of the mNetFallCount is greater than preset times threshold value, then disables the wifi hotspot, described in no longer automatic connection
Otherwise wifi hotspot does not disable the wifi hotspot, can connect the wifi hotspot automatically.
It C3, is that restarting terminal device or wifi are switched after closing and beaten again the reason of attachable wifi hotspot is not present
When convincing cause by patient analysis, the attribute value of the attribute value and mNetFallCount that save the mNetworkValid of the wifi hotspot is read,
The attribute value of the mNetworkValid of the wifi hotspot and the attribute value of mNetFallCount are detected, according to the wifi heat
The testing result of the attribute value of the mNetworkValid of point chooses whether the wifi hotspot alternative hotspot list, root is added
It chooses whether to disable the wifi hotspot according to the testing result of the attribute value of the mNetFallCount of the wifi hotspot.Specifically
Ground, the reason of attachable wifi hotspot is not present be restarting terminal device or wifi switch close after reopen and cause
When, the attribute value for saving the mNetworkValid of the wifi hotspot is read, in the mNetworkValid of the wifi hotspot
Attribute value when being true, alternative hotspot list is added in the wifi hotspot, in the mNetworkValid of the wifi hotspot
Attribute value when being false, alternative hotspot list is not added in the wifi hotspot;In addition, also detecting the wifi hotspot
The attribute value of mNetFallCount, if the attribute value of the mNetFallCount be greater than preset times threshold value, disabling described in
Wifi hotspot no longer connects the wifi hotspot automatically, otherwise, does not disable the wifi hotspot, can connect the wifi automatically
Hot spot.
It in first embodiment of the invention, detects whether there are attachable wifi hotspot, there are attachable wifi heat
When point, detect whether the attachable wifi hotspot can surf the Internet, when the attachable wifi hotspot can not surf the Internet, setting
The network attribute mNetworkValid=false of the attachable wifi hotspot and setting can not surf the Internet number
The attachable wifi hotspot is arranged when the attachable wifi hotspot can surf the Internet in mNetFallCount++
The mNetworkValid=true and clearing mNetFallCount.Due to when detecting attachable wifi hotspot,
Whether can be surfed the Internet according to the attachable wifi hotspot, newly-increased network attribute and the corresponding attribute of number that can not surf the Internet are set
Therefore value directly chooses whether to access this according to the network attribute and the corresponding attribute value of number that can not surf the Internet convenient for subsequent
Wifi hotspot improves the rate of access network, improves the good of user so as to avoid being linked into the wifi hotspot that can not be surfed the Internet
Good experience.
Embodiment two:
Corresponding with a kind of wifi hotspot management method that embodiment one provides, Fig. 3 shows second embodiment of the invention and mentions
A kind of structural schematic diagram of the wifi hotspot managing device supplied, the wifi hotspot managing device can be applied in terminal device, be
Convenient for explanation, only parts related to embodiments of the present invention are shown:
The wifi hotspot managing device includes: whether attachable wifi hotspot detection unit 31, Wifi hot spot can surf the Internet
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 are attachable wifi hotspots.
Specifically, it can periodically detect whether that there are attachable wifi hotspots, alternatively, receiving wifi detection instruction
(such as when terminal device is mobile phone, when user opens " WLAN " of mobile phone, mobile phone will receive wifi detection instruction)
Detection terminal device nearby whether there is attachable wifi hotspot afterwards.
Whether Wifi hot spot can surf the Internet detection unit 32, can described in detection for when there are attachable wifi hotspot
Whether the wifi hotspot of connection can surf the Internet.
Specifically, it includes: the wifi hotspot for not needing authentication information that attachable wifi hotspot, which can surf the Internet, then has access to
It the wifi hotspot and is surfed the Internet by the wifi hotspot;It needs the wifi hotspot of authentication information but terminal device can obtain the wifi
The authentication information of hot spot.It should be pointed out that the premise that above-mentioned attachable wifi hotspot can surf the Internet further includes that this is attachable
The signal strength of wifi hotspot meets the requirements.
First network attribute setting unit 33, for when the attachable wifi hotspot can not surf the Internet, described in setting
The network attribute mNetworkValid=false of attachable wifi hotspot and setting can not surf the Internet number
mNetFallCount++。
Optionally, the wifi hotspot managing device further include:
Connectivity option is judgment module, for judging that the connectivity option of the attachable wifi hotspot is that manual connection is gone back
It is to connect automatically.
The message processing module connected manually, if the connectivity option for the attachable wifi hotspot is to connect manually
It connects, display can not surf the Internet, and save the attribute value of the mNetworkValid and mNetFallCount to file, and do not switch
Network.Certainly, if detect again, testing result shows that the attachable wifi hotspot can surf the Internet, then display can surf the Internet, and
The attribute value for updating the mNetworkValid is true, and resets the attribute value of the mNetFallCount.
Automatically the message processing module connected, if the connectivity option for the attachable wifi hotspot is to connect automatically
It connects, display can not surf the Internet, and save the attribute value of the mNetworkValid and mNetFallCount to file, and continue to examine
Other available networks are surveyed, when detecting other available networks, switch to other described available networks.Wherein, here other
Available network includes: available data network and available wifi network, and the priority of available wifi network is higher than available
The priority of data network preferentially switched to when detecting available data network and available wifi network at the same time
Available wifi network.Certainly, if not detecting other available networks, display can not surf the Internet and not handover network.
Optionally, the wifi hotspot managing device further include:
Network type judging unit, for judging whether other described available networks are data network, and it is described other
It when available network is data network, continues to test and can be used wifi hotspot with the presence or absence of other, and is hot there are other available wifi
When point, other described available wifi hotspots are switched to from the data network.Optionally, in order to avoid due to real-time detection it is available
Resource spent by wifi hotspot, then after accessing data network, timing or super at a distance from a upper position in current location
When crossing pre-determined distance threshold value, detect whether that there are other available wifi hotspots.Optionally, when sentencing there are available wifi hotspot
Whether the number for the available wifi hotspot of breaking is greater than 1, if so, the preferentially best wifi hotspot of selection network performance, is such as selected
It selects packet loss minimum and/or tcp link state preferably and/or received signal intensity indicates maximum wifi hotspot, if it is not, then
Directly select the wifi hotspot.
Optionally, the wifi hotspot managing device further include:
The information process unit for the wifi hotspot that can be surfed the Internet, if for detecting that the attachable wifi hotspot can
Net, display can surf the Internet, and the attribute value for the mNetworkValid that file saves are updated to true, and described in clearing
The attribute value of mNetFallCount.
The information process unit for the wifi hotspot that can not be surfed the Internet, if described for being detected again after display can surf the Internet
Attachable wifi hotspot can not surf the Internet, then display can not surf the Internet, and the attribute value for the mNetworkValid that file is saved is more
It is newly false, and does not update the attribute value of the mNetFallCount.
Second network attribute setting unit 34 can described in setting for when the attachable wifi hotspot can surf the Internet
The mNetworkValid=true and the clearing mNetFallCount of the wifi hotspot of connection.
Optionally, the second network attribute setting unit 34 further include: the attachable wifi hotspot is being set
After the mNetworkValid=true and clearing mNetFallCount, when described attachable to what can be surfed the Internet again
Wifi hotspot is detected, and testing result is when can not surf the Internet, and display can not surf the Internet, by the category of the mNetworkValid
Property value is updated to false, and does not update the attribute value of the mNetFallCount.Later the step of and A1~A4 and B1~
B2's is identical, this is repeated no more.
Optionally, the wifi hotspot managing device further include:
The reason of Wifi hot spot can not connect determination unit, for attachable wifi hotspot if it does not exist, determination is not deposited
The reason of the attachable wifi hotspot.
Wifi hotspot disconnection process unit, for being the reason of attachable wifi hotspot is not present and the wifi heat
When point disconnects, the attribute value of the mNetworkValid of the wifi hotspot and the attribute value of mNetFallCount are detected, according to
The testing result of the attribute value of the mNetworkValid of the wifi hotspot chooses whether that alternative heat for the wifi hotspot is added
Point list chooses whether to disable the wifi according to the testing result of the attribute value of the mNetFallCount of the wifi hotspot
Hot spot.Specifically, when the attribute value of the mNetworkValid of the wifi hotspot is true, the wifi hotspot is added
Alternative hotspot list, when the attribute value of the mNetworkValid of the wifi hotspot is false, not by the wifi hotspot
Alternative hotspot list is added;In addition, the attribute value of the wifi hotspot mNetFallCount is also detected, if described
The attribute value of mNetFallCount is greater than preset times threshold value, then disables the wifi hotspot, no longer connect the wifi automatically
Otherwise hot spot does not disable the wifi hotspot, can connect the wifi hotspot automatically.
Restarting terminal device processing unit, for being restarting terminal device the reason of attachable wifi hotspot is not present
Or wifi switch close after reopen when causing, read the attribute value for saving the mNetworkValid of the wifi hotspot and
The attribute value of mNetFallCount detects the attribute value and mNetFallCount of the mNetworkValid of the wifi hotspot
Attribute value, chosen whether according to the testing result of the attribute value of the mNetworkValid of the wifi hotspot by the wifi
Alternative hotspot list is added in hot spot, is according to the selection of the testing result of the attribute value of the mNetFallCount of the wifi hotspot
The no disabling wifi hotspot.Specifically, the attribute value for saving the mNetworkValid of the wifi hotspot is read, described
When the attribute value of the mNetworkValid of wifi hotspot is true, alternative hotspot list is added in the wifi hotspot, described
When the attribute value of the mNetworkValid of wifi hotspot is false, alternative hotspot list is not added in the wifi hotspot;This
Outside, the attribute value of the wifi hotspot mNetFallCount is also detected, if the attribute value of the mNetFallCount is greater than in advance
If frequency threshold value, then the wifi hotspot is disabled, no longer connect the wifi hotspot automatically, otherwise, does not disable the wifi heat
Point can connect the wifi hotspot automatically.
In second embodiment of the invention, due to when detecting attachable wifi hotspot, according to the attachable wifi
Whether hot spot can surf the Internet, and newly-increased network attribute and the corresponding attribute value of number that can not surf the Internet is arranged, therefore, convenient for subsequent straight
It connects and chooses whether to access the wifi hotspot according to the network attribute and the corresponding attribute value of number that can not surf the Internet, so as to keep away
Exempt to be linked into the wifi hotspot that can not be surfed the Internet, improves the rate of access network, improve the good experience of user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment three:
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include: processor 40, memory 41 and are 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 above method embodiment when executing the computer program 42, such as
Step S11 to S14 shown in FIG. 1.Alternatively, the processor 40 realizes that above-mentioned each device is real when executing the computer program 42
Apply the function of each module/unit in example, such as the function of module 31 to 34 shown in Fig. 3.
Illustratively, 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 executed by the processor 40, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which 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 Internet detection unit, the setting of first network attribute of attachable wifi hotspot detection unit, Wifi hot spot it is single
Member, the second network attribute setting unit, each unit concrete function are as follows:
Attachable wifi hotspot detection unit, for detecting whether there are attachable wifi hotspots;
Whether Wifi hot spot can surf the Internet detection unit, for that can connect when there are attachable wifi hotspot described in detection
Whether the wifi hotspot connect can surf the Internet;
First network attribute setting unit can described in setting for when the attachable wifi hotspot can not surf the Internet
The network attribute mNetworkValid=false of the wifi hotspot of connection and setting can not surf the Internet number mNetFallCount
++;
Second network attribute setting unit, for that can connect described in setting when the attachable wifi hotspot can surf the Internet
The mNetworkValid=true and the clearing mNetFallCount of the wifi hotspot connect.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and 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
The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), 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 is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4
It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
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 for storing needed for 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 function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution 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 completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, 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 be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes 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 logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process 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 storage 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 generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (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 includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (7)
1. a kind of wifi hotspot management method characterized by comprising
Detect whether that there are attachable wifi hotspots;
When there are attachable wifi hotspot, detect whether the attachable wifi hotspot can surf the Internet;
When the attachable wifi hotspot can not surf the Internet, the network attribute of the attachable wifi hotspot is set
MNetworkValid=false and setting can not surf the Internet number mNetFallCount++, wherein the network attribute and institute
It is newly-increased in advance for stating the number that can not surf the Internet;
When the attachable wifi hotspot can surf the Internet, the mNetworkValid=of the attachable wifi hotspot is set
The true and clearing mNetFallCount;
The network attribute mNetworkValid=false of the setting attachable wifi hotspot and setting can not
After online number mNetFallCount++, comprising:
Whether detection terminal device opens wifi connection selection function, and after opening wifi connection selection function, judgement
The connectivity option of the attachable wifi hotspot is manual connection or automatic connection;
If the connectivity option of the attachable wifi hotspot is to connect manually, display can not surf the Internet, described in preservation
The attribute value of mNetworkValid and mNetFallCount is to file, and not handover network;
If the connectivity option of the attachable wifi hotspot is to connect automatically, display can not surf the Internet, described in preservation
The attribute value of mNetworkValid and mNetFallCount continues to test other available networks to file, is detecting
When other available networks, other described available networks are switched to;
If being to connect automatically in the connectivity option of the attachable wifi hotspot, display can not surf the Internet, described in preservation
After the attribute value to file of mNetworkValid and mNetFallCount, comprising:
If detecting, the attachable wifi hotspot can surf the Internet, and display can surf the Internet, and the mNetworkValid that file is saved
Attribute value be updated to true, and reset the attribute value of the mNetFallCount;
If detecting that the attachable wifi hotspot can not surf the Internet again after display can surf the Internet, display can not surf the Internet,
And the attribute value for the mNetworkValid that file saves is updated to false, and do not update the mNetFallCount's
Attribute value.
2. wifi hotspot management method as described in claim 1, which is characterized in that detecting other available networks described
When, it switches to after other described available networks, comprising:
Judge whether other described available networks are data network, and when other described available networks are data network, continues
It detects whether that there are other available wifi hotspots, and when there are other available wifi hotspots, is switched to from the data network
Other described available wifi hotspots.
3. wifi hotspot management method as described in claim 1, which is characterized in that the wifi hotspot management method is also wrapped
It includes:
Attachable wifi hotspot if it does not exist determines the reason of there is no attachable wifi hotspots;
It is when disconnecting with the wifi hotspot, to detect the wifi hotspot the reason of attachable wifi hotspot is not present
The attribute value of mNetworkValid and the attribute value of mNetFallCount, according to the mNetworkValid of the wifi hotspot
The testing result of attribute value choose whether the wifi hotspot alternative hotspot list is added, according to the wifi hotspot
The testing result of the attribute value of mNetFallCount chooses whether to disable the wifi hotspot;
The reason of attachable wifi hotspot is not present be restarting terminal device or wifi switch close after reopen and cause
When, the attribute value of the attribute value and mNetFallCount that save the mNetworkValid of the wifi hotspot is read, institute is detected
The attribute value of the mNetworkValid of wifi hotspot and the attribute value of mNetFallCount are stated, according to the wifi hotspot
The testing result of the attribute value of mNetworkValid chooses whether the wifi hotspot alternative hotspot list is added, according to institute
The testing result for stating the attribute value of the mNetFallCount of wifi hotspot chooses whether to disable the wifi hotspot.
4. a kind of wifi hotspot managing device characterized by comprising
Attachable wifi hotspot detection unit, for detecting whether there are attachable wifi hotspots;
Whether Wifi hot spot can surf the Internet detection unit, for detecting described attachable when there are attachable wifi hotspot
Whether wifi hotspot can surf the Internet;
First network attribute setting unit, for that can be connected described in setting when the attachable wifi hotspot can not surf the Internet
Wifi hotspot network attribute mNetworkValid=false and setting can not surf the Internet number mNetFallCount++,
Wherein, the network attribute and the number that can not surf the Internet are newly-increased in advance;
Second network attribute setting unit, for being arranged described attachable when the attachable wifi hotspot can surf the Internet
The mNetworkValid=true and the clearing mNetFallCount of wifi hotspot;
The wifi hotspot managing device further include:
Connectivity option is judgment module, for detecting whether terminal device opens wifi connection selection function, and is being opened
After wifi connection selection function, judge that the connectivity option of the attachable wifi hotspot is manual connection or automatic connection;
The message processing module connected manually is shown if the connectivity option for the attachable wifi hotspot is to connect manually
Showing can not surf the Internet, and save the attribute value of the mNetworkValid and mNetFallCount to file, and not handover network;
Automatically the message processing module connected is shown if the connectivity option for the attachable wifi hotspot is to connect automatically
Showing can not surf the Internet, and save the attribute value of the mNetworkValid and mNetFallCount to file, and continue to test it
He switches to other described available networks when detecting other available networks by available network;
The information process unit for the wifi hotspot that can be surfed the Internet, if being shown for detecting that the attachable wifi hotspot can surf the Internet
Showing can surf the Internet, and the attribute value for the mNetworkValid that file saves is updated to true, and described in clearing
The attribute value of mNetFallCount;
The information process unit for the wifi hotspot that can not be surfed the Internet, if described can connect for being detected again after display can surf the Internet
The wifi hotspot connect can not surf the Internet, then display can not surf the Internet, and the attribute value for the mNetworkValid that file saves is updated to
False, and the attribute value of the mNetFallCount is not updated.
5. wifi hotspot managing device as claimed in claim 4, which is characterized in that the wifi hotspot managing device is also wrapped
It includes:
Network type judging unit can be used for judging whether other described available networks are data network, and in described other
When network is data network, continues to test and wifi hotspot can be used with the presence or absence of other, and when there are other available wifi hotspots,
Other described available wifi hotspots are switched to from the data network.
6. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claims 1 to 3 when executing the computer program
The step of any one the method.
7. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claims 1 to 3 of realization the method.
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 CN107277896A (en) | 2017-10-20 |
CN107277896B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107979863B (en) * | 2017-11-27 | 2020-03-17 | Oppo广东移动通信有限公司 | WiFi automatic connection method, system and terminal equipment |
CN107889193B (en) * | 2017-11-27 | 2020-05-05 | Oppo广东移动通信有限公司 | Network connection method, mobile terminal and computer readable storage medium |
CN107708175B (en) * | 2017-11-27 | 2020-02-14 | Oppo广东移动通信有限公司 | WiFi automatic connection method, system and terminal equipment |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN107277896A (en) | 2017-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107277896B (en) | Wifi hotspot management method, device and terminal device | |
CN107295594B (en) | Method for switching network, device and mobile terminal | |
CN107404740B (en) | Method for switching network, device and the terminal device of safety | |
CN110392052A (en) | A kind of block chain intelligence contract processing system and method | |
CN108196458A (en) | Intelligent home equipment control method, device and terminal device | |
CN108646146A (en) | Distribution wire On-line Fault monitoring method and terminal device | |
CN109041140A (en) | It is switched fast wireless network methods, Intelligent hardware and terminal device | |
CN110457164A (en) | The method, apparatus and server of equipment management | |
CN106954225A (en) | Method, device and the wireless device of radio roaming | |
CN107197489A (en) | Method for switching network, mobile terminal and computer-readable recording medium | |
CN107277878A (en) | Method for switching network, device and mobile terminal | |
CN107484190A (en) | Method for connecting network, mobile terminal and computer-readable recording medium | |
CN110392414A (en) | Wireless network connecting method and terminal device | |
CN107222898A (en) | Method for switching network, mobile terminal and computer-readable recording medium | |
CN109358873A (en) | A kind of application program update method, storage medium and terminal device | |
CN105530673B (en) | A kind of method for connecting network and user equipment | |
CN109561329A (en) | Control method, mobile terminal and the computer readable storage medium of smart television | |
CN107426780B (en) | Wifi hotspot management method, device and terminal device | |
CN107333286B (en) | Wifi hotspot connection management method, apparatus and terminal device | |
CN109614186A (en) | Application program color switching method, system and terminal device | |
CN108337706A (en) | A kind of switching method of wireless network, mobile terminal and storage medium | |
CN107396316A (en) | Method for switching network, device and terminal device | |
CN107708175A (en) | A kind of WiFi automatic connection methods, system and terminal device | |
CN107277815A (en) | Wifi hotspot management method, device and terminal device | |
CN104349506A (en) | Association management method, wireless access device and system |
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 |
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. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |