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 so that mobile terminal can
TCP server address in addition to by the TCP server address except giving tacit consent to is set up TCP and is connected with household electrical appliance, and causes it
He can provide service by service provider for household electrical appliance, facilitate the service provider in addition to the producer of household electrical appliance and be
Household electrical appliance provide service, improve the popularization of Household electric appliance intelligent.
Second object of the present invention is to propose a kind of distribution network systems of household electrical appliance.
Third object of the present invention is to propose a kind of mobile terminal.
Fourth object of the present invention is to propose a kind of WIFI module of household electrical appliance.
5th purpose of the present invention is to propose a kind of household electrical appliance.
For achieving the above object, first aspect present invention embodiment propose a kind of household electrical appliance with network method, including
Following steps:Mobile terminal receives the UDP bags of household electrical appliance broadcast;The mobile terminal judges whether included in the UDP bags
TCP server address;If it is determined that including the TCP server address in the UDP bags, then the mobile terminal is according to described
TCP server address is set up TCP and is connected with the household electrical appliance;If it is determined that not including the TCP server in the UDP bags
Address, then the mobile terminal set up TCP with the household electrical appliance and be connected according to the TCP server address of acquiescence.
Household electrical appliance according to embodiments of the present invention with network method, during distribution is carried out to household electrical appliance, move
Dynamic terminal receives the UDP bags of household electrical appliance broadcast, and when TCP server address is included in judging UDP bags, mobile terminal passes through
TCP server address is set up TCP and is connected with household electrical appliance, according to and in judging UDP do not include TCP server address when,
Mobile terminal is set up TCP and is connected by the TCP server address given tacit consent to household electrical appliance, as a result, mobile terminal can pass through
TCP server address in addition to the TCP server address given tacit consent to is set up TCP and is connected with household electrical appliance, and causes other clothes
Business provider can provide service for household electrical appliance, and it is family expenses to facilitate the service provider in addition to the producer of household electrical appliance
Electrical equipment provides service, improves the popularization of Household electric appliance intelligent.
In addition, can also have following additional technical characteristic with network method according to above-mentioned household electrical appliance of the invention:
In one embodiment of the invention, set up after TCP is connected in the mobile terminal and the household electrical appliance, also
Including:
The mobile terminal to the household electrical appliance send distribution instruction, wherein, the distribution instruction includes router
Inbound information;
The household electrical appliance are according to the inbound information couple in router.
In one embodiment of the invention, the distribution instruction also includes the random number that the mobile terminal is generated,
After the household electrical appliance are according to the inbound information couple in router, also include:
The mobile terminal sends the random number to server;
The household electrical appliance extract the random number from distribution instruction, and send to server;
The server judges whether the mobile terminal is consistent with the random number that the household electrical appliance send;
If consistent, the server judges distribution success;
If it is inconsistent, the server judges that distribution fails, and distribution failed message is sent to the mobile terminal.
In one embodiment of the invention, also include:
The mobile terminal extracts the length or content of the UDP bags of the household electrical appliance broadcast;
The length of the UDP bags that the mobile terminal is broadcasted according to the household electrical appliance or the corresponding distribution side of content obtaining
Formula.
For achieving the above object, second aspect present invention embodiment proposes a kind of distribution network systems of household electrical appliance, described
System includes mobile terminal and household electrical appliance, wherein:
Whether the mobile terminal, for receiving the UDP bags of household electrical appliance broadcast, and judge in the UDP bags comprising TCP
Server address, if it is determined that including the TCP server address in the UDP bags, then the mobile terminal is according to the TCP
Server address is set up TCP and is connected with the household electrical appliance, if it is determined that not comprising TCP server ground in the UDP bags
Location, then the mobile terminal set up TCP with the household electrical appliance and be connected according to the TCP server address of acquiescence;The household electric
Device, for broadcasting the UDP bags.
The distribution network systems of household electrical appliance according to embodiments of the present invention, during distribution is carried out to household electrical appliance, move
Dynamic terminal receives the UDP bags of household electrical appliance broadcast, and when TCP server address is included in judging UDP bags, mobile terminal passes through
TCP server address is set up TCP and is connected with household electrical appliance, according to and in judging UDP do not include TCP server address when,
Mobile terminal is set up TCP and is connected by the TCP server address given tacit consent to household electrical appliance, as a result, mobile terminal can pass through
TCP server address in addition to the TCP server address given tacit consent to is set up TCP and is connected with household electrical appliance, and causes other clothes
Business provider can provide service for household electrical appliance, and it is family expenses to facilitate the service provider in addition to the producer of household electrical appliance
Electrical equipment provides service, improves the popularization of Household electric appliance intelligent.
The distribution network systems of above-mentioned household electrical appliance can also be according to following additional technical characteristic:
In one embodiment of the invention, the mobile terminal, is additionally operable to send distribution instruction to the household electrical appliance,
Wherein, the distribution instruction includes the inbound information of router;
Wherein, the household electrical appliance, are additionally operable to according to the inbound information couple in router.
In one embodiment of the invention, the distribution instruction also includes the random number that the mobile terminal is generated, institute
Stating system also includes server, wherein:
The mobile terminal, is additionally operable to the random number be sent to server;
The household electrical appliance, are additionally operable to from the distribution extract the random number in instructing, and send to server;
The server, for receiving the random number that the mobile terminal and the household electrical appliance send, and judges described
Whether mobile terminal is consistent with the random number that the household electrical appliance send, if unanimously, the server judges distribution success;
If it is inconsistent, the server judges that distribution fails, and distribution failed message is sent to the mobile terminal.
In one embodiment of the invention, the mobile terminal, is additionally operable to extract the UDP bags of the household electrical appliance broadcast
Length or content, and according to the length or content obtaining of the UDP bags of household electrical appliance broadcast accordingly with net mode.
For achieving the above object, third aspect present invention embodiment proposes a kind of mobile terminal, including:Receiver module,
For receiving the UDP bags of household electrical appliance broadcast;Judge module, for and whether judge in the UDP bags comprising TCP server ground
Location;First communication module, for when the TCP server address is included in judging the UDP bags, controlling the mobile terminal
TCP is set up according to the TCP server address with the household electrical appliance to be connected;Second communication module, for judging the UDP
When not including the TCP server address in bag, TCP server address and the family of the mobile terminal according to acquiescence is controlled
Electrical appliance sets up TCP connections.
Mobile terminal according to embodiments of the present invention, during distribution is carried out to household electrical appliance, mobile terminal is received
The UDP bags of household electrical appliance broadcast, when TCP server address is included in judging UDP bags, mobile terminal passes through TCP server
Address is set up TCP and is connected with household electrical appliance, according to and in judging UDP do not include TCP server address when, mobile terminal lead to
The TCP server address for crossing acquiescence is set up TCP and is connected with household electrical appliance, as a result, mobile terminal can be by except giving tacit consent to
TCP server address outside TCP server address is set up TCP and is connected with household electrical appliance, and so that other service providers can
Service is provided for household electrical appliance, the service provider in addition to the producer of household electrical appliance is facilitated and is provided clothes for household electrical appliance
Business, improves the popularization of Household electric appliance intelligent.
In addition, can also be according to following additional technical characteristic according to above-mentioned mobile terminal of the invention:
In one embodiment of the invention, the first sending module, for sending distribution instruction to the household electrical appliance, with
Make the inbound information couple in router of router of the household electrical appliance in distribution instruction.
In one embodiment of the invention, the distribution instruction also includes the random number that the mobile terminal is generated, also
Including:
Second sending module, is additionally operable to the random number be sent to server, so that the server judges the shifting
Whether dynamic terminal is consistent with the random number that the household electrical appliance send, if unanimously, the server judges distribution success;Such as
Really inconsistent, then the server judges that distribution fails, and sends distribution failed message to the mobile terminal.
In one embodiment of the invention, also include:
Extraction module, for extracting the length or content of the UDP bags of the household electrical appliance broadcast;
Acquisition module, for the length of UDP bags broadcasted according to the household electrical appliance or the corresponding distribution side of content obtaining
Formula.
For achieving the above object, fourth aspect present invention embodiment proposes a kind of WIFI module of household electrical appliance, including
Broadcast submodule and communication submodule, wherein:Broadcast submodule, for broadcasting UDP bags, so that mobile terminal is described in judge
When including server address in UDP bags, the mobile terminal is set up according to the TCP server address with the submodule that communicates
TCP connects;Communication submodule, is connected for setting up TCP with the mobile terminal.
The WIFI module of household electrical appliance according to embodiments of the present invention, by broadcasting submodule UDP bags, mobile terminal are broadcasted
The UDP bags of the WIFI module broadcast of household electrical appliance are received, mobile terminal is moved when TCP server address is included in judging UDP bags
Dynamic terminal is set up TCP and is connected according to TCP server address with communication submodule, as a result, except the generation side of household electrical appliance
Outward, also service can be provided for household electrical appliance according to by other service providers, meets other service providers for household electric
Device provides the demand of service, improves the popularization of Household electric appliance intelligent.
The WIFI module of above-mentioned household electrical appliance can also be according to following additional technical characteristic:
In one embodiment of the invention, also include:
Receiving submodule, for receiving the distribution instruction that the mobile terminal sends, wherein, the distribution instruction includes road
By the inbound information of device;
Submodule is accessed, is route for being accessed according to the inbound information.
In one embodiment of the invention, the distribution instruction also includes the random number that the mobile terminal is generated, also
Including:
Submodule is processed, for extracting the random number from distribution instruction, and is sent to server, so that described
Server judges whether the mobile terminal is consistent with the random number that the household electrical appliance send, if unanimously, the service
Device judges distribution success;If it is inconsistent, the server judges that distribution fails, and distribution mistake is sent to the mobile terminal
Lose message.
For achieving the above object, fifth 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 broadcast UDP bags, mobile terminal receives household electrical appliance
The UDP bags of WIFI module broadcast, when TCP server address is included in judging UDP bags, mobile terminal is according to TCP for mobile terminal
Server address is set up TCP and is connected with household electrical appliance, as a result, in addition to the generation side of household electrical appliance, can also be according to passing through
Other service providers provide service for household electrical appliance, meet other service providers for household electrical appliance and provide the need for servicing
Ask, improve the popularization of Household electric appliance intelligent.
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
Electrical equipment 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, mobile terminal receives the UDP bags of household electrical appliance broadcast.
During electrical appliance distribution, household electrical appliance active broadcast UDP bags, mobile terminal is carried out actively to UPD bags
Monitor, and obtain the UDP bags of electrical appliance broadcast.
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.
Wherein, TCP server address can be included but is not limited in UDP bags, household electrical appliance can also be included in UDP bags
The information such as company-information, device type information, the identification information of household electrical appliance, port, the length of UDP bags of broadcast.
Wherein, the identification information of household electrical appliance is the information of unique mark household electrical appliance, for example, the mark letter of household electrical appliance
Breath can be the product ID SN (Serial Number) of household electrical appliance.
, wherein it is desired to be understood by, product ID SN is only a kind of example of identification information, and the mark of the embodiment is believed
Breath is not limited to this.
In one embodiment of the invention, virtual identifying (ID) is distributed for household electrical appliance again to reduce mobile terminal
Trouble, when household electrical appliance carry out distribution, household electrical appliance can be according to the MAC (Medium/Media of preset rules household electrical appliance
Access Control) address generates the virtual ID of household electrical appliance, and virtual ID is added in UDP bags.It is corresponding, mobile terminal
After the UDP bags for receiving household electrical appliance broadcast, the virtual ID in UDP bags is can extract, and virtual ID is preserved.
, wherein it is desired to be understood by, virtual ID is preserved in mobile terminal, can facilitate and exist in mobile terminal and household electrical appliance
In carrying out communication process, mobile terminal judges that the virtual ID in the packet of the household electrical appliance for receiving is virtual with what itself was preserved
Whether ID is identical, if identical, mobile terminal is processed the packet that household electrical appliance send, thus, empty by verifying
Whether consistent intend ID, improve communications security.
Whether S12, mobile terminal is judged in UDP bags comprising TCP server address.
S13, if it is determined that including TCP server address in UDP bags, then mobile terminal is according to TCP server address and family
Electrical appliance sets up TCP connections.
S14, if it is determined that not including TCP server address in UDP bags, then mobile terminal is according to the TCP server given tacit consent to
Address is set up TCP and is connected with household electrical appliance.
For example, it is assumed that the TCP server address given tacit consent in mobile terminal is the address of beautiful server, if moved
TCP server address is included in the UDP bags that the broadcast of household electrical appliance 1 is received in dynamic terminal, it is assumed that the TCP server ground in UDP bags
Location is the address of certain Internet Server (server in such as Jingdone district), and now, mobile terminal can determine that household electrical appliance 1 are supported
Service is provided by certain Internet Server, mobile terminal is built according to the address of certain Internet Server with household electrical appliance 1
Vertical TCP connections.As a result, mobile terminal can by except give tacit consent to TCP server address in addition to TCP server address with
Household electrical appliance set up TCP connections, and cause other service providers to provide service for household electrical appliance, meet other services and carry
Supplier provides the demand of service for household electrical appliance, improves the popularization of Household electric appliance intelligent.
Household electrical appliance according to embodiments of the present invention with network method, during distribution is carried out to household electrical appliance, move
Dynamic terminal receives the UDP bags of household electrical appliance broadcast, and when TCP server address is included in judging UDP bags, mobile terminal passes through
TCP server address is set up TCP and is connected with household electrical appliance, and when TCP server address is not included in judging UDP, moves
Dynamic terminal is set up TCP and is connected by the TCP server address given tacit consent to household electrical appliance, as a result, mobile terminal can be by removing
TCP server address outside the TCP server address of acquiescence with household electrical appliance is set up TCP and be connected, and so that other are serviced
Provider can provide service for household electrical appliance, and it is household electric to facilitate the service provider in addition to the producer of household electrical appliance
Device provides service, improves the popularization of Household electric appliance intelligent.
On the basis of based on above-described embodiment, in one embodiment of the invention, build with household electrical appliance in mobile terminal
After vertical TCP connection, in order that household electrical appliance can access network, as shown in Fig. 2 the household electrical appliance can be with network method
Including:
S15, mobile terminal to household electrical appliance send distribution instruction.
Wherein, distribution instruction can include but is not limited to the inbound information of router, and for example, distribution instruction also includes random
The information such as number, the length information of inbound information.
Wherein, the inbound information of router can include service set SSID (Service Set Identifier) and
Password, can also include basic service set identification BSSID (Basic Service Set Identifier).
S16, household electrical appliance are according to inbound information couple in router.
In one embodiment of the invention, household electrical appliance are received after the distribution instruction of mobile terminal transmission, household electric
Device can be parsed by the analysis protocol that distribution is instructed to distribution instruction, and return response to mobile terminal according to analysis result
Instruction.
, wherein it is desired to be understood by, the analysis protocol of distribution instruction is reached an agreement in advance between mobile terminal and household electrical appliance
Good agreement.
As a kind of exemplary embodiment, it is assumed that mobile terminal is reached an agreement in advance with household electrical appliance:If household electrical appliance
Numeral 0 is sent to mobile terminal, then it represents that the inbound information of router is correct;If household electrical appliance to mobile terminal sends numeral
1, represent that the SSID of router is wrong;If household electrical appliance send numeral 2 and represent that the password of router is wrong to mobile terminal;Such as
Fruit household electrical appliance send numeral 3 and represent that the BSSID of router is wrong to mobile terminal.
After the distribution instruction parsing that household electrical appliance docking is received is finished, household electrical appliance can be whole to movement according to analysis result
End sends corresponding response instruction, will be determined whether again to household electrical appliance according to the response instruction for receiving with being moved easily terminal
Send distribution instruction.
Household electrical appliance according to embodiments of the present invention with network method, set up TCP in mobile terminal and household electrical appliance and be connected
Afterwards, the inbound information of router is sent to household electrical appliance by mobile terminal, household electrical appliance can be quick according to inbound information
Couple in router, as a result, user can be facilitated user and passed through by controlling household electrical appliance through mobile terminal fast access into network
Networking of the mobile terminal to household electrical appliance is managed collectively.
On the basis of based on above-described embodiment, set up after TCP is connected in mobile terminal and household electrical appliance, match somebody with somebody to determine
Whether the household electrical appliance of net are successfully accessed router, and in one embodiment of the invention, distribution instruction can also include movement
Random number that terminal is generated, such as Fig. 3 shows, the household electrical appliance can also include with network method:
S17, mobile terminal sends random number to server.
In one embodiment of the invention, after mobile terminal sends distribution instruction to household electrical appliance, in order to determine
Whether the household electrical appliance of distribution are successfully accessed router, and mobile terminal can send random number to server.
, wherein it is desired to be understood by, random number is that mobile terminal is previously generated by prior art, and here is omitted.
S18, household electrical appliance extract random number from distribution instruction, and send to server.
Specifically, after the distribution instruction that household electrical appliance receive mobile terminal transmission, household electrical appliance can extract out distribution
Random number in instruction, and the random number for being extracted is sent to server.
It is random number which household electrical appliance sends to distinguish, in household electrical appliance to service, wherein it is desired to be understood by
Device sends the identification information of random number and household electrical appliance.
S19, server judges whether mobile terminal is consistent with the random number that household electrical appliance send.
S20, if unanimously, server judges distribution success.
In implementing at one of the present invention, in order that mobile terminal can obtain household electrical appliance whether couple in router,
Server judges after distribution success that can send distribution success message to mobile terminal, mobile terminal can be according to distribution success message
Obtain household electrical appliance couple in router.
After mobile terminal determines household electrical appliance couple in router, mobile terminal can send to server and carry family expenses
The bind request of the identification information of electrical equipment, server will be tied up mobile terminal with corresponding household electrical appliance according to bind request
It is fixed.As a result, user can be controlled by mobile terminal to corresponding household electrical appliance.
S21, if it is inconsistent, server judges that distribution fails, and sends distribution failed message to mobile terminal.
Household electrical appliance according to embodiments of the present invention with network method, set up TCP in mobile terminal and household electrical appliance and be connected
Afterwards, server receives the random number that mobile terminal and household electrical appliance send, and judges what mobile terminal and household electrical appliance sent
Whether random number is consistent, and when consistent, determines distribution success, and when inconsistent, to mobile terminal distribution failure sent,
Thus, mobile terminal can obtain whether household electrical appliance are successfully accessed router according to server.
On the basis of based on above-described embodiment, in implementing at one of the present invention, in order to can be with compatible existing household electric
Device with net mode, such as Fig. 4 shows, the household electrical appliance can also include with network method:
S22, mobile terminal extracts the length or content of the UDP bags of household electrical appliance broadcast.
S23, the length or content obtaining of the UDP bags that mobile terminal is broadcasted according to household electrical appliance match somebody with somebody accordingly net mode.
Specifically, after the UDP bags that mobile terminal receives household electrical appliance broadcast, the length of the extractable UDP bags of mobile terminal
Degree, or the content of UDP bags is extracted, and the length according to UDP bags and the corresponding relation with net mode, or the content of UDP bags
With the corresponding relation with net mode determine that household electrical appliance are used with net mode.
That is, the embodiment can determine that household electrical appliance are using existing by the length of UDP bags or content
Distribution is carried out with net mode, or distribution is carried out with net mode using disclosed in the embodiment.
Used as a kind of embodiment of embodiment, when active sniffing is carried out to UDP bags, mobile terminal is also for mobile terminal
The existing Broadcast Port used with net mode and the embodiment can be monitored with the Broadcast Port that net mode is used, and
Determine that household electrical appliance are corresponding with net mode according to snoop results.
For example, it is assumed that adopt the Broadcast Port that the existing household electrical appliance with net mode are used for 7083, the enforcement
Example is 15000 with the Broadcast Port that net mode is used, and during household electrical appliance broadcast UDP bags, mobile terminal can be same
When Broadcast Port 7083 and 15000 is monitored, if listening to broadcast mouth 15000 receives the UDP of household electrical appliance, really
Fixed corresponding household electrical appliance carry out distribution using the embodiment with net mode.
, wherein it is desired to explanation, if determining that household electrical appliance use the embodiment according to the length or content of UDP bags
Carry out distribution with net mode, now, whether mobile terminal can be determined whether in UDP bags comprising TCP server address information,
And execution step S13 or S14.
In summary it can be seen, the household electrical appliance of the embodiment of the present invention with network method, mobile terminal can pass through household electrical appliance
The length or content of the UDP bags of broadcast come determine household electrical appliance with net mode, and the distribution side supported using household electrical appliance
Formula carries out distribution to household electrical appliance.
In order to realize above-described embodiment, the present invention also proposes a kind of distribution network systems of household electrical appliance.
Fig. 5 is the structural representation of the distribution network systems of household electrical appliance according to an embodiment of the invention.
As shown in figure 5, the distribution network systems of the household electrical appliance include mobile terminal 10 and household electrical appliance 20, wherein:
Whether mobile terminal 10 is used to receive the UDP bags of the broadcast of household electrical appliance 20, and judge in UDP bags comprising TCP services
Device address, if it is determined that including TCP server address in UDP bags, then mobile terminal 10 is according to TCP server address and household electric
Device 20 sets up TCP connections, if it is determined that not including TCP server address in UDP bags, then mobile terminal takes according to the TCP of acquiescence
Business device address is set up TCP and is connected with household electrical appliance 20.
Household electrical appliance 20 are used to broadcast UDP bags.
In one embodiment of the invention, in order that household electrical appliance can access network, mobile terminal 10 is additionally operable to:To
Household electrical appliance 20 send distribution instruction.
Wherein, distribution instruction includes the inbound information of router.
Wherein, household electrical appliance 20 are additionally operable to according to inbound information couple in router.
Set up after TCP is connected in mobile terminal and household electrical appliance, be to determine between mobile terminal and household electrical appliance
No distribution success, in one embodiment of the invention, distribution instruction also includes the random number that mobile terminal is generated, and such as Fig. 6 shows,
System also includes server 30, wherein:
Mobile terminal 10 is additionally operable to random number be sent to server 30.
Household electrical appliance 20 are additionally operable to from distribution extract random number in instructing, and send to server 30.
Server 30 is used to receive the random number that mobile terminal 10 and household electrical appliance 20 send, and judges the He of mobile terminal 10
Whether the random number that household electrical appliance 20 send is consistent, if unanimously, server 30 judges distribution success.If it is inconsistent,
Server 30 judges that distribution fails, and sends distribution failed message to mobile terminal.
In one embodiment of the invention, mobile terminal 10 is additionally operable to the length of the UDP bags for extracting the broadcast of household electrical appliance 20
Degree or content, and the length or content obtaining of the UDP bags broadcasted according to household electrical appliance 20 matches somebody with somebody accordingly net mode.
, 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 distribution network systems of the household electrical appliance of 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, during distribution is carried out to household electrical appliance, move
Dynamic terminal receives the UDP bags of household electrical appliance broadcast, and when TCP server address is included in judging UDP bags, mobile terminal passes through
TCP server address is set up TCP and is connected with household electrical appliance, according to and in judging UDP do not include TCP server address when,
Mobile terminal is set up TCP and is connected by the TCP server address given tacit consent to household electrical appliance, as a result, mobile terminal can pass through
TCP server address in addition to the TCP server address given tacit consent to is set up TCP and is connected with household electrical appliance, and causes other clothes
Business provider can provide service for household electrical appliance, and it is family expenses to facilitate the service provider in addition to the producer of household electrical appliance
Electrical equipment provides service, improves the popularization of Household electric appliance intelligent.
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 10 includes receiver module 110, judge module 120, first communication module 130 and the
Two communication modules 140, wherein:
Receiver module 110 is used to receive the UDP bags of household electrical appliance broadcast.
Whether judge module 120 is used for and judges in UDP bags comprising TCP server address.
First communication module 130 be used in judging UDP bags comprising TCP server address when, control mobile terminal according to
TCP server address is set up TCP and is connected with household electrical appliance.
Second communication module 140 is used for when TCP server address is not included in judging UDP bags, controls mobile terminal root
TCP is set up according to the TCP server address of acquiescence with household electrical appliance to be connected.
In order that household electrical appliance can access network, in one embodiment of the invention, the base of the embodiment shown in Fig. 7
On plinth, such as Fig. 8 shows, the mobile terminal 10 can also include the first sending module 150, wherein:
First sending module 150 is used to send distribution instruction to household electrical appliance, so that household electrical appliance are according in distribution instruction
Router inbound information couple in router.
In one embodiment of the invention, distribution instruction also includes the random number that mobile terminal is generated, in order to determine shifting
Whether distribution success between dynamic terminal and household electrical appliance, on the basis of shown in Fig. 8, as shown in figure 9, mobile terminal 10 can be with
Including the second sending module 160, wherein:
Second sending module 160 is additionally operable to random number be sent to server, so that server judges mobile terminal and family
Whether the random number that electrical appliance sends is consistent, if unanimously, server judges distribution success.If it is inconsistent, server
Judge that distribution fails, and distribution failed message is sent to mobile terminal.
In one embodiment of the invention, in order to compatibility is existing with net mode, on the basis of shown in Fig. 7, such as scheme
Shown in 10, mobile terminal 10 can also include extraction module 170 and acquisition module 180, wherein:
Extraction module 170 is used for the length or content of the UDP bags for extracting household electrical appliance broadcast.
Acquisition module 180 is used for the length or content obtaining of the UDP bags according to household electrical appliance broadcast and matches somebody with somebody net mode accordingly.
, 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, during distribution is carried out to household electrical appliance, mobile terminal is received
The UDP bags of household electrical appliance broadcast, when TCP server address is included in judging UDP bags, mobile terminal passes through TCP server
Address is set up TCP and is connected with household electrical appliance, according to and in judging UDP do not include TCP server address when, mobile terminal lead to
The TCP server address for crossing acquiescence is set up TCP and is connected with household electrical appliance, as a result, mobile terminal can be by except giving tacit consent to
TCP server address outside TCP server address is set up TCP and is connected with household electrical appliance, and so that other service providers can
Service is provided for household electrical appliance, the service provider in addition to the producer of household electrical appliance is facilitated and is provided clothes for household electrical appliance
Business, improves the popularization of Household electric appliance intelligent.
In order to realize above-described embodiment, the present invention also proposes a kind of WIFI module of household electrical appliance.
Figure 11 is the structural representation of the WIFI module of household electrical appliance according to an embodiment of the invention.
As shown in figure 11, the WIFI module of the household electrical appliance includes broadcast submodule 210 and communication submodule 220, wherein:
Broadcast submodule 210 is used to broadcast UDP bags, so that mobile terminal includes TCP server ground in UDP bags are judged
During location, mobile terminal is set up TCP and is connected according to TCP server address with communication submodule 220.
Communication submodule 220 is connected for setting up TCP with mobile terminal.
In one embodiment of the invention, on the basis of the embodiment shown in Figure 11, as shown in figure 12, household electrical appliance
WIFI module can also include receiving submodule 230 and access submodule 240, wherein:
Receiving submodule 230 is used to receive the distribution instruction of mobile terminal transmission.
Wherein, distribution instruction can include but is not limited to the inbound information of router, and for example, distribution instruction also includes random
The information such as number, the length information of inbound information.
Wherein, the inbound information of router can include service set SSID (Service Set Identifier) and
Password, can also include basic service set identification BSSID (Basic Service Set Identifier).
Accessing submodule 240 is used to access route according to inbound information.
In one embodiment of the invention, distribution instruction also includes the random number that mobile terminal is generated, in order to movement
Whether distribution is successfully verified between terminal and household electrical appliance, and as shown in figure 12, the WIFI module of the household electrical appliance can be with
Including can also include process submodule 250, wherein:
Processing submodule 250 is used to extract random number from distribution instruction, and sends to server, so that server judges
Whether mobile terminal is consistent with the random number that household electrical appliance send, if unanimously, server judges distribution success.If differed
Cause, then server judges that distribution fails, and sends distribution failed message to mobile terminal.
, 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, by broadcasting submodule UDP bags, mobile terminal are broadcasted
The UDP bags of the WIFI module broadcast of household electrical appliance are received, mobile terminal is moved when TCP server address is included in judging UDP bags
Dynamic terminal is set up TCP and is connected according to TCP server address with communication submodule, as a result, except the generation side of household electrical appliance
Outward, service can also be provided for household electrical appliance by other service providers, meets other service providers for household electrical appliance
The demand of service is provided, the popularization of Household electric appliance intelligent is improve.
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 fourth aspect present invention embodiment.
Household electrical appliance according to embodiments of the present invention, household electrical appliance broadcast UDP bags, mobile terminal receives household electrical appliance
The UDP bags of WIFI module broadcast, when TCP server address is included in judging UDP bags, mobile terminal is according to TCP for mobile terminal
Server address is set up TCP and is connected with household electrical appliance, as a result, in addition to the generation side of household electrical appliance, can also pass through it
He provides service by service provider for household electrical appliance, meets other service providers for household electrical appliance and provides the demand for servicing,
Improve the popularization of Household electric appliance intelligent.
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.