CN111917617B - Intelligent household electrical appliance control method and device, server and storage medium - Google Patents

Intelligent household electrical appliance control method and device, server and storage medium Download PDF

Info

Publication number
CN111917617B
CN111917617B CN202010762502.3A CN202010762502A CN111917617B CN 111917617 B CN111917617 B CN 111917617B CN 202010762502 A CN202010762502 A CN 202010762502A CN 111917617 B CN111917617 B CN 111917617B
Authority
CN
China
Prior art keywords
information
control information
response
intelligent household
piece
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
CN202010762502.3A
Other languages
Chinese (zh)
Other versions
CN111917617A (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.)
Aux Air Conditioning Co Ltd
Ningbo Aux Electric Co Ltd
Original Assignee
Aux Air Conditioning Co Ltd
Ningbo Aux Electric 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 Aux Air Conditioning Co Ltd, Ningbo Aux Electric Co Ltd filed Critical Aux Air Conditioning Co Ltd
Priority to CN202010762502.3A priority Critical patent/CN111917617B/en
Publication of CN111917617A publication Critical patent/CN111917617A/en
Application granted granted Critical
Publication of CN111917617B publication Critical patent/CN111917617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2814Exchanging control software or macros for controlling appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention relates to the technical field of intelligent household appliances, and provides an intelligent household appliance control method, an intelligent household appliance control device, a server and a storage medium, wherein the method comprises the following steps: receiving at least one piece of request information which is sent by a client and used for controlling the intelligent household appliance; generating at least one piece of control information based on the at least one piece of request information; sending at least one piece of control information to the intelligent household appliance and receiving response information fed back by the intelligent household appliance according to any piece of control information; and analyzing the response information according to the at least one piece of control information to obtain a response result represented by the response information and feeding the response result back to the client. The method and the device solve the problems that the complexity of the implementation logic of the client is increased and the maintenance cost of the client is increased due to the fact that the client judges whether the execution of the control instruction fails or overtime is executed according to the feedback condition of the server.

Description

Intelligent household electrical appliance control method and device, server and storage medium
Technical Field
The invention relates to the technical field of intelligent household appliances, in particular to an intelligent household appliance control method, an intelligent household appliance control device, a server and a storage medium.
Background
The intelligent household appliance is connected with the server through a wide area network by using a TCP protocol. When the client needs to control the intelligent household appliance, the server issues the control command to the intelligent household appliance, the intelligent household appliance executes the control command after receiving the control command, then sends the execution result of the control command to the server, and the server sends the execution result to the client.
In the prior art, the execution result (including normal and overtime) of the control instruction execution is judged by the client according to the feedback condition of the server, and the final result is displayed to the user.
Disclosure of Invention
The invention solves the problems that the complexity of the implementation logic of the client is increased and the maintenance cost of the client is increased due to the fact that the client judges the execution result of the control instruction according to the feedback condition of the server.
In order to solve the above problems, the present invention provides a method for controlling an intelligent household electrical appliance, which is applied to a server, wherein the server is in communication connection with a client and the intelligent household electrical appliance, and the method comprises: receiving at least one piece of request information which is sent by a client and used for controlling the intelligent household appliance; generating at least one piece of control information based on the at least one piece of request information; sending at least one piece of control information to the intelligent household appliance and receiving response information fed back by the intelligent household appliance according to any piece of control information; and analyzing the response information according to the at least one piece of control information to obtain a response result represented by the response information and feeding the response result back to the client.
Compared with the prior art, the intelligent household appliance control method has the following advantages: when a user needs to control the intelligent household electrical appliance, at least one piece of request information used for controlling the intelligent household electrical appliance is sent to the server through the client, the server generates corresponding control information from at least one piece of control information and then sends at least one piece of control information to the intelligent household electrical appliance, when response information fed back by the intelligent household electrical appliance according to any piece of control information is received, the response information is analyzed, a response result represented by the response information is obtained, and finally the response result is fed back to the client.
Further, each piece of control information corresponds to a first keyword uniquely identifying the piece of control information, the server stores all pieces of control information in a message cache area in advance, and the step of analyzing the response information according to the at least one piece of control information to obtain a response result represented by the response information includes:
acquiring a second keyword corresponding to the response information, wherein the second keyword is used for representing control information corresponding to the response information;
and if the message cache region has first target control information with the same first key words and second key words, generating a response result with successful response and deleting the first target control information from the message cache region.
Further, the step of obtaining the second keyword corresponding to the response information includes:
acquiring the equipment identifier of the intelligent household appliance equipment which sends the response information and the information identifier of the response information;
and combining the equipment identifier and the information identifier to obtain a second keyword corresponding to the response information.
Further, the server stores the control information in the tail of the delay queue after a preset time, and the method further includes:
when detecting that the delay queue is not empty, taking out the current control information at the head of the delay queue;
if second target control information with the first key words identical to the first key words corresponding to the current control information exists in the message cache region, generating a response result with overtime response and deleting the second target control information from the message cache region;
and if second target control information with the first key word identical to the first key word corresponding to the current control information does not exist in the message cache region, generating a response result with normal response.
Further, there are a plurality of clients, and the step of feeding back the response result to the clients includes:
acquiring a target client which is subscribed with the intelligent household appliance equipment from the server in advance from a plurality of clients;
and feeding back the response result to the target client.
Further, each piece of request information includes a device identifier of the plurality of intelligent home devices, and the step of generating at least one piece of control information based on the at least one piece of request information includes:
generating a corresponding information identifier for each request message according to the device identifier;
and generating control information corresponding to each request message according to the message identifier corresponding to each request message.
Further, the server comprises a message buffer, and the method further comprises:
combining the equipment identifier and the information identifier corresponding to each piece of control information to obtain a first keyword corresponding to each piece of control information;
and storing each piece of control information and the corresponding first keyword into the message buffer area.
The invention also provides an intelligent household appliance control device, which is applied to a server, wherein the server is in communication connection with both the client and the intelligent household appliance, and the device comprises: the receiving module is used for receiving at least one piece of request information which is sent by the client and used for controlling the intelligent household appliance; a generating module for generating at least one piece of control information based on the at least one piece of request information; the sending module is used for sending the at least one piece of control information to the intelligent household appliance and receiving response information fed back by the intelligent household appliance according to any piece of control information; and the analysis module is used for analyzing the response information according to the at least one piece of control information to obtain a response result represented by the response information and feeding the response result back to the client.
The present invention also provides a server, comprising:
one or more processors;
a memory for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the intelligent home appliance control method described above.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the intelligent home appliance control method as described above.
Drawings
Fig. 1 is a schematic view of an application scenario of the intelligent household appliance control method provided by the present invention.
Fig. 2 is a block diagram of a server according to the present invention.
Fig. 3 is a schematic flow chart of a method for controlling an intelligent household electrical appliance according to the present invention.
Fig. 4 is a schematic flow chart of another intelligent household appliance control method provided in the present invention.
Fig. 5 is a schematic flow chart of another intelligent household appliance control method provided in the present invention.
Fig. 6 is a schematic flow chart of another intelligent household appliance control method provided in the present invention.
Fig. 7 is a schematic flow chart of another intelligent household appliance control method provided in the present invention.
Fig. 8 is a schematic block diagram of an intelligent household appliance control device according to the present invention.
Description of reference numerals:
10-a server; 11-a processor; 12-a memory; 13-a bus; 14-a communication interface; 20-a client; 30-intelligent household appliances; 100-intelligent household electrical appliance control device; 110-a receiving module; 120-a generation module; 130-a sending module; 140-analysis module.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of an intelligent household electrical appliance control method provided by the present invention, in fig. 1, a server 10 is in communication connection with a client 20 and an intelligent household electrical appliance 30, the client 20 may be one or more, the intelligent household electrical appliance 30 may be one or more, a user sends a control request to the server 10 through the client 20, the server 10 generates corresponding control information according to the control request and sends the control information to the intelligent household electrical appliance 30, the intelligent household electrical appliance 30 feeds back response information to the server 10 in response to the control information, and the server 10 analyzes the response information and feeds back a response result corresponding to the response information to the client 20 for output. The response information corresponds to two response results: the response is normal and the response is overtime, and when the response result is normal, the response result further includes an execution result of the intelligent home appliance device 30 executing the control command in the control information, where the execution result includes two types: execution success and execution failure. The analysis of the response information is completed by the server, so that the complexity of the implementation logic of the client is reduced, when the number of the clients is increased, the analysis function of the response information does not need to be added to the increased clients, and the maintenance cost of the clients is reduced.
The server 10 may be a physical server, a cloud server, or a virtual machine that implements a function corresponding to the physical server.
The client 20 may be a mobile computer device such as a mobile phone, tablet computer, etc.
The intelligent home appliance 30 is a home appliance product formed by introducing a microprocessor, a sensor technology and a network communication technology into the home appliance, has the functions of automatically sensing the space state of a house, the self state of the home appliance and the service state of the home appliance, and can automatically control and receive a control instruction of a house user in the house or in a remote place. The intelligent household appliance 30 may include, but is not limited to, an intelligent air conditioner, an intelligent electric cooker, an intelligent water heater, an intelligent washing machine, and the like.
Referring to fig. 2 on the basis of fig. 1, fig. 2 is a block schematic diagram of a server 10 according to the present invention, where the server 10 may be the server 10 in fig. 1, the server 10 includes a processor 11, a memory 12, a bus 13 and a communication interface 14, and the processor 11, the memory 12 and the communication interface 14 are connected through the bus 13.
The processor 11 may be an integrated circuit chip having signal processing capabilities. In the implementation process, the steps of the intelligent household appliance control method may be implemented by an integrated logic circuit of hardware in the processor 11 or instructions in the form of software. The Processor 11 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The memory 12 is used to store a program, such as the above-described intelligent home appliance control device. The intelligent home device control apparatus includes at least one software function module which may be stored in the memory 12 in the form of software or firmware (firmware) or may be fixed in an Operating System (OS) of the server 10. After receiving the execution instruction, the processor 11 executes the program to implement the intelligent home appliance control method disclosed in the following embodiment.
There may be a plurality of communication interfaces 14, and the server 10 may communicate with the client 20 and the smart home device 30 through different communication interfaces 14.
On the basis of fig. 1 and fig. 2, an embodiment of the present invention provides an intelligent home appliance control method, please refer to fig. 3, and fig. 3 is a schematic flow diagram of the intelligent home appliance control method provided by the present invention, where the method includes the following steps:
step S101, at least one piece of request information which is sent by a client and used for controlling the intelligent household electrical appliance is received.
In this embodiment, the request information may include identification information for uniquely characterizing the intelligent home device that the client wants to control, a control command that the intelligent home device wants to execute, and the like, where the identification information may be a device identifier of the intelligent home device, or an IP address of the intelligent home device, and the like.
Step S102, generating at least one piece of control information based on the at least one piece of request information.
In this embodiment, one piece of request information corresponds to one piece of control information, and the control information may include, in addition to the identification information of the intelligent home appliance and the control command in the request information, additional information of a transmission protocol used for transmitting the identification information and the control command, or information identification for facilitating identification of response information in response to the control information, or statistical information for facilitating the retry number of retries of the control information, and the like.
And step S103, sending at least one piece of control information to the intelligent household appliance and receiving response information fed back by the intelligent household appliance according to any piece of control information.
In this embodiment, the intelligent household electrical appliances may be multiple, and the client may also be multiple, one client may control multiple intelligent household electrical appliances through the server at the same time, different clients may also control the same intelligent household electrical appliance through the server, and different clients may also control different intelligent household electrical appliances through the server at the same time.
In this embodiment, under a normal condition, the intelligent household electrical appliance feeds back corresponding response information for each piece of control information within a preset time length. The preset duration may be a preset timeout time, that is, after the control information is issued, if the corresponding response information is not received within the timeout time, the control information is considered to be processed to be timeout, and the timeout time may be set according to actual scene needs, for example, the timeout time is set to be 5 seconds. Certainly, under the abnormal condition, the intelligent household electrical appliance does not feed back corresponding response information within a preset time length, wherein there are at least two abnormal conditions: (1) the intelligent household appliance feeds back the response information, but the preset time length is exceeded, and the condition can be caused by network failure or poor network quality; (2) when the intelligent household appliance cannot recognize the control command in the control information, the intelligent household appliance cannot respond to the control information, namely, the intelligent household appliance cannot feed back the response information of the control information to the server.
And step S104, analyzing the response information according to the at least one piece of control information to obtain a response result represented by the response information and feeding the response result back to the client.
In this embodiment, under a normal condition, when the server receives the response information within the preset time, it determines that the response of the response control information is successful, and at this time, the response success and the execution result of the intelligent household electrical appliance executing the control command are put into the response result, and the response result is fed back to the client. Under the abnormal condition, when the server does not receive the response information within the preset time length, the server judges that the processing aiming at the control information is overtime, at the moment, the response overtime is put into the response result, and the response result is fed back to the client.
According to the intelligent household appliance control method provided by the embodiment of the invention, the server is used for analyzing the response information, so that the complexity of the implementation logic of the client is reduced, when the number of the clients is increased, the analysis function of the response information does not need to be added to the increased clients, and the maintenance cost of the clients is reduced.
On the basis of fig. 3, another intelligent household electrical appliance control method is further provided in the embodiments of the present invention, please refer to fig. 4, fig. 4 is a flowchart of the intelligent household electrical appliance control method provided in the present invention, and step S104 includes the following sub-steps:
and a substep S1041, acquiring a second keyword corresponding to the response information, where the second keyword is used to represent control information corresponding to the response information.
In this embodiment, each piece of control information corresponds to a first keyword that is used to uniquely identify the control information, and the first keyword may be formed by combining an information identifier of the control information and a device identifier of the intelligent home appliance controlled by the control information. The information identifier of the control information may be generated by a counter, each intelligent household electrical appliance corresponds to one counter, that is, each new piece of control information is generated, 1 is added to the current count, and the value after 1 is added is used as the information identifier of the control information, for example, if the information identifier of the 1 st piece of control information is 1, 1 is added to the information identifier of the 2 nd piece of control information on the basis of 1, that is, 2. The counter can be realized by an INCR command in a Redis (key-value storage system), when a plurality of pieces of control information are generated, 1 is added to each piece of control information in sequence, and the Redis ensures that the atomicity of the operation added with 1 is ensured. Reset to 0 when the information flag equals 65000.
Because each intelligent household appliance corresponds to one counter and the atomicity of the plus-1 operation is ensured, two pieces of control information with the same identification for the same intelligent household appliance cannot occur, and the error in judgment of response information of the two pieces of control information is avoided.
In this embodiment, the device identifier of the intelligent household electrical appliance is used to uniquely represent the intelligent household electrical appliance, and may be an MAC address of the intelligent household electrical appliance, or a factory number of the intelligent household electrical appliance.
In this embodiment, each piece of response information corresponds to a second keyword, and the second keyword is used to represent the control information corresponding to the response information, that is, the first keyword of one piece of control information is the same as the second keyword of the response information of the control information, and as a specific implementation manner, the second keyword may be obtained by:
firstly, the device identification of the intelligent household appliance sending the response information and the information identification of the response information are obtained.
In the present embodiment, the information identification of the control information is the same as the information identification of the response information of the control information.
And secondly, combining the equipment identifier and the information identifier to obtain a second keyword corresponding to the response information.
In the sub-step S1042, if the message buffer has the first target control information with the first keyword identical to the second keyword, a response result with a successful response is generated and the first target control information is deleted from the message buffer.
In this embodiment, all control information is stored in the message buffer while being transmitted to the smart home device. The first target control information is control information in which a first key is the same as a second key in at least one piece of control information, for example, there are 3 pieces of control information: the key words of the 1# information, the 2# information and the 3# information are respectively: a _1, a _2, a _3, and the second key is a _3, the target control information is 3# information.
In this embodiment, for the response information returned by the intelligent home appliance device, if the control information corresponding to the response information exists in the current message buffer, it is verified that the response information is returned normally, and therefore the response is successful. If the corresponding control information does not exist in the message cache region at the moment, the response information is proved not to be returned within the preset time length, namely the response information is judged to be overtime when the server does not receive the response information within the preset time length, the response result of the overtime control information processing of the client side is fed back at the moment, and the control information is deleted from the message cache region, so that the corresponding control information cannot be found in the message cache region by the response information returned after the preset time length is exceeded, and the server can directly discard the response information without further processing.
According to the intelligent household appliance control method provided by the embodiment of the invention, whether the control information corresponding to the response information exists is quickly judged through the first keyword and the second keyword, so that the response result of successful response represented by the response information is quickly determined, the response result is quickly returned to the client, and the timeliness of response to the user control request is improved.
With continued reference to fig. 4, step S102 includes the following sub-steps:
and a substep S1021, generating corresponding information identification for each request information according to the equipment identification.
In this embodiment, since the information identifier of each intelligent home device is independent from the information identifiers of other intelligent home devices, the information identifiers of the control information for the same intelligent home device are different, and the information identifiers of the control information for different intelligent home devices may be the same or different.
In this embodiment, the information identifier of the request information is already described in detail in step S1041, and is not described here again.
In sub-step S1022, control information corresponding to each request message is generated according to the message identifier corresponding to each request message.
According to the intelligent household appliance control method provided by the embodiment of the invention, the corresponding information identifier is generated for each request message aiming at the intelligent household appliance according to the intelligent household appliance identifier, so that the problem of wrong judgment of the response messages of the control messages caused by the same information identifier aiming at the control messages of the same intelligent household appliance is solved.
In this embodiment, in order to analyze whether response information is returned overtime or normal in time so as to timely feed back a corresponding response result to a client, another intelligent household appliance control method is further provided in an embodiment of the present invention, please refer to fig. 5, where fig. 5 is a schematic flow diagram of an intelligent household appliance control method provided by the present invention, and the method includes the following steps:
in step S201, when it is detected that the delay queue is not empty, the current control information at the head of the delay queue is fetched.
In this embodiment, the delay queue is used to implement a timeout mechanism, and after a preset time period elapses after each piece of control information is sent to the intelligent household electrical appliance, the server stores the control information in the tail of the delay queue, that is, places the control information at the tail of the delay queue. The delay queues, when processing the control information therein, obey the first-in first-out principle, i.e., the first-in control information is first dequeued. In this embodiment, the current control information is control information of a head of a delay queue, for example, the current control information sequentially includes, from the head to the tail of the delay queue: the information of 1# and the information of 2# are added to the tail of the delay queue when the information of 3# is to be enqueued, and when the control information in the delay queue needs to be processed, the information of 1# is dequeued first and processed first, and the information of 1# is the current control information at this time.
It should be noted that, as another specific implementation manner, the delay queue may include a first queue and a second queue, the server sends each control information to the intelligent household electrical appliance and simultaneously puts the control information into the first queue, after a preset time period elapses, transfers the control information from the first queue to the second queue, and when it is detected that the second queue is not empty, takes out the current control information located at the head of the second queue to perform subsequent processing.
Step S202, if second target control information with the first keyword identical to the first keyword corresponding to the current control information exists in the message buffer area, generating a response result with overtime response and deleting the second target control information from the message buffer area.
In this embodiment, the second target control information is control information in which a first key in at least one piece of control information stored in the message buffer is the same as a first key corresponding to the current control information. If the second target control information exists in the message cache region, the response information of the current control information is not returned within the preset time length, and the response is judged to be overtime, otherwise, the response information of the current control information is returned within the preset time length, and the response is judged to be normal.
Step S203, if there is no second target control information in the message buffer, where the first keyword is the same as the first keyword corresponding to the current control information, a response result with a normal response is generated.
According to the intelligent household appliance control method provided by the embodiment of the invention, an overtime mechanism is realized through the delay queue, overtime response processing can be timely performed on overtime control information, and the timeliness of the client for controlling the intelligent household appliance is improved.
In this embodiment, in a scenario where multiple clients exist, in order to avoid that a response result is fed back to a client unrelated to the response result and ensure accuracy of feedback of the response result, an embodiment of the present invention further provides another intelligent home appliance control method, please refer to fig. 6, where fig. 6 is a flowchart illustrating the intelligent home appliance control method provided by the present invention, and the method includes the following steps:
step S301, a target client which subscribes the intelligent household appliance to the server in advance in the plurality of clients is obtained.
In this embodiment, the subscription mechanism is an implementation manner of information distribution, and if the client subscribes the intelligent home appliance to the server in advance, the state of the intelligent home appliance changes, or information fed back by the intelligent home appliance is finally sent to the client, and the client that does not subscribe to the server does not receive the information.
In this embodiment, the target client is a client that has subscribed to the server in advance among the plurality of clients.
Step S302, the response result is fed back to the target client.
According to the intelligent household appliance control method provided by the embodiment of the invention, the intelligent household appliance is subscribed to the server in advance, so that the response result can be prevented from being fed back to the client irrelevant to the response result under the scene that a plurality of clients exist, and the accuracy of the feedback of the response result is ensured.
In this embodiment, in order to determine control information corresponding to response information returned by an intelligent device more quickly, an embodiment of the present invention further provides another intelligent home appliance control method, please refer to fig. 7, where fig. 7 is a schematic flow diagram of the intelligent home appliance control method provided by the present invention, and the method includes the following steps:
step S401, combine the device identifier and the information identifier corresponding to each control information to obtain a first keyword corresponding to each control information.
Step S402, storing each control information and the corresponding first keyword into a message buffer.
According to the intelligent household appliance control method provided by the embodiment of the invention, the first keyword is formed by combining the equipment identifier and the information identifier, and the control information and the corresponding first keyword are stored in the message cache region, so that whether the control information corresponding to the response information returned by the intelligent household appliance exists or not can be quickly judged, and the timeliness of the response of the control information is improved.
In order to execute the corresponding steps in the above embodiments and various possible implementations, an implementation manner of the intelligent household appliance control device is given below. Referring to fig. 8, fig. 8 is a functional block diagram of an intelligent household electrical appliance control device 100 according to the present invention. It should be noted that the basic principle and the generated technical effect of the intelligent household electrical appliance control device 100 according to the embodiment of the present invention are the same as those of the foregoing method embodiment, and for a brief description, no part mentioned in this embodiment can refer to the corresponding content of the foregoing method embodiment. The intelligent household electrical appliance control apparatus 100 is applied to the server 10, and the intelligent household electrical appliance control apparatus 100 is described below with reference to fig. 3 to 7, where the intelligent household electrical appliance control apparatus 100 includes: a receiving module 110, a generating module 120, a sending module 130 and an analyzing module 140.
A receiving module 110, configured to receive at least one piece of request information sent by the client and used to control the smart home appliance.
A generating module 120 configured to generate at least one piece of control information based on the at least one piece of request information.
Optionally, each piece of request information includes a device identifier of the multiple intelligent home devices, and the generating module 120 is specifically configured to: generating a corresponding information identifier for each request message according to the equipment identifier; and generating control information corresponding to each request message according to the message identifier corresponding to each request message.
A sending module 130, configured to send the at least one piece of control information to the intelligent household electrical appliance and receive response information fed back by the intelligent household electrical appliance according to any piece of control information.
The analysis module 140 is configured to analyze the response information according to the at least one piece of control information, obtain a response result represented by the response information, and feed back the response result to the client.
Optionally, each piece of control information corresponds to a first keyword for uniquely identifying the control information, the server stores all pieces of control information in a message buffer in advance, and the analysis module 140 is specifically configured to: acquiring a second keyword corresponding to the response information, wherein the second keyword is used for representing control information corresponding to the response information; and if the message cache region has first target control information with the same first key words and second key words, generating a response result with successful response and deleting the first target control information from the message cache region.
Optionally, the analyzing module 140 is specifically configured to, after executing the step of obtaining the second keyword corresponding to the response information: acquiring a device identifier of the intelligent household appliance sending the response information and an information identifier of the response information; and combining the equipment identifier and the information identifier to obtain a second keyword corresponding to the response information.
Optionally, the server further stores the control information in a tail of the delay queue after a preset time period, and the analysis module 140 is further configured to: when detecting that the delay queue is not empty, taking out the current control information at the head of the delay queue; if second target control information with the first key words identical to the first key words corresponding to the current control information exists in the message cache region, generating a response result of response overtime and deleting the second target control information from the message cache region; and if second target control information with the first key words identical to the first key words corresponding to the current control information does not exist in the message cache region, generating a response result responding normally.
Optionally, there are multiple clients, and the analysis module 140 is specifically configured to: acquiring a target client which is subscribed with intelligent household electrical appliance equipment from a server in advance from a plurality of clients; and feeding back the response result to the target client.
Optionally, the server includes a message buffer, and the analysis module 140 is further configured to: combining the equipment identifier and the information identifier corresponding to each piece of control information to obtain a first keyword corresponding to each piece of control information; and storing each piece of control information and the corresponding first keyword into a message buffer area.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the intelligent home appliance control method as described above.
In summary, the present invention provides a method, an apparatus, a server and a storage medium for controlling an intelligent household electrical appliance, which are applied to the server, wherein the server is in communication connection with both a client and the intelligent household electrical appliance, and the method comprises: receiving at least one piece of request information which is sent by a client and used for controlling the intelligent household appliance; generating at least one piece of control information based on the at least one piece of request information; sending at least one piece of control information to the intelligent household appliance and receiving response information fed back by the intelligent household appliance according to any piece of control information; and analyzing the response information according to the at least one piece of control information to obtain a response result represented by the response information and feeding the response result back to the client. Compared with the prior art, the method and the system have the advantages that the analysis of the response information is completed by the server, so the complexity of the implementation logic of the client is reduced, when the number of the clients is increased, the analysis function of the response information does not need to be added to the increased clients, and the maintenance cost of the clients is reduced.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. The intelligent household appliance control method is applied to a server (10), the server (10) is in communication connection with a client (20) and an intelligent household appliance (30), the number of the intelligent household appliances (30) is multiple, each intelligent household appliance (30) corresponds to one counter, and the method comprises the following steps:
receiving at least one piece of request information sent by the client (20) for controlling the intelligent household appliance (30), wherein the request information comprises a device identifier of the intelligent household appliance (30);
generating a corresponding information identifier for each request message according to the device identifier, wherein the information identifier is obtained by adding 1 to the current count of a counter of the intelligent household appliance (30) represented by the device identifier;
generating control information corresponding to each request message according to the message identifier corresponding to each request message, wherein each control message corresponds to a first keyword for uniquely identifying the control message, and the server (10) stores all the control messages in a message cache region in advance;
sending the at least one piece of control information to the intelligent household appliance (30) and receiving response information fed back by the intelligent household appliance (30) according to any piece of control information, wherein the response information comprises an equipment identifier of the intelligent household appliance (30) executing corresponding control information and an information identifier of the corresponding control information;
analyzing the response information according to the at least one piece of control information to obtain a response result represented by the response information and feeding the response result back to the client (20);
each control information is sent to the intelligent household electrical appliance (30) and is put into a first queue;
after a preset time length, transferring each piece of control information from the first queue to a second queue; when detecting that the second queue is not empty, taking out the current control information at the head of the second queue;
if second target control information with the first key words identical to the first key words corresponding to the current control information exists in the message cache region, generating a response result with overtime response and deleting the second target control information from the message cache region;
and if second target control information with the first key word identical to the first key word corresponding to the current control information does not exist in the message cache region, generating a response result with normal response.
2. The intelligent household appliance control method according to claim 1, wherein the step of analyzing the response information according to the at least one piece of control information to obtain the response result represented by the response information comprises:
acquiring a second keyword corresponding to the response information, wherein the second keyword is used for representing control information corresponding to the response information;
and if the message cache region has first target control information with the same first key words and second key words, generating a response result with successful response and deleting the first target control information from the message cache region.
3. The intelligent household appliance control method according to claim 2, wherein the step of obtaining the second keyword corresponding to the response information comprises:
acquiring the equipment identifier of the intelligent household appliance (30) sending the response information and the information identifier of the response information;
and combining the equipment identifier and the information identifier to obtain a second keyword corresponding to the response information.
4. The intelligent household appliance control method according to claim 2, wherein the server (10) further stores the control information at the tail of the delay queue after a preset time period, and the method further comprises: when detecting that the delay queue is not empty, taking out the current control information at the head of the delay queue;
if second target control information with the first key words identical to the first key words corresponding to the current control information exists in the message cache region, generating a response result with overtime response and deleting the second target control information from the message cache region;
and if second target control information with the first key word identical to the first key word corresponding to the current control information does not exist in the message cache region, generating a response result with normal response.
5. The method for controlling an intelligent home appliance according to claim 1, wherein there are a plurality of clients (20), and the step of feeding back the response result to the clients (20) comprises: acquiring a target client which is subscribed to the server (10) by the intelligent household appliance device (30) in advance from a plurality of clients (20);
and feeding back the response result to the target client.
6. The intelligent home device control method of claim 1, wherein the server (10) comprises a message buffer, the method further comprising:
combining the equipment identifier and the information identifier corresponding to each piece of control information to obtain a first keyword corresponding to each piece of control information;
and storing each piece of control information and the corresponding first keyword into the message buffer area.
7. The utility model provides an intelligence tame electric installation controlling means, its characterized in that is applied to server (10), server (10) and client (20) and the equal communication connection of intelligent tame electric installation (30), intelligent tame electric installation (30) are a plurality of, each intelligence tame electric installation (30) correspond a counter, the device includes:
a receiving module (110) configured to receive at least one piece of request information sent by the client (20) for controlling the smart home device (30), where the request information includes a device identifier of the smart home device (30);
a generation module (120) for: generating a corresponding information identifier for each request message according to the device identifier, wherein the information identifier is obtained by adding 1 to the current count of a counter of the intelligent household appliance (30) represented by the device identifier; generating control information corresponding to each request message according to the message identifier corresponding to each request message, wherein each control message corresponds to a first keyword for uniquely identifying the control message, and the server (10) stores all the control messages in a message cache region in advance;
a sending module (130) configured to send the at least one piece of control information to the intelligent household electrical appliance device (30) and receive response information fed back by the intelligent household electrical appliance device (30) according to any one piece of control information, where the response information includes a device identifier of the intelligent household electrical appliance device (30) that executes corresponding control information and an information identifier of corresponding control information;
an analysis module (140) configured to analyze the response information according to the at least one piece of control information, obtain a response result represented by the response information, and feed back the response result to the client (20); the analysis module (140) is specifically configured to: each control information is sent to the intelligent household electrical appliance (30) and is put into a first queue; after a preset time length, transferring each piece of control information from the first queue to a second queue; when detecting that the second queue is not empty, taking out the current control information at the head of the second queue; if second target control information with the first key words identical to the first key words corresponding to the current control information exists in the message cache region, generating a response result with overtime response and deleting the second target control information from the message cache region; and if second target control information with the first key word identical to the first key word corresponding to the current control information does not exist in the message cache region, generating a response result with normal response.
8. A server (10), characterized in that the server (10) comprises:
one or more processors (11);
memory (12) for storing one or more programs which, when executed by the one or more processors (11), cause the one or more processors (11) to implement the intelligent home device control method of any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor (11), carries out the intelligent home device control method according to any one of claims 1-6.
CN202010762502.3A 2020-07-31 2020-07-31 Intelligent household electrical appliance control method and device, server and storage medium Active CN111917617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010762502.3A CN111917617B (en) 2020-07-31 2020-07-31 Intelligent household electrical appliance control method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010762502.3A CN111917617B (en) 2020-07-31 2020-07-31 Intelligent household electrical appliance control method and device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111917617A CN111917617A (en) 2020-11-10
CN111917617B true CN111917617B (en) 2022-03-29

Family

ID=73287493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010762502.3A Active CN111917617B (en) 2020-07-31 2020-07-31 Intelligent household electrical appliance control method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111917617B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297300A (en) * 2013-04-16 2013-09-11 北京航空航天大学 Interaction system and method of mobile intelligent terminal and server-side
CN103370917A (en) * 2012-11-20 2013-10-23 华为技术有限公司 Message processing method and server
CN103973748A (en) * 2013-02-04 2014-08-06 珠海格力电器股份有限公司 Intelligent home system and monitoring method implemented by same
CN105024995A (en) * 2015-05-29 2015-11-04 四川长虹电器股份有限公司 Household smart device control system
CN107179695A (en) * 2016-03-09 2017-09-19 朗新科技股份有限公司 A kind of the household electrical appliances response system and method for Demand-Oriented response
CN107644644A (en) * 2017-09-28 2018-01-30 四川长虹电器股份有限公司 The method that Voice command smart home is realized based on wearable device
CN109445292A (en) * 2018-10-22 2019-03-08 深圳绿米联创科技有限公司 Automated execution result collection method, device, system and storage medium
CN111193796A (en) * 2019-12-26 2020-05-22 深圳证券交易所 Session keeping method based on delay queue, server and readable storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516673A (en) * 2012-06-21 2014-01-15 腾讯科技(深圳)有限公司 Network data communication method, network data communication system, network data communication client and network data communication server
CN103577264A (en) * 2013-11-18 2014-02-12 浪潮(北京)电子信息产业有限公司 Time control method and system
CN105573142A (en) * 2014-10-15 2016-05-11 珠海格力电器股份有限公司 Intelligent household control system
CN105978851A (en) * 2016-04-13 2016-09-28 青岛海信传媒网络技术有限公司 System and method for controlling intelligent equipment
CN105897533A (en) * 2016-06-30 2016-08-24 中国联合网络通信集团有限公司 Method and system for controlling intelligent household appliances, home gateway and client
US10834230B2 (en) * 2017-08-25 2020-11-10 International Business Machines Corporation Server request management
CN110099078B (en) * 2018-01-29 2022-02-25 阿里巴巴集团控股有限公司 Method, device, equipment and storage medium for communication between equipment and message synchronization
CN108459917A (en) * 2018-03-15 2018-08-28 欧普照明股份有限公司 A kind of message distribution member, message handling system and message distribution method
CN111343611B (en) * 2018-12-18 2022-11-22 阿里巴巴集团控股有限公司 Information synchronization method and device
CN110417910B (en) * 2019-08-07 2022-04-22 北京达佳互联信息技术有限公司 Notification message sending method, device, server and storage medium
CN110719318B (en) * 2019-09-06 2022-06-21 未鲲(上海)科技服务有限公司 Message processing method and system
CN111104257A (en) * 2019-11-30 2020-05-05 浪潮(北京)电子信息产业有限公司 Anti-timeout method, device, equipment and medium for backup log data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103370917A (en) * 2012-11-20 2013-10-23 华为技术有限公司 Message processing method and server
CN103973748A (en) * 2013-02-04 2014-08-06 珠海格力电器股份有限公司 Intelligent home system and monitoring method implemented by same
CN103297300A (en) * 2013-04-16 2013-09-11 北京航空航天大学 Interaction system and method of mobile intelligent terminal and server-side
CN105024995A (en) * 2015-05-29 2015-11-04 四川长虹电器股份有限公司 Household smart device control system
CN107179695A (en) * 2016-03-09 2017-09-19 朗新科技股份有限公司 A kind of the household electrical appliances response system and method for Demand-Oriented response
CN107644644A (en) * 2017-09-28 2018-01-30 四川长虹电器股份有限公司 The method that Voice command smart home is realized based on wearable device
CN109445292A (en) * 2018-10-22 2019-03-08 深圳绿米联创科技有限公司 Automated execution result collection method, device, system and storage medium
CN111193796A (en) * 2019-12-26 2020-05-22 深圳证券交易所 Session keeping method based on delay queue, server and readable storage medium

Also Published As

Publication number Publication date
CN111917617A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
US20210337046A1 (en) Intelligent scheduling method, terminal device, edge node cluster and intelligent scheduling system
CN108616429B (en) reconnection method and device for push service
US8200769B2 (en) Downloading a plug-in on an instant messaging client
WO2020206693A1 (en) Smart home scheduling method, apparatus and system, server and storage medium
CN113141383B (en) Device information subscription method, client, server, system and storage medium
US9537786B2 (en) Method, device, and system for information processing based on distributed buses
CN108718347B (en) Domain name resolution method, system, device and storage medium
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
CN110413424B (en) Configurable third-party message callback method, device, server and storage medium
CN115004673A (en) Message pushing method and device, electronic equipment and computer readable medium
CN113746910A (en) H5 page reconnection server method, terminal and readable storage medium
CN112751748A (en) Session message management method, device, server and readable storage medium
CN109462646B (en) Abnormal response method and equipment
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
CN111917617B (en) Intelligent household electrical appliance control method and device, server and storage medium
CN109495375B (en) MQTT message processing method and device, electronic equipment and storage medium
US20210334185A1 (en) Task based service management platform
CN111083176A (en) Cloud self-adaptive online method and device for monitoring camera
CN111049741B (en) Method for improving communication reliability, communication system and terminal equipment
CN108667908B (en) Information feedback method, device, equipment and storage medium during client interaction
CN110830305B (en) Method and device for wireless device to access WIFI network, electronic device and storage medium
EP3940475A1 (en) Control system, relay device, and relay program
CN114143728A (en) Message processing method, communication system, electronic device, and storage medium
JP6649085B2 (en) Distributed computing system, broadcasting station, server and distributed computing method
CN112202643A (en) Network detection method, device, test host and storage medium

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