CN108134999B - WiFi connection method, connection device, terminal equipment and computer-readable storage medium - Google Patents

WiFi connection method, connection device, terminal equipment and computer-readable storage medium Download PDF

Info

Publication number
CN108134999B
CN108134999B CN201711374623.5A CN201711374623A CN108134999B CN 108134999 B CN108134999 B CN 108134999B CN 201711374623 A CN201711374623 A CN 201711374623A CN 108134999 B CN108134999 B CN 108134999B
Authority
CN
China
Prior art keywords
equipment
wifi
identification
terminal
login 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
CN201711374623.5A
Other languages
Chinese (zh)
Other versions
CN108134999A (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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet 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 Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201711374623.5A priority Critical patent/CN108134999B/en
Publication of CN108134999A publication Critical patent/CN108134999A/en
Application granted granted Critical
Publication of CN108134999B publication Critical patent/CN108134999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a WiFi connection method, a connection device, terminal equipment and a computer-readable storage medium. The WiFi connection method comprises the following steps: acquiring a device identification mark of a terminal device supporting an adhoc network protocol around; identifying the terminal equipment according to the equipment identification mark in a preset mode; and sending the WiFi login information to the identified terminal equipment so as to enable the terminal equipment to access the WiFi hotspot. The novel WiFi access mode is suitable for the preset group, and can be conveniently accessed to a network for intelligent household equipment without a display screen, a keyboard, a camera and other input equipment.

Description

WiFi connection method, connection device, terminal equipment and computer-readable storage medium
Technical Field
The present invention relates to a network connection technology, and in particular, to a WiFi connection method, a connection device, a terminal device, and a computer-readable storage medium.
Background
Modern daily life has become increasingly inseparable from terminal devices such as tablet computers, smart phones, electronic books, portable notebooks, desktop computers, etc. Various terminal devices may access a network through WiFi, especially a mobile terminal often needs to connect to different networks, and at present, when the terminal device connects to encrypted WiFi, there are two methods:
1. the password connection is input manually;
2. through two-dimension code sharing, namely, assuming that the terminal device A is connected with the encrypted hotspot Test, then the terminal device A can connect the hotspot Test by scanning the two-dimension code.
If a plurality of terminal devices in a certain predetermined group need to be networked, for example, when terminal devices of the same brand are used in a certain company or terminal devices are customized, each terminal device needs to input a password one by one or scan a shared two-dimensional code before accessing, which is a tedious process.
In addition, in the current intelligent home system, some intelligent homes need to be connected with a network, and some equipment does not have a display screen or a camera through network control, so that the equipment cannot be connected through inputting a password or scanning a two-dimensional code.
Disclosure of Invention
The invention provides a novel WiFi connection method, a connection device, terminal equipment and a computer-readable storage medium.
The first embodiment of the present invention relates to a WiFi connection method, including:
acquiring a device identification mark of a terminal device supporting an adhoc network protocol around;
identifying the terminal equipment according to the equipment identification mark in a preset mode;
and sending the WiFi login information to the identified terminal equipment so as to enable the terminal equipment to access the WiFi hotspot.
In the above WiFi connection method, according to the device identification, identifying whether the corresponding terminal device belongs to a predetermined group;
if the corresponding terminal equipment belongs to the preset group, the WiFi login information is sent to the corresponding terminal equipment so that the corresponding terminal equipment can be accessed to the WiFi hotspot; and if the corresponding terminal equipment does not belong to the preset group, the WiFi login information is not sent.
In the above-mentioned WiFi connection method, said identifying whether the corresponding terminal device belongs to a predetermined group according to the device identification identifier includes: and sending the equipment identification mark to a server, determining whether the equipment identification mark is contained in a pre-stored equipment list or not by the server, if the equipment identification mark is contained in the pre-stored equipment list, belonging to the preset group, otherwise, not belonging to the preset group.
In the above-mentioned WiFi connection method, said identifying whether the corresponding terminal device belongs to a predetermined group according to the device identification identifier includes: and determining whether the equipment identification mark contains a group mark for marking the preset group or not, if so, belonging to the preset group, otherwise, not belonging to the preset group.
In the above WiFi connection method, further comprising:
if the corresponding terminal equipment does not belong to the preset group, writing the equipment identification mark into an equipment list;
receiving an input equipment confirmation identifier of the terminal equipment to be accessed to the network;
matching the received equipment confirmation identification with the equipment identification in the equipment list;
if the matching is successful, the WiFi login information is sent to the corresponding terminal equipment so that the terminal equipment can be connected to the WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
In the above WiFi connection method, further comprising:
if the corresponding terminal equipment belongs to the preset group, writing the equipment identification mark into a first equipment list, and if the corresponding terminal equipment does not belong to the preset group, writing the equipment identification mark into a second equipment list;
receiving an input equipment confirmation identifier of the terminal equipment to be accessed to the network;
determining whether the terminal equipment of the network to be accessed belongs to the preset group or not according to the received equipment confirmation identification;
if the device identification identifier belongs to the preset group, matching the device identification identifier with the device identification identifier in the first device list; if the device identification identifier does not belong to the preset group, matching the device identification identifier with the device identification identifier in the second device list;
if the matching is successful, the WiFi login information is sent to the corresponding terminal equipment so that the terminal equipment can be connected to the WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
In the above-described WiFi connection method, the device confirmation identification is input manually by the user or is recognized by scanning.
In the above WiFi connection method, the device identification is a device ID and/or a MAC address of the terminal device.
In the WiFi connection method, the terminal device of the predetermined group is a terminal device of a predetermined brand or a customized terminal device.
In the above-mentioned WiFi connection method, after the terminal device connects to the WiFi hotspot, its adhoc switch is turned off.
In the above-mentioned WiFi connection method, the WiFi login information includes an SSID, an encryption manner, and a password of the WiFi hotspot.
In the above WiFi connection method, the WiFi login information is sent to the terminal device in a two-dimensional code form.
In the WiFi connection method, if the matching fails, the user is also prompted to re-input the correct device confirmation identifier.
A second embodiment of the present invention relates to a WiFi connection apparatus, including:
the device identification acquisition module is used for acquiring the device identification of the terminal device supporting the adhoc network protocol;
the identification module identifies the terminal equipment according to the equipment identification mark in a preset mode;
and the sending module is used for sending the WiFi login information to the identified terminal equipment so as to enable the terminal equipment to be accessed to the WiFi hotspot.
In the above WiFi connection apparatus, the predetermined mode is a group mode in which: the identification module identifies whether the corresponding terminal equipment belongs to a preset group according to the equipment identification mark;
if the corresponding terminal equipment belongs to the preset group, the sending module sends WiFi login information to the corresponding terminal equipment so that the corresponding terminal equipment can be accessed to a WiFi hotspot; and if the corresponding terminal equipment does not belong to the preset group, the transmitting module does not transmit the WiFi login information.
In the above WiFi connection apparatus, the identification module sends the device identifier to a server, and the server determines whether the device identifier is included in a pre-stored device list, and if the device identifier is included in the pre-stored device list, the device identifier belongs to the predetermined group, otherwise the device identifier does not belong to the predetermined group.
In the above WiFi connecting apparatus, the identifying module determines whether the device identifier includes a group identifier for identifying the predetermined group, and if the device identifier includes the group identifier for identifying the predetermined group, the device identifier belongs to the predetermined group, otherwise the device identifier does not belong to the predetermined group.
In the above WiFi connection apparatus, further comprising:
the equipment list generating module is used for writing the equipment identification mark into an equipment list if the corresponding terminal equipment does not belong to the preset group;
the receiving module is used for receiving the input equipment confirmation identification of the terminal equipment to be accessed to the network;
the matching module is used for matching the received equipment confirmation identification with the equipment identification in the equipment list;
if the matching is successful, the sending module sends WiFi login information to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
In the above WiFi connection apparatus, further comprising:
the equipment list generating module is used for writing the equipment identification into a first equipment list if the corresponding terminal equipment belongs to the preset group, and writing the equipment identification into a second equipment list if the corresponding terminal equipment does not belong to the preset group;
the receiving module is used for receiving the input equipment confirmation identification of the terminal equipment to be accessed to the network;
the matching module is used for determining whether the terminal equipment of the network to be accessed belongs to the preset group or not according to the received equipment confirmation identification;
if the device identification identifier belongs to the preset group, the matching module matches the device identification identifier in the first device list with the device confirmation identifier; if the device identification identifier does not belong to the predetermined group, the matching module matches the device identification identifier with the device identification identifier in the second device list;
if the matching is successful, the sending module sends WiFi login information to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
In the above-described WiFi connection apparatus, the device confirmation identification is input manually by a user or is input by scanning recognition.
In the above WiFi connection apparatus, the device identification is a device ID and/or a MAC address of the terminal device.
In the above-mentioned WiFi connection apparatus, the terminal device of the predetermined group is a terminal device of a predetermined brand or a customized terminal device.
In the above WiFi connection apparatus, further comprising a switch module, after the terminal device connects to the WiFi hotspot, turning off its ad hoc switch.
In the above-mentioned WiFi connection device, the WiFi login information includes an SSID, an encryption scheme, and a password of the WiFi hotspot.
In the above WiFi connection apparatus, the sending module sends the WiFi login information to the terminal device in a two-dimensional code form.
In the above-mentioned WiFi connection apparatus, if the matching fails, the user is further prompted to re-input a correct device confirmation identifier.
A third embodiment of the present invention relates to a terminal device, which includes a memory for storing a computer program and a processor for executing the computer program to make the terminal device execute the WiFi connection method.
Optionally, the terminal device is a mobile terminal.
A fourth embodiment of the present invention relates to a computer-readable storage medium storing the computer program used in the terminal device described above.
When a plurality of terminal devices in certain predetermined groups need to be networked, for example, when terminal devices of the same brand are used in a certain company or terminal devices are customized, a password does not need to be input or shared two-dimensional codes do not need to be scanned one by one, and the access is quick and convenient.
The novel WiFi access mode provided by one embodiment of the invention is not only suitable for various terminal devices such as portable notebooks, desktop computers and mobile phones, but also can be conveniently accessed to a network for intelligent household devices without display screens, input devices such as keyboards and/or cameras and the like.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 shows a schematic configuration diagram of a cellular phone as an example of a terminal device of the present invention.
Fig. 2 shows a flowchart of a WiFi connection method of embodiment 1 of the present invention.
Fig. 3 shows a flowchart of a WiFi connection method of embodiment 2 of the present invention.
Fig. 4 shows a flowchart of a WiFi connection method of embodiment 3 of the present invention.
Fig. 5 shows a flowchart of a WiFi connection method of embodiment 4 of the present invention.
Fig. 6 shows a schematic structural diagram of a WiFi connection apparatus of embodiment 5 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a schematic structural diagram of a mobile phone as a terminal device of the present invention, and the mobile phone 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, and a power supply 190. The input unit 130 may include a touch panel and other input devices, and the display unit 140 may include a display panel 140. Those skilled in the art will appreciate that the configuration of the handset 100 shown in fig. 1 does not constitute a limitation of the mobile terminal and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
Under the condition that terminal equipment A such as a mobile phone, a notebook computer, a desktop computer and the like supporting an adhoc network protocol has access to a network, when peripheral terminal equipment needs to access to the network, the terminal equipment can be accessed to the network according to the method of the invention as long as the other terminal equipment supports the adhoc network protocol regardless of whether the other terminal equipment has a display screen or input equipment such as a keyboard or a camera.
The first embodiment of the invention relates to a WiFi connection method, in the method, first obtain the apparatus identification label of the terminal installation supporting ad hoc network protocol around; then, identifying the terminal equipment according to the equipment identification mark in a preset mode; and sending the WiFi login information to the identified terminal equipment so as to enable the terminal equipment to access the WiFi hotspot.
If one terminal device (assumed to be terminal device A) supporting the adhoc network protocol is already connected to the network and other terminal devices supporting the adhoc network protocol need to be connected to the network, the terminal device A can be used for connecting to the network. For example, the terminal device a may be a mobile phone with a corresponding program, and after the corresponding program is started in the mobile phone, corresponding connection is performed to obtain the device identification of other terminal devices that support the adhoc network protocol around. And the user can connect other terminal equipment in different modes according to own needs. In different predetermined modes, other terminal devices to be accessed to the network are identified according to the device identification marks, and after the terminal devices are identified, the WiFi login information is sent to the corresponding terminal devices so as to enable the terminal devices to be accessed to the WiFi hotspot. The default mode may include a group mode and a non-group mode, and will be described in the following with specific embodiments.
Example 1
Fig. 2 shows a flowchart of the WiFi connection method of embodiment 1.
In step S210, device identification identifiers of surrounding terminal devices supporting the adhoc network protocol are acquired. Taking the terminal device a as an example, the terminal device a accessing the network may search all peripheral devices a supporting the adhoc network protocol to obtain a device identification identifier, where the device identification identifier may be a unique identifier such as a device ID and a MAC address of other terminal devices.
Then, in step S220, it is identified whether the corresponding terminal device belongs to a predetermined group according to the device identification identifier.
For example, the terminal device a may send the device identifier to a server, and the server determines whether the device identifier is included in a pre-stored device list, and if the device identifier is included in the pre-stored device list, the terminal device a belongs to the predetermined group, otherwise the terminal device a does not belong to the predetermined group. For example, when terminal devices or customized terminal devices of the same brand are used in a company, product IDs or MAC addresses of all the terminal devices or customized terminal devices of the brand are included in a pre-stored device list on a server, and after uploading a device identification to the server, the server queries whether the pre-stored device list includes the device identification. After the server finishes the query, the server sends the query result to the terminal device A, and the terminal device A performs subsequent processing. Of course, the predetermined group may be more than one.
Or, the terminal device a may determine whether the device identifier includes a group identifier for identifying the predetermined group, and if the device identifier includes the group identifier for identifying the predetermined group, the device a belongs to the predetermined group, otherwise the device a does not belong to the predetermined group. For example, when the same brand of terminal device or customized terminal device is used in a company, the MAC address is taken as an example (device ID may be set similarly), the first three bytes of the MAC address of all terminal devices of the brand or customized terminal device are the same, such as 34-64-a9, and the last three bytes are random, so long as the first three bytes are judged to be the same, the corresponding terminal device can be judged to belong to the brand or customized terminal device.
If the corresponding terminal device belongs to the predetermined group, in step S230, the WiFi login information is sent to the corresponding terminal device so that the terminal device is accessed to the WiFi hotspot; if the corresponding terminal device does not belong to the predetermined group, in step S240, the WiFi login information is not sent.
If the corresponding terminal device belongs to the predetermined group, the device a sends WiFi login information to the terminal devices belonging to the predetermined group, so that all the terminal devices of the predetermined group can conveniently access to the network through the WiFi hotspot. And if the matching is unsuccessful, the WiFi login information is not sent to the corresponding terminal equipment. The WiFi login information may include a Service Set Identification (SSID), encryption, and password for the WiFi hotspot.
The WiFi login information may be sent directly in character form. And if the successfully matched terminal equipment supports the scanning of the two-dimensional code, WiFi login information in a two-dimensional code form can be sent.
As a modification, if it is determined that the corresponding terminal device does not belong to the predetermined group, the WiFi login information is not sent, but when the user needs to access the terminal device in the non-predetermined group, the device identification of the terminal device in the non-predetermined group input by the user may be received, and the WiFi login information is directly sent to the terminal device in the corresponding non-predetermined group. Thereby, even a non-predetermined group of terminal devices can access the network.
As another modification, if it is determined in step S220 that the corresponding terminal device does not belong to the predetermined group, the device identification is written into the device list. Because the device list not belonging to the predetermined group is generated, when the user needs to access the device outside the predetermined group to the network, the device identification identifier of the terminal device of the non-predetermined group input by the user can be compared with the device identification identifier in the device list. For example, the mobile terminal a matches the received device identification with the device identification in the device list. If the matching is successful, namely the received equipment confirmation identifier is contained in the equipment list, the WiFi login information is sent to the corresponding terminal equipment so that the terminal equipment can be connected to the WiFi hotspot; and if the matching fails, the WiFi login information is not sent. When the matching fails, the device confirmation identification manually input by the user may be wrong, or the scanning recognition may be wrong. At this time, the user may be prompted to re-enter the correct device identification, and the user may select manual or scan recognition for re-entry. Then, the matching operation is carried out again on the device confirmation identification input again by the user. Compared with the previous variant, the list generation and matching procedure of the terminal devices of the non-predetermined group is added, whereby the transmission of the WiFi login information is only performed if the corresponding terminal device is detected. When the user mistakenly transmits the identification of the equipment, corresponding prompt can be carried out.
As another modification, after a terminal device supporting an adhoc network protocol accesses a network through a WiFi hotspot, the device a may send an adhoc network protocol shutdown instruction to the terminal device, so as to prevent receiving other WiFi login information. Of course, a hard switch for the adhoc network protocol may also be provided on the terminal device for turning on or off the adhoc network protocol.
Example 2
Fig. 3 shows a flowchart of the WiFi connection method of embodiment 2.
In step S310, device identification of the terminal devices supporting the ad hoc network protocol in the surroundings is acquired. In step S320, whether the corresponding terminal device belongs to a predetermined group is identified according to the device identification identifier. Steps S310 and S320 are similar to steps S210 and S220 in the embodiment, and will not be described in detail here.
If it is determined in step S320 that the corresponding terminal device belongs to the predetermined group, the device identifier is written into the first device list in step S330. If the corresponding terminal device does not belong to the predetermined group, the device identifier is written into the second device list in step S340. I.e. the device identities of the predetermined group (predetermined brand or customized terminal device) and the non-predetermined group are written in different device lists.
In step S350, the user is requested to input a device confirmation identifier of the terminal device to be accessed to the network. For example, terminal device a may prompt the user to enter a device confirmation identification for the terminal device that needs to access the network. The device confirmation identification may be entered by the user using an input device such as a keyboard, touch screen, microphone, etc. In the case where the terminal device a has a camera, the device confirmation identifier may also be acquired by a scanning method. For example, the device confirmation identification may be acquired by photographing the device ID or MAC address of the other terminal device and then performing character recognition. When the other terminal device is a mobile phone, a computer, or the like, the user may query the device identifier in the device, and then manually input the device identifier by the user, or scan and identify the device identifier by the device a. Of course, the device identification may also be printed on the product description or the terminal device. The device identification may be recorded in, for example, a product description or printed on the device, in case the other terminal device is a refrigerator, a microwave oven, or the like. Of course, a refrigerator, microwave oven, etc. may also be provided with a display screen and store the device identification in its memory. In addition, the device identification mark can be in the form of not only characters but also icons such as two-dimensional codes.
In step S360, it is determined whether the terminal device to be connected to the network belongs to the predetermined group according to the received device confirmation identifier. If the device identifier belongs to the predetermined group, in step S370, the device identification identifier is matched with the device identifier in the first device list. For example, if the device confirmation id input in the terminal device a is the MAC address, and for example, the first three bytes of the device confirmation id are consistent with the group id of the predetermined group, it is determined that the terminal device to be accessed belongs to the predetermined group. Then, the device identification identifiers are compared with the device identification identifiers in the first device list one by one. In the alignment, the alignment may be performed byte by byte, however, since the devices belonging to the predetermined group have been confirmed, the group identification (e.g., the first three bytes described above) may not be completely aligned, but only the rest of the identification may be aligned.
If not, in step S380, the device identification identifier is matched with the device identification identifier in the second device list. At this time, the device identification identifier needs to be compared with the device identification identifiers in the first device list byte by byte.
If the matching is successful, in step S390, the WiFi login information is sent to the corresponding terminal device so as to connect to the WiFi hotspot; if the matching fails, the WiFi login information is not sent in step S400. After the matching is successful, for example, the terminal device a sends WiFi login information to the terminal device with the corresponding device identification, so that the terminal device can access the network via a WiFi hotspot. And if the matching is unsuccessful, not sending WiFi login information. The WiFi login information may include a Service Set Identification (SSID), encryption, and password for the WiFi hotspot. The terminal device A can send WiFi login information through an adhoc channel, and can also send WiFi login information through NFC and Bluetooth channels when the sending device and the receiving device both support NFC and Bluetooth.
In this embodiment, it is stated that all devices need to input device confirmation identifiers before accessing the network, so that it can be ensured that all accessed devices are devices related to the user. For example, in a home application environment, in addition to a predetermined group (e.g., a particular brand) of smart devices, other brands of smart devices may be present, and further, the same brand of smart devices may be present between the upper and lower floors, and the identification may be confirmed by the user input device, ensuring that the user's devices are all accessed.
As a modification, when the matching fails, there may be a mistake in the device confirmation identification manually input by the user or a mistake in the scan recognition. At this time, the user may be prompted to re-enter the correct device identification, and the user may select manual or scan recognition for re-entry. Then, the matching operation is carried out again on the device confirmation identification input again by the user.
When a plurality of terminal devices supporting the adhoc network protocol need to be connected to the network, the user may input device confirmation identifiers of a plurality of devices at one time and then perform corresponding matching, or may input device confirmation identifiers of one device at a time and perform matching one by one. After the matching is completed, the user may be asked whether further terminal devices need to be connected.
Example 3
Fig. 4 shows a flowchart of the WiFi connection method of embodiment 3.
In step S410, device identification identifiers of surrounding terminal devices supporting the adhoc network protocol are acquired. In step S420, whether the corresponding terminal device belongs to a predetermined group is identified according to the device identification. Steps S410 and S420 are similar to steps S210 and S220 in the embodiment and will not be described in detail here.
If it is determined in step S420 that the corresponding terminal device belongs to the predetermined group, the device identification is written in the first device list in step S430. If it is determined in step S420 that the corresponding terminal device does not belong to the predetermined group, the device identification is written into the second device list in step S440.
In step S450, a selection instruction of the user is received, and in step S470, WiFi login information is sent to the corresponding terminal device according to the selection instruction of the user. In step S451, a device identification input by the user is received. Then, in step S452, searching whether the first device list includes the device identifier input by the user, and if so, in step S470, sending WiFi login information to the corresponding terminal device; if not, in step S480, WiFi login information is not transmitted.
If the user wants to access the terminal device of the predetermined group, for example, when there are relatively few terminal devices of the predetermined group that support the ad hoc network protocol around, that is, there are few options in the first device list, the user may directly select the device identifier of the terminal device that wants to access the network in the first device list. When there are relatively many terminal devices of a predetermined group supporting the adhoc network protocol around, the user may input a device identification of the terminal device to access the network, then search the first device list for the corresponding device identification, and transmit WiFi login information accordingly.
In step S460, a selection instruction of the user is received, and in step S470, the WiFi login information is sent to the corresponding terminal device according to the selection instruction of the user. In step S461, a device identifier input by a user is received. Then, in step S462, searching whether the second device list includes the device identifier input by the user, and if so, in step S470, sending the WiFi login information to the corresponding terminal device; if not, in step S480, WiFi login information is not transmitted.
If the user wants to access the non-predetermined group of terminal devices, for example, when there are relatively few surrounding non-predetermined group of terminal devices supporting the adhoc network protocol, that is, there are few options in the second device list, the user may directly select the device identifier of the terminal device that wants to access the network in the second device list. When the number of the terminal devices of the non-predetermined group supporting the adhoc network protocol is relatively large, the user can input the device identification of the terminal device to be accessed into the network, then search the corresponding device identification in the second device list, and correspondingly send the WiFi login information.
In the above selection process, the user may select one terminal device at a time, or may select a plurality of terminal devices at a time. The terminals of the predetermined group and the non-predetermined group may be selected separately, or the terminal devices in the predetermined group may be selected and the terminal devices in the non-predetermined group may be selected. In addition, the user can input the device identifiers of a plurality of terminal devices at a time. For example, a predetermined group of devices and/or a non-predetermined group of device identification input boxes may be displayed on the display interface. For example, if the user inputs the device id in the input box for the predetermined group, the first device list is searched for whether the device id input by the user is included. If the user inputs the device identification in the input box for the non-predetermined group, searching whether the device identification input by the user is included in the second device list.
In this embodiment, it is provided that before all devices access the network, the user needs to select or input the device identification, so that it can be ensured that all the accessed devices are terminal devices of the network that the user wants to access.
As a modification, without performing the step S420 of identifying whether the device identification belongs to the predetermined group, a device list including the device identification of all the terminal devices supporting the adhoc network protocol is directly generated. The user can select the equipment identification mark of the terminal equipment needing to be accessed to the network in the equipment list and send the WiFi login information to the corresponding equipment selected by the user; or the user can input the equipment identification of the terminal equipment needing to access the network, then the equipment identification input by the user is searched in the equipment list, and when the equipment identification input by the user is searched in the equipment list, the WiFi login information is sent to the corresponding terminal equipment, otherwise, the WiFi login information is not sent.
As another modification, the step S440 of generating the second device list of the non-predetermined group of terminal devices is not required, and when the user needs to access the non-predetermined group of terminal devices, the device identifier of the non-predetermined group of terminal devices is directly input, and then the WiFi login information is directly sent to the corresponding device of the device identifier input by the user.
Example 4
Fig. 5 shows a flowchart of the WiFi connection method of embodiment 4.
In step S510, terminal devices supporting the ad hoc network protocol in the surroundings are searched out and a device list including device identification marks is generated. Then, in step S520, the device confirmation identifier of the inputted terminal device to be connected to the network is received. In step S530, the device identification is matched with the device identification in the device list. If the matching is successful, in step S540, sending WiFi login information to the terminal device to be connected to the network so as to connect the terminal device to the WiFi hotspot; if the matching fails, the WiFi login information is not sent in step S550.
In the terminal device a, the received device identification is compared with the device identification in the device list. If the device confirmation identifier is included in the device list, the matching is successful, and the device a sends the WiFi login information to the terminal device with the corresponding device identification identifier, so that the terminal device can access the network through the WiFi hotspot. And if the matching is unsuccessful, not sending WiFi login information.
In this embodiment, it is shown that all devices need to input device confirmation identifiers before accessing the network, so that it can be completely ensured that all accessed devices are devices related to the user, and the steps are simplified compared with embodiment 2.
Example 5
Fig. 6 shows a schematic structural diagram of the WiFi connection device of embodiment 5.
The WiFi connection apparatus 600 illustrated in fig. 6 includes:
the device identifier obtaining module 610 obtains a device identifier of a terminal device supporting an adhoc network protocol;
the identification module 620 identifies the terminal equipment according to the equipment identification mark in a preset mode;
the sending module 630 sends the WiFi login information to the identified terminal device so that the terminal device can access to the WiFi hotspot.
The modules of the WiFi connection apparatus 600 are used to perform corresponding steps in the WiFi connection method, and the options in the above-mentioned respective WiFi connection methods are also correspondingly applicable to the WiFi connection apparatus 600, and are not described in detail here.
In addition, the invention also provides terminal equipment which can comprise a smart phone, a tablet personal computer, intelligent wearable equipment, a mobile terminal, a desktop computer, a portable computer and the like. The terminal device comprises a memory and a processor, wherein the memory can be used for storing a computer program, and the processor executes the computer program, so that the terminal device executes the functions of the method or the modules in the WiFi connection device. The terminal device is provided with an input device which can be used for inputting WiFi login information, and the input device can comprise a keyboard, a camera, a handwriting input device, a voice input device and the like. The terminal device is preferably a mobile terminal, such as a tablet computer, a smart phone, and the like.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The embodiment also provides a computer storage medium for storing a computer program used in the terminal device.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiment of the invention also discloses:
A1. a WiFi connection method, comprising:
acquiring a device identification mark of a terminal device supporting an adhoc network protocol around;
identifying the terminal equipment according to the equipment identification mark in a preset mode;
and sending the WiFi login information to the identified terminal equipment so as to enable the terminal equipment to access the WiFi hotspot.
A2. The WiFi connection method of a1, the predetermined mode is a group mode in which:
identifying whether the corresponding terminal equipment belongs to a preset group or not according to the equipment identification mark;
if the corresponding terminal equipment belongs to the preset group, the WiFi login information is sent to the corresponding terminal equipment so that the corresponding terminal equipment can be accessed to the WiFi hotspot; and if the corresponding terminal equipment does not belong to the preset group, the WiFi login information is not sent.
A3. The WiFi connection method of a 2:
the identifying whether the corresponding terminal device belongs to a predetermined group according to the device identification identifier includes: and sending the equipment identification mark to a server, determining whether the equipment identification mark is contained in a pre-stored equipment list or not by the server, if the equipment identification mark is contained in the pre-stored equipment list, belonging to the preset group, otherwise, not belonging to the preset group.
A4. The WiFi connection method of a 2:
the identifying whether the corresponding terminal device belongs to a predetermined group according to the device identification identifier includes: and determining whether the equipment identification mark contains a group mark for marking the preset group or not, if so, belonging to the preset group, otherwise, not belonging to the preset group.
A5. The WiFi connection method of a2, further comprising:
if the corresponding terminal equipment does not belong to the preset group, writing the equipment identification mark into an equipment list;
receiving an input equipment confirmation identifier of the terminal equipment to be accessed to the network;
matching the received equipment confirmation identification with the equipment identification in the equipment list;
if the matching is successful, the WiFi login information is sent to the corresponding terminal equipment so that the terminal equipment can be connected to the WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
A6. The WiFi connection method of a2, further comprising:
if the corresponding terminal equipment belongs to the preset group, writing the equipment identification mark into a first equipment list, and if the corresponding terminal equipment does not belong to the preset group, writing the equipment identification mark into a second equipment list;
receiving an input equipment confirmation identifier of the terminal equipment to be accessed to the network;
determining whether the terminal equipment of the network to be accessed belongs to the preset group or not according to the received equipment confirmation identification;
if the device identification identifier belongs to the preset group, matching the device identification identifier with the device identification identifier in the first device list; if the device identification identifier does not belong to the preset group, matching the device identification identifier with the device identification identifier in the second device list;
if the matching is successful, the WiFi login information is sent to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
A7. The WiFi connection method of a2, further comprising:
if the corresponding terminal equipment belongs to the preset group, writing the equipment identification mark into a first equipment list;
if an instruction that a user selects the equipment identification identifier in the first equipment list is received, the WiFi login information is sent to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot;
and if the device identification marks of the terminal devices of the preset group input by the user are received, searching whether the device identification marks input by the user are included in the first device list, if so, sending the WiFi login information to the corresponding terminal devices to enable the terminal devices to be connected to the WiFi hotspot, and if not, not sending the WiFi login information.
A8. The WiFi connecting method of a2 or a7, further comprising:
and when the input device identification identifier of the terminal device which does not belong to the preset group is received, the WiFi login information is sent to the corresponding terminal device so as to be connected to the WiFi hotspot.
A9. According to the WiFi connection method described in a7,
if the corresponding terminal equipment does not belong to the preset group, writing the equipment identification mark into a second equipment list;
if an instruction that a user selects the equipment identification identifier in the second equipment list is received, the WiFi login information is sent to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot;
and if the device identification of the terminal device which does not belong to the preset group and is input by the user is received, searching whether the device identification input by the user is contained in the second device list, if so, sending the WiFi login information to the corresponding terminal device to enable the terminal device to be connected to the WiFi hotspot, and if not, not sending the WiFi login information.
A10. The WiFi connection method of a 1:
generating a device list comprising device identification marks after searching out terminal devices supporting the adhoc network protocol;
receiving an input equipment confirmation identifier of the terminal equipment to be accessed to the network;
matching the device identification with the device identification in the device list;
if the matching is successful, the WiFi login information is sent to the terminal equipment of the network to be accessed so as to be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
A11. According to the WiFi connection method of a1, the device identification is a device ID and/or a MAC address of the terminal device.
A12. According to the WiFi connection method of a2, the predetermined group of terminal devices are terminal devices of a predetermined brand or customized terminal devices.
A13. According to the WiFi connection method of a1, after the terminal device connects to the WiFi hotspot, its adhoc switch is turned off.
A14. According to the WiFi connection method of a1, the WiFi login information includes SSID, encryption mode and password of the WiFi hotspot.
A15. According to the WiFi connection method of a1, the WiFi login information is sent to the terminal device in a two-dimensional code form.
A16. According to the WiFi connection method of A5 or A6, if the matching fails, the user is prompted to re-input a correct device confirmation identifier.
B17. A WiFi connection apparatus, comprising:
the device identification acquisition module is used for acquiring the device identification of the terminal device supporting the adhoc network protocol;
the identification module identifies the terminal equipment according to the equipment identification mark in a preset mode;
and the sending module is used for sending the WiFi login information to the identified terminal equipment so as to enable the terminal equipment to be accessed to the WiFi hotspot.
B18. The WiFi connection apparatus of B17, the predetermined mode is a group mode in which:
the identification module identifies whether the corresponding terminal equipment belongs to a preset group according to the equipment identification mark;
if the corresponding terminal equipment belongs to the preset group, the sending module sends WiFi login information to the corresponding terminal equipment so that the corresponding terminal equipment can be accessed to a WiFi hotspot; and if the corresponding terminal equipment does not belong to the preset group, the transmitting module does not transmit the WiFi login information.
B19. The WiFi connection apparatus of B18:
and the identification module sends the equipment identification mark to a server, the server determines whether the equipment identification mark is contained in a pre-stored equipment list or not, if the equipment identification mark is contained in the pre-stored equipment list, the equipment identification mark belongs to the preset group, otherwise, the equipment identification mark does not belong to the preset group.
B20. The WiFi connection apparatus of B18:
the identification module determines whether the equipment identification mark contains a group mark for marking the preset group, if the equipment identification mark contains the group mark for marking the preset group, the equipment identification mark belongs to the preset group, otherwise, the equipment identification mark does not belong to the preset group.
B21. The WiFi connection apparatus of B18, further comprising:
the equipment list generating module is used for writing the equipment identification mark into an equipment list if the corresponding terminal equipment does not belong to the preset group;
the receiving module is used for receiving the input equipment confirmation identification of the terminal equipment to be accessed to the network;
the matching module is used for matching the received equipment confirmation identification with the equipment identification in the equipment list;
if the matching is successful, the sending module sends WiFi login information to corresponding terminal equipment so that the terminal equipment is connected to the WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
B22. The WiFi connection apparatus of B18, further comprising:
the equipment list generating module is used for writing the equipment identification into a first equipment list if the corresponding terminal equipment belongs to the preset group, and writing the equipment identification into a second equipment list if the corresponding terminal equipment does not belong to the preset group;
the receiving module is used for receiving the input equipment confirmation identification of the terminal equipment to be accessed to the network;
the matching module is used for determining whether the terminal equipment of the network to be accessed belongs to the preset group or not according to the received equipment confirmation identification;
if the device identification identifier belongs to the preset group, the matching module matches the device identification identifier in the first device list with the device confirmation identifier; if the device identification identifier does not belong to the predetermined group, the matching module matches the device identification identifier with the device identification identifier in the second device list;
if the matching is successful, the sending module sends WiFi login information to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
B23. The WiFi connection apparatus of B18, further comprising:
the equipment list generating module is used for writing the equipment identification mark into a first equipment list if the corresponding terminal equipment belongs to the preset group;
the receiving module is used for receiving the input of a user; if the receiving module receives an instruction that a user selects the equipment identification identifier in the first equipment list, the sending module sends the WiFi login information to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot;
the matching module searches whether the equipment identification identifier input by the user is contained in the first equipment list or not if the equipment identification identifier of the terminal equipment of the preset group input by the user is received by the receiving module, and sends the WiFi login information to the corresponding terminal equipment to enable the terminal equipment to be connected to a WiFi hotspot if the equipment identification identifier is contained in the first equipment list, and does not send the WiFi login information if the equipment identification identifier is not contained in the first equipment list.
B24. The WiFi connection apparatus of B18 or B23, further comprising:
the receiving module is used for receiving the input of a user;
and when the receiving module receives the device identification identifier of the terminal device which does not belong to the preset group, the sending module sends the WiFi login information to the corresponding terminal device so as to enable the terminal device to be connected to the WiFi hotspot.
B25. The WiFi connection apparatus of B23:
if the corresponding terminal equipment does not belong to the preset group, the equipment list generating module writes the equipment identification mark into a second equipment list;
if the receiving module receives an instruction that a user selects the equipment identification identifier in the second equipment list, the sending module sends the WiFi login information to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot;
if the receiving module receives the device identification identifier, which is input by the user and does not belong to the predetermined group, of the terminal device, the matching module searches whether the device identification identifier input by the user is included in the second device list, if the device identification identifier is included, the sending module sends the WiFi login information to the corresponding terminal device so that the terminal device is connected to the WiFi hotspot, and if the device identification identifier is not included, the sending module does not send the WiFi login information.
B26. The WiFi connection apparatus of B17:
the device list generating module is used for generating a device list comprising device identification identifiers after the device identification acquiring module searches out the terminal devices supporting the adhoc network protocol around;
the receiving module is used for receiving the input equipment confirmation identification of the terminal equipment to be accessed to the network;
the matching module is used for matching the equipment confirmation identification with the equipment identification in the equipment list;
if the matching is successful, the sending module sends WiFi login information to the terminal equipment of the network to be accessed so as to enable the terminal equipment to be connected to a WiFi hotspot; and if the matching fails, the sending module does not send the WiFi login information.
B27. According to the WiFi connecting apparatus of B17, the device identification is a device ID and/or a MAC address of the terminal device.
B28. According to the WiFi connecting apparatus of B18, the predetermined group of terminal devices are terminal devices of a predetermined brand or customized terminal devices.
B29. The WiFi connecting apparatus of B17, further comprising a switch module, which turns off its ad hoc switch after the terminal device connects to the WiFi hotspot.
B30. The WiFi connection apparatus of B17, wherein the WiFi login information includes SSID, encryption scheme and password of the WiFi hotspot.
B31. According to the WiFi connecting apparatus of B17, the sending module sends the WiFi login information to the terminal device in a two-dimensional code form.
B32. According to the WiFi connection device of B21 or B22, if the matching fails, the user is prompted to re-input a correct equipment confirmation identifier.
C33. A terminal device comprising a memory for storing a computer program and a processor running the computer program to cause the terminal device to perform the WiFi connection method of any of a 1-a 16.
C34. The terminal device of C33, the terminal device being a mobile terminal.
D35. A computer-readable storage medium storing said computer program used in the terminal device of C33.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (31)

1. A WiFi connection method, comprising:
acquiring a device identification mark of a terminal device supporting an adhoc network protocol around;
identifying the terminal equipment according to the equipment identification mark in a preset mode;
sending WiFi login information to the identified terminal equipment so that the terminal equipment can be accessed to a WiFi hotspot;
the predetermined mode is a group mode in which:
identifying whether the corresponding terminal equipment belongs to a preset group or not according to the equipment identification mark;
if the corresponding terminal equipment belongs to the preset group, the WiFi login information is sent to the corresponding terminal equipment so that the corresponding terminal equipment can be accessed to the WiFi hotspot; if the corresponding terminal equipment does not belong to the preset group, the WiFi login information is not sent;
if the corresponding terminal equipment belongs to the preset group, writing the equipment identification mark into a first equipment list;
if an instruction that a user selects the equipment identification identifier in the first equipment list is received, the WiFi login information is sent to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot;
and if the device identification marks of the terminal devices of the preset group input by the user are received, searching whether the device identification marks input by the user are included in the first device list, if so, sending the WiFi login information to the corresponding terminal devices to enable the terminal devices to be connected to the WiFi hotspot, and if not, not sending the WiFi login information.
2. The WiFi connection method of claim 1, characterized in that:
the identifying whether the corresponding terminal device belongs to a predetermined group according to the device identification identifier includes: and sending the equipment identification mark to a server, determining whether the equipment identification mark is contained in a pre-stored equipment list or not by the server, if the equipment identification mark is contained in the pre-stored equipment list, belonging to the preset group, otherwise, not belonging to the preset group.
3. The WiFi connection method of claim 1, characterized in that:
the identifying whether the corresponding terminal device belongs to a predetermined group according to the device identification identifier includes: and determining whether the equipment identification mark contains a group mark for marking the preset group or not, if so, belonging to the preset group, otherwise, not belonging to the preset group.
4. The WiFi connection method of claim 1, further comprising:
if the corresponding terminal equipment does not belong to the preset group, writing the equipment identification mark into an equipment list;
receiving an input equipment confirmation identifier of the terminal equipment to be accessed to the network;
matching the received equipment confirmation identification with the equipment identification in the equipment list;
if the matching is successful, the WiFi login information is sent to the corresponding terminal equipment so that the terminal equipment can be connected to the WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
5. The WiFi connection method of claim 1, further comprising:
if the corresponding terminal equipment belongs to the preset group, writing the equipment identification mark into a first equipment list, and if the corresponding terminal equipment does not belong to the preset group, writing the equipment identification mark into a second equipment list;
receiving an input equipment confirmation identifier of the terminal equipment to be accessed to the network;
determining whether the terminal equipment of the network to be accessed belongs to the preset group or not according to the received equipment confirmation identification;
if the device identification identifier belongs to the preset group, matching the device identification identifier with the device identification identifier in the first device list; if the device identification identifier does not belong to the preset group, matching the device identification identifier with the device identification identifier in the second device list;
if the matching is successful, the WiFi login information is sent to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
6. The WiFi connection method of claim 1, further comprising:
and when the input device identification identifier of the terminal device which does not belong to the preset group is received, the WiFi login information is sent to the corresponding terminal device so as to be connected to the WiFi hotspot.
7. The WiFi connection method of claim 1, characterized in that:
if the corresponding terminal equipment does not belong to the preset group, writing the equipment identification mark into a second equipment list;
if an instruction that a user selects the equipment identification identifier in the second equipment list is received, the WiFi login information is sent to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot;
and if the device identification of the terminal device which does not belong to the preset group and is input by the user is received, searching whether the device identification input by the user is contained in the second device list, if so, sending the WiFi login information to the corresponding terminal device to enable the terminal device to be connected to the WiFi hotspot, and if not, not sending the WiFi login information.
8. The WiFi connection method of claim 1, wherein the predetermined mode is a non-group mode, and wherein in the non-group mode:
generating a device list comprising device identification marks after searching out terminal devices supporting the adhoc network protocol;
receiving an input equipment confirmation identifier of the terminal equipment to be accessed to the network;
matching the device identification with the device identification in the device list;
if the matching is successful, the WiFi login information is sent to the terminal equipment of the network to be accessed so as to be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
9. The WiFi connection method according to claim 1, characterized in that said device identification is a device ID and/or MAC address of said terminal device.
10. The WiFi connection method of claim 1, wherein the predetermined group of terminal devices are terminal devices of a predetermined brand or customized terminal devices.
11. The WiFi connection method of claim 1, wherein an adhoc switch of the terminal device is turned off after the terminal device connects to the WiFi hotspot.
12. The WiFi connection method of claim 1, wherein the WiFi login information includes SSID, encryption and password of the WiFi hotspot.
13. The WiFi connection method according to claim 1, wherein the WiFi login information is sent to the terminal device in a two-dimensional code form.
14. The WiFi connection method of claim 4 or claim 5, wherein if the matching fails, the user is further prompted to re-enter the correct device confirmation identification.
15. A WiFi connection apparatus, comprising:
the device identification acquisition module is used for acquiring the device identification of the terminal device supporting the adhoc network protocol;
the identification module identifies the terminal equipment according to the equipment identification mark in a preset mode;
the transmitting module is used for transmitting the WiFi login information to the identified terminal equipment so as to enable the terminal equipment to be accessed to the WiFi hotspot;
the predetermined mode is a group mode in which:
the identification module identifies whether the corresponding terminal equipment belongs to a preset group according to the equipment identification mark;
if the corresponding terminal equipment belongs to the preset group, the sending module sends WiFi login information to the corresponding terminal equipment so that the corresponding terminal equipment can be accessed to a WiFi hotspot; if the corresponding terminal equipment does not belong to the preset group, the transmitting module does not transmit the WiFi login information;
the WiFi connecting apparatus further includes:
the equipment list generating module is used for writing the equipment identification mark into a first equipment list if the corresponding terminal equipment belongs to the preset group;
the receiving module is used for receiving the input of a user; if the receiving module receives an instruction that a user selects the equipment identification identifier in the first equipment list, the sending module sends the WiFi login information to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot;
the matching module searches whether the equipment identification identifier input by the user is contained in the first equipment list or not if the equipment identification identifier of the terminal equipment of the preset group input by the user is received by the receiving module, and sends the WiFi login information to the corresponding terminal equipment to enable the terminal equipment to be connected to a WiFi hotspot if the equipment identification identifier is contained in the first equipment list, and does not send the WiFi login information if the equipment identification identifier is not contained in the first equipment list.
16. The WiFi connection apparatus of claim 15, wherein:
and the identification module sends the equipment identification mark to a server, the server determines whether the equipment identification mark is contained in a pre-stored equipment list or not, if the equipment identification mark is contained in the pre-stored equipment list, the equipment identification mark belongs to the preset group, otherwise, the equipment identification mark does not belong to the preset group.
17. The WiFi connection apparatus of claim 15, wherein:
the identification module determines whether the equipment identification mark contains a group mark for marking the preset group, if the equipment identification mark contains the group mark for marking the preset group, the equipment identification mark belongs to the preset group, otherwise, the equipment identification mark does not belong to the preset group.
18. The WiFi connection apparatus of claim 15, further comprising:
the equipment list generating module is used for writing the equipment identification mark into an equipment list if the corresponding terminal equipment does not belong to the preset group;
the receiving module is used for receiving the input equipment confirmation identification of the terminal equipment to be accessed to the network;
the matching module is used for matching the received equipment confirmation identification with the equipment identification in the equipment list;
if the matching is successful, the sending module sends the WiFi login information to corresponding terminal equipment so as to enable the terminal equipment to be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
19. The WiFi connection apparatus of claim 15, further comprising:
the equipment list generating module is used for writing the equipment identification into a first equipment list if the corresponding terminal equipment belongs to the preset group, and writing the equipment identification into a second equipment list if the corresponding terminal equipment does not belong to the preset group;
the receiving module is used for receiving the input equipment confirmation identification of the terminal equipment to be accessed to the network;
the matching module is used for determining whether the terminal equipment of the network to be accessed belongs to the preset group or not according to the received equipment confirmation identification;
if the device identification identifier belongs to the preset group, the matching module matches the device identification identifier in the first device list with the device confirmation identifier; if the device identification identifier does not belong to the predetermined group, the matching module matches the device identification identifier with the device identification identifier in the second device list;
if the matching is successful, the sending module sends WiFi login information to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot; and if the matching fails, the WiFi login information is not sent.
20. The WiFi connection apparatus of claim 15, further comprising:
the receiving module is used for receiving the input of a user;
and when the receiving module receives the device identification identifier of the terminal device which does not belong to the preset group, the sending module sends the WiFi login information to the corresponding terminal device so as to enable the terminal device to be connected to the WiFi hotspot.
21. The WiFi connection apparatus of claim 15, wherein:
if the corresponding terminal equipment does not belong to the preset group, the equipment list generating module writes the equipment identification mark into a second equipment list;
if the receiving module receives an instruction that a user selects the equipment identification identifier in the second equipment list, the sending module sends the WiFi login information to corresponding terminal equipment so that the terminal equipment can be connected to a WiFi hotspot;
if the receiving module receives the device identification identifier, which is input by the user and does not belong to the predetermined group, of the terminal device, the matching module searches whether the device identification identifier input by the user is included in the second device list, if the device identification identifier is included, the sending module sends the WiFi login information to the corresponding terminal device so that the terminal device is connected to the WiFi hotspot, and if the device identification identifier is not included, the sending module does not send the WiFi login information.
22. The WiFi connection apparatus of claim 15, wherein:
the device list generating module is used for generating a device list comprising device identification identifiers after the device identification acquiring module searches out the terminal devices supporting the adhoc network protocol around;
the receiving module is used for receiving the input equipment confirmation identification of the terminal equipment to be accessed to the network;
the matching module is used for matching the equipment confirmation identification with the equipment identification in the equipment list;
if the matching is successful, the sending module sends WiFi login information to the terminal equipment of the network to be accessed so as to enable the terminal equipment to be connected to a WiFi hotspot; and if the matching fails, the sending module does not send the WiFi login information.
23. The WiFi connection apparatus according to claim 15, wherein the device identification is a device ID and/or MAC address of the terminal device.
24. The WiFi connection apparatus of claim 15, wherein the predetermined group of terminal devices are terminal devices of a predetermined brand or customized terminal devices.
25. The WiFi connection apparatus of claim 15, further comprising a switch module that turns off its ad hoc switch after the terminal device connects to the WiFi hotspot.
26. The WiFi connection apparatus of claim 15, wherein the WiFi login information includes SSID, encryption and password of the WiFi hotspot.
27. The WiFi connection apparatus of claim 15, wherein the sending module sends the WiFi login information to the terminal device in a two-dimensional code form.
28. The WiFi connectivity device of claim 18 or 19, characterized in that if the matching fails, the user is further prompted to re-input the correct device confirmation identifier.
29. A terminal device, comprising a memory for storing a computer program and a processor for executing the computer program to cause the terminal device to perform the WiFi connection method of any one of claims 1 to 14.
30. The terminal device according to claim 29, wherein the terminal device is a mobile terminal.
31. A computer-readable storage medium, characterized in that it stores the computer program used in the terminal device of claim 29.
CN201711374623.5A 2017-12-19 2017-12-19 WiFi connection method, connection device, terminal equipment and computer-readable storage medium Active CN108134999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711374623.5A CN108134999B (en) 2017-12-19 2017-12-19 WiFi connection method, connection device, terminal equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711374623.5A CN108134999B (en) 2017-12-19 2017-12-19 WiFi connection method, connection device, terminal equipment and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108134999A CN108134999A (en) 2018-06-08
CN108134999B true CN108134999B (en) 2021-06-15

Family

ID=62390669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711374623.5A Active CN108134999B (en) 2017-12-19 2017-12-19 WiFi connection method, connection device, terminal equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108134999B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109874164A (en) * 2019-01-04 2019-06-11 刘中生 A kind of method of the bonded net of smart machine one
CN110072268A (en) * 2019-04-18 2019-07-30 连尚(新昌)网络科技有限公司 Method, equipment and the computer storage medium that wifi hotspot is shared
CN111356090B (en) * 2020-03-12 2021-11-19 深圳市信锐网科技术有限公司 Networking method of network, device thereof, terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185304A (en) * 2014-07-28 2014-12-03 小米科技有限责任公司 Method and device for accessing WI-FI network
CN105072704A (en) * 2015-07-22 2015-11-18 上海斐讯数据通信技术有限公司 Method and system for obtaining information between strange intelligent terminals
CN105546931A (en) * 2015-12-22 2016-05-04 Tcl集团股份有限公司 Intelligent refrigerator netting-in method and system, intelligent refrigerator, intelligent terminal and server
CN106993267A (en) * 2017-04-01 2017-07-28 维沃移动通信有限公司 A kind of hotspot connection method, first terminal and second terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8811363B2 (en) * 2012-09-11 2014-08-19 Wavemax Corp. Next generation network services for 3G/4G mobile data offload in a network of shared protected/locked Wi-Fi access points

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185304A (en) * 2014-07-28 2014-12-03 小米科技有限责任公司 Method and device for accessing WI-FI network
CN105072704A (en) * 2015-07-22 2015-11-18 上海斐讯数据通信技术有限公司 Method and system for obtaining information between strange intelligent terminals
CN105546931A (en) * 2015-12-22 2016-05-04 Tcl集团股份有限公司 Intelligent refrigerator netting-in method and system, intelligent refrigerator, intelligent terminal and server
CN106993267A (en) * 2017-04-01 2017-07-28 维沃移动通信有限公司 A kind of hotspot connection method, first terminal and second terminal

Also Published As

Publication number Publication date
CN108134999A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
EP2975821B1 (en) Network connection method and apparatus
CN107483715B (en) Method and system for communication between terminal and equipment, terminal and storage medium
US9990480B2 (en) Method, apparatus and storage medium for setting smart device management account
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
US10321312B2 (en) Communication apparatus and control method thereof
CN112242980B (en) Screen projection method and device
CN103312534A (en) Method and apparatus for managing a group profile in a wi-fi direct communication system
CN105704546A (en) methods and devices for media casting management
CN104320161A (en) Method and system for rapid Bluetooth pairing
CN108134999B (en) WiFi connection method, connection device, terminal equipment and computer-readable storage medium
KR20120092366A (en) Method and apparatus for performing function in mobile terminal using short range communication
CN105263196A (en) Connection state prompting method and device
US9503779B2 (en) Network connection configuration method for multimedia player and related computer system
CN105183513A (en) Application recommendation method and apparatus
TW201407485A (en) Device for operating module identification information
US10091141B2 (en) Method and device for providing communication between multi-devices
CN104954371A (en) Equipment information display method and device
US20190342738A1 (en) Method and Device for Sharing File Between Different Terminals
CN104221025A (en) Apparatus and method of controlling permission to applications in portable terminal
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN110996307A (en) Accessory device, host device and data transmission method
WO2019184009A1 (en) Network access method and terminal device
KR102538663B1 (en) Electronic device, external electronic device and method for managing embedded subscriber identity module of the external electronic device
CN104158854B (en) Resource share method and device

Legal Events

Date Code Title Description
PB01 Publication
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