CN109219045B - Router connection method, device, electronic equipment and system - Google Patents

Router connection method, device, electronic equipment and system Download PDF

Info

Publication number
CN109219045B
CN109219045B CN201811080115.0A CN201811080115A CN109219045B CN 109219045 B CN109219045 B CN 109219045B CN 201811080115 A CN201811080115 A CN 201811080115A CN 109219045 B CN109219045 B CN 109219045B
Authority
CN
China
Prior art keywords
electronic device
target router
information
working channel
router
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
CN201811080115.0A
Other languages
Chinese (zh)
Other versions
CN109219045A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201811080115.0A priority Critical patent/CN109219045B/en
Publication of CN109219045A publication Critical patent/CN109219045A/en
Application granted granted Critical
Publication of CN109219045B publication Critical patent/CN109219045B/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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a router connection method, a device, electronic equipment and a system. The method is applied to a first electronic device to be connected with a wireless fidelity Wi-Fi network. The method comprises the following steps: firstly, obtaining Wi-Fi information shared by second electronic equipment; wherein the second electronic device is: a device having connected to a Wi-Fi network generated by a target router, the Wi-Fi information comprising: a working channel and MAC address of the target router; and then, connecting the target router corresponding to the MAC address through the working channel. By applying the embodiment of the invention, the aim of quickly connecting with the router connected with other intelligent equipment can be fulfilled.

Description

Router connection method, device, electronic equipment and system
Technical Field
The present invention relates to the field of wireless networks, and in particular, to a method, an apparatus, an electronic device, and a system for connecting a router.
Background
Smart devices that have access to Wi-Fi (WIreless-Fidelity) networks are becoming more and more popular today. In some application scenarios, a user holding a smart device that can access a Wi-Fi network expects to be able to access the smart device to a Wi-Fi network that other smart devices have access to, that is, to connect the smart device to a router that generates the Wi-Fi network, so that the user can use the Wi-Fi network for network access.
However, in the prior art, the time consumption of the intelligent device which can access the Wi-Fi network is long in the process of accessing the Wi-Fi network which is accessed by other intelligent devices.
Therefore, how to quickly connect to a router connected with other intelligent devices is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention aims to provide a router connection method, a device, electronic equipment and a system, so as to realize the purpose of quickly connecting with a router connected with other intelligent equipment. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a router connection method, where the method includes:
acquiring wireless fidelity Wi-Fi information shared by second electronic equipment; wherein the second electronic device is: a device having connected to a Wi-Fi network generated by a target router, the Wi-Fi information comprising: a working channel and a Media Access Control (MAC) address of the target router;
and connecting the target router corresponding to the MAC address through the working channel.
Optionally, the Wi-Fi information further includes: an encryption mode and a password of the Wi-Fi network;
the connecting with the target router corresponding to the MAC address through the working channel includes:
requesting authentication from the target router corresponding to the MAC address through the working channel based on the encryption mode and the password;
and if the authentication is passed, connecting the target router corresponding to the MAC address through the working channel.
Optionally, the obtaining of the Wi-Fi information shared by the second electronic device includes:
scanning a pattern identification code shared by the second electronic device; wherein the graphical identification code contains the Wi-Fi information;
or alternatively
A WeChat distribution network AirKiss mode;
or
WiFi fast connect SmartConfig mode.
In a second aspect, an embodiment of the present invention provides a router connection apparatus, where the apparatus includes:
the acquisition module is used for acquiring Wi-Fi information shared by the second electronic equipment; wherein the second electronic device is: a device having connected to a Wi-Fi network generated by a target router, the Wi-Fi information comprising: a working channel and MAC address of the target router;
and the connection module is used for connecting the target router corresponding to the MAC address through the working channel.
Optionally, the Wi-Fi information further includes: an encryption mode and a password of the Wi-Fi network;
the connection module is specifically configured to:
requesting authentication from the target router corresponding to the MAC address through the working channel based on the encryption mode and the password;
and if the authentication is passed, connecting the target router corresponding to the MAC address through the working channel.
Optionally, the obtaining of the Wi-Fi information shared by the second electronic device includes:
scanning a pattern identification code shared by the second electronic device; wherein the graphical identification code contains the Wi-Fi information;
or
The AirKiss mode;
or
SmartConfig manner.
In a third aspect, an embodiment of the present invention provides an electronic device, which is a first electronic device and includes a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor is configured to implement the steps of the router connection method provided in the embodiment of the present invention when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a router connection system, where the system includes:
the second electronic device is used for determining a working channel and an MAC address of the target router, determining Wi-Fi information to be shared, and sharing the Wi-Fi information to the first electronic device; wherein the second electronic device is a device that has connected a Wi-Fi network generated by the target router; the Wi-Fi information comprises a working channel and a MAC address of the target router;
and the first electronic equipment is used for acquiring the Wi-Fi information shared by the second electronic equipment and connecting the Wi-Fi information with the target router corresponding to the MAC address through the working channel.
Optionally, the determining, by the second electronic device, the working channel and the MAC address of the target router includes:
and determining the working channel and the MAC address of the target router from the network connection information of the second equipment.
Optionally, before determining the Wi-Fi information to be shared, the second electronic device is further configured to: determining an encryption mode and an encryption password of the Wi-Fi network;
the Wi-Fi information further comprises: the encryption mode and the password;
the first electronic device is connected with the target router corresponding to the MAC address through the working channel, and includes:
requesting authentication from the target router corresponding to the MAC address through the working channel based on the encryption mode and the password;
and if the authentication is passed, connecting the target router corresponding to the MAC address through the working channel.
Optionally, the way that the second electronic device shares the Wi-Fi information to the first electronic device includes:
generating a pattern identification code carrying the Wi-Fi information;
or
The AirKiss mode;
or
SmartConfig manner.
In the scheme provided by the embodiment of the invention, the second electronic device connected with the Wi-Fi network generated by the target router can determine a working channel and an MAC address of the target router, determine Wi-Fi information at least containing the working channel and the MAC address, and then share the Wi-Fi information with the first electronic device to be connected; and after the first electronic equipment acquires the Wi-Fi information, the first electronic equipment can be directly connected with the target router corresponding to the MAC address through the working channel. The first electronic equipment can be directly connected with the router through the specific channel after obtaining the Wi-Fi information shared by the second electronic equipment, and processes such as channel scanning and the like do not need to be executed.
Of course, it is not necessary for any product or method to achieve all of the above-described advantages at the same time for practicing the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below.
Fig. 1 is a schematic flowchart of a router connection method according to an embodiment of the present invention;
fig. 2 is a timing diagram of a router connection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a router connection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a router connection system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to achieve the purpose of quickly connecting with a router to which other intelligent devices are connected, embodiments of the present invention provide a router connection method, apparatus, electronic device, storage medium, and system.
In particular, in a first aspect, an embodiment of the present invention provides a router connection method.
It should be noted that the execution subject of the router connection method provided by the embodiment of the present invention may be a router connection apparatus, where the router connection apparatus may be run in a first electronic device to which a Wi-Fi network is to be connected. In specific application, the first electronic device may be an intelligent device such as a mobile phone and a tablet computer.
As shown in fig. 1, a router connection method provided in an embodiment of the present invention may include the following steps:
s101, obtaining Wi-Fi information shared by second electronic equipment.
Wherein the second electronic device is: a device to which a Wi-Fi network generated by the target router has been connected; the Wi-Fi information may include: a working channel and a Media Access Control (MAC) address of the target router. It is understood that, in a specific application, the second electronic device may be a smart device such as a mobile phone and a tablet computer.
In the embodiment of the present invention, the first electronic device may obtain the Wi-Fi information shared by the second electronic device in multiple ways, for example, the first electronic device may receive a message sent by the second electronic device through a short message, where the message includes the Wi-Fi information.
Optionally, in this embodiment of the present invention, a manner in which the first electronic device obtains the Wi-Fi information shared by the second electronic device includes:
scanning a pattern identification code shared by the second electronic equipment; wherein the graphical identification code contains the Wi-Fi information; it is understood that the pattern recognition code may be a two-dimensional code or the like.
Or the AirKiss mode;
or SmartConfig mode.
The AirKiss mode and the SmartConfig mode are described below.
The three modes are mainstream modes for Wi-Fi networking at present, and the Wi-Fi information can be stably and quickly acquired by applying the modes, so that a target router can be quickly connected in the follow-up process.
Of course, the manner in which the first electronic device obtains the Wi-Fi information shared by the second electronic device is not limited to the above manner.
It is understood that the wireless network signal is propagated in air as electromagnetic wave with a frequency of 2.4GHz to 2.4835GHz, and this frequency range is divided into 11 or 13 channels, each channel having a different frequency range, and the working channel is the frequency range in which a router works, for example, the working channel of a router may be 1 or 6, etc.
The MAC address is the physical address of the router. For a router, the MAC address is unique, such as BC-5F-F4-A2-30-5F, and the MAC address can be used for identity confirmation of the router. Therefore, the router can be found based on at least the MAC address, and then connection with the router can be realized.
It is to be understood that for an encrypted Wi-Fi network, the Wi-Fi information further includes: encryption mode and password of the Wi-Fi network. The encryption mode can be Wi-Fi network security access WPA-PAK/WPA2-PSK, WPA/WPA2, WEP (Wired Equivalent Privacy), and the like. The password is usually a character string with a preset length, such as a character string composed of 8 characters.
Of course, the Wi-Fi information may also include: wi-Fi names, etc.
It should be noted that the second electronic device may determine, from its own network connection information, a working channel, an MAC address, an encryption method, a password, a Wi-Fi name, and the like of the target router, and then determine the Wi-Fi information. Regarding the way in which the second electronic device shares the Wi-Fi information with the first electronic device, the way in which the first electronic device obtains the Wi-Fi information shared by the second electronic device corresponds to the way in which the first electronic device obtains the Wi-Fi information shared by the second electronic device, and details are not repeated here.
And S102, connecting with the target router corresponding to the MAC address through the working channel.
It will be appreciated that if a router is looked up based on its MAC address only, the process may be: and searching the MAC address for a plurality of working channels one by one until the target router corresponding to the MAC address is found, wherein the process can be regarded as a Wi-Fi scanning process. Obviously, this would take a significant amount of seek time.
In this embodiment of the present invention, the first electronic device may directly search for the MAC address through a working channel of the target router shared by the second electronic device. Therefore, the searching process of each working channel can be avoided, and the searching time is reduced.
And then, the first electronic device may directly connect to the target router corresponding to the found MAC address. Obviously, the embodiment of the invention can quickly carry out the connection of the router.
Of course, in a case that the Wi-Fi information further includes an encryption manner and a password of the Wi-Fi network, the process of the first electronic device connecting to the target router corresponding to the MAC address through the working channel may include the following steps a and B:
and A, requesting authentication from the target router corresponding to the MAC address through the working channel based on the encryption mode and the password.
Specifically, the first electronic device may send, through the working channel, a message requesting authentication to the target router, where the message includes the encryption scheme and the password, and the target router may analyze and authenticate the message sent by the first device, verify whether the encryption scheme matches the encryption scheme of the target router, and whether the password matches the password of the target router, and if so, the target router passes the authentication of the first electronic device.
It should be noted that, the authentication request process is completed by the first electronic device, and operations such as password input by a user corresponding to the first electronic device are not required.
And B, if the authentication is passed, connecting the target router corresponding to the MAC address through the working channel.
It is understood that, if the authentication is passed, the first electronic device may connect to the target router corresponding to the MAC address through the working channel. After the connection is completed, the fact that the first electronic device can be connected to the Wi-Fi network generated by the target router is shown, and the user of the first electronic device can use the Wi-Fi network for network access.
In the scheme provided by the embodiment of the invention, after the first electronic device acquires the Wi-Fi information shared by the second electronic device connected with the Wi-Fi network generated by the target router, the first electronic device can directly connect with the target router corresponding to the MAC address through the working channel by using the working channel and the MAC address of the target router in the Wi-Fi information. The first electronic device can be connected with the router directly through the specific channel after obtaining the Wi-Fi information shared by the second electronic device, and processes such as channel scanning and the like do not need to be executed.
The WeChat distribution network AirKiss mode and the WiFi fast connection SmartConfig mode are additionally introduced as follows:
the AirKiss mode and the SmartConfig mode are specific implementation modes of a WiFi fast connection technology. The AirKiss mode is a technical scheme of a Wi-Fi one-key distribution network provided by a WeChat hardware platform, and the SmartConfig mode is a technical scheme of a Wi-Fi one-key distribution network provided by a Botong company. The principle of the two ways can be described simply as: the second electronic equipment encodes the Wi-Fi information into packet length fields of a series of UDP (User Datagram protocol) packets, ensures that the actual lengths of the series of UDP packets are the same as the packet length fields, and then sends the series of UDP packets through a broadcast packet or a multicast report; the first electronic device is in a promiscuous mode, can monitor and receive the series of UDP packets sent by the second electronic device, can acquire original Wifi information by decoding the packet lengths of the series of UDP packets, and can actively perform password authentication and connection with the target router according to the original Wifi information, so that Wi-Fi network connection is completed.
To facilitate understanding of the scheme, the whole interaction process of the first electronic device and the second electronic device is described below with reference to the timing diagram given in fig. 2.
As shown in the timing diagram of fig. 2, the first electronic device is: the device to be connected with the Wi-Fi network comprises a second electronic device and a second wireless communication device, wherein the second electronic device comprises: devices that have connected to the Wi-Fi network generated by the target router. The first electronic device and the second electronic device are mobile phones.
The router connection process provided by the embodiment of the invention can comprise the following steps:
s201, the second electronic device determines the working channel and the MAC address of the target router.
Specifically, the second electronic device determines, from its own network connection information, that the working channel of the target router is 6, and the MAC address is BC-5F-F4-A2-30-5F.
Certainly, the second electronic device may further determine, from the network connection information of the second electronic device, that the encryption mode of the target router is WPA-PSK, the password is 12345678, and the wi-Fi name is happy.
S202, the second electronic device determines Wi-Fi information to be shared.
The Wi-Fi information to be shared, which is determined by the second electronic device, includes: the working channel 6 and the MAC address BC-5F-F4-A2-30-5F may also include the encryption mode WPA-PSK and the password 12345678 of the target router, or may also include the Wi-Fi name happyday.
S203, the second electronic device shares the Wi-Fi information to the first electronic device.
By taking a two-dimensional code manner as an example, the second electronic device may generate a two-dimensional code carrying the Wi-Fi information; it can be understood that the two-dimensional code contains the Wi-Fi information.
Specifically, the second electronic device may generate the Wi-Fi information into a two-dimensional code by using an internal program for generating the two-dimensional code, and display the two-dimensional code on a display screen of the second electronic device.
S204, the first electronic equipment acquires the Wi-Fi information.
Specifically, the first electronic device may scan the two-dimensional code on the display screen of the second electronic device by using a program for scanning the two-dimensional code inside, and after the scanning is successful, the first electronic device may acquire the Wi-Fi information from the two-dimensional code.
The first electronic device may analyze the Wi-Fi information to obtain that a working channel of the target router is 6, the MAC address is BC-5F-F4-A2-30-5F, the encryption mode is WPA-PSK, the password is 12345678, and the Wi-Fi name is happy and the like.
S205, the first electronic device is connected with the target router corresponding to the MAC address through the working channel.
The first electronic device may request authentication from the target router corresponding to the MAC address BC-5F-F4-A2-30-5F through the working channel 6 based on the encryption WPA-PSK and the password 12345678;
if the authentication is successful, the first electronic device may connect with the target router corresponding to the MAC address BC-5F-F4-A2-30-5F through the working channel 6.
It is understood that after the connection is completed, the first electronic device is already connected to the Wi-Fi network happy generated by the target router, and the user of the first electronic device can use the Wi-Fi network happy for network access.
In a second aspect, with respect to the router connection method provided in the first aspect, an embodiment of the present invention further provides a router connection apparatus, which is applied to a first electronic device, and as shown in fig. 3, the router connection apparatus includes:
an obtaining module 301, configured to obtain Wi-Fi information shared by a second electronic device; wherein the second electronic device is: a device having connected to a Wi-Fi network generated by a target router, the Wi-Fi information comprising: a working channel and MAC address of the target router;
a connection module 302, configured to connect, through the working channel, with the target router corresponding to the MAC address.
Optionally, in this embodiment of the present invention, the Wi-Fi information further includes: an encryption mode and a password of the Wi-Fi network;
the connection module 302 is configured to:
requesting authentication from the target router corresponding to the MAC address through the working channel based on the encryption mode and the password;
and if the authentication is passed, connecting the target router corresponding to the MAC address through the working channel.
Optionally, in this embodiment of the present invention, the obtaining of the Wi-Fi information shared by the second electronic device includes:
scanning a pattern identification code shared by the second electronic device; wherein the graphical identification code contains the Wi-Fi information;
or alternatively
The AirKiss mode;
or alternatively
SmartConfig manner.
In the scheme provided by the embodiment of the invention, after the first electronic device acquires the Wi-Fi information shared by the second electronic device connected with the Wi-Fi network generated by the target router, the first electronic device can directly connect with the target router corresponding to the MAC address through the working channel by using the working channel and the MAC address of the target router in the Wi-Fi information. The first electronic equipment can be directly connected with the router through the specific channel after obtaining the Wi-Fi information shared by the second electronic equipment, and processes such as channel scanning and the like do not need to be executed.
In a third aspect, with respect to the router connection method provided in the first aspect, an embodiment of the present invention further provides an electronic device, where the electronic device is a first electronic device. As shown in fig. 4, the electronic device may include: a processor 401 and a memory 402, wherein,
the memory 402 is used for storing computer programs;
the processor 401 is configured to implement the steps of the router connection method provided in the embodiment of the present invention when executing the program stored in the memory 402.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Through above-mentioned electronic equipment, can realize: after obtaining Wi-Fi information shared by second electronic equipment connected with a Wi-Fi network generated by a target router, first electronic equipment can directly connect with the target router corresponding to an MAC address through a working channel by using the working channel and the MAC address of the target router in the Wi-Fi information. The first electronic device can be connected with the router directly through the specific channel after obtaining the Wi-Fi information shared by the second electronic device, and processes such as channel scanning and the like do not need to be executed.
In a fourth aspect, with respect to the router connection method provided in the first aspect, an embodiment of the present invention further provides a computer-readable storage medium, which can be applied to the first electronic device. The computer readable storage medium stores therein a computer program, and the computer program, when executed by a processor, implements the steps of the router connection method provided by the embodiment of the present invention.
The above-mentioned computer-readable storage medium stores an application program that executes the first router connection method provided by the embodiment of the present invention when executed, and thus can implement: after obtaining Wi-Fi information shared by second electronic equipment connected with a Wi-Fi network generated by a target router, first electronic equipment can directly connect with the target router corresponding to an MAC address through a working channel by using the working channel and the MAC address of the target router in the Wi-Fi information. The first electronic equipment can be directly connected with the router through the specific channel after obtaining the Wi-Fi information shared by the second electronic equipment, and processes such as channel scanning and the like do not need to be executed.
As for the embodiments of the electronic device and the computer-readable storage medium, the contents of the methods related to the embodiments are substantially similar to the aforementioned embodiments of the methods, so that the description is simple, and reference may be made to the partial description of the embodiments of the methods for relevant points.
In a fifth aspect, an embodiment of the present invention further provides a router connection system, referring to the schematic structural diagram of the router connection system shown in fig. 5, where the router connection system 500 includes:
the second electronic device 520 is configured to determine a working channel and an MAC address of a target router, determine Wi-Fi information to be shared, and share the Wi-Fi information to the first electronic device; wherein the second electronic device is a device to which a Wi-Fi network generated by the target router has been connected; the Wi-Fi information comprises a working channel and a MAC address of the target router;
the first electronic device 510 is configured to acquire the Wi-Fi information shared by the second electronic device, and connect, through the working channel, with the target router corresponding to the MAC address.
Optionally, in this embodiment of the present invention, the determining, by the second electronic device, the working channel and the MAC address of the target router includes:
and determining the working channel and the MAC address of the target router from the network connection information of the second device.
It is understood that, after connecting with the target router, the second electronic device may record relevant information such as the working channel and the MAC address of the target router in the network connection information, and then may determine the working channel and the MAC address of the target router from the network connection information. Since the network connection information is located inside the second electronic device, the working channel and the MAC address can be acquired quickly.
It is understood that, for an encrypted Wi-Fi network, the network connection information further includes an encryption mode and an encryption password of the Wi-Fi network.
Therefore, optionally, in the embodiment of the present invention, before the second electronic device determines the Wi-Fi information to be shared, the second electronic device is further configured to: determining an encryption mode and an encryption password of the Wi-Fi network;
correspondingly, the Wi-Fi information further comprises: the encryption mode and the password;
the first electronic device is connected with the target router corresponding to the MAC address through the working channel, and includes:
requesting authentication from the target router corresponding to the MAC address through the working channel based on the encryption mode and the password;
and if the authentication is passed, connecting the target router corresponding to the MAC address through the working channel.
Optionally, in this embodiment of the present invention, a manner in which the second electronic device shares the Wi-Fi information with the first electronic device includes:
generating a pattern identification code carrying the Wi-Fi information;
or alternatively
The AirKiss mode;
or alternatively
SmartConfig manner.
The specific contents of the above parts may refer to the corresponding contents of the embodiment shown in fig. 1, and are not described herein again.
In the scheme provided by the embodiment of the invention, firstly, the second electronic equipment determines the working channel and the MAC address of the target router, determines Wi-Fi information to be shared, and shares the Wi-Fi information to the first electronic equipment; and then, the first electronic equipment acquires the Wi-Fi information shared by the second electronic equipment, and is connected with the target router corresponding to the MAC address through the working channel. The first electronic device can be connected with the router directly through the specific channel after obtaining the Wi-Fi information shared by the second electronic device, and processes such as channel scanning and the like do not need to be executed.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The above description is only an example of the present invention and should not be used to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A router connection method applied to a first electronic device, the method comprising:
acquiring wireless fidelity Wi-Fi information shared by second electronic equipment; wherein the second electronic device is: a device having connected to a Wi-Fi network generated by a target router, the Wi-Fi information comprising: a working channel of the target router, a Media Access Control (MAC) address, an encryption mode and a password of the Wi-Fi network;
requesting authentication from the target router corresponding to the MAC address through the working channel based on the encryption mode and the password;
if the authentication is passed, connecting the target router corresponding to the MAC address through the working channel;
requesting authentication from the target router corresponding to the MAC address based on the encryption mode and the password through the working channel, including:
sending a message requesting authentication to the target router through the working channel, so that the target router analyzes and authenticates the message, verifies whether the encryption mode is matched with the encryption mode of the target router, and whether the password is matched with the password of the target router, and if so, the target router passes the authentication of the first electronic device; the message contains the encryption mode and the password.
2. The method of claim 1, wherein the obtaining Wi-Fi information shared by the second electronic device comprises:
scanning a pattern identification code shared by the second electronic equipment; wherein the graphical identification code contains the Wi-Fi information;
or alternatively
A WeChat distribution network AirKiss mode;
or alternatively
WiFi fast connect SmartConfig mode.
3. A router connection apparatus, applied to a first electronic device, the apparatus comprising:
the acquisition module is used for acquiring Wi-Fi information shared by the second electronic equipment; wherein the second electronic device is: a device having connected to a Wi-Fi network generated by a target router, the Wi-Fi information comprising: a working channel of the target router, a Media Access Control (MAC) address, an encryption mode and a password of the Wi-Fi network;
the connection module is used for requesting authentication to the target router corresponding to the MAC address through the working channel based on the encryption mode and the password; if the authentication is passed, connecting the target router corresponding to the MAC address through the working channel;
the connection module is specifically configured to send a message requesting authentication to the target router through the working channel, so that the target router analyzes and authenticates the message, verifies whether the encryption mode matches an encryption mode of the target router, and whether the password matches a password of the target router, and if so, the target router passes authentication of the first electronic device; the message contains the encryption mode and the password.
4. The apparatus of claim 3, wherein the means for obtaining Wi-Fi information shared by the second electronic device comprises:
scanning a pattern identification code shared by the second electronic equipment; wherein the graphical identification code contains the Wi-Fi information;
or alternatively
The AirKiss mode;
or alternatively
SmartConfig mode.
5. An electronic device, wherein the electronic device is a first electronic device comprising a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method of any of claims 1-2.
6. A router connection system, the system comprising:
the second electronic device is used for determining a working channel and an MAC address of the target router, determining Wi-Fi information to be shared, and sharing the Wi-Fi information to the first electronic device; wherein the second electronic device is a device that has connected a Wi-Fi network generated by the target router; the Wi-Fi information comprises a working channel of the target router, a Media Access Control (MAC) address, an encryption mode of the Wi-Fi network and a password;
the first electronic device is used for acquiring the Wi-Fi information shared by the second electronic device, and requesting authentication from the target router corresponding to the MAC address through the working channel based on the encryption mode and the password; if the authentication is passed, the target router corresponding to the MAC address is connected through the working channel;
the first electronic device is specifically configured to send a message requesting authentication to the target router through the working channel, so that the target router analyzes and authenticates the message, verifies whether the encryption manner matches an encryption manner of the target router, and whether the password matches a password of the target router, and if so, the target router passes authentication of the first electronic device; the message contains the encryption mode and the password.
7. The system of claim 6, wherein the second electronic device determines the operating channel and the MAC address of the target router, comprising:
and determining the working channel and the MAC address of the target router from the network connection information of the second electronic equipment.
8. The system according to any of claims 6-7, wherein the manner in which the second electronic device shares the Wi-Fi information to the first electronic device comprises:
generating a pattern identification code carrying the Wi-Fi information;
or
The AirKiss mode;
or
SmartConfig manner.
CN201811080115.0A 2018-09-17 2018-09-17 Router connection method, device, electronic equipment and system Active CN109219045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811080115.0A CN109219045B (en) 2018-09-17 2018-09-17 Router connection method, device, electronic equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811080115.0A CN109219045B (en) 2018-09-17 2018-09-17 Router connection method, device, electronic equipment and system

Publications (2)

Publication Number Publication Date
CN109219045A CN109219045A (en) 2019-01-15
CN109219045B true CN109219045B (en) 2022-10-25

Family

ID=64984008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811080115.0A Active CN109219045B (en) 2018-09-17 2018-09-17 Router connection method, device, electronic equipment and system

Country Status (1)

Country Link
CN (1) CN109219045B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922057A (en) * 2019-02-27 2019-06-21 智慧海派科技有限公司 UDP message recombination method based on frame sequence
CN110650516B (en) * 2019-09-23 2021-10-08 芯海科技(深圳)股份有限公司 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium
CN112333033A (en) * 2020-12-01 2021-02-05 四川虹美智能科技有限公司 Network distribution method and device of Internet of things equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391541A (en) * 2013-05-10 2013-11-13 华为终端有限公司 Configuration method of wireless devices, device and system
CN104219667A (en) * 2013-05-31 2014-12-17 华为终端有限公司 Method and equipment used for connection establishment
CN107820300A (en) * 2017-11-27 2018-03-20 北京小米移动软件有限公司 Network search method and device

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9258712B2 (en) * 2012-09-04 2016-02-09 Nokia Technologies Oy Method, apparatus, and computer program product for sharing wireless network configurations
CN103415012A (en) * 2013-08-15 2013-11-27 惠州Tcl移动通信有限公司 Authentication method and authentication device of wireless router
TWI542171B (en) * 2013-12-18 2016-07-11 Alpha Networks Inc Automatically set the way the gateway device
CN104540127A (en) * 2014-12-08 2015-04-22 哈尔滨工程大学 Anti-free-network-use router access network right control method based on dynamic two-dimensional code
CN105451306A (en) * 2015-11-18 2016-03-30 广州美渠信息科技有限公司 Automatic wifi connection method of advertisement injecting machine
CN105517102A (en) * 2015-11-20 2016-04-20 青岛海信移动通信技术股份有限公司 Method, device and equipment for enabling wireless network equipment to be connected with hot spot
CN105554907B (en) * 2015-12-11 2019-03-26 深圳市奥金瑞科技有限公司 A method of configuration WiFi equipment connects WiFi router
CN105407544B (en) * 2015-12-16 2018-11-27 湖北科技学院 Quick networking method based on WiFi module
CN105898747A (en) * 2016-05-13 2016-08-24 中科创达软件科技(深圳)有限公司 Wireless network security authentication method and device and wireless network access method and device
CN105898841A (en) * 2016-06-30 2016-08-24 北京奇虎科技有限公司 Smart terminal and method for sharing WLAN (Wireless Local Area Network) resources by terminal
CN107635229A (en) * 2016-07-15 2018-01-26 中兴通讯股份有限公司 A kind of method and apparatus shared WIFI
CN106793002A (en) * 2017-01-23 2017-05-31 努比亚技术有限公司 Passive type wifi scan methods and relevant device based on broadcast channel
CN106936676B (en) * 2017-04-20 2019-12-17 青岛海信电器股份有限公司 Household equipment control method and device
CN107969002A (en) * 2017-10-13 2018-04-27 上海连尚网络科技有限公司 Wifi hot spots sharing method, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391541A (en) * 2013-05-10 2013-11-13 华为终端有限公司 Configuration method of wireless devices, device and system
CN104219667A (en) * 2013-05-31 2014-12-17 华为终端有限公司 Method and equipment used for connection establishment
CN107820300A (en) * 2017-11-27 2018-03-20 北京小米移动软件有限公司 Network search method and device

Also Published As

Publication number Publication date
CN109219045A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
TWI634771B (en) Wisdom device and method and device for establishing Bluetooth connection between devices
US10111096B2 (en) AP connection method, terminal, and server
KR101783662B1 (en) Authenticated time-of-flight indoor positioning systems and methods
US7974606B2 (en) System and method for configuring devices for wireless communication
CN109219045B (en) Router connection method, device, electronic equipment and system
JP6756009B2 (en) Data transmission
CN103458057B (en) Resource acquiring method, device and server
CN107529160B (en) VoWiFi network access method and system, terminal and wireless access point equipment
US20120076072A1 (en) System and method for maintaining privacy in a wireless network
US8621071B1 (en) Method and apparatus for automatically selecting an access point
JP5167322B2 (en) Data transfer method and terminal
CN104717218A (en) Wifi certification system and method
JP2017511049A (en) Access point initiated neighbor report request
WO2018049823A1 (en) Automatic network distribution method, apparatus and device, and repeater
WO2017143685A1 (en) Key updating method, device, and system
CN106453370B (en) Method and device for registering IPC (inter-programmable logic controller) to NVR (network video recorder)
CN104754701A (en) Signal processing method and mobile terminal
CN116963054B (en) WLAN multilink TDLS key derivation
US10986677B2 (en) Method and apparatus for connecting to access point in WLAN network
US10952060B2 (en) Communication apparatus, communication method, and program
CN102761940A (en) 802.1X authentication method and equipment
US10849136B2 (en) Wireless resource-allocation system and method
CN105072212A (en) Code checking method and code checking system
KR20150047278A (en) Image display apparatus for conducting auto wireless communication among devices and image displaying method thereof
CN115868189A (en) Method, vehicle, terminal and system for establishing vehicle safety communication

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