[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109219045A - A kind of router connection method, device, electronic equipment and system - Google Patents

A kind of router connection method, device, electronic equipment and system Download PDF

Info

Publication number
CN109219045A
CN109219045A CN201811080115.0A CN201811080115A CN109219045A CN 109219045 A CN109219045 A CN 109219045A CN 201811080115 A CN201811080115 A CN 201811080115A CN 109219045 A CN109219045 A CN 109219045A
Authority
CN
China
Prior art keywords
electronic equipment
mac address
information
mode
working channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811080115.0A
Other languages
Chinese (zh)
Other versions
CN109219045B (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

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 kind of router connection method, device, electronic equipment and systems.The method is applied to the first electronic equipment of Wireless Fidelity Wi-Fi network to be connected.The described method includes: firstly, obtaining the Wi-Fi information that the second electronic equipment is shared;Wherein, second electronic equipment are as follows: have connected by the equipment of destination router Wi-Fi network generated, the Wi-Fi information includes: the working channel and MAC Address of the destination router;Then, by the working channel, the destination router corresponding with the MAC Address is attached.Using the embodiment of the present invention, the purpose being rapidly attached with the router for having connected other smart machines can be realized.

Description

A kind of router connection method, device, electronic equipment and system
Technical field
The present invention relates to wireless network fields, more particularly to a kind of router connection method, device, electronic equipment and are System.
Background technique
Nowadays the smart machine that can access Wi-Fi (WIreless-Fidelity, Wireless Fidelity) network is more and more general And.Under application scenes, the user for holding the smart machine of accessible Wi-Fi network is desirable to the smart machine, It is linked into the Wi-Fi network that other smart machines have accessed, i.e., by the router of the smart machine and generation Wi-Fi network It is attached, so that the user, which can use the Wi-Fi network, carries out network access.
But the smart machine that in the prior art, can access Wi-Fi network, is being linked into what other smart machines had accessed It is taken a long time during Wi-Fi network.
Therefore, how to be rapidly attached with the router for having connected other smart machines, be one urgently to be resolved The problem of.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of router connection method, device, electronic equipment and system, with reality The purpose being now rapidly attached with the router for having connected other smart machines.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of router connection methods, which comprises
Obtain the Wireless Fidelity Wi-Fi information of the second electronic equipment sharing;Wherein, second electronic equipment are as follows: connected It connects by the equipment of destination router Wi-Fi network generated, the Wi-Fi information includes: the work of the destination router Channel and medium access control MAC Address;
By the working channel, the destination router corresponding with the MAC Address is attached.
Optionally, the Wi-Fi information further include: the cipher mode and password of the Wi-Fi network;
It is described by the working channel, the destination router corresponding with the MAC Address is attached, comprising:
By the working channel, it is based on the cipher mode and the password, to the corresponding mesh of the MAC Address Mark router solicitation certification;
If certification passes through, by the working channel, the destination router corresponding with the MAC Address is connected It connects.
Optionally, the mode for obtaining the Wi-Fi information that the second electronic equipment is shared, comprising:
Scan the mode for the graphical identification code that second electronic equipment is shared;Wherein, the graphical identification code is containing State Wi-Fi information;
Or
Wechat distribution AirKiss mode;
Or
WiFi connects SmartConfig mode fastly.
Second aspect, the embodiment of the invention provides a kind of router attachment device, described device includes:
Module is obtained, for obtaining the Wi-Fi information of the second electronic equipment sharing;Wherein, second electronic equipment are as follows: It has connected by the equipment of destination router Wi-Fi network generated, the Wi-Fi information includes: the destination router Working channel and MAC Address;
Link block, for by the working channel, the destination router corresponding with the MAC Address to be connected It connects.
Optionally, the Wi-Fi information further include: the cipher mode and password of the Wi-Fi network;
The link block, is specifically used for:
By the working channel, it is based on the cipher mode and the password, to the corresponding mesh of the MAC Address Mark router solicitation certification;
If certification passes through, by the working channel, the destination router corresponding with the MAC Address is connected It connects.
Optionally, the mode for obtaining the Wi-Fi information that the second electronic equipment is shared, comprising:
Scan the mode for the graphical identification code that second electronic equipment is shared;Wherein, the graphical identification code is containing State Wi-Fi information;
Or
AirKiss mode;
Or
SmartConfig mode.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, the electronic equipment is the first electronic equipment, packet Include processor and memory, wherein
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes that the embodiment of the present invention is provided Router connection method the step of.
Fourth aspect, the embodiment of the invention provides a kind of routers to connect system, the system comprises:
Second electronic equipment determines Wi-Fi to be shared for determining the working channel and MAC Address of destination router The Wi-Fi information is shared with the first electronic equipment by information;Wherein, second electronic equipment is to have connected by the mesh The equipment for marking router Wi-Fi network generated;The Wi-Fi information include the destination router working channel and MAC Address;
First electronic equipment, the Wi-Fi information shared for obtaining second electronic equipment, passes through the work Channel, the destination router corresponding with the MAC Address are attached.
Optionally, second electronic equipment determines the working channel and MAC Address of destination router, comprising:
From the network connection information of second equipment itself, the working channel and MAC of the destination router are determined Address.
Optionally, it before second electronic equipment determines Wi-Fi information to be shared, is also used to: determining the Wi-Fi The cipher mode and Crypted password of network;
The Wi-Fi information further include: the cipher mode and the password;
First electronic equipment by the working channel, the destination router corresponding with the MAC Address into Row connection, comprising:
By the working channel, it is based on the cipher mode and the password, to the corresponding mesh of the MAC Address Mark router solicitation certification;
If certification passes through, by the working channel, the destination router corresponding with the MAC Address is connected It connects.
Optionally, the Wi-Fi information is shared with the mode of the first electronic equipment by second electronic equipment, comprising:
Generate the mode for carrying the graphical identification code of the Wi-Fi information;
Or
AirKiss mode;
Or
SmartConfig mode.
In scheme provided by the embodiment of the present invention, have connected by the second of destination router Wi-Fi network generated Electronic equipment can determine the working channel and MAC Address of the destination router, and determine and at least contain the working channel With the Wi-Fi information of the MAC Address, then the Wi-Fi information is shared with to the first electronic equipment to be connected;And it is described It, can be corresponding with the MAC Address described by the working channel after first electronic equipment obtains the Wi-Fi information Destination router is directly attached.Since the first electronic equipment is straight after obtaining the Wi-Fi information that the second electronic equipment is shared It connected particular channel to connect with router, without executing the processes such as scan channel, therefore, the embodiment of the present invention is provided Scheme, can be realized the purpose being rapidly attached with the router for having connected other smart machines.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of flow diagram of router connection method provided by the embodiment of the present invention;
Fig. 2 is a kind of timing diagram of router connection method provided by the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of router attachment device provided by the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of router connection system provided by the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
In order to realize that the purpose being rapidly attached with the router for having connected other smart machines, the present invention are implemented Example provides a kind of router connection method, device, electronic equipment, storage medium and system.
Specifically, in a first aspect, the embodiment of the invention provides a kind of router connection methods.
It should be noted that a kind of executing subject of router connection method provided by the embodiment of the present invention can be one Kind router attachment device, the router attachment device can be run in the first electronic equipment of Wi-Fi network to be connected.? In concrete application, first electronic equipment can be the smart machines such as mobile phone, tablet computer.
As shown in Figure 1, a kind of router connection method provided by the embodiment of the present invention, may include steps of:
S101 obtains the Wi-Fi information that the second electronic equipment is shared.
Wherein, second electronic equipment are as follows: have connected by the equipment of destination router Wi-Fi network generated;Institute State the working channel and MAC (Media Access Control, medium visit that Wi-Fi information may include: the destination router Ask control) address.It is understood that in a particular application, which can be the intelligence such as mobile phone, tablet computer Equipment.
In embodiments of the present invention, first electronic equipment can obtain second electronic equipment in several ways The Wi-Fi information of sharing, for example, first electronic equipment, which can receive second electronic equipment, passes through the transmissions such as short message Message contains the Wi-Fi information in the message.
Optionally, in embodiments of the present invention, first electronic equipment obtains the Wi- that second electronic equipment is shared The mode of Fi information, comprising:
Scan the mode for the graphical identification code that second electronic equipment is shared;Wherein, the graphical identification code is containing State Wi-Fi information;It is understood that the graphical identification code can be two dimensional code etc..
Or AirKiss mode;
Or SmartConfig mode.
Give brief introduction below about the AirKiss mode and the SmartConfig mode.
Above-mentioned three kinds of modes are all some modes for Wi-Fi networking of current mainstream, can be steady using aforesaid way Determine, rapidly obtain the Wi-Fi information, thus in subsequent quick linking objective router.
Certainly, the mode that first electronic equipment obtains the Wi-Fi information that second electronic equipment is shared is not limited to Aforesaid way.
It is understood that wireless network signal is in air with Electromagnetic Wave Propagation, frequency be 2.4GHz~ 2.4835GHz, and this frequency range is divided into 11 or 13 channels, each channel has different frequency ranges, work It is the frequency range of router work as channel, such as the working channel of a router can be 1 or 6.
MAC Address is the physical address of router.For a router, MAC Address is uniquely, such as BC-5F- F4-A2-30-5F etc., MAC Address can be used for the identity validation of the router.Therefore, it can be at least based on the MAC Address, The router is found, then realizes the connection with the router.
It is understood that it is directed to the Wi-Fi network of encryption, the Wi-Fi information further include: the Wi-Fi network Cipher mode and password.Wherein, the cipher mode can be Wi-Fi network secure accessing WPA-PAK/WPA2-PSK, or WPA/WPA2 or WEP (Wired Equivalent Privacy, wired equivalent privacy) etc..The password is usually default length The character string of degree, such as the character string etc. being made of 8 characters.
Certainly, the Wi-Fi information can also include: Wi-Fi title etc..
It should be noted that second electronic equipment can determine the target from the network connection information of itself Working channel, MAC Address, cipher mode, password and Wi-Fi title of router etc. then determine the Wi-Fi information.It closes The Wi-Fi information is shared with to the mode of the first electronic equipment in second electronic equipment, with first electronic equipment Obtain the Wi-Fi information that second electronic equipment is shared mode be it is corresponding, details are not described herein.
S102, by the working channel, the destination router corresponding with the MAC Address is attached.
It is understood that the process may be: needle if the MAC Address for being based only upon a router searches the router To multiple working channels, the MAC Address is searched to working channel one by one, until it is corresponding described to find the MAC Address Destination router, the above process can consider the Wi-Fi scanning process being known as.It is clear that can expend so a large amount of The lookup time.
And in embodiments of the present invention, what first electronic equipment can directly be shared by second electronic equipment The working channel of the destination router searches the MAC Address.It can thus be avoided the search procedure of each working channel, It reduces and searches the time.
Later, first electronic equipment can the destination router corresponding with the MAC Address found it is straight It connects and is attached.It is clear that the embodiment of the present invention can quickly carry out the connection of router.
Certainly, described in the case where the Wi-Fi information further includes the cipher mode and password of the Wi-Fi network First electronic equipment is by the working channel, the process that the destination router corresponding with the MAC Address is attached It may comprise steps of A and B:
A is based on the cipher mode and the password by the working channel, corresponding described to the MAC Address Destination router request certification.
Specifically, first electronic equipment can be sent to the destination router and be requested by the working channel The message of certification contains the cipher mode and the password in the message, and the destination router can be set to first The message that preparation is sent is parsed and is authenticated, and verifies whether the cipher mode matches with the cipher mode of itself, described Password whether the password match with itself, if it does, then the destination router is logical to the certification of first electronic equipment It crosses.
It should be noted that above-mentioned request verification process, is completed by first electronic equipment, it is not necessarily to the first electronic equipment Corresponding user carries out the operation such as Password Input.
B, if certification passes through, by the working channel, the destination router corresponding with the MAC Address is carried out Connection.
It is understood that if certification pass through, by the working channel, first electronic equipment can with it is described The corresponding destination router of MAC Address is attached.After the completion of connection, indicate that first electronic equipment may be coupled to In the destination router Wi-Fi network generated, the Wi-Fi network is can be used in the user of first electronic equipment Carry out network access.
In scheme provided by the embodiment of the present invention, the acquisition of the first electronic equipment has connected generated by destination router After the Wi-Fi information that second electronic equipment of Wi-Fi network is shared, the destination router in the Wi-Fi information can use Working channel and MAC Address, by the working channel, the destination router corresponding with the MAC Address directly into Row connection.Due to the first electronic equipment obtain the second electronic equipment share Wi-Fi information after directly by particular channel with Router connection, without executing the processes such as scan channel, therefore, scheme provided by the embodiment of the present invention be can be realized The purpose being rapidly attached with the router for having connected other smart machines.
Supplement introduces the wechat distribution AirKiss mode below and the WiFi connects SmartConfig mode fastly:
The AirKiss mode and the SmartConfig mode are the specific implementation that WiFi connects technology fastly.Institute State the technical solution that AirKiss mode is the mono- key distribution of a kind of Wi-Fi that wechat hardware platform proposes, the SmartConfig Mode is a kind of technical solution for the mono- key distribution of Wi-Fi that company of Botong proposes.The principle of two ways can be briefly described are as follows: Second electronic equipment is by a series of Wi-Fi information coding to UDP (User Datagram Protoco, user data Datagram protocol) packet packet length field in, while guaranteeing that the actual length of this series of UDP packet is identical with packet length field, so A series of this UDP packet is sent by broadcast packet or group casting afterwards;First electronic equipment is under promiscuous mode, can be monitored simultaneously A series of this UDP packet for receiving the sending of the second electronic equipment, are decoded by the packet length to a series of this UDP packet, can To obtain original Wifi information, then first electronic equipment can according to the original Wifi information, actively with institute It states destination router and carries out cipher authentication, connection, to complete Wi-Fi network connection.
In order to facilitate scheme is understood, the timing diagram provided below with reference to Fig. 2, introduces the first electronic equipment and the second electronics is set Standby complete interactive process.
In timing diagram as shown in Figure 2, the first electronic equipment are as follows: the equipment of Wi-Fi network to be connected, the second electronic equipment Are as follows: it has connected by the equipment of destination router Wi-Fi network generated.Wherein, first electronic equipment and described second Electronic equipment is mobile phone.
Router connection procedure provided by the embodiment of the present invention may include steps of:
S201, the second electronic equipment determine the working channel and MAC Address of the destination router.
Specifically, second electronic equipment determines the work of the destination router from the network connection information of itself Making channel is 6, and the MAC Address is BC-5F-F4-A2-30-5F.
Certainly, second electronic equipment can also determine the destination router from the network connection information of itself Cipher mode be WPA-PSK, password 12345678, the entitled happyday of Wi-Fi.
S202, the second electronic equipment determine Wi-Fi information to be shared.
Wi-Fi information to be shared that second electronic equipment determines includes: the working channel 6 and the MAC Location BC-5F-F4-A2-30-5F, further includes the cipher mode WPA-PSK and password 12345678 of the destination router certainly, It or can also include the Wi-Fi title happyday.
The Wi-Fi information is shared with the first electronic equipment by S203, the second electronic equipment.
It is illustrated in the way of two dimensional code, second electronic equipment, which can be generated, carries the Wi-Fi letter The two dimensional code of breath;It is understood that containing the Wi-Fi information in the two dimensional code.
Specifically, second electronic equipment can use the internal program for being used to generate two dimensional code, the Wi-Fi is believed Breath generates a two dimensional code, and shows the two dimensional code on the display screen of second electronic equipment.
S204, the first electronic equipment obtain the Wi-Fi information.
Specifically, first electronic equipment can use the program of inner scanning two dimensional code, second electronics is scanned Two dimensional code on device display screen curtain, after scanning successfully, described in first electronic equipment can be obtained from the two dimensional code Wi-Fi information.
First electronic equipment can parse the Wi-Fi information, obtain the work of the destination router Channel is 6, and the MAC Address is BC-5F-F4-A2-30-5F, and the cipher mode is WPA-PSK, and the password is 12345678, described entitled happyday of Wi-Fi etc..
S205, the first electronic equipment by the working channel, the destination router corresponding with the MAC Address into Row connection.
First electronic equipment can be by the working channel 6, based on the cipher mode WPA-PSK and described close Code 12345678, to the corresponding destination router request certification of the MAC Address BC-5F-F4-A2-30-5F;
If certification passes through, first electronic equipment can be by the working channel 6, with the MAC Address BC- The corresponding destination router of 5F-F4-A2-30-5F is attached.
It is understood that first electronic equipment has been coupled to the destination router and is given birth to after the completion of connection At Wi-Fi network happyday in, the user of first electronic equipment can be used the Wi-Fi network happyday into The access of row network.
Second aspect, relative to router connection method provided by first aspect, the embodiment of the invention also provides one Kind router attachment device, is applied to the first electronic equipment, as shown in figure 3, the router attachment device includes:
Module 301 is obtained, for obtaining the Wi-Fi information of the second electronic equipment sharing;Wherein, second electronic equipment Are as follows: it has connected by the equipment of destination router Wi-Fi network generated, the Wi-Fi information includes: the destination router Working channel and MAC Address;
Link block 302, for by the working channel, the destination router corresponding with the MAC Address into Row connection.
Optionally, in embodiments of the present invention, the Wi-Fi information further include: the cipher mode of the Wi-Fi network and Password;
The link block 302, is used for:
By the working channel, it is based on the cipher mode and the password, to the corresponding mesh of the MAC Address Mark router solicitation certification;
If certification passes through, by the working channel, the destination router corresponding with the MAC Address is connected It connects.
Optionally, in embodiments of the present invention, the Wireless Fidelity Wi-Fi information that the second electronic equipment of the acquisition is shared Mode, comprising:
Scan the mode for the graphical identification code that second electronic equipment is shared;Wherein, the graphical identification code is containing State Wi-Fi information;
Or
AirKiss mode;
Or
SmartConfig mode.
In scheme provided by the embodiment of the present invention, the acquisition of the first electronic equipment has connected generated by destination router After the Wi-Fi information that second electronic equipment of Wi-Fi network is shared, the destination router in the Wi-Fi information can use Working channel and MAC Address, by the working channel, the destination router corresponding with the MAC Address directly into Row connection.Due to the first electronic equipment obtain the second electronic equipment share Wi-Fi information after directly by particular channel with Router connection, without executing the processes such as scan channel, therefore, scheme provided by the embodiment of the present invention be can be realized The purpose being rapidly attached with the router for having connected other smart machines.
The third aspect, relative to router connection method provided by first aspect, the embodiment of the invention also provides one Kind electronic equipment, the electronic equipment are the first electronic equipment.As shown in figure 4, the electronic equipment may include: processor 401 and memory 402, wherein
The memory 402, for storing computer program;
The processor 401 when for executing the program stored on the memory 402, realizes the embodiment of the present invention The step of provided router connection method.
Above-mentioned memory may include RAM (Random Access Memory, random access memory), also may include NVM (Non-Volatile Memory, nonvolatile memory), for example, at least a magnetic disk storage.Optionally, memory It can also be that at least one is located away from the storage device of above-mentioned processor.
Above-mentioned processor can be general processor, including CPU (Central Processing Unit, central processing Device), NP (Network Processor, network processing unit) etc.;Can also be DSP (Digital Signal Processor, Digital signal processor), ASIC (Application Specific Integrated Circuit, specific integrated circuit), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device are divided Vertical door or transistor logic, discrete hardware components.
By above-mentioned electronic equipment, can be realized: the acquisition of the first electronic equipment has connected generated by destination router After the Wi-Fi information that second electronic equipment of Wi-Fi network is shared, the destination router in the Wi-Fi information can use Working channel and MAC Address, by the working channel, the destination router corresponding with the MAC Address directly into Row connection.Due to the first electronic equipment obtain the second electronic equipment share Wi-Fi information after directly by particular channel with Router connection, without executing the processes such as scan channel, therefore, scheme provided by the embodiment of the present invention be can be realized The purpose being rapidly attached with the router for having connected other smart machines.
Fourth aspect, relative to router connection method provided by first aspect, the embodiment of the invention also provides one Kind computer readable storage medium, can be applied to first electronic equipment.It is stored in the computer readable storage medium Computer program realizes the step of router connection method provided by the embodiment of the present invention when computer program is executed by processor Suddenly.
Above-mentioned computer-readable recording medium storage has executes the first road provided by the embodiment of the present invention at runtime By the application program of device connection method, therefore can be realized: the acquisition of the first electronic equipment has connected to be generated by destination router Wi-Fi network the second electronic equipment share Wi-Fi information after, can use in the Wi-Fi information target routing The working channel and MAC Address of device, by the working channel, the destination router corresponding with the MAC Address is direct It is attached.Since the first electronic equipment directly passes through particular channel after obtaining the Wi-Fi information that the second electronic equipment is shared It is connect with router, without executing the processes such as scan channel, therefore, and scheme provided by the embodiment of the present invention, Neng Goushi The purpose being now rapidly attached with the router for having connected other smart machines.
For electronic equipment and computer readable storage medium embodiment, method content base as involved in it Originally it is similar to embodiment of the method above-mentioned, so being described relatively simple, referring to the part explanation of embodiment of the method in place of correlation ?.
5th aspect, the embodiment of the invention also provides a kind of routers to connect system, and router shown in Figure 5 connects The structural schematic diagram of welding system, the router connection system 500 include:
Second electronic equipment 520 determines Wi- to be shared for determining the working channel and MAC Address of destination router The Wi-Fi information is shared with the first electronic equipment by Fi information;Wherein, second electronic equipment is to have connected by described The equipment of destination router Wi-Fi network generated;The Wi-Fi information include the destination router working channel and MAC Address;
First electronic equipment 510, the Wi-Fi information shared for obtaining second electronic equipment, by described Working channel, the destination router corresponding with the MAC Address are attached.
Optionally, in embodiments of the present invention, second electronic equipment determines the working channel and MAC of destination router Address, comprising:
From the network connection information of second equipment itself, the working channel and MAC of the destination router are determined Address.
It is understood that second electronic equipment is after linking objective router, it can be by the destination router Working channel and the relevant informations such as MAC Address be recorded in network connection information, then can be from the network connection information The working channel and MAC Address of middle determining destination router.Since the network connection information is located at second electronic equipment Inside, in this way being capable of working channel and the MAC Address described in quick obtaining.
It further include the Wi-Fi in the network connection information it is understood that being directed to the Wi-Fi network of encryption The cipher mode and Crypted password of network.
Therefore, optionally, in embodiments of the present invention, second electronic equipment determine Wi-Fi information to be shared it Before, it is also used to: determining the cipher mode and Crypted password of the Wi-Fi network;
Correspondingly, the Wi-Fi information further include: the cipher mode and the password;
First electronic equipment by the working channel, the destination router corresponding with the MAC Address into Row connection, comprising:
By the working channel, it is based on the cipher mode and the password, to the corresponding mesh of the MAC Address Mark router solicitation certification;
If certification passes through, by the working channel, the destination router corresponding with the MAC Address is connected It connects.
Optionally, in embodiments of the present invention, the Wi-Fi information is shared with the first electronics by second electronic equipment The mode of equipment, comprising:
Generate the mode for carrying the graphical identification code of the Wi-Fi information;
Or
AirKiss mode;
Or
SmartConfig mode.
Wherein, the particular content of above-mentioned various pieces may refer to the corresponding content of embodiment illustrated in fig. 1 above, herein not It repeats.
In scheme provided by the embodiment of the present invention, firstly, the second electronic equipment determines the working channel of destination router And MAC Address, it determines Wi-Fi information to be shared, the Wi-Fi information is shared with the first electronic equipment;Then, the first electricity Sub- equipment obtains the Wi-Fi information that second electronic equipment is shared, by the working channel, with the MAC Address The corresponding destination router is attached.Since the first electronic equipment is in the Wi-Fi letter for obtaining the sharing of the second electronic equipment It is directly connect by particular channel with router after breath, without executing the processes such as scan channel, therefore, the embodiment of the present invention Provided scheme can be realized the purpose being rapidly attached with the router for having connected other smart machines.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely alternative embodiments of the invention, are not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (11)

1. a kind of router connection method, which is characterized in that be applied to the first electronic equipment, which comprises
Obtain the Wireless Fidelity Wi-Fi information of the second electronic equipment sharing;Wherein, second electronic equipment are as follows: have connected by The equipment of destination router Wi-Fi network generated, the Wi-Fi information include: the working channel of the destination router With medium access control MAC Address;
By the working channel, the destination router corresponding with the MAC Address is attached.
2. the method according to claim 1, wherein the Wi-Fi information further include: the Wi-Fi network Cipher mode and password;
It is described by the working channel, the destination router corresponding with the MAC Address is attached, comprising:
By the working channel, it is based on the cipher mode and the password, to the corresponding target road of the MAC Address It requests to authenticate by device;
If certification passes through, by the working channel, the destination router corresponding with the MAC Address is attached.
3. method according to claim 1 or 2, which is characterized in that the Wi-Fi letter for obtaining the second electronic equipment and sharing The mode of breath, comprising:
Scan the mode for the graphical identification code that second electronic equipment is shared;Wherein, the graphical identification code contains the Wi- Fi information;
Or
Wechat distribution AirKiss mode;
Or
WiFi connects SmartConfig mode fastly.
4. a kind of router attachment device, which is characterized in that be applied to the first electronic equipment, described device includes:
Module is obtained, for obtaining the Wi-Fi information of the second electronic equipment sharing;Wherein, second electronic equipment are as follows: connected It connects by the equipment of destination router Wi-Fi network generated, the Wi-Fi information includes: the work of the destination router Channel and MAC Address;
Link block, for by the working channel, the destination router corresponding with the MAC Address to be attached.
5. device according to claim 4, which is characterized in that the Wi-Fi information further include: the Wi-Fi network Cipher mode and password;
The link block, is specifically used for:
By the working channel, it is based on the cipher mode and the password, to the corresponding target road of the MAC Address It requests to authenticate by device;
If certification passes through, by the working channel, the destination router corresponding with the MAC Address is attached.
6. device according to claim 4 or 5, which is characterized in that the Wi-Fi letter for obtaining the second electronic equipment and sharing The mode of breath, comprising:
Scan the mode for the graphical identification code that second electronic equipment is shared;Wherein, the graphical identification code contains the Wi- Fi information;
Or
AirKiss mode;
Or
SmartConfig mode.
7. a kind of electronic equipment, which is characterized in that the electronic equipment is the first electronic equipment, including processor and memory, Wherein,
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any side claim 1-3 Method step.
8. a kind of router connects system, which is characterized in that the system comprises:
Second electronic equipment determines Wi-Fi information to be shared for determining the working channel and MAC Address of destination router, The Wi-Fi information is shared with the first electronic equipment;Wherein, second electronic equipment is to have connected to be routed by the target The equipment of device Wi-Fi network generated;The Wi-Fi information includes the working channel and MAC Address of the destination router;
First electronic equipment, the Wi-Fi information shared for obtaining second electronic equipment, is believed by the work Road, the destination router corresponding with the MAC Address are attached.
9. system according to claim 8, which is characterized in that second electronic equipment determines the work of destination router Channel and MAC Address, comprising:
From the network connection information of second equipment itself, the working channel and MAC Address of the destination router are determined.
10. system according to claim 9, which is characterized in that second electronic equipment determines Wi-Fi letter to be shared It before breath, is also used to: determining the cipher mode and Crypted password of the Wi-Fi network;
The Wi-Fi information further include: the cipher mode and the password;
First electronic equipment is connected by the working channel, the destination router corresponding with the MAC Address It connects, comprising:
By the working channel, it is based on the cipher mode and the password, to the corresponding target road of the MAC Address It requests to authenticate by device;
If certification passes through, by the working channel, the destination router corresponding with the MAC Address is attached.
11. according to the described in any item systems of claim 8-10, which is characterized in that second electronic equipment is by the Wi- Fi information is shared with the mode of the first electronic equipment, comprising:
Generate the mode for carrying the graphical identification code of the Wi-Fi information;
Or
AirKiss mode;
Or
SmartConfig mode.
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 true CN109219045A (en) 2019-01-15
CN109219045B 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)

Cited By (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
CN110650516A (en) * 2019-09-23 2020-01-03 芯海科技(深圳)股份有限公司 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 (17)

* 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
CN103415012A (en) * 2013-08-15 2013-11-27 惠州Tcl移动通信有限公司 Authentication method and authentication device of wireless router
US20140068719A1 (en) * 2012-09-04 2014-03-06 Nokia Corporation Method, apparatus, and computer program product for sharing wireless network configurations
CN104219667A (en) * 2013-05-31 2014-12-17 华为终端有限公司 Method and equipment used for connection establishment
CN104540127A (en) * 2014-12-08 2015-04-22 哈尔滨工程大学 Anti-free-network-use router access network right control method based on dynamic two-dimensional code
US20150172118A1 (en) * 2013-12-18 2015-06-18 Alpha Networks Inc. Method for automatically configuring gateway device
CN105407544A (en) * 2015-12-16 2016-03-16 湖北科技学院 Rapid networking method based on WiFi module
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
CN105554907A (en) * 2015-12-11 2016-05-04 深圳市奥金瑞科技有限公司 General method for configuring WiFi device to make same to connect WiFi router
CN105898841A (en) * 2016-06-30 2016-08-24 北京奇虎科技有限公司 Smart terminal and method for sharing WLAN (Wireless Local Area Network) resources by terminal
CN105898747A (en) * 2016-05-13 2016-08-24 中科创达软件科技(深圳)有限公司 Wireless network security authentication method and device and wireless network access method and device
CN106793002A (en) * 2017-01-23 2017-05-31 努比亚技术有限公司 Passive type wifi scan methods and relevant device based on broadcast channel
CN106936676A (en) * 2017-04-20 2017-07-07 青岛海信电器股份有限公司 Home equipment control method and device
CN107635229A (en) * 2016-07-15 2018-01-26 中兴通讯股份有限公司 A kind of method and apparatus shared WIFI
CN107820300A (en) * 2017-11-27 2018-03-20 北京小米移动软件有限公司 Network search method and device
CN107969002A (en) * 2017-10-13 2018-04-27 上海连尚网络科技有限公司 Wifi hot spots sharing method, equipment and storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068719A1 (en) * 2012-09-04 2014-03-06 Nokia Corporation Method, apparatus, and computer program product for sharing wireless network configurations
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
CN103415012A (en) * 2013-08-15 2013-11-27 惠州Tcl移动通信有限公司 Authentication method and authentication device of wireless router
US20150172118A1 (en) * 2013-12-18 2015-06-18 Alpha Networks Inc. Method for automatically configuring 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
CN105554907A (en) * 2015-12-11 2016-05-04 深圳市奥金瑞科技有限公司 General method for configuring WiFi device to make same to connect WiFi router
CN105407544A (en) * 2015-12-16 2016-03-16 湖北科技学院 Rapid 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
CN106936676A (en) * 2017-04-20 2017-07-07 青岛海信电器股份有限公司 Home equipment control method and device
CN107969002A (en) * 2017-10-13 2018-04-27 上海连尚网络科技有限公司 Wifi hot spots sharing method, equipment and storage medium
CN107820300A (en) * 2017-11-27 2018-03-20 北京小米移动软件有限公司 Network search method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHANGEYOURMIND: ""wifi模块各种常见的配网方式说明及其比较"", 《HTTPS://BLOG.CSDN.NET/CHANGYOURMIND/ARTICLE/DETAILS/78631357》 *
半颗心脏: ""Esp8266学习之旅⑤了解SmartC。nfig与Airkiss-键配网,给8266一键配网上云端"", 《HTTPS://BLOG.CSDN.NET/XH870189248/ARTICLE/DETAILS/78677952》 *

Cited By (4)

* 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
CN110650516A (en) * 2019-09-23 2020-01-03 芯海科技(深圳)股份有限公司 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium
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

Also Published As

Publication number Publication date
CN109219045B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN106489284B (en) WLAN access
US8249256B2 (en) Method for providing fast secure handoff in a wireless mesh network
US8631471B2 (en) Automated seamless reconnection of client devices to a wireless network
CN106851632B (en) A kind of method and device of smart machine access WLAN
US8634393B2 (en) Channel scanning in a network having one or more access points
KR102013683B1 (en) Machine-to-machine bootstrapping
US10477397B2 (en) Method and apparatus for passpoint EAP session tracking
US12075342B2 (en) Cellular network onboarding through wireless local area network
CN1822540A (en) Authentication vector generation device and method, subscriber identity module, wireless communication system and calculation method
CN108737381A (en) A kind of extended authentication method of Internet of things system
KR101807523B1 (en) Apparatus and method for identifying wireless network provider in wireless communication system
CN105763464A (en) Data flow sharing method, device and system
CN110073681B (en) Method, apparatus and computer readable medium for internet of things device
CN109219045A (en) A kind of router connection method, device, electronic equipment and system
CN108293055A (en) Method, apparatus and system for authenticating to mobile network and for by the server of device authentication to mobile network
WO2018010480A1 (en) Network locking method for esim card, terminal, and network locking authentication server
CN110475247A (en) Message treatment method and device
CN110392998A (en) A kind of data packet method of calibration and equipment
CN108600404A (en) Terminal management method, device, computer equipment and storage medium in wireless network
US7428747B2 (en) Secure channel reservation
CN116193441A (en) Communication method, communication device and communication system
CN102761940A (en) 802.1X authentication method and equipment
US20090037979A1 (en) Method and System for Recovering Authentication in a Network
CN106537962A (en) Method, device, and equipment for wireless network configuration, access, and visit
US20100067438A1 (en) Communication method and, terminal apparatus and base station apparatus using the method

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