CN107835512A - A kind of method of acquisition of information, equipment and medium - Google Patents

A kind of method of acquisition of information, equipment and medium Download PDF

Info

Publication number
CN107835512A
CN107835512A CN201710868729.4A CN201710868729A CN107835512A CN 107835512 A CN107835512 A CN 107835512A CN 201710868729 A CN201710868729 A CN 201710868729A CN 107835512 A CN107835512 A CN 107835512A
Authority
CN
China
Prior art keywords
hotspot
target
hot information
information
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710868729.4A
Other languages
Chinese (zh)
Other versions
CN107835512B (en
Inventor
陈晓磊
童小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shangxiang Network Technology Co.,Ltd.
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201710868729.4A priority Critical patent/CN107835512B/en
Publication of CN107835512A publication Critical patent/CN107835512A/en
Application granted granted Critical
Publication of CN107835512B publication Critical patent/CN107835512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application discloses a kind of method of acquisition of information, equipment and medium, mass data flow can be expended when solving the problems, such as the focus password of terminal to server inquiry Wi-Fi hotspot in the prior art.Described information acquisition methods include:Obtain the hot information of target Wi-Fi hotspot;The hot information of each history Wi-Fi hotspot of the hot information of the target Wi-Fi hotspot with recording is compared, with the Wi-Fi hotspot for determining to be not present in history Wi-Fi hotspot from the target Wi-Fi hotspot, and using the Wi-Fi hotspot determined as Wi-Fi hotspot to be checked;The hot information of the Wi-Fi hotspot to be checked is sent to server, with obtain characterize the Wi-Fi hotspot to be checked whether have focus password mark and/or the Wi-Fi hotspot to be checked corresponding to focus password.

Description

A kind of method of acquisition of information, equipment and medium
Technical field
The application is related to field of computer technology, more particularly to applied to mobile terminal a kind of acquisition of information method, Equipment and medium.
Background technology
As the continuous development of computer technology and the popularization of mobile terminal use, the sight for pouring in people is widely applied In.User can carry out various Above-the-line anywhere or anytime by these applications.
Due to mobile data traffic fee relative to fixed broadband costly, so, most of users are also intended to make With Wireless Fidelity (Wireless-Fidelity, WiFi) focus.In the prior art, user can be obtained by mobile terminal These Wi-Fi hotspot information can be sent to server by the Wi-Fi hotspot information being presently in around position, terminal.Due to service The corresponding relation of substantial amounts of Wi-Fi hotspot information and focus password is preserved in device, so, server can be sent according to terminal Wi-Fi hotspot information, to terminal return server preserve these Wi-Fi hotspots corresponding to focus password so that user passes through The focus password that server returns to terminal, selects corresponding Wi-Fi hotspot to be attached, and then is engaged in various Above-the-line.
However, terminal needs all Wi-Fi hotspot information got being sent to server every time, can thus expend Substantial amounts of data traffic.Meanwhile the inquiry work of a large amount of focus passwords will also bring great load pressure to server.
The content of the invention
The embodiment of the present application provides method, equipment and the medium of the acquisition of information applied to mobile terminal, to solve Following technical problem of the prior art:Terminal to server can expend mass data stream when inquiring about the focus password of Wi-Fi hotspot Amount.
The embodiment of the present application uses following technical proposals:
A kind of method for acquisition of information that the embodiment of the present application provides, including:
Obtain the hot information of target Wi-Fi hotspot;
The hot information of each history Wi-Fi hotspot of the hot information of the target Wi-Fi hotspot with recording is compared, With the Wi-Fi hotspot for determining to be not present in history Wi-Fi hotspot from the target Wi-Fi hotspot, and the WiFi determined is warm Point is used as Wi-Fi hotspot to be checked;
The hot information of the Wi-Fi hotspot to be checked is sent to server, the WiFi heat to be checked is characterized to obtain Put focus password corresponding to the mark for whether having focus password and/or the Wi-Fi hotspot to be checked.
Alternatively, the hot information of target Wi-Fi hotspot is obtained, is specifically included:
The Wi-Fi hotspot that present terminal is obtained by scan channel is obtained, using the Wi-Fi hotspot got as target WiFi Focus, and obtain the hot information of the target Wi-Fi hotspot.
Alternatively, the history Wi-Fi hotspot includes at least one of following:
Local record has the Wi-Fi hotspot for characterizing the mark whether Wi-Fi hotspot has focus password;
Local record has the Wi-Fi hotspot of focus password;
The requested Wi-Fi hotspot of terminal to server historical query.
Alternatively, the hot information of each history Wi-Fi hotspot of the hot information of the target Wi-Fi hotspot with recording is entered Row compares, and specifically includes:
The hot information of each target Wi-Fi hotspot and local record are had and characterizes Wi-Fi hotspot and has the mark of focus password The hot information of Wi-Fi hotspot be compared;Or
The hot information of each target Wi-Fi hotspot and local record are had to the hot information of the Wi-Fi hotspot of focus password It is compared;Or
The Wi-Fi hotspot that the hot information of each target Wi-Fi hotspot and last terminal to server inquiry request are crossed Hot information be compared;Or
The Wi-Fi hotspot that the hot information of each target Wi-Fi hotspot and nearest n terminal to server inquiry request are crossed Hot information be compared, n is positive integer.
Alternatively, the Wi-Fi hotspot being not present in history Wi-Fi hotspot is determined from the target Wi-Fi hotspot, specifically Including:
For each target Wi-Fi hotspot, if each history WiFi of hot information corresponding to the target Wi-Fi hotspot and record Hot information differs corresponding to focus, it is determined that the target Wi-Fi hotspot is the WiFi heat being not present in history Wi-Fi hotspot Point, the hot information include:In the service set SSID of Wi-Fi hotspot, basic service set identification BSSID, positional information It is at least one.
Alternatively, before the hot information of the Wi-Fi hotspot to be checked being sent into server, methods described also includes:
If it is determined that the time span between at the time of Current Scan Wi-Fi hotspot and at the time of last scanning Wi-Fi hotspot Not less than the first setting time length, then Current Scan is obtained into Wi-Fi hotspot all as Wi-Fi hotspot to be checked.
Alternatively, before the hot information of the Wi-Fi hotspot to be checked being sent into server, methods described also includes:
If it is determined that during Current Scan Wi-Fi hotspot the location of described terminal with last time scan Wi-Fi hotspot when described in The location of terminal is not less than the quantity of the history Wi-Fi hotspot included in setpoint distance and/or the target Wi-Fi hotspot not More than setting quantity, then the Wi-Fi hotspot obtained Current Scan is all as Wi-Fi hotspot to be checked.
Alternatively, before the hot information of the Wi-Fi hotspot to be checked being sent into server, methods described also includes:
For each target Wi-Fi hotspot, however, it is determined that characterize the target Wi-Fi hotspot whether have focus password mark and/ Or the focus password of the target Wi-Fi hotspot has been recorded in local, and characterize whether the target Wi-Fi hotspot has the mark of focus password Know and/or the focus password is not less than the second setting time length in local storage time, then make the target Wi-Fi hotspot For Wi-Fi hotspot to be checked.
A kind of equipment for acquisition of information that the embodiment of the present application provides, the equipment include referring to for storing computer program The memory of order and the processor for execute program instructions, wherein, when the computer program instructions are by the computing device, Trigger the equipment and perform the above method.
A kind of computer-readable medium that the embodiment of the present application provides, the media storage have computer-readable instruction, institute Stating computer-readable instruction can be executed by processor to realize the above method.
Above-mentioned at least one technical scheme that the embodiment of the present application uses can reach following beneficial effect:Due to scanning It is not all target WiFi scanned to server lookup after the target Wi-Fi hotspot around position is presently in terminal The focus password of focus obtains whether all target Wi-Fi hotspots have the mark of focus password to server, but first from each mesh The Wi-Fi hotspot being not present in history Wi-Fi hotspot is determined in mark Wi-Fi hotspot, and using the Wi-Fi hotspot determined as to be checked Wi-Fi hotspot is ask, to obtain Wi-Fi hotspot to be checked to the focus password of server lookup Wi-Fi hotspot to be checked or to server Whether the mark of focus password is had.Change for an angle, for history Wi-Fi hotspot, terminal had previously obtained from server Whether the mark of focus password is stored with the focus password or server of these history Wi-Fi hotspots, if so target WiFi is warm Include history Wi-Fi hotspot in point, then terminal without the focus password to server lookup these history Wi-Fi hotspots again or Whether the mark of focus password is stored with server, and only need to be to the heat of this Wi-Fi hotspot that newly scan of server lookup Whether the mark of focus password is stored with point password or server.Terminal to server so can have both been effectively reduced to look into Ask and data traffic spent during the mark of focus password whether is stored with focus password or server, while also greatly drop Low server carries out load pressure during inquiry service.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, forms the part of the application, this Shen Schematic description and description please is used to explain the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is a kind of schematic flow sheet for acquisition of information that the embodiment of the present application provides;
Fig. 2 is that multiple local Wi-Fi hotspots that the embodiment of the present application provides have partly overlapping schematic diagram;
Fig. 3 is a kind of schematic device for acquisition of information that the embodiment of the present application provides;
Fig. 4 is a kind of structural representation for information acquisition apparatus corresponding to Fig. 1 that the embodiment of the present application provides.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out under the premise of creative work the every other embodiment obtained, belong to the scope of the application protection.
In this application, the executive agent for carrying out acquisition of information, which can be such as mobile phone, tablet personal computer, intelligence is wearable sets The client installed in the terminal or terminal such as standby.Below will be using client as executive agent, to provided herein Information acquisition method illustrates.
Fig. 1 is a kind of schematic flow sheet for acquisition of information that the embodiment of the present application provides, and specifically includes following steps:
S101:Obtain the hot information of target Wi-Fi hotspot.
In the embodiment of the present application, client can make the terminal scanning movement by the terminal for controlling user to be held The Wi-Fi hotspot being presently in around position, and obtain the hot information of these Wi-Fi hotspots.Wherein, client can exist terminal Wi-Fi hotspot that position scans is presently in as target Wi-Fi hotspot.
In the embodiment of the present application, client can make terminal scanning when monitoring that terminal present position changes It is presently in the Wi-Fi hotspot around position.Wherein, client can be in the position and upper one for monitoring that terminal is presently in Reach the distance between the location of during secondary terminal scanning Wi-Fi hotspot scanning triggering apart from when, it is determined that monitor terminal institute The position at place changes.
For example, it is assumed that user holds terminal when being in position A, client is scanned around a position A by terminal Wi-Fi hotspot.Then, user travels 500 meters according to a direction, reaches position B from position A.Client judges 500 meters between out position A and position B reach scanning 500 meters of distance of triggering, then monitor that the location of the terminal occurs Change, and then by the Wi-Fi hotspot around the B of the terminal scanning position, and obtain the hot information of these Wi-Fi hotspots.
In the embodiment of the present application, client can by global positioning system (Global PositioningSystem, GPS), the positioning method such as longitude and latitude positioning, architecture, comes whether the location of monitoring terminal is changed.And for Judge the condition whether the location of terminal changes:Scanning triggering distance, then can be by artificially according to the business need of reality Ask to formulate, can also be formulated by user according to the needs of oneself, or formulated according to the WiFi coverage densities in city.
Certainly, the condition that driver sweep terminal is presently in the Wi-Fi hotspot This move around position can have a lot. For example, client can be when the WiFi connection status for monitoring terminal be gone off by connecting, then making terminal scanning, its is current Wi-Fi hotspot around present position.
The hot information for the target Wi-Fi hotspot that client is got by terminal can include WiFi service set (Service Set Identifier, SSID), basic service set identification (Basic Service Set Identifier, BSSID), positional information etc. can be identified for that the information of Wi-Fi hotspot.Wherein, SSID is the title of Wi-Fi hotspot, and BSSID is then It is medium access control (Media AccessControl, MAC) address of Wi-Fi hotspot.Certainly, hot information can also include Other information, e.g., the information such as WiFi signal intensity, property of Wi-Fi hotspot (such as whether being businessman's focus).
S102:The hot information of the target Wi-Fi hotspot and the hot information of each history Wi-Fi hotspot of record are carried out Compare, with the Wi-Fi hotspot for determining to be not present in history Wi-Fi hotspot from the target Wi-Fi hotspot, and will determine Wi-Fi hotspot is as Wi-Fi hotspot to be checked.
, can be by the focus of target Wi-Fi hotspot after client gets the hot information of target Wi-Fi hotspot by terminal The hot information of each history Wi-Fi hotspot of the information with recording is compared, to determine history from each target Wi-Fi hotspot The Wi-Fi hotspot being not present in Wi-Fi hotspot.In other words, client needs which is determined from each target Wi-Fi hotspot Wi-Fi hotspot be terminal be in that current location scans do not obtain heat spot password previously or do not obtained from server previously and be The Wi-Fi hotspot of the no mark for having a focus password.
Wherein, referred to herein as history Wi-Fi hotspot can refer to the previously passed terminal of client from server obtain overheat Point password and the Wi-Fi hotspot preserved, namely locally record the Wi-Fi hotspot for having focus password;Or it can refer to that client is previous The Wi-Fi hotspot for the mark for whether having focus password was obtained from server by terminal, i.e. local record, which has, characterizes WiFi heat Whether point has the Wi-Fi hotspot of the mark of focus password;Or refer to the previously passed terminal to server inquiry request mistake of client Wi-Fi hotspot.
For the Wi-Fi hotspot that terminal local has recorded focus password, the focus password of these Wi-Fi hotspots is existing In terminal local, so, client may not necessarily be by terminal again to the corresponding focus password of server lookup.
For local record has sign Wi-Fi hotspot whether to have the Wi-Fi hotspot of mark of focus password, client is first It is preceding these Wi-Fi hotspots were obtained from server by terminal whether to have the mark of focus password, so can determine that out service Whether the focus password of these Wi-Fi hotspots is stored with device.Therefore, when terminal scans these Wi-Fi hotspots again, client End no longer can obtain whether these Wi-Fi hotspots have the mark of focus password by terminal to server, with confirmed service device Whether the focus password of these Wi-Fi hotspots is stored with.
Preferably, characterize in server in the presence of two kinds of marks, one kind in the embodiment of the present application and be stored with the Wi-Fi hotspot Focus password, another kind, which characterizes, is not stored with the focus password of the Wi-Fi hotspot in server.So locally remember for those It is stored with the server of record for the Wi-Fi hotspot of the mark of focus password, client can be according to the mark of these Wi-Fi hotspots Know, determine to be stored with the focus password of these Wi-Fi hotspots in server, so, can without again by terminal to service Device obtains whether these Wi-Fi hotspots have the mark of focus password, to be stored with the focus of these Wi-Fi hotspots in confirmed service device Password.And for the Wi-Fi hotspot of the mark for not being stored with focus password in the server of those local records, work as terminal When these Wi-Fi hotspots are arrived in scanning again, client can obtain whether these Wi-Fi hotspots have focus by terminal to server The mark of password, to determine now whether server has been stored with the focus passwords of these Wi-Fi hotspots.
Certainly, for the previously passed terminal to server of client is transmitted across the Wi-Fi hotspot of inquiry request, terminal When these Wi-Fi hotspots are arrived in scanning again, client no longer can be sent for these Wi-Fi hotspots by terminal to server Inquiry request.
In the embodiment of the present application, client can be directed to each target Wi-Fi hotspot, if corresponding to the target Wi-Fi hotspot Hot information hot information corresponding with each history Wi-Fi hotspot that terminal local records differs, it is determined that target WiFi Focus is the Wi-Fi hotspot being not present in history Wi-Fi hotspot.
For example, it is assumed that the hot information of a Wi-Fi hotspot includes:These three information of SSID, BSSID, positional information.And For each target Wi-Fi hotspot, client can remember these three hot informations of the target Wi-Fi hotspot with terminal local respectively The hot information of each history Wi-Fi hotspot of record is compared.When it is determined that the target Wi-Fi hotspot these three hot informations with When three hot informations of each history Wi-Fi hotspot differ (that is, SSID is different, BSSID is different, positional information is different), It is the Wi-Fi hotspot being not present in history Wi-Fi hotspot then to determine the target Wi-Fi hotspot, and then can make the target Wi-Fi hotspot For Wi-Fi hotspot to be checked.
It should be noted that in the embodiment of the present application, judge whether target Wi-Fi hotspot is to be deposited in history Wi-Fi hotspot Wi-Fi hotspot standard can have it is a variety of.For example, as the SSID and history Wi-Fi hotspot that determine target Wi-Fi hotspot When SSID is identical, then it can determine that the target Wi-Fi hotspot for Wi-Fi hotspot present in history Wi-Fi hotspot.For another example when determination During SSID the and BSSID all sames of target Wi-Fi hotspot and history Wi-Fi hotspot, it is determined that the target Wi-Fi hotspot is history Wi-Fi hotspot present in Wi-Fi hotspot.
In other words, if the hot information of target Wi-Fi hotspot and the hot information of history Wi-Fi hotspot have part or complete Portion is identical, then can determine that the target Wi-Fi hotspot for Wi-Fi hotspot present in history Wi-Fi hotspot.And if target Wi-Fi hotspot Hot information and history Wi-Fi hotspot the entirely different (hot information of some non-identifying effects, such as WiFi of hot information Except signal intensity etc.), it is determined that the target Wi-Fi hotspot is the Wi-Fi hotspot that history Wi-Fi hotspot is not present.
In the embodiment of the present application, client can pass through the hot information of target Wi-Fi hotspot and last client The hot information for the Wi-Fi hotspot that terminal to server inquiry request is crossed is compared, so which to be determined in target Wi-Fi hotspot It is not history Wi-Fi hotspot.In other words, client monitors to the location of terminal change when, you can the user is worked as The focus of Wi-Fi hotspot around when the hot information of Wi-Fi hotspot around preceding present position and the terminal are located at a upper position Information is compared, during determining to be located at a upper position relative to the terminal around Wi-Fi hotspot, the terminal is presently in Which is emerging Wi-Fi hotspot in Wi-Fi hotspot around position.
Client can also be looked into the hot information of target Wi-Fi hotspot and nearest n client by terminal to server The hot information for asking requested Wi-Fi hotspot is compared, to determine to scan obtained Wi-Fi hotspot relative to nearest n times, Current Scan to Wi-Fi hotspot in which be emerging Wi-Fi hotspot, in other words, in target Wi-Fi hotspot which Wi-Fi hotspot is previous not to the Wi-Fi hotspot of server lookup, wherein, n is positive integer.
The purpose of this measure is, in actual applications, user has gone to multiple places within a period of time, but these ground The region that side is covered may have the part to overlap each other, and accordingly, the Wi-Fi hotspot that these places are included may Exist each other and partly overlap, as shown in Figure 2.
Fig. 2 is that multiple local Wi-Fi hotspots that the embodiment of the present application provides have partly overlapping schematic diagram.
It is assumed that user is previously in position C by position A, position B and at current time, figure it is seen that position A, B, C exist partly overlap two-by-two, so, the focus repeated each other also be present in the Wi-Fi hotspot that these three positions are included. And due to user by position A and position B when, client has got the Wi-Fi hotspot that position A and position B are included Focus password, so, when monitoring that user is in position C, client need to only be got from server to be present in the C of position, And it is not present in position A and the focus password of the Wi-Fi hotspot in the B of position.That is, get Fig. 2 positions C dash areas Wi-Fi hotspot focus password.So can as far as possible using the focus password of the Wi-Fi hotspot got in the past, so as to Save to server send inquiry focus password when data traffic, and when also reducing server lookup focus password Load pressure.
Certainly, in addition to dash area in Fig. 2, if having part Wi-Fi hotspot client in position A and position C intersections Previously fail and obtain corresponding focus password from server, then when terminal is in position C, also can to server lookup this The focus password of a little Wi-Fi hotspots.Similarly, if there is also part Wi-Fi hotspot being client in position C and position B intersections Previously fail and the Wi-Fi hotspot of corresponding focus password is obtained from server, then, also can be to service when terminal is in position C Device inquires about the focus password of these Wi-Fi hotspots.
S103:The hot information of the Wi-Fi hotspot to be checked is sent to server, it is described to be checked to obtain sign Wi-Fi hotspot whether have focus password mark and/or the Wi-Fi hotspot to be checked corresponding to focus password.
The hot information for the Wi-Fi hotspot to be checked determined can be sent to server by client.And due in server Focus password corresponding to each Wi-Fi hotspot is preserved, so, believe when server gets the focus that client sent by terminal During breath, can according to each Wi-Fi hotspot of the hot information and preservation received and the corresponding relation of each focus password, it is determined that Go out focus password corresponding to these Wi-Fi hotspots, and the focus password determined is returned into terminal.
Client can by the focus password that terminal the reception server returns, and then by the focus password received and The focus password (previously having been got from server) being locally stored is integrated with corresponding Wi-Fi hotspot, and will be whole The result of conjunction is shown to user.
Certainly, when the hot information for the Wi-Fi hotspot to be checked determined is sent to server by client, server can With to client return server in whether be stored with Wi-Fi hotspot to be checked focus password mark so that client according to These marks got, show in the Wi-Fi hotspot that Current Scan goes out, which is to be stored with focus in the server to user Password, which is not to be stored with focus password in server.
Server can also return after the hot information of Wi-Fi hotspot to be checked of client transmission is received to client The mark of the focus password of Wi-Fi hotspot to be checked whether is stored with server, and is stored with the to be checked of focus password The focus password of Wi-Fi hotspot.So, client can show what Current Scan went out according to these marks got to user In Wi-Fi hotspot, which is to be stored with focus password in the server, and which is not to be stored with focus password in server, And after the Wi-Fi hotspot of focus password is stored with monitoring that user have chosen server, it is somebody's turn to do according to what is got from server The focus password of Wi-Fi hotspot, connects the Wi-Fi hotspot.
And for Wi-Fi hotspot to be checked, if the focus for the Wi-Fi hotspot to be checked that client is got from server Password or the mark for characterizing the focus password that Wi-Fi hotspot to be checked whether is stored with server, then client can will be to be checked The mark ask the focus password of Wi-Fi hotspot or got is preserved.At the same time, get focus password or characterize service The Wi-Fi hotspot to be checked of the mark of focus password whether is stored with device will also turn into history Wi-Fi hotspot, for next time The hot information of the Wi-Fi hotspot scanned, which is compared, to be used.
In from the above as can be seen that due to scanning to terminal the target Wi-Fi hotspot being presently in around position Afterwards, it is not the focus password of all target Wi-Fi hotspots scanned to server lookup or obtains all targets to server Whether Wi-Fi hotspot has the mark of focus password, but first determines not deposit in history Wi-Fi hotspot from each target Wi-Fi hotspot Wi-Fi hotspot, and using the Wi-Fi hotspot determined as Wi-Fi hotspot to be checked, with to server lookup WiFi to be checked The focus password of focus obtains whether Wi-Fi hotspot to be checked has the mark of focus password to server.Change for an angle, For history Wi-Fi hotspot, terminal had previously obtained the focus password or server of these history Wi-Fi hotspots from server In whether be stored with the mark of focus password, if so including history Wi-Fi hotspot in target Wi-Fi hotspot, terminal need not The mark of focus password whether is stored with into the focus password or server of these history Wi-Fi hotspots of server lookup again, And it is close only whether need to be stored with focus into server lookup this time the focus password or server of the new Wi-Fi hotspot scanned The mark of code.It so can both effectively reduce in terminal to server inquiry focus password or server and whether be stored with heat Spent data traffic during the mark of point password, while also greatly reduce load pressure when server carries out inquiry service Power.
It should be noted that client once scans Wi-Fi hotspot at the time of Current Scan Wi-Fi hotspot is determined with upper At the time of between time span when being not less than the first setting time length, then can be whole by Wi-Fi hotspot that Current Scan obtains As Wi-Fi hotspot to be checked, and focus password to server lookup these Wi-Fi hotspots or obtain these WiFi to server Whether focus is stored with the mark of focus password in the server.
The purpose of this measure is that in actual applications, the focus password or Wi-Fi hotspot of Wi-Fi hotspot are in the server Whether being stored with the situation of focus password can may change at any time.That is, over time, previously got The focus password of Wi-Fi hotspot may no longer be the current focus password of the Wi-Fi hotspot, or previously server did not stored There is the focus password of the Wi-Fi hotspot, and the focus password of the Wi-Fi hotspot may be now stored with server.And by Probability longer in the time, that the focus password of Wi-Fi hotspot is modified, or whether it is stored with the Wi-Fi hotspot in server The probability that changing occurs in the situation of focus password is also relatively bigger.
So client at the time of Current Scan Wi-Fi hotspot is monitored apart from it is upper once scan Wi-Fi hotspot at the time of During long enough, then need all Wi-Fi hotspots for scanning this all as Wi-Fi hotspot to be checked, with from server Obtain the newest focus password of each Wi-Fi hotspot to be checked, or obtain from server whether be stored with server it is each to be checked The mark of the focus password of Wi-Fi hotspot, to determine that the focus password of these Wi-Fi hotspots to be checked in the server newest is deposited Storage situation.
In the embodiment of the present application, if the position for the last scanning Wi-Fi hotspot of positional distance that terminal is presently in is relative Farther out, then user's carried terminal marches to the time of current location this process cost from the position of last scanning Wi-Fi hotspot May also be relatively long, so, the probability or focus password of the focus change of secret code for the Wi-Fi hotspot that the last time is scanned exist The probability that changing occurs in storage condition in server is also relatively large.Therefore, even if client is determined in target WiFi heat Some in point is the last time to scan and obtain focus password or obtain in server whether be stored with focus password The Wi-Fi hotspot of mark, the focus password that user can not also may be got by the last time from server, Successful login these Wi-Fi hotspot, or the mark that can not be got by the last time from server, determine now whether be stored with server The focus password of these Wi-Fi hotspots.
Based on this, in the embodiment of the present application, client is it is determined that the location of terminal during Current Scan Wi-Fi hotspot The location of terminal is not less than what is included in setpoint distance, and/or target Wi-Fi hotspot when scanning Wi-Fi hotspot with the last time When the quantity of history Wi-Fi hotspot is no more than setting quantity, then the Wi-Fi hotspot obtained Current Scan is all as to be checked Wi-Fi hotspot, and to server lookup these Wi-Fi hotspots to be checked focus password, or to server to obtain these to be checked Whether Wi-Fi hotspot has the mark of focus password.
In other words, client determines that the position that twice sweep Wi-Fi hotspot is based on is swept relatively far away from, and/or twice When there was only fraction repetition in the Wi-Fi hotspot described, then it can be assumed that the focus password for the Wi-Fi hotspot that this part repeats very may be used It can be modified, or the probability that changes of focus password storage condition in the server of these Wi-Fi hotspots is larger, And then all Wi-Fi hotspots for scanning this are inquired about as Wi-Fi hotspot to be checked to server.Wherein, carry here The setpoint distance arrived can be more than or equal to scanning triggering distance mentioned above.
In the embodiment of the present application, it is longer in local zone time for focus password storage, or characterize Wi-Fi hotspot and taking The mark for whether having focus password in business device is stored in for the longer Wi-Fi hotspot of local zone time, the focus of these Wi-Fi hotspots Password is likely to have occurred that change, or the storage condition of focus password in the server have been likely occurred change, institute With for each target Wi-Fi hotspot, when client determines the focus password or target WiFi heat of the target Wi-Fi hotspot The mark whether point has focus password has been recorded in local, and whether the focus password or the target Wi-Fi hotspot have focus password Mark local storage time be not less than the second setting time length when, then can be using the target Wi-Fi hotspot as to be checked Wi-Fi hotspot.That is, local has been stored in for whether being stored with the mark of focus password in focus password or sign server, And the target Wi-Fi hotspot that storage time is relatively long, client are needed to the newest heat of the server lookup target Wi-Fi hotspot Point password, or obtain the latest development whether target WiFi be stored with server focus password to server.
The information acquisition method provided above for one or more embodiments of this specification, based on same thinking, sheet Specification additionally provides corresponding information acquisition device, as shown in Figure 3.
Fig. 3 is a kind of schematic device for acquisition of information that the embodiment of the present application provides, and is specifically included:
Acquisition module 301, obtain the hot information of target Wi-Fi hotspot;
Determining module 302, by the hot information of the target Wi-Fi hotspot and the focus of each history Wi-Fi hotspot of record Information is compared, with the Wi-Fi hotspot for determining to be not present in history Wi-Fi hotspot from the target Wi-Fi hotspot, and will The Wi-Fi hotspot determined is as Wi-Fi hotspot to be checked;
Sending module 303, the hot information of the Wi-Fi hotspot to be checked is sent to server, to obtain described in sign Wi-Fi hotspot to be checked whether have focus password mark and/or the Wi-Fi hotspot to be checked corresponding to focus password.
The acquisition module 301, obtain the Wi-Fi hotspot that present terminal is obtained by scan channel, the WiFi that will be got Focus obtains the hot information of the target Wi-Fi hotspot as target Wi-Fi hotspot.
The history Wi-Fi hotspot includes at least one of following:
Local record has the Wi-Fi hotspot for characterizing the mark whether Wi-Fi hotspot has focus password;
Local record has the Wi-Fi hotspot of focus password;
The requested Wi-Fi hotspot of terminal to server historical query.
The determining module 302, the hot information of each target Wi-Fi hotspot and local record there is into sign Wi-Fi hotspot The hot information for having the Wi-Fi hotspot of the mark of focus password is compared;Or by the hot information of each target Wi-Fi hotspot with The hot information that local record has the Wi-Fi hotspot of focus password is compared;Or the hot information by each target Wi-Fi hotspot The hot information for the Wi-Fi hotspot crossed with last terminal to server inquiry request is compared;It is or each target WiFi is warm The hot information for the Wi-Fi hotspot that the hot information of point is crossed with nearest n terminal to server inquiry request is compared, and n is just Integer.
The determining module 302, for each target Wi-Fi hotspot, if hot information corresponding to the target Wi-Fi hotspot with Hot information corresponding to each history Wi-Fi hotspot of record differs, it is determined that the target Wi-Fi hotspot is history Wi-Fi hotspot In the Wi-Fi hotspot that is not present, the hot information includes:The service set SSID of Wi-Fi hotspot, basic service set identification It is at least one in BSSID, positional information.
The determining module 302, however, it is determined that at the time of Current Scan Wi-Fi hotspot with last scanning Wi-Fi hotspot when Time span between quarter is not less than the first setting time length, then the Wi-Fi hotspot obtained Current Scan is all as to be checked Ask Wi-Fi hotspot.
The determining module 302, however, it is determined that the location of described terminal is swept with the last time during Current Scan Wi-Fi hotspot The location of described terminal is not less than the history included in setpoint distance and/or the target Wi-Fi hotspot when retouching Wi-Fi hotspot The quantity of Wi-Fi hotspot is no more than setting quantity, then the Wi-Fi hotspot obtained Current Scan is all as WiFi to be checked heat Point.
The determining module 302, for each target Wi-Fi hotspot, however, it is determined that characterize whether the target Wi-Fi hotspot has heat The mark and/or the focus password of the target Wi-Fi hotspot of point password have been recorded in local, and characterize the target Wi-Fi hotspot and be The storage time of the no mark for having focus password and/or the focus password in local is not less than the second setting time length, then will The target Wi-Fi hotspot is as Wi-Fi hotspot to be checked.
Based on same thinking, the embodiment of the present application additionally provides corresponding equipment and computer-readable medium.
Fig. 4 is a kind of structural representation for information acquisition apparatus corresponding to Fig. 1 that the embodiment of the present application provides.
Equipment in Fig. 4, including for storing the memory of computer program instructions and place for execute program instructions Device is managed, wherein, when the computer program instructions are by the computing device, trigger the equipment and perform the above method.
The embodiment of the present application additionally provides a kind of computer-readable medium corresponding to Fig. 1, and the media storage has calculating Machine readable instruction, the computer-readable instruction can be executed by processor to realize the above method.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for equipment and For media embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to method The part explanation of embodiment.
The equipment and medium that the embodiment of the present application provides are one-to-one with method, and therefore, equipment and medium also have The similar advantageous effects of corresponding method, due to having been carried out specifically to the advantageous effects of method above It is bright, therefore, the advantageous effects of equipment and medium are repeated no more here.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Other identical element also be present in the process of element, method, commodity or equipment.
Embodiments herein is the foregoing is only, is not limited to the application.For those skilled in the art For, the application can have various modifications and variations.All any modifications made within spirit herein and principle, it is equal Replace, improve etc., it should be included within the scope of claims hereof.

Claims (10)

  1. A kind of 1. method of acquisition of information, it is characterised in that including:
    Obtain the hot information of target Wi-Fi hotspot;
    The hot information of the target Wi-Fi hotspot is compared with the hot information of each history Wi-Fi hotspot recorded, with from The Wi-Fi hotspot being not present in history Wi-Fi hotspot is determined in the target Wi-Fi hotspot, and the Wi-Fi hotspot determined is made For Wi-Fi hotspot to be checked;
    The hot information of the Wi-Fi hotspot to be checked is sent to server, is used to characterize the WiFi heat to be checked to obtain Put focus password corresponding to the mark for whether having focus password and/or the Wi-Fi hotspot to be checked.
  2. 2. the method as described in claim 1, it is characterised in that obtain the hot information of target Wi-Fi hotspot, specifically include:
    The Wi-Fi hotspot that present terminal is obtained by scan channel is obtained, using the Wi-Fi hotspot got as target WiFi heat Point, and obtain the hot information of the target Wi-Fi hotspot.
  3. 3. the method as described in claim 1, it is characterised in that the history Wi-Fi hotspot includes at least one of following:
    Local record has the Wi-Fi hotspot for characterizing the mark whether Wi-Fi hotspot has focus password;
    Local record has the Wi-Fi hotspot of focus password;
    The requested Wi-Fi hotspot of terminal to server historical query.
  4. 4. method as claimed in claim 3, it is characterised in that the hot information of the target Wi-Fi hotspot is each with recording The hot information of history Wi-Fi hotspot is compared, including:
    The hot information of each target Wi-Fi hotspot and local record had and characterizes Wi-Fi hotspot and has the mark of focus password The hot information of Wi-Fi hotspot is compared;Or
    The hot information that the hot information of each target Wi-Fi hotspot and local record are had to the Wi-Fi hotspot of focus password is carried out Compare;Or
    The heat for the Wi-Fi hotspot that the hot information of each target Wi-Fi hotspot and last terminal to server inquiry request are crossed Point information is compared;Or
    The heat for the Wi-Fi hotspot that the hot information of each target Wi-Fi hotspot and nearest n terminal to server inquiry request are crossed Point information is compared, n>1 and n is positive integer.
  5. 5. method as claimed in claim 4, it is characterised in that determine history Wi-Fi hotspot from the target Wi-Fi hotspot In the Wi-Fi hotspot that is not present, specifically include:
    For each target Wi-Fi hotspot, if each history Wi-Fi hotspot of hot information corresponding to the target Wi-Fi hotspot and record Corresponding hot information differs, it is determined that and the target Wi-Fi hotspot is the Wi-Fi hotspot being not present in history Wi-Fi hotspot, The hot information includes:In the service set SSID of Wi-Fi hotspot, basic service set identification BSSID, positional information extremely It is few one.
  6. 6. method as claimed in claim 2, it is characterised in that the hot information of the Wi-Fi hotspot to be checked is sent to clothes It is engaged in before device, methods described also includes:
    If it is determined that the time span between at the time of Current Scan Wi-Fi hotspot and at the time of last scanning Wi-Fi hotspot is not small In the first setting time length, then the Wi-Fi hotspot obtained Current Scan is all as Wi-Fi hotspot to be checked.
  7. 7. method as claimed in claim 2, it is characterised in that the hot information of the Wi-Fi hotspot to be checked is sent to clothes It is engaged in before device, methods described also includes:
    If it is determined that terminal when the location of described terminal scans Wi-Fi hotspot with the last time during Current Scan Wi-Fi hotspot Location is not more than not less than the quantity of the history Wi-Fi hotspot included in setpoint distance and/or the target Wi-Fi hotspot Quantity is set, then the Wi-Fi hotspot obtained Current Scan is all as Wi-Fi hotspot to be checked.
  8. 8. the method as described in claim 1, it is characterised in that the hot information of the Wi-Fi hotspot to be checked is sent to clothes It is engaged in before device, methods described also includes:
    For each target Wi-Fi hotspot, however, it is determined that characterize whether the target Wi-Fi hotspot has the mark of focus password and/or be somebody's turn to do The focus password of target Wi-Fi hotspot has been recorded in local, and characterizes whether the target Wi-Fi hotspot has the mark of focus password And/or the focus password local storage time be not less than the second setting time length, then using the target Wi-Fi hotspot as Wi-Fi hotspot to be checked.
  9. 9. a kind of equipment of acquisition of information, the equipment includes being used to store the memory of computer program instructions and for performing The processor of programmed instruction, wherein, when the computer program instructions are by the computing device, triggering the equipment perform claim will Seek the method any one of 1 to 8.
  10. 10. a kind of computer-readable medium, the media storage has computer-readable instruction, and the computer-readable instruction can quilt Computing device is to realize the method as any one of claim 1 to 8.
CN201710868729.4A 2017-09-22 2017-09-22 Information acquisition method, equipment and medium Active CN107835512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710868729.4A CN107835512B (en) 2017-09-22 2017-09-22 Information acquisition method, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710868729.4A CN107835512B (en) 2017-09-22 2017-09-22 Information acquisition method, equipment and medium

Publications (2)

Publication Number Publication Date
CN107835512A true CN107835512A (en) 2018-03-23
CN107835512B CN107835512B (en) 2020-07-17

Family

ID=61643982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710868729.4A Active CN107835512B (en) 2017-09-22 2017-09-22 Information acquisition method, equipment and medium

Country Status (1)

Country Link
CN (1) CN107835512B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099450A (en) * 2019-12-19 2021-07-09 海信集团有限公司 Intelligent device and network distribution method thereof, mobile terminal and network distribution system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458408A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Network connection method and network sharing method and device
CN103458409A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Network connection method and network sharing method and device
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
US20170238183A1 (en) * 2016-02-17 2017-08-17 Zitovault, Inc. Mac address-bound wlan password

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458408A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Network connection method and network sharing method and device
CN103458409A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Network connection method and network sharing method and device
US20170238183A1 (en) * 2016-02-17 2017-08-17 Zitovault, Inc. Mac address-bound wlan password
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099450A (en) * 2019-12-19 2021-07-09 海信集团有限公司 Intelligent device and network distribution method thereof, mobile terminal and network distribution system

Also Published As

Publication number Publication date
CN107835512B (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN102349270B (en) Method and system for load-balancing across multiple access networks
US20200258397A1 (en) Method and device for transmitting flight information of unmanned aerial vehicle, base station, and core network device
CN105472737B (en) A kind of method of locating terminal and server
US10425854B2 (en) Method and system for network services related to geographic location
US20080171556A1 (en) Database update systems
CN109673037B (en) Network function discovery method and equipment
US8630901B2 (en) Using a first network to control access to a second network
EP3952442A1 (en) Method for selecting location management function and device
US20180343606A1 (en) Method and device for establishing wireless connection
CN107979841B (en) Method and equipment for inquiring authentication information of wireless access point
CN105873237A (en) Method and device for building wireless connection
US20200296617A1 (en) Radio resource adjustment method and related device
CN106413041A (en) Mobile terminal cell dwelling method and apparatus
US20210227454A1 (en) Access type selection method and device and storage medium
CN104469735A (en) SIM card application method and SIM card allocation method and device
US8514782B2 (en) Location information service method
EP2656644B1 (en) Rate discount forecasts for wireless user terminals
CN107835512A (en) A kind of method of acquisition of information, equipment and medium
US20230403612A1 (en) Cell data transmission method and apparatus and electronic device
KR20090043216A (en) Apparatus and method for updating a network information based on a terminal
US9185556B2 (en) Method and system for forming a common network using shared private wireless networks
US20110045827A1 (en) Method for providing location service for roaming terminal
CN107548030B (en) WiFi switch control and data query service method, device and medium
KR20100113586A (en) Method and apparatus for locating and assistant locating in a phs network
CN109474976B (en) Wireless network access method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210406

Address after: 200131 Zone E, 9th floor, No.1 Lane 666, zhangheng Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Shanghai Shangxiang Network Technology Co.,Ltd.

Address before: 200120 2, building 979, Yun Han Road, mud town, Pudong New Area, Shanghai

Patentee before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd.