CN111913397B - Device control method, device, storage medium, and electronic apparatus - Google Patents

Device control method, device, storage medium, and electronic apparatus Download PDF

Info

Publication number
CN111913397B
CN111913397B CN202010665103.5A CN202010665103A CN111913397B CN 111913397 B CN111913397 B CN 111913397B CN 202010665103 A CN202010665103 A CN 202010665103A CN 111913397 B CN111913397 B CN 111913397B
Authority
CN
China
Prior art keywords
control
instruction
devices
receiving
instructions
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
CN202010665103.5A
Other languages
Chinese (zh)
Other versions
CN111913397A (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 Yilai Intelligent Technology Co Ltd
Original Assignee
Qingdao Yilai Intelligent 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 Yilai Intelligent Technology Co Ltd filed Critical Qingdao Yilai Intelligent Technology Co Ltd
Priority to CN202010665103.5A priority Critical patent/CN111913397B/en
Publication of CN111913397A publication Critical patent/CN111913397A/en
Application granted granted Critical
Publication of CN111913397B publication Critical patent/CN111913397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention provides a device control method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: determining a plurality of control instructions, wherein different control instructions included in the plurality of control instructions are used for controlling different devices to execute the same or different target operations, the control instructions carry tag information, and the tag information is used for indicating the devices receiving the control instructions to execute the target operations corresponding to the received control instructions after receiving the execution instructions; correspondingly sending a plurality of control instructions to a plurality of devices; and sending the execution instruction to a plurality of devices in a broadcasting mode so as to instruct the plurality of devices to execute the target operation corresponding to the received control instruction. According to the invention, the problem of response time difference existing in the related technology when a plurality of devices are controlled is solved, the cooperativity of the plurality of devices in execution time is improved, and the user experience is improved.

Description

Equipment control method, device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a device control method, a device control device, a storage medium and an electronic device.
Background
The device control in the smart home is usually initiated by a cloud or a gateway, and is sent to the controlled device through a channel such as a TCP/IP (Transfer control Protocol/Internet Protocol) network or a bluetooth mesh (wireless mesh network).
In the related art, when a plurality of devices are controlled simultaneously, a cloud or a gateway needs to sequentially send control instructions to a plurality of device addresses or a plurality of packet addresses (each instruction may contain different operation contents), and as most of the smart home devices adopt Wi-Fi (wireless network), Bluetooth Low Energy (Bluetooth Low Energy) or Bluetooth mesh (Bluetooth Low Energy mesh network) as transmission media, a large delay exists among a plurality of instructions, so that time differences visible to the naked eye exist in response to control requests of the plurality of devices, and poor user experience is brought.
Therefore, the problem that the response time is different when a plurality of devices are controlled exists in the related art.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
Embodiments of the present invention provide an apparatus control method and apparatus, a storage medium, and an electronic apparatus, so as to at least solve a problem in the related art that a response time difference exists when a plurality of apparatuses are controlled.
According to an embodiment of the present invention, there is provided an apparatus control method including: determining a plurality of control instructions, wherein different control instructions included in the plurality of control instructions are used for controlling different devices to execute the same or different target operations, the control instructions carry tag information, and the tag information is used for indicating the devices receiving the control instructions to execute the target operations corresponding to the received control instructions after receiving the execution instructions; correspondingly sending the control instructions to the equipment; and sending the execution instruction to a plurality of devices in a broadcasting mode so as to instruct the plurality of devices to execute the target operation corresponding to the received control instruction.
According to another embodiment of the present invention, there is also provided an apparatus control method including: receiving a control instruction from a control end; under the condition that the control instruction is determined to carry label information, executing waiting operation, wherein the label information is used for indicating the equipment receiving the control instruction to execute the target operation corresponding to the received control instruction after receiving the execution instruction; receiving the execution instruction sent by the control end in a broadcasting mode; and executing the target operation under the triggering of the execution instruction.
According to another embodiment of the present invention, there is provided an appliance control apparatus including: the device comprises a determining module and a processing module, wherein the determining module is used for determining a plurality of control instructions, different control instructions included in the control instructions are used for controlling different devices to execute the same or different target operations, the control instructions carry mark information, and the mark information is used for indicating the devices receiving the control instructions to execute the target operations corresponding to the received control instructions after receiving the execution instructions; the first sending module is used for correspondingly sending the control instructions to the equipment; a second sending module, configured to send the execution instruction to the multiple devices in a broadcast manner, so as to instruct the multiple devices to execute the target operation corresponding to the received control instruction.
According to another embodiment of the present invention, there is also provided an apparatus control device including: the first receiving module is used for receiving a control instruction from the control end; a first execution module, configured to execute a waiting operation when it is determined that the control instruction carries tag information, where the tag information is used to instruct a device that receives the control instruction to execute a target operation corresponding to the received control instruction after receiving the execution instruction; the second receiving module is used for receiving the execution instruction sent by the control end in a broadcasting mode; and the second execution module is used for executing the target operation under the triggering of the execution instruction.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, different control instructions are included in the plurality of control instructions, the control instructions carry tag information for instructing the equipment receiving the control instructions to execute the operation corresponding to the tag information, the plurality of control instructions are sent to the plurality of equipment in a broadcasting manner, the plurality of equipment store the control instructions after receiving the control instructions, and execute the target operation corresponding to the respective received control instructions when receiving the execution instructions. Because the device has received the control instruction before receiving the execution instruction, and can execute the target operation simultaneously when receiving the execution instruction, the problem that the response time difference exists when controlling a plurality of devices in the related art can be solved, the cooperativity of the execution time of the plurality of devices is improved, and the user experience is improved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of an apparatus control method according to an embodiment of the present invention;
FIG. 2 is a first flowchart of a device control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a device control process according to an embodiment of the invention;
FIG. 4 is a second flowchart of a device control method according to an embodiment of the present invention;
FIG. 5 is a flow chart of a method of controlling a device according to a specific embodiment of the present invention;
FIG. 6 is a first block diagram of the apparatus control device according to the embodiment of the present invention;
fig. 7 is a block diagram of a second configuration of the device control apparatus according to the embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of an apparatus control method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the device control method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 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, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile 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 transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a device control method is provided, and fig. 2 is a first flowchart of the device control method according to the embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
step S202, determining a plurality of control instructions, wherein different control instructions included in the plurality of control instructions are used for controlling different devices to execute the same or different target operations, the control instructions carry tag information, and the tag information is used for indicating the devices receiving the control instructions to execute the target operations corresponding to the received control instructions after receiving the execution instructions;
step S204, correspondingly sending the control instructions to the equipment;
step S206, sending the execution instruction to the multiple devices in a broadcast manner, so as to instruct the multiple devices to execute the target operation corresponding to the received control instruction.
In the above embodiments, the plurality of devices may be a plurality of devices of the same kind, for example, a plurality of lamps, a plurality of computers, and the like. The device can also be a plurality of different types of devices, for example, the plurality of devices can comprise any combination of a plurality of household devices such as a ceiling lamp, a tube lamp group, a spot lamp group, a lamp strip, a television, a curtain motor and the like; and may be a combination of any number of devices in an office environment, for example, the plurality of devices may include a combination of any number of devices in an office environment such as a computer, printer, water dispenser, etc. When the plurality of devices are the same kind of device, the control instruction may control the plurality of devices to perform the same or different target operations. When the control instruction controls the multiple devices to perform the same target operation, for example, when the multiple devices are all lamps, the control instruction may control the multiple lamps to be turned on, that is, the target operation is turning on, at this time, the lamps may be numbered, and the lamps at different positions are numbered in sequence, for example, 1,2, 3 … …, so that the identification information carried in the control instruction received by the lamp No. 1 may be (1, 1), the identification information carried in the control instruction received by the lamp No. 2 may be (2, 1), and so on. When the target is turned off during operation, the identification information carried in the control command received by the lamp 1 may be (1, 0), and the identification information carried in the control command received by the lamp 2 may be (2, 0). That is, the device may be turned on by 1 and turned off by 0. Of course, the control instruction may also be to control multiple devices to perform different operations, for example, after numbering multiple luminaires, part of the luminaires may be controlled to be in an open state, and part of the luminaires are in a closed state, and the identification information carried by the control execution received by the luminaires may be (1, 1), (2, 0), (3, 0), (4, 1) … ….
In the above-described embodiment, when the plurality of devices include different kinds of devices, for example, when the plurality of devices include a lamp, an air conditioner, a computer, the equipment can be numbered, such as a lamp 1, a lamp 2 … …, an air conditioner 1, an air conditioner 2 … …, a computer 1 and a computer 2 … …, the control command can be to control the lamps 1 and 3 to be turned on, the lamps 2 and 4 to be turned off, the temperatures of the air conditioners 1 and 2 to be 26 ℃, the model of the air conditioner 3 to be in a cooling mode, the model of the air conditioner 4 to be in a dehumidifying mode, the computers 1 and 2 to be turned on, the identification information carried by the control command may be (lamp 1,1), (lamp 2,0), (lamp 3,1), (lamp 4,0), (air conditioner 1,26), (air conditioner 2, 26), (air conditioner 3, cooling), (air conditioner 4, dehumidification), (computer 1,1), (computer 2, 1).
It should be noted that the above identification information is only an exemplary illustration, the identification information is not limited in the present invention, and a user may set the content of the identification information according to needs and control instructions. And after receiving the execution instruction, the equipment executes the target operation corresponding to the control instruction according to the identification information carried in the control instruction.
For example, the main body of the above steps may control a party, such as a gateway, a cloud server, a background processor, or other devices with similar processing capabilities, and may also be a machine integrated with at least a data processing device, where the data processing device may include a terminal, such as a computer, a mobile phone, and the like, but is not limited thereto. The control party sends a control instruction to the multiple devices, and the multiple devices are controlled parties, and receive the control instruction sent by the control party and execute a corresponding command, wherein a schematic diagram of a device control process can be seen in fig. 3.
According to the invention, different control instructions are included in the plurality of control instructions, the control instructions carry tag information used for instructing equipment receiving the control instructions to execute operations corresponding to the tag information, the plurality of control instructions are sent to the plurality of equipment in a broadcasting mode, the plurality of equipment stores the control instructions after receiving the control instructions, and executes target operations corresponding to the respective received control instructions when receiving the execution instructions. Because the device receives the control instruction before receiving the execution instruction, and can execute the target operation simultaneously when receiving the execution instruction, the problem of response time difference existing in the related technology when controlling a plurality of devices can be solved, the execution time cooperativity of the plurality of devices is improved, and the user experience is improved.
In one exemplary embodiment, determining the plurality of control commands comprises: receiving a control request; determining that a plurality of the control instructions need to be constructed based on the control request; constructing a plurality of the control commands. In this embodiment, the control request includes a plurality of different control instructions that need to be sent to a plurality of controlled parties (corresponding to the plurality of devices), and after receiving the control request from a user or from an automation rule, the cloud or the gateway determines a plurality of control instructions that need to be constructed and are included in the control request, and constructs the plurality of control instructions. For example, when the plurality of devices include a lamp, an air conditioner, a television, and the like, the control request may include turning on or off the lamp, the air conditioner, the television, adjusting a lighting mode of the lamp, adjusting a temperature, a mode, and the like of the air conditioner, adjusting a channel, a volume, and the like of the television.
In one exemplary embodiment, determining that a plurality of the control instructions need to be constructed based on the control request comprises: in a case where it is determined that the control request is for requesting that different ones of the devices included in the plurality of devices be controlled to perform the same or different target operations, respectively, it is determined that a plurality of the control instructions need to be constructed. In this embodiment, when a webmaster or a cloud receives a control request, it may be determined whether multiple control instructions need to be constructed first, that is, when the control request is to execute the same operation on multiple devices, only one control instruction may be constructed, for example, when the control request is to open all lamps, it is not necessary to construct multiple control instructions to control each lamp, only one control instruction needs to be constructed to control all lamps, and at this time, identification information carried by the control instruction may be (lamp all, 1) (the identification information is only an implementable manner, and a user may customize identification information carried by the control instruction as needed). When the control request is to perform different operations on the multiple devices, multiple control instructions may be configured according to the operations performed on the different devices, for example, when the control request is to turn on the light fixtures in the living room and turn off the light fixtures in the bedroom, different control instructions may be configured to control the light fixtures in the living room and the light fixtures in the bedroom to perform different target operations. When the light fixture and the air conditioner in the living room are turned on at the time of the control request, different control instructions may be configured to control the light fixture and the air conditioner to perform the same target operation.
In this embodiment, a device control method is provided, and fig. 4 is a second flowchart of the device control method according to the embodiment of the present invention, as shown in fig. 4, the flowchart includes the following steps:
step S402, receiving a control instruction from a control end;
step S404, under the condition that the control instruction is determined to carry the mark information, executing a waiting operation, wherein the mark information is used for indicating the equipment receiving the control instruction to execute the target operation corresponding to the received control instruction after receiving the execution instruction;
step S406, receiving the execution instruction sent by the control end in a broadcast mode;
step S408, under the trigger of the execution instruction, executing the target operation.
In the above embodiment, the control end may be a cloud end or a gateway, and after receiving the control instruction sent by the control end, the control end determines the identification information carried in the control instruction, waits for a further command, and executes a target operation corresponding to the received control instruction when the device receives the execution instruction. The equipment can be ceiling lamps, tube lamp banks, spot lamp banks, lamp belts, televisions, curtain motors and other household equipment; and can also be equipment in office environment, such as computers, printers, water dispensers and the like. Different devices can receive the control instruction sent by the control terminal, so the devices can be numbered, the same device can be numbered sequentially according to positions, such as device 1, device 2 and device 3 … …, different devices can be numbered according to names of the devices, such as air conditioner 1, lamp 1 and television 1, the numbering mode is only an exemplary implementation mode, a user can customize the numbering mode according to needs, and the numbering mode is not limited by the invention.
In the above-described embodiment, the control instruction may be a target operation of controlling the apparatus to perform turning on or off, and may also be an operation of controlling the apparatus to perform an adjustment mode, an adjustment of temperature, or the like. For example, when the device receiving the control instruction is a lamp, the control instruction may be to turn on or off the lamp, adjust an illumination mode of the lamp, and the like, and the corresponding identification information may indicate that the lamp 1 performs an on operation by using (lamp 1,1), indicate that the lamp 1 performs an off operation by using (lamp 1,0), and indicate that the lamp 1 performs a ticker mode by using (lamp 1, ticker), that is, the identification information may be the corresponding device and a target operation performed by the device, and may indicate that the device is turned on by using 1, and 0 indicates that the device is turned off. When the device receiving the control instruction is an air conditioner, the identification information carried by the control instruction may be (air conditioner 1,26), (air conditioner 2, 26), (air conditioner 3, refrigeration), (air conditioner 4, dehumidification), and the like, that is, the temperature of the air conditioner 1,2 is adjusted to 26 ℃, the mode of the air conditioner 3 is adjusted to refrigeration, and the mode of the air conditioner 4 is adjusted to dehumidification.
It should be noted that the above identification information is only an exemplary description, and the present invention does not limit the identification information, and the user can set the content of the identification information according to the need and the control instruction. And after receiving the respective control instruction, the equipment executes the target operation corresponding to the control instruction according to the identification information carried in the control instruction.
Illustratively, the executing subject of the above steps may be a controlled party, such as home equipment, office equipment, etc.
According to the invention, different control instructions are included in the plurality of control instructions, the control instructions carry tag information used for instructing equipment receiving the control instructions to execute operations corresponding to the tag information, the plurality of control instructions are sent to the plurality of equipment in a broadcasting mode, the plurality of equipment stores the control instructions after receiving the control instructions, and executes target operations corresponding to the respective received control instructions when receiving the execution instructions. Because the device receives the control instruction before receiving the execution instruction, and can execute the target operation simultaneously when receiving the execution instruction, the problem of response time difference existing in the related technology when controlling a plurality of devices can be solved, the execution time cooperativity of the plurality of devices is improved, and the user experience is improved.
In an exemplary embodiment, after receiving the control instruction from the control terminal, the method further includes: and under the condition that the control instruction is determined not to carry the marking information, immediately executing the target operation. In this embodiment, after the device receives the control instruction, it is determined that the control instruction carries the tag information, and the target operation may be directly performed, that is, if the device is a lamp, the lamp is turned on when the control instruction is received, and the control instruction does not carry the identification information, that is, the operation of turning on the lamp may be directly performed.
How to control the apparatus is explained below with reference to specific embodiments:
fig. 5 is a flowchart of a device control method according to an embodiment of the present invention, and as shown in fig. 5, the flowchart includes:
step S502, after receiving a control request from a user or an automation rule, the cloud or the gateway (corresponding to the control end, hereinafter referred to as the control end) sends a control request to a plurality of controlled parties (corresponding to the devices), such as a plurality of different control instructions of the intelligent lamp, included in the control request.
In step S504, the controller determines whether the command needs to be decomposed into a plurality of control commands, and if yes, performs step S506, and if no, performs step S516.
In step S506, the controlling party sequentially sends control commands with different contents to the controlled party, and the commands include special marks (corresponding to the above-mentioned identification information) to distinguish from the common commands.
In step S508, after receiving the instruction, the controlled party saves the instruction content, but does not execute it.
Step S510, the controlled party sends a special mark instruction to all devices.
In step S512, after the controller sends the control command to all devices, it broadcasts an "execute" command (the command does not include specific execution content, so that the broadcast mode can be adopted).
In step S514, the controlled party immediately executes the instruction saved in step S508 after receiving the execution instruction.
In step S516, the controller sends a general command to the controlled party.
In step S518, the controlled party executes the normal instruction.
In the foregoing embodiment, the controller first sends control instructions to all devices that need to be controlled, where the instructions include operations that the devices are expected to perform, and the devices cache the contents of the operations but do not perform the operations. The controller then sends an "execute" command, either broadcast or multicast, which is received by all devices to begin performing the desired operations previously received. The control party issues the control instructions in sequence and unifies the execution strategy, so that the cooperativity of the intelligent devices in the execution time can be greatly improved, and the user experience is improved.
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 invention 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 invention.
In this embodiment, an apparatus control device is further provided, and the apparatus control device is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus control device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a first structure of a device control apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes:
a determining module 62, configured to determine multiple control instructions, where different control instructions included in the multiple control instructions are used to control different devices to execute the same or different target operations, and the control instructions carry tag information, where the tag information is used to instruct a device that receives the control instructions to execute the target operation corresponding to the received control instruction after receiving the execution instruction;
a first sending module 64, configured to correspondingly send the control instructions to the devices;
a second sending module 66, configured to send the execution instruction to the multiple devices in a broadcast manner, so as to instruct the multiple devices to execute the target operation corresponding to the control instruction received by the multiple devices.
In an exemplary embodiment, the determination module 62 includes: a receiving unit configured to receive a control request; a determination unit configured to determine that a plurality of the control instructions need to be configured based on the control request; a construction unit for constructing a plurality of the control instructions.
In an exemplary embodiment, the determination module 62 may determine that a plurality of the control instructions need to be constructed based on the control request by: in a case where it is determined that the control request is for requesting to control different devices included in the plurality of devices to perform the same or different target operations, respectively, it is determined that a plurality of the control instructions need to be constructed.
Fig. 7 is a block diagram of a second configuration of the device control apparatus according to the embodiment of the present invention, and as shown in fig. 7, the apparatus includes:
a first receiving module 72, configured to receive a control instruction from a control end;
a first executing module 74, configured to execute a waiting operation when it is determined that the control instruction carries tag information, where the tag information is used to instruct a device that receives the control instruction to execute a target operation corresponding to the received control instruction after receiving the execution instruction;
a second receiving module 76, configured to receive the execution instruction sent by the control end in a broadcast manner;
and a second execution module 78, configured to execute the target operation under the trigger of the execution instruction.
In an exemplary embodiment, the apparatus may be configured to, after receiving a control instruction from a control end, immediately execute the target operation when it is determined that the control instruction does not carry the tag information.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and they may be implemented in program code that is executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed in an order different from that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps therein may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An apparatus control method, characterized by comprising:
determining a plurality of control instructions, wherein different control instructions included in the plurality of control instructions are used for controlling different devices to execute the same or different target operations, the control instructions carry tag information, and the tag information is used for indicating the devices receiving the control instructions to execute the target operations corresponding to the received control instructions after receiving the execution instructions;
correspondingly sending the control instructions to the equipment;
sending the execution instruction to a plurality of devices in a broadcast mode so as to instruct the plurality of devices to execute the target operation corresponding to the received control instruction;
the method further comprises the following steps: in the case of controlling a plurality of the apparatuses to perform the same target operation, one of the control instructions is constructed.
2. The method of claim 1, wherein determining a plurality of control commands comprises:
receiving a control request;
determining that a plurality of the control instructions need to be constructed based on the control request;
constructing a plurality of the control commands.
3. The method of claim 2, wherein determining that a plurality of the control instructions need to be constructed based on the control request comprises:
in a case where it is determined that the control request is for requesting to control different devices included in the plurality of devices to perform the same or different target operations, respectively, it is determined that a plurality of the control instructions need to be constructed.
4. An apparatus control method characterized by comprising:
receiving a control instruction from a control end;
under the condition that the control instruction is determined to carry label information, executing waiting operation, wherein the label information is used for indicating the equipment receiving the control instruction to execute the target operation corresponding to the received control instruction after receiving the execution instruction;
receiving the execution instruction sent by the control end in a broadcasting mode;
executing the target operation under the triggering of the execution instruction;
the control instruction is an instruction constructed by the control end, and the control end constructs one control instruction under the condition that a plurality of devices are controlled to execute the same target operation.
5. The method of claim 4, wherein after receiving the control instruction from the control end, the method further comprises:
and under the condition that the control instruction is determined not to carry the mark information, immediately executing the target operation.
6. An apparatus control device, characterized by comprising:
a determining module, configured to determine a plurality of control instructions, where different control instructions included in the plurality of control instructions are used to control different devices to execute the same or different target operations, where the control instructions carry tag information, and the tag information is used to instruct a device that receives the control instructions to execute the target operations corresponding to the received control instructions after receiving the execution instructions;
the first sending module is used for correspondingly sending the control instructions to the equipment;
a second sending module, configured to send the execution instruction to the multiple devices in a broadcast manner, so as to instruct the multiple devices to execute the target operation corresponding to the received control instruction;
the apparatus is also configured to construct one of the control instructions in a case where a plurality of the devices are controlled to perform the same target operation.
7. The apparatus of claim 6, wherein the determining module comprises:
a receiving unit configured to receive a control request;
a determination unit configured to determine that a plurality of the control instructions need to be configured based on the control request;
a constructing unit configured to construct a plurality of the control instructions.
8. An apparatus control device, characterized by comprising:
the first receiving module is used for receiving a control instruction from the control end;
a first execution module, configured to execute a wait operation when it is determined that the control instruction carries tag information, where the tag information is used to instruct a device that receives the control instruction to execute a target operation corresponding to the received control instruction after receiving the execution instruction;
the second receiving module is used for receiving the execution instruction sent by the control end in a broadcasting mode;
the second execution module is used for executing the target operation under the triggering of the execution instruction;
wherein the control instruction is an instruction constructed by the control end, and the control end constructs one control instruction under the condition of controlling a plurality of devices to execute the same target operation.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of the claims 1 to 3, or to perform the method of any of the claims 4 to 5, when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 3, or to perform the method of any of claims 4 to 5.
CN202010665103.5A 2020-07-10 2020-07-10 Device control method, device, storage medium, and electronic apparatus Active CN111913397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010665103.5A CN111913397B (en) 2020-07-10 2020-07-10 Device control method, device, storage medium, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010665103.5A CN111913397B (en) 2020-07-10 2020-07-10 Device control method, device, storage medium, and electronic apparatus

Publications (2)

Publication Number Publication Date
CN111913397A CN111913397A (en) 2020-11-10
CN111913397B true CN111913397B (en) 2022-08-26

Family

ID=73226390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010665103.5A Active CN111913397B (en) 2020-07-10 2020-07-10 Device control method, device, storage medium, and electronic apparatus

Country Status (1)

Country Link
CN (1) CN111913397B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784486B (en) * 2021-08-11 2024-04-12 深圳市智岩科技有限公司 Equipment control method, device, electronic equipment and storage medium
CN114280949A (en) * 2021-12-10 2022-04-05 深圳市欧瑞博科技股份有限公司 Intelligent control method and device for equipment, intelligent equipment and storage medium
CN114422559A (en) * 2021-12-31 2022-04-29 深圳海翼智新科技有限公司 Device control method and device, electronic device and storage medium
CN115686630A (en) * 2022-10-28 2023-02-03 龙芯中科(南京)技术有限公司 Control method and system of controlled assembly, electronic device and readable medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725543A (en) * 2018-12-25 2019-05-07 深圳绿米联创科技有限公司 Equipment control code configuration method, device, Cloud Server and network system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101855229B1 (en) * 2011-10-27 2018-05-10 삼성전자주식회사 Method for performing synchronization between devices
CN103905894A (en) * 2014-03-06 2014-07-02 北京国电通网络技术有限公司 Intelligent domestic electric appliance control method and system and intelligent set top box
CN104079957B (en) * 2014-06-25 2017-09-01 广东欧珀移动通信有限公司 A kind of method and system of multimedia equipment simultaneously operating
CN105527931A (en) * 2014-09-28 2016-04-27 丰唐物联技术(深圳)有限公司 Intelligent household device and control method
CN104811752A (en) * 2015-04-24 2015-07-29 上海智物信息技术有限公司 Multi-screen synchronization method and playing system for the same local area network
CN105204477B (en) * 2015-10-19 2018-01-09 泰凌微电子(上海)有限公司 Synchronisation control means, wireless network and intelligent home device in wireless network
CN106131331B (en) * 2016-07-01 2019-07-09 诚迈科技(南京)股份有限公司 A kind of method, apparatus and system that multiple smart machines are uniformly controlled
CN106416143B (en) * 2016-09-02 2018-06-12 北京小米移动软件有限公司 Apparatus control method and device
CN107566881B (en) * 2017-08-31 2021-03-09 深圳创维-Rgb电子有限公司 VR equipment control method, device and system
CN108366283B (en) * 2018-02-12 2021-01-05 苏州佳世达电通有限公司 Media synchronous playing method among multiple devices
CN108769929A (en) * 2018-05-07 2018-11-06 深圳探科技术有限公司 A kind of more controlled plant synchronisation control means and system based on wireless network
CN111176130B (en) * 2020-01-07 2022-05-24 华为技术有限公司 Equipment control method, equipment control method and equipment control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725543A (en) * 2018-12-25 2019-05-07 深圳绿米联创科技有限公司 Equipment control code configuration method, device, Cloud Server and network system

Also Published As

Publication number Publication date
CN111913397A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN111913397B (en) Device control method, device, storage medium, and electronic apparatus
US7564804B2 (en) Method of assigning addresses to a plurality of devices on a network and a network system therefor
CN105471686B (en) Terminal control method, device and system
JP7249720B2 (en) Allocation and Reuse of Network Addresses for Hierarchy-Based RPL Networks
CN111865736B (en) Equipment control method and device
CN111885144B (en) Equipment binding method and device
US10039174B2 (en) Systems and methods for acknowledging broadcast messages in a wireless lighting control network
CN103512159A (en) Air conditioner and air conditioner control system
CN203896554U (en) Indoor illumination control system and indoor intelligent control system
CN106411667A (en) Network chip based smart home multi-cloud control method and system
US20150312361A1 (en) Method Of Establishing Communication Session Using Active Connection Of Mobile Terminal To Relay Server
CN103987173A (en) Indoor illumination control system and indoor intelligent control system
CN112612497A (en) Firmware upgrading method based on gateway and firmware upgrading method of equipment
CN105357255A (en) Remote update method and system
US11098914B2 (en) System and method for operating a HVAC system by determining occupied state of a structure via IP address
CN111866856B (en) Mesh device control method and system, storage medium and electronic device
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium
CA2964914A1 (en) Systems and methods for acknowledging broadcast messages in a wirelss lighting control netowrk
CN110519258A (en) Equipment accesses account control method, control device and readable storage medium storing program for executing
CN105049266A (en) Method for achieving network node control
CN110611589B (en) Control method and device of regional control system and air conditioning system
CN106851788B (en) Wireless communication system based on CC2530 chip
CN103973502A (en) Wireless program updating method for devices of intelligent housing system
KR101290727B1 (en) Apparatus to update S/W of system air conditioner and method thereof
CN108931923B (en) Device control method and apparatus, storage medium, and electronic apparatus

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