CN106973381B - WiFi hotspot password sharing processing method and system and mobile terminal - Google Patents

WiFi hotspot password sharing processing method and system and mobile terminal Download PDF

Info

Publication number
CN106973381B
CN106973381B CN201710138884.0A CN201710138884A CN106973381B CN 106973381 B CN106973381 B CN 106973381B CN 201710138884 A CN201710138884 A CN 201710138884A CN 106973381 B CN106973381 B CN 106973381B
Authority
CN
China
Prior art keywords
mobile terminal
wifi
wifi hotspot
configuration information
information
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.)
Active
Application number
CN201710138884.0A
Other languages
Chinese (zh)
Other versions
CN106973381A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201710138884.0A priority Critical patent/CN106973381B/en
Publication of CN106973381A publication Critical patent/CN106973381A/en
Application granted granted Critical
Publication of CN106973381B publication Critical patent/CN106973381B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • 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
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The invention discloses a WiFi hotspot password sharing processing method, a WiFi hotspot password sharing processing system and a mobile terminal, wherein the method comprises the steps that a first mobile terminal encrypts and packages configuration information of a pre-shared WiFi hotspot and then starts a WiFi Aware function; detecting a second mobile terminal with a WiFi Aware function started nearby, and establishing a physical connection group with the second mobile terminal; the first mobile terminal broadcasts the encrypted and packaged configuration information through a WiFi Aware message interface; the second mobile terminal acquires and analyzes the configuration information, adds a WiFi hotspot on the second mobile terminal for connection and monitoring according to an analysis result, judges whether the WiFi hotspot shared by the second mobile terminal and the first mobile terminal is successfully connected, and feeds a monitoring result back to the first mobile terminal; and the first mobile terminal receives the feedback information of the second mobile terminal. The invention realizes the one-key sharing connection of the WiFi hotspot, ensures the safety of the WiFi hotspot configuration information in an encryption mode, reduces the operation steps of a user and provides convenience for the user.

Description

WiFi hotspot password sharing processing method and system and mobile terminal
Technical Field
The invention relates to the field of mobile terminal application, in particular to a WiFi hotspot password sharing processing method, a WiFi hotspot password sharing processing system and a mobile terminal.
Background
At present, along with the continuous development of mobile terminals, wireless WIFI networks have been widely used by users in life, when using wireless networks, users often set passwords very complicated for safety needs, when needing to share the WIFI passwords connected by themselves to other users, the passwords need to be input again, if users forget the current passwords, the passwords can only be confirmed by looking over the router again, which is very troublesome and inconvenient for users to use.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a WiFi hotspot password sharing processing method, a WiFi hotspot password sharing processing system and a mobile terminal aiming at the defects in the prior art, wherein through a WiFi Aware technology, the mobile terminal can read own WIFI hotspot configuration information at a background only by selecting a corresponding menu, and transmits the corresponding information through a broadcast service after encryption and packaging; after receiving the corresponding service information, the target device analyzes the corresponding information and performs decryption processing to obtain connection information of the WiFi hotspot, and automatic connection of sharing the WiFi hotspot is achieved by calling an interface. Through the method, one-key sharing connection of the WiFi hotspot is achieved, the security of WiFi hotspot configuration information can be guaranteed through an encryption mode, and convenience is provided for users.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a WiFi hotspot password sharing processing method comprises the steps of,
a, a first mobile terminal reads configuration information of a pre-shared WiFi hot point, and encrypts and packages the configuration information;
b, the first mobile terminal starts a WiFi Aware function, detects a second mobile terminal with the WiFi Aware function started according to a WiFi Aware protocol specification, and establishes a physical connection group with the second mobile terminal;
c, the first mobile terminal broadcasts the encrypted and packaged configuration information of the WiFi hot point through a WiFi Aware message interface;
d, the second mobile terminal acquires and analyzes configuration information broadcasted by the first mobile terminal, a WiFi hotspot is added to the second mobile terminal for connection according to an analysis result, a connection result is monitored, whether the second mobile terminal is successfully connected with the WiFi hotspot shared by the first mobile terminal or not is judged, and information of whether the second mobile terminal is successfully connected or not is fed back to the first mobile terminal;
and E, the first mobile terminal receives feedback information of whether the second mobile terminal is successfully connected.
The step A comprises the following steps:
a1, acquiring current WiFi hotspot lists according to a hotspot sharing menu of a first mobile terminal operated by a user, wherein the WiFi hotspots are displayed by SSID names;
a2, selecting a pre-shared WiFi hotspot in a first mobile terminal according to user operation;
a3, the first mobile terminal reads configuration information of the pre-shared WiFi hot spot, wherein the configuration information comprises an SSID (service set identifier) name, an encryption type and a shared key;
a4, the shared secret key is encrypted and packaged with SSID name and encryption type according to a predetermined format.
The step B comprises the following steps:
b1, the first mobile terminal starts the WiFi Aware function, and detects a second mobile terminal which has started the WiFi Aware function nearby according to the WiFi Aware protocol specification;
b2, selecting to receive WiFi hotspot configuration information according to user operation, automatically starting a WiFi Aware function by the second mobile terminal, and detecting a nearby first mobile terminal with the WiFi Aware function started according to a WiFi Aware protocol specification;
and B3, the first mobile terminal and the second mobile terminal establish a physical connection group through the WiFi Aware function.
The step D comprises the following steps:
d1, the second mobile terminal filters service information through the WiFi Aware technical interface through the service name, and obtains service information which is broadcasted by the first mobile terminal and carries WiFi hot spot information;
d2, the second mobile terminal analyzes the service information and reads corresponding configuration information according to the encryption type of the WiFi hotspot;
d3, the second mobile terminal automatically adds WiFi hotspots and connects according to the analysis result;
and D4, monitoring the connection between the second mobile terminal and the WiFi hotspot, judging whether the connection is successful, and feeding back the monitoring information to the first mobile terminal.
The monitoring information in step D4 specifically includes:
0: the connection is successful; 1: authentication fails, and the password is incorrect; 2: WiFi hotspots do not exist and are not searched; 3: unknown errors.
The first mobile terminal is a party sharing the WiFi hotspot password; the second mobile terminal is a party sharing the WiFi hotspot password.
A WiFi hotspot password sharing system, comprising:
the sharing module is used for sharing the configuration information of the WiFi hot point through a WiFi Aware wireless technology;
and the analysis connection module is used for receiving and analyzing the configuration information of the WiFi hot spot shared by the sharing module, and connecting the WiFi hot spot according to an analysis result.
The sharing module specifically includes:
the WiFi hotspot configuration information sorting unit is used for reading configuration information of a pre-shared WiFi hotspot by the first mobile terminal, wherein the configuration information comprises an SSID (service set identifier), an encryption type and a shared key, and the shared key is encrypted and packaged together with the SSID and the encryption type according to a preset format;
the first WiFi Aware control unit is used for starting a WiFi Aware function of the first mobile terminal, detecting nearby equipment with the WiFi Aware function started, and establishing a connection group with the second mobile terminal;
a sending unit, configured to broadcast, by the first mobile terminal, the encrypted and packaged configuration information of the WiFi hotspot in the connection group through a WiFi Aware message interface;
and the sharing result prompting unit is used for receiving feedback information of whether the second mobile terminal is successfully connected.
The analysis connection module specifically includes:
the second WiFi Aware control unit is used for selectively receiving WiFi hotspot configuration information according to user operation, automatically starting a WiFi Aware function, detecting a first mobile terminal with the WiFi Aware function started nearby, and establishing a connection group with the first mobile terminal;
the second mobile terminal filters service information by using a service name through a WiFi Aware technical interface, and acquires the service information which is broadcasted by the first mobile terminal and carries WiFi hotspot information;
the analysis unit is used for the second mobile terminal to analyze the service information and read corresponding configuration information according to the encryption type of the WiFi hotspot;
the second mobile terminal is used for automatically adding a WiFi hotspot according to the analysis result and connecting the WiFi hotspot shared by the first mobile terminal with the WiFi hotspot;
the monitoring unit is used for monitoring the connection unit, judging whether the connection is successful or not and feeding monitoring information back to the first mobile terminal;
the monitoring information specifically includes: 0: the connection is successful; 1: authentication fails, and the password is incorrect; 2: WiFi hotspots do not exist and are not searched; 3: unknown errors.
A mobile terminal comprises the WiFi hotspot password sharing system, and further comprises:
when sharing the WiFi hotspot password, the first mobile terminal applies the sharing module; and when the shared WiFi hotspot password is the second mobile terminal, the analysis connection module is applied.
According to the invention, through a WiFi Aware technology, only a user selects a corresponding menu, the mobile terminal can read own WIFI hotspot configuration information at a background, and the information is transmitted out through a broadcast service after being encrypted and packaged; after receiving the corresponding service information, the target device analyzes the corresponding information and performs decryption processing to obtain connection information of the WiFi hotspot, and automatic connection of sharing the WiFi hotspot is achieved by calling an interface. Through the method, one-key sharing connection of the WiFi hotspot is achieved, the security of WiFi hotspot configuration information can be guaranteed through an encryption mode, and convenience is provided for users.
Drawings
Fig. 1 is a flowchart of a WiFi hotspot password sharing processing method according to a preferred embodiment of the present invention.
Fig. 2 is a functional schematic diagram of a WiFi hotspot password sharing system of a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A WiFi hotspot password sharing processing method, as shown in fig. 1, includes the steps,
s100, the first mobile terminal reads configuration information of the pre-shared WiFi hot spot, and the configuration information is encrypted and packaged.
S100 specifically comprises:
s101, a user operates a hot spot sharing menu of a first mobile terminal to obtain all current WiFi hot spot lists, and the WiFi hot spots are displayed by SSID names.
In the embodiment of the invention, when a user needs to share a WiFi hotspot to a second mobile terminal (other mobile terminals not connected with the WiFi hotspot), a WiFi hotspot sharing menu in a UI (user interface) in a first mobile terminal (a mobile terminal connected with the WiFi hotspot) is operated, the current WiFi hotspot configuration information in the first mobile terminal is obtained and displayed in a list, and the SSID (service set identifier) name (WiFi hotspot name) is displayed as a list theme during display.
S102, the user selects a pre-shared WiFi hotspot at the first mobile terminal.
I.e. the user selects a WiFi hotspot to which the first mobile terminal is already connected.
S103, the first mobile terminal reads configuration information of the pre-shared WiFi hot spot, wherein the configuration information comprises an SSID name, an encryption type and a shared secret key.
In the embodiment of the invention, the configuration information comprises an SSID name, an encryption type and a shared secret key.
The SSID name is the display name of the WiFi hotspot;
the encryption types are divided into three types: a WEP secure encryption mode, a WPA secure encryption mode and a WPA2 secure encryption mode;
the shared key is a pre-shared key and is used for a password verified at the moment of the WiFi hotspot.
S104, the shared secret key is encrypted and packaged together with the SSID name and the encryption type according to a preset format.
In the embodiment of the present invention, the configuration information packaging format of the WiFi hot spot is mainly divided by the semicolon as an interval, for example: ssid =; key _ mgmt =; psk = ""; in the packaging process, sensitive information such as a shared key and the like needs to be packaged after encryption, and because the data volume sent by WiFi Aware each time is not particularly large, the encryption mode adopts a method such as simpler keyboard encryption and the like so as to match the transmission volume limitation of WiFi Aware and also can be expanded according to actual conditions.
In step S100 of the embodiment of the present invention, that is, the user only needs to open the hotspot sharing menu of the first mobile terminal, and select the pre-shared WiFi hotspot, the first mobile terminal may automatically encrypt and package the pre-shared WiFi hotspot configuration information.
S200, the first mobile terminal starts a WiFi Aware function, detects a second mobile terminal with the WiFi Aware function started according to a WiFi Aware protocol specification, and establishes a physical connection group with the second mobile terminal.
S200 specifically comprises the following steps:
s201, the first mobile terminal starts a WiFi Aware function, and detects a second mobile terminal which is close to the first mobile terminal and starts the WiFi Aware function according to WiFi Aware protocol specifications.
In step S201, after the user selects the pre-shared WiFi hotspot, the first mobile terminal automatically starts the WiFi Aware function, detects a nearby device having the WiFi Aware function started according to the WiFi Aware protocol specification, and establishes a physical connection group with the device.
S202, a user selects to receive WiFi hotspot configuration information by operating the second mobile terminal, the second mobile terminal automatically starts a WiFi Aware function, and detects a nearby first mobile terminal with the WiFi Aware function started according to WiFi Aware protocol specifications.
In step S202, the second mobile terminal that needs to receive the WiFi hotspot configuration information opens the UI, selects to receive the WiFi hotspot configuration information, and the second mobile terminal automatically starts the WiFi Aware function, detects nearby devices (including the first mobile terminal) that have started the WiFi Aware function according to the WiFi Aware protocol specification, and establishes a physical connection group with the devices.
S203, the first mobile terminal and the second mobile terminal establish a physical connection group through a WiFi Aware function.
At this time, the second mobile terminal and the first mobile terminal are already in a connection group established through WiFi Aware.
In step S200 of the embodiment of the present invention, a first mobile terminal automatically starts a WiFi Aware function, a second mobile terminal needs to be operated by a user, and automatically starts the WiFi Aware function after selecting to receive WiFi hotspot configuration information, and the first mobile terminal and the second mobile terminal detect nearby devices, on which the WiFi Aware function is started, according to a WiFi Aware protocol specification and enter a same connection group established according to the WiFi Aware protocol specification.
S300, the first mobile terminal broadcasts encrypted and packaged configuration information of the WiFi hot point through a WiFi Aware message interface;
in step S200 of the embodiment of the present invention, a first mobile terminal starts broadcasting encrypted and packaged WiFi hotspot configuration information through a WiFi Aware message interface, and waits for feedback of an opposite terminal device; the configuration packet is named by default with the SSID name.
S400, the second mobile terminal acquires and analyzes configuration information broadcast by the first mobile terminal, adds a WiFi hotspot on the second mobile terminal for connection according to an analysis result, monitors a connection result, judges whether the second mobile terminal is successfully connected with the WiFi hotspot shared by the first mobile terminal, and feeds back information of whether the second mobile terminal is successfully connected to the first mobile terminal.
S400 specifically comprises the following steps:
s401, the second mobile terminal filters service information through the WiFi Aware technical interface through the service name, and obtains service information which is broadcasted by the first mobile terminal and carries WiFi hotspot information.
In step S401, the second mobile station in the same connection group as the first mobile station filters information in the connection group by the name of the service information, and only obtains the service information named by the SSID name by default.
S402, the second mobile terminal analyzes the service information and reads corresponding configuration information according to the encryption type of the WiFi hotspot.
In step S402, the second mobile terminal analyzes the acquired service information carrying the WiFi hotspot configuration information, reads the corresponding configuration information according to the encryption type of the WiFi hotspot, and analyzes sensitive information such as a password and the like in a corresponding decryption manner for the shared key, for example, if the received shared key is encrypted by a keyboard, the second mobile terminal analyzes the shared key encrypted by the keyboard in the corresponding decryption manner; it should be noted that the above analyzed WiFi hotspot configuration information is non-explicit, and the user cannot read the configuration information of the WiFi hotspot through the second mobile terminal.
And S403, the second mobile terminal automatically adds WiFi hotspots and connects according to the analysis result.
In step S403, the second mobile terminal automatically adds a WiFi hotspot to the second mobile terminal according to the analysis result, and connects to the WiFi hotspot according to the analyzed configuration information.
S404, monitoring the connection between the second mobile terminal and the WiFi hotspot, judging whether the connection is successful, and feeding monitoring information back to the first mobile terminal.
The monitoring information specifically includes:
0: the connection is successful; 1: authentication fails, and the password is incorrect; 2: WiFi hotspots do not exist and are not searched; 3: unknown errors.
In step S403, the connection between the second mobile terminal and the WiFi hotspot is monitored, and whether the connection is successful is determined.
And if the connection is successful, displaying on the second mobile terminal through the UI: 0: the connection is successful; if the connection fails, displaying the failure type on the second mobile terminal through a UI: 1: authentication fails, and the password is incorrect; 2: WiFi hotspots do not exist and are not searched; 3: unknown errors. And the second mobile terminal will automatically feed back the connection information to the first mobile terminal.
S500, the first mobile terminal receives feedback information of whether the second mobile terminal is successfully connected.
In step S500 of the embodiment of the present invention, the first mobile terminal receives feedback information indicating whether the second mobile terminal is successfully connected, and the feedback information is displayed on the first mobile terminal through the UI, and correspondingly: 0: the connection is successful; 1: authentication fails, and the password is incorrect; 2: WiFi hotspots do not exist and are not searched; 3: unknown errors.
Further, the first mobile terminal is a party sharing the WiFi hotspot password; the second terminal is a party sharing the WiFi hotspot password.
In summary, the present invention discloses a WiFi hotspot password sharing processing method, which includes that a first mobile terminal encrypts and packages pre-shared WiFi hotspot configuration information, and then starts a WiFi Aware function; detecting a second mobile terminal with a WiFi Aware function started nearby, and establishing a physical connection group with the second mobile terminal; the first mobile terminal broadcasts the encrypted and packaged configuration information of the WiFi hot point through a WiFi Aware message interface; the second mobile terminal acquires and analyzes the configuration information, adds a WiFi hotspot on the second mobile terminal for connection and monitoring according to an analysis result, judges whether the WiFi hotspot shared by the second mobile terminal and the first mobile terminal is successfully connected, and feeds a monitoring result back to the first mobile terminal; and the first mobile terminal receives the feedback information of the second mobile terminal. According to the sharing processing method provided by the invention, through a WiFi Aware technology, only a user selects a corresponding menu, the mobile terminal can read own WIFI hotspot configuration information at a background, and the information is transmitted out through a broadcast service after being encrypted and packaged; after receiving the corresponding service information, the target device analyzes the corresponding information and performs decryption processing to obtain connection information of the WiFi hotspot, and automatic connection of sharing the WiFi hotspot is achieved by calling an interface. Through the method, one-key sharing connection of the WiFi hotspot is achieved, the security of WiFi hotspot configuration information can be guaranteed through an encryption mode, and convenience is provided for users.
Based on the above WiFi hotspot password sharing processing method, the present invention also provides a WiFi hotspot password sharing system, as shown in fig. 2, including:
the sharing module 100 is configured to share configuration information of the WiFi hot spot through a WiFi Aware wireless technology; as described above.
The analysis connection module 200 is configured to receive and analyze configuration information of the WiFi hotspot shared by the sharing module, and connect the WiFi hotspot according to an analysis result; as described above.
The sharing module 100 specifically includes:
a WiFi hotspot configuration information collating unit 101, configured to read, by a first mobile terminal, configuration information of a WiFi hotspot to be shared in advance, where the configuration information includes an SSID name, an encryption type, and a shared key, encrypt the shared key, and package the encrypted shared key together with the SSID name and the encryption type in a predetermined format; as described above.
The first WiFi Aware control unit 102 is used for starting a WiFi Aware function of the first mobile terminal, detecting nearby equipment with the WiFi Aware function started, and establishing a connection group with the second mobile terminal; as described above.
A sending unit 103, configured to broadcast, by the first mobile terminal, the encrypted and packaged configuration information of the WiFi hot spot in the connection group through a WiFi Aware message interface; as described above.
The sharing result prompting unit 104 is configured to receive feedback information of whether the second mobile terminal is successfully connected; as described above.
The parsing connection module 200 specifically includes:
the second WiFi Aware control unit 201 is configured to select to receive WiFi hotspot configuration information by operating a second mobile terminal, automatically start a WiFi Aware function, detect a nearby first mobile terminal with the WiFi Aware function started, and establish a connection group with the first mobile terminal; as described above.
An obtaining unit 202, configured to filter, by a second mobile terminal through a WiFi Aware technology interface, service information by using a service name, and obtain service information carrying WiFi hotspot information broadcast by a first mobile terminal; as described above.
The analysis unit 203 is configured to analyze the service information by the second mobile terminal, and read corresponding configuration information according to the encryption type of the WiFi hotspot; as described above.
The connection unit 204 is configured to automatically add a WiFi hotspot according to the analysis result by the second mobile terminal, and connect with the WiFi hotspot shared by the first mobile terminal; as described above.
A monitoring unit 205, configured to monitor the connection unit, determine whether the connection is successful, and feed back monitoring information to the first mobile terminal; as described above.
The monitoring information 205 specifically includes: 0: the connection is successful; 1: authentication fails, and the password is incorrect; 2: WiFi hotspots do not exist and are not searched; 3: an unknown error; as described above.
In the embodiment of the present invention, it should be noted that the first mobile terminal and the second mobile terminal also include the sharing module 100 and the connection analysis module 200.
Based on the WiFi hotspot password sharing system, the present invention also provides a mobile terminal, which includes any one of the above WiFi hotspot password sharing systems, and further includes:
when sharing the WiFi hotspot password, the first mobile terminal is used for applying a sharing module; and when the shared WiFi hotspot password is the second mobile terminal, the connection analysis module is applied.
In summary, the present invention discloses a WiFi hotspot password sharing processing method, system and mobile terminal, including that a first mobile terminal encrypts and packages pre-shared WiFi hotspot configuration information and then starts a WiFi Aware function; detecting a second mobile terminal with a WiFi Aware function started nearby, and establishing a physical connection group with the second mobile terminal; the first mobile terminal broadcasts the encrypted and packaged configuration information of the WiFi hot point through a WiFi Aware message interface; the second mobile terminal acquires and analyzes the configuration information, adds a WiFi hotspot on the second mobile terminal for connection and monitoring according to an analysis result, judges whether the WiFi hotspot shared by the second mobile terminal and the first mobile terminal is successfully connected, and feeds a monitoring result back to the first mobile terminal; and the first mobile terminal receives the feedback information of the second mobile terminal. According to the sharing processing method provided by the invention, through a WiFi Aware technology, only a user selects a corresponding menu, the mobile terminal can read own WIFI hotspot configuration information at a background, and the information is transmitted out through a broadcast service after being encrypted and packaged; after receiving the corresponding service information, the target device analyzes the corresponding information and performs decryption processing to obtain connection information of the WiFi hotspot, and automatic connection of sharing the WiFi hotspot is achieved by calling an interface. Through the method, one-key sharing connection of the WiFi hotspot is achieved, the security of WiFi hotspot configuration information can be guaranteed through an encryption mode, and convenience is provided for users.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (4)

1. A WiFi hotspot password sharing processing method is characterized by comprising the following steps,
a, a first mobile terminal reads configuration information of a pre-shared WiFi hot point, and encrypts and packages the configuration information;
the step A comprises the following steps:
a1, acquiring current WiFi hotspot lists according to a hotspot sharing menu of a first mobile terminal operated by a user, wherein the WiFi hotspots are displayed by SSID names;
a2, selecting a pre-shared WiFi hotspot in a first mobile terminal according to user operation;
a3, the first mobile terminal reads configuration information of the pre-shared WiFi hot spot, wherein the configuration information comprises an SSID (service set identifier) name, an encryption type and a shared key;
a4, encrypting the shared secret key, and packaging the encrypted secret key, SSID name and encryption type according to a preset format;
b, the first mobile terminal starts a WiFi Aware function, detects a second mobile terminal with the WiFi Aware function started according to a WiFi Aware protocol specification, and establishes a physical connection group with the second mobile terminal;
the step B comprises the following steps:
b1, the first mobile terminal starts the WiFi Aware function, and detects a second mobile terminal which has started the WiFi Aware function nearby according to the WiFi Aware protocol specification;
b2, selecting to receive WiFi hotspot configuration information according to user operation, automatically starting a WiFi Aware function by the second mobile terminal, and detecting a nearby first mobile terminal with the WiFi Aware function started according to a WiFi Aware protocol specification;
b3, the first mobile terminal and the second mobile terminal establish a physical connection group through a WiFi Aware function;
c, the first mobile terminal broadcasts the encrypted and packaged configuration information of the WiFi hot point through a WiFi Aware message interface;
d, the second mobile terminal acquires and analyzes configuration information broadcasted by the first mobile terminal, a WiFi hotspot is added to the second mobile terminal for connection according to an analysis result, a connection result is monitored, whether the second mobile terminal is successfully connected with the WiFi hotspot shared by the first mobile terminal or not is judged, and information of whether the second mobile terminal is successfully connected or not is fed back to the first mobile terminal;
the step D comprises the following steps:
d1, the second mobile terminal filters service information through the WiFi Aware technical interface through the service name, and obtains service information which is broadcasted by the first mobile terminal and carries WiFi hot spot information;
d2, the second mobile terminal analyzes the service information and reads corresponding configuration information according to the encryption type of the WiFi hotspot; the D2 is specifically as follows: the second mobile terminal analyzes the acquired service information carrying the WiFi hotspot configuration information, reads corresponding configuration information according to the encryption type of the WiFi hotspot, and analyzes the shared key in a corresponding decryption mode; the analyzed WiFi hotspot configuration information is non-explicit, and a user cannot read the configuration information of the WiFi hotspot through the second mobile terminal;
d3, the second mobile terminal automatically adds WiFi hotspots and connects according to the analysis result;
d4, monitoring the connection between the second mobile terminal and the WiFi hotspot, judging whether the connection is successful, and feeding monitoring information back to the first mobile terminal; the monitoring information specifically includes: 0: the connection is successful; 1: authentication fails, and the password is incorrect; 2: WiFi hotspots do not exist and are not searched; 3: an unknown error;
e, the first mobile terminal receives feedback information of whether the second mobile terminal is successfully connected;
through a WiFi (wireless fidelity) Aware technology, a user only needs to select a corresponding menu, the mobile terminal reads the WIFI hotspot configuration information of the mobile terminal, and the corresponding information is transmitted out through a broadcast service after encryption and packaging; after receiving the corresponding service information, the target device analyzes the corresponding information and performs decryption processing to obtain connection information of the WiFi hotspot, and automatic connection of sharing the WiFi hotspot is achieved by calling an interface.
2. The WiFi hotspot password sharing processing method of claim 1, wherein the first mobile terminal is a party sharing a WiFi hotspot password; the second mobile terminal is a party sharing the WiFi hotspot password.
3. A WiFi hotspot password sharing system, comprising:
the sharing module is used for sharing the configuration information of the WiFi hot point through a WiFi Aware wireless technology;
the sharing module specifically includes:
the WiFi hotspot configuration information sorting unit is used for reading configuration information of a pre-shared WiFi hotspot by the first mobile terminal, wherein the configuration information comprises an SSID (service set identifier), an encryption type and a shared key, and the shared key is encrypted and packaged together with the SSID and the encryption type according to a preset format;
the first WiFi Aware control unit is used for starting a WiFi Aware function of the first mobile terminal, detecting nearby equipment with the WiFi Aware function started, and establishing a connection group with the second mobile terminal;
a sending unit, configured to broadcast, by the first mobile terminal, the encrypted and packaged configuration information of the WiFi hotspot in the connection group through a WiFi Aware message interface;
the sharing result prompting unit is used for receiving feedback information of whether the second mobile terminal is successfully connected;
the analysis connection module is used for receiving and analyzing the configuration information of the WiFi hot spot shared by the sharing module, and connecting the WiFi hot spot according to an analysis result;
the analysis connection module specifically includes:
the second WiFi Aware control unit is used for selectively receiving WiFi hotspot configuration information according to user operation, automatically starting a WiFi Aware function, detecting a first mobile terminal with the WiFi Aware function started nearby, and establishing a connection group with the first mobile terminal;
the second mobile terminal filters service information by using a service name through a WiFi Aware technical interface, and acquires the service information which is broadcasted by the first mobile terminal and carries WiFi hotspot information;
the analysis unit is used for the second mobile terminal to analyze the service information and read corresponding configuration information according to the encryption type of the WiFi hotspot; the second terminal is automatically accessed to the WiFi hotspot after analysis, the analyzed WiFi hotspot configuration information is non-explicit, and a user cannot read the configuration information of the WiFi hotspot through the second mobile terminal; therefore, the safe sharing of the configuration information of the WiFi hotspot can be effectively realized;
the second mobile terminal is used for automatically adding a WiFi hotspot according to the analysis result and connecting the WiFi hotspot shared by the first mobile terminal with the WiFi hotspot;
the monitoring unit is used for monitoring the connection unit, judging whether the connection is successful or not and feeding monitoring information back to the first mobile terminal;
through a WiFi (wireless fidelity) Aware technology, a user only needs to select a corresponding menu, the mobile terminal reads the WIFI hotspot configuration information of the mobile terminal, and the corresponding information is transmitted out through a broadcast service after encryption and packaging; after receiving the corresponding service information, the target device analyzes the corresponding information and carries out decryption processing to obtain connection information of the WiFi hotspot, and automatic connection of the shared WiFi hotspot is realized by calling an interface;
the monitoring information specifically includes: 0: the connection is successful; 1: authentication fails, and the password is incorrect; 2: WiFi hotspots do not exist and are not searched; 3: unknown errors.
4. A mobile terminal comprising the WiFi hotspot password sharing system of claim 3, further comprising: when sharing the WiFi hotspot password, the first mobile terminal applies the sharing module; and when the shared WiFi hotspot password is the second mobile terminal, the analysis connection module is applied.
CN201710138884.0A 2017-03-09 2017-03-09 WiFi hotspot password sharing processing method and system and mobile terminal Active CN106973381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710138884.0A CN106973381B (en) 2017-03-09 2017-03-09 WiFi hotspot password sharing processing method and system and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710138884.0A CN106973381B (en) 2017-03-09 2017-03-09 WiFi hotspot password sharing processing method and system and mobile terminal

Publications (2)

Publication Number Publication Date
CN106973381A CN106973381A (en) 2017-07-21
CN106973381B true CN106973381B (en) 2020-11-13

Family

ID=59329515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710138884.0A Active CN106973381B (en) 2017-03-09 2017-03-09 WiFi hotspot password sharing processing method and system and mobile terminal

Country Status (1)

Country Link
CN (1) CN106973381B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019051647A1 (en) * 2017-09-12 2019-03-21 深圳传音通讯有限公司 Method for sharing wifi password, first terminal, second terminal, and system
CN109981420A (en) * 2017-12-27 2019-07-05 九阳股份有限公司 A kind of smart machine matches network method and smart machine
CN110022532A (en) * 2018-01-10 2019-07-16 中兴通讯股份有限公司 A kind of WiFi-Aware group broadcasting method, core equipment and group member's equipment
CN110113802A (en) * 2018-05-18 2019-08-09 上海连尚网络科技有限公司 A kind of method of the configuration information of shared wireless access point
JP2021526332A (en) * 2018-05-31 2021-09-30 華為技術有限公司Huawei Technologies Co.,Ltd. How to implement application functions and electronic devices
CN110691397B (en) * 2018-07-05 2021-10-22 腾讯科技(深圳)有限公司 WIFI sharing method, WIFI connection device and computer-readable storage medium
CN109041033A (en) * 2018-09-14 2018-12-18 杭州若奇技术有限公司 Smart machine distribution method and system based on RFID
CN109803249A (en) * 2019-02-25 2019-05-24 努比亚技术有限公司 A kind of WIFI network sharing method, terminal and computer readable storage medium
CN111194070B (en) * 2019-12-24 2021-08-31 腾讯科技(深圳)有限公司 Wireless network processing and access method, device, system, storage medium and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724668A (en) * 2012-06-15 2012-10-10 惠州Tcl移动通信有限公司 Method and system for sharing WIFI (wireless fidelity) network information on basis of two-dimensional code graphs
CN104955169A (en) * 2015-05-26 2015-09-30 上海摩软通讯技术有限公司 Network based on Wi-Fi (wireless fidelity) Direct and communication method of network
CN105141706A (en) * 2015-10-15 2015-12-09 丹阳伦图电子技术有限公司 ESL system for realizing content pushing based on Wi-Fi Aware
CN105635945A (en) * 2015-12-24 2016-06-01 Tcl集团股份有限公司 Device communication method and system based on WI-FI Aware
CN105897691A (en) * 2016-03-24 2016-08-24 美的集团股份有限公司 Method, apparatus, and system for connection of IoT device to network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9872234B2 (en) * 2015-02-12 2018-01-16 Intel IP Corporation Apparatus, system and method of communicating in an awareness cluster

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724668A (en) * 2012-06-15 2012-10-10 惠州Tcl移动通信有限公司 Method and system for sharing WIFI (wireless fidelity) network information on basis of two-dimensional code graphs
CN104955169A (en) * 2015-05-26 2015-09-30 上海摩软通讯技术有限公司 Network based on Wi-Fi (wireless fidelity) Direct and communication method of network
CN105141706A (en) * 2015-10-15 2015-12-09 丹阳伦图电子技术有限公司 ESL system for realizing content pushing based on Wi-Fi Aware
CN105635945A (en) * 2015-12-24 2016-06-01 Tcl集团股份有限公司 Device communication method and system based on WI-FI Aware
CN105897691A (en) * 2016-03-24 2016-08-24 美的集团股份有限公司 Method, apparatus, and system for connection of IoT device to network

Also Published As

Publication number Publication date
CN106973381A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
CN106973381B (en) WiFi hotspot password sharing processing method and system and mobile terminal
US20170332305A1 (en) Communication apparatus and method
US9288677B2 (en) Communication system, communication apparatus and method for setting communication parameters of the apparatus
JP4284192B2 (en) Detection of counterfeit access points in wireless local area networks
US8103003B2 (en) Method for setting communication parameters and communication device
EP2713671B1 (en) Method and apparatus for repeater wi-fi protected setup connections
EP2355585B1 (en) Connecting wireless communications, wireless communications terminal and wireless communications system
KR100694219B1 (en) Apparatus and method detecting data transmission mode of access point in wireless terminal
CN106535288B (en) Method for sending and acquiring wifi networking information and corresponding device
KR20110053187A (en) Wireless communication device, wireless communication system, program and wireless communication method
CN106332085B (en) Configuration method of WIFI network of Internet of things, Internet of things terminal and routing terminal
JP4759373B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
US20210058770A1 (en) Bluetooth network and network configuration method
US8862096B1 (en) Provisioning of multiple wireless devices by an access point
US20110142241A1 (en) Communication apparatus configured to perform encrypted communication and method and program for controlling the same
US9510130B2 (en) Provisioning of multiple wireless devices by an access point
CN106131834B (en) Network connection method, network connection device and terminal
CN108990052B (en) Method for detecting WPA2 protocol vulnerability
CN111132146A (en) Wireless network access and calibration method, device and equipment
CN111050415B (en) Wireless data transmission method convenient to operate
US20210084466A1 (en) Ecosystem-based wireless network setup
JP2020043545A (en) Communication device, communication device control method, and program
US20190306707A1 (en) Communication Device And Non-Transitory Computer-Readable Recording Medium Storing Computer-Readable Instructions For Communication Device
CN112422339A (en) Method for mutual configuration of Internet of things equipment
CN106888449B (en) USIM application information processing method and system

Legal Events

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