CN106657234B - Network distribution method and system of household appliance, household appliance and mobile terminal - Google Patents

Network distribution method and system of household appliance, household appliance and mobile terminal Download PDF

Info

Publication number
CN106657234B
CN106657234B CN201610883726.3A CN201610883726A CN106657234B CN 106657234 B CN106657234 B CN 106657234B CN 201610883726 A CN201610883726 A CN 201610883726A CN 106657234 B CN106657234 B CN 106657234B
Authority
CN
China
Prior art keywords
mobile terminal
household appliance
network
distribution
udp packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610883726.3A
Other languages
Chinese (zh)
Other versions
CN106657234A (en
Inventor
卢伟山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Intelligent Lighting and Controls Technology Co Ltd
Original Assignee
Meizhi Photoelectric Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizhi Photoelectric Technology Co ltd filed Critical Meizhi Photoelectric Technology Co ltd
Priority to CN201610883726.3A priority Critical patent/CN106657234B/en
Publication of CN106657234A publication Critical patent/CN106657234A/en
Application granted granted Critical
Publication of CN106657234B publication Critical patent/CN106657234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a network distribution method and system for household appliances, the household appliances and a mobile terminal, wherein the method comprises the following steps: the mobile terminal receives a UDP packet broadcasted by the household appliance; the mobile terminal judges whether the UDP packet contains a TCP server address; if the UDP packet is judged to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the TCP server address; and if the UDP packet does not contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the default TCP server address. By the method, the mobile terminal can establish TCP connection with the household appliance through the TCP server address except the default TCP server address, other service providers can provide services for the household appliance, the service providers except a producer of the household appliance can provide services for the household appliance conveniently, and the intelligent popularization of the household appliance is improved.

Description

Network distribution method and system of household appliance, household appliance and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a network distribution method and system for a household appliance, the household appliance and a mobile terminal.
Background
With the development of mobile internet and internet of things technologies, more and more household appliances have an access function of a network, and a user can control the household appliances through APPlication programs (APP) for controlling the household appliances.
In the current household appliance distribution network technology, a production party of household appliances generally provides services for APP for controlling the household appliances. Specifically, the TCP server address of the service provider is statically solidified in the APP, and after the household appliance is networked, the APP is connected with the corresponding TCP server address and provides services for the household appliance.
With the increasing demand for the versatility of the home appliances, more and more service providers are provided for controlling the home appliances, and not only manufacturers of the home appliances are used as service providers of the home appliances, but also more and more internet manufacturers want to provide servers of the home appliances. However, in the related art, services can be provided only by one service provider, limiting the popularity of home appliance intelligence.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first object of the present invention is to provide a network distribution method for a home appliance, so that a mobile terminal can establish a TCP connection with the home appliance through a TCP server address other than a default TCP server address, and other service providers can provide services for the home appliance, thereby facilitating service providers other than a producer of the home appliance to provide services for the home appliance, and improving the popularization of the intellectualization of the home appliance.
The second purpose of the invention is to provide a network distribution system of household appliances.
A third object of the present invention is to provide a mobile terminal.
The fourth purpose of the present invention is to provide a WIFI module of a household appliance.
A fifth object of the present invention is to propose a household appliance.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a network distribution method for a home appliance, including the following steps: the mobile terminal receives a UDP packet broadcasted by the household appliance; the mobile terminal judges whether the UDP packet contains a TCP server address; if the UDP packet is judged to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the TCP server address; and if the UDP packet does not contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the default TCP server address.
According to the network distribution method of the household appliance, in the process of distributing the network to the household appliance, the mobile terminal receives a UDP packet broadcasted by the household appliance, when the UDP packet is judged to contain a TCP server address, the mobile terminal establishes TCP connection with the household appliance through the TCP server address, and when the UDP packet is judged not to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance through the default TCP server address.
In addition, the network distribution method of the household appliance according to the invention can also have the following additional technical features:
in an embodiment of the present invention, after the mobile terminal establishes a TCP connection with the home appliance, the method further includes:
the mobile terminal sends a distribution network instruction to the household appliance, wherein the distribution network instruction comprises network access information of a router;
and the household appliance accesses the router according to the network access information.
In an embodiment of the present invention, the distribution network instruction further includes a random number generated by the mobile terminal, and after the home appliance accesses the router according to the network access information, the distribution network instruction further includes:
the mobile terminal sends the random number to a server;
the household appliance extracts the random number from the distribution network instruction and sends the random number to a server;
the server judges whether the random numbers sent by the mobile terminal and the household appliance are consistent or not;
if the network distribution is consistent with the network distribution request, the server judges that the network distribution is successful;
and if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
In one embodiment of the present invention, further comprising:
the mobile terminal extracts the length or the content of a UDP packet broadcasted by the household appliance;
and the mobile terminal acquires a corresponding distribution network mode according to the length or the content of the UDP packet broadcast by the household appliance.
In order to achieve the above object, a network distribution system of a home appliance is provided in an embodiment of a second aspect of the present invention, where the system includes a mobile terminal and a home appliance, where:
the mobile terminal is used for receiving a UDP packet broadcasted by a household appliance and judging whether the UDP packet contains a TCP server address, if the UDP packet contains the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the TCP server address, and if the UDP packet does not contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to a default TCP server address; the household appliance is used for broadcasting the UDP packet.
According to the distribution network system of the household appliance, in the process of distributing the network to the household appliance, the mobile terminal receives the UDP packet broadcasted by the household appliance, when the UDP packet is judged to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance through the TCP server address, and when the UDP packet is judged not to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance through the default TCP server address.
The distribution network system of the household appliance can also have the following additional technical characteristics:
in an embodiment of the present invention, the mobile terminal is further configured to send a distribution network instruction to the home appliance, where the distribution network instruction includes network access information of a router;
and the household appliance is also used for accessing a router according to the network access information.
In an embodiment of the present invention, the distribution network instruction further includes a random number generated by the mobile terminal, and the system further includes a server, where:
the mobile terminal is also used for sending the random number to a server;
the household appliance is also used for extracting the random number from the distribution network instruction and sending the random number to a server;
the server is used for receiving the random numbers sent by the mobile terminal and the household appliance and judging whether the random numbers sent by the mobile terminal and the household appliance are consistent or not, and if so, the server judges that the distribution network is successful; and if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
In an embodiment of the present invention, the mobile terminal is further configured to extract a length or a content of a UDP packet broadcast by the home appliance, and obtain a corresponding distribution network mode according to the length or the content of the UDP packet broadcast by the home appliance.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides a mobile terminal, including: the receiving module is used for receiving UDP packets broadcasted by the household appliance; the judging module is used for judging whether the UDP packet contains a TCP server address or not; the first communication module is used for controlling the mobile terminal to establish TCP connection with the household appliance according to the TCP server address when the UDP packet is judged to contain the TCP server address; and the second communication module is used for controlling the mobile terminal to establish TCP connection with the household appliance according to the default TCP server address when the UDP packet is judged not to contain the TCP server address.
According to the mobile terminal provided by the embodiment of the invention, in the process of distributing a network to the household appliances, the mobile terminal receives the UDP packet broadcasted by the household appliances, and when the UDP packet is judged to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliances through the TCP server address, and when the UDP packet is judged not to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliances through the default TCP server address, so that the mobile terminal can establish TCP connection with the household appliances through the TCP server address except the default TCP server address, and other service providers can provide services for the household appliances, thereby facilitating the service providers except the household appliances to provide services for the household appliances, and improving the intelligentization popularization of the household appliances.
In addition, the mobile terminal according to the present invention may further have the following additional technical features:
in an embodiment of the present invention, the first sending module is configured to send a distribution network instruction to the home appliance, so that the home appliance accesses the router according to network access information of the router in the distribution network instruction.
In an embodiment of the present invention, the distribution network instruction further includes a random number generated by the mobile terminal, and further includes:
the second sending module is further used for sending the random number to a server so that the server can judge whether the random numbers sent by the mobile terminal and the household appliance are consistent or not, and if so, the server judges that the distribution network is successful; and if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
In one embodiment of the present invention, further comprising:
the extraction module is used for extracting the length or the content of the UDP packet broadcasted by the household appliance;
and the acquisition module is used for acquiring the corresponding distribution network mode according to the length or the content of the UDP packet broadcast by the household appliance.
In order to achieve the above object, a fourth aspect of the present invention provides a WIFI module of a home appliance, including a broadcasting sub-module and a communication sub-module, where: the broadcasting submodule is used for broadcasting a UDP packet so that when the mobile terminal judges that the UDP packet contains a server address, the mobile terminal establishes TCP connection with the communication submodule according to the TCP server address; and the communication submodule is used for establishing TCP connection with the mobile terminal.
According to the WIFI module of the household appliance, the UDP packet is broadcasted through the broadcasting sub-module, the mobile terminal receives the UDP packet broadcasted by the WIFI module of the household appliance, and when the mobile terminal judges that the UDP packet contains the TCP server address, the mobile terminal establishes TCP connection with the communication sub-module according to the TCP server address, so that the household appliance can be provided with services through other service providers besides a generator of the household appliance, the requirements of the other service providers for providing services for the household appliance are met, and the intelligent popularization of the household appliance is improved.
The WIFI module of the household appliance may also have the following additional technical features:
in one embodiment of the present invention, further comprising:
the receiving submodule is used for receiving a distribution network instruction sent by the mobile terminal, wherein the distribution network instruction comprises network access information of a router;
and the access sub-module is used for accessing the route according to the network access information.
In an embodiment of the present invention, the distribution network instruction further includes a random number generated by the mobile terminal, and further includes:
the processing submodule is used for extracting the random number from the distribution network instruction and sending the random number to a server so that the server can judge whether the random numbers sent by the mobile terminal and the household appliance are consistent or not, and if so, the server judges that the distribution network is successful; and if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
In order to achieve the above object, a fifth embodiment of the present invention provides a household appliance, including the WIFI module of the household appliance according to the fourth embodiment of the present invention.
According to the household appliance, the household appliance broadcasts the UDP packet, the mobile terminal receives the UDP packet broadcasted by the WIFI module of the household appliance, and when the mobile terminal judges that the UDP packet contains the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the TCP server address, so that the household appliance can be provided with services according to other service providers besides a generator of the household appliance, the requirement of the other service providers for providing services for the household appliance is met, and the intelligent popularization of the household appliance is improved.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart of a network distribution method of a home appliance according to an embodiment of the present invention;
fig. 2 is a flowchart of a network distribution method of a home appliance according to another embodiment of the present invention;
fig. 3 is a flowchart of a network distribution method of a home appliance according to still another embodiment of the present invention;
fig. 4 is a flowchart of a network distribution method of a home appliance according to still another embodiment of the present invention;
fig. 5 is a schematic configuration diagram of a distribution network system of a home appliance according to an embodiment of the present invention;
fig. 6 is a schematic configuration diagram of a distribution network system of a home appliance according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of a mobile terminal according to yet another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a mobile terminal according to still another embodiment of the present invention;
fig. 11 is a schematic structural diagram of a WIFI module of a home appliance according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a WIFI module of a home appliance according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The network distribution method, the network distribution system, the household appliance and the mobile terminal of the household appliance according to the embodiment of the invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a network distribution method of a home appliance according to an embodiment of the present invention.
As shown in fig. 1, the network distribution method of the household appliance includes the following steps:
and S11, the mobile terminal receives the UDP packet broadcasted by the household appliance.
In the process of the network distribution of the household appliances, the household appliances actively broadcast the UDP packets, the mobile terminal actively monitors the UPD packets and acquires the UDP packets broadcast by the household appliances.
The mobile terminal may be, for example, a mobile phone, a tablet computer, a personal digital assistant, and other hardware devices having various operating systems.
The household appliance can be, for example, an intelligent television, a refrigerator, an intelligent washing machine or other devices.
The UDP packet may include, but is not limited to, a TCP server address, and may further include information such as manufacturer information of the home appliance, device type information, identification information of the home appliance, a broadcast port, and a length of the UDP packet.
The identification information of the home appliance is information that uniquely identifies the home appliance, and for example, the identification information of the home appliance may be a product serial number sn (serial number) of the home appliance.
Here, it should be understood that the product serial number SN is only one example of identification information, and the identification information of this embodiment is not limited thereto.
In an embodiment of the present invention, in order to reduce the trouble of the mobile terminal allocating a virtual Identifier (ID) to the home appliance, when the home appliance performs a network distribution, the home appliance may generate a virtual ID of the home appliance according to a media/Media Access Control (MAC) address of the home appliance according to a preset rule, and add the virtual ID to a UDP packet. Correspondingly, after receiving the UDP packet broadcast by the household appliance, the mobile terminal can extract the virtual ID in the UDP packet and store the virtual ID.
The mobile terminal stores the virtual ID, so that the mobile terminal can conveniently judge whether the virtual ID in the received data packet of the household appliance is the same as the virtual ID stored in the mobile terminal itself or not in the communication process of the mobile terminal and the household appliance, and if the virtual ID is the same as the virtual ID stored in the mobile terminal, the mobile terminal processes the data packet sent by the household appliance, so that the communication safety is improved by verifying whether the virtual ID is the same or not.
S12, the mobile terminal determines whether the UDP packet includes a TCP server address.
And S13, if the UDP packet is judged to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the TCP server address.
And S14, if the UDP packet is judged not to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the default TCP server address.
For example, assuming that the default TCP server address in the mobile terminal is the address of the server in the united states, if the UDP packet broadcasted by the home appliance 1 in the mobile terminal includes the TCP server address, and assuming that the TCP server address in the UDP packet is the address of a certain internet server (for example, a server in the kyoto), at this time, the mobile terminal may determine that the home appliance 1 supports providing a service through the certain internet server, and the mobile terminal establishes a TCP connection with the home appliance 1 according to the address of the certain internet server. Therefore, the mobile terminal can establish TCP connection with the household appliance through the TCP server address except the default TCP server address, other service providers can provide services for the household appliance, the requirements of the other service providers for providing services for the household appliance are met, and the intelligent popularization of the household appliance is improved.
According to the network distribution method of the household appliance, in the process of distributing the network to the household appliance, the mobile terminal receives a UDP packet broadcasted by the household appliance, when the UDP packet is judged to contain a TCP server address, the mobile terminal establishes TCP connection with the household appliance through the TCP server address, and when the UDP packet is judged not to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance through the default TCP server address, so that the mobile terminal can establish TCP connection with the household appliance through the TCP server address except the default TCP server address, other service providers can provide services for the household appliance, service providers except a producer of the household appliance can provide services for the household appliance conveniently, and the intelligent popularization of the household appliance is improved.
Based on the foregoing embodiment, in an embodiment of the present invention, after the mobile terminal establishes the TCP connection with the home appliance, in order to enable the home appliance to access the network, as shown in fig. 2, the method for network distribution of the home appliance may further include:
and S15, the mobile terminal sends a distribution network instruction to the household appliance.
The distribution network instruction may include, but is not limited to, network access information of the router, for example, the distribution network instruction further includes information such as a random number and length information of the network access information.
The network access information of the router may include a Service Set identifier ssid (Service Set identifier) and a password, and may further include a basic Service Set identifier bssid (basic Service Set identifier).
And S16, the household appliance accesses the router according to the network access information.
In an embodiment of the invention, after the household appliance receives the distribution network instruction sent by the mobile terminal, the household appliance can analyze the distribution network instruction through an analysis protocol of the distribution network instruction and return a response instruction to the mobile terminal according to an analysis result.
It should be understood that the analysis protocol of the distribution network command is a protocol agreed in advance between the mobile terminal and the household appliance.
As an exemplary embodiment, it is assumed that the mobile terminal has a pre-agreement with the home appliance: if the household appliance sends a number 0 to the mobile terminal, the network access information of the router is correct; if the household appliance sends a number 1 to the mobile terminal, the SSID of the router is indicated to be wrong; if the household appliance sends the number 2 to the mobile terminal, the password of the router is wrong; if the home appliance transmits a number 3 to the mobile terminal indicating that the BSSID of the router is wrong.
After the household appliance analyzes the received distribution network instruction, the household appliance can send a corresponding response instruction to the mobile terminal according to the analysis result, so that the mobile terminal can determine whether to send the distribution network instruction to the household appliance again according to the received response instruction conveniently.
According to the network distribution method of the household appliance, after the TCP connection is established between the mobile terminal and the household appliance, the network access information of the router is sent to the household appliance through the mobile terminal, and the household appliance can be quickly accessed to the router according to the network access information, so that a user can control the household appliance to be quickly accessed to a network through the mobile terminal, and the user can conveniently and uniformly manage the network access of the household appliance through the mobile terminal.
Based on the foregoing embodiment, after the mobile terminal establishes the TCP connection with the home appliance, in order to determine whether the home appliance in the distribution network successfully accesses the router, in an embodiment of the present invention, the distribution network instruction may further include a random number generated by the mobile terminal, as shown in fig. 3, the distribution network method of the home appliance may further include:
s17, the mobile terminal transmits the random number to the server.
In one embodiment of the invention, after the mobile terminal sends the distribution network instruction to the household appliances, the mobile terminal may send a random number to the server in order to determine whether the household appliances of the distribution network successfully access the router.
It should be understood that the random number is generated by the mobile terminal in advance through the prior art, and is not described herein again.
And S18, the household appliance extracts the random number from the distribution network command and sends the random number to the server.
Specifically, after the household appliance receives a distribution network instruction sent by the mobile terminal, the household appliance can extract a random number in the distribution network instruction and send the extracted random number to the server.
Among them, it is understood that, in order to distinguish which home appliance is the random number transmitted, the home appliance transmits the random number and identification information of the home appliance to the server.
And S19, the server judges whether the random numbers sent by the mobile terminal and the household appliance are consistent.
And S20, if the two are consistent, the server judges that the distribution network is successful.
In one implementation of the invention, in order to enable the mobile terminal to obtain whether the household appliance is accessed to the router, after the server judges that the network distribution is successful, the server can send a network distribution success message to the mobile terminal, and the mobile terminal can obtain the household appliance access router according to the network distribution success message.
After the mobile terminal determines that the household appliance is accessed to the router, the mobile terminal can send a binding request carrying identification information of the household appliance to the server, and the server binds the mobile terminal and the corresponding household appliance according to the binding request. Therefore, the user can control the corresponding household appliance through the mobile terminal.
And S21, if not, the server judges that the distribution network fails and sends a distribution network failure message to the mobile terminal.
According to the network distribution method of the household appliance, after the TCP connection is established between the mobile terminal and the household appliance, the server receives the random numbers sent by the mobile terminal and the household appliance, judges whether the random numbers sent by the mobile terminal and the household appliance are consistent or not, determines that the network distribution is successful if the random numbers are consistent, and sends the network distribution failure to the mobile terminal if the random numbers are inconsistent, so that the mobile terminal can obtain whether the household appliance is successfully accessed to the router according to the server.
Based on the foregoing embodiment, in an implementation of the present invention, in order to be compatible with a network distribution mode of an existing household appliance, as shown in fig. 4, the network distribution method of the household appliance may further include:
s22, the mobile terminal extracts the length or content of the UDP packet broadcast by the home appliance.
And S23, the mobile terminal acquires the corresponding distribution network mode according to the length or the content of the UDP packet broadcast by the household appliance.
Specifically, after the mobile terminal receives the UDP packet broadcast by the home appliance, the mobile terminal may extract the length of the UDP packet, or extract the content of the UDP packet, and determine the distribution network mode used by the home appliance according to the correspondence between the length of the UDP packet and the distribution network mode, or the correspondence between the content of the UDP packet and the distribution network mode.
That is to say, the embodiment can determine, through the length or the content of the UDP packet, whether the home appliance performs the network distribution in the existing network distribution manner or the network distribution manner disclosed in the embodiment.
As an embodiment, when the mobile terminal actively monitors the UDP packet, the mobile terminal may also monitor a broadcast port used in the existing distribution network mode and a broadcast port used in the distribution network mode of the embodiment, and determine the distribution network mode corresponding to the home appliance according to the monitoring result.
For example, assuming that the broadcast port used by the household appliance adopting the existing distribution network mode is 7083, and the broadcast port used by the distribution network mode of this embodiment is 15000, in the process of broadcasting the UDP packet by the household appliance, the mobile terminal may monitor the broadcast ports 7083 and 15000 at the same time, and if it is monitored that the broadcast port 15000 receives the UDP packet to the household appliance, it is determined that the corresponding household appliance uses the distribution network mode of this embodiment to perform distribution.
It should be noted that, if it is determined that the home appliance uses the distribution network mode of this embodiment to perform distribution according to the length or content of the UDP packet, at this time, the mobile terminal may further determine whether the UDP packet includes the TCP server address information, and perform step S13 or S14.
In summary, in the network distribution method for the home appliance according to the embodiment of the present invention, the mobile terminal may determine the network distribution mode of the home appliance according to the length or content of the UDP packet broadcast by the home appliance, and perform network distribution on the home appliance by using the network distribution mode supported by the home appliance.
In order to implement the embodiment, the invention further provides a network distribution system of the household appliance.
Fig. 5 is a schematic structural diagram of a distribution network system of a home appliance according to an embodiment of the present invention.
As shown in fig. 5, the distribution network system of the home appliance includes a mobile terminal 10 and a home appliance 20, wherein:
the mobile terminal 10 is configured to receive a UDP packet broadcast by the home appliance 20, and determine whether the UDP packet includes a TCP server address, if the UDP packet includes the TCP server address, the mobile terminal 10 establishes a TCP connection with the home appliance 20 according to the TCP server address, and if the UDP packet does not include the TCP server address, the mobile terminal establishes a TCP connection with the home appliance 20 according to a default TCP server address.
The home appliance 20 is used to broadcast UDP packets.
In one embodiment of the present invention, in order to make the home appliance accessible to the network, the mobile terminal 10 is further configured to: a distribution network command is sent to the household appliance 20.
The distribution network instruction comprises network access information of the router.
The household appliance 20 is further configured to access the router according to the network access information.
After the TCP connection is established between the mobile terminal and the home appliance, in order to determine whether the network distribution between the mobile terminal and the home appliance is successful, in an embodiment of the present invention, the network distribution instruction further includes a random number generated by the mobile terminal, as shown in fig. 6, and the system further includes a server 30, where:
the mobile terminal 10 is also configured to transmit the random number to the server 30.
The household appliance 20 is further configured to extract a random number from the distribution network command and send the random number to the server 30.
The server 30 is configured to receive the random numbers sent by the mobile terminal 10 and the home appliance 20, and determine whether the random numbers sent by the mobile terminal 10 and the home appliance 20 are consistent, and if so, the server 30 determines that the distribution network is successful. If not, the server 30 determines that the distribution network fails and sends a distribution network failure message to the mobile terminal.
In an embodiment of the present invention, the mobile terminal 10 is further configured to extract the length or content of the UDP packet broadcast by the home appliance 20, and obtain a corresponding distribution network mode according to the length or content of the UDP packet broadcast by the home appliance 20.
It should be noted that the explanation of the foregoing network distribution method embodiment of the home appliance is also applicable to the network distribution system of the home appliance of the embodiment, and the implementation principle is similar, and is not described herein again.
According to the distribution network system of the household appliance, in the process of distributing the network to the household appliance, the mobile terminal receives the UDP packet broadcasted by the household appliance, when the UDP packet is judged to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance through the TCP server address, and when the UDP packet is judged not to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance through the default TCP server address.
In order to implement the above embodiments, the present invention further provides a mobile terminal.
Fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
As shown in fig. 7, the mobile terminal 10 includes a receiving module 110, a determining module 120, a first communication module 130 and a second communication module 140, wherein:
the receiving module 110 is configured to receive UDP packets broadcast by the home appliance.
The determining module 120 is configured to determine whether the UDP packet includes a TCP server address.
The first communication module 130 is configured to control the mobile terminal to establish a TCP connection with the home appliance according to the TCP server address when it is determined that the UDP packet includes the TCP server address.
The second communication module 140 is configured to control the mobile terminal to establish a TCP connection with the home appliance according to the default TCP server address when it is determined that the UDP packet does not include the TCP server address.
In order to make the home appliance accessible to the network, in an embodiment of the present invention, on the basis of the embodiment shown in fig. 7, as shown in fig. 8, the mobile terminal 10 may further include a first sending module 150, wherein:
the first sending module 150 is configured to send a distribution network instruction to the home appliance, so that the home appliance accesses the router according to the network access information of the router in the distribution network instruction.
In an embodiment of the present invention, the distribution network instruction further includes a random number generated by the mobile terminal, and in order to determine whether the distribution network between the mobile terminal and the home appliance is successful, on the basis shown in fig. 8, as shown in fig. 9, the mobile terminal 10 may further include a second sending module 160, where:
the second sending module 160 is further configured to send the random number to the server, so that the server determines whether the random numbers sent by the mobile terminal and the home appliance are consistent, and if so, the server determines that the distribution network is successful. And if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
In an embodiment of the present invention, in order to be compatible with the existing distribution network, on the basis shown in fig. 7, as shown in fig. 10, the mobile terminal 10 may further include an extracting module 170 and an obtaining module 180, where:
the extraction module 170 is configured to extract the length or content of the UDP packet broadcast by the home appliance.
The obtaining module 180 is configured to obtain a corresponding distribution network mode according to the length or content of the UDP packet broadcast by the home appliance.
It should be noted that the foregoing explanation of the embodiment of the network distribution method for the home appliance is also applicable to the mobile terminal of the embodiment, and the implementation principle is similar, and is not described herein again.
According to the mobile terminal provided by the embodiment of the invention, in the process of distributing a network to the household appliances, the mobile terminal receives the UDP packet broadcasted by the household appliances, and when the UDP packet is judged to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliances through the TCP server address, and when the UDP packet is judged not to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliances through the default TCP server address, so that the mobile terminal can establish TCP connection with the household appliances through the TCP server address except the default TCP server address, and other service providers can provide services for the household appliances, thereby facilitating the service providers except the household appliances to provide services for the household appliances, and improving the intelligentization popularization of the household appliances.
In order to implement the above embodiments, the present invention further provides a WIFI module of a home appliance.
Fig. 11 is a schematic structural diagram of a WIFI module of a home appliance according to an embodiment of the present invention.
As shown in fig. 11, the WIFI module of the home appliance includes a broadcasting sub-module 210 and a communication sub-module 220, wherein:
the broadcast sub-module 210 is configured to broadcast the UDP packet, so that when the mobile terminal determines that the UDP packet includes the TCP server address, the mobile terminal establishes a TCP connection with the communication sub-module 220 according to the TCP server address.
The communication sub-module 220 is used for establishing a TCP connection with the mobile terminal.
In an embodiment of the present invention, on the basis of the embodiment shown in fig. 11, as shown in fig. 12, the WIFI module of the home appliance may further include a receiving sub-module 230 and an accessing sub-module 240, where:
the receiving submodule 230 is configured to receive a distribution network instruction sent by the mobile terminal.
The distribution network instruction may include, but is not limited to, network access information of the router, for example, the distribution network instruction further includes information such as a random number and length information of the network access information.
The network access information of the router may include a Service Set identifier ssid (Service Set identifier) and a password, and may further include a basic Service Set identifier bssid (basic Service Set identifier).
The access sub-module 240 is configured to access the route according to the network access information.
In an embodiment of the present invention, the distribution network instruction further includes a random number generated by the mobile terminal, and in order to verify whether the distribution network between the mobile terminal and the home appliance is successful, as shown in fig. 12, the WIFI module of the home appliance may further include a processing sub-module 250, where:
the processing sub-module 250 is configured to extract a random number from the distribution network instruction, and send the random number to the server, so that the server determines whether the random numbers sent by the mobile terminal and the home appliance are consistent, and if so, the server determines that the distribution network is successful. And if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
It should be noted that the foregoing explanation of the embodiment of the network distribution method for the household appliance is also applicable to the WIFI module of the household appliance in this embodiment, and the implementation principle is similar, and is not repeated here.
According to the WIFI module of the household appliance, the UDP packet is broadcasted through the broadcasting sub-module, the mobile terminal receives the UDP packet broadcasted by the WIFI module of the household appliance, and when the mobile terminal judges that the UDP packet contains the TCP server address, the mobile terminal establishes TCP connection with the communication sub-module according to the TCP server address, so that the household appliance can be provided with services through other service providers besides a generator of the household appliance, the requirements of the other service providers for providing services for the household appliance are met, and the intelligent popularization of the household appliance is improved.
In order to realize the embodiment, the invention further provides a household appliance.
A household appliance comprising the WIFI module of the household appliance of the fourth aspect embodiment of the present invention.
According to the household appliance, the household appliance broadcasts the UDP packet, the mobile terminal receives the UDP packet broadcasted by the WIFI module of the household appliance, and when the mobile terminal judges that the UDP packet contains the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the TCP server address, so that the household appliance can be provided with services through other service providers besides a generator of the household appliance, the requirements of the other service providers for providing services for the household appliance are met, and the intelligent popularization of the household appliance is improved.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A network distribution method of a household appliance is characterized by comprising the following steps:
the mobile terminal receives a UDP packet broadcasted by the household appliance;
the mobile terminal judges whether the UDP packet contains a TCP server address;
if the UDP packet is judged to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the TCP server address;
if the UDP packet is judged not to contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the default TCP server address;
after the mobile terminal establishes the TCP connection with the home appliance, the method further includes:
the mobile terminal sends a distribution network instruction to the household appliance, wherein the distribution network instruction comprises network access information of a router;
and the household appliance accesses the router according to the network access information.
2. The network distribution method for the household appliance according to claim 1, wherein the network distribution instruction further includes a random number generated by the mobile terminal, and after the household appliance accesses the router according to the network access information, the method further includes:
the mobile terminal sends the random number to a server;
the household appliance extracts the random number from the distribution network instruction and sends the random number to a server;
the server judges whether the random numbers sent by the mobile terminal and the household appliance are consistent or not;
if the network distribution is consistent with the network distribution request, the server judges that the network distribution is successful;
and if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
3. The network distribution method of a household appliance according to claim 1, further comprising:
the mobile terminal extracts the length or the content of a UDP packet broadcasted by the household appliance;
and the mobile terminal acquires a corresponding distribution network mode according to the length or the content of the UDP packet broadcast by the household appliance.
4. The utility model provides a net system is joined in marriage to domestic appliance which characterized in that, includes mobile terminal and domestic appliance, wherein:
the mobile terminal is used for receiving a UDP packet broadcasted by a household appliance and judging whether the UDP packet contains a TCP server address, if the UDP packet contains the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to the TCP server address, and if the UDP packet does not contain the TCP server address, the mobile terminal establishes TCP connection with the household appliance according to a default TCP server address;
the household appliance is used for broadcasting the UDP packet;
the mobile terminal is further configured to send a distribution network instruction to the home appliance, where the distribution network instruction includes network access information of a router;
and the household appliance is also used for accessing a router according to the network access information.
5. The distribution network system of home appliances of claim 4, wherein the distribution network instructions further comprise a random number generated by the mobile terminal, the system further comprising a server, wherein:
the mobile terminal is also used for sending the random number to a server;
the household appliance is also used for extracting the random number from the distribution network instruction and sending the random number to a server;
the server is used for receiving the random numbers sent by the mobile terminal and the household appliance and judging whether the random numbers sent by the mobile terminal and the household appliance are consistent or not, and if so, the server judges that the distribution network is successful; and if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
6. The distribution network system of the household appliances according to claim 4, wherein the mobile terminal is further configured to extract the length or content of the UDP packet broadcast by the household appliances, and obtain the corresponding distribution network mode according to the length or content of the UDP packet broadcast by the household appliances.
7. A mobile terminal, comprising:
the receiving module is used for receiving UDP packets broadcasted by the household appliance;
the judging module is used for judging whether the UDP packet contains a TCP server address or not;
the first communication module is used for controlling the mobile terminal to establish TCP connection with the household appliance according to the TCP server address when the UDP packet is judged to contain the TCP server address;
the second communication module is used for controlling the mobile terminal to establish TCP connection with the household appliance according to a default TCP server address when the UDP packet is judged not to contain the TCP server address;
further comprising:
the first sending module is used for sending a distribution network instruction to the household appliance so that the household appliance can access the router according to the network access information of the router in the distribution network instruction.
8. The mobile terminal of claim 7, wherein the distribution network instructions further comprise a random number generated by the mobile terminal, further comprising:
the second sending module is further used for sending the random number to a server so that the server can judge whether the random numbers sent by the mobile terminal and the household appliance are consistent or not, and if so, the server judges that the distribution network is successful; and if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
9. The mobile terminal of claim 8, further comprising:
the extraction module is used for extracting the length or the content of the UDP packet broadcasted by the household appliance;
and the acquisition module is used for acquiring the corresponding distribution network mode according to the length or the content of the UDP packet broadcast by the household appliance.
10. The utility model provides a domestic appliance's WIFI module which characterized in that, includes broadcast submodule piece and communication submodule piece, wherein:
the broadcast submodule is used for broadcasting a UDP packet so that when the mobile terminal judges that the UDP packet contains a TCP server address, the mobile terminal establishes TCP connection with the communication submodule according to the TCP server address;
the communication submodule is used for establishing TCP connection with the mobile terminal; further comprising:
the receiving submodule is used for receiving a distribution network instruction sent by the mobile terminal, wherein the distribution network instruction comprises network access information of a router;
and the access sub-module is used for accessing the route according to the network access information.
11. The WIFI module of a home appliance of claim 10, wherein the distribution network instruction further includes a random number generated by the mobile terminal, further comprising:
the processing submodule is used for extracting the random number from the distribution network instruction and sending the random number to a server so that the server can judge whether the random numbers sent by the mobile terminal and the household appliance are consistent or not, and if so, the server judges that the distribution network is successful; and if the network distribution failure information is inconsistent with the network distribution failure information, the server judges that the network distribution fails and sends a network distribution failure message to the mobile terminal.
12. A household appliance, characterized in that it comprises: WIFI module of a domestic appliance according to any one of claims 10 to 11.
CN201610883726.3A 2016-10-09 2016-10-09 Network distribution method and system of household appliance, household appliance and mobile terminal Active CN106657234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610883726.3A CN106657234B (en) 2016-10-09 2016-10-09 Network distribution method and system of household appliance, household appliance and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610883726.3A CN106657234B (en) 2016-10-09 2016-10-09 Network distribution method and system of household appliance, household appliance and mobile terminal

Publications (2)

Publication Number Publication Date
CN106657234A CN106657234A (en) 2017-05-10
CN106657234B true CN106657234B (en) 2020-09-04

Family

ID=58854797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610883726.3A Active CN106657234B (en) 2016-10-09 2016-10-09 Network distribution method and system of household appliance, household appliance and mobile terminal

Country Status (1)

Country Link
CN (1) CN106657234B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800710A (en) * 2017-11-08 2018-03-13 绵阳美菱软件技术有限公司 A kind of intelligent appliance and platform connection methods, system and Internet of Things module
CN110582082B (en) * 2018-06-08 2022-06-10 阿里巴巴集团控股有限公司 Method and device for accessing network to be configured to network hotspot equipment
CN112019358A (en) * 2019-05-28 2020-12-01 阿里巴巴集团控股有限公司 Network configuration method, device, equipment and system
CN112311831B (en) * 2019-07-31 2023-07-18 广东美的制冷设备有限公司 Distribution network control method, distribution network control device, household appliance and storage medium
CN114449020B (en) * 2020-10-19 2023-11-10 美的集团股份有限公司 Operation method of operation equipment based on control terminal, electronic equipment and storage medium
CN112867041B (en) * 2020-12-28 2023-03-21 美的集团股份有限公司 Network distribution method of household appliance, mobile terminal and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489245A (en) * 2008-12-31 2009-07-22 华为技术有限公司 Network disaster tolerance method, terminal and call session control function entity
CN103873472A (en) * 2014-03-18 2014-06-18 广州市纬志电子科技有限公司 Method for automatically having access to network
CN104601740A (en) * 2014-12-22 2015-05-06 广东美的制冷设备有限公司 Method and system for associating controlled terminal with control terminal
CN105162665A (en) * 2015-08-31 2015-12-16 小米科技有限责任公司 Server access method and device
CN105425605A (en) * 2015-12-22 2016-03-23 小米科技有限责任公司 Method, device and system for connecting multiple servers to intelligent household appliance
CN105450779A (en) * 2015-12-31 2016-03-30 九阳股份有限公司 Method for achieving connection between one household electric appliance and multiple servers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489245A (en) * 2008-12-31 2009-07-22 华为技术有限公司 Network disaster tolerance method, terminal and call session control function entity
CN103873472A (en) * 2014-03-18 2014-06-18 广州市纬志电子科技有限公司 Method for automatically having access to network
CN104601740A (en) * 2014-12-22 2015-05-06 广东美的制冷设备有限公司 Method and system for associating controlled terminal with control terminal
CN105162665A (en) * 2015-08-31 2015-12-16 小米科技有限责任公司 Server access method and device
CN105425605A (en) * 2015-12-22 2016-03-23 小米科技有限责任公司 Method, device and system for connecting multiple servers to intelligent household appliance
CN105450779A (en) * 2015-12-31 2016-03-30 九阳股份有限公司 Method for achieving connection between one household electric appliance and multiple servers

Also Published As

Publication number Publication date
CN106657234A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106657234B (en) Network distribution method and system of household appliance, household appliance and mobile terminal
EP3550892B1 (en) Method for network slice selection, user equipment, and network device
US20210084443A1 (en) Methods of joint registration and de-registration for proximity services and internet of things services
CN108064442B (en) Intelligent equipment control method, control device and control system
US9967738B2 (en) Methods and arrangements for enabling data transmission between a mobile device and a static destination address
CN106571985B (en) Network distribution method and system of household appliance, household appliance and router
CN109548019B (en) Network distribution method and system
CN110708688A (en) Intelligent equipment network distribution method and device, controller and medium
CN104113458A (en) Mobile terminal and intelligent household appliance interconnecting method and device
CN105636040A (en) Device networking method and system
EP3284310B1 (en) Method and apparatus for end device discovering another end device
CN105471983A (en) Method and system for establishing internet-of-things communication
EP3057287A1 (en) Node allocation method, device and system
CN111107605A (en) Network distribution method of household electrical appliance and household electrical appliance
CN106571986B (en) Network distribution method and system of household appliance, household appliance and router
CN105072148B (en) Method and device for establishing connection with terminal
EP2936891B1 (en) Method, control node, gateway and computer program for enabling communication with a newly detected device
WO2014015525A1 (en) Method and device for querying for user online state
CN112311633B (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN107370690B (en) Service content transmission method, terminal and network side equipment
CN112994996B (en) Home network sharing method, MEC server, computer device, and medium
CN112311831B (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN115002771B (en) Connection method, device and system between intelligent home terminal and wireless network equipment
CN117319104A (en) Network distribution method of intelligent household equipment, terminal equipment and processor
CN117319110A (en) Distribution network method, processor and distribution network system of intelligent household equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200407

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Applicant after: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Qianhai Shenzhen Hong Kong cooperation zone before the Bay Road No. 1 building 201 room A

Applicant before: MIDEA SMART HOME TECHNOLOGY Co.,Ltd.

Applicant before: MIDEA GROUP Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Patentee after: Meizhi Optoelectronic Technology Co., Ltd

Address before: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Patentee before: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder