CN108199933B - Household appliance operation control method, system, router and computer readable storage medium - Google Patents
Household appliance operation control method, system, router and computer readable storage medium Download PDFInfo
- Publication number
- CN108199933B CN108199933B CN201711471883.4A CN201711471883A CN108199933B CN 108199933 B CN108199933 B CN 108199933B CN 201711471883 A CN201711471883 A CN 201711471883A CN 108199933 B CN108199933 B CN 108199933B
- Authority
- CN
- China
- Prior art keywords
- household appliance
- appliance
- plug
- household
- control
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Computer Security & Cryptography (AREA)
- Selective Calling Equipment (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a household appliance operation control method, a household appliance operation control system, a router and a computer readable storage medium, wherein a plug-in is arranged in the router, and the method comprises the following steps: the method comprises the following steps that a plug-in of a router establishes a communication connection relation with household appliances and establishes a communication connection relation with a terminal; when the plug-in receives a household appliance control request sent by a terminal, determining a household appliance to be controlled according to the household appliance control request; and carrying out protocol conversion on the household appliance control request, and sending the converted household appliance control request to the household appliance so as to control the household appliance to operate according to the converted household appliance control request. The invention improves the efficiency of controlling the running of the household electrical appliance.
Description
Technical Field
The invention relates to the field of smart home, in particular to a household appliance operation control method, a household appliance operation control system, a router and a computer readable storage medium.
Background
With the development of the internet of things technology, the industry of smart home is also more and more advanced. The existing intelligent home system can generally control the running of the household appliances through the terminal, specifically, the terminal and the household appliances are embedded with wifi modules, and the terminal and the household appliances establish communication connection relations through the embedded wifi modules, so that the running of the household appliances controlled by the terminal is realized. However, in the existing control mode, the household appliance may be controlled by a plurality of terminals, because the household appliance is only embedded with a wifi module which is only a small chip, if control instructions of the plurality of terminals are received, the shortage of processing resources at the household appliance end is easy to occur, so that the data processing is not timely, and the control efficiency of the household appliance is low.
Disclosure of Invention
The invention mainly aims to provide a household appliance operation control method, a household appliance operation control system, a router and a computer readable storage medium, and aims to solve the technical problem that the household appliance operation control mode in the prior art is low in household appliance control efficiency.
In order to achieve the above object, the present invention provides a method for controlling operation of a home appliance, which is applied to a router, wherein a plug-in is built in the router, and the method for controlling operation of a home appliance includes the following steps:
the method comprises the following steps that a plug-in of a router establishes a communication connection relation with household appliances and establishes a communication connection relation with a terminal;
when the plug-in receives a household appliance control request sent by a terminal, determining a household appliance to be controlled according to the household appliance control request;
and carrying out protocol conversion on the household appliance control request, and sending the converted household appliance control request to the household appliance so as to control the household appliance to operate according to the converted household appliance control request.
Preferably, the step of establishing a communication connection relationship with the home appliance by the plug-in of the router includes:
the plug-in detects the networked household appliances through a user datagram protocol;
when the networked household appliances are detected, a communication connection relation is established with the household appliances, and initial operation state data of the household appliances are obtained for storage.
Preferably, the step of establishing a communication connection relationship with the terminal by the plug-in of the router includes:
the plug-in starts the hypertext transfer protocol service and/or the transmission control protocol service;
and establishing a communication connection relation with the terminal based on the started hypertext transfer protocol service and/or transmission control protocol service, and receiving the household appliance control request sent by the terminal in a wide area network and/or local area network mode.
Preferably, after the step of sending the converted appliance control request to the appliance to control the appliance to operate according to the converted appliance control request, the method further includes:
the plug-in receives the running state data of the household appliances fed back by the household appliances and feeds the running state data of the household appliances back to the terminal.
Preferably, when the plug-in receives a home appliance control request sent by a terminal, the step of determining a home appliance to be controlled according to the home appliance control request includes:
when a plurality of terminals send household appliance control requests, the plug-in places the household appliance control requests into a message queue according to sending time;
the plug-in extracts the household appliance control request arranged at the first position from the message queue;
determining the household appliance to be controlled according to the extracted household appliance control request;
and after the step of receiving the running state data of the household appliances fed back by the household appliances and feeding the running state data of the household appliances back to the terminal, the plugin extracts the household appliance control request which is newly arranged at the first position from the message queue.
Preferably, after the step of determining the household appliance to be controlled according to the household appliance control request when the plug-in receives the household appliance control request sent by the terminal, the method further includes:
the plug-in inquires whether the household appliance running state data corresponding to the household appliance control request is cached currently, wherein the household appliance running state data is automatically deleted when the time cached in the router reaches a preset time length;
if the running state data of the household appliance corresponding to the household appliance control request is not cached currently, executing the protocol conversion of the household appliance control request, and sending the converted household appliance control request to the household appliance so as to control the household appliance to run according to the converted household appliance control request;
the step that the plug-in receives the running state data of the household appliance fed back by the household appliance and feeds the running state data of the household appliance back to the terminal comprises the following steps:
the plug-in receives the running state data of the household appliances fed back by the household appliances, updates the cache according to the received running state data of the household appliances, and feeds the running state data of the household appliances back to the terminal.
Preferably, the step of performing protocol conversion on the appliance control request, and sending the converted appliance control request to the appliance to control the appliance to operate according to the converted appliance control request includes:
carrying out protocol conversion on the household appliance control request, and encrypting the converted household appliance control request;
and sending the encrypted household appliance control request to the household appliance so as to control the household appliance to decrypt the received household appliance control request and operate according to the decrypted household appliance control request.
Preferably, after the step of querying whether the current running state data of the home appliance corresponding to the home appliance control request is cached by the plug-in, the method further includes:
and if the household appliance running state data corresponding to the household appliance control request is cached currently, the plug-in directly feeds back the household appliance running state data to the terminal.
Preferably, the method further comprises:
when the plug-in receives the updating instruction of the electric control protocol, the plug-in sends the updating instruction of the electric control protocol to the server, and the server feeds back a new electric control protocol;
and when a new electronic control protocol fed back by the server is received, the original electronic control protocol in the plug-in is updated by adopting the new electronic control protocol so as to realize the update of the plug-in.
Preferably, the receiving manner of the update instruction of the electronic control protocol includes:
when the plug-in detects a pressing operation at the position of a preset key, determining to receive an updating instruction of an electronic control protocol;
or when the preset updating time of the electronic control protocol is reached, determining that the updating instruction of the electronic control protocol is received.
In addition, to achieve the above object, the present invention further provides a router, including: the household appliance running control method comprises the steps of a memory, a processor and a household appliance running control program which is stored on the memory and can run on the processor, wherein the steps of the household appliance running control method are realized when the household appliance running control program is executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium having a home appliance operation control program stored thereon, where the home appliance operation control program, when executed by a processor, implements the steps of the home appliance operation control method as described above.
In addition, in order to achieve the above object, the present invention further provides a home appliance operation control system, where the home appliance operation control system includes a terminal, a router and a home appliance, and the router is the router described above.
The household appliance operation control method provided by the invention comprises the steps that a plug-in of a router establishes a communication connection relation with a household appliance and a communication connection relation with a terminal, then when a household appliance control request sent by the terminal is received, the household appliance to be controlled is determined according to the household appliance control request, protocol conversion is carried out on the household appliance control request, and finally the converted household appliance control request is sent to the household appliance so as to control the household appliance to operate according to the converted household appliance control request. The invention receives the request of the terminal by the plug-in built in the router, and controls the running of the household appliance according to the request of the terminal, and because the plug-in of the router processes data faster than a wifi module of the household appliance, even if a plurality of terminals send household appliance control requests to control the household appliance currently, the processing efficiency of the router is also faster, thereby improving the efficiency of controlling the running of the household appliance.
Drawings
Fig. 1 is a schematic structural diagram of a hardware operating environment of a router according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a first embodiment of a method for controlling operation of a home appliance according to the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a method for controlling an operation of a home appliance according to the present invention;
fig. 4 is a flowchart illustrating a method for controlling an operation of a home appliance according to a third embodiment of the present invention;
fig. 5 is a flowchart illustrating a fourth embodiment of a method for controlling an operation of a home appliance according to the present invention;
FIG. 6 is a detailed flowchart of step S30 in FIG. 5;
fig. 7 is a flowchart illustrating a fifth embodiment of a method for controlling an operation of a home appliance according to the present invention;
fig. 8 is a flowchart illustrating a sixth embodiment of a method for controlling an operation of a home appliance according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: the method comprises the steps that a plug-in of a router establishes a communication connection relation with household appliances and a communication connection relation with a terminal, then when a household appliance control request sent by the terminal is received, the household appliances to be controlled are determined according to the household appliance control request, protocol conversion is carried out on the household appliance control request, and finally the converted household appliance control request is sent to the household appliances so as to control the household appliances to operate according to the converted household appliance control request. The problem of the household electrical appliance operation control mode among the prior art, control efficiency is low is solved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of a router according to an embodiment of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, the router may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The processor 1001 may have a number of plug-ins, which may be 1 or more. A communication bus 1002 is used to enable connection communications between these components. The user interface 1003 may include an input unit such as a Keyboard (Keyboard) or a key, and the optional user interface 1003 may further include a standard wired interface (e.g., for connecting a wired Keyboard, a wired mouse, etc.), a wireless interface (e.g., for connecting a wireless Keyboard, a wireless mouse). The network interface 1004 may optionally include a standard wired interface (for connecting to a wired network), a wireless interface (e.g., a WI-FI interface, a bluetooth interface, an infrared interface, etc., for connecting to a wireless network). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the router architecture shown in fig. 1 does not constitute a limitation of routers, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include an operating system, a network communication module, a user interface module, and a home appliance operation control program, where the operating system is a program for managing and controlling home appliances and software resources, and supports the operation of the network communication module, the user interface module, the home appliance operation control program, and other programs or software; the network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
In the router shown in fig. 1, the router calls the home appliance operation control program stored in the memory 1005 through the processor 1001, and performs the following operations:
establishing a communication connection relation with the household appliance and establishing a communication connection relation with the terminal;
when a household appliance control request sent by a terminal is received, determining a household appliance to be controlled according to the household appliance control request;
and carrying out protocol conversion on the household appliance control request, and sending the converted household appliance control request to the household appliance so as to control the household appliance to operate according to the converted household appliance control request.
Further, the processor 1001 may call the home appliance operation control program stored in the memory 1005 to execute the steps of establishing a communication connection relationship with the home appliance:
detecting the networked household appliances through a user datagram protocol;
when the networked household appliances are detected, a communication connection relation is established with the household appliances, and initial operation state data of the household appliances are obtained for storage.
Further, the processor 1001 may call the home appliance operation control program stored in the memory 1005 to perform the steps of establishing a communication connection relationship with the terminal:
starting a hypertext transfer protocol service and/or a transmission control protocol service;
and establishing a communication connection relation with the terminal based on the started hypertext transfer protocol service and/or transmission control protocol service, and receiving the household appliance control request sent by the terminal in a wide area network and/or local area network mode.
Further, after the step of transmitting the converted appliance control request to the appliance to control the appliance to operate according to the converted appliance control request, the processor 1001 may call an appliance operation control program stored in the memory 1005 to perform the following steps:
and receiving the running state data of the household appliances fed back by the household appliances, and feeding back the running state data of the household appliances to the terminal.
Further, the processor 1001 may call a home appliance operation control program stored in the memory 1005, so as to perform the step of determining a home appliance to be controlled according to a home appliance control request sent by a terminal, when the home appliance control request is received:
when a plurality of terminals send household appliance control requests, placing the household appliance control requests into a message queue according to sending time;
extracting the first-ranked appliance control request from the message queue;
determining the household appliance to be controlled according to the extracted household appliance control request;
after the step of receiving the home appliance operation state data fed back by the home appliance and feeding back the home appliance operation state data to the terminal, the processor 1001 may call a home appliance operation control program stored in the memory 1005 to perform the step of extracting a home appliance control request rearranged in the first place from the message queue.
Further, after the step of determining the home appliance to be controlled according to the home appliance control request when receiving the home appliance control request sent by the terminal, the processor 1001 may call the home appliance operation control program stored in the memory 1005 to execute the following steps:
inquiring whether the household appliance running state data corresponding to the household appliance control request is cached currently, wherein the household appliance running state data is automatically deleted when the time of caching in the router reaches a preset time length;
if the running state data of the household appliance corresponding to the household appliance control request is not cached currently, executing the protocol conversion of the household appliance control request, and sending the converted household appliance control request to the household appliance so as to control the household appliance to run according to the converted household appliance control request;
the step of receiving the running state data of the household appliance fed back by the household appliance and feeding the running state data of the household appliance back to the terminal comprises the following steps:
and receiving the running state data of the household appliances fed back by the household appliances, updating the cache according to the received running state data of the household appliances, and feeding back the running state data of the household appliances to the terminal.
Further, the processor 1001 may call a home appliance operation control program stored in the memory 1005 to perform the steps of performing protocol conversion on the home appliance control request, and transmitting the converted home appliance control request to the home appliance to control the home appliance to operate according to the converted home appliance control request:
carrying out protocol conversion on the household appliance control request, and encrypting the converted household appliance control request;
and sending the encrypted household appliance control request to the household appliance so as to control the household appliance to decrypt the received household appliance control request and operate according to the decrypted household appliance control request.
Further, after the step of querying whether the current home appliance operation state data corresponding to the home appliance control request is cached, the processor 1001 may call a home appliance operation control program stored in the memory 1005 to execute the following steps:
and if the running state data of the household appliances corresponding to the household appliance control request is cached currently, directly feeding back the running state data of the household appliances to the terminal.
Further, the processor 1001 may call the home appliance operation control program stored in the memory 1005 to perform the following steps:
when an updating instruction of the electric control protocol is received, the updating instruction of the electric control protocol is sent to a server, and the server feeds back a new electric control protocol;
and when a new electronic control protocol fed back by the server is received, the original electronic control protocol in the plug-in is updated by adopting the new electronic control protocol so as to realize the update of the plug-in.
Further, the receiving mode of the update instruction of the electronic control protocol comprises:
when the pressing operation is detected at the position of a preset key, determining that an updating instruction of an electric control protocol is received;
or when the preset updating time of the electronic control protocol is reached, determining that the updating instruction of the electronic control protocol is received.
In the router of the present invention, the processor 1001 calls the household appliance operation control program stored in the memory 1005 to execute the following steps: establishing a communication connection relation with household appliances and a communication connection relation with a terminal, then determining the household appliances to be controlled according to the household appliance control request when receiving the household appliance control request sent by the terminal, carrying out protocol conversion on the household appliance control request, and finally sending the converted household appliance control request to the household appliances so as to control the household appliances to operate according to the converted household appliance control request. The invention receives the request of the terminal by the plug-in built in the router, and controls the running of the household appliance according to the request of the terminal, and because the plug-in of the router processes data faster than a wifi module of the household appliance, even if a plurality of terminals send household appliance control requests to control the household appliance currently, the processing efficiency of the router is also faster, thereby improving the efficiency of controlling the running of the household appliance.
Based on the hardware structure of the router, the invention provides various embodiments of the household appliance operation control method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for controlling an operation of a home appliance according to the present invention.
In a first embodiment, the household appliance operation control method is applied to a router, a plug-in is built in the router, and the household appliance operation control method includes the following steps:
step S10, the plug-in of the router establishes the communication connection relation with the household appliance and the communication connection relation with the terminal;
step S20, when the plug-in receives the household appliance control request sent by the terminal, the plug-in determines the household appliance to be controlled according to the household appliance control request;
and step S30, performing protocol conversion on the appliance control request, and sending the converted appliance control request to the appliance, so as to control the appliance to operate according to the converted appliance control request.
The method for controlling the operation of the household appliance is applied to a router, the router may be selected from the router illustrated in fig. 1, in this embodiment, a Plug-in (also called addin, add-in, addon, or add-on, or external Plug-in) is built in the router, the Plug-in is a program written by an application program interface following a certain specification, the Plug-in this embodiment is used for establishing a communication connection relationship with the household appliance and a terminal, and performing protocol conversion on data communicated between the terminal and the household appliance, so as to control the operation of the household appliance according to a household appliance control request of the terminal, and the number of the Plug-ins built in one router may be 1 or more, which is not limited in this embodiment. Home appliances include, but are not limited to: the household appliances comprise a range hood, an air purifier, an oven, a fan, an air conditioner, a refrigerator or an electric cooker and the like, wherein each household appliance is internally provided with operation state data related to the household appliance, and the operation state data of different household appliances are different, for example, the operation state data of the air conditioner is operation temperature, operation wind speed and operation time; the built-in running state data of the dehumidifier is running humidity; the built-in running state data of the smoke exhaust ventilator is running gears. Terminals include, but are not limited to: a smart phone, a smart watch, or a remote control.
The following describes in detail the steps of the operation control of the home appliance in this embodiment:
step S10, the plug-in of the router establishes the communication connection relation with the household appliance and the communication connection relation with the terminal;
in this embodiment, the plug-in built in the router establishes a communication connection relationship with the home appliance and a communication connection relationship with the terminal, and the plug-in built in the router may be selected to establish a communication connection relationship with the home appliance and the terminal at the same time, or the plug-in built in the router may be selected to establish a communication connection relationship with the home appliance first and then establish a communication connection relationship with the terminal.
In this embodiment, the step of establishing, by the plug-in of the router, a communication connection relationship with the home appliance includes:
step a, the plug-in detects the networked household appliances through a user datagram protocol;
and b, when the networked household appliances are detected, establishing a communication connection relation with the household appliances, and acquiring initial running state data of the household appliances for storage.
Specifically, when the router is started, a plug-in built in the router is also automatically started, under the condition that the router starts the plug-in, the plug-in of the router automatically detects the networked household appliances through a User Datagram Protocol (UDP), when the networked household appliances are detected, the plug-in of the router initializes the connection with the household appliances to establish a communication connection relation with the household appliances, and after the communication connection relation with the household appliances is established, the plug-in of the router acquires initial operation state data of the household appliances and stores the acquired initial operation state data. It should be noted that after the plug-in of the router acquires the initial operating state data of the home appliance, the operating state data of the home appliance may be subsequently updated automatically according to a certain frequency, that is, the plug-in of the router acquires the operating state data from the home appliance at regular time to update the operating state data of the home appliance, and the frequency may be set according to actual needs, which is not limited herein.
In this embodiment, the step of establishing, by the plug-in of the router, a communication connection relationship with the terminal includes:
c, the plug-in starts the hypertext transfer protocol service and/or the transmission control protocol service;
and d, establishing a communication connection relation with the terminal based on the started hypertext transfer protocol service and/or the transmission control protocol service, and receiving the household appliance control request sent by the terminal in a wide area network and/or local area network mode.
Specifically, when the router is started, a plug-in built in the router is also automatically started, and when the router starts the plug-in, the plug-in of the router starts an http (Hyper Text Transport Protocol) service and/or a tcp (Transmission Control Protocol) service, and establishes a communication connection relationship with the terminal based on the started http Protocol service and/or tcp Protocol service, wherein the http Protocol service corresponds to a wide area network, and the tcp Protocol service corresponds to a local area network, and therefore, the plug-in of the router can receive a household appliance Control request sent by the terminal in a manner of the wide area network and/or the local area network based on the started http Protocol service and/or tcp Protocol service.
Step S20, when the plug-in receives the household appliance control request sent by the terminal, the plug-in determines the household appliance to be controlled according to the household appliance control request;
the plug-in of the router establishes a communication connection relation with the household appliance and establishes a communication connection relation with the terminal, and then the router can communicate with the household appliance and the terminal. In this embodiment, when a plug-in of a router receives a home appliance control request sent by a terminal, a home appliance ID to be controlled is first queried in the home appliance control request to determine a home appliance to be controlled.
And step S30, performing protocol conversion on the appliance control request, and sending the converted appliance control request to the appliance, so as to control the appliance to operate according to the converted appliance control request.
In this embodiment, the appliance control request sent by the terminal is a request of an appliance status protocol (which may also be referred to as a plug-in protocol), where the request of the appliance status protocol is a request that can be recognized by the terminal, and the request of the appliance status protocol is as follows: power is on, mode is cool, and temperature is 20. In this embodiment, the plug-in converts the request of the home appliance status protocol into a request of an electronic control protocol, where the request of the electronic control protocol is a string of binary data, and the home appliance can be identified as the request of the electronic control protocol.
In this embodiment, when the plug-in receives the household appliance control request of the household appliance state protocol sent by the terminal, the household appliance control request of the household appliance state protocol is converted into the household appliance control request of the electronic control protocol according to the preset conversion rule, and then the converted household appliance control request is sent to the household appliance to control the household appliance to operate according to the converted household appliance control request, and the operation of the household appliance according to the converted household appliance control request specifically includes: when the household appliance receives the converted household appliance control request, the running state of the household appliance is adjusted according to the household appliance control request, and the preset conversion rule in the embodiment is not limited and is set according to actual needs.
In the embodiment of the invention, when the terminal is to control the operation of the household appliance, for example, the smart phone is to control the temperature of the air conditioner to be increased, the terminal sends a temperature increase request to the router, the temperature increase request carries an air conditioner ID, when the router receives the temperature increase request, the air conditioner to be controlled is determined according to the air conditioner ID, because the temperature increase request is a request of a household appliance status protocol, a plug-in of the router converts the temperature increase request into the temperature increase request of an electric control protocol, the temperature increase request of the electric control protocol is sent to the determined air conditioner, the air conditioner receives the temperature increase request of the electric control protocol, and the operating temperature of the air conditioner is increased according to the temperature increase request, so that the operation control of the air conditioner is realized.
In the method for controlling operation of a home appliance provided in this embodiment, a plug-in of a router establishes a communication connection relationship with the home appliance and a communication connection relationship with a terminal, then, when a home appliance control request sent by the terminal is received, the home appliance to be controlled is determined according to the home appliance control request, protocol conversion is performed on the home appliance control request, and finally, the converted home appliance control request is sent to the home appliance, so that the home appliance is controlled to operate according to the converted home appliance control request. The invention receives the request of the terminal by the plug-in built in the router, and controls the running of the household appliance according to the request of the terminal, and because the plug-in of the router processes data faster than a wifi module of the household appliance, even if a plurality of terminals send household appliance control requests to control the household appliance currently, the processing efficiency of the router is also faster, thereby improving the efficiency of controlling the running of the household appliance.
Further, in order to improve the flexibility of the operation control of the home appliance, a second embodiment of the operation control method of the home appliance of the present invention is provided based on the first embodiment.
In this embodiment, referring to fig. 3, after the step S30, the method further includes:
and step S40, the plug-in receives the running state data of the household appliance fed back by the household appliance and feeds back the running state data of the household appliance to the terminal.
In this embodiment, after the plug-in of the router controls the operation of the household appliance according to the household appliance control request sent by the terminal, the household appliance feeds back a running state data of the household appliance to the plug-in of the router, and when the plug-in of the router receives the running state data of the household appliance fed back by the household appliance, the running state data of the household appliance is fed back to the terminal so as to inform the terminal of the specific control condition of the household appliance, so that the terminal can know the running state data in time, the flexibility of the running control of the household appliance is improved, and the user experience is also improved.
Further, in order to improve the flexibility of the operation control of the home appliance, a third embodiment of the operation control method of the home appliance of the present invention is provided based on the second embodiment.
In this embodiment, referring to fig. 4, the step S20 includes:
step S21, when multiple terminals send the control request of household electrical appliance, the plug-in puts the control request of multiple household electrical appliances into the message queue according to the sending time;
step S22, the plug-in extracts the appliance control request ranked first from the message queue;
and step S23, determining the household appliance to be controlled according to the extracted household appliance control request.
After step S40, the plug-in extracts the household appliance control request rearranged to the first place from the message queue.
In this embodiment, when there are multiple terminals sending the appliance control requests, the plug-in of the router first places the appliance control requests sent by the multiple terminals into a message queue according to the sequence of sending time, then the plug-in extracts the appliance control request arranged at the first position from the message queue, then determines the appliance to be controlled according to the extracted appliance control request, after determining the appliance to be controlled, performs protocol conversion on the appliance control request, and sends the converted appliance control request to the appliance to control the appliance to operate according to the converted appliance control request, the plug-in performs protocol conversion on the appliance control request, and sends the converted appliance control request to the appliance to control the appliance to operate according to the converted appliance control request, the specific operation of the appliance to operate according to the converted appliance control request has been detailed in the above embodiment, and will not be described in detail herein.
It should be noted that, in the existing home appliance operation control, a terminal directly controls the operation of a home appliance, if the home appliance receives home appliance control requests from multiple terminals, the home appliance cannot receive one home appliance control request and then feeds back a response, and corresponding operations executed by the home appliance according to the requests from the multiple terminals are not fed back, so that the terminal processing result is not timely.
In this embodiment, it should be noted that, when the plug-in receives the running status data of the appliance fed back by the appliance, and after feeding back the running state data of the household appliances to the terminal, the plug-in extracts the household appliance control request which is arranged at the first position again from the message queue, that is, if the plug-in of the router does not feed back the running state data of the household appliances which are fed back to the terminal, the plug-in does not extract a new household appliance control request again from the message queue, by this processing method, it is ensured that the terminal requests are all responded, and after the terminal requests are responded, the plug-in of the router continues to control the operation of the household appliances according to the control request of the next household appliance, ensures the synchronous update of the state, prevents the terminal from not responding late, the processing result of the terminal for controlling the running of the household appliance is more timely, and the flexibility of the running control of the household appliance is improved.
Further, in order to improve the flexibility of the operation control of the home appliance, a fourth embodiment of the operation control method of the home appliance of the present invention is proposed based on the second to third embodiments.
In this embodiment, referring to fig. 5, after step S20, the method further includes:
step S50, the plug-in inquires whether the household appliance running state data corresponding to the household appliance control request is cached currently, wherein the household appliance running state data is automatically deleted when the time cached in the router reaches a preset time length;
if the running state data of the household appliance corresponding to the household appliance control request is not cached currently, the step S30 is executed;
the step S40 includes:
and step S41, the plug-in receives the running state data of the household appliance fed back by the household appliance, so as to update the cache according to the received running state data of the household appliance, and feed back the running state data of the household appliance to the terminal.
That is, in this embodiment, after the plug-in receives the home appliance control request sent by the terminal and determines the home appliance to be controlled according to the home appliance control request, the plug-in first queries whether the home appliance running data corresponding to the home appliance control request is currently cached, it should be noted that, after the plug-in controls the running of the home appliance according to the home appliance control request of the terminal each time, the router caches the home appliance running state data in the memory because the home appliance feeds back the home appliance running state data, in this embodiment, the home appliance running state is cached in the memory of the router for a short period of time, and the duration of the period of time is set according to actual needs, for example, set to 5S. When the time for caching the household appliance running state data in the router reaches the preset time length, the router can automatically delete the cached household appliance running state data.
When the plug-in does not inquire the current household appliance running data corresponding to the household appliance control request cached in the memory of the router, the plug-in of the router can directly perform protocol conversion on the household appliance control request and send the converted household appliance control request to the household appliance so as to control the household appliance to run according to the converted household appliance control request, wherein the plug-in performs protocol conversion on the household appliance control request and sends the converted household appliance control request to the household appliance so as to control the specific operation process of the household appliance running according to the converted household appliance control request, which is described in detail in the above text and is not repeated herein.
It should be noted that, when the plug-in performs protocol conversion on the household appliance control request and sends the converted household appliance control request to the household appliance to control the household appliance to operate according to the converted household appliance control request, the plug-in of the router receives the household appliance operation state data fed back by the household appliance, and since the household appliance operation state data fed back by the household appliance at this time is not cached in the router, the plug-in updates the cache according to the received household appliance operation state data, that is, caches the household appliance operation state data in the memory, and feeds back the household appliance operation state data to the terminal to notify the terminal of the specific control condition of the household appliance.
In this embodiment, when the plug-in receives the home appliance control request sent by the terminal, it is determined whether the home appliance operation state data corresponding to the home appliance control request is cached at present, and if not, the home appliance control request is sent to the home appliance to control the operation of the home appliance, so that repetitive control is prevented, and the accuracy of home appliance operation control is improved.
Further, in order to improve the safety of the operation control of the home appliance, referring to fig. 6, the step S30 includes:
step S31, carrying out protocol conversion on the household appliance control request, and encrypting the converted household appliance control request;
and step S32, sending the encrypted household appliance control request to the household appliance so as to control the household appliance to decrypt the received household appliance control request and operate according to the decrypted household appliance control request.
In this embodiment, after the plug-in of the router determines the home appliance to be controlled according to the home appliance control request, the protocol conversion is performed on the home appliance control request first, and the specific protocol conversion manner is described in detail in the above embodiment and is not described herein again. After the plug-in performs protocol conversion on the household appliance control request, the converted household appliance control request is encrypted. And after the plug-in encrypts the converted household appliance control request, sending the encrypted household appliance control request to the household appliance, decrypting the received household appliance control request by the household appliance, and operating according to the decrypted household appliance control request.
In this embodiment, before the plug-in the router sends the household appliance control request to the household appliance, the household appliance control request is encrypted first, so that the household appliance control request is prevented from being revealed and identified and used by other devices, and therefore, the safety of the household appliance operation control is improved.
Further, a fifth embodiment of the method for controlling operation of a home appliance according to the present invention is provided based on the fourth embodiment, in order to improve flexibility and accuracy of operation control of the home appliance.
In this embodiment, referring to fig. 7, after step S50, the method further includes:
and step S60, if the household appliance running state data corresponding to the household appliance control request is cached currently, the plug-in directly feeds back the household appliance running state data to the terminal.
In this embodiment, when the plug-in queries the current home appliance operation data cached in the home appliance control request, it indicates that the terminal sends the home appliance control request to control the operation of the home appliance within a preset time period, and the home appliance also operates according to the home appliance control request, then, when the plug-in receives the same home appliance control request, it indicates that the plug-in of the router just controlled the home appliance to operate according to the home appliance control request, and the home appliance control request is the same control request, and then the plug-in does not need to control the operation of the home appliance again, and directly feeds back the home appliance operation state data to the terminal, so as to notify the terminal of the specific control condition of the home appliance.
In the case where a home appliance receives home appliance control requests from a plurality of terminals while a conventional terminal controls the operation of the home appliance, the home appliance may be re-executed even if the same home appliance control request is received, which results in a waste of resources.
In this embodiment, if the plug-in detects that the current cache has the home appliance running state data corresponding to the home appliance control request, the plug-in of the router directly feeds back the home appliance running state data to the terminal, and the operation of the home appliance does not need to be controlled again, so that the repeated execution of the home appliance is prevented, the resource waste is avoided, and the flexibility and the accuracy of the home appliance running control are also improved.
Further, in order to improve flexibility and accuracy of operation control of the home appliance, a sixth embodiment of the home appliance operation control method of the present invention is proposed based on the first to fifth embodiments.
In this embodiment, referring to fig. 8, the method further includes:
step S70, when the plug-in receives the update instruction of the electric control protocol, the plug-in sends the update instruction of the electric control protocol to the server, and the server feeds back the new electric control protocol;
and step S80, when a new electric control protocol fed back by the server is received, the original electric control protocol in the plug-in is updated by the new electric control protocol so as to update the plug-in.
In this embodiment, the receiving manner of the update instruction of the electronic control protocol includes:
mode 1), when the plug-in detects a pressing operation at the position of a preset key, determining to receive an updating instruction of an electric control protocol;
in this embodiment, the router is provided with a key for updating the electronic control protocol, and when the plug-in detects a pressing operation at a position of the key, it can be determined that an update instruction of the electronic control protocol is received. In this embodiment, the update of the electronic control protocol is triggered by a key.
Mode 2), when the preset updating time of the electric control protocol reaches, the plug-in determines to receive an updating instruction of the electric control protocol.
In this embodiment, the router sets the timing update time of the electronic control protocol in advance, and determines that the update instruction of the electronic control protocol is received when the plug-in detects that the preset update time of the electronic control protocol arrives. In this embodiment, the update of the electrical control protocol is detected and updated at the timing of the plug-in.
When the router receives the update instruction of the electric control protocol, the plug-in sends the update instruction of the electric control protocol to the server, the server feeds back the new electric control protocol, and when the plug-in of the router receives the new electric control protocol fed back by the server, the original electric control protocol in the plug-in can be updated by the new electric control protocol, so that the update of the plug-in is realized. In addition, when the electric control protocol is updated, the plug-in correspondingly updates the preset conversion rule, the household appliance state protocol is correspondingly updated through the updating of the conversion rule, and the normal control of the household appliance by the terminal through the router plug-in can be realized through the updated household appliance state protocol and the electric control protocol.
It should be noted that, in the existing operation control method of the home appliance, the terminal directly controls the operation of the home appliance, and if the protocol needs to be changed, the application needs to be updated in the terminal to change the protocol. In the embodiment, only the plug-in the router is updated, the application of the terminal does not need to be updated, the cost is low, the protocol in the plug-in can be updated automatically by the router, the user does not need to operate and develop, and the protocol is updated more conveniently.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a home appliance operation control program is stored on the computer-readable storage medium, and when the home appliance operation control program is executed by a processor, the steps of the home appliance operation control method described above are implemented.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of the embodiments of the home appliance operation control method described above, and is not described herein again.
Further, the invention provides a household appliance operation control system.
In this embodiment, the household appliance operation control system includes a terminal, a router and a household appliance, where the router is as shown in fig. 1, and a plug-in is built in the router.
The specific implementation of the household appliance operation control system of the present invention is basically the same as that of the above-mentioned embodiments of the household appliance operation control method, and is not described herein again.
In the technical scheme of the invention, the control of the household appliances by the terminal is realized through the plug-in of the router, and the plug-in of the router is light in weight, easy to control and low in cost, and can control the operation of the household appliances more stably, so that the processing efficiency, the safety, the accuracy and the flexibility are higher compared with the existing terminal control household appliance operation.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. The household appliance operation control method is applied to a router, a plug-in is arranged in the router, and the household appliance operation control method comprises the following steps:
the method comprises the following steps that a plug-in of a router establishes a communication connection relation with household appliances and establishes a communication connection relation with a terminal;
when the plug-in receives a household appliance control request sent by a terminal, determining a household appliance to be controlled according to the household appliance control request;
the plug-in inquires whether the household appliance running state data corresponding to the household appliance control request is cached currently, wherein the household appliance running state data is automatically deleted when the time cached in the router reaches a preset time length;
if the running state data of the household appliance corresponding to the household appliance control request is not cached currently, performing protocol conversion on the household appliance control request, and sending the converted household appliance control request to the household appliance so as to control the household appliance to run according to the converted household appliance control request;
the plug-in receives the running state data of the household appliance fed back by the household appliance, updates the cache according to the received running state data of the household appliance, and feeds back the running state data of the household appliance to the terminal;
and if the household appliance running state data corresponding to the household appliance control request is cached currently, the plug-in directly feeds back the household appliance running state data to the terminal.
2. The home appliance operation control method according to claim 1, wherein the step of establishing a communication connection relationship with the home appliance by a plug-in of the router comprises:
the plug-in detects the networked household appliances through a user datagram protocol;
when the networked household appliances are detected, a communication connection relation is established with the household appliances, and initial operation state data of the household appliances are obtained for storage.
3. The home appliance operation control method according to claim 1, wherein the step of establishing a communication connection relationship with the terminal by a plug-in of the router comprises:
the plug-in starts the hypertext transfer protocol service and/or the transmission control protocol service;
and establishing a communication connection relation with the terminal based on the started hypertext transfer protocol service and/or transmission control protocol service, and receiving the household appliance control request sent by the terminal in a wide area network and/or local area network mode.
4. The household appliance operation control method according to claim 1, wherein the step of determining a household appliance to be controlled according to the household appliance control request when the plug-in receives the household appliance control request transmitted from the terminal comprises:
when a plurality of terminals send household appliance control requests, the plug-in places the household appliance control requests into a message queue according to sending time;
the plug-in extracts the household appliance control request arranged at the first position from the message queue;
determining the household appliance to be controlled according to the extracted household appliance control request;
and after the step of receiving the running state data of the household appliances fed back by the household appliances and feeding the running state data of the household appliances back to the terminal, the plugin extracts the household appliance control request which is newly arranged at the first position from the message queue.
5. The method of claim 1, wherein the step of performing protocol conversion on the appliance control request and transmitting the converted appliance control request to the appliance to control the appliance to operate according to the converted appliance control request comprises:
carrying out protocol conversion on the household appliance control request, and encrypting the converted household appliance control request;
and sending the encrypted household appliance control request to the household appliance so as to control the household appliance to decrypt the received household appliance control request and operate according to the decrypted household appliance control request.
6. The appliance operation control method of any one of claims 1 to 5, wherein the method further comprises:
when the plug-in receives the updating instruction of the electric control protocol, the plug-in sends the updating instruction of the electric control protocol to the server, and the server feeds back a new electric control protocol;
and when a new electronic control protocol fed back by the server is received, the original electronic control protocol in the plug-in is updated by adopting the new electronic control protocol so as to realize the update of the plug-in.
7. The method for controlling the operation of an electric appliance according to claim 6, wherein the receiving manner of the update command of the electric control protocol comprises:
when the plug-in detects a pressing operation at the position of a preset key, determining to receive an updating instruction of an electronic control protocol;
or when the preset updating time of the electronic control protocol is reached, determining that the updating instruction of the electronic control protocol is received.
8. A router, the router comprising: a memory, a processor, and a home appliance operation control program stored on the memory and executable on the processor, the home appliance operation control program, when executed by the processor, implementing the steps of the home appliance operation control method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a home appliance operation control program stored thereon, the home appliance operation control program, when executed by a processor, implementing the steps of the home appliance operation control method according to any one of claims 1 to 7.
10. An appliance operation control system comprising a terminal, a router according to claim 8, and an appliance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711471883.4A CN108199933B (en) | 2017-12-29 | 2017-12-29 | Household appliance operation control method, system, router and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711471883.4A CN108199933B (en) | 2017-12-29 | 2017-12-29 | Household appliance operation control method, system, router and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108199933A CN108199933A (en) | 2018-06-22 |
CN108199933B true CN108199933B (en) | 2021-05-28 |
Family
ID=62586284
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711471883.4A Active CN108199933B (en) | 2017-12-29 | 2017-12-29 | Household appliance operation control method, system, router and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108199933B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109133225A (en) * | 2018-10-24 | 2019-01-04 | 广东点球电子科技有限公司 | Water purifier control method, device, equipment and storage medium |
CN110989381A (en) * | 2019-11-29 | 2020-04-10 | 合肥美的电冰箱有限公司 | Household appliance and control method thereof, server and control method thereof, and client |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027341A (en) * | 2016-06-21 | 2016-10-12 | 杭州古北电子科技有限公司 | Control method of smart home device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050054970A (en) * | 2002-09-30 | 2005-06-10 | 마쯔시다덴기산교 가부시키가이샤 | Apparatuses, method and computer software products for controlling a home terminal |
CN104135443B (en) * | 2014-06-27 | 2018-07-27 | 小米科技有限责任公司 | Router control method and device |
CN105807617B (en) * | 2014-12-30 | 2018-11-02 | 西安Tcl软件开发有限公司 | The control method and device of smart home device |
CN105306319A (en) * | 2015-11-11 | 2016-02-03 | 上海臻道软件技术有限公司 | Internet-based smart home central control system for smart home |
CN107124342A (en) * | 2017-06-28 | 2017-09-01 | 广东美的制冷设备有限公司 | Appliances equipment control method, device, intelligent domestic system and readable storage medium storing program for executing |
-
2017
- 2017-12-29 CN CN201711471883.4A patent/CN108199933B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027341A (en) * | 2016-06-21 | 2016-10-12 | 杭州古北电子科技有限公司 | Control method of smart home device |
Also Published As
Publication number | Publication date |
---|---|
CN108199933A (en) | 2018-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112995348B (en) | Control method, device and system of Internet of things equipment | |
CN105471686B (en) | Terminal control method, device and system | |
US7564804B2 (en) | Method of assigning addresses to a plurality of devices on a network and a network system therefor | |
CN103516690B (en) | A kind of business processing status information query method and device | |
US10038754B2 (en) | Method of establishing communication session using active connection of mobile terminal to relay server | |
CN112399130B (en) | Processing method and device of cloud video conference information, storage medium and communication equipment | |
US20130271672A1 (en) | Television manipulation method, handheld device, television, and television manipulation system | |
WO2013058312A1 (en) | Household appliance information accumulation server | |
CN108351760B (en) | Feed service engine | |
CN108390795B (en) | Household appliance and monitoring method thereof, smart home system and readable storage medium | |
WO2017143743A1 (en) | Heterogeneous protocol communication method and controller | |
CN111381508B (en) | Control method, system and storage medium for smart home | |
WO2013131477A1 (en) | Remote monitoring device and method | |
CN110731074B (en) | Subscription message processing method and device, computer equipment and storage medium | |
CN108199933B (en) | Household appliance operation control method, system, router and computer readable storage medium | |
CN104320347B (en) | A kind of method and apparatus for actively updating LLDP | |
CN105657055A (en) | Local area network equipment finding method and device oriented to WEB page | |
KR102017631B1 (en) | Terminal apparatus and method for transmitting and receiving data | |
CN108199857B (en) | Household appliance, control method and system thereof, and computer readable storage medium | |
CN114023058A (en) | Remote control method, device, system, equipment and storage medium based on Bluetooth broadcast | |
US9712993B2 (en) | System and method of trigger service | |
CN103269360A (en) | Method and device capable of controlling electrical device | |
CN110741361B (en) | Resource query processing method, device, computer equipment and storage medium | |
CN114666194B (en) | Equipment management method and terminal | |
WO2016188133A1 (en) | Method and device for controlling intelligent household appliance |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |