CN105873052B - A kind of method and device that wifi equipment networks - Google Patents
A kind of method and device that wifi equipment networks Download PDFInfo
- Publication number
- CN105873052B CN105873052B CN201610184923.6A CN201610184923A CN105873052B CN 105873052 B CN105873052 B CN 105873052B CN 201610184923 A CN201610184923 A CN 201610184923A CN 105873052 B CN105873052 B CN 105873052B
- Authority
- CN
- China
- Prior art keywords
- data packet
- wifi
- access information
- routing
- wifi equipment
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
Abstract
The invention proposes the method and devices that a kind of wifi equipment networks, this method includes: when wifi equipment is under sniffer listening mode in the process that mobile terminal side executes, the data packet for carrying routing access information is issued using UDP mode of unicast, and routing access information is obtained from the data packet received for wifi equipment and wifi wireless network is accessed based on the routing access information.The present invention solves the agility and safety issue of wifi networking setting, avoids the impact of broadcast mode or multicast mode to network.
Description
Technical field
The present invention relates to the method and devices that household electrical appliances networking technical field more particularly to a kind of wifi equipment network.
Background technique
With popularizing for wifi network, more and more smart machines enter market, if can be convenient, fast, safe
Wifi, which networks, becomes first of threshold that smart machine enters into huge numbers of families.
Network access mode, wifi is arranged using Sniffer in the smart machine (referred to as: wifi equipment) for having wifi module at present
When equipment is under sniffer listening mode, it can receive and receive all wifi information in distance range in wifi, include pipe
Manage frame, control frame and data frame.Mobile terminal such as mobile phone is linked into family's routing and in the work of the family's routing connected
UDP (User Data Protocol, User Datagram Protocol) multicast is sent on channel or broadcast packet, UDP multicast packets are formed
802.11 data frames (Media Access Control, the media access control) domain purpose MAC or multiple udp broadcast packet institutes
The wifi information of family's routing is carried in the variable quantity of the length value of 802.11 data frames formed, which includes family
The SSID (Service Set Identifier, service set) and password of routing, wifi equipment listen to family routing
It is saved after information, completes routing setting.Next, mobile terminal can be with after waiting the routing of wifi equipment access family
Wifi equipment is communicated.
But Sniffer setting network access mode has the disadvantage that
The mode of udp broadcast packet is sent, single data packet is bigger, 802.11 data frames formed by udp broadcast packet
Length value variable quantity entrained by data it is less, data packet number is relatively more, and elapsed time is relatively more, and udp broadcast packet
It is easier to be disturbed and packet loss, success rate is relatively low.In addition, broadcast packet itself may cause to impact to network.
The mode for sending UDP multicast packets, is not supported for certain mobile phones and router, so compatibility is not enough
It is good.Multicast packets itself may also cause to impact to network.
Summary of the invention
The technical problem to be solved by the present invention is to provide a kind of method and device that wifi equipment networks, solve wifi
Network the agility and safety issue being arranged, and avoids the impact of broadcast mode or multicast mode to network.
The technical solution adopted by the present invention is that the method that the wifi equipment networks, in the process that mobile terminal side executes
Include:
When wifi equipment is under sniffer listening mode, routing access letter is carried using the sending of UDP mode of unicast
The data packet of breath is obtained routing access information for wifi equipment from the data packet received and is connect based on the routing
Enter information access wifi wireless network.
Further, the destination address for the data packet for using UDP mode of unicast to issue is one or more;It is described
Destination address is selected from the gateway address of the IP address of the wifi equipment accessed under wifi wireless network and wifi wireless network
It takes;
It is described to use UDP unicast in the case where the destination address for the data packet that UDP mode of unicast issues is multiple
Mode issues the data packet for carrying routing access information, comprising:
Piecemeal is carried out to routing access information, the quantity of piecemeal is equal with the quantity of the destination address, using UDP unicast
Mode will route access information piecemeal and successively be issued with the data packet of different destination addresses.
Further, the method, in the process that mobile terminal side executes further include:
Before issuing the data packet for carrying routing access information using UDP mode of unicast, issued using UDP mode of unicast
Carry the data packet of characteristic information, for wifi equipment when getting characteristic information from the data packet received i.e.
It determines the current wifi working channel of the mobile terminal and continues to monitor on the wifi working channel.
Further, in the data packet further include: check information, so that wifi equipment is from the data packet received
Middle acquisition check information simultaneously carries out completeness check to the routing access information based on the check information;
The routing access information, comprising: service set and password, alternatively, by encrypted service set and
Password.
Further, the method, in the process that mobile terminal side executes further include:
After receiving the notice that the routing that wifi equipment is sent is successfully accessed, stops sending and carry routing access information
Data packet.
Further, the method, in the process that mobile terminal side executes further include:
After receiving the notice that the routing that wifi equipment is sent is successfully accessed, stop issuing the number for carrying characteristic information
According to packet.
The present invention also provides a kind of methods that wifi equipment networks, and include: in the process that wifi equipment side executes
Mobile terminal is received under sniffer listening mode carries routing access letter using what UDP mode of unicast issued
The data packet of breath;
Routing access information is obtained from the data packet received, and wifi is accessed based on the routing access information
Wireless network.
Further, mobile terminal use UDP mode of unicast issue the data packet destination address for one or
It is multiple;The IP address for the wifi equipment that the destination address has accessed under wifi wireless network and the gateway of wifi wireless network
It is chosen in address;
It is described from receiving in the case where the destination address for the data packet that UDP mode of unicast issues is multiple
Routing access information is obtained in the data packet, comprising:
Routing access information piecemeal, the quantity of piecemeal and institute are successively got from the data packet for receiving different destination addresses
The quantity for stating destination address is equal, is combined into routing access information by each routing access information piecemeal.
Further, the method, in the process that wifi equipment side executes further include:
Before receiving the data packet for carrying routing access information that mobile terminal is issued using UDP mode of unicast, connect
It receives mobile terminal and issues the data packet for carrying characteristic information using UDP mode of unicast;
Once getting characteristic information from the data packet received, it is determined that go out the current of the mobile terminal
Wifi working channel, and continue to monitor on the wifi working channel.
Further, the routing access information, comprising: service set and password, alternatively, by encrypted service
Set identifier and password;
In the data packet further include: check information;The method, in the process that wifi equipment side executes further include:
Check information is obtained from the data packet received, and the routing is accessed based on the check information and is believed
Breath carries out completeness check, and when verifying successfully, routing access information is obtained from the data packet received.
Further, the method, in the process that wifi equipment side executes further include:
After access wifi wireless network success, the notice that routing is successfully accessed is issued, so that mobile terminal is receiving
Stop issuing the data packet for carrying routing access information after stating the notice that routing is successfully accessed.
Further, the method, in the process that wifi equipment side executes further include:
After access wifi wireless network success, the notice that routing is successfully accessed is issued, so that mobile terminal is receiving
Stop issuing the data packet for carrying characteristic information after stating the notice that routing is successfully accessed.
The present invention also provides the devices that a kind of wifi equipment networks, and are set to mobile terminal side, described device includes:
First sending module, for being sent out using UDP mode of unicast when wifi equipment is under sniffer listening mode
The data packet of routing access information is carried, out so that wifi equipment obtains routing access information simultaneously from the data packet received
Wifi wireless network is accessed based on the routing access information.
Further, the destination address for the data packet for using UDP mode of unicast to issue is one or more;It is described
Destination address is selected from the gateway address of the IP address of the wifi equipment accessed under wifi wireless network and wifi wireless network
It takes;
In the case where the destination address for the data packet that UDP mode of unicast issues is multiple, described first sends mould
Block is specifically used for:
Piecemeal is carried out to routing access information, the quantity of piecemeal is equal with the quantity of the destination address, using UDP unicast
Mode will route access information piecemeal and successively be issued with the data packet of different destination addresses.
Further, first sending module, is also used to:
Before issuing the data packet for carrying routing access information using UDP mode of unicast, issued using UDP mode of unicast
Carry the data packet of characteristic information, for wifi equipment when getting characteristic information from the data packet received i.e.
It determines the current wifi working channel of the mobile terminal and continues to monitor on the wifi working channel.
Further, in the data packet further include: check information, so that wifi equipment is from the data packet received
Middle acquisition check information simultaneously carries out completeness check to the routing access information based on the check information;
The routing access information, comprising: service set and password, alternatively, by encrypted service set and
Password.
Further, described device, further includes:
First receiving module, for after receiving the notice that the routing that wifi equipment is sent is successfully accessed, described in notice
First sending module stops issuing the data packet for carrying routing access information.
Further, described device, further includes:
First receiving module, for after receiving the notice that the routing that wifi equipment is sent is successfully accessed, described in notice
First sending module stops issuing the data packet for carrying characteristic information.
The present invention also provides the devices that a kind of wifi equipment networks, and are set to wifi equipment side, described device includes:
Second receiving module, for receiving what mobile terminal was issued using UDP mode of unicast under sniffer listening mode
Carry the data packet of routing access information;
Networking module, for obtaining routing access information from the data packet received, and based on routing access letter
Breath access wifi wireless network.
Further, mobile terminal use UDP mode of unicast issue the data packet destination address for one or
It is multiple;The IP address for the wifi equipment that the destination address has accessed under wifi wireless network and the gateway of wifi wireless network
It is chosen in address;
In the case where the destination address for the data packet that UDP mode of unicast issues is multiple, the networking module, tool
Body is used for:
Routing access information piecemeal, the quantity of piecemeal and institute are successively got from the data packet for receiving different destination addresses
The quantity for stating destination address is equal, is combined into routing access information by each routing access information piecemeal.
Further, second receiving module, is also used to:
Before receiving the data packet for carrying routing access information that mobile terminal is issued using UDP mode of unicast, connect
It receives mobile terminal and issues the data packet for carrying characteristic information using UDP mode of unicast;
Once getting characteristic information from the data packet received, it is determined that go out the current of the mobile terminal
Wifi working channel, and continue to monitor on the wifi working channel.
Further, the routing access information, comprising: service set and password, alternatively, by encrypted service
Set identifier and password;
In the data packet further include: check information;The networking module, is also used to:
Check information is obtained from the data packet received, and the routing is accessed based on the check information and is believed
Breath carries out completeness check, and when verifying successfully, routing access information is obtained from the data packet received.
Further, described device, further includes:
Second sending module, for issuing the notice that routing is successfully accessed after access wifi wireless network success, for
Mobile terminal stops issuing the data packet for carrying routing access information after receiving the notice for routing and being successfully accessed.
Further, described device, further includes:
Second sending module, for issuing the notice that routing is successfully accessed after access wifi wireless network success, for
Mobile terminal stops issuing the data packet for carrying characteristic information after receiving the notice for routing and being successfully accessed.
By adopting the above technical scheme, the present invention at least has the advantage that
The method and device that wifi equipment of the present invention networks, allows mobile terminal to send wifi in a manner of UDP unicast
Routing iinformation makes the wifi equipment in sniffer listening mode get wifi routing iinformation to complete to network, due to using
UDP mode of unicast, be to have preferable compatibility, and reduce relative to broadcast mode or multicast mode in various mobile terminals
Impact to network solves wifi and networks the agility and safety issue of setting.
Detailed description of the invention
Fig. 1 is the method flow diagram that the preferred wifi equipment of first embodiment of the invention networks;
Fig. 2 is the method flow diagram that the preferred wifi equipment of second embodiment of the invention networks;
Fig. 3 is the method flow diagram that the preferred wifi equipment of third embodiment of the invention networks;
Fig. 4 is the method flow diagram that the preferred wifi equipment of fourth embodiment of the invention networks;
Fig. 5 is the device composed structure schematic diagram that the preferred wifi equipment of fifth embodiment of the invention networks;
Fig. 6 is the device composed structure schematic diagram that the preferred wifi equipment of seventh embodiment of the invention networks;
Fig. 7 is the flow diagram that ninth embodiment of the invention wifi equipment networks.
Specific embodiment
Further to illustrate the present invention to reach the technical means and efficacy that predetermined purpose is taken, below in conjunction with attached drawing
And preferred embodiment, the present invention is described in detail as after.
First embodiment of the invention, a kind of method that wifi equipment networks, as shown in Figure 1, executed in mobile terminal side
Process comprising the following specific steps
Step S101 is carried when wifi equipment is under sniffer listening mode using the sending of UDP mode of unicast
The data packet of access information is routed, so that wifi equipment obtains routing access information from the data packet received and is based on
The routing access information accesses wifi wireless network.
Specifically, the destination address for the data packet for using UDP mode of unicast to issue is one or more;The mesh
Address chosen from the gateway address of the IP address of the wifi equipment accessed under wifi wireless network and wifi wireless network;
It is described to use UDP unicast in the case where the destination address for the data packet that UDP mode of unicast issues is multiple
Mode issues the data packet for carrying routing access information, comprising:
Piecemeal is carried out to routing access information, the quantity of piecemeal is equal with the quantity of the destination address, using UDP unicast
Mode will route access information piecemeal and successively be issued with the data packet of different destination addresses.Piecemeal, which sends and receives, in this way has more
Good anti-interference ability.
The routing access information, comprising: service set and password, alternatively, by encrypted service set and
Password.
If the routing access information is to pass through encrypted service set and password, it can be and be based on presetting
Key, such as: equipment intrinsic information such as MAC Address of two dimensional code of mobile terminal or mobile terminal etc. is used as key, to clothes
Business set identifier and password are encrypted.
Preferably, the method, in the process that mobile terminal side executes further include:
Step S102 stops sending and carries road after receiving the notice that the routing that wifi equipment is sent is successfully accessed
By the data packet of access information.
Second embodiment of the invention, a kind of method that wifi equipment networks, the present embodiment the method and first embodiment
Roughly the same, difference is, as shown in Fig. 2, the embodiment of the present invention method is being used in the process that mobile terminal side executes
It further include determining mobile terminal wifi working channel before UDP mode of unicast issues the data packet for carrying routing access information
The step of.
The method that the wifi equipment of the present embodiment networks includes: in the process that mobile terminal side executes
Step S201 is carried when wifi equipment is under sniffer listening mode using the sending of UDP mode of unicast
The data packet of characteristic information, so that wifi equipment is determined when getting characteristic information from the data packet received
The current wifi working channel of the mobile terminal simultaneously continues to monitor on the wifi working channel.
Specifically, the length field for packet header part sets fixed numbers, it will be described solid in the length field
Fixed number value is as characteristic information.
Step S202 issues the data packet for carrying routing access information, using UDP mode of unicast for wifi equipment base
Routing access information is obtained in the data packet received and wifi wireless network is accessed based on the routing access information.
Specifically, mobile terminal can use the variable quantity of the length value of continuous multiple UDP unicast datas, using predefined
Algorithm transmits above-mentioned routing access information, which can be the difference of data length in adjacent data packet
As the character in routing access information.
Preferably, in the data packet further include: check information, so that wifi equipment is from the data packet received
It obtains check information and completeness check is carried out to the routing access information based on the check information.
Preferably, the method, in the process that mobile terminal side executes further include:
Step S203 stops sending and carries spy after receiving the notice that the routing that wifi equipment is sent is successfully accessed
The data packet of reference breath.
Third embodiment of the invention, a kind of method that wifi equipment networks, as shown in figure 3, executed in wifi equipment side
Process comprising the following specific steps
Step S301 receives mobile terminal under sniffer listening mode and carries road using what UDP mode of unicast issued
By the data packet of access information;
Specifically, the routing access information, comprising: service set and password, alternatively, by encrypted services set
Mark and password;
Step S302 obtains routing access information from the data packet received, and based on routing access letter
Breath access wifi wireless network.
Specifically, the destination address for the data packet that mobile terminal uses UDP mode of unicast to issue is for one or more
It is a;The gateway of the IP address of the wifi equipment that the destination address has accessed under wifi wireless network and wifi wireless network
It is chosen in location;
It is described from receiving in the case where the destination address for the data packet that UDP mode of unicast issues is multiple
Routing access information is obtained in the data packet, comprising:
Routing access information piecemeal, the quantity of piecemeal and institute are successively got from the data packet for receiving different destination addresses
The quantity for stating destination address is equal, is combined into routing access information by each routing access information piecemeal.
Preferably, the method, in the process that wifi equipment side executes further include:
Step S303 issues the notice that routing is successfully accessed, after access wifi wireless network success for mobile terminal
Stop issuing the data packet for carrying routing access information after receiving the notice for routing and being successfully accessed.
Fourth embodiment of the invention, a kind of method that wifi equipment networks, the present embodiment the method and 3rd embodiment
Roughly the same, difference is, as shown in figure 4, the embodiment of the present invention method is being received in the process that wifi equipment side executes
It further include determining movement eventually before the data packet for carrying routing access information of the mobile terminal using the sending of UDP mode of unicast
The step of holding wifi working channel.
The method that the wifi equipment of the present embodiment networks, in wifi equipment side, the process of execution includes:
Step S401 receives mobile terminal using the sending of UDP mode of unicast and carries spy under sniffer listening mode
The data packet of reference breath;
Step S402 determines the mobile terminal when getting characteristic information from the data packet received
Current wifi working channel, and continue to monitor on the wifi working channel.
Step S403 receives the data packet for carrying routing access information that mobile terminal is issued using UDP mode of unicast;
Step S404 obtains routing access information from the data packet received, and based on routing access letter
Breath access wifi wireless network.
Preferably, in the data packet further include: check information;It is obtained from the data packet received in step S404
It takes before routing access information, further includes:
Check information is obtained from the data packet received, and the routing is accessed based on the check information and is believed
Breath carries out completeness check, no by just obtaining routing access information after completeness check from the data packet received
Then process terminates.
Preferably, the method, in the process that wifi equipment side executes further include:
Step S405 issues the notice that routing is successfully accessed, after access wifi wireless network success for mobile terminal
Stop issuing the data packet for carrying characteristic information after receiving the notice for routing and being successfully accessed.
Fifth embodiment of the invention, corresponding with first embodiment, the present embodiment introduces a kind of device that wifi equipment networks,
It is set to mobile terminal side, as shown in figure 5, described device includes consisting of part:
First sending module 501 is used for when wifi equipment is under sniffer listening mode, using UDP mode of unicast
The data packet for carrying routing access information is issued, so that wifi equipment obtains routing access information from the data packet received
And wifi wireless network is accessed based on the routing access information.
Specifically, the destination address for the data packet for using UDP mode of unicast to issue is one or more;The mesh
Address chosen from the gateway address of the IP address of the wifi equipment accessed under wifi wireless network and wifi wireless network;
In the case where the destination address for the data packet that UDP mode of unicast issues is multiple, the first sending module
501, it is specifically used for:
Piecemeal is carried out to routing access information, the quantity of piecemeal is equal with the quantity of the destination address, using UDP unicast
Mode will route access information piecemeal and successively be issued with the data packet of different destination addresses.
The routing access information, comprising: service set and password, alternatively, by encrypted service set and
Password.
Preferably, described device, further includes:
First receiving module 502, for notifying institute after receiving the notice that the routing that wifi equipment is sent is successfully accessed
The first sending module is stated to stop issuing the data packet for carrying routing access information.
Sixth embodiment of the invention, a kind of device that wifi equipment networks, the present embodiment described device and the 5th embodiment
Roughly the same, difference is, first sending module of the present embodiment further includes the function of determining mobile terminal wifi working channel.
The device that the wifi equipment of the present embodiment networks, is set to mobile terminal side, described device, comprising:
First sending module, for being sent out using UDP mode of unicast when wifi equipment is under sniffer listening mode
The data packet of characteristic information is carried, out so that wifi equipment is when getting characteristic information from the data packet received
It determines the current wifi working channel of the mobile terminal and continues to monitor on the wifi working channel;
The data packet for carrying routing access information is issued, using UDP mode of unicast so that wifi equipment is from receiving
Routing access information is obtained in data packet and wifi wireless network is accessed based on the routing access information.
Preferably, in the data packet further include: check information, so that wifi equipment is from the data packet received
It obtains check information and completeness check is carried out to the routing access information based on the check information;
Preferably, described device, further includes:
First receiving module, for after receiving the notice that the routing that wifi equipment is sent is successfully accessed, described in notice
First sending module stops issuing the data packet for carrying characteristic information.
A kind of seventh embodiment of the invention, device that wifi equipment networks, is set to wifi equipment side, as shown in fig. 6, institute
Stating device includes:
Second receiving module 601 is sent out for receiving mobile terminal under sniffer listening mode using UDP mode of unicast
The data packet for carrying routing access information out;
Specifically, the routing access information, comprising: service set and password, alternatively, by encrypted services set
Mark and password;
Networking module 602 is accessed for obtaining routing access information from the data packet received, and based on the routing
Information access wifi wireless network.
Specifically, the destination address for the data packet that mobile terminal uses UDP mode of unicast to issue is for one or more
It is a;The gateway of the IP address of the wifi equipment that the destination address has accessed under wifi wireless network and wifi wireless network
It is chosen in location;
In the case where the destination address for the data packet that UDP mode of unicast issues is multiple, the networking module, tool
Body is used for:
Routing access information piecemeal, the quantity of piecemeal and institute are successively got from the data packet for receiving different destination addresses
The quantity for stating destination address is equal, is combined into routing access information by each routing access information piecemeal.
Preferably, described device, further includes:
Second sending module 603, for issuing the notice that routing is successfully accessed after access wifi wireless network success,
So that mobile terminal stops issuing the data packet for carrying routing access information after receiving the notice that the routing is successfully accessed.
Eighth embodiment of the invention, a kind of device that wifi equipment networks, the present embodiment described device and the 7th embodiment
Roughly the same, difference is, second receiving module of the present embodiment further includes the function of determining mobile terminal wifi working channel.
The device that the wifi equipment of the present embodiment networks, is set to wifi equipment side, described device, comprising:
Second receiving module is issued under sniffer listening mode, receiving mobile terminal using UDP mode of unicast
Carry the data packet of characteristic information;Once getting characteristic information from the data packet received, it is determined that go out described
The current wifi working channel of mobile terminal, and continue to monitor on the wifi working channel;
Receive the data packet for carrying routing access information that mobile terminal is issued using UDP mode of unicast.
Networking module, for obtaining routing access information from the data packet received, and based on routing access letter
Breath access wifi wireless network.
Preferably, in the data packet further include: check information;The networking module, is also used to:
Check information is obtained from the data packet received, and the routing is accessed based on the check information and is believed
Breath carries out completeness check, obtains routing access information after verifying successfully from the data packet received again.
Preferably, described device, further includes:
Second sending module, for issuing the notice that routing is successfully accessed after access wifi wireless network success, for
Mobile terminal stops issuing the data packet for carrying characteristic information after receiving the notice for routing and being successfully accessed.
Ninth embodiment of the invention, the present embodiment are on the basis of the above embodiments, to introduce this hair in conjunction with attached drawing 7
Bright application example.
As shown in fig. 7, the wifi equipment networking process of the present embodiment the following steps are included:
Step 1, wifi equipment starts sniffer listening mode.
Step 2, mobile phone terminal APP sends the data packet comprising characteristic information by the way of UDP unicast, and wifi equipment is every
Fixed Time Interval is stopped on a wifi working channel, to receive all wifi data on each channel;
Step 3, if receiving the data packet comprising characteristic information, it is determined that go out the wifi working channel of mobile phone terminal, locking
The wifi working channel carries out continuing to monitor, and the wifi equipment is just completely in state to be placed at this time.
Step 4, mobile phone terminal APP is transmitted wifi routing iinformation by the way of UDP unicast.Wifi routing iinformation packet
It includes: SSID and password.
Specifically, the variable quantity of the length value using continuous multiple UDP unicast datas, using predefined algorithm, in transmission
Wifi routing iinformation is stated, which can be routes the difference of data length in adjacent data packet as wifi
Character in information, such as: the data length in the latter data packet is 200 bytes, the data length in previous data packet
For 202 bytes, then the data length difference 2 in the two data packets is the first character of SSID in the wifi routing iinformation
Symbol.Under the mode of the UDP unicast, destination address be can be fixed, for example, can using wifi routing gateway address or
The IP address of other wifi equipments connected under wifi local area network address as a purpose.
As prioritization scheme, if there is other wifi equipments under wifi local area network, destination address is also possible to variation, can
Then successively to send the different piecemeals of routing iinformation to each destination address for routing iinformation piecemeal, have so preferably anti-
Interference performance.The number of destination address used is identical as the number of routing iinformation piecemeal.
Step 5, after the smart machine in sniffer listening mode receives above-mentioned unicast data, based on predefined
Algorithm can be parsed out the wifi routing iinformation wherein carried, and carry out completeness check.After verifying successfully, the wifi is saved
Otherwise routing iinformation continues sniffer and monitors.
Step 6, the wifi is connected using the wifi routing iinformation to route.
Step 7, successful connection.
Step 8, notice mobile phone terminal APP stops sending data after successfully networking.
The application scenarios of the embodiment of the present invention may is that refrigerator, air-conditioning in family etc. have the family of wifi network savvy
Electric equipment, i.e. wifi equipment, after wifi equipment enters the state of sniffer monitoring by key or other modes, mobile phone terminal
Aforesaid way can be used to be configured.
The method that the setting wifi equipment of the embodiment of the present invention networks, applicability is wide, because of all mobile phones and routing
All support UDP unicast, the set-up mode compatibility than sending out multicast is more preferable.Than impact of the set-up mode to network of broadcast or multicast
Small, broadcast packet may be shielded by router, and unicast packet is hardly shielded.Also, the routing iinformation energy that mobile phone terminal issues
It is enough encrypted, has certain safety.
By the explanation of specific embodiment, the present invention can should be reached technological means that predetermined purpose is taken and
Effect is able to more deeply and specifically understand, however appended diagram is only to provide reference and description and is used, and is not used to this
Invention limits.
Claims (20)
1. a kind of method that wifi equipment networks, which is characterized in that include: in the process that mobile terminal side executes
When wifi equipment is under sniffer listening mode, carried using the sending of User Datagram Protocol UDP mode of unicast
The data packet of access information is routed, so that wifi equipment obtains routing access information from the data packet received and is based on
The routing access information accesses wifi wireless network;
The destination address for the data packet for using UDP mode of unicast to issue is one or more;The destination address from
It is chosen in the IP address of the wifi equipment accessed under wifi wireless network and the gateway address of wifi wireless network;
It is described to use UDP mode of unicast in the case where the destination address for the data packet that UDP mode of unicast issues is multiple
Issue the data packet for carrying routing access information, comprising:
Piecemeal is carried out to routing access information, the quantity of piecemeal is equal with the quantity of the destination address, using UDP mode of unicast
Each piecemeal of access information will be routed and is successively issued with the data packet of different destination addresses.
2. the method that wifi equipment according to claim 1 networks, which is characterized in that the method, in mobile terminal side
The process of execution further include:
Before issuing the data packet for carrying routing access information using UDP mode of unicast, is issued and carried using UDP mode of unicast
There is the data packet of characteristic information, so that wifi equipment is determined when getting characteristic information from the data packet received
The current wifi working channel of the mobile terminal and continue to monitor on the wifi working channel out.
3. the method that wifi equipment according to claim 1 networks, which is characterized in that in the data packet further include: school
Information is tested, so that wifi equipment obtains check information and based on the check information to described from the data packet received
It routes access information and carries out completeness check;
The routing access information, comprising: service set and password, alternatively, by encrypted service set and password.
4. the method that wifi equipment according to claim 1 networks, which is characterized in that the method, in mobile terminal side
The process of execution further include:
After receiving the notice that the routing that wifi equipment is sent is successfully accessed, stop issuing the number for carrying routing access information
According to packet.
5. the method that wifi equipment according to claim 3 networks, which is characterized in that the method, in mobile terminal side
The process of execution further include:
After receiving the notice that the routing that wifi equipment is sent is successfully accessed, stop issuing the data for carrying characteristic information
Packet.
6. a kind of method that wifi equipment networks, which is characterized in that include: in the process that wifi equipment side executes
Mobile terminal is received under sniffer listening mode, and access information is routed using carrying for UDP mode of unicast sending
Data packet;
Routing access information is obtained from the data packet received, and wireless based on routing access information access wifi
Network;
The destination address for the data packet that mobile terminal uses UDP mode of unicast to issue is one or more;The purpose
It is chosen from the gateway address of the IP address of the wifi equipment accessed under wifi wireless network and wifi wireless network address;
It is described described in receive in the case where the destination address for the data packet that UDP mode of unicast issues is multiple
Routing access information is obtained in data packet, comprising:
Successively get routing each piecemeal of access information from the data packet for receiving different destination addresses, the quantity of piecemeal with it is described
The quantity of destination address is equal, is combined into routing access information by each routing access information piecemeal.
7. the method that wifi equipment according to claim 6 networks, which is characterized in that the method, in wifi equipment side
The process of execution further include:
Before receiving the data packet for carrying routing access information that mobile terminal is issued using UDP mode of unicast, receives and move
Dynamic terminal issues the data packet for carrying characteristic information using UDP mode of unicast;
Once getting characteristic information from the data packet received, it is determined that go out the current wifi work of the mobile terminal
Make channel, and continues to monitor on the wifi working channel.
8. the method that wifi equipment according to claim 6 networks, which is characterized in that the routing access information, comprising:
Service set and password, alternatively, by encrypted service set and password;
In the data packet further include: check information;The method, in the process that wifi equipment side executes further include:
Obtain check information from the data packet received, and based on the check information to the routing access information into
Row completeness check obtains routing access information when verifying successfully from the data packet received.
9. the method that wifi equipment according to claim 6 networks, which is characterized in that the method, in wifi equipment side
The process of execution further include:
After access wifi wireless network success, the notice that routing is successfully accessed is issued, so that mobile terminal is receiving the road
By stopping issuing the data packet for carrying routing access information after the notice that is successfully accessed.
10. the method that wifi equipment according to claim 7 networks, which is characterized in that the method, in wifi equipment side
The process of execution further include:
After access wifi wireless network success, the notice that routing is successfully accessed is issued, so that mobile terminal is receiving the road
By stopping issuing the data packet for carrying characteristic information after the notice that is successfully accessed.
11. the device that a kind of wifi equipment networks, which is characterized in that be set to mobile terminal side, described device includes:
First sending module, for being taken using the sending of UDP mode of unicast when wifi equipment is under sniffer listening mode
Data packet with routing access information, so that wifi equipment obtains routing access information from the data packet received and is based on
The routing access information accesses wifi wireless network;
The destination address for the data packet for using UDP mode of unicast to issue is one or more;The destination address from
It is chosen in the IP address of the wifi equipment accessed under wifi wireless network and the gateway address of wifi wireless network;
In the case where the destination address for the data packet that UDP mode of unicast issues is multiple, first sending module, tool
Body is used for:
Piecemeal is carried out to routing access information, the quantity of piecemeal is equal with the quantity of the destination address, using UDP mode of unicast
Each piecemeal of access information will be routed and is successively issued with the data packet of different destination addresses.
12. the device that wifi equipment according to claim 11 networks, which is characterized in that first sending module, also
For:
Before issuing the data packet for carrying routing access information using UDP mode of unicast, is issued and carried using UDP mode of unicast
There is the data packet of characteristic information, so that wifi equipment is determined when getting characteristic information from the data packet received
The current wifi working channel of the mobile terminal and continue to monitor on the wifi working channel out.
13. the device that wifi equipment according to claim 11 networks, which is characterized in that in the data packet further include:
Check information, so that wifi equipment obtains check information and based on the check information to institute from the data packet received
It states routing access information and carries out completeness check;
The routing access information, comprising: service set and password, alternatively, by encrypted service set and password.
14. the device that wifi equipment according to claim 11 networks, which is characterized in that described device, further includes:
First receiving module, for notifying described first after receiving the notice that the routing that wifi equipment is sent is successfully accessed
Sending module stops issuing the data packet for carrying routing access information.
15. the device that wifi equipment according to claim 12 networks, which is characterized in that described device, further includes:
First receiving module, for notifying described first after receiving the notice that the routing that wifi equipment is sent is successfully accessed
Sending module stops issuing the data packet for carrying characteristic information.
16. the device that a kind of wifi equipment networks, which is characterized in that be set to wifi equipment side, described device includes:
Second receiving module, the carrying for using UDP mode of unicast to issue for receiving mobile terminal under sniffer listening mode
There is the data packet of routing access information;
Networking module is connect for obtaining routing access information from the data packet received, and based on the routing access information
Enter wifi wireless network;
The destination address for the data packet that mobile terminal uses UDP mode of unicast to issue is one or more;The purpose
It is chosen from the gateway address of the IP address of the wifi equipment accessed under wifi wireless network and wifi wireless network address;
In the case where the destination address for the data packet that UDP mode of unicast issues is multiple, the networking module is specific to use
In:
Successively get routing each piecemeal of access information from the data packet for receiving different destination addresses, the quantity of piecemeal with it is described
The quantity of destination address is equal, is combined into routing access information by each routing access information piecemeal.
17. the device that wifi equipment according to claim 16 networks, which is characterized in that second receiving module, also
For:
Before receiving the data packet for carrying routing access information that mobile terminal is issued using UDP mode of unicast, receives and move
Dynamic terminal issues the data packet for carrying characteristic information using UDP mode of unicast;
Once getting characteristic information from the data packet received, it is determined that go out the current wifi work of the mobile terminal
Make channel, and continues to monitor on the wifi working channel.
18. the device that wifi equipment according to claim 16 networks, which is characterized in that the routing access information, packet
It includes: service set and password, alternatively, by encrypted service set and password;
In the data packet further include: check information;The networking module, is also used to:
Obtain check information from the data packet received, and based on the check information to the routing access information into
Row completeness check obtains routing access information when verifying successfully from the data packet received.
19. the device that wifi equipment according to claim 16 networks, which is characterized in that described device, further includes:
Second sending module, for the notice that routing is successfully accessed being issued, for movement after access wifi wireless network success
Terminal stops issuing the data packet for carrying routing access information after receiving the notice for routing and being successfully accessed.
20. the device that wifi equipment according to claim 16 networks, which is characterized in that described device, further includes:
Second sending module, for the notice that routing is successfully accessed being issued, for movement after access wifi wireless network success
Terminal stops issuing the data packet for carrying characteristic information after receiving the notice for routing and being successfully accessed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610184923.6A CN105873052B (en) | 2016-03-29 | 2016-03-29 | A kind of method and device that wifi equipment networks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610184923.6A CN105873052B (en) | 2016-03-29 | 2016-03-29 | A kind of method and device that wifi equipment networks |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105873052A CN105873052A (en) | 2016-08-17 |
CN105873052B true CN105873052B (en) | 2019-06-04 |
Family
ID=56626128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610184923.6A Active CN105873052B (en) | 2016-03-29 | 2016-03-29 | A kind of method and device that wifi equipment networks |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105873052B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453000A (en) * | 2016-10-09 | 2017-02-22 | 美的智慧家居科技有限公司 | Network distribution method and system for household electrical appliance, household electrical appliance and mobile terminal |
CN108616850B (en) * | 2016-12-16 | 2021-11-26 | 美的智慧家居科技有限公司 | Method and device for acquiring routing information of electric appliance |
CN108616521B (en) * | 2018-04-12 | 2021-07-16 | 青岛海尔科技有限公司 | Network access method, device, equipment and readable storage medium |
CN109451502A (en) * | 2018-12-27 | 2019-03-08 | 广东美的厨房电器制造有限公司 | Household appliance matches network method, network distribution device and computer readable storage medium |
CN110213017B (en) * | 2019-04-30 | 2021-11-12 | 普联技术有限公司 | Data transmission method, device and system, storage medium and terminal equipment |
CN113132157B (en) * | 2021-04-02 | 2023-06-20 | 青岛海尔科技有限公司 | Equipment configuration method and device, storage medium and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104159219A (en) * | 2014-08-04 | 2014-11-19 | 深圳市晶讯软件通讯技术有限公司 | WiFi terminals and method and system for quick access of WiFi terminals to WiFi AP |
CN104301884A (en) * | 2014-10-29 | 2015-01-21 | 浙江宇视科技有限公司 | Method for configuring IP cameras to have access to wireless router |
CN104581647A (en) * | 2015-01-30 | 2015-04-29 | 青岛海尔智能家电科技有限公司 | Network access method and device of intelligent equipment |
CN104618988A (en) * | 2015-01-21 | 2015-05-13 | 青岛海尔智能家电科技有限公司 | Smart device network access method and device |
CN104618900A (en) * | 2015-02-02 | 2015-05-13 | 青岛海尔智能家电科技有限公司 | Network access method for intelligent device, intelligent device and mobile terminal |
-
2016
- 2016-03-29 CN CN201610184923.6A patent/CN105873052B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104159219A (en) * | 2014-08-04 | 2014-11-19 | 深圳市晶讯软件通讯技术有限公司 | WiFi terminals and method and system for quick access of WiFi terminals to WiFi AP |
CN104301884A (en) * | 2014-10-29 | 2015-01-21 | 浙江宇视科技有限公司 | Method for configuring IP cameras to have access to wireless router |
CN104618988A (en) * | 2015-01-21 | 2015-05-13 | 青岛海尔智能家电科技有限公司 | Smart device network access method and device |
CN104581647A (en) * | 2015-01-30 | 2015-04-29 | 青岛海尔智能家电科技有限公司 | Network access method and device of intelligent equipment |
CN104618900A (en) * | 2015-02-02 | 2015-05-13 | 青岛海尔智能家电科技有限公司 | Network access method for intelligent device, intelligent device and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105873052A (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105873052B (en) | A kind of method and device that wifi equipment networks | |
CN104618988B (en) | Smart machine method for network access and device | |
CN103108311B (en) | A kind of MTC device and the method, apparatus and system of UICC bindings | |
CN104902443B (en) | A kind of method and apparatus of communication | |
CN106413033B (en) | method and device for configuring new device to access network by using on-network device | |
CN105491600A (en) | Network access method, device and related equipment for household appliances | |
CN106686593A (en) | WIFI-module-based network-access configuration method and apparatus for smart devices | |
CN106060809A (en) | Method for rapidly access wireless network, wireless route device and smart device | |
CN106535288A (en) | Method for sending and obtaining wifi networking information and corresponding apparatus | |
CN104581647A (en) | Network access method and device of intelligent equipment | |
CN105744596B (en) | WiFi equipment network access method and device | |
CN105050087A (en) | Method and system for accessing multi-protocol compatible equipment to WiFi (Wireless Fidelity) network | |
CN106856609A (en) | A kind of network collocating method and device | |
CN110913006B (en) | Remote diagnosis method and system | |
CN105898831A (en) | Method and apparatus for smart device accessing wifi and smart device | |
CN105120507A (en) | Data packet monitoring method and system | |
CN101399717B (en) | Multicast IP packet sending control method and device in access network | |
CN105245695B (en) | A kind of method and system improving wechat AirKiss compatibility | |
CN108601093B (en) | Wireless communication method and system | |
CN113068181B (en) | Multi-type intelligent terminal safety network access method | |
CN106571986A (en) | Household electrical appliance distribution network method and system, household electrical appliance and router | |
KR102006838B1 (en) | Service assignment method and device | |
Ricciato et al. | On the impact of unwanted traffic onto a 3G network | |
CN101808430A (en) | Method and device of cross-domain service strategy interaction for fixed mobile convergence network | |
CN103813409A (en) | Policy control method, apparatus, and system of fixed network mobile convergence |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |