CN113805490A - Device control method, system, apparatus, device and storage medium - Google Patents

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

Info

Publication number
CN113805490A
CN113805490A CN202111070373.2A CN202111070373A CN113805490A CN 113805490 A CN113805490 A CN 113805490A CN 202111070373 A CN202111070373 A CN 202111070373A CN 113805490 A CN113805490 A CN 113805490A
Authority
CN
China
Prior art keywords
event
plug
control
control function
control instruction
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.)
Pending
Application number
CN202111070373.2A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111070373.2A priority Critical patent/CN113805490A/en
Publication of CN113805490A publication Critical patent/CN113805490A/en
Pending legal-status Critical Current

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

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 application relates to a device control method, a system, a device and a storage medium, wherein the method comprises the steps of obtaining an operation event aiming at any control function of a plug-in; inserting the operation events into the tail of the event queue, taking out each event in the event queue one by one, and executing the following steps for each event: and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction. Because the operation events are placed in the event queue, even if a plurality of users operate the plug-in a short time, each operation event can be executed one by one through the event queue, each operation event is processed one by one according to the principle of first-come first-processed and then-processed, and the page of the plug-in is updated, so that the problem of page jumping is avoided.

Description

Device control method, system, apparatus, device and storage medium
Technical Field
The present application relates to the field of smart home, and in particular, to a method, a system, an apparatus, a device, and a storage medium for controlling a device.
Background
In recent years, smart home devices have come to appear in the field of vision of people, and various smart home applications (apps) have come to appear in succession, and the apps mainly play a role in controlling smart devices in homes.
When the app is used for controlling the smart home device currently, the problem that a page jumps due to multiple operations performed on the page in a short time often occurs.
Disclosure of Invention
The application provides a device control method, a system, a device, equipment and a storage medium, which are used for solving the problem that when the app is used for controlling the smart home device at present, the phenomenon of page jumping frequently occurs due to multiple operations performed on the page in a short time.
In a first aspect, a device control method is provided, including:
acquiring an operation event aiming at any control function of a plug-in, wherein the control function is used for controlling intelligent household equipment communicating with the plug-in to execute a preset action;
inserting the operation events into the tail of an event queue, taking out each event in the event queue one by one, and executing the following steps for each event:
and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
Optionally, before controlling the smart home device to execute the control instruction, the method further includes:
determining a first control function in the plug-in, wherein the first control function has a mutual exclusion relationship with the control function;
and when the fact that the intelligent household equipment is executing the target action corresponding to the first control function is determined, controlling the intelligent household equipment to stop executing the target action.
Optionally, determining that the smart home device is executing a target action corresponding to the first control function includes:
acquiring a state parameter indicating the current state of the first control function and an operation parameter related to the intelligent home equipment from a display interface displaying the first control function, wherein the state parameter is used for indicating that the plug-in is operating the first control function or is not operating the first control function, and the operation parameter is used for indicating that the intelligent home equipment is executing an action or is not executing an action;
when the action executed by the intelligent home equipment indicated by the operation parameter is consistent with the target action, determining that the intelligent home equipment is executing the target action.
Optionally, fetching each event in the event queue one by one includes:
when the event queue is not an empty queue, taking out each event in the event queue one by one from the head of the event queue.
Optionally, generating a control instruction corresponding to the event includes:
analyzing the event to obtain related parameters used for indicating a preset action corresponding to the event in the event;
and generating a control instruction corresponding to the relevant parameter, and determining the control instruction corresponding to the relevant parameter as the control instruction corresponding to the event.
Optionally, updating the page of the plug-in based on the event and the control instruction includes:
determining a second control function corresponding to the event;
updating the state parameters and the operation parameters on a display interface for displaying the second control function, so that the updated state parameters indicate that the plug-in is operating the second control function, and the operation parameters indicate that the smart home equipment is executing the action corresponding to the second control function based on the control instruction.
In a second aspect, there is provided an appliance control system comprising:
the method comprises the steps that control equipment and intelligent household equipment with application programs are deployed, and the application programs are loaded with at least one plug-in;
the control device is used for acquiring an operation event aiming at any control function of the plug-in, and the control function is used for controlling the intelligent household equipment which is communicated with the plug-in to execute a preset action; inserting the operation event into the tail of an event queue; taking out each event in the event queue one by one, and executing the following steps for each event: and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
In a third aspect, there is provided a device control apparatus comprising:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring an operation event aiming at any control function of a plug-in, and the control function is used for controlling intelligent household equipment which is communicated with the plug-in to execute a preset action;
the execution unit is used for inserting the operation events into the tail of an event queue, taking out each event in the event queue one by one, and executing the following steps on each event:
and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
In a fourth aspect, an electronic device is provided, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory, and implement the device control method according to the first aspect.
In a fifth aspect, there is provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the apparatus control method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the technical scheme provided by the embodiment of the application, an operation event aiming at any control function of the plug-in is obtained, and the control function is used for controlling the intelligent household equipment which is communicated with the plug-in to execute a preset action; inserting the operation events into the tail of the event queue, taking out each event in the event queue one by one, and executing the following steps for each event: and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction. Because the operation events are placed in the event queue, even if a plurality of users operate the plug-in a short time, each operation event can be executed one by one through the event queue, each operation event is processed one by one according to the principle of first-come first-processed and then-processed, and the page of the plug-in is updated, so that the problem of page jumping is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an apparatus control method according to an embodiment of the present application;
FIG. 2 is a block diagram illustrating an apparatus control method according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an apparatus control system according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a device control apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the related art, when an app is used to control a smart home device, a plurality of plug-ins are deployed on each app, and each plug-in is used to control one smart home device. For any plug-in on the app, when a plurality of users operate the plug-in a short time, the latest operation is used as the control for the smart home device, namely the latest operation is the operation on the plug-in which will cover the latest last operation on the plug-in, so that the page of the plug-in jumps.
Illustratively, assume that there are A, B two function buttons on the plug-in page, the a function button is used to control the on and off of the air conditioner screen display, and the B function button is used to control the operation mode of the air conditioner. When the user presses the function button a, the function button B is operated next, and since the operation time of the two function buttons A, B is very close, the situation that the state of the function button a and the state of the air conditioner after the user presses the function button a are not displayed on the display page corresponding to the plug-in, and the state of the function button B and the state of the air conditioner after the user presses the function button B are directly displayed, that is, the page jumps.
In order to solve the above problem, an embodiment of the present application provides an apparatus control method, which is applicable to an electronic apparatus.
The electronic device may include a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a video matrix, a monitoring platform, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable device, which are examples and not exhaustive, but include, but are not limited to, the foregoing Devices, and of course, the electronic device may also be a server, for example, a cloud server.
As shown in fig. 1, the method may include the steps of:
step 101, obtaining an operation event aiming at any control function of the plug-in, wherein the control function is used for controlling the intelligent household equipment which is communicated with the plug-in to execute a preset action.
In this embodiment, each plug-in may control one smart home device, and the control function in the plug-in corresponds to an action that the smart home device can execute. Taking the smart home device as an air conditioner as an example, the control function of the plug-in may be to turn on or off the air conditioner, adjust an operation mode of the air conditioner, adjust a wind speed of the air conditioner, adjust a temperature of the air conditioner, and the like; accordingly, the preset action performed by the air conditioner may be starting or closing, operating in an operation mode corresponding to the control function, supplying air, operating in a temperature output corresponding to the control function, and the like.
In this embodiment, the control function of the plug-in may be displayed to the user in the form of a function button or the like. When the user operates the function button, the operation event is obtained, and a control instruction is generated according to the operation event so as to control the smart home. It should be understood that the control function of the plug-in is not limited in this embodiment to be presented to the user in the form of a function button, and may be presented to the user in other forms.
Step 102, inserting the operation event into the tail of the event queue, taking out each event in the event queue one by one, and executing the following steps for each event:
and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
It should be understood that the event queue in this embodiment is a data structure, and the event queue has a first-in first-out feature. The event queue is adopted to store the operation events, so that the operation events acquired firstly can be guaranteed to be processed preferentially, and the operation events acquired later can be processed after being ranked.
In this embodiment, in the event queue, each event corresponds to one queue entry, and each queue entry includes an event handle pointer, and the handle pointer points to the event handle queue.
In this embodiment, the first event in each event fetched from the event queue is an operation event or not. Specifically, when an operation event is not stored in the event queue, if the event queue is empty, that is, no event is stored in the event queue, the operation event is inserted into the tail of the event queue, and then the first event taken out from the event queue is the operation event; when the operation event is not stored in the event queue, if the event queue is not empty, that is, the event queue stores the event, the first event taken out from the event queue after the operation event is inserted into the tail of the event queue is not the operation event.
In this embodiment, the sequence of inserting the operation event into the tail of the event queue and taking out each event in the event queue one by one is not limited, that is, the step of inserting the operation event into the tail of the event queue may be performed before or after taking out each event in the event queue one by one.
In this embodiment, when the event in the event queue is read, the event queue is empty, so when the event in the event queue is read, to avoid reading inefficiently, it is first determined whether the event queue is empty, and when it is determined that the event queue is not empty, each event in the event queue is taken out one by one from the head of the event queue.
When the event queue does not store the event, determining that the event queue is an empty queue. In the application, whether the event queue is an empty queue can be determined by directly traversing the event queue or traversing the handle pointer. Specifically, when no handle pointer exists, it is determined that the event queue is an empty queue.
In this embodiment, the data format of the event is different from the data format of the control instruction, so after the event is taken out from the event queue, the event needs to be analyzed to obtain the control instruction. Specifically, analyzing an event to obtain a relevant parameter of a preset action corresponding to the indication event in the event; and generating a control instruction corresponding to the relevant parameter, and determining the control instruction corresponding to the relevant parameter as the control instruction corresponding to the event.
The relevant parameters describe the action amplitude or the action mode of the preset action corresponding to the event. For example, when the preset action is an adjusting action of the wind speed of the air conditioner, the relevant parameters are used for describing the size of the adjustment of the wind speed; and if the preset action is an adjusting action of the operation mode of the air conditioner, the related parameters are used for describing the operation mode of the adjusted air conditioner, and the like.
According to the technical scheme provided by the embodiment of the application, an operation event aiming at any control function of the plug-in is obtained, and the control function is used for controlling the intelligent household equipment which is communicated with the plug-in to execute a preset action; inserting the operation events into the tail of the event queue, taking out each event in the event queue one by one, and executing the following steps for each event: and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction. Because the operation events are placed in the event queue, even if a plurality of users operate the plug-in a short time, each operation event can be executed one by one through the event queue, each operation event is processed one by one according to the principle of first-come first-processed and then-processed, and the page of the plug-in is updated, so that the problem of page jumping is avoided.
In another embodiment of the application, in order to meet the actual operating condition operation requirement of the smart home, in consideration of the fact that some actions in the smart home devices cannot be executed simultaneously, when an operating event for the control function exists, it is first determined whether a first control function having a mutual exclusion relationship with the control function exists in the plug-in, if so, it is indicated that the smart home devices are executing a target action corresponding to the first control function, and at this time, the smart home devices are controlled to stop executing the target action corresponding to the first control function.
It should be understood that, in the present embodiment, the two events AB that are mutually exclusive events mean that the two events AB cannot occur simultaneously. Similarly, the control function and the first control function having the mutual exclusion relationship refer to that, in the plug-in unit, the control function and the first control function cannot operate simultaneously, and accordingly, on the side of the smart home device, the smart home device cannot simultaneously execute the preset action corresponding to the control function and the preset action corresponding to the first control function.
In this embodiment, whether the smart home device is executing the target action corresponding to the first control function may be determined according to the state parameter indicating the current state of the first control function and the operation parameter related to the smart home device, which are displayed on the display interface of the first control function.
In a specific embodiment, a state parameter indicating the current state of a first control function and an operation parameter related to intelligent home equipment are acquired from a display interface displaying the first control function, the state parameter is used for indicating that a plug-in is operating the first control function or is not operating the first control function, and the operation parameter is used for indicating that the intelligent home equipment is executing an action or is not executing the action; and when the action executed by the intelligent household equipment indicated by the operation parameters is consistent with the target action, determining that the intelligent household equipment is executing the target action.
In an application, the current state of the first control function may be an on state, an off state, an up state, a down state, etc., and the state parameter indicating the current state of the first control function may be color data, for example, indicating the start state in green, indicating the off state in red, indicating the up state or the down state in yellow with different brightness, etc.
In application, the operation parameters related to the smart home device may be operation parameters under initial startup operation, adjusted operation parameters such as wind speed or temperature, and the like.
In another embodiment of the application, in order to enable a user to quickly know current operation data of the smart home and the operation condition of the control function in the plug-in, when the page of the plug-in is updated based on the event and the control instruction, a second control function corresponding to the event is determined; and updating the state parameters and the operation parameters on the display interface for displaying the second control function, so that the updated state parameters indicate that the plug-in unit is operating the second control function, and the operation parameters indicate that the intelligent household equipment is executing the action corresponding to the second control function based on the control instruction.
In order to more clearly show the technical solution of the present application, as shown in fig. 2, a schematic block diagram of an apparatus control method provided in the embodiment of the present application is shown, where the diagram includes:
a state machine 201, an event queue 202 and a service plate 203;
the acquired operation event aiming at any control function of the plug-in is inserted into the tail of the event queue 202 through the state machine 201, the event queue is checked, whether the event queue 202 is empty or not is judged, if not, each event in the event queue is taken out one by one from the head of the event queue, each event is analyzed, and relevant parameters used for indicating a preset action corresponding to the event in the event are obtained; and generating a control instruction based on the relevant parameters, outputting the control instruction to the service board 203 via the state machine 201, and the service board 203 acquiring the control instruction from the state machine 201, outputting the control instruction to the intelligent device, and updating the view of the plug-in page via the state machine 201.
When the control command is output to the service board 203 via the state machine 201, the state machine 201 also checks a first control function having a mutually exclusive relationship with the control function corresponding to the control command, and when it is determined that the smart home device is executing the target action corresponding to the first control function, the smart home device is controlled to stop executing the target action.
Based on the same concept, the embodiment of the present application provides an apparatus control system, and specific implementation of the apparatus may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 3, the system mainly includes:
the control device 301 and the smart home device 302 are deployed with application programs, and the application programs are loaded with at least one plug-in;
the control device 301 is configured to acquire an operation event of any control function of the plug-in, where the control function is configured to control the smart home device 302 in communication with the plug-in to execute a preset action; inserting an operation event into the tail of the event queue; taking out each event in the event queue one by one, and executing the following steps for each event: and generating a control instruction corresponding to the event, controlling the smart home device 302 to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
Based on the same concept, an apparatus control device is provided in the embodiments of the present application, and specific implementation of the apparatus may refer to the description of the method embodiment, and repeated descriptions are omitted, as shown in fig. 4, the apparatus mainly includes:
the acquisition unit 401 is configured to acquire an operation event for any control function of the plug-in, where the control function is used to control the smart home device in communication with the plug-in to execute a preset action;
an execution unit 402, configured to insert an operation event into a tail of the event queue, take out each event in the event queue one by one, and execute the following steps for each event:
and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
Optionally, the apparatus is further configured to:
before controlling the intelligent household equipment to execute the control instruction, determining a first control function in the plug-in with a mutually exclusive relation with the control function;
and when the intelligent household equipment is determined to execute the target action corresponding to the first control function, controlling the intelligent household equipment to stop executing the target action.
Optionally, the execution unit 402 is configured to:
acquiring a state parameter indicating the current state of the first control function and an operation parameter related to the intelligent home equipment from a display interface displaying the first control function, wherein the state parameter is used for indicating that the plug-in unit operates the first control function or does not operate the first control function, and the operation parameter is used for indicating that the intelligent home equipment is executing an action or does not execute the action;
and when the action executed by the intelligent household equipment indicated by the operation parameters is consistent with the target action, determining that the intelligent household equipment is executing the target action.
Optionally, the execution unit 402 is configured to:
when the event queue is not an empty queue, each event in the event queue is fetched one by one starting from the head of the event queue.
Optionally, the execution unit 402 is configured to:
analyzing the event to obtain related parameters of a preset action corresponding to the indication event in the event;
and generating a control instruction corresponding to the relevant parameter, and determining the control instruction corresponding to the relevant parameter as the control instruction corresponding to the event.
Optionally, the execution unit 402 is configured to: :
determining a second control function corresponding to the event;
and updating the state parameters and the operation parameters on the display interface for displaying the second control function, so that the updated state parameters indicate that the plug-in unit is operating the second control function, and the operation parameters indicate that the intelligent household equipment is executing the action corresponding to the second control function based on the control instruction.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 5, the electronic device mainly includes: a processor 501, a memory 502 and a communication bus 503, wherein the processor 501 and the memory 502 communicate with each other through the communication bus 503. The memory 502 stores a program executable by the processor 501, and the processor 501 executes the program stored in the memory 502, so as to implement the following steps:
acquiring an operation event aiming at any control function of the plug-in, wherein the control function is used for controlling the intelligent household equipment communicated with the plug-in to execute a preset action;
inserting the operation events into the tail of the event queue, taking out each event in the event queue one by one, and executing the following steps for each event:
and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
The communication bus 503 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 503 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The Memory 502 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the aforementioned processor 501.
The Processor 501 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In still another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the apparatus control method described in the above-described embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions according to the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An apparatus control method characterized by comprising:
acquiring an operation event aiming at any control function of a plug-in, wherein the control function is used for controlling intelligent household equipment communicating with the plug-in to execute a preset action;
inserting the operation events into the tail of an event queue, taking out each event in the event queue one by one, and executing the following steps for each event:
and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
2. The method according to claim 1, wherein before controlling the smart home device to execute the control instruction, the method further comprises:
determining a first control function in the plug-in, wherein the first control function has a mutual exclusion relationship with the control function;
and when the fact that the intelligent household equipment is executing the target action corresponding to the first control function is determined, controlling the intelligent household equipment to stop executing the target action.
3. The method according to claim 2, wherein determining that the smart home device is performing the target action corresponding to the first control function comprises:
acquiring a state parameter indicating the current state of the first control function and an operation parameter related to the intelligent home equipment from a display interface displaying the first control function, wherein the state parameter is used for indicating that the plug-in is operating the first control function or is not operating the first control function, and the operation parameter is used for indicating that the intelligent home equipment is executing an action or is not executing an action;
when the action executed by the intelligent home equipment indicated by the operation parameter is consistent with the target action, determining that the intelligent home equipment is executing the target action.
4. The method of claim 1, wherein fetching each event in the event queue one by one comprises:
when the event queue is not an empty queue, taking out each event in the event queue one by one from the head of the event queue.
5. The method of claim 1, wherein generating a control instruction corresponding to the event comprises:
analyzing the event to obtain related parameters used for indicating a preset action corresponding to the event in the event;
and generating a control instruction corresponding to the relevant parameter, and determining the control instruction corresponding to the relevant parameter as the control instruction corresponding to the event.
6. The method of claim 1, wherein updating the page of the plug-in based on the event and the control instruction comprises:
determining a second control function corresponding to the event;
updating the state parameters and the operation parameters on a display interface for displaying the second control function, so that the updated state parameters indicate that the plug-in is operating the second control function, and the operation parameters indicate that the smart home equipment is executing the action corresponding to the second control function based on the control instruction.
7. An appliance control system, comprising:
the method comprises the steps that control equipment and intelligent household equipment with application programs are deployed, and the application programs are loaded with at least one plug-in;
the control device is used for acquiring an operation event aiming at any control function of the plug-in, and the control function is used for controlling the intelligent household equipment which is communicated with the plug-in to execute a preset action; inserting the operation event into the tail of an event queue; taking out each event in the event queue one by one, and executing the following steps for each event: and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
8. An apparatus control device, characterized by comprising:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring an operation event aiming at any control function of a plug-in, and the control function is used for controlling intelligent household equipment which is communicated with the plug-in to execute a preset action;
the execution unit is used for inserting the operation events into the tail of an event queue, taking out each event in the event queue one by one, and executing the following steps on each event:
and generating a control instruction corresponding to the event, controlling the intelligent household equipment to execute the control instruction, and updating the page of the plug-in based on the event and the control instruction.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, which executes the program stored in the memory, implements the device control method according to any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the device control method according to any one of claims 1 to 6.
CN202111070373.2A 2021-09-13 2021-09-13 Device control method, system, apparatus, device and storage medium Pending CN113805490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111070373.2A CN113805490A (en) 2021-09-13 2021-09-13 Device control method, system, apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111070373.2A CN113805490A (en) 2021-09-13 2021-09-13 Device control method, system, apparatus, device and storage medium

Publications (1)

Publication Number Publication Date
CN113805490A true CN113805490A (en) 2021-12-17

Family

ID=78941052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111070373.2A Pending CN113805490A (en) 2021-09-13 2021-09-13 Device control method, system, apparatus, device and storage medium

Country Status (1)

Country Link
CN (1) CN113805490A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708063A (en) * 2022-12-23 2023-09-05 荣耀终端有限公司 Log reporting method, electronic equipment, cloud server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027341A (en) * 2016-06-21 2016-10-12 杭州古北电子科技有限公司 Control method of smart home device
CN110647270A (en) * 2019-08-06 2020-01-03 珠海格力电器股份有限公司 Page switching method and device
CN113330424A (en) * 2019-05-16 2021-08-31 深圳市欢太科技有限公司 Instruction processing method, instruction processing device, electronic device and storage medium
CN113341737A (en) * 2021-05-18 2021-09-03 珠海格力电器股份有限公司 Control method, system, device, equipment and storage medium of intelligent household equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027341A (en) * 2016-06-21 2016-10-12 杭州古北电子科技有限公司 Control method of smart home device
CN113330424A (en) * 2019-05-16 2021-08-31 深圳市欢太科技有限公司 Instruction processing method, instruction processing device, electronic device and storage medium
CN110647270A (en) * 2019-08-06 2020-01-03 珠海格力电器股份有限公司 Page switching method and device
CN113341737A (en) * 2021-05-18 2021-09-03 珠海格力电器股份有限公司 Control method, system, device, equipment and storage medium of intelligent household equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708063A (en) * 2022-12-23 2023-09-05 荣耀终端有限公司 Log reporting method, electronic equipment, cloud server and storage medium
CN116708063B (en) * 2022-12-23 2024-06-11 荣耀终端有限公司 Log reporting method, electronic equipment, cloud server and storage medium

Similar Documents

Publication Publication Date Title
EP3073632B1 (en) Trace-data recording system, trace-data recording server, trace-data recording method, program, and information storage medium
CN107390983B (en) Service instruction execution method, client and storage medium
CN109995805B (en) Intelligent robot management method, terminal device and medium
CN102984209B (en) A kind of distribution method of application program and terminal thereof
CN109542744A (en) Detect method, apparatus, storage medium and the terminal of terminal booting abnormal problem
CN109491736B (en) Display method and device of pop-up frame window
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
CN110262904B (en) Data acquisition method and device
CN109240098B (en) Equipment configuration method and device, terminal equipment and storage medium
CN111488088A (en) Equipment state identification method and device and intelligent terminal
CN115392332A (en) AI model deployment method, system and storage medium
CN107632751B (en) Information display method and device
CN113805490A (en) Device control method, system, apparatus, device and storage medium
CN107341007B (en) Display terminal, timing starting method thereof and computer readable storage medium
CN114281204B (en) Method, device, equipment and storage medium for touch recognition of resistive touch screen
US20180011772A1 (en) Peripheral device operation
CN106302821B (en) Data request method and equipment thereof
CN110377210B (en) Security system automatic scene configuration method and device
CN107872727A (en) Media play controlling method, media playing control device and electric terminal
CN114004915A (en) Picture editing method, device, equipment and storage medium
CN114968696A (en) Index monitoring method, electronic equipment and chip system
CN107026971B (en) Control device and control method
CN106155731B (en) System and method for automatically replacing peripheral device
CN113179348B (en) Intelligent device management method, device, equipment and storage medium
KR102413096B1 (en) Electronic device and control method thereof

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211217