CN106714177A - Method for distinguishing same-name wireless hotspot and electronic device - Google Patents

Method for distinguishing same-name wireless hotspot and electronic device Download PDF

Info

Publication number
CN106714177A
CN106714177A CN201710183750.0A CN201710183750A CN106714177A CN 106714177 A CN106714177 A CN 106714177A CN 201710183750 A CN201710183750 A CN 201710183750A CN 106714177 A CN106714177 A CN 106714177A
Authority
CN
China
Prior art keywords
hotspot
attribute information
source attribute
target wireless
focus
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
CN201710183750.0A
Other languages
Chinese (zh)
Other versions
CN106714177B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710183750.0A priority Critical patent/CN106714177B/en
Publication of CN106714177A publication Critical patent/CN106714177A/en
Application granted granted Critical
Publication of CN106714177B publication Critical patent/CN106714177B/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/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

The embodiment of the invention provides a method for distinguishing a same-name wireless hotspot and an electronic device. The method comprises the following steps: when a connection needs to be established with a to-be-connected wireless hotspot, a first name and first source attribute information of the to-be-connected wireless hotspot are obtained; and when the first name and the first source attribute information are respectively matched with a second name and second source attribute information of a target wireless hotspot which is recorded in advance, the to-be-connected wireless hotspot and the target wireless hotspot are the same wireless hotspot, and at this moment, the electronic device can try to establish the connection with the to-be-connected wireless hotspot according to a target login password of the target wireless hotspot. When the to-be-connected wireless hotspot and the target wireless hotspot are determined to be the same wireless hotspot, the connection can be tried via the target login password, so the condition that the login password is input again when the to-be-connected wireless hotspot and the target wireless hotspot are the same only in a name and the login passwords are different is avoided; and thus, the time of the electronic device to connect the wireless hotspot is shortened; and the data processing speed of the electronic device is improved.

Description

Distinguish the method and electronic equipment of hotspot of the same name
Technical field
The present invention relates to the communications field, it is more particularly to distinguish the method and electronic equipment of hotspot of the same name.
Background technology
Existing electronic equipment has Wireless Fidelity (Wireless-Fidelity, wireless) function mostly, can be by opening Open the hotspot near wireless communication module connection, it is contemplated that the security of network, logging in for hotspot can be typically set Password.Conventional electronic equipment can record the title and modification logging of hotspot after successful log hotspot, all, so as to User can quickly log in when accessing the hotspot again.
Because there is hotspot in many places at present, multiple hotspot often occur has a case that same name, Hotspot of the multiple with same name is referred to as hotspot of the same name.Assuming that electronic equipment stores stepping on for a hotspot Record password.During electronic equipment is set up with the one of hotspot hotspot of the same name be connected again, can attempt and store The login password of the hotspot set up with this hotspot of the same name and be connected, if login password is incorrect, also need to use Family is input into correct login password, extends the time that electronic equipment connects hotspot, reduces at the data of electronic equipment Reason speed.
Therefore, a kind of method for distinguishing hotspot of the same name is needed in the prior art.
The content of the invention
In view of this, it is existing to overcome the invention provides a kind of method and electronic equipment for distinguishing hotspot of the same name Electronic equipment is set up in connection procedure with hotspot of the same name in technology, causes to extend electronic equipment connection hotspot Time, reduce the problem of the data processing speed of electronic equipment.
To achieve the above object, the present invention provides following technical scheme:
A kind of method for distinguishing hotspot of the same name, is applied to electronic equipment, and the electronic equipment record has and its success The corresponding title of each hotspot, the corresponding source attribute information of each hotspot and each hotspot for setting up connection are corresponding Login password, the method for the differentiation hotspot of the same name includes:
Obtain first title and the first source attribute information of hotspot to be connected;
When first title and the first source attribute information, the second place with pre-recorded Target Wireless focus When the second source attribute information of title and the Target Wireless focus matches respectively, according to Target Wireless focus correspondence Target login password attempt setting up with the hotspot to be connected and be connected.
Preferably, also include:
When the pre-recorded corresponding title of each hotspot and first title are mismatched, or, with described first The corresponding second source attribute information of the Target Wireless focus and described first belonging to the second title that title matches When source attribute information is mismatched, user input login password is pointed out.
Wherein, judge the first source attribute information with the pre-recorded Target Wireless focus corresponding second Source attribute information whether match including:
When the Target Wireless focus is global network, the first router media of the hotspot to be connected are obtained Accessing to control address;
By the first router media access control address, it is defined as the first source attribute information;
Judge the second router media of the first router media access control address and the Target Wireless focus Whether accessing to control address matches, and the second source attribute information includes the second router media access control ground Location.
Wherein it is determined that the method for the source attribute information of each hotspot for prestoring includes:
When each hotspot for prestoring includes that the title of at least two hotspot is identical, and, described at least two When the individual corresponding login password of hotspot is identical, judge that the corresponding router media of at least two hotspot accesses control Whether address processed is identical and whether the corresponding dynamic internet protocol address of at least two hotspot is identical;
When the corresponding router media accessing to control address of at least two hotspot is identical, and described at least two When the corresponding dynamic internet protocol address of hotspot differs, determine that at least two hotspot is publicly-owned net Network;
At least two hotspot is defined as one first hotspot;
By the corresponding router media accessing to control address of first hotspot, it is defined as first hotspot Source attribute information.
Wherein, judge the first source attribute information with the pre-recorded Target Wireless focus corresponding second Source attribute information whether match including:
When the Target Wireless focus is private network, the first private internet of the hotspot to be connected is obtained Protocol address;
By the first private internet protocol address, it is defined as the first source attribute letter of the hotspot to be connected Breath;
Judge the second private internet agreement of the first private internet protocol address and the Target Wireless focus Whether address matches, and the second source attribute information includes the second private internet protocol address.
Wherein it is determined that the method for the source attribute information of each hotspot for prestoring includes:
When each hotspot for prestoring includes that the title of at least two hotspot is identical, and, described at least two When the individual corresponding login password of hotspot is identical, judge that the corresponding router media of at least two hotspot accesses control Whether address processed is identical and whether the corresponding private internet protocol address of at least two hotspot is identical;
When the corresponding router media accessing to control address of at least two hotspot is differed, and described at least two When the individual corresponding private internet protocol address of hotspot is identical, determine that at least two hotspot is private network;
At least two hotspot is defined as one second hotspot;
By the corresponding private internet protocol address of second hotspot, it is defined as coming for second hotspot Source attribute information.
Wherein, the geographical position where when source attribute information is including electronic equipment connection respective wireless focus, sentences Whether the first source attribute information of breaking second source attribute information corresponding with the pre-recorded Target Wireless focus Matching includes:
Obtain the first geographical position that the electronic equipment is currently located;
Judge that whether first geographical position the second geographical position corresponding with the Target Wireless focus matches.
A kind of electronic equipment, including:
Memory, it is for storage program and corresponding with each hotspot that the electronic equipment is successfully established connection The corresponding source attribute information of title, each hotspot and the corresponding login password of each hotspot;
Processor, for performing described program, described program specifically for:
Obtain first title and the first source attribute information of hotspot to be connected;
When first title and the first source attribute information, the second place with pre-recorded Target Wireless focus When the second source attribute information of title and the Target Wireless focus matches respectively, according to Target Wireless focus correspondence Target login password attempt setting up with the hotspot to be connected and be connected.
Wherein, the processor is judging the first source attribute information with the pre-recorded Target Wireless focus When whether corresponding second source attribute information matches, specifically for:
When the Target Wireless focus is global network, the first router media of the hotspot to be connected are obtained Accessing to control address;
By the first router media access control address, it is defined as the first source attribute information;
Judge the second router media of the first router media access control address and the Target Wireless focus Whether accessing to control address matches, and the second source attribute information includes the second router media access control ground Location.
Wherein, the processor is judging the first source attribute information with the pre-recorded Target Wireless focus When whether corresponding second source attribute information matches, specifically for:
When the Target Wireless focus is private network, the first private internet of the hotspot to be connected is obtained Protocol address;
By the first private internet protocol address, it is defined as the first source attribute letter of the hotspot to be connected Breath;
Judge the second private internet agreement of the first private internet protocol address and the Target Wireless focus Whether address matches, and the second source attribute information includes the second private internet protocol address.
Understood via above-mentioned technical scheme, compared with prior art, the embodiment of the invention provides a kind of differentiation of the same name The method of hotspot, electronic equipment record has title corresponding with each hotspot that it is successfully established connection, each wireless heat Point corresponding source attribute information and the corresponding login password of each hotspot, when electronic equipment needs are to be connected with one wireless When focus sets up connection, first title and the first source attribute information of hotspot to be connected are obtained;When the first title with First source attribute information, the second title and the second source of Target Wireless focus with pre-recorded Target Wireless focus When attribute information matches respectively, illustrate that hotspot to be connected is same hotspot with Target Wireless focus, now electronics Equipment can be attempted setting up and is connected according to the target login password of Target Wireless focus and hotspot to be connected.The present invention is implemented Example, just can be by Target Wireless focus when it is determined that current hotspot to be connected is same hotspot with Target Wireless focus Target login password attempt connection, with the title of hotspot only to be connected in the prior art and Target Wireless hotspot name phase Together, carry out attempting connection with regard to the login password according to Target Wireless focus comparing, it is to avoid hotspot to be connected and target without Line focus is only identical title, and during login password difference, causes to be input into the situation of login password again, so as to shorten electricity Sub- equipment connects the time of hotspot, improves the data processing speed of electronic equipment.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of flow chart of method for distinguishing hotspot of the same name provided in an embodiment of the present invention;
Fig. 2 is the structure chart of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
As shown in figure 1, being a kind of flow chart of the method for distinguishing hotspot of the same name provided in an embodiment of the present invention, the party Method can apply to electronic equipment, the corresponding name of each hotspot that electronic equipment can be recorded with it is successfully established connection Title, the corresponding source attribute information of each hotspot and the corresponding login password of each hotspot, the differentiation wireless heat of the same name The method of point includes:
Step S101:Obtain first title and the first source attribute information of hotspot to be connected.
The title corresponding with each hotspot that it is successfully established connection of electronic equipment record, each hotspot are corresponding Source attribute information and the corresponding login password of each hotspot, can store in default entry, and default entry can be In form, default memory space, TxT texts etc..The embodiment of the present invention is illustrated by taking form as an example.
Table 1 is successfully established each hotspot table of connection
Hotspot title The corresponding source attribute information of hotspot The corresponding login password of hotspot
WiFi1 Source attribute information 1 Login password 1
WiFi2 Source attribute information 2 Login password 2
WiFin Source attribute information n Login password n
The source attribute information of hotspot is used to characterize the information of the affiliated router of respective wireless focus or affiliated network interface card.
Step S102:When first title and the first source attribute information, with pre-recorded Target Wireless heat When second title and the second source attribute information of the Target Wireless focus of point match respectively, according to the target without The corresponding target login password of line focus is attempted setting up and is connected with the hotspot to be connected.
Preferably, the method for distinguishing hotspot of the same name provided in an embodiment of the present invention can also include:When pre-recorded The corresponding title of each hotspot mismatched with first title, or, the second place matched with first title When the corresponding second source attribute information of the Target Wireless focus and the first source attribute information belonging to claiming are mismatched, Prompting user input login password.
In a kind of method for distinguishing hotspot of the same name provided in an embodiment of the present invention, electronic equipment record has and its success The corresponding title of each hotspot, the corresponding source attribute information of each hotspot and each hotspot for setting up connection are corresponding Login password, when electronic equipment needs to be set up with a hotspot to be connected to be connected, the of acquisition hotspot to be connected One title and the first source attribute information;When the first title and the first source attribute information, with pre-recorded Target Wireless When second title of focus and the second source attribute information of Target Wireless focus match respectively, wireless heat to be connected is illustrated Point is same hotspot with Target Wireless focus.Now electronic equipment can be according to the target login password of Target Wireless focus Attempt setting up with hotspot to be connected and be connected.
The embodiment of the present invention when it is determined that current hotspot to be connected is same hotspot with Target Wireless focus, Connection can be attempted by the target login password of Target Wireless focus, with the title of hotspot only to be connected in the prior art with Target Wireless hotspot name is identical, carries out attempting connection with regard to the login password according to Target Wireless focus comparing, it is to avoid the company for the treatment of Only title is identical with Target Wireless focus to connect hotspot, and during login password difference, causes to be input into login password again Situation, so as to shorten electronic equipment connect hotspot time, improve the data processing speed of electronic equipment.
It is understood that global network source attribute information corresponding with private network is different.
If a hotspot is global network, its management has multiple IP address, manager of the global network to IP address Formula mainly has static allocation mode and dynamically distributes mode, as needed can also be used in combination two ways, i.e. mixing point With mode.Static allocation mode is to show each electronic equipment to distribute a fixed IP address, and advantage is easy for management.Dynamic The method of salary distribution refers to that IP address assigned when same electronic equipment is connected with the global network every time is different from, here it is Dynamic IP addressing.
In embodiments of the present invention, because the electronic equipment being connected with hotspot is not fixed, therefore the present invention is real The mode for applying the management ip address of the global network that example is related to all is dynamically distributes mode, therefore IP address is referred to as into dynamic IP ground Location.
But these dynamic IP addressings are both for consolidated network equipment, such as network interface card, so login password is all identical.One The network equipment can be by MAC (Media Access Control or Medium Access Control, media access control) Address unique mark, because MAC Address is the physical address that is solidificated on network interface card in serial EEPROM, for defining the network equipment Position.In osi model, second layer data link layer is responsible for MAC Address.Therefore one MAC ground of a network equipment correspondence Location.
So the hotspot for belonging to global network, its source attribute information is MAC Address.
Private network is LAN, belongs to a hotspot one IP address of correspondence of private network, the embodiment of the present invention The corresponding IP address of the middle hotspot that will belong to private network referred to as private IP address.
So the hotspot for belonging to private network, its source attribute information is private IP address.
Judge electronic equipment that hotspot belongs to private network or the method for global network is illustrated below.
Assuming that electronic equipment has been successfully connected 5 hotspot, and 5 information of hotspot such as following tables.
2 five relevant informations of hotspot of table
Because the login password of different hotspot is typically differed.Using this feature, can be by login password phase With and MAC Address is identical, but the different multiple hotspot of IP address are defined as same hotspot, and belong to global network; It is login password is identical and IP address is identical, but the different multiple hotspot of MAC Address are defined as same hotspot, and category In private network.
To sum up, from Table 2, it can be seen that the corresponding IP address of WiFi1, WiFi3 and WiFi5 is different, but MAC Address It is identical, and login password is identical, so WiFi1, WiFi3 and WiFi5 belong to consolidated network equipment, therefore by WiFi1, WiFi3 and WiFi5 are defined as same hotspot (referred to as the first hotspot), and belong to global network.
The login password and IP address all same of WiFi2 and WiFi4, but MAC Address is different, therefore, WiFi2 with And WiFi4 is same hotspot (referred to as the second hotspot), and belong to private network.
To sum up, " first source attribute is judged in the method for distinguishing hotspot of the same name provided in an embodiment of the present invention Whether information second source attribute information corresponding with the pre-recorded Target Wireless focus matches " include two kinds of situations. It is understood that electronic equipment cannot at once judge that hotspot to be connected belongs to private network or global network, this hair Bright embodiment cleverly assumes the network type belonging to the title identical Target Wireless focus with hotspot to be connected Hotspot belonging network type to be connected, corresponding source attribute information is obtained based on the network type.
The first, Target Wireless focus is the situation of global network.
Judge the first source attribute information second source category corresponding with the pre-recorded Target Wireless focus Property information whether match including:
When the Target Wireless focus is global network, the first router media of the hotspot to be connected are obtained Accessing to control address;
By the first router media access control address, it is defined as the first source attribute information;
Judge the second router media of the first router media access control address and the Target Wireless focus Whether accessing to control address matches, and the second source attribute information includes the second router media access control ground Location.
When the second router media interviews control corresponding with Target Wireless focus of the first router media access control address Address processed mismatches, then illustrate that hotspot to be connected and Target Wireless focus are not same hotspot, can now point out User input login password.As the first router media access control address the second router matchmaker corresponding with Target Wireless focus Body accessing to control address matches, then illustrate that hotspot to be connected is same hotspot with Target Wireless focus, now may be used It is connected with attempting being set up with hotspot to be connected using the corresponding login password of Target Wireless focus.
Optionally, when the first router media access control address the second router media corresponding with Target Wireless focus When accessing to control address is mismatched, it is also possible to which the corresponding login password of Target Wireless focus is attempted being set up with hotspot to be connected Connection, simply success rate is not high, when connection failure, reresents user input login password.
In the first scenario, it is determined that the method for the source attribute information of each hotspot for prestoring includes:
When each hotspot for prestoring includes that the title of at least two hotspot is identical, and, described at least two When the individual corresponding login password of hotspot is identical, judge that the corresponding router media of at least two hotspot accesses control Whether address processed is identical and whether the corresponding dynamic internet protocol address of at least two hotspot is identical;
When the corresponding router media accessing to control address of at least two hotspot is identical, and described at least two When the corresponding dynamic internet protocol address of hotspot differs, determine that at least two hotspot is publicly-owned net Network;
At least two hotspot is defined as one first hotspot;
By the corresponding router media accessing to control address of first hotspot, it is defined as first hotspot Source attribute information.
Second, Target Wireless focus is the situation of private network.
Judge the first source attribute information second source category corresponding with the pre-recorded Target Wireless focus Property information whether match including:
When the Target Wireless focus is private network, the first private internet of the hotspot to be connected is obtained Protocol address;
By the first private internet protocol address, it is defined as the first source attribute letter of the hotspot to be connected Breath;
Judge the second private internet agreement of the first private internet protocol address and the Target Wireless focus Whether address matches, and the second source attribute information includes the second private internet protocol address.
When the first private internet protocol address the second private internet protocol address corresponding with Target Wireless focus not Matching, then illustrate that hotspot to be connected and Target Wireless focus are not same hotspot, can now point out user input Login password.When the first private internet protocol address the second private internet protocol address phase corresponding with Target Wireless focus Matching, then illustrate that hotspot to be connected is same hotspot with Target Wireless focus, can now use Target Wireless heat The corresponding login password of point is attempted being set up with hotspot to be connected and is connected.
Optionally, when the first private internet protocol address the second private internet agreement corresponding with Target Wireless focus When address mismatches, it is also possible to which the corresponding login password of Target Wireless focus is attempted being set up with hotspot to be connected and is connected, only It is success rate not high, when connection failure, reresents user input login password.
In the latter case, it is determined that the method for the source attribute information of each hotspot for prestoring includes:
When each hotspot for prestoring includes that the title of at least two hotspot is identical, and, described at least two When the individual corresponding login password of hotspot is identical, judge that the corresponding router media of at least two hotspot accesses control Whether address processed is identical and whether the corresponding private internet protocol address of at least two hotspot is identical;
When the corresponding router media accessing to control address of at least two hotspot is differed, and described at least two When the individual corresponding private internet protocol address of hotspot is identical, determine that at least two hotspot is private network;
At least two hotspot is defined as one second hotspot;
By the corresponding private internet protocol address of second hotspot, it is defined as coming for second hotspot Source attribute information.
Electronic equipment determines which hotspot belongs to same hotspot, and determines the affiliated net of each hotspot After network type, can be to the corresponding title of each hotspot, the corresponding source attribute information of each hotspot and each that store The corresponding login password of hotspot is updated, and still by taking table 2 as an example, then after being updated to table 2, its storage form can be as Shown in table 3.
Table 3 table 2 is updated after table
It is understood that user can carry electronic equipment movement, user may often go to some places, such as public Department, market, supermarket, family etc..The hotspot name of the hotspot in these places may be identical.But the geographical position in these places Geographical position where when putting and differ, therefore electronic equipment can be connected into hotspot is used as the source of the hotspot Attribute information.
Two hotspot of such as diverse geographic location are generally not same hotspot, the hotspot of such as family and The hotspot of company is not same hotspot.
Therefore, judge the first source attribute information with the pre-recorded Target Wireless focus corresponding second Source attribute information whether match including:
Obtain the first geographical position that the electronic equipment is currently located;
Judge that whether first geographical position the second geographical position corresponding with the Target Wireless focus matches.
GPS (Global Positioning System, global positioning system) module, profit can be included in electronic equipment Geographical position residing when electronic equipment is connected with hotspot is obtained with GPS module.
It is understood that each hotspot all corresponds to a radio communication coverage area, i.e., in the wireless communication coverage In the range of electronic equipment can be connected with the hotspot.Therefore, the geographical position that the embodiment of the present invention is referred to can be with It is a geographic range, the size of geographic range can be set according to the communication coverage of each hotspot in actual conditions Put.The communication coverage of hotspot is big, then geographic range is big, and the communication coverage of hotspot is small, then geographic range It is small.
The determination method of the communication coverage of hotspot can include:According to electronic equipment in moving process, nothing The signal intensity of line focus and the situation of change of Moving Unit determine.
Most perfect condition is that the corresponding geographical position of each hotspot includes:The communication coverage institute of the hotspot Comprising geographical position.
When the first geographical position the second geographical position corresponding with Target Wireless focus mismatches, then illustrate to be connected wireless Focus and Target Wireless focus are not same hotspot, can now point out user input login password.When the first geographical position Put the second geographical position corresponding with Target Wireless focus to match, then illustrate that hotspot to be connected is with Target Wireless focus Same hotspot, can now attempt setting up company with hotspot to be connected using the corresponding login password of Target Wireless focus Connect.
Optionally, when the first geographical position the second geographical position corresponding with Target Wireless focus mismatches, it is also possible to The corresponding login password of Target Wireless focus is attempted being set up with hotspot to be connected and is connected, and simply success rate is not high, works as connection During failure, user input login password is reresented.
As shown in Fig. 2 being the structure chart of a kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment includes:
Memory 21, it is for storage program and corresponding to each hotspot that the electronic equipment is successfully established connection Title, the corresponding source attribute information of each hotspot and the corresponding login password of each hotspot;
Memory 21 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile Memory), for example, at least one magnetic disk storage.
Processor 22, for performing described program, described program specifically for:
Obtain first title and the first source attribute information of hotspot to be connected;
When first title and the first source attribute information, the second place with pre-recorded Target Wireless focus When the second source attribute information of title and the Target Wireless focus matches respectively, according to Target Wireless focus correspondence Target login password attempt setting up with the hotspot to be connected and be connected.
Processor 22 is probably a central processor CPU, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement one or more integrated electricity of the embodiment of the present invention Road.
Electronic equipment can also include communication bus 23, and wherein processor 22, memory 21 is completed by communication bus 23 Mutual communication.
Optionally, processor can be also used for:
When the pre-recorded corresponding title of each hotspot and first title are mismatched, or, with described first The corresponding second source attribute information of the Target Wireless focus and described first belonging to the second title that title matches When source attribute information is mismatched, user input login password is pointed out.
Optionally, processor is judging the first source attribute information with the pre-recorded Target Wireless focus pair When whether the second source attribute information answered matches, specifically for:
When the Target Wireless focus is global network, the first router media of the hotspot to be connected are obtained Accessing to control address;
By the first router media access control address, it is defined as the first source attribute information;
Judge the second router media of the first router media access control address and the Target Wireless focus Whether accessing to control address matches, and the second source attribute information includes the second router media access control ground Location.
Optionally, processor can be also used for:
When each hotspot for prestoring includes that the title of at least two hotspot is identical, and, described at least two When the individual corresponding login password of hotspot is identical, judge that the corresponding router media of at least two hotspot accesses control Whether address processed is identical and whether the corresponding dynamic internet protocol address of at least two hotspot is identical;
When the corresponding router media accessing to control address of at least two hotspot is identical, and described at least two When the corresponding dynamic internet protocol address of hotspot differs, determine that at least two hotspot is publicly-owned net Network;
At least two hotspot is defined as one first hotspot;
By the corresponding router media accessing to control address of first hotspot, it is defined as first hotspot Source attribute information.
Optionally, processor is judging the first source attribute information with the pre-recorded Target Wireless focus pair When whether the second source attribute information answered matches, specifically for:
When the Target Wireless focus is private network, the first private internet of the hotspot to be connected is obtained Protocol address;
By the first private internet protocol address, it is defined as the first source attribute letter of the hotspot to be connected Breath;
Judge the second private internet agreement of the first private internet protocol address and the Target Wireless focus Whether address matches, and the second source attribute information includes the second private internet protocol address.
Optionally, processor can be also used for:
When each hotspot for prestoring includes that the title of at least two hotspot is identical, and, described at least two When the individual corresponding login password of hotspot is identical, judge that the corresponding router media of at least two hotspot accesses control Whether address processed is identical and whether the corresponding private internet protocol address of at least two hotspot is identical;
When the corresponding router media accessing to control address of at least two hotspot is differed, and described at least two When the individual corresponding private internet protocol address of hotspot is identical, determine that at least two hotspot is private network;
At least two hotspot is defined as one second hotspot;
By the corresponding private internet protocol address of second hotspot, it is defined as coming for second hotspot Source attribute information.
Optionally, the geographical position where when source attribute information is including electronic equipment connection respective wireless focus, Processor is judging the first source attribute information second source category corresponding with the pre-recorded Target Wireless focus When whether property information matches, specifically for:
Obtain the first geographical position that the electronic equipment is currently located;
Judge that whether first geographical position the second geographical position corresponding with the Target Wireless focus matches.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The scope most wide for causing.

Claims (10)

1. a kind of method for distinguishing hotspot of the same name, it is characterised in that be applied to electronic equipment, the electronic equipment record has Title corresponding with each hotspot that it is successfully established connection, the corresponding source attribute information of each hotspot and each wireless The corresponding login password of focus, the method for the differentiation hotspot of the same name includes:
Obtain first title and the first source attribute information of hotspot to be connected;
When first title and the first source attribute information, with the second title of pre-recorded Target Wireless focus with And the second source attribute information of the Target Wireless focus when matching respectively, according to the corresponding mesh of the Target Wireless focus Mark login password is attempted setting up and is connected with the hotspot to be connected.
2. the method for distinguishing hotspot of the same name according to claim 1, it is characterised in that also include:
When the pre-recorded corresponding title of each hotspot and first title are mismatched, or, with first title The corresponding second source attribute information of the Target Wireless focus and first source category belonging to the second title for matching Property information mismatch when, point out user input login password.
3. the method for distinguishing hotspot of the same name according to claim 1, it is characterised in that judge first source attribute Information second source attribute information corresponding with the pre-recorded Target Wireless focus whether match including:
When the Target Wireless focus is global network, the first router media interviews of the hotspot to be connected are obtained Control address;
By the first router media access control address, it is defined as the first source attribute information;
Judge the second router media interviews of the first router media access control address and the Target Wireless focus Whether control address matches, and the second source attribute information includes the second router media access control address.
4. the method for distinguishing hotspot of the same name according to claim 3, it is characterised in that it is determined that what is prestored is each wireless The method of the source attribute information of focus includes:
When each hotspot for prestoring includes that the title of at least two hotspot is identical, and, at least two nothing When the corresponding login password of line focus is identical, the corresponding router media access control ground of at least two hotspot is judged Whether location is identical and whether the corresponding dynamic internet protocol address of at least two hotspot is identical;
It is when the corresponding router media accessing to control address of at least two hotspot is identical and described at least two wireless When the corresponding dynamic internet protocol address of focus differs, determine that at least two hotspot is global network;
At least two hotspot is defined as one first hotspot;
By the corresponding router media accessing to control address of first hotspot, it is defined as coming for first hotspot Source attribute information.
5. the method for distinguishing hotspot of the same name according to claim 1, it is characterised in that judge first source attribute Information second source attribute information corresponding with the pre-recorded Target Wireless focus whether match including:
When the Target Wireless focus is private network, the first private internet agreement of the hotspot to be connected is obtained Address;
By the first private internet protocol address, it is defined as the first source attribute information of the hotspot to be connected;
Judge the second private internet protocol address of the first private internet protocol address and the Target Wireless focus Whether match, the second source attribute information includes the second private internet protocol address.
6. the method for distinguishing hotspot of the same name according to claim 5, it is characterised in that it is determined that what is prestored is each wireless The method of the source attribute information of focus includes:
When each hotspot for prestoring includes that the title of at least two hotspot is identical, and, at least two nothing When the corresponding login password of line focus is identical, the corresponding router media access control ground of at least two hotspot is judged Whether location is identical and whether the corresponding private internet protocol address of at least two hotspot is identical;
When the corresponding router media accessing to control address of at least two hotspot is differed, and at least two nothing When the corresponding private internet protocol address of line focus is identical, determine that at least two hotspot is private network;
At least two hotspot is defined as one second hotspot;
By the corresponding private internet protocol address of second hotspot, it is defined as the source category of second hotspot Property information.
7. the method for distinguishing hotspot of the same name according to claim 1, it is characterised in that source attribute information includes described Electronic equipment connection respective wireless focus when where geographical position, judge the first source attribute information with it is pre-recorded The corresponding second source attribute information of the Target Wireless focus whether match including:
Obtain the first geographical position that the electronic equipment is currently located;
Judge that whether first geographical position the second geographical position corresponding with the Target Wireless focus matches.
8. a kind of electronic equipment, it is characterised in that including:
Memory, for storage program, and title corresponding with each hotspot that the electronic equipment is successfully established connection, Each corresponding source attribute information of hotspot and the corresponding login password of each hotspot;
Processor, for performing described program, described program specifically for:
Obtain first title and the first source attribute information of hotspot to be connected;
When first title and the first source attribute information, with the second title of pre-recorded Target Wireless focus with And the second source attribute information of the Target Wireless focus when matching respectively, according to the corresponding mesh of the Target Wireless focus Mark login password is attempted setting up and is connected with the hotspot to be connected.
9. electronic equipment according to claim 8, it is characterised in that the processor is judging the first source attribute letter When whether breath second source attribute information corresponding with the pre-recorded Target Wireless focus matches, specifically for:
When the Target Wireless focus is global network, the first router media interviews of the hotspot to be connected are obtained Control address;
By the first router media access control address, it is defined as the first source attribute information;
Judge the second router media interviews of the first router media access control address and the Target Wireless focus Whether control address matches, and the second source attribute information includes the second router media access control address.
10. electronic equipment according to claim 8, it is characterised in that the processor is judging first source attribute When whether information second source attribute information corresponding with the pre-recorded Target Wireless focus matches, specifically for:
When the Target Wireless focus is private network, the first private internet agreement of the hotspot to be connected is obtained Address;
By the first private internet protocol address, it is defined as the first source attribute information of the hotspot to be connected;
Judge the second private internet protocol address of the first private internet protocol address and the Target Wireless focus Whether match, the second source attribute information includes the second private internet protocol address.
CN201710183750.0A 2017-03-24 2017-03-24 Method for distinguishing wireless hotspots with same name and electronic equipment Active CN106714177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710183750.0A CN106714177B (en) 2017-03-24 2017-03-24 Method for distinguishing wireless hotspots with same name and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710183750.0A CN106714177B (en) 2017-03-24 2017-03-24 Method for distinguishing wireless hotspots with same name and electronic equipment

Publications (2)

Publication Number Publication Date
CN106714177A true CN106714177A (en) 2017-05-24
CN106714177B CN106714177B (en) 2020-03-24

Family

ID=58886926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710183750.0A Active CN106714177B (en) 2017-03-24 2017-03-24 Method for distinguishing wireless hotspots with same name and electronic equipment

Country Status (1)

Country Link
CN (1) CN106714177B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501482A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Network access method, network access device and terminal
CN103781071A (en) * 2012-10-25 2014-05-07 华为技术有限公司 Access point visiting method and related equipment
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device
CN104837215A (en) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 Wireless access point connecting method and device
CN104902543A (en) * 2015-05-14 2015-09-09 北京奇虎科技有限公司 WiFi connection method, device and system
CN105101338A (en) * 2015-07-23 2015-11-25 中国联合网络通信集团有限公司 Access network method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781071A (en) * 2012-10-25 2014-05-07 华为技术有限公司 Access point visiting method and related equipment
CN103501482A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Network access method, network access device and terminal
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device
CN104837215A (en) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 Wireless access point connecting method and device
CN104902543A (en) * 2015-05-14 2015-09-09 北京奇虎科技有限公司 WiFi connection method, device and system
CN105101338A (en) * 2015-07-23 2015-11-25 中国联合网络通信集团有限公司 Access network method and apparatus

Also Published As

Publication number Publication date
CN106714177B (en) 2020-03-24

Similar Documents

Publication Publication Date Title
DE60206246T2 (en) DISTRIBUTED NETWORK COMMUNICATION SYSTEM ALLOWING A NUMBER OF PROVIDERS OF CORDLESS COMMUNICATION SERVICES TO SHARE A COMMON NETWORK INFRASTRUCTURE
CN106162804B (en) For the method and apparatus for the access information for providing wireless access focus
CN106851632B (en) A kind of method and device of smart machine access WLAN
US7324489B1 (en) Managing network service access
EP3207670B1 (en) Method and apparatus for remote access
US7861283B2 (en) User position utilization system
US7391748B2 (en) Configuration of enterprise gateways
US20180014194A1 (en) Internet access authentication method and client, and computer storage medium
CN108009825A (en) A kind of identity management system and method based on block chain technology
CN103229488B (en) IPv6 address source tracing method, device and system
CN108881308A (en) A kind of user terminal and its authentication method, system, medium
CN108337677A (en) Network authentication method and device
CN103250442B (en) The method and apparatus for obtaining service
CN104159225A (en) Wireless network based real-name registration system management method and system
JP2004104800A (en) Method of allocating ip address to terminal in code division multiple access system
CN103780711A (en) Address assignment method and address assignment system for intelligent access type decision, and AAA system
CN103095654A (en) Virtual local area network (VLAN) configuration method, wireless access point and network control point
CN108834196A (en) A kind of sending, receiving method and equipment of the access information of wireless access point
CN103297968A (en) Wireless terminal identifying method, wireless terminal identifying device and wireless terminal identifying system
CN104468552B (en) A kind of connection control method and device
CN107528712A (en) The determination of access rights, the access method of the page and device
CN106375442A (en) Cross-platform device information management method and apparatus
CN107148020A (en) WiFi shared systems and its method, Wireless Communication Equipment and router
CN1921496B (en) Method for DHCP client terminal to identifying DHCP server
CN105813078A (en) Network authentication method, device and system and AP (ACCESS POINT) with authentication function

Legal Events

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