CN108537300B - Equipment control method, device, medium and computer equipment - Google Patents

Equipment control method, device, medium and computer equipment Download PDF

Info

Publication number
CN108537300B
CN108537300B CN201810184212.8A CN201810184212A CN108537300B CN 108537300 B CN108537300 B CN 108537300B CN 201810184212 A CN201810184212 A CN 201810184212A CN 108537300 B CN108537300 B CN 108537300B
Authority
CN
China
Prior art keywords
control
equipment
control instruction
module
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
Application number
CN201810184212.8A
Other languages
Chinese (zh)
Other versions
CN108537300A (en
Inventor
任兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN201810184212.8A priority Critical patent/CN108537300B/en
Publication of CN108537300A publication Critical patent/CN108537300A/en
Application granted granted Critical
Publication of CN108537300B publication Critical patent/CN108537300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a device control method, a device, a medium and computer equipment, wherein the method comprises the following steps: receiving control information, wherein the control information comprises a user identifier; inquiring an equipment information set corresponding to the user identification; inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set to generate a control instruction set; and sending the control instruction in the control instruction set to corresponding equipment. The invention can realize one-key control of a user on a plurality of devices, improve the operation convenience, improve the use experience of the user, effectively save energy and improve the safety of the devices.

Description

Equipment control method, device, medium and computer equipment
Technical Field
The invention relates to the technical field of internet, in particular to a device control method, a device, a medium and computer equipment.
Background
In practical application, various devices (such as audio and video devices, lighting devices, curtain control devices, security devices, digital cinema devices, audio and video service devices, network household electrical appliance devices and the like) in a living area (such as a home or a work unit) can be accessed to the same control network through the internet of things technology, so that a user can control all or part of the devices in the area by using the same terminal. At present, more control applications are applied to single equipment, and less applications are applied to controlling linkage of a plurality of pieces of equipment.
With the increasing number of devices that can access the internet of things, when a user leaves a living area, corresponding operations, such as turning off the devices to be turned off and turning on the devices to be turned on one by one, are often required to be performed manually on the multiple devices. The manual operation is troublesome for users one by one, and the users are easy to omit the operation on certain equipment, thereby causing resource waste and even bringing potential safety hazard.
Disclosure of Invention
In order to solve the technical problem, the invention provides a device control method, a device, a medium and computer equipment.
The equipment control method provided by the invention comprises the following steps:
receiving a control message, wherein the control message comprises a user identifier;
inquiring an equipment information set corresponding to the user identification;
inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set to generate a control instruction set;
and sending the control instruction in the control instruction set to corresponding equipment.
The equipment control method also has the following characteristics:
inquiring the device information set corresponding to the user identifier, inquiring control instructions corresponding to the control information and aiming at all or part of devices in the device information set, and before generating the control instruction set, the method further comprises the following steps:
and storing a device information set corresponding to the user identification and a control instruction corresponding to preset control information and aiming at all or part of devices in the device information set.
The equipment control method also has the following characteristics:
inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set, and generating a control instruction set comprises the following steps:
selecting the equipment identifications of all or part of equipment corresponding to the user identifications in the equipment information set;
determining the type of the selected equipment identifier;
inquiring a control instruction corresponding to the equipment type in the control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and determining the corresponding relation between the selected equipment identifier and the inquired control instruction, and constructing a control instruction set according to the determined corresponding relation.
The equipment control method also has the following characteristics:
the device information set further comprises a living area identifier corresponding to the device identifier; the living area identification is a living area identification to which the user identification belongs; the living area identification comprises at least one of the following area identifications: a home zone identifier, a work zone identifier and a preset function zone identifier;
the control message further comprises a living area identifier;
inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set, and generating a control instruction set comprises the following steps:
selecting all or part of the equipment identifications with the same life area identification as the life area identification in the control information from the equipment information set;
determining the type of the selected equipment identifier, and inquiring a control instruction corresponding to the equipment type in a control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and determining the corresponding relation between the selected equipment identifier and the inquired control instruction, and constructing a control instruction set according to the determined corresponding relation.
The equipment control method also has the following characteristics:
the device information set further comprises a device location corresponding to the device identifier;
the control information further includes a terminal location;
inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set, and generating a control instruction set comprises the following steps:
selecting all or part of equipment identifications of which the distances between the equipment positions and the terminal positions are smaller than a preset distance from the equipment information set;
determining the type of the selected equipment identifier, and inquiring a control instruction corresponding to the equipment type in a control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and determining the corresponding relation between the selected equipment identifier and the inquired control instruction, and constructing a control instruction set according to all the determined corresponding relations.
The present invention provides an apparatus control device, including:
the receiving module is used for receiving control information, and the control information comprises a user identifier;
the first query module is used for querying the equipment information set corresponding to the user identifier;
the generating module is used for inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set and generating a control instruction set;
and the first sending module is used for sending the control instruction in the control instruction set to corresponding equipment.
The above-mentioned equipment control device also has the following characteristics:
the device also comprises a storage module used for storing the equipment information set corresponding to the user identification and the control instruction corresponding to the preset control information and aiming at all or part of equipment in the equipment information set.
The above-mentioned equipment control device also has the following characteristics:
the generating module comprises a first selecting module, a first determining module, a second inquiring module and a first constructing module;
the first selection module is used for selecting the equipment identifications of all or part of equipment in the equipment information set;
a first determining module, configured to determine a device type to which the selected device identifier belongs;
the second query module is used for querying a control instruction corresponding to the equipment type in the control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and the first construction module is used for determining the corresponding relation between the selected equipment identifier and the inquired control instruction and constructing a control instruction set according to the determined corresponding relation.
The above-mentioned equipment control device also has the following characteristics:
the device information set further comprises a living area identifier corresponding to the device identifier; the living area identification comprises at least one of the following area identifications: a home zone identifier, a work zone identifier and a preset function zone identifier;
the control information further comprises a living area identification;
the generating module comprises a second selecting module, a second determining module, a third inquiring module and a second constructing module;
the second selection module is used for selecting the equipment identifier with the life area identifier same as the life area identifier in the control information from the equipment information set;
a second determining module, configured to determine a device type to which the selected device identifier belongs;
the third query module is used for querying a control instruction corresponding to the equipment type in the control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and the second construction module is used for determining the corresponding relation between the selected equipment identifier and the inquired control instruction and constructing a control instruction set according to the determined corresponding relation.
The above-mentioned equipment control device also has the following characteristics:
the device information set further comprises a device location corresponding to the device identifier;
the control information further includes a terminal location;
the generating module comprises a third selecting module, a third determining module, a fourth inquiring module and a third constructing module;
the third selection module is used for selecting the equipment identifier of which the distance between the equipment position and the terminal position is smaller than the preset distance from the equipment information set;
a third determining module, configured to determine a device type to which the selected device identifier belongs;
the fourth query module is used for querying a control instruction corresponding to the equipment type in the control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and the third construction module is used for determining the corresponding relation between the selected equipment identifier and the inquired control instruction and constructing a control instruction set according to all the determined corresponding relations.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method are implemented when the processor executes the program.
The invention can realize one-key control of a user on a plurality of devices, improve the operation convenience, improve the use experience of the user, effectively save energy and improve the safety of the devices.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart of an apparatus control method in the embodiment;
FIG. 2 is a diagram illustrating an application scenario of the device control method in the embodiment;
FIG. 3 is a block diagram of an apparatus control device in the embodiment;
fig. 4 is a block diagram of a device control apparatus applied to the application scenario shown in fig. 2 in the embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a flowchart of an apparatus control method in an embodiment, the method including:
step 1, receiving control information, wherein the control information comprises a user identifier;
step 2, inquiring an equipment information set corresponding to the user identification;
step 3, inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set to generate a control instruction set;
and 4, sending the control instruction in the control instruction set to corresponding equipment.
The method can realize one-key control of a user on a plurality of devices, improve the operation convenience, improve the use experience of the user, effectively save energy and improve the safety of the devices.
The device information set corresponding to the user identifier recorded in step 1 is a set of device identifiers bound to the user identifier. The same user can bind multiple devices and the same user can also bind devices in different living areas.
In the method, a control instruction set is generated by inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set, and the inquiry method supported by the method comprises a direct inquiry mode and an indirect inquiry mode.
The method supports a direct query mode, and before the step 2 or the step 3, the method further comprises the following steps: and storing a device information set corresponding to the user identification and a control instruction corresponding to preset control information and aiming at all or part of devices in the device information set. And 3, when the control instruction corresponding to the control information and aiming at all or part of the equipment in the equipment information set is inquired, directly inquiring the control instruction corresponding to the control information.
The method also supports an indirect query mode, and prestores control rules, wherein the control rules comprise the mapping relation between the equipment type and the control instruction. When the indirect query mode is used, a control instruction needs to be queried according to the equipment type in the control rule. The control rules may be modified in real time as needed for use.
The indirect query approach can be implemented in the following three ways.
In a first mode
Inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set in the step 4, and generating a control instruction set specifically comprises the following steps:
step 4-1-1, selecting the device identifications of all or part of devices corresponding to the user identifications in the device information set;
step 4-1-2, determining the type of the selected equipment identifier;
step 4-1-3, inquiring a control instruction corresponding to the equipment type in the control rule;
step 4-1-4, determining the corresponding relation between the selected equipment identification and the inquired control instruction;
and 4-1-5, constructing a control instruction set according to the determined corresponding relation.
The control instruction included in the control rule may include only an instruction for controlling the device switch, and may further include an operation instruction when the power-on instruction is included, where the operation instruction includes a device operation parameter and a target value.
The following examples are given.
The control instructions of the control rules only comprise starting or closing instructions. The control rules include the following, as shown in table 1:
TABLE 1
Type of device Control instruction
Air conditioner Shutdown
Television receiver Shutdown
Lighting device Shutdown
Washing machine Starting up
Safety valve Starting up
Air purifying equipment Starting up
The device information set corresponding to user 1 includes the following contents, as shown in table 2:
TABLE 2
Figure GDA0002894353950000071
In step 4-1-1, the device identifiers of all or part of the devices corresponding to the identifier of the user 1 in the device information set, that is, all the device identifiers in table 2, are selected.
Determining the device type to which the selected device identifier belongs in step 4-1-2, as shown in table 3:
TABLE 3
Figure GDA0002894353950000072
Figure GDA0002894353950000081
And 4, executing the steps 4-1-3, 4-1-4 and 4-1-5 to obtain a control instruction set, as shown in the table 4:
TABLE 4
Device identification Control instruction
Identification A of air conditioner I Shutdown
Identification A of air conditioner II Starting up
First safety valve labelHui C Starting up
In other examples, the control instruction of the control rule includes a power-on or power-off instruction, and when the power-on instruction is included, the control rule may further include an operation instruction, where the operation instruction includes a device operation parameter and a target value, for example, the device operation parameter is a wind speed, and the target value is three stages. The implementation method is the same as in the above example, and is not described herein again.
Mode two
The second mode is suitable for the scene that the same user belongs to different living areas, the living areas are home areas, work areas or other functional areas, for example, the same user is bound with a plurality of devices, and the devices belong to different families. The user may choose to control devices in a certain living area.
The device information set further comprises a living area identifier corresponding to the device identifier, and the living area identifier is a living area identifier to which the user identifier belongs. The living area identification comprises at least one of the following area identifications: the system comprises a home area identifier, a working area identifier and a preset functional area identifier.
Examples are as follows:
the device information set corresponding to user 2 includes the following contents, as shown in table 5:
TABLE 5
Figure GDA0002894353950000082
Figure GDA0002894353950000091
Step 4, inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set, and generating a control instruction set, wherein the control instruction set comprises the following steps:
4-2-1, selecting all or part of equipment identifications with the same life zone identification as the life zone identification in the control information from the equipment information set;
the control information of step 1 includes a user identifier (user 2) and a living area identifier (family one identifier), and in this step 4-2-1, a device identifier corresponding to the family one identifier is selected from the device information set.
Step 4-2-2, determining the equipment type to which the selected equipment identifier belongs, and inquiring a control instruction corresponding to the equipment type in the control rule;
step 4-2-3, determining the corresponding relation between the selected equipment identification and the inquired control instruction;
and 4-2-4, constructing a control instruction set according to the determined corresponding relation.
Mode III
In the third mode, the device within the preset distance range from the user can be determined through the device position information and the terminal position information, so that the user can perform one-key control on the device within the preset distance range from the user.
The device information set further includes a device location corresponding to the device identifier, and the control information of step 1 further includes a terminal location.
Step 4, inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set, and generating a control instruction set, wherein the control instruction set comprises the following steps:
4-3-1, selecting all or part of equipment identifiers from the equipment information set, wherein the distance between the equipment position and the terminal position is smaller than the preset distance;
step 4-3-2, determining the type of the selected equipment identifier;
4-3-3, inquiring a control instruction corresponding to the equipment type in the control rule, and determining the corresponding relation between the selected equipment identifier and the inquired control instruction;
and 4-3-4, constructing a control instruction set according to all the determined corresponding relations.
The method can be applied to cloud platform equipment, terminals and cloud systems. When the method is applied to the cloud system, in the application scenario diagram shown in fig. 2, sending the control instruction in the control instruction set to the corresponding device in step 104 includes: the cloud platform device sends the control instruction set to the M2M device, the M2M device sends the received control instruction set to the gateway, the gateway sends the control instructions in the control instruction set to the corresponding devices, and when the control instruction set comprises the control instructions for the devices, the control instruction set sends the corresponding control instructions to the devices respectively. The cloud platform device refers to a cloud platform server. The terminal can be a smart phone, a tablet computer, a personal computer, and the like. The equipment mainly refers to intelligent equipment, such as audio and video equipment, lighting equipment, curtain control equipment, security equipment, digital cinema equipment, audio and video service equipment, network household appliance equipment and the like.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method when executing the program.
Fig. 3 is a block diagram of an apparatus control device in the embodiment, the apparatus control device including:
the receiving module is used for receiving control information, and the control information comprises a user identifier;
the first query module is used for querying the equipment information set corresponding to the user identifier;
the generating module is used for inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set and generating a control instruction set;
and the first sending module is used for sending the control instruction in the control instruction set to corresponding equipment.
The device control apparatus may include a cloud platform device, and may also include a cloud system. The cloud system comprises a cloud platform device, an M2M device and a gateway. In fig. 4, the device control apparatus includes a cloud system, and in combination with the application scenario shown in fig. 2, the cloud platform device includes a receiving module, a first query module, a generating module, and a second sending module in the apparatus. The sending module in the device comprises a second sending module in the cloud platform equipment, and further comprises M2M equipment and a gateway in the cloud system.
The device also comprises a storage module used for storing the equipment information set corresponding to the user identification and the control instruction corresponding to the preset control information and aiming at all or part of equipment in the equipment information set. When the generation module generates the control instruction set, the generation module directly queries control instructions corresponding to all or part of the equipment in the equipment information set and corresponding to the control information preset in the storage module.
The device also comprises another storage module for storing the control rules, so that the generation module indirectly queries the control rules in the storage module when generating the control instruction set, and queries the control instructions according to the equipment types in the control rules.
When the device supports the indirect inquiry function, the method corresponding to the method comprises the following steps:
the generation module in the device comprises a first selection module, a first determination module, a second query module and a first construction module.
The first selection module is used for selecting the equipment identifications of all or part of equipment in the equipment information set;
a first determining module, configured to determine a device type to which the selected device identifier belongs;
the second query module is used for querying a control instruction corresponding to the equipment type in the control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and the first construction module is used for determining the corresponding relation between the selected equipment identifier and the inquired control instruction and constructing a control instruction set according to the determined corresponding relation.
And a second mode corresponding to the method enables the same user to control the devices in different living areas in one key. The device information set further comprises a living area identifier corresponding to the device identifier; the control information also includes a living area identification.
The generating module comprises a second selecting module, a second determining module, a third inquiring module and a second constructing module.
The second selection module is used for selecting the equipment identifier with the life area identifier same as the life area identifier in the control information from the equipment information set;
a second determining module, configured to determine a device type to which the selected device identifier belongs;
the third query module is used for querying a control instruction corresponding to the equipment type in the control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
a second construction module for determining the corresponding relationship between the selected equipment identifier and the queried control instruction, and constructing a control instruction set according to the determined corresponding relationship
And determining the living area to which the user belongs according to the device position information and the terminal position information, wherein the user controls all bound devices in the area near the user in a chain. The device information set further comprises a device location corresponding to the device identifier; the control information also includes the terminal location.
The generating module comprises a third selecting module, a third determining module, a fourth inquiring module and a third constructing module.
The third selection module is used for selecting the equipment identifier of which the distance between the equipment position and the terminal position is smaller than the preset distance from the equipment information set;
a third determining module, configured to determine a device type to which the selected device identifier belongs;
the fourth query module is used for querying a control instruction corresponding to the equipment type in the control rule; the control rule comprises a mapping relation between the equipment type and the control instruction;
and the third construction module is used for determining the corresponding relation between the selected equipment identifier and the inquired control instruction and constructing a control instruction set according to all the determined corresponding relations.
The technical scheme provided by the invention can solve the trouble that the intelligent devices in a living area need to be manually operated one by one when a user leaves the living area, avoid the inconvenience caused by forgetting to control some devices by the user, save power resources and improve the safety of the devices.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The cloud platform records the identification information of the user and the information of the family to which the user belongs, and the permission subsystem stores and maintains the identification information of the user and the information of the family to which the user belongs. The cloud platform is also provided with a one-key away-from-home intelligent scene template, and a control rule is configured in the template, wherein the control rule comprises the mapping relation between the equipment type and the control instruction. The method comprises the steps that a user triggers a one-touch leaving operation request on control software of a mobile terminal, after the cloud platform receives the one-touch leaving operation request of the user, equipment needing to be operated is determined according to identification of the user and family information to which the user belongs, instantiation operation of equipment control is conducted according to the determined equipment information and a one-touch leaving intelligent scene template, a one-touch leaving intelligent scene example is obtained, the leaving intelligent scene example is issued, and the determined equipment is correspondingly controlled.
The specific execution content is as follows:
the family that the user set up through the control software on the mobile terminal belongs to includes family 1 and family 2, and the equipment of binding in family 1 includes first air conditioner, first lighting apparatus, first safety valve, and the equipment of binding in family 2 includes second air conditioner, second lighting apparatus, second safety valve, first air purifier.
In a one-key away-from-home intelligent scene template set in the cloud platform, as shown in table 1 in the method, the corresponding control instruction is off when the device type is an air conditioner, the corresponding control instruction is off when the device type is a lighting device, the corresponding control instruction is on when the device type is a safety valve, and the corresponding control instruction is on when the device type is an air purifier.
And clicking a relevant function button by control software on the mobile terminal by a user, and sending a request for performing one-touch off-home control on the equipment of the family 1 to the cloud platform.
After receiving the request, the cloud platform starts a one-touch away scene, and finds out that the equipment which the user wants to control is the equipment in the family 1 to which the user belongs in the authority subsystem, wherein the equipment comprises a first air conditioner, first lighting equipment and a first safety valve.
The cloud platform performs instantiation operation of equipment control according to the determined equipment information and the one-key away intelligent scene template to obtain one-key away intelligent scene instance, wherein the one-key away intelligent scene instance comprises: the identification of the first air conditioner and the control instruction corresponding to the identification of the first air conditioner are turned off, the identification of the first lighting equipment and the control instruction corresponding to the identification of the first lighting equipment are turned off, and the identification of the first safety valve and the control instruction corresponding to the identification of the first safety valve are turned on.
The cloud platform calls the M2M module to send this key-away smart scene instance to the gateway.
And after receiving the key-away intelligent scene instance, the gateway sends corresponding control instructions to each device in the key-away intelligent scene instance.
The equipment executes the received control instruction, so that the user can complete the operation of one-key away-from-home control.
The above-described aspects may be implemented individually or in various combinations, and such variations are within the scope of the present invention.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits, and accordingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present invention is not limited to any specific form of combination of hardware and software.
It is to be noted that, in this document, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that an article or apparatus including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of additional like elements in the article or device comprising the element.
The above embodiments are merely to illustrate the technical solutions of the present invention and not to limit the present invention, and the present invention has been described in detail with reference to the preferred embodiments. It will be understood by those skilled in the art that various modifications and equivalent arrangements may be made without departing from the spirit and scope of the present invention and it should be understood that the present invention is to be covered by the appended claims.

Claims (10)

1. An apparatus control method characterized by comprising:
receiving control information, wherein the control information comprises a user identifier;
inquiring an equipment information set corresponding to the user identification;
inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set to generate a control instruction set;
sending the control instruction in the control instruction set to corresponding equipment;
the querying of the control instruction corresponding to the control information and aiming at all or part of the devices in the device information set, and the generating of the control instruction set includes:
selecting the device identifications of all or part of devices corresponding to the user identifications in the device information set;
determining the type of the selected equipment identifier;
inquiring a control instruction corresponding to the equipment type in a control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction, and the control rule is pre-stored and can be modified in real time according to use requirements;
and determining the corresponding relation between the selected equipment identifier and the inquired control instruction, and constructing the control instruction set according to the determined corresponding relation.
2. The device control method according to claim 1,
inquiring a device information set corresponding to the user identifier, inquiring a control instruction corresponding to the control information and aiming at all or part of devices in the device information set, and before generating a control instruction set, the method further comprises:
and storing the device information set corresponding to the user identifier and a control instruction corresponding to the preset control information and aiming at all or part of devices in the device information set.
3. The device control method according to claim 1,
the device information set further comprises a living area identifier corresponding to the device identifier; the living area identification is a living area identification to which the user identification belongs; the living area identification comprises at least one of the following area identifications: a home zone identifier, a work zone identifier and a preset function zone identifier;
the control information further comprises a living area identification;
the querying of the control instruction corresponding to the control information and aiming at all or part of the devices in the device information set, and the generating of the control instruction set includes:
selecting all or part of device identifications with living area identifications identical to the living area identifications in the control information from the device information set;
determining the type of the selected equipment identifier, and inquiring a control instruction corresponding to the equipment type in a control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and determining the corresponding relation between the selected equipment identifier and the inquired control instruction, and constructing the control instruction set according to the determined corresponding relation.
4. The device control method according to claim 1,
the device information set further comprises a device location corresponding to the device identification;
the control information further comprises a terminal position;
the querying of the control instruction corresponding to the control information and aiming at all or part of the devices in the device information set, and the generating of the control instruction set includes:
selecting all or part of equipment identifiers from the equipment information set, wherein the distance between the equipment position and the terminal position is smaller than a preset distance;
determining the type of the selected equipment identifier, and inquiring a control instruction corresponding to the equipment type in a control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and determining the corresponding relation between the selected equipment identifier and the inquired control instruction, and constructing the control instruction set according to all the determined corresponding relations.
5. An apparatus control device, characterized by comprising:
the receiving module is used for receiving control information, and the control information comprises a user identifier;
the first query module is used for querying the equipment information set corresponding to the user identifier;
the generating module is used for inquiring control instructions corresponding to the control information and aiming at all or part of equipment in the equipment information set to generate a control instruction set;
the first sending module is used for sending the control instruction in the control instruction set to corresponding equipment;
the generating module comprises a first selecting module, a first determining module, a second inquiring module and a first constructing module;
the first selection module is configured to select device identifiers of all or part of the devices in the device information set;
a first determining module, configured to determine a device type to which the selected device identifier belongs;
the second query module is used for querying a control instruction corresponding to the equipment type in a control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction, and the control rule is pre-stored and can be modified in real time according to use requirements;
and the first construction module is used for determining the corresponding relation between the selected equipment identifier and the inquired control instruction and constructing the control instruction set according to the determined corresponding relation.
6. The appliance control apparatus according to claim 5,
the device further includes a storage module, configured to store the device information set corresponding to the user identifier and a control instruction for all or part of the devices in the device information set corresponding to the preset control information.
7. The appliance control apparatus according to claim 5,
the device information set further comprises a living area identifier corresponding to the device identifier; the living area identification comprises at least one of the following area identifications: a home zone identifier, a work zone identifier and a preset function zone identifier;
the control information further comprises a living area identification;
the generating module comprises a second selecting module, a second determining module, a third inquiring module and a second constructing module;
the second selection module is used for selecting a device identifier with a living area identifier identical to the living area identifier in the control information from the device information set;
a second determining module, configured to determine a device type to which the selected device identifier belongs;
the third query module is used for querying a control instruction corresponding to the equipment type in a control rule, wherein the control rule comprises a mapping relation between the equipment type and the control instruction;
and the second construction module is used for determining the corresponding relation between the selected equipment identifier and the inquired control instruction and constructing the control instruction set according to the determined corresponding relation.
8. The appliance control apparatus according to claim 5,
the device information set further comprises a device location corresponding to the device identification;
the control information further comprises a terminal position;
the generating module comprises a third selecting module, a third determining module, a fourth inquiring module and a third constructing module;
the third selection module is configured to select, from the device information set, a device identifier whose distance between the device location and the terminal location is smaller than a preset distance;
the third determining module is configured to determine a device type to which the selected device identifier belongs;
the fourth query module is configured to query a control instruction corresponding to the device type in a control rule, where the control rule includes a mapping relationship between the device type and the control instruction;
and the third construction module is used for determining the corresponding relation between the selected equipment identifier and the inquired control instruction and constructing the control instruction set according to all the determined corresponding relations.
9. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 4 when executing the program.
CN201810184212.8A 2018-03-07 2018-03-07 Equipment control method, device, medium and computer equipment Active CN108537300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810184212.8A CN108537300B (en) 2018-03-07 2018-03-07 Equipment control method, device, medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810184212.8A CN108537300B (en) 2018-03-07 2018-03-07 Equipment control method, device, medium and computer equipment

Publications (2)

Publication Number Publication Date
CN108537300A CN108537300A (en) 2018-09-14
CN108537300B true CN108537300B (en) 2021-07-16

Family

ID=63486793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810184212.8A Active CN108537300B (en) 2018-03-07 2018-03-07 Equipment control method, device, medium and computer equipment

Country Status (1)

Country Link
CN (1) CN108537300B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585941B (en) * 2019-02-18 2023-06-02 深圳市致趣科技有限公司 Method and system compatible with various automatic control protocols
CN110531663B (en) * 2019-08-29 2020-11-03 珠海格力电器股份有限公司 Intelligent device control method and device, computing device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202904875U (en) * 2012-11-23 2013-04-24 福建求实智能股份有限公司 Ceiling infrared control module of intelligent home furnishing
CN104852990A (en) * 2015-05-29 2015-08-19 四川长虹电器股份有限公司 Information processing method and intelligent household control system
CN104883402A (en) * 2015-05-29 2015-09-02 四川长虹电器股份有限公司 Information processing method and cloud-end service platform
CN104915225A (en) * 2015-05-19 2015-09-16 小米科技有限责任公司 Method and device for controlling intelligent device
CN105101083A (en) * 2015-07-15 2015-11-25 魅族科技(中国)有限公司 Method and device for controlling indoor electronic device
CN106154853A (en) * 2016-03-23 2016-11-23 四川长虹电器股份有限公司 A kind of control method and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104460328B (en) * 2014-10-29 2019-05-10 小米科技有限责任公司 Smart machine control method and device based on set scene mode
CN104980322B (en) * 2014-10-31 2018-11-23 腾讯科技(上海)有限公司 The method and device to link between network access equipment
CN105487389B (en) * 2015-11-17 2020-02-07 小米科技有限责任公司 Method and device for controlling intelligent equipment
CN107608225A (en) * 2017-09-29 2018-01-19 深圳市艾特智能科技有限公司 Control method, system, storage medium and the computer equipment of intelligent home device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202904875U (en) * 2012-11-23 2013-04-24 福建求实智能股份有限公司 Ceiling infrared control module of intelligent home furnishing
CN104915225A (en) * 2015-05-19 2015-09-16 小米科技有限责任公司 Method and device for controlling intelligent device
CN104852990A (en) * 2015-05-29 2015-08-19 四川长虹电器股份有限公司 Information processing method and intelligent household control system
CN104883402A (en) * 2015-05-29 2015-09-02 四川长虹电器股份有限公司 Information processing method and cloud-end service platform
CN105101083A (en) * 2015-07-15 2015-11-25 魅族科技(中国)有限公司 Method and device for controlling indoor electronic device
CN106154853A (en) * 2016-03-23 2016-11-23 四川长虹电器股份有限公司 A kind of control method and mobile terminal

Also Published As

Publication number Publication date
CN108537300A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN109257259B (en) Scene linkage control method and device and household electrical appliance
JP6207734B2 (en) Intelligent device scene mode customization method and apparatus
CN107294793B (en) Replacement method, device and equipment of intelligent household equipment and storage medium
WO2016065812A1 (en) Scenario mode setting-based smart device control method and apparatus
CN109799719B (en) Control method of household appliance, server, household appliance and storage medium
CN112202648B (en) Control method and system of networked home equipment
CN104852990A (en) Information processing method and intelligent household control system
CN112612214B (en) Method and system for generating functional interface and electronic equipment
CN108537300B (en) Equipment control method, device, medium and computer equipment
CN109600285A (en) Dynamic construction environment adjusts the method and device of list of rules in a kind of smart home
US20230422024A1 (en) Bluetooth address allocation method for intelligent light, computer device, and computer-readable storage medium
CN110932953A (en) Intelligent household control method and device, computer equipment and storage medium
CN113159910A (en) Method, device and system for notification
CN112307460B (en) Control method and device of intelligent equipment, equipment and storage medium
CN104898930B (en) The setting method and system of intelligent terminal operative scenario
CN111399459A (en) Intelligent household equipment control method, device, equipment and storage medium
WO2021103619A1 (en) Network configuration terminal, network configuration method for household appliance, and computer-readable storage medium
CN109842515B (en) Method for multi-device network distribution, server and computer storage medium
CN105426212A (en) Virtual device composition dynamic updating method and apparatus
CN112751734A (en) Household appliance control method based on cleaning robot, cleaning robot and chip
CN111308903A (en) Control method of household appliance, air conditioner system, server and storage medium
CN108199857B (en) Household appliance, control method and system thereof, and computer readable storage medium
CN113452763B (en) Smart home business registration method and device and smart home system
CN112526891A (en) Intelligent switch key control system and method
CN108337137B (en) Household appliance, control method and system thereof, and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant