Instruction conflict control method and device, storage medium and electronic equipment

By detecting and judging the conflicts of multi-terminal control instructions and calculating priority selection and execution instructions, the problem of instruction conflicts in multi-terminal control scenarios is solved, and the flexibility and stability of device control are improved.

CN119718423APending Publication Date: 2025-03-28GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411840244.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In multi-end control scenarios, when the same device receives multiple control instructions, it may lead to command conflicts, resulting in invalid control effects or unstable system responses, and the prior art lacks flexibility and efficient solutions.

Method used

By detecting multiple control instructions on the target device, we judge whether there is a conflict, and calculate the priority of each control instruction, and select which instruction to execute according to the priority to resolve the conflict.

Benefits of technology

It effectively solves the problem of equipment abnormalities caused by instruction conflicts, improves the flexibility and stability of equipment control, and can dynamically deal with complex interactive scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718423A_ABST
    Figure CN119718423A_ABST
Patent Text Reader

Abstract

The invention provides an instruction conflict control method and device, a storage medium and electronic equipment, and the method comprises the steps: detecting a first control instruction of a first control end for target equipment, and detecting a second control instruction of a second control end for the target equipment; judging whether a conflict exists between the first control instruction and the second control instruction or not; if the first control instruction conflicts with the second control instruction, calculating a first priority of the first control instruction, and calculating a second priority of the second control instruction; and selecting to execute the first control instruction or the second control instruction on the target equipment according to the first priority and the second priority. The technical problem of equipment abnormity caused by instruction conflict in related technologies is solved, and the flexibility of equipment control is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method for controlling instruction conflicts, a device storage medium, and an electronic device. Background Art

[0002] In the related art, with the widespread application and multi-terminal control of smart devices, users can interact and control information through multiple control terminals and display screens. However, when the same device receives control commands at the same time, command conflicts may occur, resulting in failure of control effects or unstable system response. In order to solve this problem, the related art mainly relies on the time sequence of command sending or manual intervention for processing, but these methods lack flexibility. When commands conflict, it may cause the device to freeze or even malfunction, and it is even more impossible to dynamically respond to complex interactive scenarios.

[0003] With respect to the above-mentioned problems existing in the related technologies, no efficient and accurate solutions have been found yet. Summary of the invention

[0004] The present invention provides a control method for command conflicts, a device storage medium, and an electronic device to solve the technical problems in related technologies.

[0005] According to one embodiment of the present invention, a method for controlling instruction conflicts is provided, comprising: detecting a first control instruction for a target device from a first control end, and detecting a second control instruction for the target device from a second control end; determining whether there is a conflict between the first control instruction and the second control instruction; if there is a conflict between the first control instruction and the second control instruction, calculating a first priority of the first control instruction and calculating a second priority of the second control instruction; and selecting to execute the first control instruction or the second control instruction on the target device according to the first priority and the second priority.

[0006] Optionally, determining whether there is a conflict between the first control instruction and the second control instruction includes: determining whether the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same; if the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same, determining that there is a conflict between the first control instruction and the second control instruction.

[0007] Optionally, determining whether there is a conflict between the first control instruction and the second control instruction includes: determining whether the target device has the ability to simultaneously operate the first control instruction and the second control instruction; if the target device does not have the ability to simultaneously operate the first control instruction and the second control instruction, determining that there is a conflict between the first control instruction and the second control instruction.

[0008] Optionally, calculating the first priority of the first control instruction based on the first control end includes: reading the first initial priority and partition preference type of the first control end, wherein the target device includes multiple control partitions, each control partition deploys at least one control end, and each control partition corresponds to a partition preference type; dynamically adjusting the first initial priority according to the partition preference type and the first control instruction to obtain the first priority of the first control instruction.

[0009] Optionally, dynamically adjusting the first initial priority according to the partition preference type and the first control instruction includes: parsing the instruction type of the first control instruction; calculating the matching degree between the instruction type and the partition preference type; calculating an offset based on the matching degree, wherein the offset is positively correlated with the matching degree; and adjusting the first initial priority using the offset.

[0010] Optionally, calculating the first priority of the first control instruction according to the first control end includes: parsing the trigger object of the first control instruction, and obtaining the activity of the functional partition corresponding to the first control instruction, wherein the target device includes multiple functional partitions, and each functional partition corresponds to a use of the target device; searching for the object priority of the trigger object in a preset priority library, and generating a partition priority according to the activity, wherein the partition priority is positively correlated with the activity; and calculating the first priority of the first control instruction by weighting the object priority and the partition priority.

[0011] Optionally, obtaining the activity of the functional partition corresponding to the first control instruction includes: parsing the semantic information of the first control instruction; searching for a functional partition matching the semantic information in a preset partition library; reading log records of the functional partition in a log library of the target device; and calculating the activity of the functional partition based on the log records.

[0012] According to another embodiment of the present invention, there is provided a control device for command conflicts, comprising: a detection module for detecting a first control instruction for a target device from a first control end, and detecting a second control instruction for the target device from a second control end; a judgment module for judging whether there is a conflict between the first control instruction and the second control instruction; a calculation module for calculating a first priority of the first control instruction and a second priority of the second control instruction if there is a conflict between the first control instruction and the second control instruction; and an execution module for selecting to execute the first control instruction or the second control instruction on the target device according to the first priority and the second priority.

[0013] Optionally, the judgment module includes: a first judgment unit, used to determine whether the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same; a first determination unit, used to determine that there is a conflict between the first control instruction and the second control instruction if the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same.

[0014] Optionally, the judgment module includes: a second judgment unit, used to judge whether the target device has the ability to simultaneously operate the first control instruction and the second control instruction; a second determination unit, used to determine that there is a conflict between the first control instruction and the second control instruction if the target device does not have the ability to simultaneously operate the first control instruction and the second control instruction.

[0015] Optionally, the calculation module includes: a reading unit, used to read the first initial priority and partition preference type of the first control terminal, wherein the target device includes multiple control partitions, each control partition deploys at least one control terminal, and each control partition corresponds to a partition preference type; an adjustment unit, used to dynamically adjust the first initial priority according to the partition preference type and the first control instruction to obtain the first priority of the first control instruction.

[0016] Optionally, the adjustment unit includes: a parsing subunit, used to parse the instruction type of the first control instruction; a first calculation subunit, used to calculate the matching degree between the instruction type and the partition preference type; a second calculation subunit, used to calculate an offset based on the matching degree, wherein the offset is positively correlated with the matching degree; and an adjustment subunit, used to adjust the first initial priority using the offset.

[0017] Optionally, the calculation module includes: a processing unit, used to parse the trigger object of the first control instruction, and obtain the activity of the functional partition corresponding to the first control instruction, wherein the target device includes multiple functional partitions, and each functional partition corresponds to a use of the target device; a search unit, used to search for the object priority of the trigger object in a preset priority library, and generate a partition priority based on the activity, wherein the partition priority is positively correlated with the activity; a calculation unit, used to weightedly calculate the first priority of the first control instruction using the object priority and the partition priority.

[0018] Optionally, the processing unit includes: a parsing subunit, used to parse the semantic information of the first control instruction; a searching subunit, used to search for a functional partition matching the semantic information in a preset partition library; a reading subunit, used to read the log records of the functional partition in the log library of the target device; and a calculating subunit, used to calculate the activity of the functional partition based on the log records.

[0019] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.

[0020] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.

[0021] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned device embodiments when running.

[0022] Through the embodiments of the present invention, a first control instruction for a target device is detected by a first control end, and a second control instruction for the target device is detected by a second control end; it is determined whether there is a conflict between the first control instruction and the second control instruction; if there is a conflict between the first control instruction and the second control instruction, a first priority of the first control instruction is calculated, and a second priority of the second control instruction is calculated; and the first control instruction or the second control instruction is selected to be executed on the target device according to the first priority and the second priority. By calculating the priorities of two control instructions for the same target device and executing one of the control instructions according to the priority, the technical problem of device abnormality caused by instruction conflicts in the related technology is solved, and the flexibility of device control is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0024] Figure 1 It is a hardware structure block diagram of a display screen according to an embodiment of the present invention;

[0025] Figure 2 is a flow chart of a method for controlling instruction conflicts according to an embodiment of the present invention;

[0026] Figure 3 is a flowchart of instruction execution in an embodiment of the present invention;

[0027] Figure 4 It is a structural block diagram of a control device for command conflicts according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Example 1

[0031] The method embodiment provided in the first embodiment of the present application can be executed in household appliances (such as air conditioners, refrigerators, washing machines), televisions, display screens, controllers or similar equipment management devices. Taking running on a display screen as an example, Figure 1 1 is a hardware structure block diagram of a display screen according to an embodiment of the present invention. Figure 1 As shown, the display screen may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the display screen may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the above display screen. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0032] The memory 104 can be used to store display screen programs, for example, software programs and modules of application software, such as a display screen program corresponding to a control method for instruction conflicts in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the display screen program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the display screen via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0033] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the display screen. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0034] In this embodiment, a method for controlling instruction conflicts is provided. Figure 2 is a flow chart of a method for controlling instruction conflicts according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0035] Step S202, detecting a first control instruction from the first control terminal to the target device, and detecting a second control instruction from the second control terminal to the target device;

[0036] Optionally, the target device may be a display screen, a television, a projection screen, a stereo, an air conditioner, or other device.

[0037] The first control end and the second control end of this embodiment can be the same control end or different control ends, that is, the first control instruction and the second control instruction can be issued by one control end or two control ends, and the first control end or the second control end can be a voice control end, a remote control, a wire controller, a remote control end (such as a mobile phone), or a central control screen.

[0038] Optionally, the first control instruction and the second control instruction may be instructions supported by the target device, such as volume adjustment, content switching, resource loading, software upgrade, system setting, hardware call, etc.

[0039] The target device may detect the first control instruction and the second control instruction simultaneously or successively, or the target device may detect the second control instruction when executing the first control instruction.

[0040] Step S204, determining whether there is a conflict between the first control instruction and the second control instruction;

[0041] Step S206, if there is a conflict between the first control instruction and the second control instruction, calculating a first priority of the first control instruction and calculating a second priority of the second control instruction;

[0042] Step S208: Select to execute the first control instruction or the second control instruction on the target device according to the first priority and the second priority.

[0043] According to the first priority and the second priority, a target control instruction with the highest priority is selected from the first control instruction and the second control instruction, and the target control instruction is executed on the target device.

[0044] In some scenarios, the priority difference between the first priority and the second priority is calculated. If the priority difference is greater than a preset threshold, a target control instruction with the highest priority is selected between the first control instruction and the second control instruction. If the priority difference is less than or equal to the preset threshold, it is further determined that the target control instruction to be executed can be selected by user confirmation or the like, including: determining a backup device of the target device, executing a high-priority control instruction on the target device, and executing a low-priority control instruction on the backup device. Alternatively, the first device resources and the second device resources of the target device are called, and the first device resources and the second device resources are used to simultaneously execute the first control instruction and the second control instruction (high efficiency, suitable for control instructions with lower importance), or the execution speed of the high-priority control instruction is increased (such as increasing the playback speed of audio and video), and the low-priority control instruction is executed after the execution of the high-priority control instruction is completed.

[0045] If the user confirms that the conflict cannot be resolved, the following strategy 1 can also be adopted: remind the user again and refine the options. If the conflict still exists after the user confirms, the system can generate voice feedback again to provide the user with more detailed options. For example, the system can prompt the user "your choice just now may still cause some functions to not work properly. We can temporarily suspend the [operation name] of [partition name], or reduce the [resource usage level] of [partition name]. Please confirm your choice again." In this way, by refining the options for resolving conflicts, users can be guided to make more appropriate decisions. Taking the entertainment area and the conference area competing for audio resources as an example, the user first confirms that the entertainment area should play the video first, but this may cause the audio-related functions of the conference area to not work properly. At this time, the system can prompt the user whether he is willing to suspend the audio reminder function of the conference area, or reduce the volume of the video and audio in the entertainment area to balance the needs of the two areas.

[0046] Strategy 2: Providing alternative suggestions. The system can provide users with some alternatives based on the current conflict situation and system functions. For example, when there is a display resource conflict, the system can suggest to the user, "If you want to use the display functions of two partitions at the same time, we can project the display content of the second control instruction to other auxiliary display devices, or adjust the layout of the display content. Are you willing to try?"

[0047] Strategy three: Introduce a queuing mechanism or delay the execution of some instructions. When there is still a conflict after the user confirms, the system can consider queuing some instructions for execution. For example, for those instructions that are not very urgent (such as some non-critical information updates in the information display area), they can be put into a waiting queue. When resources are released or conflicts are alleviated, these instructions are executed in sequence according to the queue order. For example, if the conference area is playing important audio, and the information display area receives an instruction to update the display content, the system can first put the instructions of the information display area into the queue, and wait until the audio playback of the conference area ends or pauses, and then execute the instructions of the information display area.

[0048] Through the above steps, the first control instruction for the target device of the first control end is detected, and the second control instruction for the target device of the second control end is detected; it is determined whether there is a conflict between the first control instruction and the second control instruction; if there is a conflict between the first control instruction and the second control instruction, the first priority of the first control instruction is calculated, and the second priority of the second control instruction is calculated; according to the first priority and the second priority, the first control instruction or the second control instruction is selected to be executed on the target device. By calculating the priority of two control instructions for the same target device and executing one of the control instructions according to the priority, the technical problem of device abnormality caused by instruction conflict in the related technology is solved, and the flexibility of device control is improved.

[0049] In one implementation of the present embodiment, determining whether there is a conflict between the first control instruction and the second control instruction includes: determining whether the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same; if the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same, determining that there is a conflict between the first control instruction and the second control instruction.

[0050] In this embodiment, when the first control instruction and the second control instruction compete for the same resource, it is determined that there is a conflict. When trying to control the same resource object (which can be a hardware resource or a software resource) at the same time, for example, the first control instruction and the second control instruction simultaneously request to use a unique audio output device (such as a set of speakers) to play different audio content. In this case, the system cannot meet the requirements of the two control instructions at the same time, and it will be determined as a command conflict.

[0051] There is also competition for display resources. For example, if the target device is a shared high-definition display, the first control command wants to play a 4K movie, while the second control command wants to display a low-resolution meeting document. The target device cannot simultaneously meet these two display requirements under the current hardware configuration, which is also a command conflict.

[0052] By adopting the solution of this implementation, whether there is an instruction conflict is determined by judging whether the resource objects controlled by the two control instructions are the same, thereby avoiding the device executing two instructions at the same time and affecting the user experience, and improving the accuracy of instruction conflict identification.

[0053] In another implementation of the present embodiment, determining whether there is a conflict between the first control instruction and the second control instruction includes: determining whether the target device has the ability to simultaneously operate the first control instruction and the second control instruction; if the target device does not have the ability to simultaneously operate the first control instruction and the second control instruction, determining that there is a conflict between the first control instruction and the second control instruction.

[0054] In some scenarios, even if the first control instruction and the second control instruction request to control different resource objects, conflicts may occur in certain scenarios.

[0055] In one example, determining whether the target device has the ability to simultaneously operate the first control instruction and the second control instruction includes: parsing the first control range and the second control range requested by the first control instruction and the second control instruction, determining whether the first control range and the second control range are allowed to intersect, if the first control range and the second control range are not allowed to intersect, then the target device does not have the ability to simultaneously operate the first control instruction and the second control instruction. For example, the control ranges requested by the two control instructions are function 1 and function 2, respectively, and function 1 and function 2 are not allowed to be executed at the same time, then the instructions conflict. In another example, determining whether the target device has the ability to simultaneously operate the first control instruction and the second control instruction includes: parsing the first device resources and the second device resources occupied by the first control instruction and the second control instruction request, determining whether the sum of the first device resources and the second device resources exceeds the resource pool capacity of the target device, if the sum of the first device resources and the second device resources exceeds the resource pool capacity of the target device, then the target device does not have the ability to simultaneously operate the first control instruction and the second control instruction. For example, the memory requested by the two control instructions is 1G and 2G, respectively, and the total memory of the target device is 2.5G, then the instructions conflict.

[0056] In one example, when the target device is switching programs, and this switching process requires exclusive control of the system over the device (perhaps because switching programs involves complex resource reconfiguration, such as loading a new video stream, updating a decoder, etc.), if an instruction to adjust the volume is received at this time, the operations cannot be performed simultaneously, resulting in a conflict.

[0057] In another example, if the target device requires that other operations cannot be performed simultaneously when performing certain key operations (such as system updating software applications), then any other operation instructions received during this update process, such as switching programs or adjusting the volume, cannot be performed simultaneously and will be judged as conflicts.

[0058] Detecting multiple instructions at the same time is not necessarily a conflict. It is only when the execution of multiple instructions will cause resource competition or fail to comply with the system's pre-set operating rules that it will be judged as a conflict. For example, if the instructions "Play Movie A" and "Play Movie B" are received at the same time, this is a command conflict because the system cannot play two different movies at the same time. However, if the instructions "Play Movie A" and "Turn on subtitles for Movie A" are received at the same time, this is not considered a conflict because these two operations can work together to achieve a better playback experience for Movie A, and the system can execute these two control instructions simultaneously or sequentially as reasonably possible.

[0059] By adopting the solution of this embodiment, whether there is an instruction conflict is determined by judging whether the target device has the ability to operate the first control instruction and the second control instruction at the same time, thereby avoiding device abnormality caused by the device executing two instructions at the same time and improving the accuracy of instruction conflict identification.

[0060] In this embodiment, partitioning can be performed based on target devices, and can be performed based on controllers and functional uses. During the system initialization phase, the display system divides the display screen into several independent partitions based on the actual physical layout and user needs. These partitions can be divided based on functions (such as meeting area, entertainment area, information display area), and can also be flexibly set according to the user's personalized needs.

[0061] In an implementation scenario of the present embodiment, calculating the first priority of the first control instruction based on the first control end includes: reading the first initial priority and partition preference type of the first control end, wherein the target device includes multiple control partitions, each control partition deploys at least one control end, and each control partition corresponds to a partition preference type; dynamically adjusting the first initial priority according to the partition preference type and the first control instruction to obtain the first priority of the first control instruction.

[0062] Correspondingly, the method of calculating the second priority of the second control instruction is similar to the above solution.

[0063] In this implementation scenario, the target device is partitioned according to the physical layout of the controller, such as the conference area, entertainment area, and information display area. The corresponding controllers are deployed in the conference room, entertainment room, and lobby, and the partition preference types correspond to conference, entertainment, and information display. The system sets an initial priority for each partition during initialization, and records the usage scenarios and command preferences for setting preferences to facilitate subsequent dynamic priority adjustments. The partition information is saved in the system's control database to track the status and command history of each partition.

[0064] By adopting the solution of this implementation scenario, an initial priority is set for the control partition corresponding to each controller, and then the initial priority is dynamically adjusted using the partition preference type of the control partition and the first control instruction. This realizes dynamic calculation and adjustment of the priority of the control instructions, thereby improving the flexibility of device control when instructions conflict.

[0065] In one example, dynamically adjusting the first initial priority according to the partition preference type and the first control instruction includes: parsing the instruction type of the first control instruction; calculating the matching degree between the instruction type and the partition preference type; calculating an offset based on the matching degree, wherein the offset is positively correlated with the matching degree; and adjusting the first initial priority using the offset.

[0066] Optionally, the partition preference type includes multiple instruction sets, each instruction type set includes multiple preset instruction types, and each instruction type set corresponds to a matching degree. By comparison, the instruction type set in which the first control instruction is located is determined, and then the matching degree between the instruction type and the partition preference type can be determined. In addition, the semantic similarity between the instruction type and each corpus in the corpus corresponding to the partition preference type (each partition preference type corresponds to a corpus of a preferred semantic style, such as the corpus of the entertainment area includes: pause, play, next song, next song) can be calculated, and the maximum semantic similarity is selected as the matching degree.

[0067] In this example, if the matching degree is higher, the offset is larger, and the first initial priority is increased more, and the first initial priority is adjusted to a higher first priority. The entertainment area can give priority to executing entertainment-related control instructions, and the conference area can give priority to executing conference-related control instructions.

[0068] By adopting the solution of this embodiment, by comparing the matching degree of the first control instruction triggered from the first controller with the partition preference type corresponding to the first controller, it can be ensured that the control instructions with similar partition preference types corresponding to the first controller can be executed preferentially, thereby realizing dynamic and flexible adjustment of the priority of the control instructions of each controller partition.

[0069] In an implementation scenario of the present embodiment, calculating the first priority of the first control instruction based on the first control end includes: parsing the trigger object of the first control instruction, and obtaining the activity of the functional partition corresponding to the first control instruction, wherein the target device includes multiple functional partitions, and each functional partition corresponds to a use of the target device; searching for the object priority of the trigger object in a preset priority library, and generating a partition priority based on the activity, wherein the partition priority is positively correlated with the activity; and calculating the first priority of the first control instruction by weighting the object priority and the partition priority.

[0070] In this implementation scenario, the target device is divided into multiple functional partitions according to functional uses, and each functional partition corresponds to a use of the target device, such as the display screen is used for entertainment, conference, information display, etc., the air conditioner is used for heating, cooling, etc., and the water heater is used for floor heating, bathing, etc.

[0071] The system captures the user's voice commands through command collection modules such as voice recognition, and parses the voice content into specific control commands through natural language processing technology. These commands can be operations such as playing videos, adjusting volume, switching display content, and changing display resolution. The parsed commands will be matched to the corresponding functional partitions, and the system will also parse the user's identity information to obtain the object priority for reference when adjusting the priority.

[0072] By adopting the solution of this embodiment, the target device is divided into multiple functional partitions according to purpose, and the activity of the functional partitions corresponding to the control instructions is obtained. Combined with the object priority of the trigger object of the first control instruction, dynamic calculation and adjustment of the priority of the control instructions is achieved, thereby improving the flexibility of device control when instructions conflict.

[0073] In one example, obtaining the activity of the functional partition corresponding to the first control instruction includes: parsing the semantic information of the first control instruction; searching for a functional partition matching the semantic information in a preset partition library; reading log records of the functional partition in a log library of the target device; and calculating the activity of the functional partition based on the log records.

[0074] Optionally, calculating the activity of the functional partition based on the log records includes: counting the number of instruction executions and the instruction execution duration of the functional partition, and using the number of executions and the instruction execution duration to calculate the activity of the functional partition, the more execution times, the higher the activity, and the longer the instruction execution duration, the higher the activity.

[0075] When the system detects that multiple partitions have received similar or conflicting control commands, it performs conflict detection. Conflict situations include different partitions trying to control the same resource (such as audio output) at the same time, or performing mutually exclusive operations in the same partition (such as switching programs and adjusting volume). The system dynamically adjusts the priority based on multiple factors such as user identity, command type, partition activity, and execution time. For example, if a partition is more active, or the user has higher permissions in the system, the system will give priority to the commands of these partitions. If the priority difference of the conflicting commands is not large, the system will also make adjustments based on the user's historical operating habits.

[0076] When parsing the trigger object of the first control instruction, set keywords related to the user identity, such as user name, user role (administrator, ordinary user, etc.). If the user says "Administrator, open the presentation in the conference area", the system can refer to the user's identity authority in subsequent priority adjustment and other operations by identifying the identity keyword "administrator". The system can also determine which user issued the instruction based on the voice timbre characteristics pre-registered by different users, and then associate it with the corresponding identity information for instruction parsing.

[0077] This embodiment uses natural language processing technology to parse the semantic information of the first control instruction, including the steps of lexical analysis, syntactic analysis, semantic understanding and device instruction generation.

[0078] Lexical analysis includes word segmentation. For the parsed text content, word segmentation is first performed. For example, for the instruction "play movies in the entertainment area", after word segmentation, words such as "in", "entertainment area", "play", and "movie" are obtained. Word segmentation technology can be implemented based on rules (such as maximum matching method, minimum matching method, etc.) or statistical methods (such as hidden Markov model, neural network model, etc.). When applied, the parsed text is used as input, and the text is decomposed into meaningful words according to the pre-trained word segmentation model or rules of the system to prepare for subsequent semantic understanding. Part-of-speech tagging: The part-of-speech is tagged for the segmented words, such as "play" is marked as a verb, "movie" is marked as a noun, and "entertainment area" is marked as a noun phrase (indicating an area). Part-of-speech tagging can help the system better understand the grammatical structure and semantics of the sentence. Part-of-speech tagging is usually performed using statistical machine learning methods or deep learning methods, such as conditional random field (CRF) models or neural network models based on Transformer architecture. The application process is to input the word sequence into the part-of-speech tagging model after word segmentation. The model tags the appropriate part of speech for each word based on the part-of-speech tagging rules and probabilities obtained through training, providing a basis for the next step of syntactic analysis.

[0079] Syntactic analysis includes building a syntax tree. Syntactic analysis is used to analyze the grammatical structure of a sentence and build a syntax tree. Taking "playing movies in the entertainment area" as an example, the root node of the syntax tree can be the entire sentence, and its lower branches can include child nodes such as "location adverbial (in the entertainment area)" and "predicate verb phrase (playing movies)". By building a syntax tree, the system can clearly understand the relationship between the various components in the instruction. The application method is to input the word sequence after part-of-speech tagging into the syntax analysis model. The model builds a syntax tree according to predefined grammatical rules (such as context-free grammar, etc.) or through a deep learning model (such as a syntax analysis model based on a graph neural network), thereby clarifying the grammatical structure of the sentence.

[0080] Extract key information from the syntax tree, such as action (play), object (movie), and location (entertainment zone). This key information is very important for assigning instructions to corresponding partitions and determining specific control operations. When applied, by traversing the nodes of the syntax tree, according to the part of speech and grammatical relationship of the nodes, extract the operations corresponding to the action verbs (such as play, adjust, etc.), the operation objects (such as video, volume, etc.), and the partition information that may be involved (such as entertainment zone, meeting zone, etc.), and then combine this information into specific control instructions.

[0081] Semantic understanding and device command generation, semantic role labeling: Semantic role labeling is to determine the semantic roles of each component in a sentence, such as agent, patient, tool, etc. In multi-screen control instructions, such as "user (agent) plays (action) movie (patient) in entertainment area (location)", semantic role labeling can more accurately understand the intention of the instruction. Usually, machine learning methods or deep learning methods are used for semantic role labeling, such as support vector machine (SVM) combined with feature engineering or Transformer-based semantic role labeling model. The application process is to input information such as syntax tree and word sequence obtained by syntactic analysis into the semantic role labeling model. The model labels the semantic roles for each component in the sentence according to the semantic role labeling rules and semantic knowledge base obtained by training, so as to deeply understand the semantics of the instruction. Device command generation: Generate specific control instructions based on the results of semantic understanding. For example, the extracted action (play), object (movie) and partition (entertainment zone) information is combined into a control instruction, such as "play movie in entertainment zone". The instruction will be understood by the system as a specific operation, including operation type (play video), operation object (movie) and operation area (entertainment zone), and then the instruction is assigned to the control module corresponding to the entertainment zone for execution. When applied, the system will generate a control instruction that can be executed by the system according to the pre-defined instruction format and system architecture requirements based on the key information obtained by semantic understanding, and send it to the control unit of the corresponding partition to realize the control of the target device.

[0082] When searching for functional partitions matching the semantic information in the preset partition library, the partition identification vocabulary is clarified: the system predefines keywords related to each partition. For example, for the "entertainment area", keywords may include "movies", "music", "games", "video playback", etc.; for the "conference area", keywords include "presentation", "meeting minutes", "screen projection", etc. When these keywords appear in the parsed semantic information, the instructions are assigned to the corresponding partitions.

[0083] For example: If the user's voice command is "play a movie in the entertainment area", the system will assign the control command "play a movie" to the entertainment area by identifying the partition keyword "entertainment area". Or if the command is "open meeting minutes, in the meeting area", the system will assign the command to the meeting area based on the association between "meeting area" and "meeting minutes".

[0084] In addition to semantic information, functional partitions can also be matched according to other strategies, and can also be applied to scenarios where functional partitions that match the semantic information are not found in the preset partition library. In one example, according to the default partition assignment preset by the user and the default partition setting mechanism, the user can specify a default partition during the system initialization or setup phase. When a control instruction issued by the user does not explicitly mention a partition, the system assigns the instruction to this default partition. For example: Suppose the user sets the entertainment area as the default partition. When the user says "play music", since no partition is specified, the system will assign the instruction "play music" to the entertainment area according to the default setting.

[0085] In another example, the function partitions are allocated based on the user's historical operation habits, and historical operation data is recorded: the system will record the user's past operation frequency, operation type and other historical data in each partition. For example, if the user often adjusts the display resolution in the information display area, the system will count this operation habit. Allocation based on habits: When encountering a new instruction, such as "adjust resolution", the system will prioritize allocating this instruction to the partition where the user has performed the operation most frequently in history, that is, the information display area, if there is no other clear partition indication.

[0086] In another example, the current system status and active partitions are assigned to functional partitions to determine the active partitions of the system: the system can monitor the activity of each partition in real time, for example, by detecting the usage status of the devices in the partition, whether there have been any recent operations, etc. If a partition has just been used, or the devices in it are turned on and running certain programs, this partition is considered an active partition. Instruction allocation tends to be active partitions: When the content of the instruction does not clearly point to a partition, and there is no suitable default partition or historical operating habit reference, the system tends to assign the instruction to the currently active partition. For example, the user has just presented a presentation in the conference area. At this time, the system receives a command to "switch display content". In the absence of other instructions, this command will be assigned to the conference area.

[0087] By adopting the solution of this embodiment, by parsing the semantic information of the first control instruction, matching the functional partitions through the semantic information and calculating the activity of the functional partitions, it can be ensured that the control instructions frequently operated by the target device can be executed first, thereby realizing dynamic and flexible adjustment of the priority of the control instructions of each functional partition.

[0088] In this embodiment, when the system cannot automatically resolve the conflict through dynamic priority adjustment, the system will generate feedback and request the user to confirm. For example, the system may prompt "There is a conflict between the instructions of the entertainment area and the meeting area. Please choose to play the video or adjust the volume first", and determine the final execution order based on the user's answer. This interactive method not only improves the intelligence of the system, but also enhances the user's sense of participation and control.

[0089] After resolving the conflict, the system executes the control command according to the determined priority and feeds back the result to the user after the operation is completed. For example, when the video is played successfully, the system can provide a voice prompt "The video has been played in the entertainment area". If a command is postponed or canceled, the system will prompt the user accordingly so that the user can perform a secondary operation. The system gradually learns the user's command preferences and operating habits by analyzing the user's operation history. The adaptive learning mechanism can dynamically adjust the initial priority and conflict handling strategy of each partition. For example, if the system detects that the user frequently issues commands to play videos in the entertainment area, the system will automatically increase the priority of related commands in the partition in the future to better meet user needs.

[0090] The adaptive learning mechanism includes: data collection and storage technology, data analysis technology, priority and strategy adjustment technology, etc. Here is an explanation:

[0091] Data collection and storage techniques include operation log recording: the system needs to record the user's operation information in each partition in detail, including the operation type (playing a video, adjusting the volume, etc.), operation time, operation frequency, etc. These operation logs can be stored in a database, and the table structure of the database can be designed to include fields such as partition ID, operation type, operation timestamp, and user ID. For example, every time a user plays a video in the entertainment area, the system will insert a record in the log table, recording the entertainment area ID, the operation type of playing the video, the specific time of the operation, and the user's unique ID. In addition to the operation log, the system should also collect user feedback on the results of the command execution. This can be done through voice feedback, interface feedback (if any), etc. For example, after the system executes a certain command, the user says through voice, "The presentation in the conference area just now switched too quickly, and it will be slower next time." The system should be able to capture and record this feedback information. The collected feedback information can also be stored in a special feedback database table and associated with the operation log for subsequent analysis.

[0092] Data analysis techniques include: Frequency statistical analysis: For operation logs, the system can perform frequency statistical analysis to determine the frequency of different operations in each partition. For example, by counting the operation logs of the entertainment area, the proportion of the number of times the video playback operation occurred in the past week to the total number of operations is calculated. If this proportion is high, it means that users frequently use the video playback function in the entertainment area. This can be achieved through SQL query statements or data mining algorithms. Association rule mining: Analyze the association between different operations. For example, in the entertainment area, users often adjust the volume after playing a video. The system can discover this association through association rule mining algorithms (such as Apriori algorithm). This helps to adjust the priority of operations in the partition. For example, when the video playback operation is triggered, the system can predict that the user may adjust the volume, thereby increasing the priority of the volume adjustment operation. Feedback text analysis: For the text content of user feedback, natural language processing technology is used for analysis. Sentiment analysis can be performed to determine whether the user feedback is positive or negative, or topic extraction can be performed to determine the operation or partition that the user feedback mainly involves. For example, the user feedback text is classified through the sentiment analysis algorithm to determine whether the user is satisfied or dissatisfied with a certain operation.

[0093] Priority and policy adjustment techniques include: Priority weight update: Dynamically adjust the initial priority of each partition based on the results of data analysis. For example, if the frequency of operations to play videos in the entertainment zone continues to increase, the system can increase the priority weight of operations related to playing videos in the entertainment zone. This can be achieved through a priority weight table, which stores the priority weights of various operations in each partition. When data analysis indicates that adjustment is needed, the system changes the priority by updating the weight value in this table. Conflict handling strategy optimization: Optimize the conflict handling strategy based on data analysis and user feedback. For example, if users often choose to prioritize audio operations in the entertainment zone when audio resources conflict between the entertainment zone and the conference zone, the system can adjust the conflict handling strategy to automatically increase the priority of audio operations in the entertainment zone when encountering similar conflicts in the future. This can be achieved by updating the conflict handling rule engine in the system, which re-evaluates and handles conflicts based on new policy rules.

[0094] Figure 3 It is a flowchart of the execution of instructions in an embodiment of the present invention, taking voice instructions as an example, including: the user issues a voice instruction, the voice recognition module captures the instruction, the natural language processing parses the instruction, allocates it to the corresponding partition, determines whether there are conflicting instructions, if so, performs conflict detection, dynamically adjusts the priority, determines whether to resolve the conflict, if so, executes the control instruction, if not, generates a voice feedback request for confirmation, and executes the control instruction after the user confirms and resolves the conflict.

[0095] The solution of this embodiment is adopted to achieve refined control of voice commands by dividing the target device into multiple independent partitions. A dynamic priority adjustment mechanism is adopted to flexibly handle conflicts according to user identity, command type and partition activity, adapting to multi-user and multi-task scenarios. In addition, a voice confirmation mechanism is provided to interact with the user to confirm when the priority is difficult to distinguish, enhancing the system intelligence and user experience. This method effectively improves the stability and accuracy of multi-screen control and is suitable for complex application scenarios such as smart homes and multimedia systems.

[0096] When the target device receives different or conflicting control commands at the same time, the system is difficult to determine which command should be executed, which may lead to command execution failure, unstable system response or misoperation. Through partition control and dynamic priority adjustment mechanism, the control command conflict problem is intelligently solved according to factors such as actual usage scenarios, user identity, command type, and partition activity. It can automatically detect and resolve multi-screen control command conflicts to enhance user experience. In the case of command conflicts, the system will give priority to more important commands and provide delay or cancellation options for low-priority commands to improve the stability and accuracy of multi-screen control. Through dynamic adjustment of voice control and command priorities of partitions, the system can effectively coordinate the needs of different users and meet multiple operation tasks at the same time. According to the physical layout and user settings of the target device, the multi-screen system is divided into multiple independent control partitions, so that each partition can receive and execute commands independently.

[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a control device with conflicting instructions, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0098] Example 2

[0099] In the present embodiment, a control device for command conflicts is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are omitted. As used below, the term "module" can implement a combination of software and hardware for the reservation function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, can also be conceived.

[0100] Figure 4is a structural block diagram of a control device for command conflicts according to an embodiment of the present invention. Figure 4 As shown, including:

[0101] A detection module 40, configured to detect a first control instruction from a first control terminal to a target device, and to detect a second control instruction from a second control terminal to the target device;

[0102] A judging module 42, configured to judge whether there is a conflict between the first control instruction and the second control instruction;

[0103] a calculation module 44, configured to calculate a first priority of the first control instruction and a second priority of the second control instruction if there is a conflict between the first control instruction and the second control instruction;

[0104] The execution module 46 is configured to select and execute the first control instruction or the second control instruction on the target device according to the first priority and the second priority.

[0105] Optionally, the judgment module includes: a first judgment unit, used to determine whether the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same; a first determination unit, used to determine that there is a conflict between the first control instruction and the second control instruction if the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same.

[0106] Optionally, the judgment module includes: a second judgment unit, used to judge whether the target device has the ability to simultaneously operate the first control instruction and the second control instruction; a second determination unit, used to determine that there is a conflict between the first control instruction and the second control instruction if the target device does not have the ability to simultaneously operate the first control instruction and the second control instruction.

[0107] Optionally, the calculation module includes: a reading unit, used to read the first initial priority and partition preference type of the first control terminal, wherein the target device includes multiple control partitions, each control partition deploys at least one control terminal, and each control partition corresponds to a partition preference type; an adjustment unit, used to dynamically adjust the first initial priority according to the partition preference type and the first control instruction to obtain the first priority of the first control instruction.

[0108] Optionally, the adjustment unit includes: a parsing subunit, used to parse the instruction type of the first control instruction; a first calculation subunit, used to calculate the matching degree between the instruction type and the partition preference type; a second calculation subunit, used to calculate an offset based on the matching degree, wherein the offset is positively correlated with the matching degree; and an adjustment subunit, used to adjust the first initial priority using the offset.

[0109] Optionally, the calculation module includes: a processing unit, used to parse the trigger object of the first control instruction, and obtain the activity of the functional partition corresponding to the first control instruction, wherein the target device includes multiple functional partitions, and each functional partition corresponds to a use of the target device; a search unit, used to search for the object priority of the trigger object in a preset priority library, and generate a partition priority based on the activity, wherein the partition priority is positively correlated with the activity; a calculation unit, used to weightedly calculate the first priority of the first control instruction using the object priority and the partition priority.

[0110] Optionally, the processing unit includes: a parsing subunit, used to parse the semantic information of the first control instruction; a searching subunit, used to search for a functional partition matching the semantic information in a preset partition library; a reading subunit, used to read the log records of the functional partition in the log library of the target device; and a calculating subunit, used to calculate the activity of the functional partition based on the log records.

[0111] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0112] Example 3

[0113] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0114] Optionally, in this embodiment, the above storage medium may be configured to store a computer program for executing:

[0115] S1, detecting a first control instruction from a first control terminal to a target device, and detecting a second control instruction from a second control terminal to the target device;

[0116] S2, determining whether there is a conflict between the first control instruction and the second control instruction;

[0117] S3, if there is a conflict between the first control instruction and the second control instruction, calculating a first priority of the first control instruction and calculating a second priority of the second control instruction;

[0118] S4: Select to execute the first control instruction or the second control instruction on the target device according to the first priority and the second priority.

[0119] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0120] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0121] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0122] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0123] S1, detecting a first control instruction from a first control terminal to a target device, and detecting a second control instruction from a second control terminal to the target device;

[0124] S2, determining whether there is a conflict between the first control instruction and the second control instruction;

[0125] S3, if there is a conflict between the first control instruction and the second control instruction, calculating a first priority of the first control instruction and calculating a second priority of the second control instruction;

[0126] S4: Select to execute the first control instruction or the second control instruction on the target device according to the first priority and the second priority.

[0127] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0128] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0129] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0130] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0133] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a controller or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., various media that can store program codes.

[0134] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for controlling command conflicts, characterized in that: include: Detecting a first control instruction from a first control terminal to a target device, and detecting a second control instruction from a second control terminal to the target device; Determining whether there is a conflict between the first control instruction and the second control instruction; If there is a conflict between the first control instruction and the second control instruction, calculating a first priority of the first control instruction and calculating a second priority of the second control instruction; The first control instruction or the second control instruction is selected to be executed on the target device according to the first priority and the second priority.

2. The method according to claim 1, characterized in that Determining whether the first control instruction and the second control instruction conflict includes: Determining whether the resource objects requested to be controlled by the first control instruction and the second control instruction in the target device are the same; If the first control instruction and the second control instruction request to control the same resource object in the target device, it is determined that the first control instruction and the second control instruction conflict with each other.

3. The method according to claim 1, characterized in that: Determining whether the first control instruction and the second control instruction conflict includes: Determining whether the target device has the ability to operate the first control instruction and the second control instruction simultaneously; If the target device does not have the capability of operating the first control instruction and the second control instruction at the same time, it is determined that there is a conflict between the first control instruction and the second control instruction.

4. The method according to claim 1, characterized in that Calculating the first priority of the first control instruction according to the first control end includes: Reading a first initial priority and a partition preference type of the first control terminal, wherein the target device includes a plurality of control partitions, each control partition deploys at least one control terminal, and each control partition corresponds to a partition preference type; The first initial priority is dynamically adjusted according to the partition preference type and the first control instruction to obtain a first priority of the first control instruction.

5. The method according to claim 4, characterized in that Dynamically adjusting the first initial priority according to the partition preference type and the first control instruction includes: parsing the instruction type of the first control instruction; Calculating a matching degree between the instruction type and the partition preference type; Calculating an offset based on the matching degree, wherein the offset is positively correlated with the matching degree; The first initial priority is adjusted using the offset.

6. The method according to claim 1, characterized in that Calculating the first priority of the first control instruction according to the first control end includes: parsing the triggering object of the first control instruction, and acquiring the activity of the functional partition corresponding to the first control instruction, wherein the target device includes a plurality of functional partitions, each functional partition corresponding to a purpose of the target device; Searching for the object priority of the trigger object in a preset priority library, and generating a partition priority according to the activity, wherein the partition priority is positively correlated with the activity; The first priority of the first control instruction is calculated by weighting the object priority and the partition priority.

7. The method according to claim 6, characterized in that Obtaining the activity of the functional partition corresponding to the first control instruction includes: parsing semantic information of the first control instruction; Searching for a functional partition matching the semantic information in a preset partition library; Reading log records of the functional partition in a log library of the target device; The activity of the functional partition is calculated according to the log record.

8. A control device for command conflicts, characterized in that: include: A detection module, used to detect a first control instruction from a first control terminal to a target device, and to detect a second control instruction from a second control terminal to the target device; A judging module, used for judging whether there is a conflict between the first control instruction and the second control instruction; a calculation module, configured to calculate a first priority of the first control instruction and a second priority of the second control instruction if there is a conflict between the first control instruction and the second control instruction; An execution module is used to select and execute the first control instruction or the second control instruction on the target device according to the first priority and the second priority.

9. A storage medium, characterized in that: A computer program is stored in the storage medium, wherein the computer program is configured to execute the steps of the instruction conflict control method in any one of claims 1 to 7 when running.

10. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface, and the memory communicate with each other via a communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the steps of the instruction conflict control method according to any one of claims 1 to 7 by running a program stored in a memory.

Citation Information

Cited By

  • Control method based on multidirectional input device, multidirectional input device, control handle and information processing system

    CN120215388A

  • Intelligent ceiling lamp and table lamp interactive linkage control method and system

    CN120343780A

  • Scene control method and system based on neuron sensor

    CN120428585A

  • Intelligent pressing plate on-off control method and pressing plate controller

    CN121432968A