Background
At present, a large number of shared intelligent household appliances are applied to the market, and the shared intelligent household appliances need to communicate with a cloud platform in real time in the operation process. In the case where a plurality of shared smart appliances are used simultaneously, many users may send a large number of control commands. When the cloud platform acquires the control command sent by the user and issues the control command to each intelligent household appliance, due to the limitation of the communication capacity between the cloud platform and the intelligent household appliance, when the control command is excessive, the communication between the intelligent household appliance and the cloud platform is easy to be congested, and the control command is failed to be issued. For example, in a campus, the time spent by students is uniform, and many students may have the above problems in the process of using a shared household appliance such as an air conditioner or a television, which reduces user experience.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a control method, a control device, and a control system for a plurality of intelligent home appliances that overcome or at least partially solve the above problems.
One object of the present invention is to improve the success rate of issuing control commands to intelligent appliances.
A further object of the present invention is to improve the success rate of obtaining the latest authorized usage duration of an intelligent appliance.
Particularly, the invention provides a method for controlling a plurality of intelligent household appliances, which comprises the following steps:
acquiring a control instruction for controlling the operation of a plurality of intelligent household appliances;
grouping the control instructions;
and sending the control command to the intelligent household appliances corresponding to the control command according to groups.
Optionally, the step of grouping the control commands includes:
acquiring the acquisition time of the control instruction;
data packaging is carried out on the control instruction by taking the acquisition time as a timestamp to obtain a communication packet;
and grouping the communication packets with the same time stamp.
Optionally, the step of grouping the communication packets with the same timestamp includes:
determining a base station connected with the intelligent household appliance corresponding to the control instruction in each communication packet;
and configuring the communication packets of a set number of intelligent household appliances connected to the same base station into a group.
Optionally, when the control instruction includes an authorized use instruction, after the step of sending the control instruction to the intelligent household appliance corresponding to the control instruction in groups, the method further includes:
stopping receiving the heartbeat sent by the intelligent household appliance corresponding to the authorized use instruction;
judging whether a command callback responding to the authorized use command sent by the intelligent household appliance is received or not;
and if so, continuously receiving the heartbeat sent by the intelligent household appliance.
Optionally, after the smart appliance receives the authorized use instruction, the smart appliance is configured to detect whether an authorized use state is updated;
and if so, sending an instruction callback responding to the authorized use instruction.
Optionally, if the authorized use state is not updated, the smart appliance is configured to continue sending the heartbeat according to a set period for sending the heartbeat.
Optionally, if the authorized use state is not updated, the smart appliance is configured to send exception information in response to the authorized use instruction.
Optionally, within a preset time period after the heartbeat sent by the intelligent household appliance corresponding to the authorized use instruction is stopped being received, if an instruction callback responding to the authorized use instruction sent by the intelligent household appliance is not received, the authorized use instruction is resent.
According to another aspect of the present invention, there is also provided a control apparatus for a plurality of intelligent home appliances, comprising:
a processor; and
and a memory storing a computer program for implementing any one of the above methods of controlling a plurality of intelligent appliances when the computer program is executed by the processor.
According to another aspect of the present invention, there is provided a control system for a plurality of intelligent home appliances, including:
the control equipment is the control equipment of the intelligent household appliances;
a plurality of intelligent appliances configured to be in data connection with the control device.
In the method for controlling the plurality of intelligent household appliances, the plurality of control instructions are grouped, and then the groups of control instructions can be sequentially sent to the corresponding intelligent household appliances, so that the number of the control instructions sent each time is reduced, the communication between the intelligent household appliances is prevented from being congested, and the success rate of sending the control instructions to the intelligent household appliances is improved.
Furthermore, the communication packets with the same timestamp are grouped, and when the control instruction is sent to the intelligent household appliance corresponding to the control instruction according to the group, the control instruction in any one group can be guaranteed to be the instruction with the same acquisition time, so that the instructions with different acquisition times are prevented from being sent together, the sending of the control instruction is more in line with the actual situation, and the user experience is improved.
Further, after the control instruction is sent to the intelligent household appliances corresponding to the control instruction in groups, the heartbeat sent by the intelligent household appliance corresponding to the authorized use instruction is stopped being received, so that the call-back of the instruction sent by the intelligent household appliance and responding to the authorized use instruction can be ensured, the latest use time of the intelligent household appliance is obtained, and the success rate of obtaining the latest use time of the intelligent household appliance is improved.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Detailed Description
Fig. 1 is a flowchart of a method for controlling a plurality of intelligent home appliances according to an embodiment of the present invention. The control method can be applied to a cloud platform, such as an Internet of Things (IOT) cloud platform, and receives a control instruction sent by terminal equipment so as to control a plurality of shared intelligent household appliances. The cloud platform can be a terminal device, a mobile phone bound with an intelligent household appliance, a remote controller, a wearable device and the like. Referring to fig. 1, the control method may include the following steps S102 to S106.
Step S102: and acquiring a control instruction for controlling the operation of the plurality of intelligent household appliances. The intelligent household appliance can be an intelligent air conditioner, an intelligent television, an intelligent water heater, an intelligent refrigerator and the like. In this step, the control instruction is originated from the terminal device.
Step S104: and grouping the control instructions.
Step S106: and sending the control command to the intelligent household appliance corresponding to the control command according to the group.
In this embodiment, when the control instructions are sent to the corresponding shared intelligent household appliances, the control instructions are grouped, and then the control instructions of each group can be sequentially sent to the corresponding intelligent household appliances, so that the number of the control instructions sent at each time is reduced, the communication congestion between the control instructions and the intelligent household appliances is prevented, and the success rate of sending the control instructions to the intelligent household appliances is improved.
In one embodiment of the present invention, step S104 may include acquiring a time of acquisition of the control instruction. And then, data packing is carried out on the control command by taking the acquisition time as a timestamp to obtain a communication packet. And grouping the communication packets with the same time stamp.
In this embodiment, the communication packets with the same timestamp are grouped, and when the control instruction is sent to the intelligent household appliance corresponding to the control instruction according to the group, it can be ensured that the control instruction in any one group that is sent is the instruction with the same acquisition time, so that the instructions with different acquisition times are prevented from being sent together, the sending of the control instruction is more in line with the actual situation, and the user experience is improved.
In an embodiment of the present invention, the step of grouping the communication packets with the same timestamp may include determining a base station to which the intelligent appliance corresponding to the control instruction in each communication packet is connected. Then, a set number of communication packets of the smart appliances connected to the same base station are configured as one set.
In this embodiment, the set number may be set according to the communication capability of the cloud platform. Specifically, for example, when the cloud platform is a narrowband Internet of Things (NB-IoT), because of the narrowband characteristic, one NB-IoT base station can simultaneously communicate with 12 smart appliances at the same time. Therefore, when the cloud platform is a narrowband internet of things, the set number may be any integer less than or equal to 12, preferably 12. The communication packets of the intelligent household appliances connected to the same base station in the set number are configured into a group, and when the group of communication packets are sent, the communication with a plurality of different base stations is avoided, so that the stability of communication is ensured, and the success rate of sending the communication packets is improved.
In an embodiment of the present invention, in the case that the control instruction includes an authorized use instruction, after step S106, the method may further include stopping receiving a heartbeat sent by the intelligent appliance corresponding to the authorized use instruction. And then judging whether a callback of an instruction which is sent by the intelligent household appliance and responds to the authorized use instruction is received. If yes, continuously receiving the heartbeat sent by the intelligent household appliance.
In this embodiment, when the user uses the shared intelligent home appliance, the user needs to purchase the use permission of the intelligent home appliance, and the use permission may refer to the use duration. The user can continue to purchase the use duration in the process of using the intelligent household appliance except for purchasing the use duration before using the shared intelligent household appliance. For example, a user purchases a usage time period of 1 hour or 5 hours using the smart home appliance. The authorized use instruction can be generally understood as a use instruction for purchasing a use duration for using the intelligent home appliance by a user. The smart appliance sends heartbeats at a set period to send an operating state. For example, when the intelligent household appliance is an air conditioner, the running states such as set temperature, wind speed and running mode are sent in a set period; when the intelligent household appliance is a television, transmitting running states of a television station, volume, playing time and the like which are being played at a set period; when the intelligent household appliance is a refrigerator, the temperature of the refrigerating chamber, the temperature of the fresh-keeping storage chamber and the like are sent in a set period. After the control instruction is sent to the intelligent household appliances corresponding to the control instruction according to the group, the latest use duration of the intelligent household appliances can be obtained by receiving the instruction callback which is sent by the intelligent household appliances and responds to the authorized use instruction. However, when the time for receiving the instruction callback is the same as the time for receiving the heartbeat, the instruction callback is easily covered, and the latest use duration of the intelligent home appliance cannot be obtained. Therefore, after the control instruction is sent to the intelligent household appliances corresponding to the control instruction in groups, the heartbeat sent by the intelligent household appliance corresponding to the authorized use instruction is stopped being received, so that the call-back of the instruction sent by the intelligent household appliance and responding to the authorized use instruction can be ensured, the latest use duration of the intelligent household appliance is obtained, and the success rate of obtaining the latest use duration of the intelligent household appliance is improved.
In one embodiment of the invention, after the smart appliance receives the authorized use instruction, the smart appliance is configured to detect whether the authorized use state is updated. If so, sending an instruction callback in response to the authorization to use the instruction. If not, the intelligent household appliance is configured to continue sending the heartbeat according to the set period of sending the heartbeat. The set period may be 1 minute or 2 minutes, and the embodiment of the present invention is not limited to this specifically.
In one embodiment of the invention, if the authorized use state is not updated, the intelligent household appliance is configured to send exception information in response to the authorized use instruction. In this embodiment, the abnormal information sent by the smart appliance in response to the authorized use instruction may be used as a basis for analyzing that the authorized use state is not updated.
In one implementation of the present invention, within a preset time period after the heartbeat sent by the intelligent appliance corresponding to the authorized use instruction is stopped being received, if a callback of an instruction in response to the authorized use instruction sent by the intelligent appliance is not received, the authorized use instruction is sent again.
In this embodiment, the preset time period may generally be 60 seconds or 90 seconds, and the like, which is not specifically limited in this embodiment of the present invention. And in a preset time period after the heartbeat sent by the intelligent household appliance corresponding to the authorized use instruction is stopped being received, if the instruction callback responding to the authorized use instruction sent by the intelligent household appliance is not received, the authorized use instruction is sent again, so that the possibility of successful sending can be increased.
In some other embodiments, after the preset time period, if the instruction callback in response to the authorized use instruction sent by the intelligent appliance is not received, in order to continue to acquire the operating state of the intelligent appliance, the heartbeat sent by the intelligent appliance corresponding to the authorized use instruction may continue to be received.
Fig. 2 is a flowchart of a control method of an intelligent household appliance group according to another embodiment of the present invention. Referring to fig. 2, the control method may generally include the following steps S202 to S212.
Step S202: and acquiring a control instruction for controlling the operation of each intelligent household appliance.
Step S204: and acquiring the acquisition time of the control instruction.
Step S206: and carrying out data packing on the control command by taking the acquisition time as a timestamp to obtain a communication packet.
Step S208: and determining the base station connected with the intelligent household appliance corresponding to the control command in each communication packet.
Step S210: and configuring a set number of communication packets of the intelligent household appliances connected to the same base station into a group. Generally, the set number may be set according to the communication capability of the cloud platform. Specifically, for example, when the cloud platform is a narrowband Internet of Things (NB-IoT), because of the narrowband characteristic, one NB-IoT base station can simultaneously communicate with 12 smart appliances at the same time. Therefore, when the cloud platform is a narrowband internet of things, the set number may be any integer less than or equal to 12, preferably 12.
Step S212: and sending the communication packets according to the groups so as to send the control instructions in the communication packets to the intelligent household appliances corresponding to the control instructions according to the groups.
In this embodiment, by grouping the plurality of control instructions and then sequentially sending each group of control instructions to the corresponding intelligent household appliance, the number of control instructions sent at each time is reduced, so that congestion in communication with the intelligent household appliance is prevented, and the success rate of sending the control instructions to the intelligent household appliance is improved. And the communication packets with the same timestamp are grouped, and when the control instruction is sent to the intelligent household appliance corresponding to the control instruction according to the group, the control instruction in any group can be ensured to be the instruction with the same acquisition time, so that the instructions with different acquisition times are prevented from being sent together, the sending of the control instruction is more in line with the actual condition, and the user experience is improved. In addition, the communication packets of the intelligent household appliances connected to the same base station in the set number are configured into a group, and when the group of communication packets are sent, the communication with a plurality of different base stations is avoided, so that the stability of communication is ensured, and the success rate of sending the communication packets is improved.
Fig. 3 is a flowchart of a control method of an intelligent household appliance group according to another embodiment of the present invention. Referring to fig. 3, the control method may generally include the following steps S302 to S314.
Step S302: and acquiring a control instruction for controlling the operation of each intelligent household appliance, wherein the control instruction comprises an authorized use instruction. The authorized use instruction may be an authorized use duration.
Step S304: and grouping the control instructions.
Step S306: and sending the control command to the intelligent household appliance corresponding to the control command according to the group.
Step S308: and stopping receiving the heartbeat sent by the intelligent household appliance corresponding to the authorized use instruction. The heartbeat includes an operation state of the intelligent household appliance, for example, when the intelligent household appliance is an air conditioner, the heartbeat includes an operation state such as a set temperature, a set wind speed, a set operation mode and the like; when the intelligent household appliance is a television, the heartbeat includes running states of a television station, volume, playing time and the like.
Step S310: and judging whether a callback of a command responding to the authorized use command sent by the intelligent household appliance is received. The instruction callback comprises the latest use state of the intelligent household appliance. The latest use state is the latest use duration of the intelligent household appliance.
If yes, go to step S312: and continuously receiving the heartbeat sent by the intelligent household appliance.
If not, go to step S314: and in a preset time period after the heartbeat sent by the intelligent household appliance corresponding to the authorized use instruction is stopped being received, if the instruction callback responding to the authorized use instruction sent by the intelligent household appliance is not received, the authorized use instruction is sent again. The preset time period may be generally 60 seconds, 90 seconds, or the like, which is not specifically limited in the embodiment of the present invention.
In this embodiment, when the time for receiving the instruction callback is the same as the time for receiving the heartbeat, the instruction callback is easily covered, and the latest service time of the intelligent household appliance cannot be obtained. Therefore, after the control instruction is sent to the intelligent household appliances corresponding to the control instruction in groups, the heartbeat sent by the intelligent household appliance corresponding to the authorized use instruction is stopped being received, so that the call-back of the instruction sent by the intelligent household appliance and responding to the authorized use instruction can be ensured, the latest use duration of the intelligent household appliance is obtained, and the success rate of obtaining the latest use duration of the intelligent household appliance is improved.
Referring to fig. 4, based on the same concept, the present invention also provides a control device 400 for multiple intelligent appliances. The control device 400 of a plurality of intelligent appliances may include a processor 401 and a memory 402. The memory 402 stores a computer program. The computer program is used to implement the method for controlling a plurality of intelligent appliances according to any of the above embodiments when executed by the processor 401.
Referring to fig. 5, based on the same concept, the present invention further provides a control system 500 for multiple intelligent appliances. A control system 500 for a plurality of intelligent appliances may include a control device 400 and a plurality of intelligent appliances 502. The number of intelligent appliances 502 in fig. 5 is only exemplary, and the number of intelligent appliances 502 in the present invention is not limited. The control device 400 is the control device 400 of a plurality of intelligent home appliances in the above embodiment. A plurality of intelligent appliances 502 are configured to be in data connection with the control device 400. The smart appliance 502 may be a smart air conditioner, a smart refrigerator, a smart television, or the like.
The above embodiments can be combined arbitrarily, and according to any one of the above preferred embodiments or a combination of multiple preferred embodiments, the embodiments of the present invention can achieve the following beneficial effects:
by grouping the plurality of control instructions and then sequentially sending the groups of control instructions to the corresponding intelligent household appliances, the number of control instructions sent at each time is reduced, so that the communication with the intelligent household appliances is prevented from being congested, and the success rate of sending the control instructions to the intelligent household appliances is improved.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.