Summary of the invention
The purpose of the present invention is intended at least can solve one of above-mentioned technological deficiency, particularly ways of presentation
At least one more dull technological deficiency.
The present invention provides a kind of method of terminals share WLAN resource, comprises the steps:
Obtain from communication object list and be in the set point centered by the current location of terminal
The first communication object;
Determine from described first communication object and need to share the second communication object of WLAN resource;
Send and include the link information of WLAN resource to described second communication object;
Wherein, described link information is for authorizing described second under the triggering of described second communication object
Communication object is directly accessed the WLAN access point of setting.
Wherein in an embodiment, described from communication object list, obtain be in terminal current
The first communication object in set point centered by position includes:
Obtain current location and the communication object list of terminal, and be supplied to server;
The be in the set point centered by the current location of described terminal is obtained from server
One communication object.
Wherein in an embodiment, described transmission includes the link information of WLAN resource to institute
Before stating the second communication object, also include:
Receive user's request and share the instruction of WLAN resource.
Wherein in an embodiment, determine from described first communication object and need to share WLAN
Before second communication object of resource, also include:
Receive user's request and share the instruction of WLAN resource.
Wherein in an embodiment, obtain from communication object list and be in the current location with terminal
Centered by set point in the first communication object before, also include:
Receive user's request and share the instruction of WLAN resource.
Wherein in an embodiment, described from described first communication object, determine that needs are shared
Second communication object of WLAN resource includes:
Receive user and select instruction;
Select instruction to determine from described first communication object according to described user to need to share WLAN
Second communication object of resource.
Wherein in an embodiment, described from described first communication object, determine that needs are shared
Second communication object of WLAN resource includes: the most described first communication object is defined as needs point
Enjoy the second communication object of WLAN resource.
Wherein in an embodiment, described WLAN resource at least includes the WLAN of described setting
The mark of access point.
Wherein in an embodiment, the mark of the WLAN access point of described setting at least includes institute
State title and/or the physical address of the WLAN access point of setting.
Wherein in an embodiment, described WLAN resource the most also includes described setting
The password of WLAN access point or authorization message.
Wherein in an embodiment, described link information is for the triggering at described second communication object
Under, straight with the second communication object described in the password of WLAN access point set or authorization message mandate
Access the WLAN access point set.
Wherein in an embodiment, described communication object list includes address list or instant communication software
Buddy list.
Wherein in an embodiment, with delivery time for calculating basic point, described link information is setting
Duration in effectively.
The present invention also provides for a kind of intelligent terminal, including:
Acquisition module, is in centered by the current location of terminal for obtaining from communication object list
Set point in the first communication object;
Determine module, need to share WLAN resource for determining from described first communication object
Second communication object;And
Sending module, for sending the link information including WLAN resource to described second communication
Object;
Wherein, described link information is for authorizing described second under the triggering of described second communication object
Communication object is directly accessed the WLAN access point of setting.
Wherein in an embodiment, described acquisition module is used for:
Obtain current location and the communication object list of terminal, and be supplied to server;
The be in the set point centered by the current location of described terminal is obtained from server
One communication object.
Wherein in an embodiment, also include that interactive module, described interactive module are used for: described
Send include the link information of WLAN resource to described second communication object before, receive user
The instruction of WLAN resource is shared in request.
Wherein in an embodiment, described interactive module is used for: from described first communication object
Before determining the second communication object needing to share WLAN resource, receive user's request and share
The instruction of WLAN resource.
Wherein in an embodiment, described interactive module is used for: obtaining from communication object list
Before the first communication object being in the set point centered by the current location of terminal, receive and use
The instruction of WLAN resource is shared in family request.
Wherein in an embodiment, described determine module for:
Receive user and select instruction;
Select instruction to determine from described first communication object according to described user to need to share WLAN
Second communication object of resource.
Wherein in an embodiment, described determine module for: by the most described first communication object
It is defined as needing to share the second communication object of WLAN resource.
Wherein in an embodiment, described WLAN resource at least includes the WLAN of described setting
The mark of access point.
Wherein in an embodiment, the mark of the WLAN access point of described setting at least includes institute
State title and/or the physical address of the WLAN access point of setting.
Wherein in an embodiment, described WLAN resource the most also includes described setting
The password of WLAN access point or authorization message.
Wherein in an embodiment, described link information is for the triggering at described second communication object
Under, straight with the second communication object described in the password of WLAN access point set or authorization message mandate
Access the WLAN access point set.
Wherein in an embodiment, described communication object list includes address list or instant communication software
Buddy list.
Wherein in an embodiment, with delivery time for calculating basic point, described link information is setting
Duration in effectively.
The method of above-mentioned terminals share WLAN resource, from communication object list obtain be in
The first communication object in set point centered by the current location of terminal;Right from described first communication
As middle determine need to share the second communication object of WLAN resource;Transmission includes WLAN resource
Link information give described second communication object;Wherein, described link information is for leading to described second
Described second communication object of lower mandate that triggers of letter object is directly accessed the WLAN access point of setting.
Therefore, user just can be by terminal for being in wlan network scope (centered by current location
Set point) in second communication object send link information, the second communication object can by should
Link information connects the access point of this wlan network, thus realizes WLAN resource at WLAN
Quickly sharing in network range, improve the efficiency of WLAN resource sharing.
Such as, if large numbers of user acts as a guest to user A family, and this crowd of users are user A's
In communication object list, then user A can obtain be in terminal current from communication object list
This crowd of users in set point centered by position, are then shared with the use of needs by link information
Family, even user A can realize one-key sharing to all this crowd of users;Obtain the user of link information
Upper WLAN access point i.e. can be automatically connected, it is not necessary to search WLAN title by this link information
With input WLAN password;This is the easiest for user A and other users.
The intelligent terminal of method based on above-mentioned terminals share WLAN resource, realizes WLAN equally
Resource is quickly shared wlan network scope, improves the efficiency of WLAN resource sharing.
Aspect and advantage that the present invention adds will part be given in the following description, and these will be from following
Description in become obvious, or recognized by the practice of the present invention.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, its
In the most same or similar label represent same or similar element or have same or like
The element of function.The embodiment described below with reference to accompanying drawing is exemplary, is only used for explaining this
Invention, and be not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative used herein
" one ", " one ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that
The wording used in the description of the present invention " includes " referring to there is described feature, integer, step, behaviour
Make, element and/or assembly, but it is not excluded that existence or add other features one or more, whole
Number, step, operation, element, assembly and/or their group.It should be understood that when we claim element
Being " connected " or during " coupled " to another element, it can be directly connected or coupled to other elements, or
Intermediary element can also be there is in person.Additionally, " connection " used herein or " coupling " can include wireless
Connect or wireless couple.Wording "and/or" used herein includes that what one or more was associated lists
Whole or any cell of item and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein
(including technical term and scientific terminology), have and the those of ordinary skill in art of the present invention
Be commonly understood by identical meaning.Should also be understood that those arts defined in such as general dictionary
Language, it should be understood that there is the meaning consistent with the meaning in the context of prior art, and remove
Non-as here by specific definitions, otherwise will not with idealization or the most formal implication explain.
Those skilled in the art of the present technique be both appreciated that " terminal " used herein above, " terminal unit "
Including the equipment of wireless signal receiver, it only possesses the setting of wireless signal receiver of non-emissive ability
Standby, include again the equipment receiving and launching hardware, it has and can perform on bidirectional communication link
The reception of two-way communication and the equipment of transmitting hardware.This equipment may include that honeycomb or other communication
Equipment, its have single line display or multi-line display or the honeycomb not having multi-line display or
Other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System),
It can process with combine voice, data, fax and/or its communication ability;PDA(Personal
Digital Assistant, personal digital assistant), it can include radio frequency receiver, pager, mutually
The access of networking/Intranet, web browser, notepad, calendar and/or GPS (Global Positioning
System, global positioning system) receptor;Conventional laptop and/or palmtop computer or other set
Standby, its have and/or include the conventional laptop of radio frequency receiver and/or palmtop computer or other
Equipment." terminal " used herein above, " terminal unit " can be portable, can transport, be arranged on
In the vehicles (aviation, sea-freight and/or land), or it is suitable for and/or is configured in this locality
Run, and/or with distribution form, any other position operating in the earth and/or space is run.This
In " terminal ", " terminal unit " that used can also is that communication terminal, access terminals, music/video
Playback terminal, such as, can be that (Mobile Internet Device, mobile Internet sets for PDA, MID
Standby) and/or there is the mobile phone of music/video playing function, it is also possible to it is intelligent television, machine top
The equipment such as box.
Those skilled in the art of the present technique are appreciated that remote network devices used herein above, and it includes
But it is not limited to computer, network host, single network server, multiple webserver collection or multiple
The cloud that server is constituted.Here, cloud is by a large amount of calculating based on cloud computing (Cloud Computing)
Machine or the webserver are constituted, and wherein, cloud computing is the one of Distributed Calculation, by the loose coupling of a group
One super virtual machine of the computer collection composition closed.In embodiments of the invention, far-end network
Can realize communicating by any communication mode between equipment, terminal unit with WNS server, including
But it is not limited to, mobile communication based on 3GPP, LTE, WIMAX, based on TCP/IP, UDP
The computer network communication of agreement and based on bluetooth, the low coverage side of being wirelessly transferred of infrared transmission standard
Formula.
Fig. 1 is the method flow diagram of the terminals share WLAN resource of an embodiment.
The present invention provides a kind of method of terminals share WLAN resource, comprises the steps:
Step S100: obtain from communication object list and be in centered by the current location of terminal
The first communication object in set point.
Communication object list can include address list or instant communication software buddy list.Work as communication object
When list is address list, communication object is exactly contact person, and the first communication object is in terminal
The contact person in set point centered by current location;When communication object list is instant communication software
During buddy list, communication object is exactly the good friend in instant communication software, and the first communication object goes out exactly
Instant communication software good friend in the set point centered by the current location of terminal.
Above-mentioned acquisition, both can be that (user's request is shared at the dependent instruction receiving user
The instruction of WLAN resource) after just obtain, it is also possible to being that terminal obtains automatically, such as terminal is with necessarily
Interval duration the most constantly go obtain.
Below as a example by instant communication software buddy list.
When be at the dependent instruction receiving user after just obtain time, user is at instant communication software midpoint
After having hit " sharing WLAN " button, immediately buddy list scan for being in terminal current
The good friend in set point centered by position, i.e. neighbouring good friend;Then by the good friend of search good
Friend's list marks, or polymerization shows.
When be terminal automatically obtain time, terminal duration at certain intervals the most constantly goes at acquisition
Good friend in the set point centered by the current location of terminal, user is in instant communication software
Entering buddy list or after clicking " sharing WLAN " button, instant playback is up-to-date to be searched
It is in the good friend in the set point centered by the current location of terminal, i.e. neighbouring good friend;Then
The good friend of search is marked in buddy list, or polymerization shows.
In the present embodiment, after being the instruction that WLAN resource is shared in reception user's request, terminal
Just obtain from communication object list and be in the set point centered by the current location of terminal
First communication object.
Current location can be the position location that terminal is current, and location can be that satellite fix, base station are fixed
Position, WiFi location etc..In the present embodiment, terminal is to connect WiFi, therefore can use
WiFi positions.
After determining the current location of terminal, it is thus necessary to determine that be in WLAN (WiFi) network
One communication object, the first communication object is exactly both to be in communication object list, is in again terminal current
Communication object near position.Accordingly, it would be desirable to obtain working as of each communication object in communication object list
Front position, could judge the vicinity having which communication object to be in terminal.
The geographical position of communication object, as long as communication object is in networking state, usual server is permissible
Collect.Therefore, from communication object list, acquisition is in setting centered by the current location of terminal
The first communication object in the range of Ding, specifically may include steps of 1~2:
Step 1: obtain current location and the communication object list of terminal, and be supplied to server.
After server receives current location and the communication object list of terminal, in query communication list object
The current location of each communication object, and determine the setting model being in centered by the current location of terminal
Enclose the first interior communication object, in the range of centered by the current location of terminal 100 meters
First communication object.After server determines, feed back the first communication object to terminal.
Step 2: obtain in the set point being in centered by the current location of terminal from server
First communication object.
So far, in terminal has got the set point being in centered by the current location of terminal
First communication object, i.e. gets and is in neighbouring contact person or good friend, then can perform step
S200。
Step S200: determine the second communication needing to share WLAN resource from the first communication object
Object.
WLAN resource is to connect the WLAN information required for wlan network, here can be special
Finger is: needed for connecting the wlan network (the WLAN access point i.e. set) that terminal is connecting
The WLAN information wanted.Certainly, the WLAN access point of setting can also is that terminal the most successfully connects
The WLAN access point connect, it is not necessary to the WLAN access point set is construed as limiting.
Such as, terminal is being connected to a certain WiFi network (the WLAN access point i.e. set),
WLAN resource is exactly to connect the WiFi information used required for this WiFi network upper, such as WiFi
Title, WiFi physical address, WiFi password etc..
Therefore, WLAN resource at least includes the mark of the WLAN access point set, the most permissible
It it is unique mark.The mark of the WLAN access point set at least includes the WLAN access point set
Title and/or physical address (MAC).If the WLAN access point set is not provided with password,
Then can be attached when knowing the mark of this WLAN access point.If the WLAN set connects
Access point is provided with password, in order to other users access setting by the WLAN resource shared
WLAN access point, WLAN resource the most also should include the password of the WLAN access point set
Or authorization message.Authorization message refers to that other users can access setting by this authorization message
The relevant information of WLAN access point, such as, can be assigned to interim guest's account of guest, should
WLAN access point is now positioned to allow for interim guest's account and is directly accessed without WiFi password
This WLAN access point.
User gets the first communication in the set point being in centered by the current location of terminal
After object, the first communication object that possible user is not required to all getting all shares WLAN
Resource, it is therefore desirable to determine the second communication needing to share WLAN resource from the first communication object
Object.
In certain embodiments, determine from the first communication object and need to share the of WLAN resource
Two communication objects comprise the steps S1~S2:
Step S1: receive user and select instruction.
It is user's instruction of selecting communication object therein from the first communication object that user selects to instruct,
Can be such as to want to share WLAN money from the selection user that is in neighbouring contact person got
The contact person in source, it is also possible to be to want to share from the selection user that is in neighbouring good friend got
The good friend of WLAN resource.Now terminal enters selection pattern, and user can be by clicking on relevant connection
It is people or good friend selects.
Step S2: selecting instruction to determine from the first communication object according to user needs to share WLAN
Second communication object of resource.User chooses the contact person or good friend needing to share WLAN resource
After, contact person user chosen or good friend are defined as the second communication object.
And in certain embodiments, determine from the first communication object and need to share WLAN resource
Second communication object includes: be defined as needing to share WLAN resource by whole first communication objects
Second communication object.Now, it is not necessary to user selects to need to share the contact person of WLAN resource or good
Friend, and give tacit consent to whole first communication object and be the second communication object needing to share WLAN resource.
Determine after needing to share the second communication object of WLAN resource, step S300 can be performed.
Step S300: send and include the link information of WLAN resource to the second communication object.
Wherein, link information is for authorizing the second communication object direct under the triggering of the second communication object
Access the WLAN access point set.Typically, user is by triggering this link information (such as
Clickthrough information, the link information of identification Quick Response Code form), terminal i.e. can connect automatically accordingly
Wlan network.Such as, if the operating system of terminal is Android system, trigger this link letter
After breath, WiFiManager class can be called and carry out WiFi connection.
If the WLAN access point set is not provided with password, then the money of the WLAN in link information
Source includes the mark of the WLAN access point set, when knowing the mark of this WLAN access point
Can be attached.
If the WLAN access point set is provided with password, then the WLAN resource in link information
Including the mark of WLAN access point, the password of WLAN access point or the authorization message that set.Chain
The information that connects under the triggering at the second communication object, with set WLAN access point password or
Authorization message mandate the second communication object is directly accessed the WLAN access point of setting.
So, after the second communication object gets the link information including WLAN resource, pass through
Trigger this link information and just can be directly connected to the WLAN access point of setting, enjoy WLAN net
Network.
In order to ensure the information security of link information, in the present embodiment, with the transmission of link information time
Carving as calculating basic point, link information is effective in the duration set.Such as, terminals share includes
After the link information of WLAN resource gives the second communication object, in 24 hours, this link information is effective,
In 24 hours, user can automatically access the WLAN access of setting by triggering this link information
Point;Then lost efficacy after 24 hours, and also cannot respond to even if triggering this link information or connect WLAN.
In the present embodiment, after being the instruction that WLAN resource is shared in reception user's request, terminal
Just obtain from communication object list and be in the set point centered by the current location of terminal
First communication object.I.e. before performing step S100, just receive user's request and share WLAN money
The instruction in source.Such as, after user clicks on " sharing WiFi " button, terminal performs step S100 again,
Obtain from address list or buddy list and be in neighbouring contact person or good friend, then receiving user
Select to perform during instruction step S200, then after user clicks on " determine and share " button, perform step
S300.The most such as, after user clicks on " one-key sharing WiFi " button, terminal performs step S100 again
(now it is defined as needing to share WLAN resource by whole first communication objects with performing step S200
The second communication object, i.e. give tacit consent to whole first communication object and be and need to share WLAN resource
Second communication object), then perform step S300, thus realize the merit of one-key sharing WLAN resource
Can, simplify the operation of terminal use to greatest extent, improve and share efficiency.
In certain embodiments, it is after performing step S100, before performing step S200,
Receive user's request and share the instruction of WLAN resource, share WLAN money receiving user's request
After the instruction in source, then perform step S200.In these embodiments, before performing step S100
User's request can't be received and share the instruction of WLAN resource.Such as, terminal is with between certain
Step S100 is periodically carried out, when the record of user's entry communication or instant communication software are good every duration
Time in friend's list, user clicks on " sharing WiFi " button, and terminal is held then according to this click commands
After row step S200 is to determine and need to share the second communication object of WLAN resource, more directly enter
Row is shared or is shared after clicking on " determine and share " button.
And in further embodiments, be after performing step S200, before performing step S300,
Just receive user's request and share the instruction of WLAN resource, share WLAN receiving user's request
After the instruction of resource, then perform step S300.In these embodiments, perform step S200 it
Before can't receive user's request and share the instruction of WLAN resource.Such as, terminal is with certain
Interval duration periodically carries out step S100, when the record of user's entry communication or instant communication software
Time in buddy list, user chooses after the second communication object needing to share WLAN resource (i.e.
After performing step S200), user clicks on " sharing WiFi " button again and shares.
The method of above-mentioned terminals share WLAN resource, from communication object list obtain be in
The first communication object in set point centered by the current location of terminal;Right from described first communication
As middle determine need to share the second communication object of WLAN resource;Transmission includes WLAN resource
Link information give described second communication object;Wherein, described link information is for leading to described second
Described second communication object of lower mandate that triggers of letter object is directly accessed the WLAN access point of setting.
Therefore, user just can be by terminal for being in wlan network scope (centered by current location
Set point) in second communication object send link information, the second communication object can by should
Link information connects the access point of this wlan network, thus realizes WLAN resource at WLAN
Quickly sharing in network range, improve the efficiency of WLAN resource sharing.
Such as, if large numbers of user acts as a guest to user A family, and this crowd of users are user A's
In communication object list, then user A can obtain be in terminal current from communication object list
This crowd of users in set point centered by position, are then shared with the use of needs by link information
Family, even user A can realize one-key sharing to all this crowd of users, obtain the user of link information
I.e. can automatically be connected upper WLAN access point by this link information, this for user A and other
For user the easiest.
Fig. 2 is the module map of the intelligent terminal of an embodiment, incorporated by reference to Fig. 1.
The method of the terminals share WLAN resource of corresponding above-described embodiment, below describes a kind of intelligence
Terminal, comprising: interactive module, acquisition module, determines module and sending module.
Interactive module for mutual, such as, shares the instruction of WLAN resource for receiving user's request.
Acquisition module is in setting centered by the current location of terminal for obtaining from communication object list
The first communication object in the range of Ding.Determine that module is for determining that needs are shared from the first communication object
Second communication object of WLAN resource.Sending module includes the chain of WLAN resource for sending
The information that connects is to the second communication object.Wherein, link information is for awarding under the triggering of the second communication object
Weigh the second communication object and be directly accessed the WLAN access point of setting.
Acquisition module obtains from communication object list and is in setting centered by the current location of terminal
The first communication object in the range of Ding.
Communication object list can include address list or instant communication software buddy list.Work as communication object
When list is address list, communication object is exactly contact person, and the first communication object is in terminal
The contact person in set point centered by current location;When communication object list is instant communication software
During buddy list, communication object is exactly the good friend in instant communication software, and the first communication object goes out exactly
Instant communication software good friend in the set point centered by the current location of terminal.
Above-mentioned acquisition, both can be that (user's request is shared at the dependent instruction receiving user
The instruction of WLAN resource) after just obtain, it is also possible to being that terminal obtains automatically, such as terminal is with necessarily
Interval duration the most constantly go obtain.
Below as a example by instant communication software buddy list.
When be at the dependent instruction receiving user after just obtain time, user is at instant communication software midpoint
After having hit " sharing WLAN " button, immediately buddy list scan for being in terminal current
The good friend in set point centered by position, i.e. neighbouring good friend;Then by the good friend of search good
Friend's list marks, or polymerization shows.
When be terminal automatically obtain time, terminal duration at certain intervals the most constantly goes at acquisition
Good friend in the set point centered by the current location of terminal, user is in instant communication software
Entering buddy list or after clicking " sharing WLAN " button, instant playback is up-to-date to be searched
It is in the good friend in the set point centered by the current location of terminal, i.e. neighbouring good friend;Then
The good friend of search is marked in buddy list, or polymerization shows.
In the present embodiment, be interactive module receive user request share WLAN resource instruction it
After, acquisition module just obtains from communication object list and is in setting centered by the current location of terminal
The first communication object in the range of Ding.
Current location can be the position location that terminal is current, and location can be that satellite fix, base station are fixed
Position, WiFi location etc..In the present embodiment, terminal is to connect WiFi, therefore can use
WiFi positions.
After determining the current location of terminal, it is thus necessary to determine that be in WLAN (WiFi) network
One communication object, the first communication object is exactly both to be in communication object list, is in again terminal current
Communication object near position.Accordingly, it would be desirable to obtain working as of each communication object in communication object list
Front position, could judge the vicinity having which communication object to be in terminal.
The geographical position of communication object, as long as communication object is in networking state, usual server is permissible
Collect.Therefore, acquisition module obtains to be in from communication object list and with the current location of terminal is
The first communication object in the set point at center, specifically can perform following steps 1~2:
Step 1: obtain current location and the communication object list of terminal, and be supplied to server.
After server receives current location and the communication object list of terminal, in query communication list object
The current location of each communication object, and determine the setting model being in centered by the current location of terminal
Enclose the first interior communication object, in the range of centered by the current location of terminal 100 meters
First communication object.After server determines, feed back the first communication object to terminal.
Step 2: obtain in the set point being in centered by the current location of terminal from server
First communication object.
So far, in terminal has got the set point being in centered by the current location of terminal
First communication object, i.e. gets and is in neighbouring contact person or good friend, it is then determined that module is from first
Communication object determines the second communication object needing to share WLAN resource.
WLAN resource is to connect the WLAN information required for wlan network, here can be special
Finger is: needed for connecting the wlan network (the WLAN access point i.e. set) that terminal is connecting
The WLAN information wanted.Certainly, the WLAN access point of setting can also is that terminal the most successfully connects
The WLAN access point connect, it is not necessary to the WLAN access point set is construed as limiting.
Such as, terminal is being connected to a certain WiFi network (the WLAN access point i.e. set),
WLAN resource is exactly to connect the WiFi information used required for this WiFi network upper, such as WiFi
Title, WiFi physical address, WiFi password etc..
Therefore, WLAN resource at least includes the mark of the WLAN access point set, the most permissible
It it is unique mark.The mark of the WLAN access point set at least includes the WLAN access point set
Title and/or physical address (MAC).If the WLAN access point set is not provided with password,
Then can be attached when knowing the mark of this WLAN access point.If the WLAN set connects
Access point is provided with password, in order to other users access setting by the WLAN resource shared
WLAN access point, WLAN resource the most also should include the password of the WLAN access point set
Or authorization message.Authorization message refers to that other users can access setting by this authorization message
The relevant information of WLAN access point, such as, can be assigned to interim guest's account of guest, should
WLAN access point is now positioned to allow for interim guest's account and is directly accessed without WiFi password
This WLAN access point.
User is got by the acquisition module of terminal and is in setting centered by the current location of terminal
After the first communication object in the range of Ding, possible user is not required to the first communication all got
Object all shares WLAN resource, it is therefore desirable to is determined by module and determines from the first communication object
Need to share the second communication object of WLAN resource.
In certain embodiments, determine that module determines from the first communication object to need to share WLAN
Second communication object execution following steps S1~S2 of resource:
Step S1: receive user and select instruction.
It is user's instruction of selecting communication object therein from the first communication object that user selects to instruct,
Can be such as to want to share WLAN money from the selection user that is in neighbouring contact person got
The contact person in source, it is also possible to be to want to share from the selection user that is in neighbouring good friend got
The good friend of WLAN resource.Now terminal enters selection pattern, and user can be by clicking on relevant connection
It is people or good friend selects.
Step S2: selecting instruction to determine from the first communication object according to user needs to share WLAN
Second communication object of resource.User chooses the contact person or good friend needing to share WLAN resource
After, contact person user chosen or good friend are defined as the second communication object.
And in certain embodiments, determining that module determines from the first communication object needs to share WLAN
Second communication object of resource includes: be defined as needing to share WLAN by whole first communication objects
Second communication object of resource.Now, it is not necessary to user selects to need the contact sharing WLAN resource
People or good friend, and he gives tacit consent to whole first communication object be need to share WLAN resource second lead to
Letter object.
Determining after needing to share the second communication object of WLAN resource, sending module sends and comprises
There is the link information of WLAN resource to the second communication object.
Wherein, link information is for authorizing the second communication object direct under the triggering of the second communication object
Access the WLAN access point set.Typically, user is by triggering this link information (such as
Clickthrough information, the link information of identification Quick Response Code form), terminal i.e. can connect automatically accordingly
Wlan network.Such as, if the operating system of terminal is Android system, trigger this link letter
After breath, WiFiManager class can be called and carry out WiFi connection.
If the WLAN access point set is not provided with password, then the money of the WLAN in link information
Source includes the mark of the WLAN access point set, when knowing the mark of this WLAN access point
Can be attached.
If the WLAN access point set is provided with password, then the WLAN resource in link information
Including the mark of WLAN access point, the password of WLAN access point or the authorization message that set.Chain
The information that connects under the triggering at the second communication object, with set WLAN access point password or
Authorization message mandate the second communication object is directly accessed the WLAN access point of setting.
So, after the second communication object gets the link information including WLAN resource, pass through
Trigger this link information and just can be directly connected to the WLAN access point of setting, enjoy WLAN net
Network.
In order to ensure the information security of link information, in the present embodiment, with the transmission of link information time
Carving as calculating basic point, link information is effective in the duration set.Such as, terminals share includes
After the link information of WLAN resource gives the second communication object, in 24 hours, this link information is effective,
In 24 hours, user can automatically access the WLAN access of setting by triggering this link information
Point;Then lost efficacy after 24 hours, and also cannot respond to even if triggering this link information or connect WLAN.
In the present embodiment, be interactive module receive user request share WLAN resource instruction it
After, acquisition module obtains from communication object list and is in the setting centered by the current location of terminal
In the range of the first communication object (following with above-mentioned steps S100 represent).I.e. acquisition module is being held
Before row step S100, interactive module just receives user's request and shares the instruction of WLAN resource.Example
As, after user clicks on " sharing WiFi " button, acquisition module performs step S100 again, from communication
Record or buddy list obtain and is in neighbouring contact person or good friend, then receive use in interactive module
When family selects instruction, determine that module determines that needs are shared from being in neighbouring contact person or good friend
The contact person of WLAN resource or good friend's (following with the representative of above-mentioned steps S200), then at user's point
After hitting " determine and share " button, sending module send include the link information of WLAN resource to
Need to share the contact person of WLAN resource or good friend's (following above-mentioned steps S300 represents).Again
Such as, after user clicks on " one-key sharing WiFi " button, terminal performs step S100 and execution again
Whole first communication objects (now are defined as needing to share the second of WLAN resource by step S200
Communication object, i.e. give tacit consent to whole first communication object be need to share WLAN resource second lead to
Letter object), then perform step S300, thus realize the function of one-key sharing WLAN resource,
The operation simplifying terminal use of limits, improves and shares efficiency.
In certain embodiments, it is after performing step S100, before performing step S200, hands over
Module just receives user and asks to share the instruction of WLAN resource mutually, and interactive module is receiving user
After the instruction of WLAN resource is shared in request, then perform step S200.In these embodiments, exist
User's request can't be received before performing step S100 and share the instruction of WLAN resource.Such as,
Terminal periodically carries out step S100 at duration at certain intervals, when user's entry communication record or
Time in person's instant communication software buddy list, user clicks on " sharing WiFi " button, and terminal is then
Perform step S200 according to this click commands and need to share the second communication of WLAN resource to determine
After object, more directly carry out sharing or sharing after clicking on " determine and share " button.
And in further embodiments, be after performing step S200, before performing step S300,
Interactive module just receives user's request and shares the instruction of WLAN resource, and interactive module is receiving use
After the instruction of WLAN resource is shared in family request, then perform step S300.In these embodiments,
User's request can't be received before performing step S200 and share the instruction of WLAN resource.Such as,
Terminal periodically carries out step S100 at duration at certain intervals, when user's entry communication record or
Time in person's instant communication software buddy list, user chooses to be needed to share the second of WLAN resource
After communication object (after i.e. performing step S200), user clicks on " sharing WiFi " button again and carries out
Share.
The intelligent terminal of method based on above-mentioned terminals share WLAN resource, realizes WLAN equally
Resource is quickly shared wlan network scope, improves the efficiency of WLAN resource sharing.
Although each step that it should be understood that in the flow chart of Fig. 1 according to arrow instruction successively
Display, but these steps are not the inevitable order indicated according to arrow to be performed successively.Unless herein
In expressly state otherwise, the not strictest order that performs of these steps limits, and they can be with other
Order perform.And, at least some of step in Fig. 1 can include many sub-steps or many
In the individual stage, these sub-steps or stage are not necessarily to have performed at synchronization, but permissible
Performing in the different moment, its execution sequence is also not necessarily and carries out successively, but can walk with other
Rapid or the sub-step of other steps or at least some of of stage perform in turn or alternately.
The above is only the some embodiments of the present invention, it is noted that for the art
For those of ordinary skill, under the premise without departing from the principles of the invention, it is also possible to make some improvement
And retouching, these improvements and modifications also should be regarded as protection scope of the present invention.