A kind of wireless local area network access method and device
Technical field
The present invention relates to Internet technology more particularly to a kind of wireless local area network access methods and device.
Background technique
Wireless local area network technology allows user easily wirelessly to access Internet resources anywhere or anytime.Wirelessly
Fidelity (Wi-Fi, Wireless-Fidelity) is widely applied as one of wireless local area network technology.
Currently, user usually the independent utility of similar Wi-Fi assistant/house keeper is installed accessing by downloading at the terminal and
Wi-Fi network is managed, however the independent utility usually carries mass advertising information, and out of season to user's advertisement letter
Breath forces customer consumption;After user, which closes, to apply, which is also possible to can be in backstage continuous service;And use independent utility
The Wi-Fi network access way update cycle it is slow, user demand can not be timely responded to, solved the problems, such as on line.
Summary of the invention
The embodiment of the present invention provides a kind of wireless local area network access method and device, and nothing can be shown by way of the page
Line LAN Information, and then access terminal.
The technical solution of the embodiment of the present invention is achieved in that
The embodiment of the invention provides a kind of wireless local area network access methods, which comprises
The incidence relation of login account and social networks based on social client pre-established using account;
Based on the incidence relation, the operation using account for the social networks is responded, the social network is loaded
The corresponding page of application account of network;
The WLAN information aggregate including at least one WLAN information is obtained based on the page;Social visitor
The affiliated terminal in family end is in the coverage area of at least one at least one corresponding WLAN of WLAN information;
Operation for the first WLAN information is responded, based on described in the first WLAN information access the
Corresponding first WLAN of one WLAN information.
It is described that the WLAN including at least one WLAN information is obtained based on the page in above scheme
Information aggregate, comprising:
The operation for the page is responded, scan instruction is generated, is scanned based on the scan instruction and supports access extremely
A few WLAN, obtains at least one WLAN information,
WLAN information aggregate is generated based at least one described WLAN information.
It is described based on the first WLAN information pair described in the first WLAN information access in above scheme
The first WLAN answered, comprising:
Based on the first WLAN information, first WLAN is sent by preset data communication protocol
Access request;
Receive the first network Connecting quantity of corresponding first WLAN;
First WLAN is accessed based on the first network Connecting quantity.
It is described that first WLAN is accessed based on the first network Connecting quantity in above scheme, comprising:
Load is packaged with the interface of webpage function and terminal function;
Based on the first network Connecting quantity, the interface is called to access first WLAN.
In above scheme, the first network Connecting quantity for receiving corresponding first WLAN, comprising:
The mapping relations of multiple groups WLAN and network connection parameter based on server storage, obtain the server
The first network Connecting quantity of first WLAN sent;
Wherein, the network connection parameter of at least partly WLAN of the server storage is obtained by terminal is shared.
In above scheme, the method also includes:
By preset data communication protocol, the second network connection parameter of the second WLAN is sent to server, with
Share the second network connection parameter of second WLAN.
In above scheme, the method also includes:
The application account of the social networks is sent to the login account by the sharing interface for calling the social client
Target user in number corresponding social networks.
In above scheme, the kernel with browsing service ability is built-in in the social client;
The corresponding page of application account of the load social networks, comprising:
In the kernel process with browsing service ability, pass through the kernel loads with browsing service ability
The corresponding page of application account of the social networks, to access WLAN by the page.
The embodiment of the invention also provides a kind of Wireless LAN access device, described device includes:
Unit is established, for establishing the login account of social client and the incidence relation using account of social networks;
Loading unit responds the operation using account for the social networks, adds for being based on the incidence relation
Carry the corresponding page of application account of the social networks;
Acquiring unit is believed for obtaining the WLAN including at least one WLAN information based on the page
Breath set;The affiliated terminal of social client is at least one corresponding WLAN of at least one described WLAN information
Coverage area in;
Access unit is based on first WLAN for responding the operation for the first WLAN information
Corresponding first WLAN of first WLAN information described in information access.
In above scheme, the acquiring unit is also used to respond the operation for the page, generates scan instruction, base
At least one WLAN for supporting access is scanned in the scan instruction, obtains at least one WLAN information,
WLAN information aggregate is generated based at least one described WLAN information.
In above scheme, the access unit is also used to pass through preset data based on the first WLAN information
Communication protocol sends the access request of first WLAN;
Receive the first network Connecting quantity of corresponding first WLAN;
First WLAN is accessed based on the first network Connecting quantity.
In above scheme, the access unit is also used to load the interface for being packaged with webpage function and terminal function;
Based on the first network Connecting quantity, the interface is called to access first WLAN.
In above scheme, the access unit, the multiple groups WLAN and network for being also used to be stored based on server is connected
The mapping relations for connecing parameter obtain the first network Connecting quantity for first WLAN that the server is sent;
Wherein, the network connection parameter of at least partly WLAN of the server storage is obtained by terminal is shared.
In above scheme, the access unit is also used to send the second WLAN by preset data communication protocol
The second network connection parameter to server, to share the second network connection parameter of second WLAN.
In above scheme, described device further include:
Sharing unit sends out the application account of the social networks for calling the sharing interface of the social client
Give the target user in the corresponding social networks of the login account.
The embodiment of the invention also provides a kind of Wireless LAN access device, described device includes:
Memory, for storing executable program;
Processor, for by executing wireless local area network access method described in the embodiment of the present invention.
The embodiment of the invention also provides a kind of readable storage medium storing program for executing, are stored with executable program, the executable program
Wireless local area network access method described in the embodiment of the present invention is realized when being executed by processor.
Using the above embodiment of the present invention, by loading the corresponding page of application account of social networks, to obtain the page
The WLAN information of display, and then access WLAN;User is set to eliminate the trouble of downloading independent utility, it is opposite to expand
The big memory headroom of terminal, still perplexs in running background bring though more avoiding user and being turned off using application;Pass through
Redundancy is not present in page presentation WLAN information, and the worries of advertisement pushing information can not be rejected by eliminating user, be mentioned
High user experience.
Detailed description of the invention
Fig. 1 is the schematic diagram that each side's hardware entities of information exchange are carried out in the embodiment of the present invention;
Fig. 2 is the flow diagram one of wireless local area network access method in the embodiment of the present invention;
Fig. 3 is to be realized by wechat client to the interface schematic diagram after the concern of Wi-Fi public platform in the embodiment of the present invention;
Fig. 4 is the interface schematic diagram in the embodiment of the present invention after the corresponding page of load Wi-Fi public platform;
Fig. 5 is the interface schematic diagram for showing Wi-Fi network information aggregate in the embodiment of the present invention based on the page;
Fig. 6 is the operation interface schematic diagram that user chooses Wi-Fi network in the embodiment of the present invention;
Fig. 7 is the interface schematic diagram for showing Wi-Fi network connection procedure in the embodiment of the present invention based on the page;
Fig. 8 is the interface schematic diagram for showing Wi-Fi network successful connection in the embodiment of the present invention based on the page;
Fig. 9 is the flow diagram two of wireless local area network access method in the embodiment of the present invention;
Figure 10 is the flow diagram three of wireless local area network access method in the embodiment of the present invention;
Figure 11 is the system architecture schematic diagram of wireless local area network access method in the embodiment of the present invention;
Figure 12 is that the corresponding page invocation JS interface realization of public platform is connect by Wi-Fi program module in the embodiment of the present invention
Enter the business processing schematic diagram of Wi-Fi network;
Figure 13 a is to determine that information shares the schematic diagram one of object based on social networks chain in the embodiment of the present invention;
Figure 13 b is to determine that information shares the schematic diagram two of object based on social networks chain in the embodiment of the present invention;
Figure 13 c is to determine that information shares the schematic diagram three of object based on social networks chain in the embodiment of the present invention;
Figure 14 is the schematic diagram for sharing network access information in the embodiment of the present invention by social network client;
Figure 15 is that information shares object based on the interface for sharing obtained information access Wi-Fi network in the embodiment of the present invention
Schematic diagram;
Figure 16 is the composed structure schematic diagram one of Wireless LAN access device in the embodiment of the present invention;
Figure 17 is the composed structure schematic diagram two of Wireless LAN access device in the embodiment of the present invention.
Specific embodiment
The present invention is further described in detail below with reference to the accompanying drawings and embodiments.It should be appreciated that mentioned herein
Embodiment is only used to explain the present invention, is not intended to limit the present invention.In addition, embodiment provided below is for implementing
Section Example of the invention, rather than provide and implement whole embodiments of the invention, creation is not paid in those skilled in the art
Property labour under the premise of, recombinate resulting embodiment to the technical solution of following embodiment and based on real to invention institute
The other embodiments applied all belong to the scope of protection of the present invention.
It should be noted that in embodiments of the present invention, the terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that including the method for a series of elements or device not only includes wanting of being expressly recited
Element, but also including other elements that are not explicitly listed, or further include for implementation method or device intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Method or device in there is also other relevant factor (such as the step in method or units in device).
For example, wireless local area network access method provided in an embodiment of the present invention contains a series of step, but this hair
The wireless local area network access method that bright embodiment provides is not limited to documented step, similarly, provided in an embodiment of the present invention
Wireless LAN access device includes a series of units, but device provided in an embodiment of the present invention is not limited to include defining
The unit of record, the unit of required setting when can also include to obtain relevant information or being handled based on information.
Before the present invention will be described in further detail, to the noun provided in an embodiment of the present invention being related to and term into
Row explanation, the noun being related to and term provided in an embodiment of the present invention are suitable for following explanation.
Using account, the account for the application that developer, enterprise, public institution and non-government organization access on public platform
Number, the application account for the social networks mentioned in the embodiment of the present invention may include: public platform,
Public platform is the application account that developer or businessman apply on public platform, can be flat in the public by public platform
By realizing comprehensive communication and interaction with the text, picture, voice and video of user, user's concern using account on platform
The function of can be used it to provide after public platform, functionally public platform can be classified as service number and subscription number.
JS interface: the software development kit realized using JavaScript is packaged with a series of application programming interfaces, can
To realize the mutual calling of webpage and terminal local function.
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
Fig. 1 is the schematic diagram that each side's hardware entities of information exchange are carried out in the embodiment of the present invention, includes: service in Fig. 1
Device 11 ... 1n, terminal device 21-24 (including the types such as mobile phone, tablet computer, PC machine), routing device 31 ... 3n.Terminal
Equipment 21-24 carries out information exchange by cable network or wireless network and server, establishes client on terminal device 21-24
End account is associated with (or binding) relationship using account with social networks, and then terminal can load the application account of social networks
Number corresponding page, obtains WLAN (Wi-Fi network) information of page presentation, and terminal device 21-24 is made to be based on the page
WLAN is added in WLAN (Wi-Fi network) information of displaying.
Embodiment one
The embodiment of the invention provides a kind of wireless local area network access method, the method is applied to terminal, and Fig. 2 is this hair
The flow diagram of wireless local area network access method in bright embodiment, as shown in Fig. 2, WLAN connects in the embodiment of the present invention
Entering method includes:
Step 101: establishing the login account of social client and the incidence relation using account of social networks.
Here, in practical applications, terminal establish social client login account and social networks using account
Incidence relation, namely realize client login account and social networks using account background server binding.
It is that Wi-Fi public platform (can be with by wechat client, the application account of the social networks of the social client
The function of Wi-Fi management and access is provided for terminal) for, correspondingly, the login account of client is that user carries out wechat
Wechat account when registration, user send the request for paying close attention to Wi-Fi public platform to background server, in turn based on wechat client
The binding of the wechat account and Wi-Fi public platform of user is realized on backstage, that is, establishes the pass of wechat account Yu Wi-Fi public platform
Connection relationship.User is illustrated in figure 3 to realize by wechat client to the interface schematic diagram after the concern of Wi-Fi public platform.
Step 102: operation using account of the response for the social networks loads the application account of the social networks
Number corresponding page.
Here, example in subsequent steps 101, when user carries out clicking operation based on the Wi-Fi public platform of concern, load
The corresponding page of Wi-Fi public platform, the interface schematic diagram after being illustrated in figure 4 the corresponding page of load Wi-Fi public platform.
Step 103: the WLAN information collection including at least one WLAN information is obtained based on the page
It closes;The affiliated terminal of social client covering at least one at least one corresponding WLAN of WLAN information
Within the scope of lid.
Based on the above embodiment of the present invention, in practical applications, being obtained based on the page includes at least one wireless office
The WLAN information aggregate of domain net information, comprising:
The operation for the page is responded, scan instruction is generated, is scanned based on the scan instruction and supports access extremely
A few WLAN, obtains at least one WLAN information;
Based at least one described WLAN information generate WLAN information aggregate, with based on the page into
Row display;Wherein, the mode for carrying out the display can be the display of list mode, however it is not limited to this kind of display mode.
Example described in subsequent steps 101, " the Wi-Fi assistant " that user is shown based on the corresponding page of Wi-Fi public platform
Key is clicked, and Wi-Fi scan instruction is generated, and terminal is based on Wi-Fi scan instruction positioning and is presently in position, scanning week
The Wi-Fi network for enclosing the support access of (i.e. terminal is in its coverage area), it is corresponding extremely to obtain at least one Wi-Fi network
Few Wi-Fi network information;It should be noted that a Wi-Fi network information (a WLAN information) is not
Refer to an information, and refers to one group of network information relevant to corresponding Wi-Fi network (WLAN);In an embodiment
In, which may include at least one of: service set (SSID, Service Set
Identifier), signal strength (such as: quickly, middling speed, at a slow speed), source (network provider's title), access way be (such as: password
Access, exempt from password access) etc..
When terminal scans to obtain Wi-Fi network, the corresponding multiple Wi-Fi network information of multiple Wi-Fi networks generate Wi-
Fi network information set, and multiple Wi-Fi network information are shown in a manner of list based on the Wi-Fi public platform page.Such as Fig. 5 institute
Show, terminal scans to obtain after multiple Wi-Fi networks in its coverage area, in the Wi-Fi public platform page with list mode
The interface schematic diagram of the Wi-Fi network information aggregate of display.
Step 104: operation of the response for the first WLAN information is connect based on the first WLAN information
Enter corresponding first WLAN of the first WLAN information.
Here, in practical applications, multiple Wi-Fi networks letter that user is shown by the corresponding page of Wi-Fi public platform
Breath carries out the selection of accessible Wi-Fi network, as shown in fig. 6, when user believes the first Wi-Fi network of correspondence that the page is shown
The first Wi-Fi network (Starbucks Coffee) of breath carries out clicking operation and (sends for Starbucks Coffee net
The incoming instruction of network) when, the clicking operation of terminal response user, namely the network insertion instruction of response user's triggering, access should
First Wi-Fi network.It should be noted that scanning and access to Wi-Fi network, are by calling the realization of JS interface to pass through
The scanning of Wi-Fi program module and access Wi-Fi network.
In actual implementation, the method can also include: that first WLAN is presented based on the page
Network insertion process.In one embodiment, network insertion process may include: to establish connection, proof of identity, distribution network protocol
Address (IP, Internet Protocol) etc.;It is illustrated in figure 7 and Starbucks Coffee network is shown based on the page
Connection procedure schematic diagram, Fig. 8 show based on the page show the successful boundary of Starbucks Coffee network insertion
Face schematic diagram.
Using the above embodiment of the present invention, user is realized by concern public platform carries out Wi-Fi by the page of public platform
The scanning and access of network so, it is possible quickly to solve version problem on line by modifying and issuing the page;Eliminate user
The trouble of independent utility, the opposite memory for expanding user terminal are downloaded, user closes the public platform page and exits, and is not in
Application program is in running background to puzzlements such as shortening cruise duration caused by user security risk, the operating rates for reducing other application;And by
Redundancy is not present in the page of public platform, user experience will not be provided to user's advertisement information etc..
Embodiment two
The embodiment of the invention provides a kind of wireless local area network access method, the method is applied to terminal, and Fig. 9 is this hair
The flow diagram of wireless local area network access method in bright embodiment, as shown in figure 9, WLAN connects in the embodiment of the present invention
Entering method includes:
Step 201: terminal establishes the login account of social client and the incidence relation using account of social networks.
In actual implementation, terminal establishes the login account of client and the application account of social networks by social client
Number incidence relation process, by social client be wechat client for, as the login account of the wechat client with
The process for realizing binding in wechat background server using account of social networks, specifically includes:
Terminal (social client) sends the association request for establishing the incidence relation to background server, so that server
The login account of social client and the incidence relation using account of social networks are established based on the association request;
Terminal receives the response message being successfully associated that background server returns, realize the login account of social client with
Social networks using account background server binding.
It is QQ client account (i.e. user account of the user when the QQ client registers), society with the login account of client
Hand over the application account of network for for QQ Wi-Fi public platform, user realizes the pass to QQ Wi-Fi public platform based on QQ client
Note, that is, establish the incidence relation of QQ client account QQ Wi-Fi public platform.
Step 202: operation using account of the response for the social networks loads the application account of the social networks
Number corresponding page.
Here, the kernel with browsing service ability is built-in in actual implementation, in social client, in an embodiment
In can for Tencent browsing service (TBS, Tencent Browser Service) kernel, social client have browsing
In the kernel process of service ability, the application account by the kernel loads social networks with browsing service ability is corresponding
The page, to access WLAN by the page.
Example described in subsequent steps 201, when user carries out clicking operation based on the QQ Wi-Fi public platform of concern,
The corresponding page of QQ Wi-Fi public platform is loaded in QQ client, with the function of using the page to provide, in the present embodiment,
The corresponding page of QQ Wi-Fi public platform can provide the function of scanning and the access to terminal surrounding Wi-Fi network for user.
Step 203: the WLAN information collection including at least one WLAN information is obtained based on the page
It closes.
Here, corresponding at least one is wireless at least one described WLAN information for the affiliated terminal of social client
In the coverage area of local area network.
In practical applications, this step can specifically include:
The operation for the page is responded, scan instruction is generated, is scanned based on the scan instruction and supports access extremely
A few WLAN, obtains at least one WLAN information;
Based at least one described WLAN information generate WLAN information aggregate, with based on the page into
Row display;Wherein, the mode for carrying out the display can be the display of list mode, however it is not limited to this kind of display mode.
One example are as follows: user is carried out based on " Wi-Fi assistant " key that the corresponding page of QQ Wi-Fi public platform is shown
It clicks, generates Wi-Fi scan instruction, terminal is based on the Wi-Fi scan instruction and is positioned, and scans the Wi-Fi net around itself
Network obtains at least one corresponding Wi-Fi network information of at least one Wi-Fi network;It should be noted that a Wi-Fi
The network information may include multiple nets relevant to corresponding Wi-Fi network with Wi-Fi network information described in embodiment one
Network information, such as: SSID, signal strength, source, access way.
When terminal scans to obtain Wi-Fi network, the corresponding multiple Wi-Fi network information of multiple Wi-Fi networks generate Wi-
Fi network information set, and multiple Wi-Fi network information are shown in a manner of list based on the QQ Wi-Fi public platform page, for
User selects.
Step 204: operation of the response for the first WLAN information sends the access request of the first WLAN
Give Wi-Fi background server.
Step 205: receiving the first network connection for correspondence first Wi-Fi network that Wi-Fi background server returns
Parameter.
Based on the above embodiment of the present invention, in practical applications, what user was shown by the corresponding page of Wi-Fi public platform
Multiple Wi-Fi network information carry out the selection of accessible Wi-Fi network, as the first Wi-Fi of correspondence that user shows the page
When first Wi-Fi network of the network information carries out clicking operation, the clicking operation of terminal response user is communicated by preset data
The access request that agreement sends the first Wi-Fi network gives Wi-Fi background server, receives corresponding first Wi-Fi network
First network Connecting quantity accesses first Wi-Fi network based on the first network Connecting quantity;Here, in practical reality
Shi Shi, Wi-Fi background server store the mapping relations of multiple groups Wi-Fi network and network connection parameter.
Wherein, above-mentioned network connection parameter can be the connection key of Wi-Fi network in actual implementation, that is, Wi-Fi
Background server stores multiple groups Wi-Fi network and the mapping relations for being connected to the network key;And at least partly Wi-Fi net stored
The network connection key of network is obtained by terminal is shared;
Correspondingly, the method also includes:
By preset data communication protocol, the second network connection parameter for sending the second WLAN extremely services terminal
Device to share the second network connection parameter of second WLAN, and obtains the Virtual Service that server provides.One
Example are as follows: terminal sends the network connection key of the second Wi-Fi network to Wi-Fi background server, to share the 2nd Wi-Fi net
The network connection key of network, and the Virtual Service of Wi-Fi background server offer is provided.In practical applications, the backstage Wi-Fi takes
After business device receives the network connection key of user sharing, can the network connection key to user sharing carry out safety and examine
Core, to ensure the safety of corresponding network;The Virtual Service can be embodied in the form of following: discount coupon, Q coin, user integral
Deng.User can be guided actively to share the network connection key of Wi-Fi network by way of providing Virtual Service for user, mentioned
High user shares enthusiasm.Since the network connection key of Wi-Fi background server storage is obtained by user sharing, rather than
It steals to obtain using HACK technology as certain Wi-Fi are applied, and then increases internet security.
Certainly, in practical applications, the voluntary of information sharing is carried out for user, can also includes:
Terminal is sent the request cancelled to the second network connection parameter and shared and is extremely serviced by preset data communication protocol
Device, to cancel the second network connection parameter for sharing second WLAN, even if server deletes the second net of storage
Network Connecting quantity.
Step 206: first WLAN is accessed based on first network Connecting quantity.
Based on the above embodiment of the present invention, in actual implementation, this step be can specifically include:
Load is packaged with the interface of webpage function and terminal function, is based on the first network Connecting quantity, described in calling
Interface accesses first WLAN.Above-mentioned example in the embodiment of the present invention is connected, terminal loads are packaged with webpage function
With the JS interface (the mutual calling that can realize webpage function and terminal local function by JS interface) of terminal function, it is based on institute
The network connection key for stating the first Wi-Fi network calls the JS interface to access the Wi-Fi network.
Based on the above embodiment of the present invention, in practical applications, the method can also include:
The application account of the social networks is sent to the login account by the sharing interface for calling the social client
Target user in number corresponding social networks, with realize social networks using the shared of account;Wherein, the sharing interface
It can be wechat sharing interface, QQ sharing interface, mail sharing interface, blog sharing interface etc..Illustratively, user is based on working as
Wi-Fi public platform is shared with wechat good friend by wechat client by the account of the wechat client of preceding login, realizes that Wi-Fi is public
Many numbers shared, in this way, allowing the user shared to be based on the Wi-Fi public platform easily and efficiently realizes WLAN
Access.
Using the above embodiment of the present invention, user is realized by concern public platform carries out Wi-Fi by the page of public platform
The scanning and access of network so, it is possible quickly to solve version problem on line by modifying and issuing the page;Eliminate user
The trouble of independent utility, the opposite memory for expanding user terminal are downloaded, user closes the public platform page and exits, and is not in
Application program is in running background to puzzlements such as shortening cruise duration caused by user security risk, the operating rates for reducing other application;And by
Redundancy is not present in the page of public platform, user experience will not be provided to user's advertisement information etc..User is based on
The key that the page of public platform use when the access of Wi-Fi network increases internet security as obtained by user sharing;
And user is not necessarily to know and be manually entered key during accessing Wi-Fi network, and user is made to be more convenient, more efficiently realize
The access of WLAN, user experience are more preferable.
Embodiment three
The embodiment of the invention provides a kind of wireless local area network access method, Figure 10 is wireless local area in the embodiment of the present invention
The flow diagram of network access method, Figure 11 are the system architecture signal of wireless local area network access method in the embodiment of the present invention
Figure, by taking the application account of social networks is Wi-Fi public platform, social client is wechat client as an example, the wechat client
In be integrated with TBS kernel, which includes Wi-Fi scan module, cipher inquiry module and Wi-Fi connection module;In conjunction with figure
10, shown in Figure 11, wireless local area network access method includes: in the embodiment of the present invention
Step 301: wechat client establishes the login account of wechat client and the incidence relation of Wi-Fi public platform.
In practical applications, the operation of the concern Wi-Fi public platform of the triggering of wechat client end response user, sends concern
Wechat background server is given in the request of the Wi-Fi public platform, and then realizes stepping on for wechat client in wechat background server
Record the binding of account and Wi-Fi public platform.
Step 302: operation of the response for the Wi-Fi public platform loads the corresponding page of the Wi-Fi public platform.
Here, wechat client is allowed a user to by the built-in corresponding page of TBS kernel loads Wi-Fi public platform
The function of enough being provided using the public platform, in the present embodiment, the corresponding page of QQ Wi-Fi public platform can provide for user
To the function of scanning and the access of terminal surrounding Wi-Fi network.
Step 303: the Wi-Fi network information aggregate including at least one Wi-Fi network information is obtained based on the page.
In actual implementation, the Wi-Fi scan module in TBS kernel receives response user's operation by the page
The scan instruction of generation carries out the scanning of Wi-Fi network namely right by Wi-Fi program module by calling JS interface to realize
The Wi-Fi network of the support access of covering terminal is scanned, and obtains at least one Wi-Fi network information;
At least one Wi-Fi network information based on acquisition generates Wi-Fi network information aggregate, in the form of a list in institute
It states and is shown on the page.
Step 304: operation of the response user for the first Wi-Fi network information, the access for sending the first Wi-Fi network are close
Code inquiry request gives Wi-Fi background server.
Based on the above embodiment of the present invention, in practical applications, what user was shown by the corresponding page of Wi-Fi public platform
Multiple Wi-Fi network information carry out the selection of accessible Wi-Fi network.
In actual implementation, Wi-Fi background server stores the mapping relations of multiple groups Wi-Fi network and access pin.
And the network connection key of at least partly Wi-Fi network stored is obtained by terminal is shared;Correspondingly, the method also includes:
Terminal sends the network connection key of the second Wi-Fi network to Wi-Fi background server, to share the 2nd Wi-Fi
The network connection key of network, and the Virtual Service of Wi-Fi background server offer is provided.In practical applications, described virtual
Service can be embodied in the form of following: discount coupon, Q coin, user integral etc..It can be with by way of providing Virtual Service for user
Guidance user actively shares the network connection key of Wi-Fi network, improves user and shares enthusiasm.Due to Wi-Fi background service
The network connection key of device storage is obtained by user sharing, rather than is stolen as certain Wi-Fi are applied using HACK technology
It arrives, and then increases internet security.
Step 305: receiving the access pin for the first Wi-Fi network that Wi-Fi background server returns.
Step 306: the first Wi-Fi network is accessed based on the access pin.
Based on the above embodiment of the present invention, in practical applications, terminal loads are packaged with webpage function and terminal function
JS interface calls the JS interface to access the Wi-Fi network, such as Figure 12 based on the access pin of first Wi-Fi network
It show the corresponding page of public platform and realizes that passing through Wi-Fi program module accesses Wi- by the JS interface for calling TBS kernel to provide
Fi network.
In practical applications, user can also realize the network insertion to public platform and Wi-Fi network based on wechat client
The sharing of information, comprising:
The sharing interface for calling wechat client, the network access information of Wi-Fi public platform or Wi-Fi network is sent to
Target user in the corresponding social networks of the login account of wechat client, to realize Wi-Fi public platform and Wi-Fi network
Network access information is shared;Here sharing interface can for wechat sharing interface, QQ sharing interface, mail sharing interface,
Blog sharing interface etc..Illustratively, by calling the wechat sharing interface of wechat client, Wi-Fi public platform is shared with
The corresponding one or more wechat good friends of the login account of wechat client, or the QQ sharing interface of wechat client is called,
The corresponding one or more QQ friends of the login account that Wi-Fi public platform is shared with QQ client.In this way, to be shared
User can easily and efficiently realize the access of WLAN based on the Wi-Fi public platform.Referring specifically to following steps.
Step 307: pulling the associated social networks chain of login account of the wechat client, be based on the social networks
Chain determines that information shares object.
Here, in practical applications, after user accesses Wi-Fi network by Wi-Fi public platform, acquisition can also be shared
Wi-Fi network information is to the good friend in social networks chain, so that the Wi-Fi network information access Wi- that good friend is obtained based on sharing
Fi network (what needs to be explained here is that the terminal of the user shared need to be in coverage area of the Wi-Fi network of sharing).Such as
Figure 13 a to Figure 13 c show user and determines that Wi-Fi network information shares object based on the social networks chain of wechat client account
Schematic diagram.
Step 308: the network access information and Wi-Fi public platform for sending first Wi-Fi network are to the information point
Enjoy object.
Here, user can directly share the network access information and Wi-Fi of the first Wi-Fi network by wechat client
Public platform shares object to the information that user selectes, so that the information shares the first Wi-Fi net that object is obtained based on sharing
The network access information of network is directly accessed the first Wi-Fi network, as shown in figure 14, or makes information share object and is based on Wi-
The Wi-Fi network of Fi public platform access own adaptation.Wherein, the network access information of the first Wi-Fi network may include: first
The information such as the SSID and access pin of Wi-Fi network.Share the letter that object is obtained based on sharing as shown in figure 15 for the information
The interface schematic diagram of breath access Wi-Fi network.
Using the above embodiment of the present invention, the integrated social client (wechat client) on the subscriber terminal of TBS kernel
In, user realizes the scanning and access that Wi-Fi network is carried out by the page of public platform by concern public platform, so, it is possible
Version problem on line is quickly solved by modifying and issuing the page;The trouble that user downloads independent utility is eliminated, it is opposite to expand
The big memory of user terminal, user close the public platform page and exit, be not in application program in running background to user
Caused by shortening cruise duration, reduce the puzzlement such as operating rate of other application;And since redundancy is not present in the page of public platform
Information will not provide user experience to user's advertisement information etc..User carries out Wi-Fi net based on the page of public platform
The access pin used when the access of network increases internet security as obtained by user sharing;And user is in access Wi-Fi net
Without knowing and being manually entered password during network, it is more convenient user, more efficiently realizes the access of WLAN, use
Family experience is more preferable.User can also be given after connecting Wi-Fi network based on the social network relationships chain of itself sharing Wi-Fi network information
Good friend makes good friend that Wi-Fi network easily and efficiently be added, and further improves the experience of user.
Example IV
The embodiment of the invention provides a kind of wireless local area network access methods, during implementing this method, Wi-Fi service
User is supplied to by way of public platform, user is when needing Wi-Fi to service, it is only necessary to pay close attention to by social client
Public platform can check the public Wi-Fi of surrounding, as shown in figure 4, clicking the work that the page is presented after user opens public platform
Has the i.e. openable Wi-Fi list shown in the form of web pages of button " Wi-Fi assistant " on column, user can click in list
Any Wi-Fi is attached.As shown in Fig. 5 to Fig. 8.
The system architecture diagram for implementing the above-mentioned wireless local area network access method of the embodiment of the present invention is as shown in figure 11, and Wi-Fi is helped
The hand page shows that TBS kernel is built in social networking application in the public platform of social networking application, TBS kernel and other
It is communicated using agreement can be passed through with Wi-Fi service background, carries out data exchange.Wi-Fi helper page and TBS kernel only have user
It could survive during opening the page, so running background power consumption, push will not be brought to bother the drawbacks such as information.
Specifically, in practical applications, the Wi-Fi service background in system at least has following function:
1) response cryptogram inquiry request, i.e. TBS terminal inquire whether some Wi-Fi has password by agreement request.
2) store and update the password of Wi-Fi, i.e., in the database by the Wi-Fi password storage of user sharing, or response
The cancellation sharing request of user deletes Wi-Fi password corresponding in database.Wi-Fi password is by other application or to put down
Platform is collected, main to pass through reward user integral, provide discount coupon, Q coin and other preferential, guidance user actively sharings.
For the TBS kernel being built in terminal, it is mainly used for the page being connected in the backstage Wi-Fi and public platform, in reality
In the application of border, at least have following function:
1) Wi-Fi is scanned: by calling JS interface to call the Wi-Fi scanning function of Wi-Fi program module, end of scan week
It is with which Wi-Fi, these Wi-Fi are checked and selected for user to user by page presentation.
2) cipher inquiry: after user selects some Wi-Fi in connection scan list, TBS can be by agreement to Wi-Fi
The corresponding password of the Wi-Fi is inquired in service background request, and is received and returned the result.
3) Wi-Fi connection: if TBS inquires the password of Wi-Fi, by calling JS interface to call Wi-Fi program mould
The Wi-Fi connection function of block initiates the connection, and otherwise prompts user.
Mainly include two parts information for the Wi-Fi helper page shown in the form of public platform:
1) terminal: being scanned the Wi-Fi of surrounding, shown in the form of a list by Wi-Fi list, marks the phase of Wi-Fi
It closes information, such as supplier's title, signal strength, whether has password etc., check and select for user.
2) it shows Wi-Fi connection process: when user selects to connect some Wi-Fi, showing connection procedure and current state.
Using the above embodiment of the present invention, the inquiry and connection service of Wi-Fi are provided for user in the form of public platform, it is main
It wants advantage to be embodied in: exempting to install, user is without installing independent application;Faster product renewing and problem feedback, public platform mention
The problem of service of confession is shown in the form of the page, product form and user feedback can be fast by modifying and issuing the page
Speed is repaired;Safer, the Wi-Fi information of operation passes through user sharing form and obtains, and there is no Hack technology, to steal user close
Code collects the behaviors such as user information;It is salubriouser, show that without other redundancies, it is strong not to bind other for list, the connection procedure page
The information of customer consumption processed, user close the public platform page and exit, and there is no running background, push to bother the behaviors such as information.
Embodiment five
The embodiment of the invention provides a kind of Wireless LAN access devices, and as shown in figure 16, device includes:
Unit 40 is established, for establishing the login account of social client and being associated with using account of social networks
System;
Loading unit 41, for responding the operation using account for the social networks based on the incidence relation,
Load the corresponding page of application account of the social networks;
Acquiring unit 42, for obtaining the WLAN including at least one WLAN information based on the page
Information aggregate;The affiliated terminal of social client is at least one corresponding wireless local area of at least one described WLAN information
In the coverage area of net;
Access unit 43 is based on first wireless local area for responding the operation for the first WLAN information
Corresponding first WLAN of first WLAN information described in net information access.
In one embodiment, the acquiring unit 42 is also used to respond the operation for the page, generates scanning and refers to
It enables, at least one WLAN for supporting access is scanned based on the scan instruction, obtain at least one WLAN letter
Breath;
WLAN information aggregate is generated based at least one described WLAN information.
In one embodiment, the access unit 43 is also used to based on the first WLAN information, by default
Data communication protocol sends the access request of first WLAN;
Receive the first network Connecting quantity of corresponding first WLAN;
First WLAN is accessed based on the first network Connecting quantity.
In one embodiment, the access unit 43 is also used to load the interface for being packaged with webpage function and terminal function;
Based on the first network Connecting quantity, the interface is called to access first WLAN.
In one embodiment, the access unit 43 is also used to the multiple groups WLAN and net stored based on server
The mapping relations of network Connecting quantity obtain the first network connection ginseng for first WLAN that the server is sent
Number;
Wherein, the network connection parameter of at least partly WLAN of the server storage is obtained by terminal is shared.
In one embodiment, the access unit 43 is also used to send the second wireless office by preset data communication protocol
Second network connection parameter of domain net is to server, to share the second network connection parameter of second WLAN.
In one embodiment, the access unit 43, is also used to be loaded with the interface of sharing function, described in calling
Interface with sharing function shares the first WLAN information.
In one embodiment, described device further include:
Sharing unit 44, for calling the sharing interface of the social client, by the application account of the social networks
The target user being sent in the corresponding social networks of the login account.
The embodiment of the invention provides a kind of Wireless LAN access devices, comprising:
Memory, for storing executable program;
Processor, realization when for by executing the executable program stored in the memory:
Establish the login account of social client and the incidence relation using account of social networks;
Based on the incidence relation, the operation using account for the social networks is responded, the social network is loaded
The corresponding page of application account of network;
The WLAN information aggregate including at least one WLAN information is obtained based on the page;Social visitor
The affiliated terminal in family end is in the coverage area of at least one at least one corresponding WLAN of WLAN information;
Operation for the first WLAN information is responded, based on described in the first WLAN information access the
Corresponding first WLAN of one WLAN information.
The processor is also used to realization when by executing the executable program stored in the memory:
The operation for the page is responded, scan instruction is generated, is scanned based on the scan instruction and supports access extremely
A few WLAN, obtains at least one WLAN information;
WLAN information aggregate is generated based at least one described WLAN information.
The processor is also used to realization when by executing the executable program stored in the memory:
Based on the first WLAN information, first WLAN is sent by preset data communication protocol
Access request;
Receive the first network Connecting quantity of corresponding first WLAN;
First WLAN is accessed based on the first network Connecting quantity.
The processor is also used to realization when by executing the executable program stored in the memory:
Load is packaged with the interface of webpage function and terminal function;
Based on the first network Connecting quantity, the interface is called to access first WLAN.
The processor, realizes when being also used to by executing the executable program stored in the memory and includes:
The mapping relations of multiple groups WLAN and network connection parameter based on server storage, obtain the server
The first network Connecting quantity of first WLAN sent;
Wherein, the network connection parameter of at least partly WLAN of the server storage is obtained by terminal is shared.
The processor, realizes when being also used to by executing the executable program stored in the memory and includes:
By preset data communication protocol, the second network connection parameter of the second WLAN is sent to server, with
Share the second network connection parameter of second WLAN.
The processor is also used to call the sharing interface of the social client, by the application account of the social networks
The target user number being sent in the corresponding social networks of the login account.
The processor is also used in the kernel process with browsing service ability of the social client, passes through
The corresponding page of application account of social networks described in the kernel loads that there is browsing service ability, to pass through the page
Access WLAN.
The embodiment of the invention also provides a kind of readable storage medium storing program for executing, are stored with executable program, the executable program
Wireless local area network access method described in the above embodiment of the present invention is realized when being executed by processor.
Figure 17 shows an optional composite structural diagram of Wireless LAN access device provided in an embodiment of the present invention,
The Wireless LAN access device can be located at terminal, as shown in figure 17, WLAN access provided in an embodiment of the present invention
Device 800 includes one or more of the following components: processing component 802, memory 804, I/O interface 812 and communication component
814。
The integrated operation of the usually control Wireless LAN access device 800 of processing component 802, is such as exhaled with display, phone
Cry, data communication, camera shooting and information record etc. associated operation.Processing component 802 may include one or more places
Device 820 is managed to execute executable program, to complete all or part of the steps of the above method.In addition, processing component 802 can wrap
One or more modules are included, convenient for the interaction between processing component 802 and other assemblies.
Memory 804 can be by any kind of volatibility or non-volatile memory device or their combination Lai real
It is existing.Wherein, nonvolatile memory can be read-only memory (ROM, Read Only Memory), programmable read only memory
(PROM, Programmable Read-Only Memory) etc..Volatile memory can be random access memory (RAM,
Random Access Memory), it is used as External Cache.By exemplary but be not restricted explanation, many forms
RAM it is available, such as static random access memory (SRAM, Static Random Access Memory), synchronize it is static with
Machine accesses memory (SSRAM, Synchronous Static Random Access Memory) etc..The embodiment of the present invention is retouched
The memory 804 stated is intended to include but is not limited to the memory of these and any other suitable type.
Memory 804 is for storing various types of data to support the operation of Wireless LAN access device 800.These
The example of data includes: any executable program for operating on Wireless LAN access device 800, such as operating system and
Application program;Contact data;Telephone book data;Message;Picture;Video etc..Wherein, operating system includes various system journeys
Sequence, such as ccf layer, core library layer, driving layer etc., for realizing various basic businesses and the hardware based task of processing.It answers
It may include various application programs, such as media player (Media Player), browser (Browser) etc. with program, use
In the various applied business of realization.Realize that the program of present invention method may include in the application.
Power supply module 806 provides electric power for the various assemblies of Wireless LAN access device 800.Power supply module 806 can be with
Including power-supply management system, one or more power supplys and other with for Wireless LAN access device 800 generate, management and point
With the associated component of electric power.
Information exchange of the I/O interface 812 between processing component 802 and peripheral interface module provides interface, above-mentioned periphery
Interface module can be keyboard, mouse, trace ball, click wheel, key, button etc..These buttons may include, but are not limited to: homepage
Button, volume button, start button and locking press button.
Communication component 814 between Wireless LAN access device 800 and other equipment wired or wireless way it is logical
Letter.Wireless LAN access device 800 can access the wireless network based on communication standard, as Wi-Fi, 2G, 3G, 4G or they
Combination.In one exemplary embodiment, communication component 814 is received via broadcast channel from external broadcasting management system
Broadcast singal or broadcast related information.In one exemplary embodiment, the communication component 814 further includes near-field communication
(NFC, Near Field Communication) module, to promote short range communication.For example, can be known based on radio frequency in NFC module
Not (RFID, Radio Frequency Identification) technology, infrared data tissue (IrDA, Infrared Data
Association) technology, ultra wide band (UWB, Ultra Wide Band) technology, bluetooth (BT, Blue Tooth) technology or its
His technology is realized.
The method that the embodiments of the present invention disclose can be applied in processor 820, or be realized by processor 820.
Processor 820 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 820 or the instruction of software form.Above-mentioned processing
Device 820 can be general processor, digital signal processor (DSP, Digital Signal Processor) or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 820 may be implemented or hold
Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware decoding
Reason device executes completion, or in decoding processor hardware and software module combine and execute completion.Software module can be located at
In storage medium, which is located at memory 804, and processor 820 reads the information in memory 804, in conjunction with its hardware
The step of completing preceding method.
In the exemplary embodiment, Wireless LAN access device 800 can be by the dedicated integrated electricity of one or more application
Road (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD,
Programmable Logic Device), Complex Programmable Logic Devices (CPLD, Complex Programmable Logic
Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control
Device, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronics member
Part is realized, for executing preceding method.
It need to be noted that: above is referred to the descriptions of Wireless LAN access device, are classes with above method description
As, the beneficial effect with method describes, and does not repeat them here.It is thin for undisclosed technology in Installation practice of the present invention
Section, please refers to the description of embodiment of the present invention method.
It will be appreciated by those skilled in the art that: realize that all or part of the steps of above method embodiment can pass through journey
Sequence instructs relevant hardware to complete, and program above-mentioned can be stored in a computer readable storage medium, which exists
When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: flash memory device, RAM,
The various media that can store program code such as ROM, magnetic or disk.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product
When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented
The technical solution of example substantially in other words can be embodied in the form of software products the part that the relevant technologies contribute,
The computer software product is stored in a storage medium, including some instructions are used so that computer installation (can be with
It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention.
And storage medium above-mentioned includes: that flash memory device, RAM, ROM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.