An instruction sending method, device, intelligent device and storage medium

By cache control instructions in the pre-issuance area of ​​the smart device and determining the target instructions based on the timestamp, the errors in the instruction issuance caused by user quick clicks are solved, and the accuracy of instruction issuance and device performance are improved.

CN114116014BActive Publication Date: 2025-07-04SHENZHEN TCL NEW-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111314407.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2025-07-04
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

In the prior art, users quickly click multiple control operations, resulting in an incorrect order of instruction issuance, resulting in a disordered order of receiving instructions in the home appliance equipment, affecting equipment performance.

Method used

When multiple control instructions are cached in the pre-issuance area of ​​the smart device, it is determined whether there is the same instruction combination, the cache timestamp of each instruction is obtained, the instruction with the latest cache time is determined as the target control instruction, and the instruction is sent when no candidate instruction is detected within the target issuance delay time.

Benefits of technology

It improves the accuracy of issuing instructions, reduces the waste of equipment resources, and improves equipment performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114116014B_ABST
    Figure CN114116014B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method and apparatus for issuing instructions, an intelligent device, and a storage medium. When it is detected that there are multiple control instructions cached in the pre-issuing area, embodiments of the present application can determine whether there is a control instruction group with the same instruction combination among the multiple control instructions; when it is determined that there is a control instruction group with the same instruction combination, obtain the cache timestamps of each control instruction in the control instruction group; determine a target control instruction from the control instruction group according to the cache timestamps; and send the target control instruction to the device to be controlled, so as to control the device to be controlled through the target control instruction. This solves the technical problem in the prior art that incorrect instruction issuance may occur due to a user quickly clicking multiple control operations, and improves the accuracy of instruction issuance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things communication technologies, and particularly to a method and device for issuing instructions, an intelligent device, and a storage medium. Background Art

[0002] The Internet of Things has been widely applied in various fields of society. Various household appliances, such as air conditioners, refrigerators, and washing machines at home, can be controlled through intelligent devices such as mobile phones. The APP in the intelligent device issues control instructions to the household appliances through the Message Queuing Telemetry Transport (MQTT) protocol interface. The household appliances receive the control instructions and execute corresponding functions, and the household appliances report their status to the Internet of Things (IOT) cloud server.

[0003] However, currently, there is no restriction on the interface call for an intelligent device to control a household appliance. That is, every time a user clicks on the intelligent device, corresponding instructions will be issued to the household appliance. In this way, if the user quickly clicks multiple control operations, it will cause the wrong order of instruction issuance, resulting in the wrong order of instruction reception by the household appliance, and thus incorrect instruction execution. This will waste the resources of the household appliance and affect the device performance. Summary of the Invention

[0004] Embodiments of this application provide a method and device for issuing instructions, an intelligent device, and a storage medium, which can solve the technical problem in the prior art that incorrect instruction issuance occurs when a user quickly clicks multiple control operations, and improve the accuracy of instruction issuance.

[0005] To solve the above technical problem, the embodiments of this application provide the following technical solutions:

[0006] Embodiments of this application provide a method for issuing instructions, including: when it is detected that there are multiple control instructions cached in the pre-issuance area, determining whether there is a control instruction group with the same instruction combination among the multiple control instructions;

[0007] When it is determined that there is a control instruction group with the same instruction combination, obtaining the cache timestamp of each control instruction in the control instruction group;

[0008] Determining a target control instruction from the control instruction group according to the cache timestamp;

[0009] Sending the target control instruction to the device to be controlled to control the device to be controlled through the target control instruction.

[0010] In an embodiment, the determining a target control instruction from the control instruction group according to the cache timestamp includes:

[0011] Compare the chronological order of caching for each control instruction in the control instruction group according to the cached timestamp;

[0012] Determine the control instruction with the latest cached timestamp as the target control instruction.

[0013] In one embodiment, the sending the target control instruction to the device to be controlled includes:

[0014] Detect whether a candidate control instruction matching the instruction combination is cached in the pre - sending area within the target sending delay duration;

[0015] If it is not detected that a candidate control instruction matching the instruction combination is cached in the pre - sending area within the target sending delay duration, then send the target control instruction to the device to be controlled.

[0016] In one embodiment, after detecting whether a candidate control instruction matching the instruction combination is cached in the pre - sending area within the target sending delay duration, it includes:

[0017] If it is detected that a candidate control instruction matching the instruction combination is cached in the pre - sending area within the target sending delay duration, then delete the target control instruction;

[0018] Send the candidate control instruction to the device to be controlled to control the device to be controlled through the candidate control instruction.

[0019] In one embodiment, before the step of if it is not detected that a candidate control instruction matching the instruction combination is cached in the pre - sending area within the target sending delay duration, then send the target control instruction to the device to be controlled, it includes:

[0020] Obtain the type of the instruction combination;

[0021] Determine the target sending delay duration corresponding to the control instruction group in the instruction combination according to the type of the instruction combination.

[0022] In one embodiment, after determining the target control instruction from the control instruction group according to the cached timestamp, it includes:

[0023] Delete other control instructions in the control instruction group except the target control instruction.

[0024] In one embodiment, the step of determining whether there are control instruction groups with the same instruction combination among the multiple control instructions includes:

[0025] Obtain the identifier corresponding to each control instruction in the pre - sending area;

[0026] Determine whether there is a control instruction group with the same instruction combination among the multiple control instructions according to the identifier, wherein the identifiers of the control instructions in the same instruction combination match.

[0027] In an embodiment, before determining whether there is a control instruction group with the same instruction combination among the multiple control instructions when it is detected that there are multiple control instructions cached in the pre-distribution area, the method further includes:

[0028] Receive a control instruction for the device to be controlled, and store the control instruction in the pre-distribution area.

[0029] An embodiment of the present application further provides an instruction distribution device, including: a judgment module, configured to determine whether there is a control instruction group with the same instruction combination among the multiple control instructions when it is detected that there are multiple control instructions cached in the pre-distribution area;

[0030] An acquisition module, configured to acquire the cache timestamp of each control instruction in the control instruction group when it is determined that there is a control instruction group with the same instruction combination;

[0031] A determination module, configured to determine a target control instruction from the control instruction group according to the cache timestamp;

[0032] A sending module, configured to send the target control instruction to the device to be controlled to control the device to be controlled through the target control instruction.

[0033] An embodiment of the present application further provides an intelligent device, where the intelligent device includes a processor and a memory, and a computer program is stored in the memory. When the processor calls the computer program in the memory, it executes any one of the instruction distribution methods provided by the embodiments of the present application.

[0034] An embodiment of the present application further provides a storage medium, which is used to store a computer program, and the computer program is loaded by a processor to execute any one of the instruction distribution methods provided by the embodiments of the present application.

[0035] The instruction distribution method, device, intelligent device, and storage medium provided by the embodiments of the present application can control the intelligent device to determine whether there is a control instruction with the same instruction combination among the multiple control instructions when it is detected that there are multiple control instructions cached in the pre-distribution area; when it is determined that there is a control instruction with the same instruction combination, obtain the cache time of each control instruction in the same instruction combination; determine the target control instruction according to the cache time and send the target control instruction. In this way, the instructions triggered by the user can be cached in the pre-distribution area, and when the user quickly operates multiple instructions of the same combination, the last cached control instruction is sent, thereby improving the accuracy of instruction distribution. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0037] Figure 1 It is a flowchart of a data distribution method provided by an embodiment of the present application;

[0038] Figure 2 It is another flowchart of a data distribution method provided by an embodiment of the present application;

[0039] Figure 3 It is another flowchart of a data distribution method provided by an embodiment of the present application;

[0040] Figure 4 It is another flowchart of a data distribution method provided by an embodiment of the present application;

[0041] Figure 5 It is another flowchart of a data distribution method provided by an embodiment of the present application;

[0042] Figure 6 It is a structural diagram of a data distribution device provided by an embodiment of the present application;

[0043] Figure 7 It is a structural diagram of an intelligent device involved in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.

[0045] An embodiment of the present application provides a data distribution method, apparatus, intelligent device, and storage medium (i.e., computer-readable storage medium). Among them, the data distribution method is applied to a data distribution apparatus, which can be specifically integrated in intelligent devices such as mobile phones and smart home appliances. The intelligent device can communicate with a server, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms, but is not limited thereto. The server and the intelligent device can be directly or indirectly connected through wired or wireless communication methods, and the present application does not limit this here.

[0046] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments.

[0047] In this embodiment, it will be described from the perspective of the intelligent device. Please refer to Figure 1 , Figure 1 which is a schematic flowchart of the data distribution method provided by an embodiment of the present application. The data distribution method may include:

[0048] S10. When it is detected that there are multiple control instructions cached in the pre-distribution area, determine whether there is a control instruction group with the same instruction combination among the multiple control instructions.

[0049] Optionally, before step S10, it further includes:

[0050] Receive a control instruction for a device to be controlled, and store the control instruction in the pre-distribution area.

[0051] The execution subject of the data distribution method can be an intelligent device, which can be a mobile phone or a smart home appliance device. The smart home appliance device can include a television, an air conditioner, a washing machine, etc. The control instruction can be triggered by a button on the intelligent device by the user, or triggered by voice information. When the intelligent device receives a control instruction issued by the user for the device to be controlled, the control instruction is stored in the pre-distribution area. The pre-distribution area refers to a buffer for distributing control instructions, which is used to temporarily cache the control instructions received or generated by the intelligent device in the pre-distribution area, and process the control instructions cached in the pre-distribution area before sending them to the device to be controlled.

[0052] In this embodiment, when a user quickly operates an intelligent device, in order to reduce the execution of incorrect instructions issued by the user and avoid incorrect instruction issuance by the intelligent device, a pre-issuance area for control instructions can be set in the intelligent device to temporarily cache the control instructions received or generated by the intelligent device in the pre-issuance area, and process the control instructions cached in the pre-issuance area before sending them to the device to be controlled, thereby improving the accuracy of instruction issuance and reducing the error rate of instruction execution.

[0053] The control instruction group of the same instruction combination may include at least two control instructions, and the functions corresponding to each control instruction in the control instruction group may be the same or different. It can be understood that when a user performs relevant operations on an intelligent device, if the network condition is poor and the server response is slow, the user may issue the same control operation at a high frequency within a short period of time, causing the intelligent device to receive the same control instruction multiple times within a short period of time. Or the user originally intended to issue operation A, but accidentally triggered operation B with the opposite function, and then quickly triggered operation A. At this time, the user will issue two opposite or similar instructions within a short period of time. This will cause the intelligent device to receive multiple meaningless instructions. If all of them are to be issued, it will result in a large concurrency of issued interface calls, consume a lot of server resources, and affect the performance of the intelligent device. Therefore, in this embodiment, the same control instructions or control instructions with conflicting functions can be classified as a control instruction group within the same instruction combination. When the intelligent device receives control instructions within the same instruction combination simultaneously or within a short period of time, it can be issued only once to avoid repeated or incorrect issuance of control instructions. For example, the two control instructions of cooling and heating of an air conditioner can be used as a control instruction group of the same instruction combination. When the intelligent device receives the control instructions of cooling and heating simultaneously or within a short period of time, after processing the two control instructions, one of the control instructions is issued.

[0054] S20. When it is determined that there is a control instruction group of the same instruction combination, obtain the cache timestamp of each control instruction in the control instruction group.

[0055] Optionally, when the intelligent device caches a control instruction in the pre-issuance area, it will cache the cache timestamp of the control instruction together.

[0056] When it is determined that there is a control instruction group of the same instruction combination in the pre-issuance area, it means that the control instruction group of the same instruction combination has been received multiple times in the pre-issuance area within a short period of time. Therefore, meaningless control instructions need to be eliminated. In this embodiment, the sequence of the cache times of each control instruction in the control instruction group is judged according to the cache timestamp of each control instruction in the control instruction group, so as to process the control instruction group.

[0057] S30. Determine the target control instruction from the control instruction group according to the cache timestamp.

[0058] Optionally, comparing the time sequence of each control instruction cache in the control instruction group according to the cache timestamp;

[0059] The control instruction with the latest cache time stamp is determined as the target control instruction.

[0060] It is understandable that when a user triggers the control instruction of the same instruction combination multiple times, the last one triggered is generally the instruction that the user really needs. Therefore, the control instruction groups of the same instruction combination in the pre-issuing area can be compared according to the cache timestamps, and the control instruction with the latest cache timestamp is determined as the target control instruction.

[0061] S40: Send the target control instruction to the device to be controlled, so as to control the device to be controlled through the target control instruction.

[0062] The device to be controlled may be a smart home appliance such as a television, an air conditioner, and a washing machine. In this embodiment, if the smart device is a mobile phone and the device to be controlled is an air conditioner, the mobile phone may send the target control instruction from the pre-issuing area in the mobile phone to the air conditioner to control the air conditioner through the target control instruction. If both the smart device and the control device are air conditioners, the air conditioner sends the target control instruction from the pre-issuing area in the air conditioner to the controller of the air conditioner to control the air conditioner to perform corresponding operations through the target control instruction.

[0063] In the technical solution provided in this embodiment, when it is detected that multiple control instructions are cached in the pre-issuing area, it is determined whether there is a control instruction group with the same instruction combination among the multiple control instructions; when it is determined that there is a control instruction group with the same instruction combination, the cache timestamp of each control instruction in the control instruction group is obtained. The target control instruction is determined from the control instruction group according to the cache timestamp. The target control instruction is sent to the device to be controlled to control the device to be controlled through the target control instruction. In this way, the instructions triggered by the user can be cached in the pre-issuing area, and when the user quickly operates multiple control instruction groups with the same instruction combination, only the control instruction cached last in the control instruction group is issued, thereby reducing the concurrency of the issuing interface and improving the accuracy of instruction issuance.

[0064] See also Figure 2 , Figure 2 FIG. 4 is a flow chart of a data sending method provided in an embodiment of the present application. Based on the above embodiment, step S40 may include:

[0065] S41 , detecting whether a candidate control instruction matching the instruction combination is cached in a pre-issuance area within the target issuance delay time.

[0066] The target issuing delay duration can be preset. For example, it can be 500 ms. The candidate control instruction refers to the control instruction whose cached timestamp is after the cached timestamp of the target control instruction, and the candidate control instruction and the target control instruction are the same instruction combination.

[0067] It can be understood that after the intelligent device determines the target control instruction, if it is directly issued, it will cause that if the intelligent device continuously detects and determines the target control instruction multiple times in a short period of time, frequently issuing the target control instruction will result in frequently issuing meaningless instructions, thereby causing a large concurrency of the instruction issuing interface and affecting the performance of the intelligent device. Therefore, in order to improve the accuracy rate of the target control instruction, in this embodiment, after determining the target control instruction, it is detected whether a candidate instruction matching the instruction combination is cached in the pre-issuing area within the target issuing delay duration.

[0068] S42. If it is not detected that within the target issuing delay duration, a candidate control instruction matching the instruction combination is cached in the pre-issuing area, then the target control instruction is sent to the device to be controlled.

[0069] It should be noted that if it is not detected that within the target issuing delay duration, a candidate control instruction matching the instruction combination is cached in the pre-issuing area, it means that the user does not continue to issue a candidate control instruction with the same or opposite function to the target control instruction in a short period of time after finally issuing the target control instruction. That is to say, the content corresponding to the target control instruction is the content that the user really wants to operate. At this time, the target control instruction is sent to the device to be controlled.

[0070] Optionally, if it is detected that within the target issuing delay duration, a candidate control instruction matching the instruction combination is cached in the pre-issuing area, then the target control instruction is deleted;

[0071] The candidate control instruction is sent to the device to be controlled to control the device to be controlled through the candidate control instruction.

[0072] If it is detected that a candidate control instruction matching the instruction combination is cached in the pre-issuing area within the target issuing delay duration, it means that after the user issues the target control instruction, a candidate control instruction with the same or opposite function to the target control instruction is continued to be issued in a short period of time. That is to say, the content corresponding to the target control instruction is still not the content that the user really wants to operate. At this time, the target control instruction is deleted, and the candidate control instruction is sent to the device to be controlled to control the device to be controlled through the candidate control instruction.

[0073] Optionally, in one embodiment, step S30 includes:

[0074] Judging the difference between the cached timestamps of each control instruction in the control instruction group;

[0075] Execute the determination of the target control instruction from the control instruction group according to the cached timestamp when the difference is less than the preset duration.

[0076] Detect whether there are multiple control instructions cached within the target delivery delay duration.

[0077] In the technical solution provided in this embodiment, the intelligent device detects whether candidate control instructions matching the instruction combination are cached in the pre-delivery area within the target delivery delay duration; if it is not detected that candidate control instructions matching the instruction combination are cached in the pre-delivery area within the target delivery delay duration, the target control instruction is sent to the device to be controlled. In this way, the intelligent device does not receive candidate control instructions of the same instruction combination as the target control instruction within the target delivery delay duration after determining the target control instruction, that is to say, the target control instruction finally triggered by the user is the content that the user wants to operate. At this time, the target control instruction is sent to the device to be controlled, thereby improving the accuracy of instruction delivery.

[0078] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of the data delivery method provided in an embodiment of the present application. Based on the above embodiment, before step S41, it may include:

[0079] S43. Obtain the type of the instruction combination;

[0080] S44. Determine the target delivery delay duration corresponding to the control instruction group in the instruction combination according to the type of the instruction combination.

[0081] It should be noted that when the mobile phone sends control instructions for increasing and decreasing the temperature to the air conditioner, the user generally sends control instructions for increasing or decreasing the temperature multiple times within a short period of time. At this time, there may be a situation of pressing the wrong button multiple times. Therefore, when caching the control instruction for increasing or decreasing the temperature triggered by the user in the pre-delivery area, the target delay duration corresponding to the instruction combination matching the control instructions for increasing and decreasing the temperature can be set longer, so as to avoid sending incorrect control instructions and improve the accuracy of instruction delivery. When the mobile phone sends control instructions for turning on and off the air conditioner to the air conditioner, the user generally does not send them multiple times within a short period of time. Therefore, when caching the control instruction for turning on and off the air conditioner triggered by the user in the pre-delivery area, the target delay duration corresponding to the instruction combination matching the control instruction for turning on and off the air conditioner can be set shorter, so as to send the control instruction as soon as possible and improve the instruction delivery efficiency.

[0082] In the technical solution provided in this embodiment, obtain the type of the instruction combination; determine the target delivery delay duration corresponding to the control instruction group in the instruction combination according to the type of the instruction combination. In this way, the target delivery delay duration corresponding to different types of instruction combinations is set according to actual needs, thereby improving the instruction delivery efficiency.

[0083] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of a data distribution method provided by an embodiment of the present application. Based on the above embodiment, after step S30, the following steps may further be included:

[0084] S31. Delete other control instructions in the control instruction group except the target control instruction.

[0085] Optionally, compare the chronological order of caching of each control instruction in the control instruction group according to the cache timestamp;

[0086] Determine the control instruction with the latest cache timestamp as the target control instruction.

[0087] It can be understood that when the user triggers the control instructions of the same instruction combination multiple times, generally the last triggered one is the instruction that the user really needs. Therefore, the control instruction groups of the same instruction combination in the pre-distribution area can be compared according to the cache timestamp, and the control instruction with the latest cache timestamp is determined as the target control instruction.

[0088] In this embodiment, in order to avoid wasting the cache support of the pre-distribution area, after determining the target control instruction in the control instruction group of the same instruction combination, only the target control instruction in the control instruction group is retained, and other control instructions in the control instruction group except the target control instruction are deleted to improve the cache effect of the pre-distribution area. Then only the target control instruction is distributed, so that the concurrency of the instruction distribution interface can be reduced and the instruction distribution efficiency can be improved.

[0089] Please refer to Figure 5 , Figure 5 which is another schematic flowchart of a data distribution method provided by an embodiment of the present application. Based on the above embodiment, step S10 may include:

[0090] S11. Obtain the identifier corresponding to each control instruction in the pre-distribution area;

[0091] Optionally, in an embodiment, each control instruction in the pre-distribution area is set with a unique identifier, which may include an instruction combination type field, an instruction combination field, a control instruction field, etc. For example, the identifier of the refrigeration control instruction is AF11, where "A" represents the type of the instruction combination matched by the refrigeration control instruction, "F" represents the instruction combination matched by the refrigeration control instruction, and "11" represents the refrigeration control instruction. Optionally, in an embodiment, the identifiers corresponding to the control instructions in the same instruction combination are the same. When the intelligent device detects that there are multiple control instructions cached in the pre-distribution area, obtain the identifier corresponding to each control instruction in the pre-distribution area, so as to identify the instruction combination matched by each control instruction.

[0092] S12. Determine whether there is a control instruction group with the same instruction combination among multiple control instructions according to the identifiers, where the identifiers of the control instructions in the same instruction combination match.

[0093] Optionally, if the identifier of each control instruction is unique, when it is detected that there is a control instruction group in the pre-distribution area where the types and fields representing the instruction combination in the identifiers are the same, determine that this control instruction group is the same instruction combination.

[0094] If the identifiers corresponding to the control instructions in the same instruction combination are the same, when it is detected that there is a control instruction group with exactly the same identifiers in the pre-distribution area, determine that this instruction group is the same instruction combination.

[0095] In the technical solution provided in this embodiment, the intelligent device obtains the identifier corresponding to each control instruction in the pre-distribution area; determines whether there is a control instruction group with the same instruction combination among multiple control instructions according to the identifiers; when it is determined that there is the same control instruction group, process this control instruction group. The processing process is as in the above embodiment and will not be elaborated here. In this way, according to the identifier of the control instruction, it can be quickly determined whether there is a control instruction group with the same instruction combination in the pre-distribution area, improving the efficiency of instruction recognition and further improving the instruction distribution efficiency.

[0096] To facilitate better implementation of the data distribution method provided in the embodiments of the present application, the embodiments of the present application also provide a device based on the above data distribution method. The meanings of the nouns are the same as those in the above data distribution method, and the specific implementation details can refer to the description in the method embodiments.

[0097] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of the data distribution device provided in the embodiments of the present application. The data distribution device 300 may include a judgment module 301, an acquisition module 302, a determination module 303, a sending module 304, etc.

[0098] Among them, the judgment module 301 is used to judge whether there is a control instruction group with the same instruction combination among multiple control instructions when it is detected that there are multiple control instructions cached in the pre-distribution area;

[0099] The acquisition module 302 is used to acquire the cache timestamp of each control instruction in the control instruction group when it is determined that there is a control instruction group with the same instruction combination;

[0100] The determination module 303 is used to determine the target control instruction from the control instruction group according to the cache timestamp;

[0101] The sending module 304 is used to send the target control instruction to the device to be controlled to control the device to be controlled through the target control instruction.

[0102] Optionally, the data distribution device may further include the following modules not shown in the figure:

[0103] A comparison module, configured to compare the chronological order of caching of each control instruction in the control instruction group according to the cache timestamp;

[0104] A first determination module, configured to determine the control instruction with the latest cache timestamp as the target control instruction.

[0105] A detection module, configured to detect whether a candidate control instruction matching the instruction combination is cached in the pre-distribution area within the target distribution delay duration;

[0106] A first sending module, configured to send the target control instruction to the device to be controlled if it is detected that no candidate control instruction matching the instruction combination is cached in the pre-distribution area within the target distribution delay duration.

[0107] A first deletion module, configured to delete the target control instruction if it is detected that a candidate control instruction matching the instruction combination is cached in the pre-distribution area within the target distribution delay duration;

[0108] A second sending module, configured to send the candidate control instruction to the device to be controlled to control the device to be controlled through the candidate control instruction.

[0109] A first acquisition module, configured to acquire the type of the instruction combination;

[0110] A second determination module, configured to determine the target distribution delay duration corresponding to the control instruction group in the instruction combination according to the type of the instruction combination.

[0111] A third determination module, configured to determine the target control instruction from the control instruction group according to the cache timestamp;

[0112] A second deletion module, configured to delete other control instructions in the control instruction group except the target control instruction.

[0113] A second acquisition module, configured to acquire the identifier corresponding to each control instruction in the pre-distribution area;

[0114] A judgment module, configured to judge whether there is a control instruction group with the same instruction combination among multiple control instructions according to the identifier, wherein the identifiers of the control instructions in the same instruction combination match.

[0115] A receiving module, configured to receive a control instruction for the device to be controlled and store the control instruction in the pre-distribution area.

[0116] The embodiment of the present application further provides an intelligent device, which may be a terminal such as a mobile phone, e.g., Figure 7As shown, it shows a schematic structural diagram of the intelligent device involved in the embodiments of the present application. Specifically:

[0117] The intelligent device may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, an input unit 404, and other components. Those skilled in the art can understand that Figure 7 the structural diagram of the intelligent device shown in does not constitute a limitation on the intelligent device. It may include more or fewer components than shown, or combine certain components, or have different component arrangements. Among them:

[0118] The processor 401 is the control center of the intelligent device, connecting various parts of the entire intelligent device through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 402, and calling the data stored in the memory 402, it executes various functions of the intelligent device and processes data, thereby monitoring the intelligent device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 401.

[0119] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, image playback function, etc.); the data storage area can store the data created according to the use of the intelligent device. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0120] The intelligent device also includes a power supply 403 that powers each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby realizing functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 403 may also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0121] The intelligent device may further include an input unit 404, which may be configured to receive input digital or character information for controlling the device, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0122] Although not shown, the intelligent device may further include a display unit, etc., which will not be elaborated here. Specifically, in this embodiment, the processor 401 in the intelligent device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402 to implement various functions as follows:

[0123] When it is detected that there are multiple control instructions cached in the pre-distribution area, determine whether there is a control instruction group with the same instruction combination among the multiple control instructions;

[0124] When it is determined that there is a control instruction group with the same instruction combination, obtain the cache timestamps of each control instruction in the control instruction group;

[0125] Determine the target control instruction from the control instruction group according to the cache timestamps;

[0126] Send the target control instruction to the device to be controlled to control the device to be controlled through the target control instruction.

[0127] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For the parts not elaborated in a certain embodiment, reference may be made to the detailed description of the instruction distribution method above, which will not be elaborated here.

[0128] According to one aspect of the present application, there is provided a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the intelligent device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the intelligent device executes the methods provided in various optional implementation manners in the above embodiments.

[0129] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by computer instructions, or by computer instructions controlling related hardware. The computer instructions can be stored in a storage medium and loaded and executed by a processor, and the storage medium is a computer-readable storage medium. To this end, the embodiments of the present application provide a storage medium, in which a computer program is stored. The computer program may include computer instructions, and the computer program can be loaded by a processor to execute any instruction distribution method provided by the embodiments of the present application.

[0130] For the specific implementation of each of the above operations, reference may be made to the previous embodiments and will not be elaborated herein.

[0131] Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

[0132] Since the computer instructions stored in the storage medium can execute any of the instruction distribution methods provided in the embodiments of the present application, the beneficial effects achievable by any of the instruction distribution methods provided in the embodiments of the present application can be realized. For details, refer to the previous embodiments and will not be elaborated herein.

[0133] The above has introduced in detail an instruction distribution method, device, intelligent device and storage medium provided by the embodiments of the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A method for issuing instructions, characterized in that, The described instruction issuing method includes: When it is detected that there are multiple control instructions cached in the pre-issuing area, determine whether there is a control instruction group with the same instruction combination among the multiple control instructions, where the same control instructions or the control instructions with conflicting functions are classified as a control instruction group within the same instruction combination; When it is determined that there is a control instruction group with the same instruction combination, obtain the cache timestamp of each control instruction in the control instruction group; Determine the target control instruction from the control instruction group according to the cache timestamp; Send the target control instruction to the device to be controlled to control the device to be controlled through the target control instruction; The determining the target control instruction from the control instruction group according to the cache timestamp includes: According to the cache timestamp, compare the time sequence of caching of each control instruction in the control instruction group; Determine the control instruction with the latest cache timestamp as the target control instruction.

2. The instruction issuing method according to claim 1, wherein The sending the target control instruction to the device to be controlled includes: Detect whether a candidate control instruction matching the instruction combination is cached in the pre-issuing area within the target issuing delay duration; If it is not detected that a candidate control instruction matching the instruction combination is cached in the pre-issuing area within the target issuing delay duration, send the target control instruction to the device to be controlled.

3. The instruction issuing method according to claim 2, wherein After the detecting whether a candidate control instruction matching the instruction combination is cached in the pre-issuing area within the target issuing delay duration, it includes: If it is detected that a candidate control instruction matching the instruction combination is cached in the pre-issuing area within the target issuing delay duration, delete the target control instruction; Send the candidate control instruction to the device to be controlled to control the device to be controlled through the candidate control instruction.

4. The instruction issuing method according to claim 2, wherein Before the detecting whether a candidate control instruction matching the instruction combination is cached in the pre-issuing area within the target issuing delay duration, it includes: Obtain the type of the instruction combination; According to the type of the instruction combination, determine the target issuing delay duration corresponding to the control instruction group in the instruction combination.

5. The instruction issuing method according to claim 1, wherein After the determining the target control instruction from the control instruction group according to the cache timestamp, the method further includes: Delete other control instructions in the control instruction group except the target control instruction.

6. The instruction issuing method according to claim 1, wherein The judging whether there is a control instruction group with the same instruction combination among the multiple control instructions includes: Obtain the identifier corresponding to each control instruction in the pre-issuing area; Judge whether there is a control instruction group with the same instruction combination among the multiple control instructions according to the identifier, where the identifiers of the control instructions in the same instruction combination match.

7. The instruction issuing method according to claim 1, characterized in that Before the when it is detected that there are multiple control instructions cached in the pre-issuing area, judging whether there is a control instruction group with the same instruction combination among the multiple control instructions, the method further includes: Receive a control instruction for the device to be controlled and store the control instruction in the pre-issuing area.

8. An instruction issuing device, characterized in that, Includes: A judgment module, configured to, when it is detected that there are multiple control instructions cached in the pre-distribution area, judge whether there is a control instruction group with the same instruction combination among the multiple control instructions, wherein the same control instructions or the control instructions with conflicting functions are classified as a control instruction group within the same instruction combination; An acquisition module, configured to, when it is determined that there is a control instruction group with the same instruction combination, acquire the cache timestamps of each control instruction in the control instruction group; A determination module, configured to determine a target control instruction from the control instruction group according to the cache timestamp, wherein determining the target control instruction from the control instruction group according to the cache timestamp includes: comparing the time sequence of caching of each control instruction in the control instruction group according to the cache timestamp; determining the control instruction with the latest cache timestamp as the target control instruction; A sending module, configured to send the target control instruction to a device to be controlled, so as to control the device to be controlled through the target control instruction.

9. An intelligent device, characterized in that, It includes a processor and a memory, and a computer program is stored in the memory. When the processor calls the computer program in the memory, it executes the instruction distribution method according to any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the instruction distribution method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cache line purge and update instruction

    US20030140199A1

  • Apparatus and method for scheduling commands from host systems

    US20090165008A1