Operation instruction response control method and terminal for human-machine interface
Abstract
The present disclosure provides an operation instruction response control method and terminal for a human-machine interface. An operation instruction is compared with an operation instruction at the tail of an operation instruction queue while the human-machine interface is in a busy state, and stored in the operation instruction queue while the operation instruction is inequivalent to the operation instruction at the tail of the operation instruction queue; the operation instruction is stored in the operation instruction queue directly while the human-machine interface is not in the busy state. The present disclosure is capable of keeping receiving operation instructions while the human-machine interface is busy, and filtering out invalid operation instructions to avoid the backlog, which shortens the delay time of the response to the operation instructions.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. An operation instruction response control method for a human-machine interface, comprising:
obtaining a new operation instruction of a user;
determining whether an amount of the operation instruction stored in a pre-established operation instruction queue is greater than or equal to a predetermined threshold;
discarding the new operation instruction if the amount of the operation instruction stored in an operation instruction queue is greater than or equal to the predetermined threshold;
determining whether the amount of the operation instruction stored in an operation instruction queue is greater than a first threshold to determine whether the human-machine interface is in a busy state if the amount of the operation instruction stored in an operation instruction queue is smaller than the predetermined threshold;
determining the human-machine interface to be in the busy state and determining whether the new operation instruction of the user is equivalent to an operation instruction at a tail of the operation instruction queue if the amount of the operation instruction stored in the operation instruction queue is greater than the first threshold, and discarding the new operation instruction and executing the obtaining the new operation instruction of the user if the new operation instruction of the user is equivalent to the operation instruction at the tail of the operation instruction queue; and
storing the new operation instruction in the operation instruction queue to allow for the human-machine interface to call and execute the new operation instruction in the operation instruction queue if the human-machine interface is determined to be not in the busy state when the amount of the operation instruction stored in the operation instruction queue is smaller than or equal to the first threshold or the new operation instruction of the user is inequivalent to the operation instruction at the tail of the operation instruction queue.
2. The method of claim 1 , wherein the obtaining the new operation instruction of the user comprises:
obtaining the new operation instruction of the user through at least one of a touch screen, a keyboard, and a mouse.
3. An operation instruction response control method for a human-machine interface, comprising:
obtaining a new operation instruction of a user;
determining whether an amount of the operation instruction stored in the operation instruction queue is greater than or equal to a third threshold;
discarding the new operation instruction if the amount of the operation instruction stored in an operation instruction queue is greater than or equal to the third threshold; and
determining whether the human-machine interface is in the busy state if the amount of the operation instruction stored in the operation instruction queue is smaller than the third threshold;
determining whether the new operation instruction of the user is equivalent to an operation instruction at a tail of a pre-established operation instruction queue if the human-machine interface is in the busy state;
storing the new operation instruction in the operation instruction queue if the human-machine interface is not in the busy state or the new operation instruction of the user is inequivalent to the operation instruction at the tail of the operation instruction queue; and
discarding the new operation instruction and executing the obtaining the new operation instruction of the user if the new operation instruction of the user is equivalent to the operation instruction at the tail of the operation instruction queue.
4. The method of claim 3 , wherein the determining whether the human-machine interface is in the busy state comprises:
determining the human-machine interface to be in the busy state if the amount of the operation instruction stored in the operation instruction queue is greater than a first threshold.
5. The method of claim 3 , wherein the determining whether the human-machine interface is in the busy state comprises:
determining the human-machine interface to be in the busy state if an average response time of the human-machine interface with respect to operation instructions is greater than a second threshold within a predetermined time before obtaining the new operation instruction of the user.
6. A terminal with a human-machine interface, comprising a non-transitory memory storing a plurality of programs and a processor, wherein the programs when executed by the processor, cause the processor to perform operations, comprising:
obtaining a new operation instruction of a user;
determining whether an amount of the operation instruction stored in the operation instruction queue is greater than or equal to a third threshold;
discarding the new operation instruction if the amount of the operation instruction stored in an operation instruction queue is greater than or equal to the third threshold; and
determining whether the human-machine interface is in the busy state if the amount of the operation instruction stored in the operation instruction queue is smaller than the third threshold;
determining whether the new operation instruction of the user is equivalent to an operation instruction at a tail of a pre-established operation instruction queue if determining the human-machine interface being in the busy state;
storing the new operation instruction in the operation instruction queue if determining the human-machine interface being not in the busy state or determining the new operation instruction of the user being inequivalent to the operation instruction at the tail of the operation instruction queue; and
discarding the new operation instruction and obtaining the new operation instruction of the user if determining the new operation instruction of the user being equivalent to the operation instruction at the tail of the operation instruction queue.
7. The terminal of claim 6 , wherein the operations further comprise determining the human-machine interface to be in the busy state if the amount of the operation instruction stored in the operation instruction queue is greater than a first threshold.
8. The terminal of claim 6 , wherein the operations further comprise determining the human-machine interface to be in the busy state if an average response time of the human-machine interface with respect to operation instructions is greater than a second threshold within a predetermined time before obtaining the new operation instruction of the user.
9. An operation instruction response control device for a human-machine interface comprising an input device, an output device, a processor, and a storage, wherein the processor is configured to:
obtain a new operation instruction of a user;
determine whether an amount of the operation instruction stored in the operation instruction queue is greater than or equal to a third threshold;
discard the new operation instruction if the amount of the operation instruction stored in an operation instruction queue is greater than or equal to the third threshold; and
determine whether the human-machine interface is in the busy state if the amount of the operation instruction stored in the operation instruction queue is smaller than the third threshold;
determine whether the new operation instruction of the user is equivalent to an operation instruction at a tail of a pre-established operation instruction queue if the human-machine interface is in the busy state;
store the new operation instruction in the operation instruction queue if the human-machine interface is not in the busy state or the new operation instruction of the user is inequivalent to the operation instruction at the tail of the operation instruction queue; and
discard the new operation instruction and obtain the new operation instruction of the user if the new operation instruction of the user is equivalent to the operation instruction at the tail of the operation instruction queue.
10. The device of claim 9 , wherein the processor determines the human-machine interface to be in the busy state if the amount of the operation instruction stored in the operation instruction queue is greater than a first threshold.
11. The device of claim 9 , wherein the processor determines the human-machine interface to be in the busy state if an average response time of the human-machine interface with respect to operation instructions is greater than a second threshold within a predetermined time before obtaining the new operation instruction of the user.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.