Disclosure of Invention
In order to solve the technical problems, the invention provides a control method and device of intelligent household equipment and the intelligent household equipment, so as to reduce the inventory management difficulty of the intelligent household equipment.
In order to achieve the above purpose, the invention provides a control method of intelligent household equipment, which comprises the steps of receiving first operation of a user on the intelligent household equipment, reading intelligent household platform images corresponding to the first operation from at least two intelligent household platform images of the intelligent household equipment, and configuring the intelligent household equipment according to the intelligent household platform images so that the intelligent household equipment operates an intelligent household platform corresponding to the intelligent household platform images. Therefore, by burning a plurality of smart home platform images in the firmware of the smart home device, the smart home device can support different smart home platforms and can be switched between the different smart home platforms, so that a single smart home device can meet the requirements of the different smart home platforms, and the difficulty of stock keeping and stock management is reduced.
In one embodiment of the invention, reading the smart home platform image corresponding to the first operation from at least two smart home platform images of the smart home device includes reading a firmware address corresponding to the first operation, and reading the smart home platform image according to the firmware address. For this reason, can realize supporting a plurality of intelligent house platforms simultaneously on single intelligent house equipment.
In one embodiment of the invention, the method further comprises the steps of receiving a second operation of a user on the intelligent household equipment, reading intelligent household platform images corresponding to the second operation from at least two intelligent household platform images of the intelligent household equipment, and switching the configuration of the intelligent household equipment according to the intelligent household platform images corresponding to the second operation. Therefore, the switching between different intelligent home platforms on the intelligent home equipment can be realized.
In one embodiment of the invention, the method further comprises the step of receiving a first operation of the user on the intelligent household device, and then feeding back the first operation by the intelligent household device. Thus, the user can confirm that the operation is successful by feeding back through the intelligent home equipment.
In one embodiment of the invention, the smart home device is provided with a light emitting diode, and the smart home device making feedback on the first operation comprises that the light emitting diode flashes at a corresponding frequency. Thus, the user can intuitively confirm the success of the operation by blinking the light emitting diode at the corresponding frequency.
The invention further provides a control device of the intelligent household equipment, which comprises a receiving module, a reading module and a configuration module, wherein the receiving module receives a first operation of a user on the intelligent household equipment, the reading module reads an intelligent household platform image corresponding to the first operation from at least two intelligent household platform images of the intelligent household equipment, and the configuration module configures the intelligent household equipment according to the intelligent household platform images so that the intelligent household equipment can operate the intelligent household platform.
In an embodiment of the invention, the reading module reads the smart home platform image corresponding to the first operation from at least two smart home platform images of the smart home device, and the reading module reads the firmware address corresponding to the first operation and reads the smart home platform image according to the firmware address.
In one embodiment of the invention, the device further comprises a step of receiving a second operation of a user on the intelligent household equipment, a step of reading a second intelligent household platform image corresponding to the second operation from at least two intelligent household platform images of the intelligent household equipment, and a step of switching the configuration of the intelligent household equipment according to the intelligent household platform images corresponding to the second operation.
In one embodiment of the invention, the device further comprises a feedback device for receiving the first operation of the user on the intelligent home equipment, wherein the feedback device is used for feeding back the first operation.
In one embodiment of the invention, the smart home device is provided with a light emitting diode, and the smart home device making feedback on the first operation comprises that the light emitting diode flashes at a corresponding frequency.
The invention also proposes an electronic device comprising a processor, a memory and instructions stored in said memory, wherein said instructions, when executed by said processor, implement a method as described above.
The invention also proposes a computer readable storage medium having stored thereon computer instructions which, when executed, perform a method as described above.
Detailed Description
For a clearer understanding of technical features, objects, and effects of the present invention, a specific embodiment of the present invention will be described with reference to the accompanying drawings.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than as described herein, and therefore the present invention is not limited to the specific embodiments disclosed below.
As used in the specification and in the claims, the terms "a," "an," "the," and/or "the" are not specific to a singular, but may include a plurality, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that the steps and elements are explicitly identified, and they do not constitute an exclusive list, as other steps or elements may be included in a method or apparatus.
Fig. 1 is a schematic diagram of a smart home environment 100. As shown in fig. 1, the smart home environment 100 includes a cloud 110, a gateway 120, and a smart home device 130. Wherein gateway 120 and smart home device 130 are fixed within the residence.
The cloud 110 may be a server cluster including a plurality of servers, or may be a cloud computing center including a plurality of servers. Cloud 110 may be a computer device that provides a background service for a user, which may be a network attack detection service, or the like. Cloud 110 may connect to gateway 120 through a router (not shown) for data interaction with gateway 120.
Gateway 120 is connected to an in-home network (a plurality of smart home devices 130) and an out-home network (e.g., a cellular wireless network, the internet) and serves as a hub between the in-home network and the out-home network, and establishes communication between the in-home network and the out-home network, thereby realizing functions such as remote control, coordinated control, and other automatic configuration of the smart home. Different gateways can operate different intelligent home platforms, and the different intelligent home platforms are developed by different manufacturers.
The smart home device 130 is connected to at least one gateway 120 as an actuator of the smart home system. The plurality of smart home devices 130 constitute a smart home network. One gateway 120 may be connected to a plurality of smart home devices 130, and a plurality of gateways 120 may also be connected to one smart home device 130. One smart home device 130 communicates with only one gateway 120 at a time, and one gateway 120 may communicate with multiple smart home devices 130 at a time. The gateway 120 and the smart home device 130 may be connected and communicate through a bluetooth protocol, a Wi-Fi protocol, a ZigBee protocol, or the like. Smart home devices 130 include, but are not limited to, door and window sensors, infrared human body sensors, smoke sensors, temperature and humidity sensors, smart switches, lights, air conditioning, televisions, alarms, etc.
Fig. 2 is a flowchart of a control method 200 of a smart home device according to an embodiment of the present invention. The control method 200 may be performed in a smart home environment as shown in fig. 1. As shown in fig. 2, the control method 200 includes:
step 210, a first operation of a user on a smart home device is received.
The first operation of the user on the intelligent home equipment means that the user makes physical contact with the intelligent home equipment, the first operation of the user on the intelligent home equipment can be touch, short press or long press, and the like, and a preset program is burnt in firmware of the intelligent home equipment so as to make corresponding actions according to the first operation of the user.
Step 220, reading the smart home platform image corresponding to the first operation from at least two smart home platform images of the smart home device.
At least two smart home platform images, which may be two or more, are burned in the firmware of the smart home device, and for simplicity of explanation, two smart home platform images will be taken as examples. After receiving a first operation of a user on the intelligent home equipment, the intelligent home equipment identifies the first operation and reads an intelligent home platform image corresponding to the first operation from at least two intelligent home platforms. For example, the first operation by the user is pressing the button for 15 seconds, and the smart home device reads the first smart home platform image. The first operation of the user is pressing the button for 25 seconds, and the smart home device reads the second smart home platform image.
In some embodiments, reading the smart home platform image corresponding to the first operation from at least two smart home platform images of the smart home device includes reading a firmware address corresponding to the first operation, and reading the smart home platform image according to the firmware address. Specifically, the firmware of the intelligent home equipment comprises a plurality of firmware addresses, a first firmware address is written with a first intelligent home platform mirror image, a second firmware address is written with a second intelligent home platform, after a first operation of a user is received, the firmware address corresponding to the first operation is read, and the intelligent home platform mirror image in the firmware address is read. For example, the firmware of the smart home device includes a first firmware address FA1 and a second firmware address FA2, the first operation is to read the first firmware address FA1 when the button is pressed for 15 seconds, and the first operation is to read the second firmware address FA2 when the button is pressed for 25 seconds.
In some embodiments, the method further comprises receiving feedback from the smart home device on the first operation after the first operation by the user on the smart home device. Thus, the user can confirm that the operation is successful by feeding back through the intelligent home equipment.
In some embodiments, the smart home device is provided with a light emitting diode, and the smart home device feedback to the first operation includes the light emitting diode flashing at a corresponding frequency. For example, the light emitting diode blinks every 3 seconds for 15 seconds for pressing the button, and every 1 second for 25 seconds for pressing the button. Thus, the user can intuitively confirm the success of the operation by blinking the light emitting diode at the corresponding frequency.
Step 230, configuring the smart home device according to the smart home platform mirror image, so that the smart home device operates the smart home platform.
After the intelligent home platform mirror image is read, configuring the intelligent home equipment according to the intelligent home platform mirror image so that the intelligent home equipment operates the intelligent home platform. Specifically, ports, protocols and the like of the smart home device can be configured, so that the smart home device can operate the smart home platform.
In some embodiments, the method further comprises receiving a second operation of the user on the smart home device, reading a second smart home platform image corresponding to the second operation from at least two smart home platform images of the smart home device, and switching the configuration of the smart home device according to the smart home platform images corresponding to the second operation. For example, if the smart home device currently operates the first smart home platform, the second operation is that the user presses the button for 25 seconds, the smart home device reads the mirror image of the second smart home platform, switches the first smart home platform to the second smart home platform, i.e., reconfigures the port, protocol, etc. of the smart home device to enable the smart home platform to operate the second smart home platform, whereas if the smart home device currently operates the second smart home platform, the second operation is that the user presses the button for 15 seconds, the smart home device reads the mirror image of the first smart home platform, switches the second smart home platform to the first smart home platform, i.e., reconfigures the port, protocol, etc. of the smart home device to enable the smart home platform to operate the first smart home platform.
The embodiment of the invention provides a control method of intelligent household equipment, which enables the intelligent household equipment to support different intelligent household platforms and switch among the different intelligent household platforms by burning a plurality of intelligent household platform images in firmware of the intelligent household equipment, enables a single intelligent household equipment to meet the requirements of the different intelligent household platforms, and reduces the difficulty of stock keeping and stock management.
Fig. 3 is a schematic diagram of a control apparatus 300 of a smart home device according to an embodiment of the present invention. As shown in fig. 3, the control device 300 includes:
the receiving module 310 receives a first operation of a user on the smart home device.
And a reading module 320 for reading the smart home platform image corresponding to the first operation from at least two smart home platform images of the smart home device.
The configuration module 330 configures the smart home device according to the smart home platform image, so that the smart home device operates the smart home platform.
In some embodiments, the reading module 320 reads the smart home platform image corresponding to the first operation from at least two smart home platform images of the smart home device includes reading a firmware address corresponding to the first operation and reading the smart home platform image according to the firmware address.
In some embodiments, the apparatus 300 further comprises receiving a second operation of the user on the smart home device, reading a second smart home platform image corresponding to the second operation from at least two smart home platform images of the smart home device, and switching the configuration of the smart home device according to the smart home platform image corresponding to the second operation.
In some embodiments, the apparatus 300 further comprises receiving a first operation by the user on the smart home device, the smart home device feeding back the first operation.
In some embodiments, the smart home device is provided with a light emitting diode, and the smart home device feedback to the first operation includes the light emitting diode flashing at a corresponding frequency.
The invention also proposes an electronic device 400. Fig. 4 is a schematic diagram of an electronic device 400 according to an embodiment of the invention. As shown in fig. 4, electronic device 400 includes a processor 410 and a memory 420, with instructions stored in memory 420, wherein the instructions when executed by processor 410 implement method 200 as described above.
The present invention also proposes a computer readable storage medium having stored thereon computer instructions which, when executed, perform the method 200 as described above.
Some aspects of the methods and apparatus of the present invention may be performed entirely by hardware, entirely by software (including firmware, resident software, micro-code, etc.) or by a combination of hardware and software. The above hardware or software may be referred to as a "data block," module, "" engine, "" unit, "" component, "or" system. The processor may be one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital signal processing devices (DAPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or a combination thereof. Furthermore, aspects of the invention may take the form of a computer product, comprising computer-readable program code, embodied in one or more computer-readable media. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic cassettes, optical disks, compact disks (e.g., compact Disks (CDs), digital Versatile Disks (DVDs)), smart cards, and flash memory devices (e.g., cards, sticks, key drives).
A flowchart is used herein to describe the operations performed by methods according to embodiments of the present application. It should be appreciated that the foregoing operations are not necessarily performed in order precisely. Rather, the various steps may be processed in reverse order or simultaneously. At the same time, other operations are added to or removed from these processes.
It should be understood that although the present disclosure has been described in terms of various embodiments, not every embodiment is provided with a separate technical solution, and this description is for clarity only, and those skilled in the art should consider the disclosure as a whole, and the technical solutions in the various embodiments may be combined appropriately to form other embodiments that will be understood by those skilled in the art.
The foregoing is illustrative of the present invention and is not to be construed as limiting the scope of the invention. Any equivalent alterations, modifications and combinations thereof will be effected by those skilled in the art without departing from the spirit and principles of this invention, and it is intended to be within the scope of the invention.