CN110691397A - WIFI sharing method, WIFI connection device and computer-readable storage medium - Google Patents

WIFI sharing method, WIFI connection device and computer-readable storage medium Download PDF

Info

Publication number
CN110691397A
CN110691397A CN201810730285.2A CN201810730285A CN110691397A CN 110691397 A CN110691397 A CN 110691397A CN 201810730285 A CN201810730285 A CN 201810730285A CN 110691397 A CN110691397 A CN 110691397A
Authority
CN
China
Prior art keywords
wifi
terminal
sharing
identifier
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810730285.2A
Other languages
Chinese (zh)
Other versions
CN110691397B (en
Inventor
郭德安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810730285.2A priority Critical patent/CN110691397B/en
Publication of CN110691397A publication Critical patent/CN110691397A/en
Application granted granted Critical
Publication of CN110691397B publication Critical patent/CN110691397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a WIFI sharing method, a WIFI sharing device, a computer readable storage medium and computer equipment, wherein the method comprises the following steps: the first terminal acquires a WIFI sharing request; the first terminal acquires a WIFI identifier according to the WIFI sharing request; the first terminal generates WIFI sharing information according to the WIFI identification, and the WIFI sharing information is used for a second terminal to connect WIFI; and the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect WIFI according to the WIFI connection request. By the method, the WIFI sharing efficiency can be improved. In addition, a WIFI connection method, a WIFI connection device, a computer readable storage medium and a computer device are also provided.

Description

WIFI sharing method, WIFI connection device and computer-readable storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a WIFI sharing method, a WIFI connection device, a computer-readable storage medium, and a computer device.
Background
WIFI is a technology allowing electronic equipment to be connected to a wireless local area network, and nowadays all electronic equipment such as smart phones, tablet computers and notebook computers support WIFI internet surfing, and is the most widely used wireless network transmission technology. With the wide application of WIFI technology, portable WIFI devices have emerged. The portable WIFI equipment is equipment which is networked through the SIM card and shares hot spots, and can meet the requirement of business and tourist people in business and business on network dependence.
Typically, multiple terminals may share the same WIFI with them. However, in the conventional technology, when a user wants to share the WIFI with others, the SSID (service set identifier) and the password can be shared to others offline. With this conventional approach, sharing efficiency of WIFI sharing is low.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a WIFI sharing method, apparatus, computer readable storage medium and computer device capable of improving WIFI sharing efficiency.
A WIFI sharing method comprises the following steps:
the first terminal acquires a WIFI sharing request;
the first terminal acquires a WIFI identifier according to the WIFI sharing request, wherein the WIFI identifier is a unique identifier generated according to WIFI login information;
the first terminal generates WIFI sharing information according to the WIFI identification, and the WIFI sharing information is used for a second terminal to connect WIFI;
and the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect WIFI according to the WIFI connection request.
A WIFI sharing device, comprising:
the sharing request acquisition module is used for acquiring a WIFI sharing request;
the first WIFI identifier acquisition module is used for acquiring a WIFI identifier according to the WIFI sharing request, wherein the WIFI identifier is a unique identifier generated according to WIFI login information;
the WIFI sharing information generating module is used for generating WIFI sharing information by the first terminal according to the WIFI identification, and the WIFI sharing information is used for connecting a second terminal with WIFI;
and the WIFI authorization module is used for receiving a WIFI connection request generated by the second terminal through the WIFI sharing information and authorizing the second terminal to be connected with WIFI according to the WIFI connection request.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
the first terminal acquires a WIFI sharing request;
the first terminal acquires a WIFI identifier according to the WIFI sharing request, wherein the WIFI identifier is a unique identifier generated according to WIFI login information;
the first terminal generates WIFI sharing information according to the WIFI identification, and the WIFI sharing information is used for a second terminal to connect WIFI;
and the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect WIFI according to the WIFI connection request.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
the first terminal acquires a WIFI sharing request;
the first terminal acquires a WIFI identifier according to the WIFI sharing request, wherein the WIFI identifier is a unique identifier generated according to WIFI login information;
the first terminal generates WIFI sharing information according to the WIFI identification, and the WIFI sharing information is used for a second terminal to connect WIFI;
and the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect WIFI according to the WIFI connection request.
A WIFI connection method comprises the following steps:
the second terminal generates a WIFI connection request by triggering WIFI sharing information, wherein the WIFI sharing information carries a WIFI identifier, and the WIFI identifier is a unique identifier generated according to WIFI login information;
the second terminal acquires a WIFI identifier according to the WIFI connection request;
and when the second terminal detects that the second terminal is authorized according to the WIFI identification, acquiring the WIFI login information according to the WIFI identification, and connecting WIFI according to the WIFI login information.
A WIFI connection apparatus comprising:
the WIFI connection request module is used for the second terminal to generate a WIFI connection request by triggering WIFI sharing information, the WIFI sharing information carries a WIFI identifier, and the WIFI identifier is a unique identifier generated according to WIFI login information;
the second WIFI identifier acquisition module is used for acquiring a WIFI identifier according to the WIFI connection request;
and the WIFI connection module is used for acquiring the WIFI login information according to the WIFI identification when the authorization is detected according to the WIFI identification, and connecting WIFI according to the WIFI login information.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
the second terminal generates a WIFI connection request by triggering WIFI sharing information, wherein the WIFI sharing information carries a WIFI identifier, and the WIFI identifier is a unique identifier generated according to WIFI login information;
the second terminal acquires a WIFI identifier according to the WIFI connection request;
and when the second terminal detects that the second terminal is authorized according to the WIFI identification, acquiring the WIFI login information according to the WIFI identification, and connecting WIFI according to the WIFI login information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
the second terminal generates a WIFI connection request by triggering WIFI sharing information, wherein the WIFI sharing information carries a WIFI identifier, and the WIFI identifier is a unique identifier generated according to WIFI login information;
the second terminal acquires a WIFI identifier according to the WIFI connection request;
and when the second terminal detects that the second terminal is authorized according to the WIFI identification, acquiring the WIFI login information according to the WIFI identification, and connecting WIFI according to the WIFI login information.
According to the WIFI sharing method, the WIFI sharing device, the computer readable storage medium and the computer equipment, the first terminal is used for obtaining the WIFI sharing request, the WIFI identifier is obtained according to the WIFI sharing request, the WIFI sharing information can be generated according to the WIFI identifier, so that the WIFI sharing information is shared to the second terminal, the second terminal can be connected with WIFI through the WIFI sharing information, and compared with a mode that SSID and passwords can only be transmitted through lines in the prior art, the mode that the WIFI sharing information is transmitted on lines can improve the WIFI sharing efficiency.
According to the WIFI connection method and device, the computer-readable storage medium and the computer device, the second terminal is connected with the WIFI through triggering the WIFI sharing information, and when authorization is detected according to the WIFI identification carried by the WIFI sharing information, the WIFI login information can be acquired, so that the WIFI is automatically connected. Compared with the mode that the WIFI can be connected only by inputting the SSID and the password transmitted by offline in the traditional technology, the mode is more convenient, and therefore the WIFI connection efficiency is improved.
Drawings
Fig. 1 is an application environment diagram of a WIFI sharing method and a WIFI connection method in an embodiment;
fig. 2 is a schematic flowchart illustrating a WIFI sharing method according to an embodiment;
fig. 3 is a schematic flowchart illustrating connection of a first terminal to WIFI in one embodiment;
fig. 4 is a schematic flowchart illustrating a WIFI sharing method according to another embodiment;
fig. 5 is a schematic flowchart illustrating a WIFI sharing method according to yet another embodiment;
fig. 6 is a schematic flowchart illustrating a WIFI sharing method in another embodiment;
fig. 7 is a timing diagram illustrating a WIFI sharing method according to an embodiment;
fig. 8 is a timing diagram illustrating a WIFI sharing method according to another embodiment;
fig. 9A is a schematic diagram of a WIFI sharing interface in one embodiment;
fig. 9B is an interface schematic diagram illustrating WIFI sharing information in one embodiment;
fig. 9C is a schematic diagram illustrating a WIFI sharing interface displayed by the second terminal in an embodiment;
FIG. 10A is a diagram that illustrates the overall flow of user interaction, under an embodiment;
fig. 10B is a schematic diagram illustrating an interaction flow of a WIFI manager in one embodiment;
fig. 11 is a schematic flowchart of a WIFI connection method in an embodiment;
fig. 12 is a schematic flowchart of a WIFI connection method in another embodiment;
fig. 13 is a schematic diagram of an interaction flow of a WIFI client in one embodiment;
fig. 14 is a block diagram of a WIFI sharing device in one embodiment;
fig. 15 is a block diagram of a WIFI connection device in one embodiment;
FIG. 16 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The WIFI sharing method and the WIFI connection method provided by the application can be applied to the environment shown in fig. 1. Referring to fig. 1, the application environment includes a WIFI sharing system, which includes a first terminal 110, a WIFI device 120, a second terminal 130, and a server 140. First terminal 110 is connected with WIFI through WIFI device 120, and first terminal 110 can generate WIFI sharing information, shares WIFI to second terminal 130 through WIFI sharing information, and second terminal 130 is connected with WIFI through WIFI sharing information, and WIFI sharing information carries a WIFI identifier. First terminal 110 may share WIFI sharing information to second terminal 130 through server 140, may also directly send WIFI sharing information to second terminal 140 through near field communication, may also transmit WIFI sharing information through modes such as scanning. The first terminal 110 and the second terminal 130 include, but are not limited to, various WIFI-enabled computer devices, laptops, tablets, smart phones, portable wearable devices, and the like. The server 140 may be a single server or a cluster of servers.
In an embodiment, as shown in fig. 2, a WIFI sharing method is provided, which is exemplified by being applied to the first terminal 110 in fig. 1, and specifically includes:
step 202, the first terminal acquires a WIFI sharing request.
The first terminal is a sharing terminal of WIFI, is connected with WIFI equipment, and can be connected with the WIFI through the WIFI equipment to realize internet surfing. In this embodiment, when the first terminal is connected to WIFI for the first time through the WIFI device, the WIFI identifier may be generated through the WIFI device, where the WIFI identifier may be a unique identifier generated by the WIFI device, and may also be a unique identifier generated according to WIFI login information, and the WIFI login information includes an SSID and a password used for connecting to WIFI. Specifically, as shown in fig. 9A, after the first terminal is connected to the WIFI, the WIFI sharing interface may be displayed through the application program, the WIFI sharing button is displayed on the WIFI sharing interface, and a user using the WIFI clicks the WIFI sharing button, so that the first terminal generates the WIFI sharing request through the application program and acquires the WIFI sharing request.
And 204, the first terminal acquires a WIFI identifier according to the WIFI sharing request.
The WIFI identification can be generated by the WIFI equipment, the WIFI identification can be generated again when the WIFI equipment is reset every time, and the WIFI identification is used for connecting WIFI. Specifically, when the first terminal is connected with the WIFI, a WIFI identifier can be generated, and the WIFI identifier and the user identifier are uploaded to the server to be bound. The user identification is used for logging in the application program, and one user identification can be bound with a plurality of WIFI identifications. And if the user identifier and the WIFI identifier have a binding relationship in the server, the user is indicated to have the use permission of the WIFI. Specifically, when the first terminal acquires the WIFI sharing request through the application program, the bound WIFI identifier may be acquired according to the user identifier of the login application program, so that the WIFI sharing information may be generated according to the acquired WIFI identifier.
And step 206, the first terminal generates WIFI sharing information according to the WIFI identifier, and the WIFI sharing information is used for the second terminal to connect WIFI.
The first terminal acquires the WIFI identifier and can generate WIFI sharing information according to the WIFI identifier, wherein the WIFI sharing information can be a WIFI sharing two-dimensional code or a WIFI sharing link and can be displayed in an application program of the first terminal. The WIFI sharing information can be spread in the network, wherein the spreading channel is not limited to instant messaging, social networking, code scanning interaction and the like. As shown in fig. 9B, the WIFI sharing information may be displayed in the application program of the first terminal, and the WIFI sharing information is taken as the WIFI sharing two-dimensional code in fig. 9B as an example, so that the WIFI sharing two-dimensional code may be displayed in the group chat interface of the instant messaging application program. The second terminal can acquire the WIFI sharing information in multiple modes. For example, the first terminal can send the WIFI sharing information to a corresponding application program of the second terminal through the application program; the first terminal can also display WIFI sharing information through an application program, and the second terminal acquires the WIFI sharing information through a scanning mode or a near field communication mode so as to connect WIFI.
And 208, the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect WIFI according to the WIFI connection request.
The second terminal can generate a WIFI connection request through the WIFI sharing information. Specifically, the second terminal can acquire the WIFI identifier according to the WIFI sharing information, and can find the user identifier with the binding relationship according to the WIFI identifier, so that the WIFI connection request can be sent to the first terminal. And the first terminal receives the WIFI connection request and can authorize the second terminal to connect WIFI. The authorization here may be that the first terminal authorizes when generating the WIFI sharing information, and may also authorize the second terminal to connect to the WIFI when the first terminal receives the WIFI connection request.
In the embodiment, the WIFI sharing request is acquired through the first terminal, the WIFI identifier is acquired according to the WIFI sharing request, and the WIFI sharing information can be generated according to the WIFI identifier, so that the WIFI sharing information is shared with the second terminal, the second terminal can be quickly connected with WIFI through the WIFI sharing information, and compared with a mode that SSID and passwords can only be transmitted through lines in the prior art, the mode that the WIFI sharing information is transmitted through lines can improve the WIFI sharing efficiency.
In one embodiment, the WIFI sharing method further includes: the first terminal acquires a WIFI connection request and connects WIFI according to the WIFI connection request; and the first terminal generates a WIFI identifier according to the WIFI login information and sends the WIFI identifier and the user identifier to the server for binding.
In this embodiment, the first terminal is connected to WIFI through WIFI equipment, and the WIFI equipment may be a portable WIFI equipment. Specifically, the two-dimensional code pasted on the WIFI equipment can be scanned through the first terminal, the two-dimensional code carries a preset website, and the equipment identification of the WIFI equipment is used as a parameter. The second terminal identifies the two-dimensional code, can jump to a page of a corresponding application program according to the preset website, displays WIFI login information through the page of the application program, and can be connected with WIFI through the page of the application program. The first terminal acquires the WIFI connection request, requests a preset website through an application program, and takes the user identification as a parameter. And the WIFI equipment receives the WIFI connection request, intercepts the specific website, extracts the user identification, generates a WIFI identification according to the WIFI login information, and sends the user identification, the hardware address of the first terminal of the WIFI identification and the equipment identification of the WIFI equipment to the server together. The server binds the WIFI identifier with the user identifier, informs the WIFI equipment of releasing the flow, and the WIFI equipment adds the hardware address of the first terminal into the white list, so that the first terminal is successfully connected with WIFI, and internet surfing is realized.
In one embodiment, before the first terminal generates the WIFI sharing request, the first terminal needs to connect to the WIFI, so as to acquire the WIFI identifier. The WIFI connected with the first terminal can be fixed WIFI equipment or portable WIFI equipment. Specifically, the first terminal can not jump to a corresponding application program through scanning a two-dimensional code of the WIFI device on the WIFI device, and the WIFI is triggered and connected through the application program.
In an embodiment, as shown in fig. 3, the process of connecting the first terminal to the WIFI specifically includes:
and step 302, identifying the two-dimension code of the WIFI equipment by the first terminal, and skipping to a corresponding application program.
The WIFI equipment two-dimensional code can be pasted on the WIFI equipment, and the WIFI equipment can be portable WIFI equipment or fixed WIFI equipment. The WIFI equipment two-dimensional code comprises a link aiming at the application program, and the equipment identification of the WIFI equipment is used as a link parameter. The application program can perform device management through the SDK provided by the WIFI device manufacturer, and the device management comprises package purchase, SSID (service set identifier) setting, password setting and the like. The first terminal identifies the two-dimensional code of the WIFI device, jumps to a corresponding application program page according to the link in the two-dimensional code, and provides a device management entry on the application program page, for example, a setting page of SSID and password is provided on the application program page.
And 304, the first terminal acquires the WIFI connection request through the application program.
The first terminal provides a WIFI connection button through an application program, the WIFI connection button is clicked, and the first terminal acquires a WIFI connection request.
Step 306, the first terminal requests a preset website through the application program, and takes the user identifier as a parameter of the preset website.
The user identification is used for distinguishing different users in the application program, and the first terminal can remind the user to log in after jumping to the application program, so that the user identification is obtained. The user identifier of the sub-application is a user identifier sharing WIFI, and may also be referred to as a user identifier of a WIFI administrator. The preset website is a specific URL, which is formulated by a developer, and is generally a URL requested by http. When a user clicks the WIFI connection button through an application program, the first terminal requests a specific URL through the application program, and the user identification is used as a parameter.
And 308, intercepting a preset website through the WIFI equipment, extracting a user identifier, and sending the user identifier to a server.
In this embodiment, the authentication management application program is installed in the WIFI device, and after the WIFI device is powered on, the authentication management application program can provide http service locally and can manage all traffic on the WIFI device. Specifically, traffic may be managed by IpTables. The IpTables is a firewall software that manages all traffic on a device. After the WIFI equipment is started, the IpTables can be set through an authentication management application program, so that the WIFI equipment can intercept all requests and modify destination addresses, and then local http service is carried out. And the WIFI equipment intercepts the specific URL through the local http service and extracts the user identification. The WIFI equipment generates a WIFI identifier according to the WIFI login information, can also acquire the hardware address of the first terminal and the equipment identifier of the WIFI equipment, and sends the WIFI identifier, the user identifier, the hardware address of the first terminal and the equipment identifier of the WIFI equipment to the server together.
And step 310, allowing the first terminal to be connected with WIFI after the WIFI equipment receives the notification of the server.
Specifically, after receiving the user identifier, the server finds that the first terminal is in an unbound state, and can bind the user identifier with the WIFI identifier, and also bind the hardware address of the first terminal and the device identifier of the WIFI device with the user identifier. And then the server sends a notification to the WIFI equipment, and an authentication management application program of the WIFI equipment receives the notification and puts through all the traffic of the hardware address of the first terminal. The authentication management application adds the hardware address of the first terminal to the white list by setting the IpTables. Therefore, the first terminal is connected with the WIFI, and internet surfing can be achieved.
Further, in an embodiment, when the first terminal wants to share WIFI, the first terminal may obtain a WIFI sharing request through the application program, obtain a WIFI identifier according to the WIFI sharing request, generate WIFI sharing information according to the WIFI identifier, and then share the WIFI sharing information. Specifically, in an embodiment, the first terminal may share the WIFI sharing information with the friend or the member in the group through an application program, where the WIFI sharing information may be a WIFI sharing two-dimensional code or a WIFI sharing link. The second terminal identifies WIFI sharing information through the application program to obtain a WIFI connection page, and is connected with WIFI through the WIFI connection page. In another embodiment, the first terminal can display the WIFI sharing two-dimensional code through the application program, the second terminal can jump to a corresponding application program page through scanning the WIFI sharing two-dimensional code, a WIFI connection request is generated through the application program page, and WIFI login information is obtained according to the WIFI identification to connect WIFI.
In one embodiment, before the first terminal generates the WIFI sharing information, the second terminal may be connected to WIFI through the WIFI sharing information for permission setting. Specifically, the connection of the WIFI to the second terminal may be completely authorized, or the connection of the WIFI to the second terminal may be authorized after the preset amount transferred by the second terminal is received.
In this embodiment, because the first terminal can share WIFI through the application program, efficiency of WIFI sharing is improved. And because WIFI login information is obtained through network transmission or code scanning through the second terminal, the WIFI login information is kept in a confidential state, and the safety is improved. In addition, the first terminal can be connected with WIFI to the second terminal for permission setting, and the use is flexible.
In one embodiment, the first terminal connects to WIFI according to a WIFI connection request, including: the first terminal identifies the WIFI equipment two-dimensional code through the parent application program and skips to the corresponding sub-application program according to the WIFI equipment two-dimensional code; and acquiring a WIFI connection instruction through the sub-application program, and connecting WIFI according to the WIFI connection instruction. The first terminal acquires a WIFI sharing request, and the method comprises the following steps: the first terminal acquires the WIFI sharing request through the sub-application program.
In an embodiment, as shown in fig. 4, a WIFI sharing method is provided, which is exemplified by being applied to the first terminal in fig. 1, and specifically includes:
and 402, identifying the two-dimension code of the WIFI equipment by the first terminal through the master application program, and skipping to the corresponding sub-application program according to the two-dimension code of the WIFI equipment.
The first terminal runs an operating system, runs a parent application on the operating system, and can generate a child application in an environment provided by the parent application, wherein the child application comprises a child application page. The first terminal can obtain the sub-application identification from a local or server through the parent application.
The operating system is a computer program for managing and controlling hardware and software resources of the terminal, and is the most basic system software directly running on the bare computer of the terminal, and the application program needs to run under the support of the operating system. The parent reference program is an application program for bearing the child application program and provides an environment for realizing the child application program. The parent application is a native application. A native application is an application that can run directly on an operating system. The parent application may be a social application, a specialized application that specifically supports child applications, a gaming application, and the like. Social application programs include instant messaging applications, SNS applications, live applications, short video applications, and the like.
In this embodiment, the WIFI device may be a portable WIFI device, and may also be a fixed WIFI device. The WIFI equipment two-dimensional code can be pasted on the WIFI equipment and comprises a special identifier corresponding to the sub-application program and an equipment identifier of the WIFI equipment. The first terminal can scan the two-dimensional code of the WIFI equipment through the two-dimensional code scanning plug-in the parent application program, and jumps to the corresponding child application program according to the special identifier in the two-dimensional code scanning plug-in. The first terminal can perform WIFI setting through the sub-application program, and the WIFI setting comprises the steps of selecting to purchase an internet surfing package, setting SSID (service set identifier) and passwords and the like.
And step 404, acquiring a WIFI connection instruction through the sub-application program, and connecting WIFI according to the WIFI connection instruction.
The WIFI connection control is provided on the sub-application program page, a WIFI connection instruction is generated by triggering the WIFI connection control, and the first terminal acquires the WIFI connection instruction through the sub-application program. Specifically, the sub-application requests a preset website, and uses the user identifier as a parameter. The user identification is used for logging in the sub-application, and the user identification is used for identifying different users in the same sub-application.
And the WIFI equipment can be set after being started up, and all requests are forcibly transferred to local http service. When a first terminal requests a preset website through a sub-application program, the WIFI equipment can intercept the preset website, acquire a user identifier, generate a WIFI identifier according to WIFI login information, send the user identifier, the WIFI identifier, a hardware address of the first terminal and an equipment identifier of the WIFI equipment to a server together, and bind the WIFI identifier, the user identifier, the hardware address of the first terminal and the equipment identifier of the WIFI equipment in the server.
Then, the server informs the WIFI equipment of releasing the flow, the WIFI equipment receives the notification and sets the notification, the hardware address of the first terminal is added into the white list, and then the first terminal is connected with the WIFI, so that the Internet surfing can be realized.
In step 406, the first terminal obtains a WIFI sharing request through the sub-application.
The first terminal acquires a WIFI sharing request through a WIFI sharing page of the sub-application program, and WIFI login information including an SSID (service set identifier), a password and the like can be displayed in the WIFI sharing page. The WIFI sharing method includes the steps that a control used for generating a WIFI sharing information generation request and a control used for generating a WIFI sharing request can be provided in a WIFI sharing page, and when the control is triggered, the WIFI sharing request is obtained.
And step 408, the first terminal acquires the WIFI identifier according to the WIFI sharing request.
And step 410, the first terminal generates WIFI sharing information according to the WIFI identifier, and the WIFI sharing information is used for the second terminal to connect WIFI.
Before the first terminal acquires the WIFI sharing request, the permission of the second terminal for connecting the WIFI can be set, and the first terminal is set to be connected with the WIFI only by transferring a certain amount and completely allows the second terminal to be connected with the WIFI. The first terminal generates WIFI sharing information according to the WIFI identification, the WIFI sharing information can be a WIFI sharing two-dimensional code and a WIFI sharing link, a special identification of the sub-application program is contained, the special identification can be a specific URL, and the WIFI identification is used as a parameter.
Furthermore, the first terminal can directly display the WIFI sharing information through the sub-application program after generating the WIFI sharing information, for example, the WIFI sharing two-dimensional code is displayed on a sub-application program page. And the WIFI sharing information generated by the sub-application program can be shared by the parent application program. For example, if the parent application is an instant messaging application or a social application, the WIFI sharing information generated by the child application may be shared to friends or a group.
In step 412, the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect to the WIFI according to the WIFI connection request.
And the second terminal acquires the WIFI identifier in the WIFI sharing information and acquires the user identifier bound with the WIFI identifier from the server according to the WIFI identifier. The second terminal can jump to a corresponding sub-application program through the special identification in the WIFI sharing information, a WIFI connection control is displayed in a sub-application program page, and a WIFI connection request is generated by triggering the WIFI connection control.
And the second terminal requests a preset website through the sub-application program and takes the user identification as a parameter. And the WIFI equipment intercepts a preset website, extracts the user identification, and sends the user identification, the hardware address of the second terminal and the equipment identification of the WIFI equipment to the server. And the server receives the user identification and detects that the WIFI identification is bound to the user identification. And if the first terminal generates WIFI sharing information, the second terminal is selected to be completely authorized to connect WIFI. The server informs the WIFI equipment of putting through the flow of the second terminal, the WIFI equipment adds the hardware address of the second terminal into the white list after receiving the notification, and then the second terminal is connected with the WIFI.
When the server detects that the first terminal selects the second terminal to connect with the WIFI when generating the WIFI sharing information, the server needs to carry out numerical value transfer, and then the server generates a corresponding page on a sub-application program of the second terminal and informs the second terminal of carrying out numerical value transfer. The second terminal can perform value transfer through the parent application program, the server informs the WIFI equipment of letting through the flow of the second terminal after receiving the value transfer success message, and the WIFI equipment adds the hardware address of the second terminal into the white list after receiving the notification, so that the second terminal is connected with WIFI.
The server can also notify the first terminal according to the user identification, a notification message that the second terminal needs to be connected with WIFI is displayed in a corresponding page of a sub-application program of the first terminal, and the first terminal can receive an authorization permission instruction of the user through the sub-application program page and send the authorization permission instruction to the server. And after receiving the authorization permission instruction, the server informs the WIFI equipment of putting through the flow of the second terminal, and after receiving the notification, the WIFI equipment adds the hardware address of the second terminal into the white list, so that the second terminal is connected with WIFI.
In this embodiment, because the first terminal can be connected with the WIFI through the sub-application program, the information sharing by the WIFI is transmitted through the sub-application program or the main application program, and the efficiency of the WIFI sharing is improved. And WIFI login information can be transmitted in a mode on a line, so that the safety is improved. The first terminal can authorize the second terminal to connect WIFI completely, and can be set as the second terminal to be connected with WIFI only through numerical value transfer, so that the use is more flexible, and popularization of WIFI equipment is facilitated.
In one embodiment, the WIFI sharing request carries a sharing target user identifier; after the first terminal generates the WIFI sharing information according to the WIFI identifier, the method further comprises the following steps: the method comprises the steps that a first terminal obtains a sharing target user identifier through a parent application program; the first terminal sends WIFI sharing information to a second terminal corresponding to the target sharing user identification according to the sharing target user identification, and the WIFI sharing information is used for the second terminal to display through a parent application program.
Further, in one embodiment, the sharing target user identifier and the user identifier of the sub-application program have a friend relationship or a same group membership.
Specifically, the parent application may be an instant messaging application, a social application, a live application, a short video application, and the like, and the sharing target user identifier may be obtained through the parent application. And the sharing target user identification is used for identifying the target user receiving the WIFI sharing. The first terminal may select a sharing target user identifier through the parent application, where the sharing target user identifier may be a user having a friend relationship chain relationship with a user identifier of a sub-application of the first terminal, or the sharing target user identifier and the user identifier of the sub-application of the first terminal are members in the same group.
The first terminal acquires the sharing target user identification and shares the WIFI sharing information to the sharing target user identification. The first terminal can share the WIFI sharing information through the parent application program. Specifically, the WIFI sharing information can be a WIFI sharing two-dimensional code or a WIFI sharing link, and when the first terminal shares the WIFI sharing two-dimensional code or the WIFI sharing link through the parent application program, the WIFI sharing two-dimensional code or the WIFI sharing link can be displayed on a corresponding page of the parent application program. For example, if the user shares with a friend, the user can display the user in a friend chat interface; the group chat interface can display the group chat interface. The first terminal sends the WIFI sharing information and the sharing target user identification to the server together, the server sends the WIFI sharing information to the corresponding second terminal according to the sharing target user identification, and the second terminal can display the WIFI sharing information through the parent application program. For example, the WIFI sharing two-dimensional code or the WIFI sharing link may be displayed in a friend chat interface or a group chat interface.
In an embodiment, as shown in fig. 5, a WIFI sharing method is provided, which is exemplified by being applied to the first terminal shown in fig. 1, and specifically includes:
and 502, identifying the two-dimension code of the WIFI equipment by the first terminal through the parent application program, and skipping to the corresponding sub-application program according to the two-dimension code of the WIFI equipment.
The WIFI equipment two-dimensional code comprises a special identifier of the sub-application program, and the signature identifier of the WIFI equipment is used as a parameter. The WIFI equipment two-dimensional code can be generated through an interface provided by the parent application program, so that the first terminal can scan and identify the WIFI equipment two-dimensional code through the parent application program and jump to the corresponding child application program according to the special identifier. The sub-application program can perform device management through the SDK provided by the WIFI device manufacturer, and the device management comprises the steps of purchasing an internet surfing package, setting SSID (service set identifier) and passwords and the like.
And step 504, the first terminal acquires a WIFI connection instruction through the sub-application program and connects WIFI according to the WIFI connection instruction.
The first terminal can set an SSID (service set identifier), a password and the like through a page provided by the sub-application program, click a WIFI (wireless fidelity) connection button provided by the sub-application program page, and acquire a WIFI connection instruction. Further, after the WIFI connection instruction is acquired, the first terminal requests a preset website through the sub-application program, the preset website is a specific URL preset by a developer, and the user identifier of the sub-application program is used as a parameter. The user identification is used for distinguishing users of different sub-applications, the user can log in after the first terminal jumps to a sub-application page, and the user identification of the sub-applications is obtained after the user logs in. In this embodiment, the user identifier of the sub application refers to a user identifier sharing WIFI.
The WIFI equipment generates a WIFI identification according to the WIFI login information, intercepts a preset website through a local http service when a request sent by the first terminal through the sub-application program is received, extracts the user identification, acquires the hardware address of the first terminal and the equipment identification of the WIFI equipment, and sends the user identification, the WIFI identification, the hardware address of the first terminal and the equipment identification of the WIFI equipment to the server for storage.
The server binds the user identification with the WIFI identification, the hardware address of the first terminal and the equipment identification of the WIFI equipment, sends a notice to the WIFI equipment, and informs the WIFI equipment to add the hardware address of the first terminal into a white list and put through all traffic of the first terminal, so that the first terminal is connected with the WIFI and can realize internet surfing through the WIFI.
Step 506, the first terminal obtains a WIFI sharing request through the sub-application program, and the WIFI sharing request carries the sharing target user identifier.
The first terminal displays the WIFI sharing page through the sub-application program, and selects the sharing target user identification through the WIFI sharing page. The sharing target user identifier and the user identifier of the sub application program can be in a friend relationship or members in the same group in the parent application program. The first terminal acquires a WIFI sharing instruction through the sub-application program, jumps to a sharing target user identifier selection page of the main application program, acquires a sharing target user identifier selected through the page, and generates a WIFI sharing request, wherein the WIFI sharing request carries the sharing target user identifier.
And step 508, the first terminal acquires a WIFI identifier according to the WIFI sharing request and generates WIFI sharing information according to the WIFI identifier.
The first terminal acquires WIFI login information, the WIFI login information comprises an SSID (service set identifier), a password and the like, a WIFI identifier is generated according to the WIFI login information, and WIFI sharing information is generated according to the WIFI identifier. The WIFI sharing information can be a WIFI sharing two-dimensional code or a WIFI sharing link.
When the WIFI sharing information is the WIFI sharing two-dimensional code, the special identification of the sub-application program is contained in the WIFI sharing two-dimensional code, and the WIFI identification can be used as a parameter. In this way, the second terminal scans the WIFI sharing two-dimensional code, can jump to the corresponding sub-application program according to the special identifier of the sub-application program, can extract the WIFI identifier, and obtains the user identifier bound with the WIFI identifier from the server according to the WIFI identifier, wherein the user identifier is the user identifier for logging in the sub-application program when sharing WIFI.
When the WIFI sharing information is a WIFI sharing link, the link can be a link of a sub-application program, the WIFI identifier is used as a parameter, the second terminal can jump to the corresponding sub-application program by triggering the WIFI sharing link, the WIFI identifier can be extracted, the user identifier bound with the WIFI identifier is obtained from the server according to the WIFI identifier, and the user identifier is the user identifier for logging in the sub-application program when the WIFI is shared.
And 510, the first terminal shares the WIFI sharing information to the corresponding second terminal according to the sharing target user identification.
And the first terminal can display the WIFI sharing information in the interface of the parent application program after generating the WIFI sharing information according to the WIFI identification. For example, when the parent application is an instant messaging application, the WIFI sharing information may be displayed in a friend chat interface or a group chat interface. The first terminal shares the WIFI sharing request through the parent application program, the server receives the WIFI sharing request and sends WIFI sharing information to the second terminal according to the sharing target user identification, and the second terminal displays the WIFI sharing information through the parent application program.
And step 512, the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect WIFI according to the WIFI connection request.
The first terminal can set WIFI use permission before generating the WIFI sharing request, and the WIFI use permission comprises at least one of permission of all the second terminals, use after confirmation of the first terminal and use after corresponding numerical value transfer. And when the set WIFI use permission is that all the second terminals are allowed to use, the second terminals acquire WIFI identifiers in the WIFI sharing information, acquire SSIDs and passwords according to the WIFI identifiers, and connect WIFI according to the SSIDs and the passwords. When the set WIFI use permission is used after the first terminal is confirmed, the second terminal acquires the WIFI identification in the WIFI sharing information, acquires the bound user identification from the server according to the WIFI identification, the server sends a WIFI connection request of the second terminal to the first terminal according to the user identification, and the second terminal is connected with WIFI when receiving a confirmation permission use instruction of the first terminal. And when the set WIFI use weight is used after corresponding numerical value transfer is required, the second terminal acquires the WIFI identifier in the WIFI sharing information, and acquires the bound user identifier from the server according to the WIFI identifier. And the second terminal sends a value transfer success message to the server after carrying out corresponding value transfer, and the server receives the value transfer success message and informs the first terminal according to the user identification to allow the first terminal to be connected with the WIFI.
Further, when the WIFI sharing information is the WIFI sharing two-dimensional code, the second terminal can identify the WIFI sharing two-dimensional code through the master application program, jump to the corresponding sub-application program according to the special identifier in the WIFI sharing two-dimensional code, extract the WIFI identifier in the WIFI sharing two-dimensional code, acquire the SSID and the password according to the WIFI identifier, and connect the WIFI according to the SSID and the password. And the second terminal acquires the WIFI connection request through the sub-application program and determines whether the WIFI can be connected according to the WIFI use permission set by the first terminal. When the WIFI sharing information is the WIFI sharing link, the second terminal displays the WIFI sharing link through the parent application program, for example, the WIFI sharing link is displayed through a friend chatting interface or a group chatting interface of the parent application program, the WIFI sharing link is triggered, the sub-application program is skipped to, a WIFI identifier in the link is extracted, an SSID and a password are obtained according to the WIFI identifier, and WIFI is connected according to the SSID and the password. And the second terminal acquires the WIFI connection request through the sub-application program and determines whether the WIFI can be connected according to the WIFI use permission set by the first terminal.
In this embodiment, when sharing WIFI, the first terminal may select the sharing target user identifier through the parent application, and share WIFI to the selected sharing target user, including sharing to a friend and sharing to a group. Therefore, by means of the parent application program, WIFI can be conveniently shared, and the WIFI sharing efficiency is improved.
In one embodiment, the first terminal receives a WIFI connection request generated by the second terminal through WIFI sharing information, and authorizes the second terminal to connect to WIFI according to the WIFI connection request, including: the method comprises the steps that a first terminal receives a WIFI connection request generated by a second terminal through identifying WIFI sharing information, wherein the WIFI connection request is a WIFI connection request generated by the second terminal through a sub-application program after the second terminal identifies the WIFI sharing information through a main application program and then jumps to the sub-application program; and the first terminal authorizes the second terminal to be connected with WIFI after receiving the value transfer success message of the second terminal through the parent application program.
In an embodiment, as shown in fig. 6, a WIFI sharing method is provided, which is exemplified by being applied to the first terminal shown in fig. 1, and specifically includes:
and step 602, the first terminal identifies the WIFI equipment two-dimensional code through the parent application program, and jumps to the corresponding sub-application program according to the WIFI equipment two-dimensional code.
The WIFI equipment can be portable WIFI equipment and also can be fixed WIFI equipment. The WIFI equipment two-dimensional code can be pasted on the WIFI equipment and comprises a special identifier corresponding to the sub-application program and an equipment identifier of the WIFI equipment. The device identifier is used for uniquely identifying one WIFI device, and may be a hardware identifier of the WIFI device. The parent application program is an application program in an operating system, is an application program for bearing the child application program, and provides an environment for realizing the child application program. In this embodiment, the parent application may be a social application, a game application, or the like.
Specifically, the two-dimensional code of the WIFI device can be generated through an interface provided by the parent application program, and then the first terminal can scan the two-dimensional code of the WIFI device through the two-dimensional code scanning plug-in provided by the parent application program, identify a special identifier corresponding to the child application program and an equipment identifier of the WIFI device, and then jump to the corresponding child application program according to the special identifier. In this embodiment, the sub-application may be a WIFI management program. The WIFI management program can perform equipment management through the SDK provided by the WIFI equipment manufacturer, and comprises the steps of selecting an internet surfing package, setting SSID (service set identifier) and passwords and the like.
Fig. 9 is a schematic diagram of a WIFI sharing interface in a sub-application. And clicking a setting button to enter a WIFI login information setting interface to set the SSDI and the password. And the WIFI sharing interface can also display the selection of Internet surfing package, the expiration date and the like.
And step 604, the first terminal acquires a WIFI connection instruction through the sub-application program and connects WIFI according to the WIFI connection instruction.
A WIFI connection button is provided on the WIFI sharing interface of the sub-application, and as shown in fig. 9, a WIFI connection instruction is generated by clicking the WIFI connection button.
Specifically, the process of connecting the WIFI according to the WIFI connection instruction is as follows:
(1) an authentication management program is installed in the WIFI device, and an IpTables can be set through the authentication management program. Specifically, after the WIFI device is powered on, the authentication management program locally provides http service, and sets an IpTables, which specifically includes: put through all DNS requests; putting through the related interface of the parent application program, the WIFI management program, the SDK of the WIFI equipment manufacturer and other requests; and intercepting all requests, and modifying the destination address into a local destination address, so that all requests are transferred to a local http service.
(2) And the first terminal clicks the WIFI sharing button, the sub-application program can request a specific URL, and the user identification of the sub-application program is used as a parameter. The specific URL is a URL specified by the developer, typically an http request, and is different from the existing URL on the network. The user identifier of the sub-application is the user identifier used for logging in the sub-application after the first terminal jumps to the sub-application, and the user identifier is used for distinguishing different users in the sub-application.
And when the authentication management program of the WIFI equipment receives the WIFI connection request, all the requests are jumped to local http service through the set IpTables, the specific URL is intercepted through the local http server, and the user identification of the sub-application program is extracted. The authentication management program of the WIFI equipment can also acquire a hardware address (mac address) of the corresponding first terminal according to the IP address of the WIFI connection request. In addition, the authentication management program of the WIFI device also acquires the device identification of the WIFI device, and the WIFI identification can be generated according to the SSID and the password. And finally, the authentication management program of the WIFI equipment sends the user identification of the sub-application program, the WIFI identification, the hardware address of the first terminal and the equipment identification of the WIFI equipment to the server together.
(3) And the server receives the user identifier of the sub-application program, the WIFI identifier, the hardware address of the first terminal and the equipment identifier of the WIFI equipment, detects that the WIFI identifier is in an unbound state, and binds the WFI identifier with the user identifier, the hardware address of the first terminal and the equipment identifier of the WIFI equipment. And then, the server sends a notification to the WIFI equipment, and the WIFI equipment is notified that all the traffic of the first terminal can be put through.
(4) The authentication management program of the WIFI equipment adds the hardware address of the first terminal into the white list by setting the IpTables, so that all traffic of the first terminal is put through, the first terminal is connected with the network, and the Internet access can be realized through WIFI.
And 606, the first terminal sets the WIFI use permission through the sub-application program and sends the WIFI use permission to the server.
The WIFI use permission comprises at least one of permission of all the second terminals, use after confirmation of the first terminal and use after corresponding numerical value transfer. The server receives the set WIFI use permission
Step 608, the first terminal acquires the WIFI sharing request, generates WIFI sharing information according to the WIFI sharing request, and shares the WIFI sharing information to the second terminal.
The first terminal displays a WIFI sharing interface through the sub application program, and a WIFI sharing button is arranged on the WIFI sharing interface. As shown in fig. 9, WIFI sharing buttons 902 and 904 are provided on the WIFI sharing interface, and when the WIFI sharing button 902 is clicked, WIFI can be shared to a friend or a group in the parent application, and when the WIFI sharing button 904 is clicked, WIFI sharing information can be generated.
As shown in fig. 7, when the WIFI sharing button 902 is clicked, a WIFI sharing request is obtained, the first terminal jumps to a target user selection interface of the parent application, selects a sharing target user through the target user selection interface, obtains a selected sharing target user identifier, and generates WIFI sharing information according to the WIFI identifier, where the WIFI sharing information includes a special identifier of the child application, and uses the WIFI identifier as a parameter. And sending the WIFI sharing information to the corresponding second terminal through the server according to the sharing target user identification. The WIFI sharing information can be a WIFI sharing two-dimensional code or a WIFI sharing link, and after the WIFI sharing information is sent, the first terminal can display the WIFI sharing information through a parent application program. For example, a WIFI sharing two-dimensional code or a WIFI sharing link is displayed on a friend chat interface or a group chat interface.
Further, as shown in fig. 7, the second terminal receives WIFI sharing information sent by the server. And displaying the WIFI sharing information through the parent application program, for example, displaying the WIFI sharing information through a friend chat interface or a group chat interface. The second terminal identifies the WIFI sharing information and can acquire the WIFI identification. Specifically, when the WIFI sharing information is the WIFI sharing two-dimensional code, the second terminal can identify the WIFI sharing two-dimensional code through the two-dimensional code scanning plug-in the master application program, jump to the corresponding sub-application program according to the special identification, and connect the WIFI through the sub-application program.
As shown in fig. 8, when the WIFI sharing button 904 is clicked, a WIFI sharing request is acquired, and WIFI sharing information is generated, where the WIFI sharing information may be a WIFI sharing two-dimensional code. The second terminal can scan and insert the WIFI sharing two-dimensional code on the first terminal through the two-dimensional code in the master application program, jump to the corresponding sub-application program according to the special identification in the WIFI sharing two-dimensional code, and connect the WIFI through the sub-application program.
Step 610, the first terminal receives a WIFI connection request generated by the second terminal through identifying WIFI sharing information, and authorizes the second terminal to connect WIFI after receiving a value transfer success message of the second terminal.
The second terminal jumps to the corresponding sub-application program, and displays the WIFI sharing interface through the sub-application program, as shown in fig. 10, which is the WIFI sharing interface displayed by the second terminal through the sub-application program in an embodiment. And displaying a WIFI connection button on the WIFI sharing interface, clicking the WIFI connection button, and generating a WIFI connection request by the second terminal.
As shown in fig. 7 and 8, the second terminal obtains the WIFI identifier, and searches for the bound user identifier, the hardware address of the first terminal, and the device identifier of the WIFI device from the server according to the WIFI identifier, where the user identifier is the user identifier of the sub-application sharing WIFI. And the server receives the WIFI identifier, inquires that the WIFI identifier is bound, and authorizes the second terminal to use WIFI only after the second terminal performs corresponding numerical value transfer. The server sends an instruction to the second terminal to inform the second terminal to carry out numerical value transfer. The second terminal can perform corresponding value transfer through the parent application. And the server receives the numerical value transferred by the second terminal, transfers the numerical value to the account of the user identifier of the sub-application program of the first terminal, and sends a numerical value transfer success message to the first terminal. The first terminal sends an authorization instruction to the server after receiving the numerical value success message, the server receives the authorization instruction and then sends the authorization instruction to the WIFI device, the WIFI device adds the hardware address of the second terminal into the white list through the authentication management program, all the flow of the second terminal is put through, and therefore the second terminal can achieve internet surfing.
In the embodiment, the WIFI sharing request is acquired through the first terminal, the WIFI identifier is acquired according to the WIFI sharing request, and the WIFI sharing information can be generated according to the WIFI identifier, so that the WIFI sharing information is shared with the second terminal, the second terminal can be quickly connected with WIFI through the WIFI sharing information, and compared with a mode that SSID and passwords can only be transmitted through lines in the prior art, the mode that the WIFI sharing information is transmitted through lines can improve the WIFI sharing efficiency.
In this embodiment, the first terminal can share the WIFI sharing information directly to the friend or to the group through the parent application program, and can also generate the WIFI sharing two-dimensional code to enable the second terminal to scan, so that the use is more flexible. The first terminal can authorize the second terminal to use the WIFI through certain value transfer, so that the WIFI equipment can be used more conveniently and widely.
In a specific application scenario, the parent application is a WeChat application and the child applications are applets. In this application scenario, a specific user interaction flow is as shown in fig. 10A, where the first terminal is an Admin terminal, that is, a WIFI administrator terminal, the Guest is a second terminal, that is, a WIFI client terminal, and the GiFI is a WIFI device, and may also fix the WIFI device, and may also be a portable WIFI device. The specific interactive process comprises the following steps: 1. the WIFI manager terminal scans a small program two-dimensional code pasted on the back of the WIFI route through WeChat, jumps to a WIFI housekeeper small program, and purchases a package in the WIFI housekeeper small program; 2. the WIFI manager terminal is connected with WIFI in the WIFI housekeeping applet to obtain a WIFI identifier, and the WIFI identifier is bound with a user identifier for logging in the WIFI housekeeping applet, so that the WIFI manager terminal is automatically bound as an owner of the WIFI equipment; 3. the WIFI manager terminal sets a package through a WIFI housekeeping applet, generates a WIFI sharing code (namely a WIFI sharing two-dimensional code), and shares the WIFI sharing code to a WIFI client; 4. and the WIFI client terminal scans the WIFI sharing code, jumps to the WIFI housekeeping applet and clicks to connect WIFI through the WIFI housekeeping applet. 5. And the WIFI client terminal supplements the value through the WIFI manager applet, or selects a payment package, or connects the WIFI after waiting for free use authorized by the WIFI manager terminal.
Fig. 10B is an interaction flowchart of a WIFI manager in a specific application scenario. As shown in fig. 10B, the specific interaction flow includes: 1. a WIFI manager terminal (Admin terminal) scans a two-dimensional code pasted behind the carry-on WIFI through WeChat, jumps to a WIFI housekeeper applet, and purchases a package in the WIFI housekeeper applet; 2. a WIFI manager terminal purchases a package in a WIFI housekeeper applet; 3. the WIFI manager terminal clicks to connect WIFI in the WIFI manager applet; 4. the WIFI housekeeping applet requests a specific URL, and a user identifier (openid) for logging in the WIFI housekeeping applet is used as a parameter of the URL; 5. the authentication management app in the carry-on WIFI forces all requests to local http service; 6. the authentication management app intercepts the URL, extracts openid, and reports the openid, the mac address of the WIFI manager terminal and the equipment number of the portable WIFI to the cloud as parameters; 7. the cloud end requests to put through the flow of the WIFI manager terminal; 8. the authentication management app communicates the flow of the WIFI manager terminal; 9. the WIFI manager terminal generates a WIFI identifier after being connected with WIFI, sets package price and generates a WIFI sharing code according to the WIFI identifier; 10. the WIFI manager terminal shares the WIFI sharing code to a WIFI client (guest).
As shown in fig. 11, in an embodiment, a WIFI connection method is provided, which is exemplified by being applied to the second terminal shown in fig. 1, and specifically includes:
step 1102, the second terminal generates a WIFI connection request by triggering WIFI sharing information, and the WIFI sharing information carries a WIFI identifier.
And step 1104, the second terminal acquires a WIFI identifier according to the WIFI connection request.
The WIFI sharing information can be a WIFI sharing two-dimensional code or a WIFI sharing link. Specifically, the second terminal can display WIFI sharing information through the application program, and the WIFI sharing information carries a WIFI identifier. The WIFI identification can be a unique identification generated by the WIFI equipment and also can be a unique identification generated according to WIFI login information, and the WIFI login information comprises an SSID and a password used for connecting WIFI.
The WIFI sharing information can further comprise a special identifier of the application program, when the second terminal triggers the WIFI sharing information, the second terminal can jump to the corresponding application program according to the special identifier, and a WIFI sharing interface is displayed through the application program. And providing a WIFI sharing button on a WIFI sharing interface, clicking the WIFI sharing button, and acquiring a WIFI connection request and a WIFI identification by the terminal.
And step 1106, when the second terminal detects that the second terminal is authorized by the first terminal according to the WIFI identifier, connecting WIFI according to the WIFI identifier.
Specifically, the first terminal can set a WIFI use permission when sharing WIFI, and the WIFI use permission includes at least one of permission of all second terminals, use after confirmation of the first terminal and use after corresponding numerical value transfer. Specifically, when the second terminal acquires the WIFI identifier, the WIFI identifier is sent to the server, the server detects whether the WIFI identifier is bound, if so, the corresponding WIFI use permission is checked according to the WIFI identifier, and if the WIFI is authorized to be used, the WIFI is connected according to the WIFI identifier.
In this embodiment, the second terminal is connected to the WIFI by triggering the WIFI sharing information, and when the authorization is detected according to the WIFI identifier carried by the WIFI sharing information, the WIFI login information can be acquired, so that the WIFI is automatically connected. Compared with the mode that the WIFI can be connected only by inputting the SSID and the password transmitted by offline in the traditional technology, the mode is more convenient, and therefore the WIFI connection efficiency is improved.
In one embodiment, the second terminal generates the WIFI connection request by triggering the WIFI sharing information, including: the second terminal triggers the WIFI sharing information through the parent application program and jumps to the corresponding child application program according to the WIFI sharing information; and generating a WIFI connection request through the sub-application program.
Further, in an embodiment, after the second terminal acquires the WIFI representation according to the WIFI connection request, the method further includes: the second terminal requests a preset website through the sub-application program; intercepting a preset website through WIFI equipment, and sending a WIFI connection request to the first terminal; and when the second terminal receives an authorization instruction of the first terminal or the first terminal acquires a value transfer success message, the second terminal is authorized by the first terminal.
As shown in fig. 12, in an embodiment, a WIFI connection method is provided, which is exemplified by being applied to the second terminal shown in fig. 1, and specifically includes:
and 1202, the second terminal identifies WIFI sharing information through the parent application program and jumps to the corresponding sub-application program according to the WIFI sharing information.
Specifically, the parent application is an application in the operating system, and is an application for carrying child applications, and provides an environment for implementing the child applications. In this embodiment, the parent application may be a social application, a game application, or the like.
In an embodiment, as shown in fig. 7, the WIFI sharing information may be a WIFI sharing two-dimensional code or a WIFI sharing link, and is displayed in a parent application of the second terminal. Such as in a buddy chat interface or a group chat interface. And for the WIFI to share the two-dimensional code, the second terminal can identify the WIFI through the two-dimensional code scanning plug-in the parent application program. Specifically, the WIFI sharing information includes a special identifier of the sub-application, and the WIFI identifier is used as a parameter. The WIFI identifier is used for logging in WIFI and is a unique identifier generated by the WIFI equipment when the first terminal shares WIFI. If the WIFI equipment can realize password-free login, the WIFI identifier is a specific identifier generated by the WIFI equipment or a unique identifier generated only according to the SSID; if the WIFI equipment needs to log in through the SSID and the password, the WIFI identification can be the only identification generated according to the WIFI login information, and the WIFI login information comprises the SSID, the password and the like.
The primary application program of the second terminal identifies the WIFI sharing information, and can jump to the corresponding sub-application program according to the special identifier, and the WIFI sharing interface is displayed through the sub-application program, as shown in fig. 10. And displaying a WIFI connection button in the WIFI sharing interface.
And 1204, the second terminal generates a WIFI connection request through the sub-application program to acquire a WIFI identifier.
As shown in fig. 10, the WIFI connection button is clicked, a WIFI connection request is generated, and the second terminal acquires the WIFI connection request. The second terminal acquires the WIFI identifier when identifying WIFI sharing information, and acquires WIFI login information from the server according to the WIFI identifier, wherein the WIFI login information comprises an SSID or the WIFI login information comprises an SSID and a password.
And 1206, the second terminal requests a preset website through the sub-application program, intercepts the preset website through the WIFI equipment, and sends a WIFI connection request to the first terminal.
In this embodiment, when the WIFI connection request is obtained through the sub application, the sub application may request a preset website. The preset website is a specific URL, which is formulated by a developer, and is generally a URL requested by http. When a user clicks the WIFI connection button through the application program, the first terminal requests a specific URL through the application program, and the user identification of the sub-application program is used as a parameter. The user identifier of the sub-application here is a user identifier of the WIFI connection, and may also be referred to as a user identifier of the WIFI client.
The WIFI equipment is provided with an authentication management application program, after the WIFI equipment is started, the authentication management application program can provide http service locally and can manage all traffic on the WIFI equipment. Specifically, traffic may be managed by IpTables. After the WIFI equipment is started, the IpTables can be set through an authentication management application program, so that the WIFI equipment can intercept all requests and modify destination addresses, and then local http service is carried out. And the WIFI equipment intercepts the specific URL through the local http service and extracts the user identification of the WIFI client.
Further, the authentication management application program acquires the corresponding hardware address of the second terminal and the device identifier of the WFII device according to the requested IP address, and sends the user identifier of the WIFI client, the WIFI identifier, the hardware address of the second terminal and the device identifier of the WIFI device to the server together.
The server inquires that the WIFI identifier is bound, acquires the user identifier bound with the WIFI identifier, namely the user identifier of a WIFI administrator, the hardware address of the first terminal bound with the WIFI identifier and the equipment identifier of the WIFI equipment, and sends a WIFI connection request to the first terminal according to the user identifier of the WIFI administrator, the hardware address of the first terminal and the equipment identifier of the WIFI equipment.
And step 1208, when the second terminal receives the authorization instruction of the first terminal or the first terminal obtains the successful value transfer message, connecting the second terminal with the WIFI according to the WIFI identifier.
The server acquires WIFI use permission set by the first terminal when sharing WIFI. If the WIFI use permission is that all the second terminals are allowed to use, the server issues an instruction to the WIFI to inform an authentication management program of the WIFI equipment to add the hardware address of the second terminal into a white list and put through all the traffic of the second terminal, so that the second terminal is connected with the WIFI. The server can also send a notification to the first terminal according to the user identifier of the WIFI administrator bound with the WIFI identifier, and the first terminal is notified that the second terminal is connected with the WIFI.
If the WIFI use permission set by the first terminal is used after the first terminal is confirmed, the server sends a WIFI connection request to the first terminal, receives an authorization instruction of the first terminal, sends the authorization instruction to the second terminal, informs an authentication management program of the WIFI device to add a hardware address of the second terminal into a white list, and puts through all traffic of the second terminal, so that the second terminal is connected with WIFI. The server can also send a notification to the first terminal according to the user identifier of the WIFI administrator bound with the WIFI identifier, and the first terminal is notified that the second terminal is connected with the WIFI.
If the WIFI use permission set by the first terminal is used after corresponding numerical value transfer is needed, the server detects whether the user identification of the WIFI client has a residual numerical value or not, if not, an instruction is issued to the second terminal, a numerical value transfer interface is displayed through a sub-application program of the second terminal, and the WIFI client is notified to carry out numerical value transfer. And after receiving the instruction for confirming the value transfer, the second terminal can jump to the parent application program for value transfer and sends a message of successful value transfer to the server. And the server receives the value transfer success message, stores the transferred value into an account of the WIFI manager, and forwards the value transfer success message to the first terminal for display. And the server receives the value transfer success message, issues an instruction to the WIFI equipment, informs the WIFI equipment to add the hardware address of the second terminal into the white list, and puts through all the traffic of the second terminal, so that the second terminal is connected with the WIFI. The server can also send a notification to the first terminal according to the user identifier of the WIFI administrator bound with the WIFI identifier, and the first terminal is notified that the second terminal is connected with the WIFI.
Further, if the server detects that the remaining number of the WIFI clients expires, the authentication management program resets the IpTables, deletes the hardware address of the second terminal from the white list, and the second terminal cannot be connected with the WIFI.
In this embodiment, the second terminal identifies the WIFI sharing information through the parent application program, generates a WIFI connection request through the child application program, and connects to the WIFI under the authorization of the first terminal according to the WIFI usage permission set by the first terminal. Compared with the mode that the WIFI can be connected only by inputting the SSID and the password transmitted by offline in the traditional technology, the mode is more convenient, and therefore the WIFI connection efficiency is improved. Meanwhile, due to the fact that connection, management and the like of the WIFI are carried out in the sub-application programs, the process is automatic, numerical value transfer can be combined, the WIFI sharing and connection are combined with the charging mode, and the use is more convenient and more flexible.
In a specific application scenario, the parent application is a WeChat application and the child applications are applets. Under this application scenario, the first terminal is an Admin terminal, namely a WIFI administrator terminal, the Guest is a second terminal, namely a WIFI client terminal, and the WIFI device is a portable WIFI device. Fig. 13 shows an interaction flowchart of the WIFI client terminal in this application scenario. As shown in fig. 13, the specific interaction flow includes: 1. a WIFI client terminal (a guest terminal) scans a WIFI sharing code, jumps to a WIFI housekeeper applet and clicks to connect WIFI through the WIFI housekeeper applet; 2. the WIFI housekeeping applet requests a specific URL, and a user identifier (openid) for logging in the WIFI housekeeping applet is used as a parameter of the URL; 3. the authentication management app in the carry-on WIFI forces all requests to local http service; 4. the authentication management app intercepts the URL, extracts openid, and reports the openid, the mac address of the WIFI client terminal and the equipment number of the portable WIFI to the cloud as parameters; 5. the cloud end requires the WIFI client to pay through the WIFI manager applet; 6. the WIFI client terminal selects package time to pay or waits for the WIFI manager terminal to authorize free use; 7. the cloud end requests to put through the flow of the WIFI client terminal after receiving the authorization request; 8. the authentication management app is used for communicating the flow of the WIFI client terminal, and the WIFI client terminal is connected with WIFI.
Fig. 2-6 are schematic flow diagrams of a WIFI sharing method in an embodiment. Fig. 11-12 are schematic flow diagrams of a WIFI connection method in an embodiment. It should be understood that, although the steps in the flowcharts of fig. 2-6 and fig. 11-12 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 and 11-12 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
As shown in fig. 14, in one embodiment, there is also provided a WIFI sharing device, including:
a sharing request obtaining module 1402, configured to obtain a WIFI sharing request;
a first WIFI identifier obtaining module 1404, configured to obtain a WIFI identifier according to the WIFI sharing request;
the WIFI sharing information generating module 1406 is configured to generate WIFI sharing information according to the WIFI identifier, where the WIFI sharing information is used for the second terminal to connect to WIFI;
the WIFI authorizing module 1408 is configured to receive a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorize the second terminal to connect to the WIFI according to the WIFI connection request.
In one embodiment, the WIFI sharing information is a WIFI sharing two-dimensional code or a WIFI sharing link.
In one embodiment, the WIFI sharing device further comprises: a WIFI connection module (not shown in the figure) for acquiring a WIFI connection request and connecting WIFI according to the WIFI connection request; and generating a WIFI identifier according to the WIFI login information, and sending the WIFI identifier and the user identifier to a server for storage.
In one embodiment, the WIFI connection module is used for identifying WIFI sharing information through a parent application program and jumping to a corresponding child application program according to the WIFI sharing information; and acquiring a WIFI connection instruction through the sub-application program, and connecting WIFI according to the WIFI connection instruction. In this embodiment, the sharing request obtaining module 1302 is further configured to obtain the WIFI sharing request through a sub application program.
In one embodiment, the WIFI sharing request carries a sharing target user identifier, and the WIFI sharing information generating module 1406 is further configured to obtain the sharing target user identifier through the parent application; and sending the WIFI sharing information to a second terminal corresponding to the sharing target user identification according to the sharing target user identification, wherein the WIFI sharing information is used for displaying by the two terminals through a parent application program.
In one embodiment, the sharing target user identifier has a friend relationship with the user identifier of the sub-application or is a same group member relationship.
In one embodiment, the WIFI authorization module 1308 is configured to receive a WIFI connection request generated by the second terminal through identifying the WIFI sharing information, where the WIFI connection request is a WIFI connection request generated by the second terminal through skipping to the sub-application after the second terminal identifies the WIFI sharing information through the parent application, and through the sub-application; and authorizing the second terminal to be connected with the WIFI after the value transfer success message of the second terminal is received through the parent application program.
As shown in fig. 15, in one embodiment, there is also provided a WIFI connection apparatus, including:
the WIFI connection request module 1502 is configured to generate a WIFI connection request by triggering WIFI sharing information, where the WIFI sharing information carries a WIFI identifier.
And a second WIFI identifier obtaining module 1504, configured to obtain a WIFI identifier according to the WIFI connection request.
And the WIFI connection module 1506 is used for acquiring WIFI login information according to the WIFI identifier when authorized according to the WIFI identifier, and connecting WIFI according to the WIFI login information.
In one embodiment, the WIFI sharing information is a WIFI sharing two-dimensional code or a WIFI sharing link.
In one embodiment, the WIFI connection request module 1502 is configured to identify WIFI sharing information through a parent application, and jump to a corresponding child application according to the WIFI sharing information; and generating a WIFI connection request through the sub-application program.
In one embodiment, the WIFI connection module 1506 is further configured to request a preset website through the sub-application; intercepting a preset website through WIFI equipment, and sending a WIFI connection request to a first terminal; and when the second terminal receives the authorization instruction of the first terminal or the first terminal acquires the value transfer success message, the second terminal is authorized by the first terminal.
FIG. 16 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the first terminal or the second terminal in fig. 1. As shown in fig. 16, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, may cause the processor to implement a WIFI sharing method or a WIFI connection method. The internal memory may also store a computer program, and when the computer program is executed by the processor, the processor may execute a WIFI sharing method or a WIFI connection method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 16 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the WIFI sharing apparatus or the WIFI connecting apparatus provided by the present application may be implemented in a form of a computer program, and the computer program may be executed on a computer device as shown in fig. 15. The memory of the computer device may store various program modules constituting the WIFI sharing device or the WIFI connecting device, such as the sharing request acquiring module, the first WIFI identifier acquiring module, and the WIFI sharing information generating module shown in fig. 13. The computer program constituted by the program modules causes the processor to execute the steps in the WIFI sharing method or the WIFI connecting method of the embodiments of the present application described in the present specification.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to execute the steps of the WIFI sharing method or the WIFI connecting method in the above embodiments.
In one embodiment, a computer-readable storage medium is further provided, which stores a computer program, and when the computer program is executed by a processor, the processor is enabled to execute the steps of the WIFI sharing method or the WIFI connection method in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (15)

1. A WIFI sharing method comprises the following steps:
the first terminal acquires a WIFI sharing request;
the first terminal acquires a WIFI identifier according to the WIFI sharing request;
the first terminal generates WIFI sharing information according to the WIFI identification, and the WIFI sharing information is used for a second terminal to connect WIFI;
and the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect WIFI according to the WIFI connection request.
2. The method of claim 1, wherein the WIFI sharing information is a WIFI sharing two-dimensional code or a WIFI sharing link.
3. The method of claim 1, further comprising:
the first terminal acquires a WIFI connection request and connects WIFI according to the WIFI connection request;
and the first terminal generates a WIFI identifier according to the WIFI login information and sends the WIFI identifier and the user identifier to a server for binding.
4. The method of claim 3, wherein the requesting to connect to WIFI according to the WIFI connection comprises:
the first terminal identifies WIFI sharing information through a parent application program, and jumps to a corresponding child application program according to the WIFI sharing information;
acquiring a WIFI connection instruction through the sub-application program, and connecting WIFI according to the WIFI connection instruction;
the first terminal acquires a WIFI sharing request, and the method comprises the following steps: and the first terminal acquires the WIFI sharing request through the sub-application program.
5. The method of claim 1, wherein the WIFI sharing request carries a sharing target user identifier; after the first terminal generates the WIFI sharing information according to the WIFI identifier, the method further comprises the following steps:
the first terminal acquires a sharing target user identifier through a parent application program;
and the first terminal sends the WIFI sharing information to a second terminal corresponding to the sharing target user identification according to the sharing target user identification, wherein the WIFI sharing information is used for the second terminal to display through the parent application program.
6. The method of claim 5, wherein the sharing target user id has a friend relationship with the user id of the sub-application or is a member relationship of the same group.
7. The method of claim 1, wherein the first terminal receives a WIFI connection request generated by the second terminal through the WIFI sharing information, and authorizes the second terminal to connect to WIFI according to the WIFI connection request, and the method includes:
the first terminal receives a WIFI connection request generated by the second terminal through identifying the WIFI sharing information, wherein the WIFI connection request is a WIFI connection request generated by the second terminal through skipping to a sub-application program after the second terminal identifies the WIFI sharing information through a parent application program and through the sub-application program;
and the first terminal authorizes the second terminal to be connected with WIFI after receiving the numerical value transfer success message of the second terminal through the parent application program.
8. A WIFI connection method comprises the following steps:
the second terminal generates a WIFI connection request by triggering WIFI sharing information, wherein the WIFI sharing information carries a WIFI identifier;
the second terminal acquires a WIFI identifier according to the WIFI connection request;
and when the second terminal detects that the second terminal is authorized by the first terminal according to the WIFI identifier, connecting WIFI according to the WIFI identifier.
9. The method of claim 8, wherein the WIFI sharing information is a WIFI sharing two-dimensional code or a WIFI sharing link.
10. The method of claim 9, wherein the second terminal generates the WIFI connection request by triggering WIFI sharing information, and the method comprises:
the second terminal identifies the WIFI sharing information through a parent application program and skips to a corresponding sub-application program according to the WIFI sharing information;
generating a WIFI connection request through the sub-application.
11. The method of claim 10, wherein after the second terminal obtains the WIFI identifier according to the WIFI connection request, further comprising:
the second terminal requests a preset website through the sub-application program;
intercepting the preset website through WIFI equipment, and sending a WIFI connection request to the first terminal;
and when the second terminal receives the authorization instruction of the first terminal or the first terminal acquires the value transfer success message, the second terminal is authorized by the first terminal.
12. A WIFI sharing device, comprising:
the sharing request acquisition module is used for acquiring a WIFI sharing request;
the first WIFI identifier acquisition module is used for acquiring a WIFI identifier according to the WIFI sharing request;
the WIFI sharing information generating module is used for generating WIFI sharing information according to the WIFI identification, and the WIFI sharing information is used for a second terminal to be connected with WIFI;
and the WIFI authorization module is used for receiving a WIFI connection request generated by the second terminal through the WIFI sharing information and authorizing the second terminal to be connected with WIFI according to the WIFI connection request.
13. A WIFI connection apparatus, comprising:
the WIFI connection request module is used for generating a WIFI connection request by triggering WIFI sharing information, and the WIFI sharing information carries a WIFI identifier;
the second WIFI identifier acquisition module is used for acquiring a WIFI identifier according to the WIFI connection request;
and the WIFI connection module is used for acquiring the WIFI login information according to the WIFI identification when the authorization is detected according to the WIFI identification, and connecting WIFI according to the WIFI login information.
14. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 11.
15. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 11.
CN201810730285.2A 2018-07-05 2018-07-05 WIFI sharing method, WIFI connection device and computer-readable storage medium Active CN110691397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810730285.2A CN110691397B (en) 2018-07-05 2018-07-05 WIFI sharing method, WIFI connection device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810730285.2A CN110691397B (en) 2018-07-05 2018-07-05 WIFI sharing method, WIFI connection device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110691397A true CN110691397A (en) 2020-01-14
CN110691397B CN110691397B (en) 2021-10-22

Family

ID=69106638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810730285.2A Active CN110691397B (en) 2018-07-05 2018-07-05 WIFI sharing method, WIFI connection device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110691397B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866995A (en) * 2020-07-26 2020-10-30 广云物联网科技(广州)有限公司 WeChat applet-based intelligent device network distribution method and system
CN111935698A (en) * 2020-08-07 2020-11-13 上海闻泰电子科技有限公司 Network access method, device, terminal and storage medium
CN112004187A (en) * 2020-08-26 2020-11-27 维沃移动通信有限公司 Data sharing method and device
CN113938283A (en) * 2021-10-14 2022-01-14 南京大全电气研究院有限公司 Code scanning login method, system, device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929796A (en) * 2013-12-31 2014-07-16 小米科技有限责任公司 Access point sharing method and device
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device
CN104955048A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 WiFi (wireless fidelity) network login information sharing method, server, terminal and system
CN106817671A (en) * 2017-02-14 2017-06-09 腾讯科技(深圳)有限公司 A kind of networked information sharing method, first terminal and system
CN106850506A (en) * 2015-12-04 2017-06-13 北京奇虎科技有限公司 A kind of method and apparatus that WiFi is shared between application good friend
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal
CN107040927A (en) * 2017-05-27 2017-08-11 珠海市魅族科技有限公司 Wireless network focus sharing method and device, computer installation and storage medium
CN107659937A (en) * 2016-08-02 2018-02-02 上海掌门科技有限公司 The method and apparatus shared for realizing WAP
CN108024308A (en) * 2016-11-03 2018-05-11 上海掌门科技有限公司 The method and apparatus that wireless access point is shared, connected

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929796A (en) * 2013-12-31 2014-07-16 小米科技有限责任公司 Access point sharing method and device
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device
CN104955048A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 WiFi (wireless fidelity) network login information sharing method, server, terminal and system
CN106850506A (en) * 2015-12-04 2017-06-13 北京奇虎科技有限公司 A kind of method and apparatus that WiFi is shared between application good friend
CN107659937A (en) * 2016-08-02 2018-02-02 上海掌门科技有限公司 The method and apparatus shared for realizing WAP
CN108024308A (en) * 2016-11-03 2018-05-11 上海掌门科技有限公司 The method and apparatus that wireless access point is shared, connected
CN106817671A (en) * 2017-02-14 2017-06-09 腾讯科技(深圳)有限公司 A kind of networked information sharing method, first terminal and system
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal
CN107040927A (en) * 2017-05-27 2017-08-11 珠海市魅族科技有限公司 Wireless network focus sharing method and device, computer installation and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHAOYUESHIKONG: "微信"WIFI一键连"小程序:无需密码一键免费登陆WIFI", 《HTTP://WWW.360DOC.COM/CONTENT/17/1214/18/535885_713093168.SHTML》 *
南湾股海: "如何分享WIFI管家里已登陆的WIFI密码", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/ACF728FD6B5CA1F8E410A374.HTML》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866995A (en) * 2020-07-26 2020-10-30 广云物联网科技(广州)有限公司 WeChat applet-based intelligent device network distribution method and system
CN111935698A (en) * 2020-08-07 2020-11-13 上海闻泰电子科技有限公司 Network access method, device, terminal and storage medium
CN112004187A (en) * 2020-08-26 2020-11-27 维沃移动通信有限公司 Data sharing method and device
CN113938283A (en) * 2021-10-14 2022-01-14 南京大全电气研究院有限公司 Code scanning login method, system, device, electronic equipment and storage medium
CN113938283B (en) * 2021-10-14 2023-12-12 南京大全电气研究院有限公司 Code scanning login method, system, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110691397B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN110691397B (en) WIFI sharing method, WIFI connection device and computer-readable storage medium
CN106998329B (en) File sharing method and device
CN105530175B (en) Message processing method, device and system
CN103067381B (en) Usage platform side's account logs in the mthods, systems and devices of third party's service
CN105978873B (en) Customized equipment registration method and device
US10021098B2 (en) Account login method, device, and system
JP6515207B2 (en) Internet access authentication method and client, and computer storage medium
US9154955B1 (en) Authenticated delivery of premium communication services to trusted devices over an untrusted network
US9462466B2 (en) Gateway router supporting session hand-off and content sharing among clients of a local area network
CN103067378A (en) Log-in control method and system based on two-dimension code
US10834067B2 (en) Method of access by a telecommunications terminal to a database hosted by a service platform that is accessible via a telecommunications network
CN109862078B (en) Client login method, device and system, storage medium and electronic device
US20180070208A1 (en) Interaction tracking and organizing system
CN106559312B (en) Group management method and device based on controlled equipment
CN103036902A (en) Login control method and login control system based on two-dimension code
CN112399130A (en) Processing method and device of cloud video conference information, storage medium and communication equipment
CN106254319B (en) Light application login control method and device
EP2635051A1 (en) Application shop system and application development method using the application shop system
CN111475310B (en) Message sharing method and device and user data acquisition method and device
CN102185789A (en) Method for performing transmission according to priorities in instant messaging and instant messaging server
CN107211265A (en) The safety interacting method and device of a kind of terminal room
KR20120098215A (en) Method for providing virtualized information
CN103944905A (en) Information interaction method, device and system
KR101982312B1 (en) Method for wi-fi direct group formation with server support
WO2016145826A1 (en) Wifi hotspot accessing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40020111

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant