A kind of WLAN connection method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of WLAN connection method and mobile terminal.
Background technology
The mobile Internet epoch are striden into, it has been a general need that internet is accessed at any time.Wireless network (wifi) is made
It is a kind of mode of convenient access internet, it is very popular in social life.Not only family, commercial office place are set
Wifi, in the wifi that the public place such as park, subway, market Ye You governments or business, commonweal organizations are provided, enables people to
Internet is easily accessed in the regional of signal covering.
And with expanding economy, same place occurs multiple wifi signals, selection face of the people to wifi
Wider, corresponding selection requirement is also improved.When there is multiple optional wifi in public, because out of the picture,
Or because of reasons such as wifi speed, authorities.Often by " it is relatively good that selection connects that network ", this problem is baffled.Common scene
Have:Which network is availableThe speed of which network is most fastWhich network is safeThe password of network is
What
The citing scene more than, before no judging basis, typically inquires friend or asks other people to recommend to come
Carry out quick preferred.This process generally by friend give an oral account an abstract SSID (Service Set Identifier,
Service set name).After user gets this SSID, then found from wifi lists, can be just attached.In transmission SSID
The problem for propagating mistake occurs during information, while finding target wifi, cumbersome, user's body in substantial amounts of wifi lists
Test poor.
The content of the invention
The embodiment of the present invention provides a kind of WLAN connection method and mobile terminal, to solve to move in the prior art
Dynamic terminal is when wireless network connection is carried out, it is impossible to determines objective network and is found when the objective network that other people recommend is used for reference
Objective network is difficult, so as to influence the problem of Consumer's Experience.
In a first aspect, the embodiment of the present invention provides a kind of WLAN connection method, the method includes:
Obtain the first terminal number information described at least one objective network;
First terminal number information is matched with the number information of the address list of local terminal, the number that the match is successful is true
It is destination number to be set for, and obtains the number of destination number;
According to the number of destination number, the corresponding objective network of linking objective number.
Second aspect, the embodiment of the present invention also provides a kind of mobile terminal, including:
Acquisition module, for obtaining the first terminal number information described at least one objective network;
Processing module, for first terminal number information to be matched with the number information of the address list of local terminal, general
Destination number is determined as with successful number, and obtains the number of destination number;
Link block, for the number according to destination number, the corresponding objective network of linking objective number.
The beneficial effect of embodiment of the present invention technical scheme at least includes:
Technical solution of the present invention, by obtaining the first terminal number information described at least one objective network, will obtain
The first terminal number information for taking is matched with the number information in local terminal address list, determines that the match is successful in local terminal address list
Number be destination number, and determine that corresponding objective network carries out network connection according to the number of destination number, it is possible to achieve
The empirically determined objective network of network connection according to contact person in address list, it is simple direct, reduce the use obstacle of user, it is to avoid
Extra communication, with stronger practicality and applicability, improves the experience of user, while solving prior art
Middle mobile terminal is when wireless network connection is carried out, it is impossible to determine objective network and when the objective network that other people recommend is used for reference
Objective network difficulty is found, the problem of Consumer's Experience is influenceed.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to needed for embodiment of the present invention description
The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention,
For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 represents the WLAN connection method schematic diagram that the embodiment of the present invention one is provided;
Fig. 2 represents the WLAN connection method schematic diagram that the embodiment of the present invention two is provided;
Fig. 3 represents that mobile terminal WLAN provided in an embodiment of the present invention sets interface display schematic diagram one;
Fig. 4 represents that mobile terminal WLAN provided in an embodiment of the present invention sets interface display schematic diagram two;
Fig. 5 represents the WLAN connection method schematic diagram that the embodiment of the present invention three is provided;
Fig. 6 represents the mobile terminal schematic diagram that the embodiment of the present invention four is provided;
Fig. 7 represents the mobile terminal block diagram that the embodiment of the present invention five is provided;
Fig. 8 represents the mobile terminal block diagram that the embodiment of the present invention six is provided.
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 a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Embodiment one
The embodiment of the present invention one provides a kind of WLAN connection method, as shown in figure 1, the method includes:
First terminal number information described in step 101, at least one objective network of acquisition.
Mobile terminal is before WLAN connection is carried out, it is thus necessary to determine that at least one objective network, for target
For network, each objective network corresponds at least one terminal device for being connected to the objective network, and each terminal sets
It is standby to correspond at least one first terminal number information.Wherein when terminal device include two client identification cards when, then each
Terminal device can correspond to two first terminal number informations.
The quantity of the objective network of acquisition for mobile terminal is at least one, for each objective network, it is determined that being connected to
The terminal device of the objective network, determines the corresponding number information of each terminal device to obtain first terminal number information.This
The quantity of first terminal number information acquired in inventive embodiments can for one, two or more.
Step 102, first terminal number information is matched with the number information of the address list of local terminal, will the match is successful
Number be determined as destination number, and obtain the number of destination number.
After first terminal number information is obtained, the connection in the first terminal number information and local terminal address list that will obtain
It is that people's number information is matched, if first terminal number information is identical with the contact number information in local terminal address list,
It is determined that both match successfully.Using the number that the match is successful as destination number, it is determined that after destination number, determining target number
The number of code.
Specially:The corresponding first terminal number information of objective network is entered with the number information in mobile terminal addressbook
Row is compared, and is believed when there is number information first terminal number corresponding with objective network in the address list of mobile terminal
Simultaneously, then the number that the destination number of objective network is connected in the address list that can determine current mobile terminal is one to manner of breathing
It is individual.
It should be noted that the quantity of objective network can for one, two or more, each objective network is corresponding
The quantity of first terminal number information can for zero, one, two or more, by current mobile terminal address list
When number information first terminal number information corresponding with objective network matches, being will be every in current mobile terminal address list
Each first terminal number information corresponding with each objective network is matched one number information respectively.It is logical for mobile terminal
It is according to preset order, each number information is whole with least one first respectively for each number information in news record
End number information is matched;Here preset order can be according to name of contact person letter put in order, or
Name of contact person stroke order from less to more, can also be user-defined and puts in order.
For example:Number information in current mobile terminal address list is 30, it is determined that objective network be 3, respectively
The corresponding first terminal number information of objective network A, objective network B and objective network C, wherein objective network A is 3, mesh
The corresponding first terminal number information of mark network B is 2, and the corresponding first terminal number informations of objective network C are 4.Then exist
In comparison process, by each number information in current mobile terminal address list respectively it is corresponding with each objective network each
One terminal number information is matched, it is determined that the number information in current mobile terminal address list is corresponding with an objective network
A first terminal number information it is identical when, then can determine that the number information in mobile terminal addressbook is destination number.
Matched according to the method described above, the quantity of destination number is can determine that after the completion of matching.It is determined that the quantity of destination number
Afterwards, step 103 is performed.
Step 103, the number according to destination number, the corresponding objective network of linking objective number.
After it is determined that being connected to the quantity of the destination number of at least one objective network, according to being connected to each target network
The quantity of the destination number of network, determines that the most objective network of corresponding destination number quantity is current movement in objective network
The terminal network to be connected, and carry out network connection.
Wherein, when the quantity of objective network is one, and the corresponding at least one first terminal number of the objective network
When number information in information and mobile terminal addressbook matches, determine the objective network for mobile terminal to be connected net
Network.When the quantity of objective network is for multiple, the quantity of the corresponding destination number of each objective network is determined, according to corresponding mesh
The quantity of label code order from high to low, is ranked up to objective network, determines that the quantity of corresponding destination number is most
Objective network is the mobile terminal network to be connected.
The embodiment of the present invention one, by obtaining the first terminal number information described at least one objective network, will obtain
The first terminal number information for taking is matched with the number information in local terminal address list, determines that the match is successful in local terminal address list
Number be destination number, and determine that corresponding objective network carries out network connection according to the number of destination number, it is possible to achieve
The empirically determined objective network of network connection according to contact person in address list, it is simple direct, reduce the use obstacle of user, it is to avoid
Extra communication, with stronger practicality and applicability, improves the experience of user, while solving prior art
Middle mobile terminal is when wireless network connection is carried out, it is impossible to determine objective network and when the objective network that other people recommend is used for reference
Link up the problem of limited influence Consumer's Experience.
Embodiment two
The embodiment of the present invention two provides a kind of WLAN connection method, as shown in Fig. 2 the method includes:
Step 201, obtain from server first terminal number information described at least one objective network.
Current mobile terminal can be obtained in the corresponding first terminal number information of acquisition objective network in server side
The corresponding first terminal number information of objective network.It is connected firstly the need of being set up with server, after a connection is established, in service
In multiple first terminal number informations of device storage, acquisition is connected to the first terminal number information of at least one objective network.
Wherein when the connection with server is set up, specially:The many of multiple routing devices uploads are received in server
Individual network object information, and local terminal is when being in WLAN and setting interface, sets up and the connection of server;In server side
The network object information that multiple routing devices are uploaded is obtained, wherein network object information includes:Network name information, physical address
The first terminal number information of information and connection network;According to network name information and physical address information, search local terminal is worked as
Preceding present position whether there is corresponding objective network, if in the presence of the corresponding first terminal number information of acquisition objective network.
Server storage has a network object information that multiple routing devices are uploaded, the corresponding network objectives of each routing device
Information includes:Network name information, physical address information and connect the first terminal number information of the network.Deposited in server
The network name information of storage, physical address information and connect the network first terminal number information corresponding relation such as table 1
It is shown.It is when routing device often increases a terminal for connection, i.e., corresponding with network name information, physical address information in table 1
, it is necessary to the routing device uploads (renewal) primary information to server when first terminal number information increases.Specific renewal side
Formula is:In the server, often increase or reduce by a first terminal number information, then performed by server and once update behaviour
Make, it is ensured that the correspondence pass of network name information, physical address information and the first terminal number information stored in server
System is in last state.
Table 1
After the connection that mobile terminal is set up with server, can on the server download each routing device and be uploaded to
The network object information of server, after the corresponding network object information of each routing device is obtained, believes according to network objectives
The network name information and physical address information that breath includes are scanned for, and judge to be presently in whether position deposits in mobile terminal
In grid of reference corresponding with any network object information.If the location of current mobile terminal is present and any network mesh
The corresponding grid of reference of mark information, it is determined that the corresponding grid of reference of the network object information is objective network, then by the net
The first terminal number information that network target information is included is defined as the corresponding first terminal number information of objective network.
Wherein, when being scanned for network name information and physical address information, included with each network object information
Network name information and physical address information scan for, it is determined that geographical position residing for mobile terminal is present and any net
After the corresponding grid of reference of network target information, you can determine the corresponding first terminal number information of objective network.
Step 202, first terminal number information is matched with the number information of the address list of local terminal, will the match is successful
Number be determined as destination number, and obtain the number of destination number.
After first terminal number information is obtained, the connection in the first terminal number information and local terminal address list that will obtain
It is that people's number information is matched, if first terminal number information is identical with the contact number information in local terminal address list,
It is determined that both match successfully.Using the number that the match is successful as destination number, it is determined that after destination number, determining target number
The number of code.
Specially:Each number information in current mobile terminal address list is corresponding with each objective network every respectively
One first terminal number information is matched.For each number information in mobile terminal addressbook, according to default
Order, each number information is matched with each first terminal number information respectively;Here preset order can be
According to putting in order, or name of contact person stroke order from less to more for name of contact person letter, use is can also be
Family is customized to be put in order, and other are can also be certainly sequentially, and this is no longer going to repeat them.
Step 203, the objective network for determining the connection of each destination number;In the WLAN of local terminal, circle is set
Face, shows the connection quantity of the corresponding destination number of each objective network.
It is determined that after the number of destination number and destination number, the target network of connection is determined for each destination number
Network, it is determined that after the corresponding objective network of each destination number, interface, display are set in the WLAN of mobile terminal
Each objective network, and show the number of the destination number that each objective network is connected.
Wherein, it is determined that being connected, it is necessary to obtain each objective network after the corresponding objective network of each destination number
Destination number number.Determine the corresponding objective network of each destination number and obtain the mesh that each objective network is connected
The process of the number of label code is:The destination number that to determine in mobile terminal addressbook and each objective network are carried out one by one
Match somebody with somebody, after in a destination number and an objective network, the match is successful, you can determine the corresponding objective network of the destination number.For every
One destination number performs matching process, determines the corresponding objective network of each destination number.Then for each objective network
Speech, obtains the quantity of destination number corresponding with objective network.And the WLAN in mobile terminal sets interface display
The quantity of destination number corresponding with each objective network.For example, as shown in figure 3, an objective network is without corresponding destination number,
Then need to show the signal language of " connecting this network without friend " in the corresponding region of the objective network, user is according to this signal language
It is determined that not being attached with this network.
Wherein, the quantity of goal network can for one, two or more, the corresponding mesh of each objective network
The quantity of label code can for zero, one, two or more.
Step 204, reception user show to the touch control operation at the connection quantity interface of the corresponding destination number of objective network
The corresponding associated person information of destination number.
In the WLAN of mobile terminal, the number of interface display destination number corresponding with each objective network is set
After amount, user is obtained to the touch control operation at the connection quantity interface of destination number, shown according to touch control operation and each mesh
The corresponding associated person information of label code.For example, " 2 friends connect this network " is shown in the corresponding region of an objective network,
One prompting frame is shown to the touch control operation at connection quantity interface according to user, shows corresponding with destination number in prompting frame
It is people's information.As shown in figure 4, when the quantity of the corresponding destination number of an objective network is two, receiving touching for user
After control operation, the prompting frame of interface display one is set in WLAN, two destination number correspondences are shown in prompting frame
Associated person information Zhang San and Li Si.The connection experience that other people can be used for reference in order to mobile terminal user carries out network connection.Its
In, touch control operation can for pressing or click on, touch control operation meet it is pre-conditioned on the premise of, can be grasped in response to touch-control
Make, show corresponding associated person information.
Step 205, determine that destination number in local terminal is connected to the quantity of each objective network, according to quantity from more to less suitable
Ordered pair objective network is ranked up.
After the connection quantity for showing the corresponding destination number of each objective network, you can determine that destination number is connected to
The quantity of each objective network, according to the corresponding destination number connection quantity of objective network, according to order from more to less to target
Network is ranked up.
For example, the quantity of the objective network of destination number connection is 3 in current mobile terminal, respectively objective network a,
The quantity of the corresponding destination number of objective network b and objective network c, objective network a is 6, the corresponding targets of objective network b
The quantity of number is 3, and the quantity of the corresponding destination numbers of objective network c is 4, then to objective network a, objective network b with
And be followed successively by after objective network c sequences:Objective network a, objective network c, objective network b.
Step 206, the objective network of determination sequence first are the local terminal first network to be connected, and enter with first network
Row network connection.
After being ranked up to objective network, determine that the most objective network of corresponding destination number quantity is the first net
Network, it is determined that the connection with first network can be carried out after first network.Wherein determine that corresponding destination number quantity is most
Objective network be first network, it is possible to achieve the rational experience for using for reference friend, fast and accurately determine that effective network enters
Row connection.
If step 207, local terminal and first network are not connected with when successfully, according to the quantity arrangement from more to less of destination number
Sequentially, objective network is sequentially connected, until successful connection.
When current mobile terminal is connected but is not connected with successfully with first network, can be suitable according to the arrangement of objective network
Sequence, the objective network with sequence second carries out network connection, is not connected with the objective network of sequence second in current mobile terminal
Success when, can putting in order according to objective network, with sequence the 3rd objective network carry out network connection, the like,
Untill the success of mobile terminal linking objective network.
The embodiment of the present invention two, by obtaining the first terminal number information described at least one objective network, will obtain
The first terminal number information for taking is matched with the number information in local terminal address list, determines that the match is successful in local terminal address list
Number be destination number, and determine that corresponding objective network carries out network connection according to the number of destination number, it is possible to achieve
The empirically determined objective network of network connection according to contact person in address list, it is simple direct, reduce the use obstacle of user, it is to avoid
Extra communication, with stronger practicality and applicability, improves the experience of user, while solving prior art
Middle mobile terminal is when wireless network connection is carried out, it is impossible to determine objective network and when the objective network that other people recommend is used for reference
Link up the problem of limited influence Consumer's Experience.
Embodiment three
The embodiment of the present invention three provides a kind of WLAN connection method, as shown in figure 5, the method includes:
The additional information comprising first terminal number information that step 501, reception routing device pass through transmission, attached
Plus in information, obtain the first terminal number information described at least one objective network.
Current mobile terminal can receive the additional information of routing device transmission when first terminal number information is obtained,
The first terminal number information for having and being connected to routing device is comprised at least wherein in additional information.Receiving the same of additional information
When, it is necessary to receiving network protocol information, wherein network protocol message include:Network name information, physical address information, password,
The necessary information that the wireless local area network protocols such as cipher mode specify.
Specially:Routing device is received by after network protocol message and additional information to the preset times of transmission,
Storage network protocol information and additional information, additional information include:The first terminal number information of connection route equipment, first are eventually
The propagation times information of end number information and network protocol message;Obtain the first terminal number information stored in additional information.
Current mobile terminal is directly set up with routing device and is connected, and after being connected with routing device foundation, can receive
The additional information comprising first terminal number information and network protocol message that routing device passes through transmission, wherein additional
Information includes:Connect the biography of the first terminal number information, first terminal number information and network protocol message of the routing device
Broadcast number information.Because the byte quantity of dissemination channel is limited, it is necessary to by first terminal number information broadcast delivery several times, every time
Include corresponding network protocol message during transmission.
, it is necessary to detect whether network protocol message part is to have connected wireless local wherein in transport network protocols information
Network, if having connected WLAN, it is necessary to judge whether network protocol message changes, if unchanged, the company of holding
Connect constant.And then when the additional information of change is received, WLAN can be kept normally to connect constant.Meanwhile, in order to
User is not influenceed normally to consult and use, additional information does not show on a user device.
Wherein, routing device can read be connected to routing device first terminal number information then stored, so
Afterwards the additional information comprising the first terminal number information for connecting the routing device, and corresponding net are transmitted using channel
Network protocol information, and also include in additional information:The propagation times information of first terminal number information and network protocol message.
After by the dissemination channel of certain number of times, the network protocol message and additional letter of routing device transmission are obtained
Breath, and first terminal number information is extracted in additional information.
For example:One channel can propagate 100 byte informations.Normal network protocol message takes 50 bytes, deposits
The first terminal number information of storage has 100 bytes, in each communication process, can be with the 50 of communication network protocol information
50 bytes of byte and first terminal number information, it is therefore desirable to which propagating twice can be by first terminal number information and net
Network protocol information is stored into current mobile terminal.
It should be noted that the network name information that is stored with routing device, physical address information, corresponding first terminal
The relation of number information and corresponding associated person information, as shown in table 2.In table 2, a network name information corresponds to one
Individual physical address information, network name information and the corresponding objective network of physical address information correspond to two first terminal numbers
Information, each first terminal number information corresponds to an associated person information.The state wherein enumerated in table 2 is only one kind
Performance, the corresponding first terminal number information of objective network can be other quantity.Can also be accordingly multiple first
Terminal number information corresponds to same contact person.Wherein, when routing device often increases a terminal for connection, i.e., with net in table 1
, it is necessary to routing device renewal is once believed when the corresponding first terminal number information of network name information, physical address information increases
Breath.Specifically update mode is:In routing device, often increase or reduce by a first terminal number information, then by routeing
Equipment once updates operation to perform, it is ensured that network name information, physical address information, first stored in routing device are eventually
The corresponding relation of end number information and respective contacts is in last state.
Table 2
Step 502, first terminal number information is matched with the number information of the address list of local terminal, will the match is successful
Number be determined as destination number, and obtain the number of destination number.
After first terminal number information is obtained, the connection in the first terminal number information and local terminal address list that will obtain
It is that people's number information is matched, if first terminal number information is identical with the contact number information in local terminal address list,
It is determined that both match successfully.Using the number that the match is successful as destination number, it is determined that after destination number, determining target number
The number of code.Wherein the quantity of objective network can for one, two or more, the corresponding target number of each objective network
Code can for zero, one, two or more.
Step 503, the objective network for determining the connection of each destination number;In the WLAN of local terminal, circle is set
Face, shows the connection quantity of the corresponding destination number of each objective network.
It is determined that after the number of destination number and destination number, the target network of connection is determined for each destination number
Network, it is determined that after the corresponding objective network of each destination number, interface, display are set in the WLAN of mobile terminal
Each objective network, and show the number of the destination number that each objective network is connected.
Wherein, it is determined that being connected, it is necessary to obtain each objective network after the corresponding objective network of each destination number
Destination number number.Determine the corresponding objective network of each destination number and obtain the mesh that each objective network is connected
The process of the number of label code is:The destination number that to determine in mobile terminal addressbook and each objective network are carried out one by one
Match somebody with somebody, after in a destination number and an objective network, the match is successful, you can determine the corresponding objective network of the destination number.For every
One destination number performs matching process, determines the corresponding objective network of each destination number.Then for each objective network
Speech, obtains the quantity of destination number corresponding with objective network.And the WLAN in mobile terminal sets interface display
The quantity of destination number corresponding with each objective network.For example, as shown in figure 3, an objective network is without corresponding destination number,
Then need to show the signal language of " connecting this network without friend " in the corresponding region of the objective network, user is according to this signal language
It is determined that not being attached with this network.
Wherein, the quantity of goal network can for one, two or more, the corresponding mesh of each objective network
The quantity of label code can for one, two or more.
Step 504, reception user show to the touch control operation at the connection quantity interface of the corresponding destination number of objective network
The corresponding associated person information of destination number.
In the WLAN of mobile terminal, the number of interface display destination number corresponding with each objective network is set
After amount, user is obtained to the touch control operation at the connection quantity interface of destination number, shown according to touch control operation and each mesh
The corresponding associated person information of label code.For example, " 2 friends connect this network " is shown in the corresponding region of an objective network,
One prompting frame is shown to the touch control operation at connection quantity interface according to user, shows corresponding with destination number in prompting frame
It is people's information.As shown in figure 4, when the quantity of the corresponding destination number of an objective network is two, receiving touching for user
After control operation, the prompting frame of interface display one is set in WLAN, two destination number correspondences are shown in prompting frame
Associated person information Zhang San and Li Si.The connection experience that other people can be used for reference in order to mobile terminal user carries out network connection.Its
In, touch control operation can for pressing or click on, touch control operation meet it is pre-conditioned on the premise of, can be grasped in response to touch-control
Make, show corresponding associated person information.
Step 505, determine that destination number in local terminal is connected to the quantity of each objective network, according to quantity from more to less suitable
Ordered pair objective network is ranked up.
After the connection quantity for showing the corresponding destination number of each objective network, you can determine that destination number is connected to
The quantity of each objective network, according to the corresponding destination number connection quantity of objective network, according to order from more to less to target
Network is ranked up.
For example, the quantity of the objective network of destination number connection is 3 in current mobile terminal, respectively objective network a,
The quantity of the corresponding destination number of objective network b and objective network c, objective network a is 6, the corresponding targets of objective network b
The quantity of number is 3, and the quantity of the corresponding destination numbers of objective network c is 4, then to objective network a, objective network b with
And be followed successively by after objective network c sequences:Objective network a, objective network c, objective network b.
Step 506, the objective network of determination sequence first are the local terminal first network to be connected, and enter with first network
Row network connection.
After being ranked up to objective network, determine that the most objective network of corresponding destination number quantity is the first net
Network, it is determined that the connection with first network can be carried out after first network.Wherein determine that corresponding destination number quantity is most
Objective network be first network, it is possible to achieve the rational experience for using for reference friend, fast and accurately determine that effective network enters
Row connection.
If step 507, local terminal and first network are not connected with when successfully, according to the quantity arrangement from more to less of destination number
Sequentially, objective network is sequentially connected, until successful connection.
When current mobile terminal is connected but is not connected with successfully with first network, can be suitable according to the arrangement of objective network
Sequence, the objective network with sequence second carries out network connection, is not connected with the objective network of sequence second in current mobile terminal
Success when, can putting in order according to objective network, with sequence the 3rd objective network carry out network connection, the like,
Untill the success of mobile terminal linking objective network.
The embodiment of the present invention three, by obtaining the first terminal number information described at least one objective network, will obtain
The first terminal number information for taking is matched with the number information in local terminal address list, determines that the match is successful in local terminal address list
Number be destination number, and determine that corresponding objective network carries out network connection according to the number of destination number, can basis
The empirically determined objective network of network connection of contact person in address list, it is simple directly, reduce the use obstacle of user, it is to avoid volume
Outer communication, with stronger practicality and applicability, improves the experience of user, while solve moving in the prior art
Dynamic terminal is when wireless network connection is carried out, it is impossible to determines objective network and is linked up when the objective network that other people recommend is used for reference
The problem of limited influence Consumer's Experience.
Example IV
The embodiment of the present invention four provides a kind of mobile terminal, as shown in fig. 6, including:
Acquisition module 10, for obtaining the first terminal number information described at least one objective network;
Processing module 20, for first terminal number information to be matched with the number information of the address list of local terminal, will
The number that the match is successful is determined as destination number, and obtains the number of destination number;
Link block 30, for the number according to destination number, the corresponding objective network of linking objective number.
Wherein, acquisition module 10 includes:
First acquisition submodule 11, for obtaining the first terminal number described at least one objective network from server
Code information;Or
Second acquisition submodule 12, for receiving routing device by transmission comprising first terminal number information
Additional information, in additional information, obtains the first terminal number information described at least one objective network;
Wherein, in server and routing device, often increase or reduce a first terminal number information, perform once more
New operation.
Wherein, the first acquisition submodule 11 includes:
Unit 111 is set up, for receiving multiple network object informations that multiple routing devices are uploaded, and this in server
When end is in WLAN setting interface, the connection with server is set up;
First acquisition unit 112, for obtaining the network object information that multiple routing devices are uploaded in server side, wherein
Network object information includes:The first terminal number information of network name information, physical address information and connection network;
Processing unit 113, for according to network name information and physical address information, search local terminal is presently in position to be
It is no to there is corresponding objective network, if in the presence of the corresponding first terminal number information of acquisition objective network.
Wherein, the second acquisition submodule 12 includes:
Receiving unit 121, for receiving routing device by the network protocol message of transmission and additional information to pre-
If after number of times, storage network protocol information and additional information, additional information include:The first terminal number letter of connection route equipment
The propagation times information of breath, first terminal number information and network protocol message;
Second acquisition unit 122, for obtaining the first terminal number information stored in additional information.
Wherein, mobile terminal also includes:
Determining module 40, during for the number that destination number is obtained in processing module 20, determines that each destination number connects
The objective network for connecing;
First display module 50, interface is set for the WLAN in local terminal, shows each objective network correspondence
Destination number connection quantity;
Second display module 60, for receiving user's touching to the connection quantity interface of the corresponding destination number of objective network
Control operation, the corresponding associated person information of display target number.
Wherein, link block 30 includes:
Sorting sub-module 31, for determining that destination number in local terminal is connected to the quantity of each objective network, according to quantity by
More to few order is ranked up to objective network;
First connection submodule 32, the objective network for determining sequence first is the local terminal first network to be connected,
And carry out network connection with first network.
Wherein, link block 30 also includes:
Second connection submodule 33, if being not connected with when successfully for local terminal and first network, according to the quantity of destination number
Putting in order from more to less, is sequentially connected objective network, until successful connection.
The embodiment of the present invention four, by obtaining the first terminal number information described at least one objective network, will obtain
The first terminal number information for taking is matched with the number information in local terminal address list, determines that the match is successful in local terminal address list
Number be destination number, and determine that corresponding objective network carries out network connection according to the number of destination number, can basis
The empirically determined objective network of network connection of contact person in address list record, it is simple direct, reduce the use obstacle of user, it is to avoid
Extra communication, with stronger practicality and applicability, improves the experience of user, while solving in the prior art
Mobile terminal is when wireless network connection is carried out, it is impossible to determine objective network and the ditch when the objective network that other people recommend is used for reference
The problem of logical limited influence Consumer's Experience.
Embodiment five
Fig. 7 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 700 shown in Fig. 7 includes:At least
One processor 701, memory 702, at least one network interface 704 and other users interface 703.In mobile terminal 700
Each component is coupled by bus system 705.It is understood that bus system 705 is used to realize the company between these components
Connect letter.Bus system 705 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But
Be for clear explanation for the sake of, various buses are all designated as bus system 705 in the figure 7.
Wherein, user interface 703 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 702 of system and method described herein be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 702 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 7021 and application program 7022.
Wherein, operating system 7021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 7022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 7022.
In embodiments of the present invention, by the program for calling memory 702 to store or instruction, specifically, can be application
The program stored in program 7022 or instruction, processor 701 are used for:Obtain the first terminal described at least one objective network
Number information;First terminal number information is matched with the number information of the address list of local terminal, by the number that the match is successful
Destination number is determined as, and obtains the number of destination number;According to the number of destination number, the corresponding mesh of linking objective number
Mark network.
The method that the embodiments of the present invention are disclosed can apply in processor 701, or be realized by processor 701.
Processor 701 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 701 or software form.Above-mentioned treatment
Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 702, processor 701 reads the information in memory 702, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Optionally, processor 701 is also used when the first terminal number information described at least one objective network is obtained
In:The first terminal number information described at least one objective network is obtained from server;Or reception routing device leads to
The additional information comprising first terminal number information of transmission is crossed, in additional information, at least one objective network is obtained
Described in first terminal number information;Wherein, in server and routing device, often increase or reduce a first terminal number
Code information, performs and once updates operation.
Optionally, when the first terminal number information described at least one objective network is obtained from server, place
Reason device 701 is additionally operable to:Multiple network object informations that multiple routing devices are uploaded are received in server, and local terminal is in wirelessly
When LAN sets interface, the connection with server is set up;The network mesh that multiple routing devices are uploaded is obtained in server side
Mark information, wherein network object information include:The first terminal number of network name information, physical address information and connection network
Code information;According to network name information and physical address information, search local terminal is presently in position with the presence or absence of corresponding target
Network, if in the presence of the corresponding first terminal number information of acquisition objective network.
Optionally, the additional information comprising first terminal number information for passing through transmission in reception routing device,
In additional information, when obtaining the first terminal number information described at least one objective network, processor 701 is additionally operable to:Connect
Receive routing device pass through after network protocol message and additional information to the preset times of transmission, storage network protocol information with
Additional information, additional information includes:The first terminal number information of connection route equipment, first terminal number information and network association
The propagation times information of view information;Obtain the first terminal number information stored in additional information.
Optionally, processor 701 is additionally operable to when the number of destination number is obtained:Determine that each destination number is connected
Objective network;Interface is set in the WLAN of local terminal, the connection of the corresponding destination number of each objective network is shown
Quantity;Receive touch control operation of the user to the connection quantity interface of the corresponding destination number of objective network, display target number pair
The associated person information answered.
Optionally, processor 701 is in the number according to destination number, during the corresponding objective network of linking objective number, also
For:Determine that destination number in local terminal is connected to the quantity of each objective network, according to quantity order from more to less to target network
Network is ranked up;It is determined that the objective network of sequence first is the local terminal first network to be connected, and net is carried out with first network
Network is connected.
Optionally, processor 701 is additionally operable to:If local terminal is not connected with when successfully with first network, according to the number of destination number
Amount putting in order from more to less, is sequentially connected objective network, until successful connection.
Mobile terminal 700 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, here
Repeat no more.
The embodiment of the present invention five, by obtaining the first terminal number information described at least one objective network, will obtain
The first terminal number information for taking is matched with the number information in local terminal address list, determines that the match is successful in local terminal address list
Number be destination number, and determine that corresponding objective network carries out network connection according to the number of destination number, can basis
The empirically determined objective network of network connection of contact person in address list, it is simple directly, reduce the use obstacle of user, it is to avoid volume
Outer communication, with stronger practicality and applicability, improves the experience of user, while solve moving in the prior art
Dynamic terminal is when wireless network connection is carried out, it is impossible to determines objective network and is linked up when the objective network that other people recommend is used for reference
The problem of limited influence Consumer's Experience.
Embodiment six
Fig. 8 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 8
800 can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 800 in Fig. 8 includes radio frequency (Radio Frequency, RF) circuit 810, memory 820, input
Unit 830, display unit 840, processor 860, voicefrequency circuit 870, WiFi (Wireless Fidelity) module 880 and electricity
Source 890.
Wherein, input block 830 can be used to receive the numeral or character information of user input, and produce and mobile terminal
800 user is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 830 can
With including contact panel 831.Contact panel 831, also referred to as touch-screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or annex on contact panel 831 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 831 may include touch detecting apparatus and touch controller
Two parts.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 860 again, and the order sent of receiving processor 860 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 831.Except contact panel 831, input block
830 can also include other input equipments 832, and other input equipments 832 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 840 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, can use LCD or organic hairs
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 841.
It should be noted that contact panel 831 can cover display panel 841, touch display screen is formed, when touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 860 is sent to determine the type of touch event, with preprocessor
860 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 860 is the control centre of mobile terminal 800, using various interfaces and connection whole mobile phone
Various pieces, by running or performing software program and/or module of the storage in first memory 821, and call storage
Data in second memory 822, perform the various functions and processing data of mobile terminal 800, so as to mobile terminal 800
Carry out integral monitoring.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 821 in software program and/or module and/
Or the data in the second memory 822, processor 860 is used for:Obtain the first terminal described at least one objective network
Number information;First terminal number information is matched with the number information of the address list of local terminal, by the number that the match is successful
Destination number is determined as, and obtains the number of destination number;According to the number of destination number, the corresponding mesh of linking objective number
Mark network.
Optionally, processor 860 is also used when the first terminal number information described at least one objective network is obtained
In:The first terminal number information described at least one objective network is obtained from server;Or reception routing device leads to
The additional information comprising first terminal number information of transmission is crossed, in additional information, at least one objective network is obtained
Described in first terminal number information;Wherein, in server and routing device, often increase or reduce a first terminal number
Code information, performs and once updates operation.
Optionally, when the first terminal number information described at least one objective network is obtained from server, place
Reason device 860 is additionally operable to:Multiple network object informations that multiple routing devices are uploaded are received in server, and local terminal is in wirelessly
When LAN sets interface, the connection with server is set up;The network mesh that multiple routing devices are uploaded is obtained in server side
Mark information, wherein network object information include:The first terminal number of network name information, physical address information and connection network
Code information;According to network name information and physical address information, search local terminal is presently in position with the presence or absence of corresponding target
Network, if in the presence of the corresponding first terminal number information of acquisition objective network.
Optionally, the additional information comprising first terminal number information for passing through transmission in reception routing device,
In additional information, when obtaining the first terminal number information described at least one objective network, processor 860 is additionally operable to:Connect
Receive routing device pass through after network protocol message and additional information to the preset times of transmission, storage network protocol information with
Additional information, additional information includes:The first terminal number information of connection route equipment, first terminal number information and network association
The propagation times information of view information;Obtain the first terminal number information stored in additional information.
Optionally, processor 860 is additionally operable to when the number of destination number is obtained:Determine that each destination number is connected
Objective network;Interface is set in the WLAN of local terminal, the connection of the corresponding destination number of each objective network is shown
Quantity;Receive touch control operation of the user to the connection quantity interface of the corresponding destination number of objective network, display target number pair
The associated person information answered.
Optionally, processor 860 is in the number according to destination number, during the corresponding objective network of linking objective number, also
For:Determine that destination number in local terminal is connected to the quantity of each objective network, according to quantity order from more to less to target network
Network is ranked up;It is determined that the objective network of sequence first is the local terminal first network to be connected, and net is carried out with first network
Network is connected.
Optionally, processor 860 is additionally operable to:If local terminal is not connected with when successfully with first network, according to the number of destination number
Amount putting in order from more to less, is sequentially connected objective network, until successful connection.
The embodiment of the present invention six, by obtaining the first terminal number information described at least one objective network, will obtain
The first terminal number information for taking is matched with the number information in local terminal address list, determines that the match is successful in local terminal address list
Number be destination number, and determine that corresponding objective network carries out network connection according to the number of destination number, can basis
The empirically determined objective network of network connection of contact person in address list, it is simple directly, reduce the use obstacle of user, it is to avoid volume
Outer communication, with stronger practicality and applicability, improves the experience of user, while solve moving in the prior art
Dynamic terminal is when wireless network connection is carried out, it is impossible to determines objective network and is linked up when the objective network that other people recommend is used for reference
The problem of limited influence Consumer's Experience.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person for the art comes
Say, some improvements and modifications can also be made under the premise of principle of the present invention is not departed from, and these improvements and modifications also exist
In protection scope of the present invention.