CN114244644A - Smart home control method and device, storage medium and electronic device - Google Patents
Smart home control method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN114244644A CN114244644A CN202111544795.9A CN202111544795A CN114244644A CN 114244644 A CN114244644 A CN 114244644A CN 202111544795 A CN202111544795 A CN 202111544795A CN 114244644 A CN114244644 A CN 114244644A
- Authority
- CN
- China
- Prior art keywords
- command
- smart home
- identifier
- internet
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000001960 triggered effect Effects 0.000 claims abstract description 21
- 230000015654 memory Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000009423 ventilation Methods 0.000 description 1
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 smart 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 smart home to execute a first specified operation; searching a first command for indicating to execute a first specified operation from a command library, wherein the command library is used for storing basic commands of each intelligent home; and informing the Internet of things platform of the equipment 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 specified operation. The method and the device solve the technical problem that the control information needs to occupy too large storage space in the related technology.
Description
Technical Field
The application relates to the field of Internet of things, in particular to a control method and device for smart home, a storage medium and an electronic device.
Background
The intelligent home is embodied in an internet of things manner under the influence of the internet, various devices (such as audio and video devices, lighting systems, curtain control, air conditioner control, security and protection systems, digital cinema systems, audio and video servers, video cabinet systems, network home appliances and the like) in the home are connected together through the internet of things technology, and multiple functions and means such as home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment monitoring, heating and ventilation control, infrared forwarding, programmable timing control and the like are provided. Compared with the common home, the intelligent home has the traditional living function, integrates the functions of building, network communication, information household appliance and equipment automation, provides an all-around information interaction function, and even saves funds for various energy expenses.
The user can select the working scene of intelligent house on user terminals such as cell-phone, flat board, 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 need be preserved, can occupy a large amount of storage space.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a control method and device for smart home, a storage medium and an electronic device, so as to at least solve the technical problem that control information needs to occupy too large storage space in the related art.
According to an aspect of an embodiment of the present application, a method for controlling smart home is provided, 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 smart home to execute a first specified operation; searching a first command for indicating to execute a first specified operation from a command library, wherein the command library is used for storing basic commands of each intelligent home; and informing the Internet of things platform of the equipment 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 specified operation.
Optionally, notifying the internet of things platform of the device identifier and the first command of the target smart home, including: directly sending the equipment identifier and the first command of the target smart home to an Internet of things platform; and sending the equipment 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, in a case that the first control operation is to select a scene mode from an existing scene, searching a first identifier group matched with the selected scene mode from the plurality of identifier groups, where the first identifier group includes 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 a first specifying operation, acquiring first identifications of the plurality of first commands from a command library, and saving the acquired plurality of first identifications as a first identification group.
Optionally, after the internet of things platform is notified of the device identifier of the target smart home and the first command, a second control operation triggered by the user on the user terminal is detected, where the second control operation is used to instruct a second smart home to execute a second specified operation; searching a second identification of a second command for indicating to execute a second specified operation from the command library; and sending the equipment identifier and the second identifier of the second smart home to the Internet of things platform.
According to another aspect of the embodiment of the application, a method for controlling smart home is further provided, 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 each intelligent home; and sending the equipment identifier and a 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, the obtaining the device identifier of the target smart home and the first command in the command library includes: receiving a device identifier of a target smart home and a first identifier of a first command, which are sent by a user terminal; and 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 smart homes.
Optionally, before obtaining 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 identifications for basic commands of each smart home; and storing the basic command and the command identification of each smart home into 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 system comprises a detection unit, a first control unit and a second control unit, wherein the detection unit is used for detecting a first control operation triggered by a user on a user terminal, and the first control operation is used for indicating a target smart home to execute a first specified operation; the system comprises a searching unit, a command library and a processing unit, wherein 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 each intelligent home; the notification unit is used for notifying the Internet of things platform of the equipment identifier and the first command of the target smart home, so that the Internet of things platform can control the target smart home to execute the first specified operation.
Optionally, the notification unit is further configured to: directly sending the equipment identifier and the first command of the target smart home to an Internet of things platform; and sending the equipment 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 lookup unit is further configured to: after detecting a first control operation triggered by a user on a user terminal, 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 used for selecting the scene mode from an existing scene, 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 a first specifying operation, acquiring first identifications of the plurality of first commands from a command library, and saving the acquired plurality of first identifications as a first identification group.
Optionally, the lookup unit is further configured to: after the device identification and the first command of the target smart home are notified to the Internet of things platform, a second control operation triggered by a user on a user terminal is detected, and the second control operation is used for indicating a second smart home to execute a second specified operation; searching a second identification of a second command for indicating to execute a second specified operation from the command library; and sending the equipment identifier and the second identifier of the second smart 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 system comprises an acquisition unit, a command library and a processing unit, wherein the acquisition unit is used for acquiring a device identifier of a target intelligent home and a first command in the command library, and the command library is used for storing basic commands of various intelligent homes; the sending unit is used for sending the equipment identifier and the first command to the target intelligent home to control the target intelligent home to execute a first specified operation, and the first specified operation is specified by the user terminal.
Optionally, the obtaining unit is further configured to: receiving a device identifier of a target smart home and a first identifier of a first command, which are sent by a user terminal; and 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 smart homes.
Optionally, the obtaining unit is further configured to obtain a basic command of each smart home before obtaining the device identifier of the target smart home and the first command in the command library; creating command identifications for basic commands of each smart home; and storing the basic command and the command identification of each smart home into 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 which, 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, wherein the processor executes the above method through the computer program.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being 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 specified operation; 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 each smart home; the equipment identification of the target intelligent home and the first command are notified to an Internet of things platform, so that the Internet of things platform can control the target intelligent home to execute the first specified operation, the basic command is directly used when needed by splitting the command into the basic command and the equipment identification, and each command does not need to be stored, so that the technical problem that the control information needs to occupy too large storage space in the related technology can be solved.
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 embodiment(s) of the application and together with the description serve to explain the application and not to limit 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 control device for smart home according to an embodiment of the present application; and the number of the first and second groups,
fig. 4 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or 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 is a network which connects terminal equipment and 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 to exchange and communicate information so as to realize intelligent identification, positioning, tracking, monitoring and management.
The intelligent home is managed by an intelligent home control system by orderly organizing trivial and complicated contents in home life by utilizing an information technology, a network technology and a wiring technology. In the design of the intelligent home control system, the Internet of things technology is applied, the problems of troublesome wiring, difficult installation and the like can be effectively solved, the Zigbee technology, the GSM/GPRS and the Ethernet technology are used for realizing wireless communication, so that the intelligent home control system is more perfect, and the development of the intellectualization of modern residential buildings is promoted.
The terminal equipment or the platform of the internet of things stores the intelligent instruction or the coded information corresponding to the intelligent instruction, and when the number of the instructions is too large, the content stored in the terminal equipment and the platform of the internet of things is increased continuously, so that the memory is occupied. The intelligent instruction comprises an operation to be executed and an object 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 control a plurality of intelligent household equipment.
The inventor has analyzed and realized that in a terminal device or an internet of things platform, whether a control instruction or identification information corresponding to the control instruction is stored, when too many instructions are stored, a large amount of storage space is occupied along with the continuous increase of the stored content. Different intelligent instructions stored in the terminal equipment or the Internet of things platform contain more similar information, so that the storage space is wasted due to repeated storage. 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 control method of the smart home may be applied to a system shown in fig. 1: the intelligent home is used for operating according to the received control instruction; one or more internet of things platforms, each internet of things platform is stored with: a command library of universal commands; when detecting a control operation triggered by a user on a user terminal, the user terminal searches a command for instructing to execute a specified operation from a command library, and informs the Internet of things platform of the equipment identifier 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 smart home in the embodiment of the application can be executed by the user terminal, can also be executed by the Internet of things platform, and can also be executed by the user terminal and the Internet of things platform together. Subsequently, the two are performed together as an example, fig. 2 is a flowchart of an optional smart home control method according to an embodiment of the present application, and 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 specified operation. The first control operation may select a scene mode from existing scenes for the user or may create a new scene mode for the user.
In the case where the first control operation is to create a scene mode, a plurality of the first commands for indicating the first specific operation are determined, and a specific operation (e.g. entering a sleep mode) may be composed of a series of actions, such as speaker sleep, curtain closing, device muting, and the like, the first identifiers of a plurality of the first commands (i.e. commands for executing a series of actions in the specific operation) are obtained from the command library, and the obtained plurality of the first identifiers are stored as the first identifier group for later use, but these plurality of commands may also be stored as a command group.
When setting scenes, a user can define a plurality of scenes (a home scene, a leaving scene, a sleeping scene and a watching scene …) by the terminal device, at this time, control instruction sequences required to be executed under different scenes set by each user are stored, although the number and the types of the control instructions used in the scenes set by each user are different (the control instructions have a plurality of permutation and combination), actually, the types and the number of the instructions in a single control instruction sequence are limited, and the instructions can be split and stored in a classified mode, namely split into basic commands and device identifications, so that the internal 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 pattern from an existing scene (e.g., a scene created in the above-described manner), a first identifier group matching the selected scene pattern is searched from a plurality of identifier groups, where the first identifier group includes a plurality of first identifiers.
Step S204, the user terminal searches a first command for instructing to execute the first specified operation from a command library, and the command library is used for storing the basic commands of each intelligent 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 equipment identifier of the target smart home and the plurality of first commands to the Internet of things platform; and sending the equipment identifier of the target smart home and the first identifiers of the plurality of first commands to the Internet of things platform, wherein the basic commands and the command identifiers of the smart homes are stored in the command library.
Step S206, the user terminal informs the Internet of things platform of the equipment identifier and the first command of the target intelligent home, so that the Internet of things platform controls the target intelligent home to execute a first specified operation.
Step S208, the Internet of things platform obtains the equipment identification of the target smart home and the first command in the command library, and the command library is used for storing the basic command of each smart home.
Optionally, the internet of things platform stores the basic command and the command identifier of each smart home in the command library, and can obtain the basic command of each smart home; creating command identifications for basic commands of each smart home; and storing the basic command and the command identification of each smart home into a command library.
Optionally, the device identifier of the target smart home and the first identifier of the first command, which are 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.
Step S210, the Internet of things platform sends the equipment identifier and a 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, after the device identifier of the target smart home and the first command are notified to the internet of things platform, if a second control operation triggered by the user on the user terminal is detected, the second control operation is used to instruct a second smart home to execute a second specified operation; searching a second identification of a second command for indicating to execute the second specified operation from the command library; and sending the equipment identifier of the second smart 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 smart home to execute a first specified operation; 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 each smart home; the equipment identification of the target intelligent home and the first command are notified to an Internet of things platform, so that the Internet of things platform can control the target intelligent home to execute the first specified operation, the basic command is directly used when needed by splitting the command into the basic command and the equipment identification, and each command does not need to be stored, so that the technical problem that the control information needs to occupy too large storage space in the related technology can be solved.
Different instructions are needed for realizing the control of different intelligent household devices, but the instruction similarity of the intelligent household 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 the control object. In order to save the storage space of the terminal device and the internet of things platform, the following detailed description is further provided with the following technical solutions in combination with specific embodiments:
step 1, each control instruction code can be divided into two parts, namely an < operation > and an < object >, and the < operation > and the < object > in all the control instructions are respectively extracted, wherein the operation can be a basic command, and the object is an equipment identifier;
for example, if only one character string "air conditioner 001" in the control instruction code identifies the device on which the control instruction code is executed, the "air conditioner 001" in the code is regarded as the < object > and the other part is regarded as the < operation >.
Step 2, deleting the completely same < operation > and < object > from all < operation > and < object >, generating < general command > and < object information >, each < general command > corresponding to a < operation >, and each < object information > corresponding to an < object >.
And 3, generating identification information for each < general command > (for example, the identification information of < general command A > is a, and the identification information of < general command B > is B), and storing < object information >, < general command > and the identification information thereof in the terminal equipment and the platform of the Internet of things.
And 4, when the 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 Internet of things platform by the terminal equipment.
And 5, the Internet of things platform finds the corresponding general command according to the identification information.
And 6, generating a complete control instruction by the Internet of things platform by using the general command and the object information, and controlling the corresponding intelligent equipment to execute.
According to the technical scheme, the instructions which are only different in control object are merged and stored, excessive instructions with high similarity are prevented from being stored, storage resources of the terminal equipment and the Internet of things platform are saved, and memory occupation is reduced.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present 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 control device for smart home according to an embodiment of the present application, and as shown in fig. 3, the device may include:
the detection 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 execute a first specified operation; the searching unit 33 is configured to search a first command for instructing execution of a first specified operation from a command library, where the command library is used to store basic commands of each smart home; the notifying 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 a user terminal is detected, wherein the first control operation is used for indicating a target smart home to execute a first specified operation; 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 each smart home; the equipment identification of the target intelligent home and the first command are notified to an Internet of things platform, so that the Internet of things platform can control the target intelligent home to execute the first specified operation, the basic command is directly used when needed by splitting the command into the basic command and the equipment identification, and each command does not need to be stored, so that the technical problem that the control information needs to occupy too large storage space in the related technology can be solved.
Optionally, the notification unit is further configured to: directly sending the equipment identifier and the first command of the target smart home to an Internet of things platform; and sending the equipment 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 lookup unit is further configured to: after detecting a first control operation triggered by a user on a user terminal, 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 used for selecting the scene mode from an existing scene, 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 a first specifying operation, acquiring first identifications of the plurality of first commands from a command library, and saving the acquired plurality of first identifications as a first identification group.
Optionally, the lookup unit is further configured to: after the device identification and the first command of the target smart home are notified to the Internet of things platform, a second control operation triggered by a user on a user terminal is detected, and the second control operation is used for indicating a second smart home to execute a second specified operation; searching a second identification of a second command for indicating to execute a second specified operation from the command library; and sending the equipment identifier and the second identifier of the second smart 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 system comprises an acquisition unit, a command library and a processing unit, wherein the acquisition unit is used for acquiring a device identifier of a target intelligent home and a first command in the command library, and the command library is used for storing basic commands of various intelligent homes; the sending unit is used for sending the equipment identifier and the first command to the target intelligent home to control the target intelligent home to execute a first specified operation, and the first specified operation is specified by the user terminal.
Optionally, the obtaining unit is further configured to: receiving a device identifier of a target smart home and a first identifier of a first command, which are sent by a user terminal; and 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 smart homes.
Optionally, the obtaining unit is further configured to obtain a basic command of each smart home before obtaining the device identifier of the target smart home and the first command in the command library; creating command identifications for basic commands of each smart home; and storing the basic command and the command identification of each smart home into a command library.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, 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 processors 401 (only one of which is shown), a memory 403, and a transmission device 405. as shown in fig. 4, the terminal may further include an input and output device 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 embodiment of the present application, and the processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 403, that is, implements the above-described method for controlling a smart home. The 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 over 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 transmitting device 405 is used for receiving or sending data via a network, and may also be used for data transmission between the processor and the memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 405 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices 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 in a wireless manner.
In particular, the memory 403 is used for storing application programs.
The processor 401 may call the application stored in the memory 403 via 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 smart home to execute a first specified operation; searching a first command for indicating to execute a first specified operation from a command library, wherein the command library is used for storing basic commands of each intelligent home; and informing the Internet of things platform of the equipment 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 specified operation.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 4 is a diagram illustrating 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 skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Optionally, in this embodiment, the storage medium may be configured to execute a program code of a control method of a smart home.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing 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 smart home to execute a first specified operation; searching a first command for indicating to execute a first specified operation from a command library, wherein the command library is used for storing basic commands of each intelligent home; and informing the Internet of things platform of the equipment 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 specified operation.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the 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 illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
Claims (10)
1. A control method of smart 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 smart home to execute a first specified operation;
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 each smart home;
and informing an Internet of things platform of the equipment identifier of the target intelligent home and the first command so that the Internet of things platform can control the target intelligent home to execute the first specified operation.
2. The method according to claim 1, wherein notifying an internet of things platform of the device identifier of the target smart home and the first command comprises:
directly sending the equipment identifier of the target smart home and the first command to the Internet of things platform; or the like, or, alternatively,
and sending the equipment identifier of the target smart 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 smart home are stored in the command library.
3. The method of claim 2, wherein after detecting a first control operation triggered by a user on the user terminal, the method further comprises:
under the condition that the first control operation is to select a scene mode from an existing scene, 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 the like, or, alternatively,
and in the case that the first control operation is a scene creation mode, determining a plurality of first commands for indicating the first specified operation, acquiring the first identifiers of the plurality of first commands from the command library, and saving the acquired plurality of first identifiers as the first identifier group.
4. The method according to claim 1, wherein after notifying an internet of things platform of the device identifier of the target smart home and the first command, the method further comprises:
detecting a second control operation triggered by the user on the user terminal, wherein the second control operation is used for indicating a second smart home to execute a second specified operation;
searching a second identification of a second command for indicating to execute the second specified operation from the command library;
and sending the equipment identifier of the second smart home and the second identifier to the Internet of things platform.
5. A control method of smart home is characterized by comprising the following steps:
acquiring a device identifier of a target smart home and a first command in a command library, wherein the command library is used for storing basic commands of each smart home;
and sending the equipment identifier and the first command to the target smart home to control the target smart home to execute a first specified operation, wherein the first specified operation is specified by a user terminal.
6. The method according to claim 5, wherein obtaining the device identifier of the target smart home and the first command in the command library comprises:
receiving the equipment identifier of the target smart home and the first identifier of the first command, which 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 smart homes.
7. The method according to claim 5, wherein before obtaining the device identifier 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 identifications for basic commands of each smart home;
and storing the basic command and the command identification of each smart home into a command library.
8. The utility model provides a controlling means of intelligence house which characterized in that includes:
the system comprises a detection unit, a processing unit and a control unit, wherein the detection unit is used for detecting a first control operation triggered by a user on a user terminal, and the first control operation is used for indicating a target smart home to execute a first specified 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 each smart home;
and the notification unit is used for notifying the Internet of things platform of the equipment identifier of the target intelligent home and the first command so that the Internet of things platform can control the target intelligent home to execute the first specified operation.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any 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, wherein the processor executes 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 true CN114244644A (en) | 2022-03-25 |
CN114244644B 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) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115001889A (en) * | 2022-05-30 | 2022-09-02 | 青岛海尔科技有限公司 | Device control method, electronic device, and storage medium |
CN115174643A (en) * | 2022-05-27 | 2022-10-11 | 青岛海尔科技有限公司 | Control method and device of terminal equipment, storage medium and electronic device |
CN115268291A (en) * | 2022-08-19 | 2022-11-01 | 珠海格力电器股份有限公司 | Device control method, device, system and storage medium |
CN115296946A (en) * | 2022-06-28 | 2022-11-04 | 青岛海尔科技有限公司 | Control request decomposition method and device, storage medium and electronic device |
CN115296945A (en) * | 2022-06-28 | 2022-11-04 | 青岛海尔科技有限公司 | Method, system and device for controlling 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 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016058367A1 (en) * | 2014-10-15 | 2016-04-21 | 珠海格力电器股份有限公司 | Smart home control system |
WO2017107521A1 (en) * | 2015-12-23 | 2017-06-29 | 乐视控股(北京)有限公司 | Method and apparatus for controlling smart home devices |
CN107171911A (en) * | 2017-06-29 | 2017-09-15 | 青岛海信智慧家居系统股份有限公司 | The control method and device of intelligent home device |
CN107783509A (en) * | 2016-08-27 | 2018-03-09 | 北京北信源软件股份有限公司 | A kind of intelligent home furnishing control method, device and system |
-
2021
- 2021-12-16 CN CN202111544795.9A patent/CN114244644B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016058367A1 (en) * | 2014-10-15 | 2016-04-21 | 珠海格力电器股份有限公司 | Smart home control system |
WO2017107521A1 (en) * | 2015-12-23 | 2017-06-29 | 乐视控股(北京)有限公司 | Method and apparatus for controlling smart home devices |
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 |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174643A (en) * | 2022-05-27 | 2022-10-11 | 青岛海尔科技有限公司 | Control method and device of terminal equipment, storage medium and electronic device |
CN115001889A (en) * | 2022-05-30 | 2022-09-02 | 青岛海尔科技有限公司 | Device control method, electronic device, and storage medium |
CN115001889B (en) * | 2022-05-30 | 2024-03-22 | 青岛海尔科技有限公司 | Device control method, electronic device and storage medium |
CN115296946A (en) * | 2022-06-28 | 2022-11-04 | 青岛海尔科技有限公司 | Control request decomposition method and device, storage medium and electronic device |
CN115296945A (en) * | 2022-06-28 | 2022-11-04 | 青岛海尔科技有限公司 | Method, system and device for controlling equipment, storage medium and electronic device |
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 |
CN115268291A (en) * | 2022-08-19 | 2022-11-01 | 珠海格力电器股份有限公司 | Device control method, device, system and storage medium |
WO2025060103A1 (en) * | 2023-09-22 | 2025-03-27 | Oppo广东移动通信有限公司 | Device control method and apparatus, device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114244644B (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114244644B (en) | Control method and device for intelligent home, storage medium and electronic device | |
US11782590B2 (en) | Scene-operation method, electronic device, and non-transitory computer readable medium | |
CN113412469A (en) | Equipment network distribution method and device, electronic equipment and storage medium | |
CN109753034B (en) | Control method, control device, electronic equipment and storage medium | |
CN108092861A (en) | Realize collocation method, the equipment linkage control method and device of equipment linkage | |
EP4274190A1 (en) | Smart device control method and apparatus, electronic device, and computer readable medium | |
EP3972202A1 (en) | Smart home system control method and apparatus, electronic device and storage medium | |
CN108173727B (en) | Intelligent household appliance network access method and equipment | |
CN110690996A (en) | Configuration method, system and device of intelligent household terminal equipment and terminal equipment | |
CN113168334A (en) | Data processing method, apparatus, electronic device and readable storage medium | |
CN112327643A (en) | Smart home control method and device, storage medium and electronic device | |
CN112350907A (en) | Scene linkage control method, terminal and computer readable storage medium | |
CN112637024A (en) | Control method, control device, electronic equipment and storage medium | |
CN104898930B (en) | The setting method and system of intelligent terminal operative scenario | |
CN109725543B (en) | Equipment control code configuration method and device, cloud server and network system | |
CN116192978A (en) | Device control method, intelligent gateway, electronic device and storage medium | |
CN113572669A (en) | Scene processing method and device, intelligent gateway and processor | |
CN112486105A (en) | Equipment control method and device | |
CN103747067A (en) | Data configuration method based on digital home intelligent gateway | |
CN104954462A (en) | High-concurrency extensible smart home communication method and high-concurrency extensible smart home communication system | |
CN114019821A (en) | Smart home control method, device and system | |
CN116382111A (en) | Equipment control method and device, storage medium and electronic device | |
CN112416897A (en) | Log query method and device, storage medium and electronic device | |
CN111917886B (en) | Intelligent device data migration method and device and intelligent device | |
WO2024001163A1 (en) | Attribute data conversion method and apparatus, storage medium, and electronic device |
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 |