CN109819498A - A kind of smart machine, the automatic distribution method and system of smart machine - Google Patents
A kind of smart machine, the automatic distribution method and system of smart machine Download PDFInfo
- Publication number
- CN109819498A CN109819498A CN201910065357.0A CN201910065357A CN109819498A CN 109819498 A CN109819498 A CN 109819498A CN 201910065357 A CN201910065357 A CN 201910065357A CN 109819498 A CN109819498 A CN 109819498A
- Authority
- CN
- China
- Prior art keywords
- router
- connection
- connecting quantity
- smart machine
- preset
- 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.)
- Pending
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of smart machines, the automatic distribution method and system of smart machine, the described method includes: in cyclic switching smart machine wireless WiFi module multiple channels, scanning obtain preset range at least one wireless access points AP and each AP bootstrap information;The bootstrap information is analyzed, if judging includes designated identification in the bootstrap information of any AP, the first connection is established based on preset first Connecting quantity and the router for mapping the AP;The second Connecting quantity of the router is obtained, described first is disconnected and connects and the second connection is established based on second Connecting quantity and the router., can be in the case where not passing through the interactive interface of terminal device by smart machine success distribution based on method provided by the invention, can not only promote distribution success rate can also reduce the distribution time, and then promote user experience.
Description
Technical field
The present invention relates to internet of things field, match network method automatically more particularly to a kind of smart machine, smart machine
And system.
Background technique
With the continuous development of technology of Internet of things, various Internet of Things smart machines are also more and more, especially in household electric
In device technical field, such as TV, air-conditioning, speaker equipment are provided with network connecting function, and then carry out information based on network
It sends and receives.
Currently, when carrying out distribution to Internet of Things smart machine, mostly using mobile terminal as intermediate equipment, first by the company of router
Title and Password Input mobile terminal are connect, then smart machine is sent it to by mobile terminal, but uses the above method not
It is only complicated for operation, and error is easy in route-map input process, lead to problems such as distribution success rate low.
Summary of the invention
The present invention provides a kind of smart machine, the automatic distribution method and system of smart machine with overcome the above problem or
It at least is partially solved the above problem.
According to an aspect of the invention, there is provided a kind of smart machine matches network method automatically, it is wireless applied to being provided with
The smart machine of WiFi module, which comprises
Multiple channels of wireless WiFi module in cyclic switching smart machine, scanning obtain at least one in preset range
The bootstrap information of wireless access points AP and each AP;
The bootstrap information is analyzed, if judging includes designated identification in the bootstrap information of any AP, based on pre-
The router of the first Connecting quantity and the mapping AP that first set establishes the first connection;
Obtain the second Connecting quantity of the router, disconnect described first connect and based on second Connecting quantity with
The router establishes the second connection.
Optionally, described that the bootstrap information is analyzed, if judging includes specified mark in the bootstrap information of any AP
Know, then the router based on preset first Connecting quantity and the mapping AP is established after the first connection, further includes:
Judge that the smart machine is connect with the first of the router whether to be successfully established;
Second Connecting quantity for obtaining the router disconnects described first and connects and based on the second connection ginseng
It is several to establish the second connection with the router, comprising:
If judging that the smart machine is connect with the first of the router to be successfully established, creation and the router
UDP communication;
The second Connecting quantity of the router is obtained based on UDP communication;
Described first is disconnected to connect and establish the second connection based on second Connecting quantity and the router.
Optionally, second Connecting quantity that the router is obtained based on UDP communication, comprising:
It is point-to-point logical to establish udp protocol with the router for the IP address that the router is obtained by Find data packet
News;
The second Connecting quantity of the router is obtained based on the udp protocol point-to- point communication.
Optionally, it is described judge that the smart machine connect with the first of the router and whether is successfully established after, also
Include:
If judging that the smart machine is connect with the first of the router and establishing unsuccessful, it is automatically based upon described first
Connecting quantity establishes the first connection with the router again.
Optionally, in the cyclic switching smart machine wireless WiFi module multiple channels, scanning obtain preset range
Before the bootstrap information of interior at least one wireless access points AP and each AP, further includes:
By router mappings the first AP and the 2nd AP, and emit the beacon for carrying designated identification based on the first AP
Data;Wherein, the first Connecting quantity of the first AP is preset preset parameter.
Optionally, the router based on preset first Connecting quantity and the mapping AP establishes the first company
It connects, comprising:
The first AP that the router mappings are connected based on preset first Connecting quantity is established with the router
First connection.
Optionally, second Connecting quantity for obtaining the router disconnects described first and connects and based on described the
Two Connecting quantities and the SSID establish the second connection, comprising:
The second Connecting quantity of the router is obtained, described first is disconnected and connects and connected based on second Connecting quantity
The 2nd AP for connecing the router mappings establishes the second connection with the router.
According to another aspect of the present invention, a kind of smart machine is additionally provided, wireless WiFi module, the nothing are provided with
Line WiFi module includes:
Scanning element, is configured to multiple channels of wireless WiFi module described in cyclic switching, and scanning obtains in preset range
At least one wireless access points AP and each AP bootstrap information;
First connection unit is configured to analyze the bootstrap information, wrap when in the bootstrap information for judging any AP
When including designated identification, the first connection is established based on preset first Connecting quantity and the router for mapping the AP;
Second connection unit is configured to obtain the second Connecting quantity of the router, disconnects first connection and base
The second connection is established in second Connecting quantity and the router.
Optionally, the wireless WiFi module further include:
Judging unit is configured to judge that the smart machine is connect with the first of the router whether be successfully established;
Second connection unit is additionally configured to judge that the smart machine connect foundation with the first of the router
When success, creation and the UDP of the router are communicated;
The second Connecting quantity of the router is obtained based on UDP communication;
Described first is disconnected to connect and establish the second connection based on second Connecting quantity and the router.
Optionally, second connection unit is additionally configured to:
It is point-to-point logical to establish udp protocol with the router for the IP address that the router is obtained by Find data packet
News;
The second Connecting quantity of the router is obtained based on the udp protocol point-to- point communication.
Optionally, the wireless WiFi module further include:
Reconnection unit, be configured to when judge the smart machine connect with the first of the router establish unsuccessful when,
It is automatically based upon first Connecting quantity and establishes the first connection with the router again.
Optionally, first connection unit is additionally configured to:
The first AP that the router mappings are connected based on preset first Connecting quantity is established with the router
First connection.
Optionally, wherein second connection unit is additionally configured to:
The second Connecting quantity of the router is obtained, described first is disconnected and connects and connected based on second Connecting quantity
The 2nd AP for connecing the router mappings establishes the second connection with the router.
According to another aspect of the present invention, a kind of automatic distribution network systems of smart machine are additionally provided, comprising:
Router is configured to map multiple wireless access points AP;And
The described in any item smart machines of claim 8-13 are configured to establish connection with the router.
Optionally, the router is additionally configured to: being mapped the first AP and the 2nd AP respectively, and is emitted based on the first AP
Carry the bootstrap information of designated identification;Wherein, the first Connecting quantity of the first AP is preset preset parameter.
The present invention provides a kind of faster, more stable smart machine, the automatic distribution method and system of smart machine,
It is provided with wireless WiFi module in method provided by the invention, in smart machine, when smart machine needs distribution, starts the cycle over
Switch multiple channels, scanning obtains the network in preset range, i.e. wireless access points AP and corresponding bootstrap information, such as
Fruit scanning is then based on preset first Connecting quantity and maps the AP to the bootstrap information of any AP with designated identification
Router establish the first connection, the first connection continues to be communicated with router after being successfully established connect ginseng with acquisition second
Number, and then disconnect the first connection and establish the second connection with router, complete distribution.It, can be with based on method provided by the invention
In the case where the interference of no terminal device, not by the interactive interface of terminal device by smart machine success distribution, to mention
The distribution time is reduced while rising distribution success rate, and then promotes user experience.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter
The above and other objects, advantages and features of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the automatic distribution method flow schematic diagram of smart machine according to an embodiment of the present invention;
Fig. 2 is the automatic distribution method flow schematic diagram of smart machine according to the preferred embodiment of the invention;
Fig. 3 is smart machine structural schematic diagram according to an embodiment of the present invention;
Fig. 4 is smart machine structural schematic diagram according to the preferred embodiment of the invention;
Fig. 5 is the automatic distribution network systems structural schematic diagram of smart machine according to an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Fig. 1 shows the automatic distribution method flow schematic diagram of smart machine according to an embodiment of the present invention, can referring to Fig. 1
Know, smart machine provided in an embodiment of the present invention may include: with network method automatically
Step S101, multiple channels of wireless WiFi module, scanning obtain in preset range in cyclic switching smart machine
At least one wireless access points AP and each AP bootstrap information;
Step S102 analyzes above-mentioned bootstrap information, if judging includes designated identification in the bootstrap information of any AP,
The first connection is then established with the router for mapping the AP based on preset first Connecting quantity;
Step S103 obtains the second Connecting quantity of router, disconnects first and connects and be based on the second Connecting quantity and road
Second connection is established by device.
The embodiment of the invention provides a kind of faster, more stable smart machines to match network method automatically, of the invention real
It applies in example, wireless WiFi module is provided in smart machine, when smart machine needs distribution, start the cycle over the multiple letters of switching
Road, scanning obtain the network in preset range, i.e. wireless access points AP and corresponding bootstrap information, if band is arrived in scanning
There is the bootstrap information of any AP of designated identification, is then built based on preset first Connecting quantity with the router for mapping the AP
Vertical first connection, the first connection continue to be communicated with router to obtain the second Connecting quantity after being successfully established, and then disconnected
It opens the first connection and establishes the second connection with router, complete distribution.Method based on the embodiment of the present invention can not have
In the case where having terminal device interference, not by the interactive interface of terminal device by smart machine success distribution, to match in promotion
The distribution time is reduced while net success rate, and then promotes user experience.
Distribution, the process being exactly added to smart machine in the local area network based on router creation.To smart machine into
When row distribution, need to carry out distribution under existing network environment.It therefore, need to be first based on routing before smart machine distribution
Device maps wireless access points AP, as long as smart machine is successfully connected the AP of router mappings, couple in router creation
In local area network.It can also include: and to be based on by router mappings the first AP and the 2nd AP that is, before above-mentioned steps S101
First AP sends the bootstrap information for carrying designated identification;Wherein, the first Connecting quantity of the first AP is preset fixation
Parameter.The second Connecting quantity of 2nd AP is variable element, and the 2nd AP is that can really provide the AP of network service.Also, the
One Connecting quantity and the second Connecting quantity can be the information such as the SSID service set of corresponding A P and password password ginseng
Number.In addition, whether the embodiment of the present invention is when judging bootstrap information includes designated identification, it can be determined that the finger of the bootstrap information of AP
Determine whether field includes designated character string, such as whether the expansible field of beacon bootstrap information includes certain specific words
Symbol string currently can also be judged that the present invention is without limitation using other modes in practical application.
The WiFi networks equipment either 802.11b/g or 802.11b/g/n of mainstream generally supports 13 at present
Therefore a channel in above-mentioned steps S101, can be swept with the 1-13 channel of WiFi module wireless in cyclic switching smart machine
Retouch the AP information obtained in preset range.The preset range can be set based on different scenes, such as apart from smart machine
5m, 10m etc..
In embodiments of the present invention, smart machine needs the router that connects that can map two AP, one be user without
The hiding AP (i.e. the first AP) of automatic mapping in the case where perception, which can not check and can not also modify, and reach nothing
Perception exists;The other is can provide the explicit AP (i.e. the 2nd AP) of normal connection service.Wherein, hide AP SSID and
The fixed value that password has been due up.It, can be by the way that the application journey for distribution be arranged in the router in practical application
Sequence, on the router electricity after can automatic running, can be used for being connected to router hide AP after smart machine communication, simultaneously will
The Connecting quantity of explicit AP is transmitted to smart machine.
Above-mentioned steps S102 may further include when establishing the first connection with router: connect based on preset first
The first AP for connecing parameter connection router mappings, establishes the first connection with router.Above-mentioned steps S103 and router establish the
It when two connections, may further include: obtaining the second Connecting quantity of router, disconnect first and connect and based on the second connection ginseng
2nd AP of number connection router mappings, establishes the second connection with router.
In general, there may be multiple routers in smart machine local environment, and need to realize the reality connected automatically
Border is some router.Therefore, in embodiments of the present invention, after smart machine is powered on into net state, start from 1-
Network around 13 scan channels, if smart machine is in router network coverage area, it will scanning is to specified mark
Know the AP of beacon beacon, thus have the presence that the intelligent router connected automatically can be achieved around confirming, it can be based on intelligence
Preset first Connecting quantity (SSID and the connection as being somebody's turn to do the first AP including designated identification beacon stored in equipment
Password password etc.), start the hiding AP of connection default (this, which hides AP, has fixed SSID and password).
Above-mentioned steps S102 is referred to, first can establish the first connection based on the first Connecting quantity and router, optionally, herein
Later, it can also judge whether the first connection of smart machine and router is successfully established, if it succeeds, further obtaining the
Two Connecting quantities, which are established, establishes the second connection with router.Even judge that the first connection of smart machine and router is created as
Function is then created and is communicated with the UDP of router;The second Connecting quantity for obtaining router is communicated based on UDP;Disconnect the first connection simultaneously
The second connection is established based on the second Connecting quantity and router.It, can after the hiding AP of successful connection router in the present embodiment
To exchange the password of explicit AP with router communication udp socket.If obtained successfully, disconnects and hide AP, connection is just
The explicit AP of network service, the success of distribution at this time are often provided.If judge the first connection of smart machine and router can not establish
Function can then be automatically based upon the first Connecting quantity and establish the first connection with router again, until first connection be successfully established for
Only.
UDP is the abbreviation of User Datagram Protocol, and Chinese name is User Datagram Protocol.In a network it with
Transmission Control Protocol is equally used to handle data packet, is a kind of connectionless agreement.When smart machine and router establish UDP communication,
The IP address that router can be obtained by Find data packet, establishes udp protocol point-to- point communication with router;Based on udp protocol
Second Connecting quantity of point-to- point communication acquisition router.If smart machine first sends UDP message packet to router, receive simultaneously
The reply data that router is returned based on the UDP message packet, and then the reply data is parsed, obtain the 2nd AP of router
The SSID and password of (the explicit AP of network service is normally provided).
Optionally, the present embodiment is after the SSID and password for getting the 2nd AP, and no hurry builds with router
Vertical second connection.Above-mentioned steps S102 is referred to, can be analyzed the bootstrap information got, if judging the beacon of any AP
In data include designated identification, then the first connection can be established with router, optionally, with router establish the first connection it
Before, it can also first save the SSID for carrying the corresponding router of bootstrap information of designated identification.Getting the 2nd AP's
It after SSID and password, can be first compared with the SSID stored before, if the two is consistent, represent and compare successfully,
The 2nd AP of password connection got can be used at this time;If the two is inconsistent, failure is compared, is continued at this time logical based on UDP
News continue to obtain the Connecting quantity SSID and password of the 2nd AP of router.
Fig. 2 shows the automatic distribution method flow schematic diagrams of smart machine according to the preferred embodiment of the invention, referring to fig. 2
It is found that the smart machine of the preferred embodiment of the present invention may include: with network method automatically
Step S201, intelligent router map 2 AP, one be user's normal use explicit AP;The other is with
The hiding AP of automatic mapping in the case where the unaware of family, user can not check and can not also modify.Hide AP SSID and
The fixed value that password has been due up is connected for smart machine;
Step S202, at intelligent router end, setting is used for the application APP of distribution, for being connected to intelligent router
The communication of smart machine after hiding AP, and the password of explicit AP is sent to smart machine;Wherein, it is set to intelligence
APP in router powers on self-starting, without other operations;
Step S203, the APP in intelligent router open UDP server and monitor, and the access of smart machine are waited, with intelligence
Energy equipment passes through APP and carries out socekt server communication;
Step S204, the smart machine for being provided with wireless WiFi module switch scan round in 1-13 channel, obtain default
The beacon information of each AP in range, the beacon information analysis to each AP, judges whether there is the beacon including designated identification,
Whether there is intelligent router around confirmation;
Step S205 judges the beacon existed include to designated identification, then can be confirmed around there is intelligent router,
At this point, saving the SSID of the intelligent router, it is used for subsequent routing attended operation, then using preset hiding AP's
Fixed password goes to be connected to preset fixed SSID;
Step S206 judges whether to connect router success;Not connected success then returns to step S205, and weighs automatically
Even;
Step S207, after successful connection, the APP for creating UDP client and intelligent router is communicated, and should guarantee to lead to
The stability of news will also guarantee safety;
Step S208 has found the IP address of router, password information by Find packet;Intelligence is judged based on udp protocol
Whether the SSID that the SSID and step S205 in the response message of energy router is stored is consistent, if unanimously thening follow the steps S209;
If inconsistent, the response message that intelligent router is monitored in repetition is returned;
After step S209, the password for getting normal AP, need to disconnect the hiding AP being currently connected to;Pass through step
Rapid S205 gets the SSID information of AP, and the password that step S212 is got is connected to the normal explicit AP of router;
After successful connection, distribution success is indicated, smart machine informs intelligent server and executes bindings.
Based on the same inventive concept, the embodiment of the invention also provides a kind of smart machines, are provided with wireless WiFi module.
Fig. 3 is 300 structural schematic diagram of smart machine according to an embodiment of the present invention, referring to Fig. 3 it is found that intelligence provided in an embodiment of the present invention
Energy equipment 300 may include wireless WiFi module 310, wherein wirelessly WiFi module 310 may include:
Scanning element 311, is configured to multiple channels of the wireless WiFi module 310 of cyclic switching, and scanning obtains preset range
The bootstrap information of interior at least one wireless access points AP and each AP;
First connection unit 312 is configured to analyze above-mentioned bootstrap information, when in the bootstrap information for judging any AP
When including designated identification, the first connection is established based on preset first Connecting quantity and the router for mapping the AP;
Second connection unit 313 is configured to obtain the second Connecting quantity of router, disconnects first and connects and be based on second
Connecting quantity and router establish the second connection.
In an alternate embodiment of the present invention, as shown in figure 4, wireless WiFi module 310 can also include:
Judging unit 314 is configured to judge that smart machine 320 is connect with the first of router whether be successfully established;
Second connection unit 313, being additionally configured to, which ought judge that smart machine 320 is connect with the first of router, is successfully established
When, creation and the UDP of router are communicated;The second Connecting quantity for obtaining router is communicated based on UDP;Disconnect the first connection and base
The second connection is established in the second Connecting quantity and router.
In an alternate embodiment of the present invention, the second connection unit 313 is also configured as:
The IP address that router is obtained by Find data packet, establishes udp protocol point-to- point communication with router;
The second Connecting quantity of router is obtained based on udp protocol point-to- point communication.
In an alternate embodiment of the present invention, as shown in figure 4, wireless WiFi module 310 can also include:
Reconnection unit 315, be configured to when judge smart machine 320 connect with the first of router establish unsuccessful when, from
It is dynamic that first connection is established with router based on the first Connecting quantity again.
In an alternate embodiment of the present invention, the first connection unit 312 is also configured as:
Based on the first AP of preset first Connecting quantity connection router mappings, the first company is established with router
It connects.
In an alternate embodiment of the present invention, the second connection unit 313 is also configured as:
The second Connecting quantity of router is obtained, first is disconnected and connects and router mappings are connected based on the second Connecting quantity
The 2nd AP, establish the second connection with router.
Based on the same inventive concept, the embodiment of the invention also provides a kind of automatic distribution network systems of smart machine, such as Fig. 5 institute
Show, the automatic distribution network systems of smart machine provided in an embodiment of the present invention may include:
Router 510 is configured to map multiple wireless access points AP;
Smart machine 300 described in any of the above-described embodiment is configured to establish wireless connection with router.
In an alternate embodiment of the present invention, router 510 is also configured as: the first AP and the 2nd AP is mapped respectively,
And the bootstrap information of designated identification is carried based on the first AP transmitting;Wherein, the first Connecting quantity of the first AP is to preset
Preset parameter
The embodiment of the invention provides a kind of faster, more stable smart machine, smart machine match automatically network method and
System is provided with wireless WiFi module in embodiments of the present invention, in smart machine, when smart machine needs distribution, starts
The multiple channels of cyclic switching, scanning obtain the network in preset range, i.e. wireless access points AP and corresponding beacon number
According to if scanning is based on preset first Connecting quantity and reflects to the bootstrap information of any AP with designated identification
The router for penetrating the AP establishes the first connection, and the first connection continues to be communicated with router to obtain second after being successfully established
Connecting quantity, and then disconnect the first connection and establish the second connection with router, complete distribution.It is provided based on the embodiment of the present invention
Method first can establish connection with the hiding AP of router, then getting after detecting the router that can be connected automatically
It is connect after the Connecting quantity of the explicit AP of router with the explicit AP.Scheme provided in an embodiment of the present invention does not have terminal device
Interference, can be in the case where not passing through the interactive interface of terminal device to smart machine success distribution, and then is promoting distribution
The distribution time is reduced while success rate, promotes user experience.
It is apparent to those skilled in the art that the specific work of the system of foregoing description, device and unit
Make process, can refer to corresponding processes in the foregoing method embodiment, for brevity, does not repeat separately herein.
In addition, each functional unit in each embodiment of the present invention can be physically independent, can also two or
More than two functional units integrate, and can be all integrated in a processing unit with all functional units.It is above-mentioned integrated
Functional unit both can take the form of hardware realization, can also be realized in the form of software or firmware.
Those of ordinary skill in the art will appreciate that: if the integrated functional unit is realized and is made in the form of software
It is independent product when selling or using, can store in a computer readable storage medium.Based on this understanding,
Technical solution of the present invention is substantially or all or part of the technical solution can be embodied in the form of software products,
The computer software product is stored in a storage medium comprising some instructions, with so that calculating equipment (such as
Personal computer, server or network equipment etc.) various embodiments of the present invention the method is executed when running described instruction
All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM), random access memory
Device (RAM), the various media that can store program code such as magnetic or disk.
Alternatively, realizing that all or part of the steps of preceding method embodiment can be (all by the relevant hardware of program instruction
Such as personal computer, the calculating equipment of server or network equipment etc.) it completes, described program instruction can store in one
In computer-readable storage medium, when described program instruction is executed by the processor of calculating equipment, the calculating equipment is held
The all or part of the steps of row various embodiments of the present invention the method.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that: at this
Within the spirit and principle of invention, it is still possible to modify the technical solutions described in the foregoing embodiments or right
Some or all of the technical features are equivalently replaced;And these are modified or replaceed, and do not make corresponding technical solution de-
From protection scope of the present invention.
Claims (15)
1. a kind of smart machine matches network method automatically, applied to the smart machine for being provided with wireless WiFi module, the method packet
It includes:
It is wireless to scan at least one obtained in preset range for multiple channels of wireless WiFi module in cyclic switching smart machine
The bootstrap information of access points AP and each AP;
The bootstrap information is analyzed, if judging includes designated identification in the bootstrap information of any AP, is based on setting in advance
The router of fixed the first Connecting quantity and the mapping AP establishes the first connection;
Obtain the second Connecting quantity of the router, disconnect described first connect and based on second Connecting quantity with it is described
Router establishes the second connection.
2. it is described that the bootstrap information is analyzed according to the method described in claim 1, wherein, if judging any AP's
Include designated identification in bootstrap information, then based on preset first Connecting quantity and maps the router of the AP and establish the
After one connection, further includes:
Judge that the smart machine is connect with the first of the router whether to be successfully established;
Second Connecting quantity for obtaining the router, disconnect described first connect and based on second Connecting quantity with
The router establishes the second connection, comprising:
If judging that the smart machine is connect with the first of the router to be successfully established, the UDP of creation and the router
Communication;
The second Connecting quantity of the router is obtained based on UDP communication;
Described first is disconnected to connect and establish the second connection based on second Connecting quantity and the router.
3. according to the method described in claim 2, wherein, second based on the UDP communication acquisition router connects
Connect parameter, comprising:
The IP address that the router is obtained by Find data packet establishes udp protocol point-to- point communication with the router;
The second Connecting quantity of the router is obtained based on the udp protocol point-to- point communication.
4. according to the method described in claim 2, wherein, the judgement smart machine is connect with the first of the router
After whether being successfully established, further includes:
If judge the smart machine connect with the first of the router establish it is unsuccessful, be automatically based upon it is described first connection
Parameter establishes the first connection with the router again.
5. method according to claim 1-4, wherein wireless WiFi module in the cyclic switching smart machine
Multiple channels, scanning obtain preset range at least one wireless access points AP and each AP bootstrap information it
Before, further includes:
By router mappings the first AP and the 2nd AP, and emit the beacon number for carrying designated identification based on the first AP
According to;Wherein, the first Connecting quantity of the first AP is preset preset parameter.
It is described based on preset first Connecting quantity and to map the AP 6. according to the method described in claim 5, wherein
Router establish the first connection, comprising:
The first AP that the router mappings are connected based on preset first Connecting quantity establishes first with the router
Connection.
7. according to the method described in claim 5, wherein, second Connecting quantity for obtaining the router, described in disconnection
First connects and establishes the second connection based on second Connecting quantity and the SSID, comprising:
The second Connecting quantity of the router is obtained, described first is disconnected and connects and institute is connected based on second Connecting quantity
The 2nd AP for stating router mappings establishes the second connection with the router.
8. a kind of smart machine, is provided with wireless WiFi module, the wireless WiFi module includes:
Scanning element, is configured to multiple channels of wireless WiFi module described in cyclic switching, and scanning obtains in preset range extremely
The bootstrap information of a few wireless access points AP and each AP;
First connection unit is configured to analyze the bootstrap information, when in the bootstrap information for judging any AP include refer to
When calibration is known, the first connection is established based on preset first Connecting quantity and the router for mapping the AP;
Second connection unit is configured to obtain the second Connecting quantity of the router, disconnects described first and connects and be based on institute
It states the second Connecting quantity and the router establishes the second connection.
9. smart machine according to claim 8, wherein the wireless WiFi module further include:
Judging unit is configured to judge that the smart machine is connect with the first of the router whether be successfully established;
Second connection unit, being additionally configured to, which ought judge that the smart machine is connect with the first of the router, is successfully established
When, creation and the UDP of the router are communicated;
The second Connecting quantity of the router is obtained based on UDP communication;
Described first is disconnected to connect and establish the second connection based on second Connecting quantity and the router.
10. smart machine according to claim 9, wherein second connection unit is additionally configured to:
The IP address that the router is obtained by Find data packet establishes udp protocol point-to- point communication with the router;
The second Connecting quantity of the router is obtained based on the udp protocol point-to- point communication.
11. smart machine according to claim 9, wherein the wireless WiFi module further include:
Reconnection unit, be configured to when judge the smart machine connect with the first of the router establish unsuccessful when, automatically
The first connection is established with the router again based on first Connecting quantity.
12. according to the described in any item smart machines of claim 8-11, wherein first connection unit is additionally configured to:
The first AP that the router mappings are connected based on preset first Connecting quantity establishes first with the router
Connection.
13. according to the described in any item smart machines of claim 8-11, wherein second connection unit is additionally configured to:
The second Connecting quantity of the router is obtained, described first is disconnected and connects and institute is connected based on second Connecting quantity
The 2nd AP for stating router mappings establishes the second connection with the router.
14. a kind of automatic distribution network systems of smart machine, comprising:
Router is configured to map multiple wireless access points AP;And
The described in any item smart machines of claim 8-13 are configured to establish connection with the router.
15. system according to claim 14, wherein the router is additionally configured to:
The first AP and the 2nd AP is mapped respectively, and the bootstrap information of designated identification is carried based on the first AP transmitting;Wherein,
The first Connecting quantity of first AP is preset preset parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910065357.0A CN109819498A (en) | 2019-01-23 | 2019-01-23 | A kind of smart machine, the automatic distribution method and system of smart machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910065357.0A CN109819498A (en) | 2019-01-23 | 2019-01-23 | A kind of smart machine, the automatic distribution method and system of smart machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109819498A true CN109819498A (en) | 2019-05-28 |
Family
ID=66604928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910065357.0A Pending CN109819498A (en) | 2019-01-23 | 2019-01-23 | A kind of smart machine, the automatic distribution method and system of smart machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109819498A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110351812A (en) * | 2019-06-24 | 2019-10-18 | 惠州Tcl移动通信有限公司 | WIFI searches for network Poewr control method, mobile terminal and storage medium |
CN110855677A (en) * | 2019-11-15 | 2020-02-28 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN110891299A (en) * | 2019-11-15 | 2020-03-17 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN110912880A (en) * | 2019-11-15 | 2020-03-24 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN110995665A (en) * | 2019-11-15 | 2020-04-10 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN112867171A (en) * | 2021-03-17 | 2021-05-28 | 惠州Tcl移动通信有限公司 | WIFI connection method and device, storage medium and mobile terminal |
CN113709846A (en) * | 2020-10-27 | 2021-11-26 | 天翼智慧家庭科技有限公司 | Method and apparatus for automatically triggering a sensorless network of user equipment |
CN114466375A (en) * | 2020-11-09 | 2022-05-10 | 深圳Tcl新技术有限公司 | WiFi device network distribution method and system, WiFi device and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104038547A (en) * | 2014-06-17 | 2014-09-10 | 中国人民解放军国防科学技术大学 | Method for effectively resolving multi-Sybil node penetration conflict in P2P network |
CN104812093A (en) * | 2015-03-25 | 2015-07-29 | 青岛海尔智能家电科技有限公司 | Network access method and device of WIFI equipment of intelligent household |
CN106488532A (en) * | 2016-09-14 | 2017-03-08 | 珠海格力电器股份有限公司 | A kind of automatic distribution method, device and equipment, repeater |
CN106506296A (en) * | 2016-11-17 | 2017-03-15 | 腾讯科技(深圳)有限公司 | A kind of control method of smart machine and control system |
CN107371163A (en) * | 2017-07-28 | 2017-11-21 | 歌尔股份有限公司 | A kind of method and apparatus for controlling access wireless network |
CN107404468A (en) * | 2016-05-20 | 2017-11-28 | 美的集团股份有限公司 | The control method and device that internet of things equipment based on visible light communication networks |
CN107635268A (en) * | 2016-07-19 | 2018-01-26 | 美的智慧家居科技有限公司 | Realize the methods, devices and systems that internet of things equipment networks |
CN107659472A (en) * | 2017-09-19 | 2018-02-02 | 广东美的制冷设备有限公司 | Anti-error distribution method and apparatus based on access focus distribution |
CN108206834A (en) * | 2018-04-04 | 2018-06-26 | 深圳怡化电脑股份有限公司 | Processing method, the device and system of center service request |
-
2019
- 2019-01-23 CN CN201910065357.0A patent/CN109819498A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104038547A (en) * | 2014-06-17 | 2014-09-10 | 中国人民解放军国防科学技术大学 | Method for effectively resolving multi-Sybil node penetration conflict in P2P network |
CN104812093A (en) * | 2015-03-25 | 2015-07-29 | 青岛海尔智能家电科技有限公司 | Network access method and device of WIFI equipment of intelligent household |
CN107404468A (en) * | 2016-05-20 | 2017-11-28 | 美的集团股份有限公司 | The control method and device that internet of things equipment based on visible light communication networks |
CN107635268A (en) * | 2016-07-19 | 2018-01-26 | 美的智慧家居科技有限公司 | Realize the methods, devices and systems that internet of things equipment networks |
CN106488532A (en) * | 2016-09-14 | 2017-03-08 | 珠海格力电器股份有限公司 | A kind of automatic distribution method, device and equipment, repeater |
CN106506296A (en) * | 2016-11-17 | 2017-03-15 | 腾讯科技(深圳)有限公司 | A kind of control method of smart machine and control system |
CN107371163A (en) * | 2017-07-28 | 2017-11-21 | 歌尔股份有限公司 | A kind of method and apparatus for controlling access wireless network |
CN107659472A (en) * | 2017-09-19 | 2018-02-02 | 广东美的制冷设备有限公司 | Anti-error distribution method and apparatus based on access focus distribution |
CN108206834A (en) * | 2018-04-04 | 2018-06-26 | 深圳怡化电脑股份有限公司 | Processing method, the device and system of center service request |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110351812A (en) * | 2019-06-24 | 2019-10-18 | 惠州Tcl移动通信有限公司 | WIFI searches for network Poewr control method, mobile terminal and storage medium |
CN110351812B (en) * | 2019-06-24 | 2021-10-22 | 惠州Tcl移动通信有限公司 | WIFI search network power control method, mobile terminal and storage medium |
CN110912880A (en) * | 2019-11-15 | 2020-03-24 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN110891299A (en) * | 2019-11-15 | 2020-03-17 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN110995665A (en) * | 2019-11-15 | 2020-04-10 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN110855677A (en) * | 2019-11-15 | 2020-02-28 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN110912880B (en) * | 2019-11-15 | 2022-04-08 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
US11368453B2 (en) | 2019-11-15 | 2022-06-21 | Beijing Xiaomi Mobile Software Co., Ltd. | Network configuration method and device, electronic device and storage medium |
CN110995665B (en) * | 2019-11-15 | 2023-04-18 | 北京小米移动软件有限公司 | Network distribution method and device, electronic equipment and storage medium |
CN110855677B (en) * | 2019-11-15 | 2023-07-18 | 北京小米移动软件有限公司 | Distribution network method and device, electronic equipment and storage medium |
CN113709846A (en) * | 2020-10-27 | 2021-11-26 | 天翼智慧家庭科技有限公司 | Method and apparatus for automatically triggering a sensorless network of user equipment |
CN114466375A (en) * | 2020-11-09 | 2022-05-10 | 深圳Tcl新技术有限公司 | WiFi device network distribution method and system, WiFi device and storage medium |
CN114466375B (en) * | 2020-11-09 | 2024-01-19 | 深圳Tcl新技术有限公司 | WiFi equipment network distribution method and system, wiFi equipment and storage medium |
CN112867171A (en) * | 2021-03-17 | 2021-05-28 | 惠州Tcl移动通信有限公司 | WIFI connection method and device, storage medium and mobile terminal |
CN112867171B (en) * | 2021-03-17 | 2022-08-09 | 惠州Tcl移动通信有限公司 | WIFI connection method and device, storage medium and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109819498A (en) | A kind of smart machine, the automatic distribution method and system of smart machine | |
Triantafyllou et al. | Network protocols, schemes, and mechanisms for internet of things (iot): Features, open challenges, and trends | |
CN110830575B (en) | Data transmission method and control system of intelligent household equipment and intelligent gateway equipment | |
EP2030429B1 (en) | Network access point detection and use | |
CN102710777B (en) | Advertisement push-delivery method and system, as well as advertisement pusher | |
US11452156B2 (en) | Configuration system, client device, embedded device configuration method, and storage medium | |
CN111314864B (en) | Network distribution method, device and equipment | |
CN105306264A (en) | Network configuration and remote registration binding method and system for intelligent household appliance | |
CN110740490A (en) | Terminal network access method, gateway equipment, system, storage medium and device | |
CN108307479B (en) | Communication module, network distribution method and device thereof, storage medium, equipment and terminal | |
RU2607615C2 (en) | Methods and apparatus for obtaining service | |
US20190342738A1 (en) | Method and Device for Sharing File Between Different Terminals | |
CN105959188B (en) | Method and device for controlling user terminal to be on-line | |
CN106612530B (en) | Control method, device and system of networking equipment | |
CN104918298A (en) | Network connection control method and apparatus, and mobile terminal | |
CN104869621B (en) | A kind of Network Recognition method and apparatus | |
JP6573917B2 (en) | Discriminating method and corresponding terminal, computer program product, and storage medium | |
CN107645789A (en) | The method, apparatus and system of networking | |
CN108270745A (en) | A kind of method for pushing of service customizing information, terminal and master control bluetooth equipment | |
CN111901151A (en) | Method, device, equipment and medium for gateway equipment to manage IOT equipment | |
CN113596792B (en) | Binding method and device of electronic equipment, storage medium and electronic device | |
US9756608B1 (en) | Systems and methods for providing wireless unconnected communication between devices | |
CN107454659B (en) | Terminal identification method, system, terminal equipment and base station | |
US20170127472A1 (en) | Method and wireless device for controlling disconnection of a wireless device in a wi-fi direct group of a wireless network | |
CN105790944A (en) | Wechat-based network authentication method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |
|
RJ01 | Rejection of invention patent application after publication |