The content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
For this purpose, first purpose of the present invention be propose a kind of household electrical appliance with network method, judge in server
Household electrical appliance whether distribution success so that user can know household electrical appliance whether distribution success from server, facilitate use
The household electrical appliance of couple in router are known by server in family.
Second object of the present invention is a kind of household electrical appliance of proposition with network method.
Third object of the present invention is a kind of household electrical appliance of proposition with network method.
Fourth object of the present invention is to propose a kind of distribution network systems of household electrical appliance.
5th purpose of the present invention is to propose a kind of mobile terminal.
6th purpose of the present invention is to propose a kind of WIFI module of household electrical appliance.
7th purpose of the present invention is to propose a kind of household electrical appliance.
8th purpose of the present invention is a kind of household electrical appliance of proposition with network method.
9th purpose of the present invention is to propose a kind of mobile terminal.
For achieving the above object, first aspect present invention embodiment propose a kind of household electrical appliance with network method, including
Following steps:Server receives the first random number that mobile terminal sends, wherein, first random number is by described mobile whole
The distribution instruction at end is sent to household electrical appliance;The server receives the second random number that household electrical appliance send;The server
Judge whether first random number is consistent with second random number;If consistent, the server judges distribution success;
If it is inconsistent, the server judges that distribution fails.
Household electrical appliance according to embodiments of the present invention with network method, it is first random that server receives that mobile terminal sends
Number, and the second random number of household electrical appliance transmission is received, and judge whether the first random number is consistent with the second random number, if the
One random number is consistent with the second random number, then server judges distribution success, determines distribution success, and when inconsistent, sentences
Disconnected distribution failure, thus, has judged household electrical appliance whether distribution success so that user can be known from server in server
Household electrical appliance whether distribution success, facilitates the household electrical appliance that user knows couple in router by server.
In one embodiment of the invention, after the server judges distribution failure, methods described also includes:
The server to the mobile terminal sends distribution failed message.
In one embodiment of the invention, methods described also includes:
The household electrical appliance fail second random number after second random number is sent.
In one embodiment of the invention, methods described also includes:
The household electrical appliance to the mobile terminal feeds back response, and first after the response is default
Second random number failure described in time control.
In one embodiment of the invention, methods described also includes:
If router is restarted or reconnected to the household electrical appliance, the second random number failure is controlled.
In one embodiment of the invention, methods described also includes:
After the second Preset Time, the first random number described in the server controls and second random number fail.
For achieving the above object, second aspect present invention embodiment propose a kind of household electrical appliance with network method, including
Following steps:Mobile terminal to household electrical appliance send distribution instruction, wherein, the distribution instruction includes random number;The movement
Terminal to server sends the random number, so that the server is judging the mobile terminal with the household electrical appliance
When the random number sent is consistent, the server judges distribution success, if the server judges the dynamic terminal and the family
The random number that electrical appliance sends is inconsistent, then the server judges that distribution fails.
Household electrical appliance according to embodiments of the present invention with network method, mobile terminal to household electrical appliance send random number, and
Random number is sent to server, so that server is after the random number that household electrical appliance and mobile terminal send is received, service
Device judges whether mobile terminal is consistent with the random number that household electrical appliance send, if unanimously, server judges distribution success, such as
Really inconsistent, then server judges that distribution fails.
In one embodiment of the invention, methods described also includes:
Receive the distribution failed message that the server is returned.
For achieving the above object, third aspect present invention embodiment propose a kind of household electrical appliance with network method, including
Following steps:Household electrical appliance receive the distribution instruction that the mobile terminal sends, wherein, the distribution instruction includes random number;
The household electrical appliance send the random number to server so that the server judge the mobile terminal with it is described
When the random number of household electrical appliance transmission is consistent, the server judges distribution success, if the server judges the dynamic end
Hold inconsistent with the random number that the household electrical appliance send, then the server judges that distribution fails.
Household electrical appliance according to embodiments of the present invention with network method, household electrical appliance are received mobile terminal and are instructed by distribution
The random number of transmission, and by random number upload server, so that server is receiving household electrical appliance and mobile terminal sends
After random number, server judges whether mobile terminal is consistent with the random number that household electrical appliance send, if unanimously, server is sentenced
Disconnected distribution success, if it is inconsistent, server judge distribution fail, as a result, server according to random number to household electric
The distribution result of device judged, has judged household electrical appliance whether distribution success in server, and then causes the user can be from clothes
Household electrical appliance whether distribution success is known in business device, the household electrical appliance that user knows couple in router by server are facilitated.
In one embodiment of the invention, after the random number is sent, by random number failure.
In one embodiment of the invention, methods described also includes:
The household electrical appliance to the mobile terminal feeds back response, and first after the response is default
Random number failure described in time control.
In one embodiment of the invention, methods described also includes:
If router is restarted or reconnected to the household electrical appliance, the random number failure is controlled.
For achieving the above object, fourth aspect present invention embodiment proposes a kind of distribution network systems of household electrical appliance, described
System includes server, household electrical appliance and mobile terminal, wherein:The server, for receiving what the mobile terminal sent
First random number, and receive the second random number that the household electrical appliance send, and judge first random number and described the
Whether two random numbers are consistent, if unanimously, judge distribution success, if it is inconsistent, judging that distribution fails;It is described mobile whole
End, for by the distribution of the mobile terminal instruction send to household electrical appliance, and to the server transmission described first with
Machine number, wherein, the distribution instruction includes first random number;The household electrical appliance, send out for receiving the mobile terminal
The distribution instruction sent, and the second random number sent to the household electrical appliance.
The distribution network systems of household electrical appliance according to embodiments of the present invention, the first of server reception mobile terminal transmission is random
Number, and the second random number of household electrical appliance transmission is received, and judge whether the first random number is consistent with the second random number, if the
One random number is consistent with the second random number, then server judges distribution success, determines distribution success, and when inconsistent, sentences
Disconnected distribution failure, thus, has judged household electrical appliance whether distribution success so that user can be known from server in server
Household electrical appliance whether distribution success, facilitates the household electrical appliance that user knows couple in router by server.
In one embodiment of the invention, after the server judges distribution failure, the server is also used
In:Distribution failed message is sent to the mobile terminal.
In one embodiment of the invention, the household electrical appliance, are additionally operable to:
After second random number is sent, by second random number failure.
In one embodiment of the invention, the household electrical appliance, are additionally operable to:
Response is fed back to the mobile terminal, and the first Preset Time control after the response is described
Second random number fails.
In one embodiment of the invention, the household electrical appliance, are additionally operable to:
If router is restarted or reconnected to the household electrical appliance, the second random number failure is controlled.
In one embodiment of the invention, the server, is additionally operable to:
After the second Preset Time, first random number and second random number failure are controlled.
For achieving the above object, fifth aspect present invention embodiment proposes a kind of mobile terminal, including:First sends mould
Block, for sending distribution instruction to household electrical appliance, wherein, the distribution instruction includes random number;Second sending module, for institute
State mobile terminal and send the random number to server, so that the server is judging the mobile terminal with the family expenses
Electrical equipment send random number it is consistent when, the server judges distribution success, if the server judge the dynamic terminal and
The random number that the household electrical appliance send is inconsistent, then the server judges that distribution fails.
Mobile terminal according to embodiments of the present invention, mobile terminal to household electrical appliance send random number, and random number is sent out
Server is delivered to, so that server is after the random number that household electrical appliance and mobile terminal send is received, server judges movement
Whether terminal is consistent with the random number that household electrical appliance send, if unanimously, server judges distribution success, if inconsistent,
Then server judges that distribution fails.
In one embodiment of the invention, also include:Receiver module, loses for receiving the distribution that the server is returned
Lose message.
For achieving the above object, sixth aspect present invention embodiment proposes a kind of WIFI module of household electrical appliance, including
Receiving submodule, for receiving the distribution instruction that the mobile terminal sends, wherein, the distribution instruction includes random number;Send out
Submodule is sent, for the random number to be sent to server, so that the server is judging the mobile terminal and institute
State household electrical appliance transmission random number it is consistent when, the server judges distribution success, if the server judge it is described move
The random number that terminal sends with the household electrical appliance is inconsistent, then the server judges that distribution fails.
The WIFI module of household electrical appliance according to embodiments of the present invention, mobile terminal is received by matching somebody with somebody by receiving submodule
The random number that net instruction sends, and random number is uploaded onto the server by sending submodule, so that server is got home in reception
After the random number that electrical appliance and mobile terminal send, server judges the random number of mobile terminal and household electrical appliance transmission whether
Cause, if unanimously, server judges distribution success, if it is inconsistent, server judges that distribution fails, as a result, clothes
Business device random number the distribution result of household electrical appliance is judged, improve domestic electric appliance discovery reliability.
In one embodiment of the invention, also include:
First processes submodule, for after the random number is sent, by random number failure.
In one embodiment of the invention, also include:
Second processing submodule, for feeding back response to the mobile terminal, and after the response
First Preset Time controls the random number failure.
In one embodiment of the invention, also include:
Control submodule, loses for when the household electrical appliance are restarted or reconnect router, controlling the random number
Effect.
For achieving the above object, seventh aspect present invention embodiment proposes a kind of household electrical appliance, including the present invention the 4th
The WIFI module of the household electrical appliance of aspect embodiment.
Household electrical appliance according to embodiments of the present invention, household electrical appliance receive mobile terminal and instruct the random of transmission by distribution
Number, and random number is uploaded onto the server by sending submodule, so that server is receiving household electrical appliance and mobile terminal
After the random number of transmission, server judges whether mobile terminal is consistent with the random number that household electrical appliance send, if unanimously, takes
Business device judges distribution success, if it is inconsistent, server judges that distribution fails, as a result, server random number is to family expenses
The distribution result of electrical equipment judged, improves the reliability of domestic electric appliance discovery.
For achieving the above object, eighth aspect present invention embodiment propose a kind of household electrical appliance with network method, including:
Mobile terminal sends the distribution comprising random number and instructs to household electrical appliance, so that the household electrical appliance access road according to distribution instruction
During by device, the household electrical appliance upload the random number in itself to server;The mobile terminal to server send include with
The inquiry request of machine number, so as to whether preserve the random number in server lookup itself;If the mobile terminal is received
To the server return successful inquiring message, then mobile terminal determine distribution success;If the mobile terminal is received
The inquiry failed message that the server is returned, then mobile terminal determine that distribution fails.
Household electrical appliance according to embodiments of the present invention with network method, mobile terminal to server is sent comprising random number
Inquiry request, and the Query Result returned according to server determines household electrical appliance whether distribution success, facilitates user by moving
Dynamic terminal knows the distribution result of household electrical appliance.
In one embodiment of the invention, after the mobile terminal determines distribution success, also include:
The mobile terminal to the server sends the bind request comprising the random number, so that the server will
Mobile terminal and household electrical appliance corresponding with the random number are bound.
For achieving the above object, ninth aspect present invention embodiment proposes a kind of mobile terminal, including:3rd sends mould
Block, instructs for sending the distribution comprising random number to household electrical appliance, so that the household electrical appliance access road according to distribution instruction
During by device, the household electrical appliance upload the random number in itself to server;4th sending module, wraps for sending to server
Inquiry request containing random number, so as to whether preserve the random number in server lookup itself;First determining module, is used for
When the successful inquiring message that the server is returned is received, distribution success is determined;Second determining module, for receiving
During the inquiry failed message that the server is returned, determine that distribution fails.
Mobile terminal according to embodiments of the present invention, mobile terminal to server sends the inquiry request comprising random number,
And the Query Result returned according to server determines household electrical appliance whether distribution success, facilitates user and is known by mobile terminal
The distribution result of household electrical appliance.
In one embodiment of the invention, also include:
4th sending module, for sending the bind request comprising the random number to the server, so that the clothes
Business device binds mobile terminal and household electrical appliance corresponding with the random number.
The advantage of the additional aspect of the present invention will be set forth in part in the description, and partly will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
With reference to the accompanying drawings come describe proposition according to embodiments of the present invention household electrical appliance with network method, system, family expenses
The WIFI module of electrical equipment, household electrical appliance and mobile terminal.
Fig. 1 is the flow chart with network method of household electrical appliance according to an embodiment of the invention.
As shown in figure 1, the household electrical appliance are comprised the following steps with network method:
S11, server receives the first random number that mobile terminal sends.
Wherein, the first random number is sent to household electrical appliance by the distribution instruction of mobile terminal.
Wherein, mobile terminal may, for example, be mobile phone, panel computer, personal digital assistant etc. with various operating systems
Hardware device.
Wherein, household electrical appliance may, for example, be the equipment such as intelligent television, refrigerator or intelligent washing machine.
Specifically, during for household electrical appliance distribution, mobile terminal is instructed to household electrical appliance by distribution and sends the
The inbound information of one random number and router.Accordingly, inbound information couple in router of the household electrical appliance according to router.
Wherein, distribution instruction can include but is not limited to the inbound information and the first random number of router, and distribution instruction is also
Can include, the information such as the length information of inbound information.
In order to determine household electrical appliance whether couple in router, instructed to household electrical appliance by distribution in mobile terminal and send the
After the inbound information of one random number and router, mobile terminal to server sends the first random number.
, wherein it is desired to be understood by, the first random number is previously generated in mobile terminal.
As a kind of exemplary embodiment, mobile terminal can according to the create-rule of random number previously generate first with
Machine number.
Wherein, the create-rule of random number is pre-saved in mobile terminal.
For example, it is assumed that the create-rule of default setting random number is in mobile terminal:Random number is by two byte groups
Generated by random algorithm into, the front two in random number, afterwards 14 MD5 values generated by the inbound information of router
Front 14 compositions.When mobile terminal needs to generate the first random number, mobile terminal will be given birth to according to the create-rule of random number
Into the first random number.
, wherein it is desired to be understood by, mobile terminal can also by other means generate random number, and the embodiment is not to moving
Dynamic terminal generates the mode of random number and is defined.
S12, server receives the second random number that household electrical appliance send.
After mobile terminal sends distribution instruction to household electrical appliance, due to the insulation request of router, now, mobile terminal
Between household electrical appliance cannot direction communication, therefore, mobile terminal to household electrical appliance send distribution instruction after, mobile terminal without
Method determines the household electrical appliance whether distribution success of distribution, i.e. mobile terminal cannot determine whether the household electrical appliance of distribution access road
By device.Therefore, after couple in router, household electrical appliance to server sends the second random number to household electrical appliance.Accordingly, service
After the second random number of household electrical appliance transmission is successfully received, server to household electrical appliance send response message to device.
As a kind of exemplary embodiment, after household electrical appliance first time couple in router, in order to reporting second
The process of random number is controlled, and reduces household electrical appliance and reports the resource consumption of the second random number, household electrical appliance can per preset
Time (such as 1 second) reports the second random number to server, until it reaches maximum reports number of times or receives answering for server
Till answering message.
Wherein, maximum reports number of times to be the maximum times for reporting pre-set in household electrical appliance.For example, maximum reports secondary
Number is 15 times.
In one embodiment of the invention, random number has life cycle in household electrical appliance, i.e. random number is meeting
After certain condition, random number will fail, that is to say, that household electrical appliance can be managed to random number, wherein, household electrical appliance can lead to
Cross any one mode in following manner to be managed random number:
First kind of way, after the second random number is sent, household electrical appliance fail the second random number to household electrical appliance.Specifically
For, when household electrical appliance pass through router First Contact Connections server, household electrical appliance to server sends the second random number, and
When household electrical appliance success sends the second random number to server, household electrical appliance fail the second random number, for example, household electrical appliance
The second random number in its own is deleted, to avoid the occurrence of different household electrical appliance from using same random number.
The second way, after household electrical appliance distribution, household electrical appliance to mobile terminal feeds back response, and rings in response
The first Preset Time after answering controls the failure of the second random number.
Wherein, the first Preset Time is that the time for arranging is preset in household electrical appliance.For example, the second Preset Time is 2 minutes,
That is, behind 2 minutes that household electrical appliance broadcast response to mobile terminal, household electrical appliance control the failure of the second random number.
, wherein it is desired to be understood by, within 2 minutes that household electrical appliance broadcast response to mobile terminal, household electric
Second random number is reported server by device by router First Contact Connections server.
The third mode, after household electrical appliance distribution success, i.e., household electrical appliance are successfully accessed router according to distribution instruction
Afterwards, if router is restarted or reconnected to household electrical appliance, household electrical appliance control the failure of the second random number.
S13, server judges whether the first random number is consistent with the second random number.
S14, if unanimously, server judges distribution success.
S15, if it is inconsistent, server judges that distribution fails.
For example, it is assumed that mobile terminal is sent to random number A of household electrical appliance 1 by distribution instruction, and mobile whole
End sends random number A to server, and the corresponding random number of household electrical appliance 1 is random number B in server, can be with by comparing
Determine that the two random numbers are inconsistent, thus, it may be determined that distribution of the mobile terminal to household electrical appliance 1 fails.
Household electrical appliance according to embodiments of the present invention with network method, it is first random that server receives that mobile terminal sends
Number, and the second random number of household electrical appliance transmission is received, and judge whether the first random number is consistent with the second random number, if the
One random number is consistent with the second random number, then server judges distribution success, determines distribution success, and when inconsistent, sentences
Disconnected distribution failure, thus, has judged household electrical appliance whether distribution success so that user can be known from server in server
Household electrical appliance whether distribution success, facilitates the household electrical appliance that user knows couple in router by server.
On the basis of based on above-described embodiment, in one embodiment of the invention, in order that mobile terminal can be obtained
The result of distribution is taken, as shown in Fig. 2 after server judges distribution failure, the household electrical appliance also include with network method:
S16, server to mobile terminal sends distribution failed message.
Household electrical appliance according to embodiments of the present invention with network method, after server judges distribution failure, server
Distribution failed message is sent to mobile terminal, as a result, mobile terminal can determine whether household electrical appliance are successful by server
Couple in router.
, wherein it is desired to be understood by, after mobile terminal determines distribution failure, again distribution can be carried out to household electrical appliance.
, wherein it is desired to be understood by, after household electrical appliance distribution success, mobile terminal can send to server and carry house
The bind request of the identification information of electrical appliance, server will be carried out mobile terminal with corresponding household electrical appliance according to bind request
Binding.As a result, user can be controlled by mobile terminal to corresponding household electrical appliance.
On the basis of based on above-described embodiment, in one embodiment of the invention, in order to avoid server is because of not consanguinity
Using the erroneous judgement caused by identical random number, server can be managed electrical appliance to the random number in its own, such as Fig. 3 institutes
Show, the household electrical appliance also include with network method:
S17, after the second Preset Time, the random number of server controls first and the second random number fail.
Wherein, the second Preset Time is the time pre-set in server.
In one embodiment of the invention, server according to the first random number and the second random number to distribution whether into
After work(is judged, server after monitoring reaches the second Preset Time, the random number of server controls first and second with
Machine number fails, and for example, server can delete the first random number and the second random number.Thus, avoiding server process a large amount of
Random number and the occurrence of judge by accident.
Fig. 4 is the flow chart with network method of the household electrical appliance according to further embodiment of the present invention.As shown in figure 4, should
Household electrical appliance are described with network method from mobile terminal side, and the household electrical appliance are comprised the following steps with network method:
S41, mobile terminal to household electrical appliance send distribution instruction.
Wherein, distribution instruction can include but is not limited to random number, and distribution instruction can also include that the networking of router is believed
The information such as breath, the length information of inbound information.
Due between mobile terminal and household electrical appliance cannot direction communication, mobile terminal cannot determine household electrical appliance whether into
Work(couple in router, therefore, during mobile terminal is household electrical appliance distribution, mobile terminal can be instructed to family by distribution
Electrical appliance sends random number.
, wherein it is desired to be understood by, random number is previously generated in mobile terminal.
Used as a kind of exemplary embodiment, mobile terminal can be previously generated at random according to the create-rule of random number
Number.
Wherein, the create-rule of random number is pre-saved in mobile terminal.
For example, it is assumed that the create-rule of default setting random number is in mobile terminal:Random number is by two byte groups
Generated by random algorithm into, the front two in random number, afterwards 14 MD5 values generated by the inbound information of router
Front 14 compositions.Mobile terminal need generate random number when, mobile terminal by according to the create-rule of random number generate with
Machine number.
, wherein it is desired to be understood by, mobile terminal can also by other means generate random number, and the embodiment is not to moving
Dynamic terminal generates the mode of random number and is defined.
S42, mobile terminal to server sends random number, so that server is judging mobile terminal with household electrical appliance
When the random number sent is consistent, server judges distribution success, if server judges that dynamic terminal is random with what household electrical appliance sent
Number is inconsistent, then server judges that distribution fails.
Specifically, after mobile terminal sends the instruction of the distribution comprising random number to household electrical appliance, household electrical appliance are first
After secondary couple in router, household electrical appliance send the random number in household electrical appliance to server.Accordingly, server is being properly received
After the random number sent to household electrical appliance, server to household electrical appliance send response message.
As a kind of exemplary embodiment, after household electrical appliance first time couple in router, in order to household electrical appliance
The process for reporting random number is controlled, and reduces the resource consumption that household electrical appliance report random number, and household electrical appliance can be at interval of pre-
If the time (such as 1 second) reports random number to server, until it reaches maximum reports number of times or receives the response of server
Till message.
Wherein, maximum reports number of times to be the maximum times for reporting pre-set in household electrical appliance.For example, maximum reports secondary
Number is 15 times.
In one embodiment of the invention, random number has life cycle in household electrical appliance, i.e. random number is meeting
After certain condition, random number will fail, that is to say, that household electrical appliance can be managed to random number, wherein, household electrical appliance can lead to
Cross any one mode in following manner to be managed random number:
First kind of way, after random number is sent, household electrical appliance fail random number to household electrical appliance.Specifically, exist
When household electrical appliance pass through router First Contact Connections server, household electrical appliance to server sends random number, and in household electrical appliance
When success is to server transmission random number, household electrical appliance fail random number, and for example, household electrical appliance are deleted random in its own
Number, to avoid the occurrence of different household electrical appliance from using same random number.
The second way, after household electrical appliance distribution, household electrical appliance to mobile terminal feeds back response, and rings in response
The first Preset Time control random number failure after answering.
Wherein, the first Preset Time is that the time for arranging is preset in household electrical appliance.For example, the second Preset Time is 2 minutes,
That is, behind 2 minutes that household electrical appliance broadcast response to mobile terminal, household electrical appliance control random number failure.
, wherein it is desired to be understood by, within 2 minutes that household electrical appliance broadcast response to mobile terminal, household electric
After router First Contact Connections server, random number is reported server to device by household electrical appliance.
The third mode, after household electrical appliance distribution success, i.e. household electrical appliance are successfully accessed router according to distribution instruction
Afterwards, if router, household electrical appliance control random number failure are restarted or reconnected to household electrical appliance.
After the random number that random number and mobile terminal that server receives household electrical appliance transmission send, server judges
Whether household electrical appliance are consistent with the random number that mobile terminal sends, if unanimously, server judges distribution success, if inconsistent,
Server judges that distribution fails.
In implementing at one of the present invention, in order that mobile terminal would know that the distribution result of household electrical appliance, in service
When device judges that distribution fails, server to mobile terminal returns distribution failed message.Accordingly, mobile terminal the reception server is returned
The distribution returned unsuccessfully disappears.
, wherein it is desired to be understood by, after mobile terminal determines household electrical appliance distribution failure, household electrical appliance can again to family
Electrical appliance carries out distribution.
, wherein it is desired to be understood by, after server judges distribution success, server can send distribution to mobile terminal
Success message.Accordingly, mobile terminal can obtain household electrical appliance couple in router according to distribution success message.
Wherein, in another embodiment of the present invention, except returning household electrical appliance distribution from server to mobile terminal
Whether outside successful result, after mobile terminal sends random number, mobile terminal can also use the identification information of household electrical appliance
Corresponding household electrical appliance whether couple in router is inquired about with random number, when mobile terminal determines that corresponding household electrical appliance access route
Device, mobile terminal can bind corresponding household electrical appliance to server application, so that mobile terminal can enter to corresponding household electrical appliance
Row control.
In one embodiment of the invention, after mobile terminal determines household electrical appliance couple in router, mobile terminal
The bind request of the identification information for carrying household electrical appliance can be sent to server, server will be whole by movement according to bind request
Bound with corresponding household electrical appliance at end.As a result, user can be controlled by mobile terminal to corresponding household electrical appliance
System.
Household electrical appliance according to embodiments of the present invention with network method, mobile terminal to household electrical appliance send random number, and
Random number is sent to server, so that server is after the random number that household electrical appliance and mobile terminal send is received, service
Device judges whether mobile terminal is consistent with the random number that household electrical appliance send, if unanimously, server judges distribution success, such as
Really inconsistent, then server judges that distribution fails.
Fig. 5 is the flow chart with network method of household electrical appliance in accordance with another embodiment of the present invention.As shown in figure 5, should
Household electrical appliance are described with network method from household electrical appliance side, and the household electrical appliance are comprised the following steps with network method:
S51, household electrical appliance receive the distribution instruction that mobile terminal sends.
Specifically, during for household electrical appliance distribution, mobile terminal is instructed to household electrical appliance by distribution and sends the
The inbound information of one random number and router.Accordingly, inbound information couple in router of the household electrical appliance according to router.
Wherein, distribution instruction can include but is not limited to the inbound information and the first random number of router, and distribution instruction is also
Can include, the information such as the length information of inbound information.
S52, household electrical appliance send random number to server, so that server is judging mobile terminal and household electrical appliance
When the random number of transmission is consistent, server judges distribution success, if server judge that dynamic terminal and household electrical appliance send with
Machine number is inconsistent, then server judges that distribution fails.
As a kind of exemplary embodiment, after household electrical appliance first time couple in router, in order to reporting second
The process of random number is controlled, and reduces household electrical appliance and reports the resource consumption of the second random number, household electrical appliance can per preset
Time (such as 1 second) reports the second random number to server, until it reaches maximum reports number of times or receives answering for server
Till answering message.
Wherein, maximum reports number of times to be the maximum times for reporting pre-set in household electrical appliance.For example, maximum reports secondary
Number is 15 times.
In one embodiment of the invention, random number has life cycle in household electrical appliance, i.e. random number is meeting
After certain condition, random number will fail, that is to say, that household electrical appliance can be managed to random number, wherein, household electrical appliance can lead to
Cross any one mode in following manner to be managed random number:
First kind of way, after the second random number is sent, household electrical appliance fail the second random number to household electrical appliance.Specifically
For, when household electrical appliance pass through router First Contact Connections server, household electrical appliance to server sends the second random number, and
When household electrical appliance success sends the second random number to server, household electrical appliance fail the second random number, for example, household electrical appliance
The second random number in its own is deleted, to avoid the occurrence of different household electrical appliance from using same random number.
The second way, after household electrical appliance distribution, household electrical appliance to mobile terminal feeds back response, and rings in response
The first Preset Time after answering controls the failure of the second random number.
Wherein, the first Preset Time is that the time for arranging is preset in household electrical appliance.For example, the second Preset Time is 2 minutes,
That is, behind 2 minutes that household electrical appliance broadcast response to mobile terminal, household electrical appliance control the failure of the second random number.
, wherein it is desired to be understood by, within 2 minutes that household electrical appliance broadcast response to mobile terminal, household electric
After router First Contact Connections server, the second random number is reported server to device by household electrical appliance.
The third mode, after household electrical appliance distribution success, i.e., household electrical appliance are successfully accessed router according to distribution instruction
Afterwards, if router is restarted or reconnected to household electrical appliance, household electrical appliance control the failure of the second random number.
Household electrical appliance according to embodiments of the present invention with network method, household electrical appliance are received mobile terminal and are instructed by distribution
The random number of transmission, and by random number upload server, so that server is receiving household electrical appliance and mobile terminal sends
After random number, server judges whether mobile terminal is consistent with the random number that household electrical appliance send, if unanimously, server is sentenced
Disconnected distribution success, if it is inconsistent, server judge distribution fail, as a result, server according to random number to household electric
The distribution result of device judged, has judged household electrical appliance whether distribution success in server, and then causes the user can be from clothes
Household electrical appliance whether distribution success is known in business device, the household electrical appliance that user knows couple in router by server are facilitated.
In order to realize above-described embodiment, the present invention also proposes a kind of distribution network systems of household electrical appliance.
Fig. 6 is the structural representation of the distribution network systems of household electrical appliance according to an embodiment of the invention.
As shown in fig. 6, the distribution network systems of the household electrical appliance include server 10, household electrical appliance 20 and mobile terminal 30, its
In:
Server 10 be used for receive mobile terminal 20 transmission the first random number, and receive household electrical appliance 20 transmission second
Random number, and judge whether the first random number is consistent with the second random number, if unanimously, distribution success is judged, if not
Unanimously, then judge that distribution fails.
Mobile terminal 30, for being sent to household electrical appliance 20 by the distribution of mobile terminal 30 instruction, and to server 10
The first random number is sent, wherein, distribution instruction includes the first random number.
Household electrical appliance 20, for receiving the distribution instruction of the transmission of mobile terminal 30, and second sent to household electrical appliance 20
Random number.
Wherein, mobile terminal may, for example, be mobile phone, panel computer, personal digital assistant etc. with various operating systems
Hardware device.
Wherein, household electrical appliance may, for example, be the equipment such as intelligent television, refrigerator or intelligent washing machine.
In one embodiment of the invention, in order that mobile terminal can obtain the result of distribution, server 10 is sentenced
After disconnected distribution failure, server 10 is additionally operable to:Distribution failed message is sent to mobile terminal 30.
In one embodiment of the invention, random number has life cycle in household electrical appliance 20, i.e. random number is full
After sufficient certain condition, random number will fail, that is to say, that household electrical appliance 20 can be managed to random number, wherein, household electrical appliance
20 can be managed by any one mode in following manner to random number:
First kind of way, after the second random number is sent, household electrical appliance 20 fail the second random number to household electrical appliance 20.
Specifically, when household electrical appliance 20 pass through router First Contact Connections server 10, household electrical appliance 20 to server 10 sends
Second random number, and when the success of household electrical appliance 20 sends the second random number to server 10, household electrical appliance 20 are random by second
Number failure, for example, household electrical appliance 20 delete the second random number in its own, identical to avoid different household electrical appliance 20 from using
The occurrence of random number.
The second way, after the distribution of household electrical appliance 20, household electrical appliance 20 to mobile terminal 30 feed back response, and
The first Preset Time after response controls the failure of the second random number.
Wherein, the first Preset Time is that the time for arranging is preset in household electrical appliance 20.For example, the second Preset Time is 2 points
Clock, i.e. behind 2 minutes that household electrical appliance 20 broadcast response to mobile terminal 30, household electrical appliance 20 control the second random number
Failure.
, wherein it is desired to be understood by, within 2 minutes that household electrical appliance 20 broadcast response to mobile terminal 30, family
Electrical appliance 20 is by the way that after router First Contact Connections server 10, the second random number is reported server 10 by household electrical appliance 20.
The third mode, after the distribution success of household electrical appliance 20, i.e. household electrical appliance 20 are successfully accessed road according to distribution instruction
After by device, if router is restarted or reconnected to household electrical appliance 20, household electrical appliance 20 control the failure of the second random number.
In one embodiment of the invention, in order to avoid server because different household electrical appliance use identical random number institute
The erroneous judgement for causing, server can be managed to the random number in its own, and server 10 is additionally operable to:In the second Preset Time
Afterwards, the first random number and the failure of the second random number are controlled.
, wherein it is desired to illustrate, the explanation of the aforementioned distribution embodiment of the method to household electrical appliance is also applied to
The distribution network systems of the household electrical appliance of the embodiment, it realizes that principle is similar to, and here is omitted.
The distribution network systems of household electrical appliance according to embodiments of the present invention, the first of server reception mobile terminal transmission is random
Number, and the second random number of household electrical appliance transmission is received, and judge whether the first random number is consistent with the second random number, if the
One random number is consistent with the second random number, then server judges distribution success, determines distribution success, and when inconsistent, sentences
Disconnected distribution failure, thus, has judged household electrical appliance whether distribution success so that user can be known from server in server
Household electrical appliance whether distribution success, facilitates the household electrical appliance that user knows couple in router by server.
In order to realize above-described embodiment, the present invention also proposes a kind of mobile terminal.
Fig. 7 is the structural representation of mobile terminal according to an embodiment of the invention.
As shown in fig. 7, the mobile terminal 30 includes the first sending module 310 and the second sending module 320, wherein:
First sending module 310 is used to send distribution instruction to household electrical appliance, wherein, distribution instruction includes random number.
Second sending module 320 is used for mobile terminal and sends random number to server, so that server is judging movement
When terminal is consistent with the random number that household electrical appliance send, server judges distribution success, if server judges dynamic terminal and family
The random number that electrical appliance sends is inconsistent, then server judges that distribution fails.
In one embodiment of the invention, on the basis of embodiment as shown in Figure 7, as shown in figure 8, the movement end
End 30 can also include receiver module 330, wherein:
Receiver module, for the distribution failed message that the reception server is returned.
, wherein it is desired to illustrate, the explanation of the aforementioned distribution embodiment of the method to household electrical appliance is also applied for this
The mobile terminal of embodiment, it realizes that principle is similar to, and here is omitted.
Mobile terminal according to embodiments of the present invention, mobile terminal to household electrical appliance send random number, and random number is sent out
Server is delivered to, so that server is after the random number that household electrical appliance and mobile terminal send is received, server judges movement
Whether terminal is consistent with the random number that household electrical appliance send, if unanimously, server judges distribution success, if inconsistent,
Then server judges that distribution fails.
In order to realize above-described embodiment, the present invention also proposes a kind of WIFI module of household electrical appliance.
Fig. 9 is the structural representation of the WIFI module of household electrical appliance according to an embodiment of the invention.
As shown in figure 9, the WIFI module of the household electrical appliance includes receiving submodule 210 and sending submodule 220, wherein:
Receiving submodule 210 is used to receive the distribution instruction of mobile terminal transmission, wherein, distribution instruction includes random number.
Sending submodule 220 is used to random number is sent to server, so that server is judging mobile terminal and family
When the random number of electrical appliance transmission is consistent, server judges distribution success, if server judges that dynamic terminal is sent out with household electrical appliance
The random number sent is inconsistent, then server judges that distribution fails.
In implementing at one of the present invention, in order to be managed to random number, on the basis of shown in Fig. 9, such as scheme
Shown in 10, the WIFI module of the household electrical appliance also includes that first processes submodule 230, wherein, the first process submodule 230 is used for
After random number is sent, random number is failed.
In another embodiment of the present invention, in order to be managed to random number, on the basis of shown in Fig. 9,
As shown in figure 11, the WIFI module of the household electrical appliance also includes second processing submodule 240, and the second processing submodule 240 is used
In to mobile terminal feed back response, and after response the first Preset Time control random number failure.
In another embodiment of the present invention, in order to be managed to random number, on the basis of shown in Fig. 9,
As shown in figure 12, the WIFI module of the household electrical appliance also includes control submodule 250, and the control submodule 250 is used in family expenses
When electrical equipment is restarted or reconnects router, control random number failure.
, wherein it is desired to illustrate, the explanation of the aforementioned distribution embodiment of the method to household electrical appliance is also applied for this
The WIFI module of the household electrical appliance of embodiment, it realizes that principle is similar to, and here is omitted.
The WIFI module of household electrical appliance according to embodiments of the present invention, mobile terminal is received by matching somebody with somebody by receiving submodule
The random number that net instruction sends, and random number is uploaded onto the server by sending submodule, so that server is got home in reception
After the random number that electrical appliance and mobile terminal send, server judges the random number of mobile terminal and household electrical appliance transmission whether
Cause, if unanimously, server judges distribution success, if it is inconsistent, server judges that distribution fails, as a result, clothes
Business device judged the distribution result of household electrical appliance according to random number, judged in server household electrical appliance whether distribution into
Work(, and then cause user that household electrical appliance whether distribution success can be known from server, facilitate user and known by server
The household electrical appliance of couple in router.
In order to realize above-described embodiment, the present invention also proposes a kind of household electrical appliance.
A kind of household electrical appliance, including the WIFI module of the household electrical appliance of sixth aspect present invention embodiment.
Household electrical appliance according to embodiments of the present invention, household electrical appliance receive mobile terminal and instruct the random of transmission by distribution
Number, and random number is uploaded onto the server by sending submodule, so that server is receiving household electrical appliance and mobile terminal
After the random number of transmission, server judges whether mobile terminal is consistent with the random number that household electrical appliance send, if unanimously, takes
Business device judges distribution success, if it is inconsistent, server judges that distribution fails, as a result, server is according to random number pair
The distribution result of household electrical appliance judged, household electrical appliance whether distribution success has been judged in server, and then causes user
Household electrical appliance whether distribution success can be known from server, the family expenses that user knows couple in router by server are facilitated
Electrical equipment.
Figure 13 is the flow chart with network method of the household electrical appliance according to another embodiment of the invention.As shown in figure 13,
The household electrical appliance are described with network method from mobile terminal side, and the household electrical appliance are comprised the following steps with network method:
S131, mobile terminal sends the distribution comprising random number and instructs to household electrical appliance, so that household electrical appliance are according to distribution
During instruction couple in router, household electrical appliance upload the random number in itself to server.
, wherein it is desired to be understood by, also including inbound information, the length information of inbound information of router in distribution instruction
Etc. information.
Due between mobile terminal and household electrical appliance cannot direction communication, mobile terminal cannot determine household electrical appliance whether into
Work(couple in router, therefore, during mobile terminal is household electrical appliance distribution, mobile terminal can be instructed to family by distribution
Electrical appliance sends random number.
, wherein it is desired to be understood by, random number is previously generated in mobile terminal.
Used as a kind of exemplary embodiment, mobile terminal can be previously generated at random according to the create-rule of random number
Number.
Wherein, the create-rule of random number is pre-saved in mobile terminal.
For example, it is assumed that the create-rule of default setting random number is in mobile terminal:Random number is by two byte groups
Generated by random algorithm into, the front two in random number, afterwards 14 MD5 values generated by the inbound information of router
Front 14 compositions.Mobile terminal need generate random number when, mobile terminal by according to the create-rule of random number generate with
Machine number.
, wherein it is desired to be understood by, mobile terminal can also by other means generate random number, and the embodiment is not to moving
Dynamic terminal generates the mode of random number and is defined.
S132, mobile terminal to server sends the inquiry request comprising random number, so as to be in server lookup itself
It is no to preserve random number.
In one embodiment of the invention, after mobile terminal sends distribution instruction to household electrical appliance, in order to determine house
Electrical appliance whether couple in router, mobile terminal can send the inquiry request comprising random number to server.Accordingly, server
The inquiry request that mobile terminal sends is received, and is determined and whether preserve in server the random number.
, wherein it is desired to be understood by, the random number in server is uploaded by household electrical appliance.
, wherein it is desired to be understood by, after mobile terminal sends distribution instruction to household electrical appliance, due to the isolation of router
Require, now, between mobile terminal and household electrical appliance cannot direction communication, therefore, mobile terminal to household electrical appliance send match somebody with somebody
After net instruction, mobile terminal cannot determine the household electrical appliance whether distribution success of distribution, i.e. mobile terminal cannot determine distribution
Household electrical appliance whether couple in router.Therefore, after couple in router, household electrical appliance to server sends itself to household electrical appliance
In random number.Corresponding, server preserves the random number that household electrical appliance are uploaded, and it is corresponding with random number to preserve household electrical appliance
Relation.
, wherein it is desired to be understood by, have many reason for the random number that there is no mobile terminal upload in server, citing
For, household electrical appliance are due to the unsuccessful connection route device of network reason, and then household electrical appliance upload random number without normal direction server,
Or, the random number in the server that some other reasons cause changes.
S133, if mobile terminal receive server return successful inquiring message, mobile terminal determine distribution into
Work(.
S134, if mobile terminal receives the inquiry failed message of server return, mobile terminal determines that distribution is lost
Lose.
Household electrical appliance according to embodiments of the present invention with network method, mobile terminal to server is sent comprising random number
Inquiry request, and the Query Result returned according to server determines household electrical appliance whether distribution success, facilitates user by moving
Dynamic terminal knows the distribution result of household electrical appliance.
On the basis of based on above-described embodiment, in order to be managed to household electrical appliance by mobile terminal, moving
Terminal determines after distribution success that mobile terminal can be to send the bind request comprising random number, so that service to server
Device binds mobile terminal and household electrical appliance corresponding with random number.
In order to realize above-described embodiment, the present invention also proposes a kind of mobile terminal.
Figure 14 is the structural representation of the mobile terminal according to another embodiment of the invention.
As shown in figure 14, the mobile terminal can include that the 3rd sending module 610, the 4th sending module 620, first determine
The determining module 640 of module 630 and second, wherein:
3rd sending module 610 is used to send the instruction of the distribution comprising random number to household electrical appliance, so that household electrical appliance root
When instructing couple in router according to distribution, household electrical appliance upload the random number in itself to server.
4th sending module 620 is used to send the inquiry request comprising random number to server, so that server lookup is certainly
Whether random number is preserved in body.
First determining module 630 is used to, when the successful inquiring message of server return is received, determine distribution success.
Second determining module 640 is used to, when the inquiry failed message of server return is received, determine that distribution fails.
In one embodiment of the invention, in order to be managed to household electrical appliance by mobile terminal, moving
Terminal is determined after distribution success, and on the basis of shown in Figure 14, as shown in figure 15, the mobile terminal can also include:
4th sending module 650 is used to send the bind request comprising random number to server, so that server will be mobile
Terminal and household electrical appliance corresponding with random number are bound.
Mobile terminal according to embodiments of the present invention, mobile terminal to server sends the inquiry request comprising random number,
And the Query Result returned according to server determines household electrical appliance whether distribution success, facilitates user and is known by mobile terminal
The distribution result of household electrical appliance.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or
Implicitly include at least one this feature.In describing the invention, " multiple " are meant that at least two, such as two, three
It is individual etc., unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection ", " fixation " etc.
Term should be interpreted broadly, for example, it may be fixedly connected, or be detachably connected, or it is integral;Can be that machinery connects
Connect, or electrically connect;Can be joined directly together, it is also possible to be indirectly connected to by intermediary, can be in two elements
The connection in portion or the interaction relationship of two elements, unless otherwise clearly restriction.For one of ordinary skill in the art
For, can as the case may be understand above-mentioned term concrete meaning in the present invention.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means to combine specific features, structure, material or spy that the embodiment or example are described
Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be with office
Combine in an appropriate manner in one or more embodiments or example.Additionally, in the case of not conflicting, the skill of this area
Art personnel can be tied the feature of the different embodiments or example described in this specification and different embodiments or example
Close and combine.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example
Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.