CN114244644B - Control method and device for intelligent home, storage medium and electronic device - Google Patents
Control method and device for intelligent home, storage medium and electronic device Download PDFInfo
- Publication number
- CN114244644B CN114244644B CN202111544795.9A CN202111544795A CN114244644B CN 114244644 B CN114244644 B CN 114244644B CN 202111544795 A CN202111544795 A CN 202111544795A CN 114244644 B CN114244644 B CN 114244644B
- Authority
- CN
- China
- Prior art keywords
- command
- intelligent home
- internet
- things platform
- identifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
- H04L12/2818—Controlling appliance services of a home automation network by calling their functionalities from a device located outside both the home and the home network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/283—Processing of data at an internetworking point of a home automation network
- H04L12/2834—Switching of information between an external network and a home network
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Selective Calling Equipment (AREA)
Abstract
The application discloses a control method and device for intelligent home, a storage medium and an electronic device. Wherein the method comprises the following steps: detecting a first control operation triggered by a user on a user terminal, wherein the first control operation is used for indicating a target intelligent home to execute a first appointed operation; searching a first command for indicating execution of a first designated operation from a command library, wherein the command library is used for storing basic commands of all intelligent home furnishing; and informing the Internet of things platform of the device identifier of the target intelligent home and the first command so that the Internet of things platform controls the target intelligent home to execute the first appointed operation. The method and the device solve the technical problem that control information in the related art needs to occupy too large storage space.
Description
Technical Field
The application relates to the field of internet of things, in particular to a control method and device for intelligent home, a storage medium and an electronic device.
Background
The intelligent home is an embodiment of internet of things under the influence of the internet of things, and the intelligent home connects various devices (such as audio and video equipment, a lighting system, curtain control, air conditioner control, a security system, a digital cinema system, an audio and video server, a video cabinet system, network household appliances and the like) in the home together through the internet of things technology, so that various functions and means such as household appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment monitoring, heating and ventilation control, infrared forwarding and programmable timing control are provided. Compared with the common home, the intelligent home not only has the traditional living function, but also has the functions of building, network communication, information home appliances and equipment automation, provides an omnibearing information interaction function, and even saves funds for various energy costs.
The user can select the working scene of intelligent house on user terminal such as cell-phone, tablet, will send the control command that corresponds with this working scene this moment, and then control intelligent house, along with the gradual increase of working scene, because the instruction of every scene all needs to save, can occupy a large amount of storage space.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a control method and device for intelligent home, a storage medium and an electronic device, which are used for at least solving the technical problem that control information in the related technology needs to occupy too large storage space.
According to an aspect of the embodiment of the present application, there is provided a control method for smart home, including: detecting a first control operation triggered by a user on a user terminal, wherein the first control operation is used for indicating a target intelligent home to execute a first appointed operation; searching a first command for indicating execution of a first designated operation from a command library, wherein the command library is used for storing basic commands of all intelligent home furnishing; and informing the Internet of things platform of the device identifier of the target intelligent home and the first command so that the Internet of things platform controls the target intelligent home to execute the first appointed operation.
Optionally, notifying the internet of things platform of the device identifier and the first command of the target smart home includes: directly sending the device identifier and the first command of the target intelligent home to an Internet of things platform; and sending the device identifier of the target intelligent home and the first identifier of the first command to the Internet of things platform, wherein the basic command and the command identifier of each intelligent home are stored in the command library.
Optionally, after detecting a first control operation triggered by a user on the user terminal, if the first control operation is that a scene mode is selected from the existing scenes, searching a first identifier group matched with the selected scene mode from a plurality of identifier groups, wherein the first identifier group comprises a plurality of first identifiers; or, in the case where the first control operation is to create a scene mode, determining a plurality of first commands for instructing the first specifying operation, acquiring first identifications of the plurality of first commands from the command library, and saving the acquired plurality of first identifications as a first identification group.
Optionally, after notifying the internet of things platform of the device identifier and the first command of the target smart home, detecting a second control operation triggered by the user on the user terminal, where the second control operation is used to instruct the second smart home to execute a second designated operation; searching a second identification for indicating a second command for executing a second specified operation from the command library; and sending the equipment identifier and the second identifier of the second intelligent home to the Internet of things platform.
According to another aspect of the embodiment of the present application, there is also provided a control method for smart home, including: acquiring a device identifier of a target intelligent home and a first command in a command library, wherein the command library is used for storing basic commands of all intelligent home; and sending the device identifier and the first command to the target intelligent home to control the target intelligent home to execute a first specified operation, wherein the first specified operation is specified by the user terminal.
Optionally, acquiring the device identifier of the target smart home and the first command in the command library includes: receiving a device identifier of a target intelligent home and a first identifier of a first command, wherein the device identifier and the first identifier are sent by a user terminal; searching a first command matched with the first identifier in a command library according to the first identifier, wherein the command library stores basic commands and command identifiers of all intelligent home.
Optionally, before acquiring the device identifier of the target smart home and the first command in the command library, the method further includes: acquiring basic commands of each intelligent home; creating command identifiers for basic commands of all intelligent home furnishing; and storing the basic commands and command identifications of the intelligent home to a command library.
According to another aspect of the embodiments of the present application, there is also provided a control device for smart home, including: the detection unit is used for detecting a first control operation triggered by a user on the user terminal, wherein the first control operation is used for indicating the target intelligent home to execute a first appointed operation; the searching unit is used for searching a first command for indicating to execute a first specified operation from the command library, and the command library is used for storing basic commands of all intelligent households; and the notification unit is used for notifying the Internet of things platform of the device identifier and the first command of the target intelligent home so that the Internet of things platform controls the target intelligent home to execute the first appointed operation.
Optionally, the notification unit is further configured to: directly sending the device identifier and the first command of the target intelligent home to an Internet of things platform; and sending the device identifier of the target intelligent home and the first identifier of the first command to the Internet of things platform, wherein the basic command and the command identifier of each intelligent home are stored in the command library.
Optionally, the search unit is further configured to: after a first control operation triggered by a user on a user terminal is detected, searching a first identification group matched with a selected scene mode from a plurality of identification groups under the condition that the first control operation is that the scene mode is selected from the existing scenes, wherein the first identification group comprises a plurality of first identifications; or, in the case where the first control operation is to create a scene mode, determining a plurality of first commands for instructing the first specifying operation, acquiring first identifications of the plurality of first commands from the command library, and saving the acquired plurality of first identifications as a first identification group.
Optionally, the search unit is further configured to: after informing the internet of things platform of the device identifier and the first command of the target smart home, detecting a second control operation triggered by the user on the user terminal, wherein the second control operation is used for indicating the second smart home to execute a second specified operation; searching a second identification for indicating a second command for executing a second specified operation from the command library; and sending the equipment identifier and the second identifier of the second intelligent home to the Internet of things platform.
According to another aspect of the embodiments of the present application, there is also provided a control device for smart home, including: the acquisition unit is used for acquiring the equipment identification of the target intelligent home and a first command in the command library, wherein the command library is used for storing basic commands of all intelligent home; and the sending unit is used for sending the equipment identifier and the first command to the target intelligent home so as to control the target intelligent home to execute a first appointed operation, wherein the first appointed operation is appointed by the user terminal.
Optionally, the obtaining unit is further configured to: receiving a device identifier of a target intelligent home and a first identifier of a first command, wherein the device identifier and the first identifier are sent by a user terminal; searching a first command matched with the first identifier in a command library according to the first identifier, wherein the command library stores basic commands and command identifiers of all intelligent home.
Optionally, the acquiring unit is further configured to acquire a basic command of each smart home before acquiring the device identifier of the target smart home and the first command in the command library; creating command identifiers for basic commands of all intelligent home furnishing; and storing the basic commands and command identifications of the intelligent home to a command library.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that when executed performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the method described above by the computer program.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the steps of any of the embodiments of the method described above.
In the embodiment of the application, a first control operation triggered by a user on a user terminal is detected, wherein the first control operation is used for indicating a target smart home to execute a first appointed operation; searching a first command for indicating execution of the first specified operation from a command library, wherein the command library is used for storing basic commands of all intelligent households; the device identification of the target intelligent home and the first command are notified to the Internet of things platform, so that the Internet of things platform controls the target intelligent home to execute the first specified operation, and the technical problem that the control information in the related technology needs to occupy too large storage space can be solved by splitting the command into the basic command and the device identification and directly using the basic command when needed without storing each command.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a schematic diagram of a hardware environment of a control method of a smart home according to an embodiment of the present application;
fig. 2 is a flowchart of an alternative smart home control method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an alternative smart home control device according to an embodiment of the present application; the method comprises the steps of,
fig. 4 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The internet of things refers to a network which is used for realizing intelligent identification, positioning, tracking, monitoring and management by connecting terminal equipment with the internet according to a specified protocol through information sensing equipment such as radio frequency identification, an infrared sensor, a global positioning system, a laser scanner and the like and carrying out information exchange and communication.
The intelligent home is characterized in that the information technology, the network technology and the wiring technology are utilized to orderly organize the trivial and complex contents in the home life, and the intelligent home control system is applied to management. In the design of the intelligent home control system, the problems of troublesome wiring, difficult installation and the like can be effectively solved by applying the Internet of things technology, and wireless communication is realized by using the Zigbee technology, the GSM/GPRS and the Ethernet technology, so that the intelligent home control system is more perfect, and the intelligent development of modern residential buildings is promoted.
The terminal equipment or the internet of things platform stores intelligent instructions or coded information corresponding to the intelligent instructions, and when the instructions are too many, the content stored in the terminal equipment and the internet of things platform is increased continuously, so that the memory is occupied. The intelligent instructions comprise operations to be executed and objects to be executed, and a plurality of similar instructions are often stored in the terminal equipment and the internet of things platform so as to realize control over a plurality of intelligent home devices.
The inventor realizes through analysis that whether the control instruction or the identification information corresponding to the control instruction is stored in the terminal equipment or the internet of things platform, when the instruction is too many, a large amount of storage space is occupied along with the continuous increase of the storage content. The terminal equipment or the internet of things platform stores different intelligent instructions which contain more similar information, and the intelligent instructions are repeatedly stored, so that the storage space is wasted. Based on this, according to an aspect of the embodiments of the present application, a method embodiment of a control method for smart home is provided.
Optionally, in this embodiment, the above-mentioned control method for smart home may be applied to a system as shown in fig. 1: the intelligent houses are used for running according to the received control instructions; one or more internet of things platforms, on each internet of things platform, save: a command library of universal commands; when detecting a control operation triggered by a user on the user terminal, the user terminal searches a command for indicating to execute the specified operation from a command library, and notifies the Internet of things platform of the device identification and the command of the target intelligent home so that the Internet of things platform controls the target intelligent home to execute the specified operation.
The control method of the intelligent home in the embodiment of the application can be executed by the user terminal, the platform of the internet of things, or both. In the following description, taking the two embodiments as an example, fig. 2 is a flowchart of an alternative smart home control method according to an embodiment of the present application, as shown in fig. 2, the method may include the following steps:
step S202, a user triggers a first control operation on a user terminal to instruct a target smart home to execute a first designated operation. The first control operation may select a scene mode for the user from among the existing scenes, and may also create a new scene mode for the user.
In the case that the first control operation is to create a scene mode, a plurality of the first commands for representing the first specified operation are determined, one specified operation (such as entering a sleep mode) may be composed of a series of actions, such as speaker sleep, curtain closing, device muting, etc., the first identifiers of a plurality of the first commands (i.e., commands for executing a series of actions in the specified operation) are obtained from the command library, and the obtained plurality of the first identifiers are saved as the first identifier group for later use, and of course, the plurality of commands may be saved as one command group herein.
When setting a scene, a user can customize a plurality of scenes (a home scene, a away scene, a sleep scene and a movie viewing scene …) at the terminal equipment, at this time, control instruction sequences required to be executed in different scenes set by each user can be saved, and although the number and the types of the control instructions used in the scenes set by each user are different (with various permutation and combination), the types and the number of the instructions in a single control instruction sequence are limited in practice, and the control instructions can be split and classified and stored, namely, are split into basic commands and equipment identifiers, so that the encapsulated instructions can multiplex the basic commands, and the effect of optimizing the storage space is achieved.
In the case where the first control operation is to select a scene mode from an existing scene (such as a scene created in the above manner), a first identification group matching the selected scene mode is searched for from a plurality of identification groups, the first identification group including a plurality of the first identifications.
In step S204, the user terminal searches a first command for indicating to execute a first specified operation from a command library, where the command library is used for storing basic commands of each smart home.
Optionally, notifying the internet of things platform of the device identifier of the target smart home and the first command, including: directly sending the device identifier of the target intelligent home and a plurality of first commands to the Internet of things platform; and sending the device identifier of the target intelligent home and the first identifiers of the plurality of first commands to the Internet of things platform, wherein the basic commands and command identifiers of all intelligent home are stored in the command library.
In step S206, the user terminal notifies the internet of things platform of the device identifier and the first command of the target smart home, so that the internet of things platform controls the target smart home to execute the first specified operation.
In step S208, the internet of things platform obtains the device identifier of the target smart home and the first command in the command library, where the command library is used to store the basic commands of each smart home.
Optionally, the internet of things platform stores basic commands and command identifiers of all intelligent home furnishing in the command library, and can acquire the basic commands of all intelligent home furnishing; creating command identifiers for basic commands of all intelligent home furnishing; and storing the basic commands and command identifications of the intelligent home to a command library.
Optionally, the device identifier of the target smart home and the first identifier of the first command sent by the user terminal may be received; and searching the first command matched with the first identifier in a command library according to the first identifier.
In step S210, the internet of things platform sends the device identifier and the first command to the target smart home to control the target smart home to execute a first specified operation, where the first specified operation is specified by the user terminal.
Optionally, after notifying the internet of things platform of the device identifier of the target smart home and the first command, if a second control operation triggered by the user on the user terminal is detected, the second control operation is used for indicating a second smart home to execute a second specified operation; searching a second identification for indicating a second command for executing the second specified operation from the command library; and sending the equipment identifier of the second intelligent home and the second identifier to the Internet of things platform, wherein the specific implementation process is similar to the steps.
Through the steps, a first control operation triggered by a user on a user terminal is detected, wherein the first control operation is used for indicating a target intelligent home to execute a first appointed operation; searching a first command for indicating execution of the first specified operation from a command library, wherein the command library is used for storing basic commands of all intelligent households; the device identification of the target intelligent home and the first command are notified to the Internet of things platform, so that the Internet of things platform controls the target intelligent home to execute the first specified operation, and the technical problem that the control information in the related technology needs to occupy too large storage space can be solved by splitting the command into the basic command and the device identification and directly using the basic command when needed without storing each command.
Different instructions are needed for realizing control of different intelligent home devices, but the instruction similarity of the intelligent home devices of the same type is higher, and when the operations to be realized are the same, the different instructions only have the difference on control objects. In order to save the storage space of the terminal device and the internet of things platform, the following further details the technical scheme of the application in combination with the specific embodiment:
step 1, each control instruction code can be split into two parts of < operation > and < object >, the < operation > and the < object > in all control instructions are respectively extracted, the operation can be a basic command, and the object is a device identifier;
for example, if only one character string "air conditioner 001" in the control instruction code identifies the device it is executing, then "air conditioner 001" in the code is taken as < object >, and the other parts are taken as < operation >.
And 2, deleting the identical < operation > and < object > from all the < operation > and < object >, and generating a < universal command > and < object information >, wherein each < universal command > corresponds to one < operation >, and each < object information > corresponds to one < object >.
Step 3, generating identification information (for example, the identification information of the < general command a > is a and the identification information of the < general command B > is B) for each < general command >, and storing the < object information >, < general command > and the identification information thereof in the terminal device and the internet of things platform.
And 4, when a user inputs a control instruction, searching corresponding identification information of the general command in the terminal equipment, and sending the identification information and the object information to the platform of the Internet of things by the terminal equipment.
And 5, the platform of the internet of things searches the corresponding general command according to the identification information.
And 6, the Internet of things platform generates a complete control instruction by using the general command and the object information and controls the corresponding intelligent equipment to execute.
In the technical scheme of the application, the instructions which are only different in control object are combined and stored, so that the excessive instructions with high similarity are avoided being stored, the storage resources of the terminal equipment and the Internet of things platform are saved, and the memory occupation is reduced.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
According to another aspect of the embodiment of the application, a control device of the smart home for implementing the control method of the smart home is also provided. Fig. 3 is a schematic diagram of an alternative smart home control device according to an embodiment of the present application, as shown in fig. 3, where the device may include:
the detecting unit 31 is configured to detect a first control operation triggered by a user on a user terminal, where the first control operation is used to instruct a target smart home to perform a first specified operation; a searching unit 33, configured to search a command library for a first command for instructing to execute a first specified operation, where the command library is used to store basic commands of each smart home; the notification unit 35 is configured to notify the internet of things platform of the device identifier and the first command of the target smart home, so that the internet of things platform controls the target smart home to execute the first specified operation.
Through the module, a first control operation triggered by a user on the user terminal is detected, wherein the first control operation is used for indicating the target intelligent home to execute a first appointed operation; searching a first command for indicating execution of the first specified operation from a command library, wherein the command library is used for storing basic commands of all intelligent households; the device identification of the target intelligent home and the first command are notified to the Internet of things platform, so that the Internet of things platform controls the target intelligent home to execute the first specified operation, and the technical problem that the control information in the related technology needs to occupy too large storage space can be solved by splitting the command into the basic command and the device identification and directly using the basic command when needed without storing each command.
Optionally, the notification unit is further configured to: directly sending the device identifier and the first command of the target intelligent home to an Internet of things platform; and sending the device identifier of the target intelligent home and the first identifier of the first command to the Internet of things platform, wherein the basic command and the command identifier of each intelligent home are stored in the command library.
Optionally, the search unit is further configured to: after a first control operation triggered by a user on a user terminal is detected, searching a first identification group matched with a selected scene mode from a plurality of identification groups under the condition that the first control operation is that the scene mode is selected from the existing scenes, wherein the first identification group comprises a plurality of first identifications; or, in the case where the first control operation is to create a scene mode, determining a plurality of first commands for instructing the first specifying operation, acquiring first identifications of the plurality of first commands from the command library, and saving the acquired plurality of first identifications as a first identification group.
Optionally, the search unit is further configured to: after informing the internet of things platform of the device identifier and the first command of the target smart home, detecting a second control operation triggered by the user on the user terminal, wherein the second control operation is used for indicating the second smart home to execute a second specified operation; searching a second identification for indicating a second command for executing a second specified operation from the command library; and sending the equipment identifier and the second identifier of the second intelligent home to the Internet of things platform.
According to another aspect of the embodiment of the application, a control device of the smart home for implementing the control method of the smart home is also provided. The apparatus may include: the acquisition unit is used for acquiring the equipment identification of the target intelligent home and a first command in the command library, wherein the command library is used for storing basic commands of all intelligent home; and the sending unit is used for sending the equipment identifier and the first command to the target intelligent home so as to control the target intelligent home to execute a first appointed operation, wherein the first appointed operation is appointed by the user terminal.
Optionally, the obtaining unit is further configured to: receiving a device identifier of a target intelligent home and a first identifier of a first command, wherein the device identifier and the first identifier are sent by a user terminal; searching a first command matched with the first identifier in a command library according to the first identifier, wherein the command library stores basic commands and command identifiers of all intelligent home.
Optionally, the acquiring unit is further configured to acquire a basic command of each smart home before acquiring the device identifier of the target smart home and the first command in the command library; creating command identifiers for basic commands of all intelligent home furnishing; and storing the basic commands and command identifications of the intelligent home to a command library.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, where the hardware environment includes a network environment.
According to another aspect of the embodiment of the application, a server or a terminal for implementing the control method of the smart home is also provided.
Fig. 4 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 4, the terminal may include: one or more (only one is shown in the figure) processors 401, memory 403, and transmission means 405, as shown in fig. 4, the terminal may further comprise input-output devices 407.
The memory 403 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for controlling a smart home in the embodiments of the present application, and the processor 401 executes the software programs and modules stored in the memory 403, thereby executing various functional applications and data processing, that is, implementing the method for controlling a smart home described above. Memory 403 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 403 may further include memory located remotely from processor 401, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 405 is used for receiving or transmitting data via a network, and may also be used for data transmission between the processor and the memory. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 405 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 405 is a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In particular, the memory 403 is used to store applications.
The processor 401 may call the application program stored in the memory 403 through the transmission means 405 to perform the following steps:
detecting a first control operation triggered by a user on a user terminal, wherein the first control operation is used for indicating a target intelligent home to execute a first appointed operation; searching a first command for indicating execution of a first designated operation from a command library, wherein the command library is used for storing basic commands of all intelligent home furnishing; and informing the Internet of things platform of the device identifier of the target intelligent home and the first command so that the Internet of things platform controls the target intelligent home to execute the first appointed operation.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 4 is only illustrative, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 4 is not limited to the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 4, or have a different configuration than shown in fig. 4.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in this embodiment, the storage medium may be used to execute the program code of the control method of the smart home.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
detecting a first control operation triggered by a user on a user terminal, wherein the first control operation is used for indicating a target intelligent home to execute a first appointed operation; searching a first command for indicating execution of a first designated operation from a command library, wherein the command library is used for storing basic commands of all intelligent home furnishing; and informing the Internet of things platform of the device identifier of the target intelligent home and the first command so that the Internet of things platform controls the target intelligent home to execute the first appointed operation.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.
Claims (10)
1. The control method of the intelligent home is characterized by comprising the following steps:
detecting a first control operation triggered by a user on a user terminal, wherein the first control operation is used for indicating a target intelligent home to execute a first appointed operation;
searching a first command for indicating execution of the first specified operation from a command library, wherein the command library is used for storing basic commands of all intelligent households;
notifying an internet of things platform of the device identifier of the target intelligent home and the first command so that the internet of things platform controls the target intelligent home to execute the first appointed operation;
extracting the basic commands and objects in all control instructions respectively, deleting the same basic commands from all the basic commands to generate a universal command, deleting the same objects from all the objects to generate object information, wherein each universal command corresponds to one operation, each object information corresponds to one object, generating identification information for each universal command, searching the corresponding identification information in the user terminal when the user inputs the control instruction in the user terminal, sending the identification information and the object information to the Internet of things platform, searching the corresponding universal command according to the identification information by the Internet of things platform, generating a complete control instruction by using the universal command and the object information, and controlling the corresponding object to execute.
2. The method of claim 1, wherein notifying the internet of things platform of the device identification of the target smart home and the first command comprises:
directly sending the device identifier of the target intelligent home and the first command to the Internet of things platform; or alternatively, the first and second heat exchangers may be,
and sending the device identifier of the target intelligent home and the first identifier of the first command to the Internet of things platform, wherein the basic command and the corresponding command identifier of each intelligent home are stored in the command library.
3. The method according to claim 2, wherein after detecting a first control operation triggered by a user on a user terminal, the method further comprises:
under the condition that the first control operation selects a scene mode from the existing scenes, searching a first identification group matched with the selected scene mode from a plurality of identification groups, wherein the first identification group comprises a plurality of first identifications; or alternatively, the first and second heat exchangers may be,
in the case where the first control operation is to create a scene mode, determining a plurality of the first commands for instructing the first specifying operation, acquiring the first identifications of the plurality of the first commands from the command library, and saving the acquired plurality of the first identifications as the first identification group.
4. The method of claim 1, wherein after notifying the internet of things platform of the device identification of the target smart home and the first command, the method further comprises:
detecting a second control operation triggered by a user on the user terminal, wherein the second control operation is used for indicating a second intelligent home to execute a second specified operation;
searching a second identification for indicating a second command for executing the second specified operation from the command library;
and sending the equipment identifier of the second intelligent home and the second identifier to the Internet of things platform.
5. The control method of the intelligent home is characterized by comprising the following steps:
acquiring a device identifier of a target intelligent home and a first command in a command library, wherein the command library is used for storing basic commands of all intelligent home;
the device identification and the first command are sent to the target intelligent home so as to control the target intelligent home to execute a first appointed operation, wherein the first appointed operation is appointed by a user terminal;
extracting the basic commands and objects in all control instructions respectively, deleting the same basic commands from all the basic commands to generate a universal command, deleting the same objects from all the objects to generate object information, wherein each universal command corresponds to one operation, each object information corresponds to one object, generating identification information for each universal command, searching the corresponding identification information in the user terminal when the user inputs the control instruction in the user terminal, sending the identification information and the object information to an Internet of things platform, searching the corresponding universal command according to the identification information by the Internet of things platform, generating a complete control instruction by using the universal command and the object information, and controlling the corresponding object to execute.
6. The method of claim 5, wherein obtaining the device identification of the target smart home and the first command in the command library comprises:
receiving a device identifier of the target intelligent home and a first identifier of the first command, wherein the device identifier and the first identifier are sent by the user terminal;
and searching the first command matched with the first identifier in a command library according to the first identifier, wherein the command library stores basic commands and command identifiers of all intelligent households.
7. The method of claim 5, wherein prior to obtaining the device identification of the target smart home and the first command in the command library, the method further comprises:
acquiring basic commands of each intelligent home;
creating command identifiers for basic commands of all intelligent home furnishing;
and storing the basic commands and command identifications of the intelligent home to a command library.
8. The utility model provides a controlling means of intelligent house which characterized in that includes:
the detection unit is used for detecting a first control operation triggered by a user on the user terminal, wherein the first control operation is used for indicating the target intelligent home to execute a first appointed operation;
the searching unit is used for searching a first command for indicating to execute the first specified operation from a command library, wherein the command library is used for storing basic commands of all intelligent home furnishing;
the notification unit is used for notifying the Internet of things platform of the device identifier of the target intelligent home and the first command so that the Internet of things platform controls the target intelligent home to execute the first appointed operation; extracting the basic commands and objects in all control instructions respectively, deleting the same basic commands from all the basic commands to generate a universal command, deleting the same objects from all the objects to generate object information, wherein each universal command corresponds to one operation, each object information corresponds to one object, generating identification information for each universal command, searching the corresponding identification information in the user terminal when the user inputs the control instruction in the user terminal, sending the identification information and the object information to the Internet of things platform, searching the corresponding universal command according to the identification information by the Internet of things platform, generating a complete control instruction by using the universal command and the object information, and controlling the corresponding object to execute.
9. A storage medium comprising a stored program, wherein the program when run performs the method of any one of the preceding claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor performs the method of any of the preceding claims 1 to 7 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111544795.9A CN114244644B (en) | 2021-12-16 | 2021-12-16 | Control method and device for intelligent home, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111544795.9A CN114244644B (en) | 2021-12-16 | 2021-12-16 | Control method and device for intelligent home, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114244644A CN114244644A (en) | 2022-03-25 |
CN114244644B true CN114244644B (en) | 2023-05-02 |
Family
ID=80757159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111544795.9A Active CN114244644B (en) | 2021-12-16 | 2021-12-16 | Control method and device for intelligent home, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114244644B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174643B (en) * | 2022-05-27 | 2024-06-25 | 青岛海尔科技有限公司 | Control method and device of terminal equipment, storage medium and electronic device |
CN115001889B (en) * | 2022-05-30 | 2024-03-22 | 青岛海尔科技有限公司 | Device control method, electronic device and storage medium |
CN115296946B (en) * | 2022-06-28 | 2024-03-22 | 青岛海尔科技有限公司 | Control request decomposition method and device, storage medium and electronic device |
CN115296945B (en) * | 2022-06-28 | 2024-03-22 | 青岛海尔科技有限公司 | Control method, system and device of equipment, storage medium and electronic device |
CN115473752A (en) * | 2022-07-21 | 2022-12-13 | 青岛海尔科技有限公司 | Method and device for sending control command, storage medium and electronic device |
WO2025060103A1 (en) * | 2023-09-22 | 2025-03-27 | Oppo广东移动通信有限公司 | Device control method and apparatus, device, and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105573142A (en) * | 2014-10-15 | 2016-05-11 | 珠海格力电器股份有限公司 | Intelligent household control system |
CN105897522A (en) * | 2015-12-23 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Smart home device control method and device |
CN107783509A (en) * | 2016-08-27 | 2018-03-09 | 北京北信源软件股份有限公司 | A kind of intelligent home furnishing control method, device and system |
CN107171911A (en) * | 2017-06-29 | 2017-09-15 | 青岛海信智慧家居系统股份有限公司 | The control method and device of intelligent home device |
-
2021
- 2021-12-16 CN CN202111544795.9A patent/CN114244644B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN114244644A (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114244644B (en) | Control method and device for intelligent home, storage medium and electronic device | |
CN109257259B (en) | Scene linkage control method and device and household electrical appliance | |
EP3506031B1 (en) | Smart household control method and system | |
US20190138795A1 (en) | Automatic Object Detection and Recognition via a Camera System | |
CN109753034B (en) | Control method, control device, electronic equipment and storage medium | |
EP4274190A1 (en) | Smart device control method and apparatus, electronic device, and computer readable medium | |
WO2015183865A1 (en) | Virtual gateway | |
CN108390795B (en) | Household appliance and monitoring method thereof, smart home system and readable storage medium | |
CN112350907A (en) | Scene linkage control method, terminal and computer readable storage medium | |
CN104267701B (en) | The control method and device of smart home newly added equipment | |
CN109166299A (en) | A kind of remote control method of household electrical appliances, mobile terminal and storage medium | |
CN111596562A (en) | Device control method, cloud device and computer storage medium | |
CN111884887A (en) | Voice interaction method and device, storage medium and electronic device | |
CN116192978A (en) | Device control method, intelligent gateway, electronic device and storage medium | |
CN109725543B (en) | Equipment control code configuration method and device, cloud server and network system | |
CN113572669A (en) | Scene processing method and device, intelligent gateway and processor | |
CN111812992A (en) | Intelligent home control method and device for gateway | |
CN112004217A (en) | Network access method, terminal and storage medium | |
CN114019821A (en) | Smart home control method, device and system | |
CN114760326B (en) | Data storage method, data query method, data storage system and electronic device | |
CN112738775B (en) | Centralized control equipment and topology method, system and equipment thereof | |
CN116165931A (en) | Control method and system of intelligent equipment, device, storage medium and electronic device | |
CN112152850B (en) | Internet of things equipment management method based on flash connection protocol and service terminal | |
WO2024001163A1 (en) | Attribute data conversion method and apparatus, storage medium, and electronic device | |
CN111314398A (en) | Equipment control method, network distribution method, system and equipment |
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 |