Movatterモバイル変換


[0]ホーム

URL:


CN114679692B - Home appliance communication method, home appliance, storage medium and related system - Google Patents

Home appliance communication method, home appliance, storage medium and related system
Download PDF

Info

Publication number
CN114679692B
CN114679692BCN202110441115.4ACN202110441115ACN114679692BCN 114679692 BCN114679692 BCN 114679692BCN 202110441115 ACN202110441115 ACN 202110441115ACN 114679692 BCN114679692 BCN 114679692B
Authority
CN
China
Prior art keywords
home
execution
instruction
executed
layer protocol
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
CN202110441115.4A
Other languages
Chinese (zh)
Other versions
CN114679692A (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 Group Co Ltd
Midea Group Shanghai Co Ltd
Original Assignee
Midea Group Co Ltd
Midea Group Shanghai 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 Midea Group Co Ltd, Midea Group Shanghai Co LtdfiledCriticalMidea Group Co Ltd
Priority to CN202110441115.4ApriorityCriticalpatent/CN114679692B/en
Publication of CN114679692ApublicationCriticalpatent/CN114679692A/en
Application grantedgrantedCritical
Publication of CN114679692BpublicationCriticalpatent/CN114679692B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The application discloses a household electrical appliance communication method, household electrical appliance, storage medium and related system, wherein the household electrical appliance communication method comprises the following steps: the current home appliance utilizes a first transport layer protocol to dynamically networking with other home appliances; after networking with other home devices, communicating with the other home devices by using a second transport layer protocol; the first transmission layer protocol is UDP protocol, and the second transmission layer protocol is TCP protocol. By the adoption of the scheme, the communication cost of the household appliances can be reduced, and the flexibility and reliability of the communication of the household appliances are improved.

Description

Home appliance communication method, home appliance, storage medium and related system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a home appliance communication method, a home appliance, a storage medium, and a related system.
Background
With the development of internet of things (Internet of Things, ioT) technology, the home appliances communicate with each other to realize intelligent interconnection, which has gradually become a mainstream trend. At present, the home appliances generally realize mutual communication through the background of an external network, and the like, and have high cost, poor flexibility and reliability. In view of this, how to reduce the cost of communication of the home appliances and improve the flexibility and reliability of communication of the home appliances is a problem to be solved.
Disclosure of Invention
The application provides a household appliance communication method, a household appliance, a storage medium and a related system, so as to reduce the cost of household appliance communication and improve the flexibility and reliability of household appliance communication.
In order to solve the technical problems, the application adopts a technical scheme that: a communication method of home appliances comprises the steps that the current home appliances are dynamically networked with other home appliances by using a first transmission layer protocol; after networking with other home devices, communicating with the other home devices by using a second transport layer protocol; the first transmission layer protocol is UDP protocol, and the second transmission layer protocol is TCP protocol.
According to an embodiment of the present application, a first transport layer protocol is used to dynamically network with other home devices, including: and performing device discovery by using the first transport layer protocol to network with other household appliances.
According to an embodiment of the present application, device discovery using a first transport layer protocol includes: monitoring the identification information of other household appliances by using a first transport layer protocol, and broadcasting the identification information of the current household appliances by using the first transport layer protocol; and selecting the master device and the slave device from the current household electrical appliance and other household electrical appliances based on the identification information of the other household electrical appliances obtained by interception.
According to an embodiment of the present application, the step of selecting the master device and the slave device from the current home device and the other home devices is periodically performed based on the identification information of the other home devices obtained by interception.
According to one embodiment of the application, in the dynamic networking process, the current household electrical appliance selects a master device and a slave device from the current household electrical appliance and other household electrical appliances; communicating with other home devices using a second transport layer protocol, comprising: the current household appliance is used as a slave device, and when an instruction to be executed is detected, an execution inquiry message is sent to the master device by utilizing the second transport layer protocol, and when an execution instruction sent by the master device is received by utilizing the second transport layer protocol, the instruction to be executed is executed.
According to one embodiment of the application, in the dynamic networking process, the current household electrical appliance selects a master device and a slave device from the current household electrical appliance and other household electrical appliances; communicating with other home devices using a second transport layer protocol, comprising: the current household appliance is used as a master device, an execution inquiry message sent by a slave device is received by using a second transport layer protocol, at least the execution device is selected from the slave devices sending the execution inquiry message, and an execution instruction is sent to the execution device by using the second transport layer protocol so as to instruct the execution device to execute the instruction to be executed.
According to an embodiment of the present application, at least an execution device is selected from among the slave devices that transmit the execution inquiry message, including: under the condition that the current household appliance detects an instruction to be executed, selecting an executing device from the current household appliance and a slave device which sends an executing inquiry message; and selecting the execution device from the slave devices sending the execution inquiry message in the case that the master device does not detect the instruction to be executed.
In order to solve the technical problems, the application adopts another technical scheme that: an appliance includes a processor, a memory, and a communication circuit coupled to the processor; the memory stores program instructions, and the processor is configured to execute the program instructions to implement the communication method of the home appliance in the technical scheme.
In order to solve the technical problems, the application adopts another technical scheme that: a computer readable storage medium storing program instructions executable by a processor, the program instructions being configured to implement the home appliance communication method according to the above-described technical solution.
In order to solve the technical problems, the application adopts another technical scheme that: a home communication system comprises a plurality of home appliances in the same network, wherein the home appliances are the home appliances in the technical scheme.
The beneficial effects of the application are as follows: the current household electrical appliance utilizes the first transmission layer protocol to carry out dynamic networking with other household electrical appliances, the first transmission layer protocol is UDP protocol, and because the UDP protocol is connectionless protocol, compared with a connection-oriented protocol, the current household electrical appliance can avoid a plurality of handshakes to carry out networking, thereby being beneficial to improving flexibility, and after the networking of other household electrical appliances, the second transmission layer protocol is continuously utilized to carry out communication with other household electrical appliances, and the second transmission layer protocol is TCP protocol, thereby being beneficial to ensuring the reliability in the communication process of the household electrical appliances. In addition, in the communication process of the household electrical appliance, an external network background is not required to be built, so that the communication cost of the household electrical appliance can be reduced, and the flexibility and the reliability of the communication of the household electrical appliance are improved.
Drawings
For a clearer description of the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the description below are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art, wherein:
FIG. 1 is a flow chart of an embodiment of a communication method of a home device according to the present application;
FIG. 2 is a process schematic of an embodiment of dynamic networking;
FIG. 3 is a process diagram of one embodiment of a master device and a slave device communicating;
FIG. 4 is a schematic diagram of a frame of an embodiment of the home device of the present application;
FIG. 5 is a schematic diagram of a framework of one embodiment of a home communication system of the present application;
FIG. 6 is a schematic diagram of a frame of one embodiment of a computer-readable storage medium of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a communication method of an electrical home appliance according to the present application. Specifically, embodiments of the present disclosure may include the steps of:
Step S11: the current home appliance utilizes a first transport layer protocol to dynamically networking with other home appliances.
In the embodiment of the disclosure, the household electrical appliance comprises any electrical appliance used daily by a family. For example, the home devices may specifically include, but are not limited to: kitchen appliances such as an electric cooker, an electric stewpot, a dish washer, a refrigerator and the like, refrigerating/heating equipment such as an electric fan, an air conditioner and the like, cleaning/washing appliances such as a washing machine, a clothes drying machine, a sweeping robot and the like, intelligent appliances such as an electronic lock, an intelligent socket, an intelligent lamp, a smoke/water immersion alarm and the like, and intelligent household equipment such as a home service robot and the like are not limited herein.
In one implementation scenario, the current home device may refer to any home device in the home communication system. It should be noted that, the home communication system includes a plurality of home devices in the same network, for example, the home communication system may specifically include an electric cooker, an air conditioner, a sweeping robot and an electronic lock in the same network, and any one of the electric cooker, the air conditioner, the sweeping robot and the electronic lock may be regarded as a current home device, for example, in a case that the electric cooker is regarded as a current home device, the air conditioner, the sweeping robot and the electronic lock may be regarded as other home devices, in a case that the air conditioner is regarded as a current home device, the electric cooker, the sweeping robot and the electronic lock may be regarded as other home devices, and in a case that the sweeping robot and the electronic lock are respectively regarded as current home devices, and the like, which is not repeated herein. In other cases, the home communication system includes home devices, and so on, which are not further examples herein.
In the embodiment of the disclosure, the home appliance can be dynamically networked in a WiFi (Wireless Fidelity ) environment, and compared with a general network environment, in the home environment, the specificity of frequent plugging of the home appliance exists, for example, the electric rice cooker is powered on when cooking, and is powered off when cooking is completed; or the television is powered on during watching and powered off during rest, so various are not taken as examples, so in order to adapt to the special feature, it is necessary to improve the flexibility of dynamic networking, and in view of this, the first transport layer protocol may be UDP (User Datagram Protocol, user data packet protocol). UDP provides a method for transmitting encapsulated packets without establishing a connection, the UDP packets being composed of a header and a payload, wherein the header specifies the source port and the destination port and the payload contains information to be communicated by the UDP packets, such as may include, but is not limited to: the type of equipment (e.g., washing machine, air conditioner, electronic lock, rice cooker, sweeping robot, etc.) of the home appliance, etc., is not limited herein.
In one implementation scenario, device discovery may be performed using a first transport layer protocol to network with other home devices. According to the mode, through device discovery, each household appliance can know the existence of other household appliances, so that basic conditions can be provided for dynamic networking, and the success rate of dynamic networking is improved.
In a specific implementation scenario, the first transport layer protocol may be used to monitor the identification information of other home devices, and the first transport layer protocol may be used to broadcast the identification information of the current home device, so that each home device may know the existence of other home devices by broadcasting the identification information of its own device and monitoring the identification information of other devices. Taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, the electric cooker can monitor the identification information of other household appliances such as the air conditioner, the sweeping robot and the electronic lock through a first transmission layer protocol, broadcast the identification information of the electric cooker, the sweeping robot and the electronic lock through the first transmission layer protocol, and similarly, the air conditioner can monitor the identification information of other household appliances such as the electric cooker, the sweeping robot and the electronic lock through the first transmission layer protocol, broadcast the identification information of the electric cooker, the sweeping robot and the electronic lock through the first transmission layer protocol, and the like, and the details are omitted.
Specifically, after the home appliance is powered on, the identification information of the home appliance can be broadcast through a first transmission layer protocol, and the identification information of other home appliances can be intercepted through the first transmission layer protocol, so that dynamic networking is performed; after the home appliance is powered down, the hardware circuit of the home appliance for network communication stops working, so that the home appliance can not broadcast or listen any more, i.e. the home appliance can be regarded as being in a offline state. For convenience of description, taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, at a moment after the air conditioner, the sweeping robot and the electronic lock finish dynamic networking, responding to a cooking requirement of a user, the electric cooker is switched to an upper power state, in this case, the electric cooker can broadcast identification information of own equipment and monitor the identification information of the air conditioner, the sweeping robot and the electronic lock, and in this process, the air conditioner, the sweeping robot and the electronic lock can also broadcast the identification information of the own equipment and monitor the identification information of other household appliances, so that the electric cooker, the air conditioner, the sweeping robot and the electronic lock finish networking. Further, at a certain moment after the electric rice cooker and the air conditioner, the sweeping robot and the electronic lock complete networking, in response to the completion of cooking by a user, the electric rice cooker can be switched to a power-down state, in this case, the electric rice cooker cannot be broadcasted or intercepted any more, namely, the electric rice cooker is in a power-down state at this moment, in the process, the air conditioner, the sweeping robot and the electronic lock can respectively broadcast the identification information of the self equipment and intercept the identification information of other household appliances, so that the air conditioner, the sweeping robot and the electronic lock complete dynamic networking. Therefore, the dynamic networking is performed through the first transmission layer protocol, and even if the household electrical appliance is powered on/off frequently, the networking can be performed adaptively, so that the networking reliability is further improved.
It should be noted that the identification information may include, but is not limited to, a device type of the home appliance, such as a washing machine, an air conditioner, an electronic lock, an electric cooker, a sweeping robot, and the like. As previously mentioned, the first transport layer protocol may be UDP, in which case the identification information may be located in the payload of the UDP packet.
In another specific implementation scenario, as mentioned above, unlike a general network environment, in a home environment, a home device usually has a frequent plug, so it is necessary to perform a communication process through the second transport layer protocol later, and meanwhile, consider improving flexibility and reliability of the communication, so that the home device may use a C/S mode (i.e. Client/Server) for communication. In this case, the master device and the slave device may be selected from the current home device and the other home devices based on the identification information of the other home devices obtained by interception. It should be noted that, the master device is a Server (i.e., a Server), and the slave device is a Client (i.e., a Client). To accommodate the above-mentioned specificity of the home environment, the second transport layer protocol may specifically be a TCP protocol (i.e. Transmission Control Protocol, transmission control protocol).
Specifically, in order to ensure the consistency of the master devices respectively determined by different home devices in the same network, a master device selection policy may be preset, and different home devices in the same network may select a master device and a slave device from the current home devices and other home devices according to the master device selection policy. For example, when the identification information includes device types, the home devices corresponding to the device types with the highest priority may be selected as the master device according to priorities of different device types, and other home devices except the home devices may be selected as the slave devices. The priority of the home devices may be preset, for example, from high to low may be set as follows: air conditioner, robot, rice cooker, electronic lock sweep floor, do not limit here.
It should be noted that, the priority of the home appliance may also be set according to the interaction frequency between the home appliance and the user, and the interaction frequency between the home appliance and the user and the priority are in a positive correlation relationship, that is, the priority of the home appliance frequently interacted with the user is also higher. Taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, a user interacts with the air conditioner frequently in high-temperature time periods such as summer or low-temperature time periods such as winter, so that the priority of the air conditioner can be higher than that of the electric cooker, the sweeping robot and the electronic lock in the time periods, and the user does not interact with the air conditioner almost in normal-temperature time periods such as spring or autumn, so that the priority of the air conditioner can be lower than that of the electric cooker, the sweeping robot and the electronic lock in the time periods. I.e. the priorities of the various device types may be varied according to the frequency of interaction of the home device with the user at different time periods.
As previously described, during use, the home devices may be powered up/down frequently. If the electric cooker is powered on during cooking, the electric cooker is powered off after cooking; or the sweeping robot is electrified when sweeping, and is electrified after sweeping; or, the air conditioner is powered on during heating/cooling, and powered off after the heating/cooling is finished, so that other household appliances can be pushed in the same way, and the heating/cooling is not exemplified here. Therefore, in order to improve the stability of networking and subsequent communication, the steps of selecting the master device and the slave device from the current home device and the other home devices based on the identification information of the other home devices obtained by interception may be periodically performed.
For convenience of description, still taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, at a certain moment after the air conditioner, the sweeping robot and the electronic lock finish dynamic networking, the electric cooker can be switched to an upper electric state in response to a cooking requirement of a user, in this case, the electric cooker can broadcast and listen to the electric cooker, so that the electric cooker can finish dynamic networking with the air conditioner, the sweeping robot and the electronic lock, in this case, the air conditioner can be used as a main device based on identification information of various different household appliances, and the electric cooker, the sweeping robot and the electronic lock can be used as slave devices. Since then, the above-described steps of selecting a master device and a slave device may be performed once every fixed period (e.g., 10 seconds, 20 seconds, etc.). Further, at a certain moment after the electric cooker, the air conditioner, the sweeping robot and the electronic lock complete networking, the electric cooker can be powered down in response to the completion of cooking by a user, in this case, the electric cooker cannot broadcast or listen through the first transmission layer protocol any more, that is, when the electric cooker is in a down state and reaches an integer multiple (for example, 1 time, 2 times, 3 times, etc.) of the fixed period again at the current moment, the step of selecting the master device and the slave device is performed, so that the air conditioner can be used as the master device, and the sweeping robot and the electronic lock can be used as the slave device. Other situations can be similar and are not exemplified here.
In still another specific implementation scenario, in order to improve reliability of subsequent communication using the second transport layer protocol on the premise of improving networking flexibility, the current home appliance may use the first transport layer protocol to monitor identification information of other home appliances and use the first transport layer protocol to broadcast identification information of its own appliance, and on this basis, the master device and the slave device may be selected from the current home appliance and other home appliances based on the monitored identification information of the other home appliances. The specific process can be referred to the above related description, and will not be repeated here.
Specifically, referring to fig. 2 in combination, fig. 2 is a process schematic of an embodiment of dynamic networking. As shown in fig. 2, in the dynamic networking process, the home device a may monitor the identification information B of the home device B and broadcast the identification information a of the home device a, and at the same time, the home device B may monitor the identification information a of the home device a and broadcast the identification information B of the home device B, so that, whether the home device a or the home device B, after broadcasting and monitoring, the home device a and the identification information B may be learned, so that based on the identification information a and the identification information B, the home device a and the home device B may make master-slave decisions, that is, both may select a master device and a slave device from the home device a and the home device B. As described above, since different home devices in the same network perform master-slave decision according to the same master device selection policy, it is possible to ensure that the master devices selected by home device a and home device B are consistent. Other situations can be similar and are not exemplified here.
In the dynamic networking process, the identification information of other household appliances can be firstly monitored, and then the identification information of the current household appliances is broadcasted; the identification information of the current home appliance may be broadcast first, and then the identification information of other home appliances may be monitored, which is not limited herein.
Step S12: after networking with other home devices, the second transport layer protocol is utilized to communicate with the other home devices.
As described above, in the whole dynamic networking process, the current home device may select the master device and the slave device from the current home device and other home devices, and when the current home device is the master device or the slave device, different communication steps may be adopted to interactively communicate with the other home devices. As previously mentioned, the second transport layer protocol is specifically the TCP protocol. So as to adapt to the special situation of frequent plugging of household appliances in the household environment. In the process of interactive communication through the TCP protocol, the master device and the slave device establish connection through the three-way handshake protocol, namely, after one of the master device and the slave device firstly sends out a SYN connection request, the other party waits for answering SYN+ACK, finally carries out ACK confirmation on the SYN of the other party, and after the three-way handshake is completed, the two parties can be regarded as successful connection establishment and start to transmit data packets. After the data packet transmission is completed, since the TCP connection is full duplex, each direction must be closed separately, so both parties can terminate the connection by waving their hands four times, i.e. one party sends a FIN first for closing the data transmission from the party to the other party, the other party returns an ACK to confirm the closing after receiving the FIN, and then continues to send a FIN to the other party for closing the data transmission to the other party, and the other party returns an ACK to confirm the closing after receiving the FIN. That is, in the embodiment of the present disclosure, since the home environment is different from the general network environment, special situations such as frequent plugging and unplugging of the home devices exist, and in order to adapt to the special situations, in the dynamic networking process, the embodiment of the present disclosure adopts the UDP protocol to improve flexibility of dynamic networking, and after networking is completed, the embodiment of the present disclosure adopts the TCP protocol to implement communication between the home devices to improve reliability of communication, so that by combining both the UDP protocol and the TCP, the embodiment adapts to special situations that the home environment is different from the general network environment, so as to improve reliability of communication while improving flexibility of networking.
In one implementation scenario, when the current home appliance is a slave device, in the case of detecting the instruction to be executed, the second transport layer protocol may be utilized to send an execution inquiry message to the master device, and in the case of receiving the execution instruction sent by the master device, the second transport layer protocol is utilized to execute the instruction to be executed. It should be noted that the instructions to be executed may include, but are not limited to, voice instructions. For example, in the case where the home appliance includes the electric rice cooker, the instruction to be executed may include "start cooking", in the case where the home appliance includes the sweeping robot, the instruction to be executed may include "start sweeping", in the case where the home appliance includes the air conditioner, the instruction to be executed may include "turn down the temperature", in the case where the home appliance includes the electronic lock, the instruction to be executed may include "unlock lock alarm", and the like, which are not limited herein.
In a specific implementation scenario, the current home appliance may analyze the instruction to be executed to obtain correlations between the instruction to be executed and each home appliance located in the same network as the current home appliance, and the execution inquiry message may include the correlations between the instruction to be executed, so that the master device determines the home appliance executing the instruction to be executed according to the correlations between the instruction to be executed and the current home appliance; or, the current home appliance may package the detected instruction to be executed into the execution query message, so that the master device analyzes the instruction to be executed to obtain the correlation between the instruction to be executed and each home appliance located in the same network with the current home appliance, and determines, according to the correlation between the instruction to be executed, the home appliance executing the instruction to be executed, which is not limited herein.
In another specific implementation scenario, as mentioned above, the to-be-executed instruction may be a voice instruction, and the current home appliance may further detect an audio intensity of the to-be-executed instruction, and package the detected audio intensity and the to-be-executed instruction together into an execution query message, so that the master device analyzes the to-be-executed instruction, obtains correlations between the to-be-executed instruction and each home appliance located in the same network with the current home appliance, and determines the home appliance executing the to-be-executed instruction according to the correlations between the to-be-executed instruction and the audio intensity.
It should be noted that, the specific process of determining the home device to execute the instruction may refer to the following related description, which is not repeated herein.
In another implementation scenario, when the current home device is the master device, the current home device may receive an execution inquiry message from a slave device, select an execution device from at least the slave devices that send the execution inquiry message, and send an execution instruction to the execution device using the second transport layer protocol, where the execution instruction is used to instruct the execution device to execute the instruction to be executed. If the slave device does not detect the instruction to be executed, the slave device may be regarded as an execution device that the slave device does not desire to execute the instruction to be executed, and thus, when the execution device is selected, the slave device that does not transmit the execution inquiry message may be excluded. Taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, as mentioned above, the air conditioner can be used as a master device, and the electric cooker, the sweeping robot and the electronic lock can be used as slave devices, when a user uses the air conditioner in a bedroom, if there is a temperature adjustment requirement, the user generally interacts with the air conditioner at a position close to the air conditioner, such as sending a voice command, the user does not generally send a voice command in a kitchen or a toilet, in this case, the sweeping robot in a living room, the electronic lock in a door and the air conditioner in the bedroom can detect the voice command, but the electric cooker in the kitchen may not detect the voice command, so that the electric cooker does not send an execution inquiry message to the air conditioner, and when the execution device is selected, the electric cooker can be excluded. Other situations can be similar and are not exemplified here.
In a specific implementation scenario, when the current home appliance is the master device, if the current home appliance detects that the instruction to be executed is obtained, the executing device may be selected from the current home appliance and the slave device that sends the execution inquiry message. As described above, the to-be-executed instruction may be packaged into the execution query message, and on this basis, the master device may analyze the to-be-executed instruction to obtain the correlation between the to-be-executed instruction and the current home appliance and the slave device that sends the execution query message, respectively, so that the home appliance with the highest correlation may be used as the execution device.
For convenience of description, taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, under the condition that an instruction to be executed is "start sweeping", the correlation degree between the instruction to be executed "start sweeping" and each household appliance device can be analyzed and obtained as follows: the sweeping robot (97%), the electric cooker (1%), the air conditioner (1%), and the electronic lock (1%), so the sweeping robot can be used as an execution device, and other cases can be similar, and the sweeping robot is not exemplified one by one.
In another specific implementation scenario, as described above, the to-be-executed instruction and the audio intensity of the to-be-executed instruction detected by the slave device may be packaged together into the execution query message, and on this basis, the master device may analyze the to-be-executed instruction to obtain correlations between the to-be-executed instruction and the current home appliance and the slave device that sends the execution query message, respectively, so that the execution device may be selected from the current home appliance and the slave device that sends the execution query message based on the correlations and the audio intensity. Specifically, the correlation and the audio intensity may be weighted to obtain a score value of each home appliance, and the home appliance with the highest score value may be used as the executing device.
For convenience of description, taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, under the condition that the instruction to be executed is "temperature-adjusting", the correlation degree between the instruction to be executed "temperature-adjusting" and each household appliance is respectively: sweeping robot (1%), rice cooker (20%), air conditioner (78%), electronic lock (1%), and audio intensity of the instruction to be executed that each tame electric installation detected respectively is: sweeping robot (5 dB), rice cooker (3 dB), air conditioner (30 dB), electronic lock (5 dB), under the condition that the weighting factors of relativity and audio frequency intensity are preset to 0.5 and 0.5 respectively, the score value of each household appliance is respectively: 3. 11.5, 54, 3, in which case the air conditioner with the highest score value may be used as the executing device, and the other cases may be similar, and are not exemplified here.
In yet another specific implementation scenario, when the current home appliance is the master device, if the master device does not detect the instruction to be executed, the executing device may be selected from the slave devices that send the execute query message. As described above, the to-be-executed instruction may be packaged into the execution query message, and on this basis, the master device may analyze the to-be-executed instruction to obtain the correlation between the to-be-executed instruction and the slave device that sends the execution query message, respectively, so that the home appliance device with the highest correlation may be used as the execution device.
For convenience of description, taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, when an instruction to be executed is "start sweeping", and the main equipment air conditioner does not detect the instruction to be executed, the correlation degree between the instruction to be executed "start sweeping" and the slave equipment sending the execution inquiry message is: the sweeping robot (98%), the electric cooker (1%), and the electronic lock (1%), so the sweeping robot can be used as an execution device, and the like, and the sweeping robot is not exemplified here.
In still another specific implementation scenario, as described above, the to-be-executed instruction and the audio intensity of the to-be-executed instruction detected by the slave device may be packaged together into the execution query message, and on this basis, the master device may analyze the to-be-executed instruction to obtain correlations between the to-be-executed instruction and the slave device that sends the execution query message, so that the execution device may be selected from the slave devices that send the query message based on the correlations and the audio intensity. Specifically, the correlation and the audio intensity may be weighted to obtain a score value of each home appliance, and the home appliance with the highest score value may be used as the executing device.
For convenience of description, taking an electric cooker, an air conditioner, a sweeping robot and an electronic lock as examples, when an instruction to be executed is "start cooking", and the main equipment air conditioner does not detect the instruction to be executed, the correlation degree between the instruction to be executed "start cooking" and the slave equipment sending the execution inquiry message may be respectively: the floor sweeping robot (1%), the electric cooker (98%), the electronic lock (1%), and the slave devices which send the execution inquiry messages respectively detect that the audio intensity of the instruction to be executed is: sweeping robot (5 dB), rice cooker (30 dB), electronic lock (5 dB), under the condition that the weighting factors of the correlation degree and audio intensity are preset to be 0.5 and 0.5 respectively, the score values of the slave devices for sending and executing the inquiry messages are respectively: 3. 64, 3, in which case the rice cooker with the highest score value may be used as the executing device, and the other cases may be similar, and are not exemplified here.
In yet another implementation scenario, referring to fig. 3 in combination, fig. 3 is a process diagram of one embodiment of a master device and a slave device communicating. As shown in fig. 3, the upper half part is a main device executing process, the lower half part is a slave device executing process, in the main device executing process and the slave device executing process, the same is that the main device executing process and the slave device executing process both detect an instruction to be executed, if a user sends the instruction to be executed, the slave device can interactively communicate with the main device through a second transport layer protocol under the condition of detecting the instruction to be executed, and in the communication process, an execution inquiry message is sent to the main device, if the main device also detects the instruction to be executed, the main device can select an executing device from the main device itself and the slave device sending the execution inquiry message, if the selected executing device is the main device itself, the instruction to be executed can be directly executed, and if the selected executing device is the slave device, an execution instruction can be sent to the slave device through the second transport layer protocol, so that the slave device executes the instruction to be executed under the condition of receiving the execution instruction; similarly, if the master device does not detect the instruction to be executed, the master device may select an execution device from the slave devices that send the execution inquiry message, and on this basis, may send an execution instruction to the slave devices through the second transport layer protocol, so that the slave devices execute the instruction to be executed when receiving the execution instruction. It should be noted that, for convenience of explanation, fig. 3 only schematically shows a communication flow in the case of only one slave device, and the like in the case of a plurality of slave devices, and is not exemplified here.
It should be noted that, as described above, in the communication process, the master device needs to take on the task of deciding the executing device of the instruction to be executed, so in the dynamic networking process, the interception/broadcasting identification information may include the computing power resource information, so in the master-slave decision process, the master device and the slave device may be selected from the current home devices and other home devices based on the computing power resource information.
In one implementation scenario, the computing power resource information may specifically include, but is not limited to: CPU (Central Processing Unit ), GPU (Graphic Processing Unit, graphics processor), memory, etc., without limitation.
In another implementation scenario, the home devices with the most abundant computing power resources can be selected as the master device according to the computing power resource information, and other home devices except the master device are regarded as the slave devices.
According to the scheme, the current household electrical appliance utilizes the first transmission layer protocol to carry out dynamic networking with other household electrical appliances, the first transmission layer protocol is the UDP protocol, and because the UDP protocol is a connectionless protocol, compared with a connection-oriented protocol, the networking can be carried out without holding hands for many times, so that the flexibility can be improved, and after the networking of the other household electrical appliances, the second transmission layer protocol is continuously utilized to carry out communication with the other household electrical appliances, and the second transmission layer protocol is the TCP protocol, the reliability in the communication process of the household electrical appliance can be ensured. In addition, in the communication process of the household electrical appliance, an external network background is not required to be built, so that the communication cost of the household electrical appliance can be reduced, and the flexibility and the reliability of the communication of the household electrical appliance are improved.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a frame of an embodiment of a home device 40 according to the present application. As shown in fig. 4, the home device 40 may include a processor 41, a memory 42 and a communication circuit 43, where the memory 42 and the communication circuit 43 are coupled to the processor 41, and the memory 42 stores program instructions, and the processor 41 is configured to execute the program instructions to implement steps in any of the foregoing embodiments of a communication method of the home device. In particular, as described in the previously disclosed embodiments, the home device 40 may include any appliance that is routinely used by a household. For example, home devices 40 may specifically include, but are not limited to: kitchen appliances such as an electric rice cooker, an electric stewpot, a dish washer, a refrigerator and the like, refrigerating/heating equipment such as an electric fan, an air conditioner and the like, cleaning/washing appliances such as a washing machine, a clothes dryer, a sweeping robot and the like, and intelligent appliances such as an electronic lock, an intelligent socket, an intelligent lamp, a smoke/water immersion alarm and the like are not limited herein.
The processor, which may also be referred to as a CPU (Central Processing Unit ), may be an integrated circuit chip with signal processing capabilities. The processor may also be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In the embodiment of the disclosure, the processor 41 is configured to control the communication circuit 43 to dynamically perform networking with other home devices by using a first transport layer protocol, and the processor 41 is configured to control the communication circuit 43 to communicate with other home devices by using a second transport layer protocol after networking with other home devices, where the first transport layer protocol is a UDP protocol, and the second transport layer protocol is a TCP protocol.
According to the scheme, the first transmission layer protocol is utilized to carry out dynamic networking with other household appliances, and is the UDP protocol, so that compared with a connection-oriented protocol, the networking can be carried out without multiple handshakes, the flexibility can be improved, after the networking of the other household appliances, the second transmission layer protocol is continuously utilized to communicate with the other household appliances, and the second transmission layer protocol is the TCP protocol, so that the reliability in the communication process of the household appliances can be ensured. In addition, in the communication process of the household electrical appliance, an external network background is not required to be built, so that the communication cost of the household electrical appliance can be reduced, and the flexibility and the reliability of the communication of the household electrical appliance are improved.
In some disclosed embodiments, the processor 41 is configured to control the communication circuit 43 to perform device discovery using a first transport layer protocol to network with other home devices.
Different from the foregoing embodiment, the device discovery may enable each home device to know the existence of other home devices, so as to provide a basic condition for dynamic networking, which is beneficial to improving the success rate of dynamic networking.
In some disclosed embodiments, the processor 41 is configured to control the communication circuit 43 to listen to the identification information of the other home devices using the first transport layer protocol, and broadcast the identification information of the current home device using the first transport layer protocol, and the processor 41 is further configured to select the master device and the slave device from the current home device and the other home devices based on the identification information of the other home devices obtained by listening.
Different from the foregoing embodiment, the first transport layer protocol is used to monitor the identification information of other home appliances, and the first transport layer protocol is used to broadcast the identification information of the current home appliances, so that the master device and the slave device are selected based on the identification information of the other home appliances obtained by monitoring, which is beneficial to improving the flexibility of home appliance networking and the reliability of home appliance communication.
In some disclosed embodiments, the step of selecting the master device and the slave device from the current home device and the other home devices is performed periodically based on the identification information of the other home devices obtained by interception.
Unlike the foregoing embodiments, by periodically performing the steps of selecting the master device and the slave device, it is possible to facilitate improvement in stability of networking and subsequent communication in the case where the home appliance is frequently powered on/off.
In some disclosed embodiments, during the dynamic networking process, the processor 41 is configured to select a master device and a slave device from the current home device and other home devices, where the home device is a slave device, and where the processor 41 is configured to control the communication circuit 43 to send an execution inquiry message to the master device using the second transport layer protocol if an instruction to be executed is detected, and to execute the instruction to be executed if an execution instruction sent by the master device is received using the second transport layer protocol.
In contrast to the foregoing embodiment, if the home appliance is a slave device, in the case where the to-be-executed instruction is detected, the execution query message is sent through the second transport layer protocol, and in the case where the execution instruction sent by the master device is obtained through the second transport layer protocol, the to-be-executed instruction is executed, so that the master device can uniformly process the execution query message, and communicate with the second transport layer protocol in the whole process, which can be beneficial to improving the reliability of the device for determining the to-be-executed instruction to be subsequently executed.
In some disclosed embodiments, in the case that the home appliance is a master appliance, the processor 41 is configured to control the communication circuit 43 to receive the execution inquiry message sent by the slave appliance using the second transport layer protocol, select at least the execution appliance from the slave appliances that send the execution inquiry message, and send an execution instruction to the execution appliance using the second transport layer protocol to instruct the execution appliance to execute the instruction to be executed.
Different from the foregoing embodiment, the home appliance is a master device, and executes an inquiry message from a slave device through a second transport layer protocol, and selects an execution device at least in the slave device that transmits the execution inquiry message, so that an execution instruction is transmitted to the execution device through the second transport layer protocol, and the execution instruction is used for instructing the execution device to execute an instruction to be executed.
In some disclosed embodiments, the processor 41 is configured to select an execution device from among home appliances to which it belongs and slave devices that send an execution inquiry message in the event that an instruction to be executed is detected, and the processor 41 is further configured to select an execution device from among slave devices that send an execution inquiry message in the event that an instruction to be executed is not detected.
Unlike the foregoing embodiments, in the case where an instruction to be executed is detected, an execution device is selected from home appliances to which it belongs and from slave devices that send execution inquiry messages, and in the case where an instruction to be executed is not detected, an execution device is selected from slave devices that send execution inquiry messages, so that a master device can select different decision strategies to select an execution device according to whether an instruction to be executed is detected, and thus it is possible to facilitate improvement of accuracy in selecting an execution device.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a home communication system 50 according to an embodiment of the present application. As shown in fig. 5, the home communication system 50 may include a plurality of home devices 51 in the same network, and the home devices 51 may be home devices in any of the foregoing home device embodiments. As in the previously disclosed embodiments, the home device 51 may comprise any appliance that is routinely used by the home. For example, home devices 51 may include, but are not limited to: kitchen appliances such as an electric rice cooker, an electric stewpot, a dish washer, a refrigerator and the like, refrigerating/heating equipment such as an electric fan, an air conditioner and the like, cleaning/washing appliances such as a washing machine, a clothes dryer, a sweeping robot and the like, and intelligent appliances such as an electronic lock, an intelligent socket, an intelligent lamp, a smoke/water immersion alarm and the like are not limited herein.
By the adoption of the scheme, the communication cost of the household appliances can be reduced, and the flexibility and reliability of the communication of the household appliances are improved.
Referring to FIG. 6, FIG. 6 is a schematic diagram of a computer storage medium 60 according to an embodiment of the application. The computer storage medium 60 stores program instructions 61 that can be executed by the processor, where the program instructions 61 are configured to implement the steps in any of the above-described embodiments of the home device communication method.
By the adoption of the scheme, the communication cost of the household appliances can be reduced, and the flexibility and reliability of the communication of the household appliances are improved.
The storage device may be a medium such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disc, where the program instructions may be stored, or may be a server storing the program instructions, where the server may send the stored program instructions to other devices for running, or may also self-run the stored program instructions.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the present application.

Claims (8)

CN202110441115.4A2021-04-232021-04-23Home appliance communication method, home appliance, storage medium and related systemActiveCN114679692B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110441115.4ACN114679692B (en)2021-04-232021-04-23Home appliance communication method, home appliance, storage medium and related system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110441115.4ACN114679692B (en)2021-04-232021-04-23Home appliance communication method, home appliance, storage medium and related system

Publications (2)

Publication NumberPublication Date
CN114679692A CN114679692A (en)2022-06-28
CN114679692Btrue CN114679692B (en)2023-11-10

Family

ID=82069717

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110441115.4AActiveCN114679692B (en)2021-04-232021-04-23Home appliance communication method, home appliance, storage medium and related system

Country Status (1)

CountryLink
CN (1)CN114679692B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102959527A (en)*2010-06-282013-03-06三菱电机株式会社Home gateway
CN103152234A (en)*2013-02-202013-06-12广州市佳思信息科技有限公司Method for implementing interconnection of digital home network devices
CN104301905A (en)*2014-10-202015-01-21上海电机学院 Smart Home Ad Hoc Network Method and System Based on Election Supervision Strategy
CN108418732A (en)*2017-02-092018-08-17佛山市顺德区美的电热电器制造有限公司A kind of control method of household appliance and household appliance
CN108833225A (en)*2018-06-012018-11-16广东美的制冷设备有限公司Household appliance and its means of communication, device and computer readable storage medium
CN111490915A (en)*2019-01-292020-08-04佛山市顺德区美的电热电器制造有限公司Method and system for controlling intelligent household electrical appliance through voice

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102959527A (en)*2010-06-282013-03-06三菱电机株式会社Home gateway
CN103152234A (en)*2013-02-202013-06-12广州市佳思信息科技有限公司Method for implementing interconnection of digital home network devices
CN104301905A (en)*2014-10-202015-01-21上海电机学院 Smart Home Ad Hoc Network Method and System Based on Election Supervision Strategy
CN108418732A (en)*2017-02-092018-08-17佛山市顺德区美的电热电器制造有限公司A kind of control method of household appliance and household appliance
CN108833225A (en)*2018-06-012018-11-16广东美的制冷设备有限公司Household appliance and its means of communication, device and computer readable storage medium
CN111490915A (en)*2019-01-292020-08-04佛山市顺德区美的电热电器制造有限公司Method and system for controlling intelligent household electrical appliance through voice

Also Published As

Publication numberPublication date
CN114679692A (en)2022-06-28

Similar Documents

PublicationPublication DateTitle
CN107231606B (en)WiFi network access method, intelligent hardware equipment and electronic terminal
US20220255799A1 (en)Cloud-based control of a Wi-Fi network
US10320932B2 (en)Conveying state changes using connectionless messaging and a store-and-forward cache
Vallati et al.Mobile-edge computing come home connecting things in future smart homes using LTE device-to-device communications
EP2645636B1 (en)Home gateway, cloud server, and method for communication therebetween
JP2004080755A (en) Network connection method for electronic device, wireless electronic device, and control device
US20160004871A1 (en)Method and apparatus for incrementally sharing greater amounts of information between user devices
US7430591B2 (en)Methods and arrangements for configuring functional networks
CN112469055A (en)Equipment network distribution method, related equipment and storage medium
CN113132989B (en) Network distribution methods and smart home systems
CN112671904A (en)Method and device for transmitting equipment state information, storage medium and electronic device
CN114679692B (en)Home appliance communication method, home appliance, storage medium and related system
CN115314503A (en) Data transmission method and device, storage medium and electronic device
CN113472763A (en)Control instruction sending method and device, storage medium and electronic device
CN117896809A (en)Implementation method and application of low-power-consumption data link layer protocol
CN105791377A (en) Cloud access system and method based on wireless communication module
CN117319109A (en)Control method of equipment and communication system
CN113965495A (en)Method and device for detecting activity of terminal application program, electronic equipment and storage medium
CN114244914A (en)Internet of things protocol switching method and device, electronic equipment and storage medium
CN114500133A (en)Household appliance and network access method thereof
CN119997058A (en) Device binding method, device and storage medium
CN115312048B (en)Equipment awakening method and device, storage medium and electronic device
TW202224381A (en)Trigger-client based client steering in mesh networks
CN114815641A (en) Monitoring method and device for smart device, storage medium and electronic device
US20120250665A1 (en)Method and system for maintaining concurrent membership in multiple networks from a single wireless modem

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp