Instruction processing method, device, electronic device and storage medium
By receiving and analyzing multiple operating instructions in vehicle control, determining the type of conflict and formulating execution strategies, the risk of execution errors caused by instruction conflicts is resolved, and the instruction processing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202311093153.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2043-08-28
AI Technical Summary
During vehicle control, multiple instructions conflict, resulting in the risk of incorrect execution of instructions in the vehicle system.
An instruction processing method is provided, by receiving input operation instructions, determining a conflict type between instructions, and determining an execution policy based on the type to respond to multiple operation instructions.
It effectively reduces the operational crash or operation disorder of electronic equipment caused by instruction conflicts, avoids the risk of instruction execution errors, and improves instruction processing efficiency and user experience.
Smart Images

Figure CN117149277B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to an instruction processing method, device, electronic device and storage medium. Background Art
[0002] In the related art, when a user is controlling a vehicle, multiple commands may conflict with each other. In this case, the vehicle's on-board system may run the risk of incorrect command execution when executing the multiple conflicting commands. Summary of the invention
[0003] Based on the above problems, the embodiments of the present application provide an instruction processing method, device, electronic device and storage medium.
[0004] The technical solution provided by the embodiment of the present application is as follows:
[0005] The present application embodiment first provides an instruction processing method, the method comprising:
[0006] receiving at least two operation instructions input within a first time period;
[0007] In the case that there is a conflict between the at least two operation instructions, determining a target conflict type between the at least two operation instructions;
[0008] Based at least on the target conflict type and the at least two operation instructions, a target execution strategy is determined to respond to the at least two operation instructions based on the target execution strategy.
[0009] The present application also provides an instruction processing device, the device comprising:
[0010] An instruction receiving module, used for receiving at least two operation instructions input within a first time period;
[0011] A first determining module, configured to determine a target conflict type between the at least two operation instructions when there is a conflict between the at least two operation instructions;
[0012] The second determination module is used to determine a target execution strategy based at least on the target conflict type and the at least two operation instructions, so as to respond to the at least two operation instructions based on the target execution strategy.
[0013] An embodiment of the present application also provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the instruction processing method described in the embodiment of the present application are implemented.
[0014] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the instruction processing method described in the embodiment of the present application are implemented.
[0015] The instruction processing method, device, equipment and storage medium provided in the embodiment of the present application first receive at least two operation instructions input within a first time period; then, in the case that there is a conflict between at least two operation instructions, determine the target conflict type between at least two operation instructions; finally, at least based on the target conflict type and at least two operation instructions, determine the target execution strategy to respond to at least two operation instructions based on the target execution strategy. In this way, the embodiment of the present application can determine the target execution strategy based on the conflict type and multiple operation instructions, so that the electronic device can respond to multiple operation instructions based on the target execution strategy, and can realize the processing of multiple conflicting instructions, which to a certain extent reduces the occurrence of electronic equipment operation crashes or operation disorders caused by different types of conflicts in the received instructions, and avoids the risk of execution errors in the execution process of multiple instructions, effectively improving the instruction processing efficiency and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flowchart of an instruction processing method according to an embodiment of the present application;
[0017] Figure 2 It is a flowchart of another instruction processing method according to an embodiment of the present application;
[0018] Figure 3 It is a flowchart of another instruction processing method according to an embodiment of the present application;
[0019] Figure 4 It is a flowchart of another instruction processing method according to an embodiment of the present application;
[0020] Figure 5 It is a flowchart of another instruction processing method according to an embodiment of the present application;
[0021] Figure 6 It is a flowchart of another instruction processing method according to an embodiment of the present application;
[0022] Figure 7 It is a schematic diagram of the composition structure of an instruction processing device according to an embodiment of the present application;
[0023] Figure 8 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0025] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the technical field of the embodiments of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0026] The following describes an exemplary application of the instruction processing device of the embodiment of the present application. The instruction processing device provided in the embodiment of the present application can be implemented as a terminal or a server. In one implementation, the instruction processing device provided in the embodiment of the present application can be implemented as various types of terminals such as a laptop computer, a tablet computer, a desktop computer, a mobile device, etc.; in another implementation, the instruction processing device provided in the embodiment of the present application can also be implemented as a vehicle system of a vehicle. The following describes an exemplary application when the instruction processing device is implemented as an electronic device.
[0027] The present application embodiment provides an instruction processing method. Figure 1 is a flowchart of an instruction processing method according to an embodiment of the present application. Figure 1 As shown, the method can be implemented by following steps 102 to 106:
[0028] Step 102: The electronic device receives at least two operation instructions input within a first time period.
[0029] Here, the electronic device may receive a plurality of operation instructions input within the first time period, wherein the plurality of operation instructions may be a plurality of identical operation instructions or a plurality of different operation instructions.
[0030] In some application scenarios, electronic devices may be equipped with far-field voice technology. Through voice technology, electronic devices can directly receive command input through voice. In some application scenarios, electronic devices can implement command input through manual control. In some application scenarios, electronic devices may also be equipped with physical buttons or touch areas. Electronic devices can directly implement command input through physical buttons or touch areas.
[0031] In some embodiments, the operation instruction may include information such as the operation type, the operation object, and the operation parameters, and the modification and management of the specified parameters, information, or functions may be realized according to the operation instruction. For example, the operation instruction may be an instruction to open the car door, i.e., an "open the car door" instruction; the operation instruction may be an instruction to turn on the car air conditioner, i.e., an "turn on the air conditioner" instruction; the operation instruction may also be an instruction to turn on the car entertainment mode, i.e., an "turn on the entertainment mode" instruction. Of course, the operation instruction may be any type of instruction for any vehicle-mounted electronic device, and the embodiments of the present application do not specifically limit this.
[0032] Step 104: When there is a conflict between the at least two operation instructions, the electronic device determines a target conflict type between the at least two operation instructions.
[0033] In the embodiment of the present application, after receiving multiple operation instructions, the electronic device enters a preset conflict detection process, that is, compares and analyzes the received multiple operation instructions to determine whether there is a conflict between the received multiple operation instructions. On the premise of determining that the multiple operation instructions are in conflict, the electronic device further analyzes the instruction information included in the operation instructions to determine the target conflict type between the operation instructions. Here, the conflict between multiple operation instructions may refer to multiple operation instructions performing operations of different operation types on the same operation object (for example, multiple operation instructions are "open the door" and "close the door"); or, multiple operation instructions perform operations on the same operation object in the same or adjacent time (that is, the operation time overlaps) (for example, multiple operation instructions are "11:00 a.m., turn on the air conditioner" and "11:00 a.m., open the window"), etc.
[0034] In some embodiments, the conflict type may include an execution operation conflict, an execution time conflict, etc. Of course, other forms of conflict types may also be included. The embodiments of the present application do not specifically limit the conflict type.
[0035] It should be noted that if there is no conflict among the multiple operation instructions received, the instruction execution process is entered, that is, for multiple operation instructions, each operation instruction can be executed normally according to the content, and multiple non-conflicting operation instructions can be executed at the same time.
[0036] In the embodiment of the present application, when the electronic device determines that there is a conflict between multiple received instructions, it can further determine the target conflict type between the multiple operation instructions to determine the corresponding execution strategy based on different conflict types.
[0037] Step 106: The electronic device determines a target execution strategy based at least on the target conflict type and the at least two operation instructions, so as to respond to the at least two operation instructions based on the target execution strategy.
[0038] In some embodiments, when the target conflict type is an operation time conflict, the electronic device may determine the target execution strategy to be to execute all of the at least two operation instructions (e.g., serial execution, or parallel execution) based on the operation time conflict and the at least two operation instructions. When the target conflict type is an operation type conflict, the electronic device may determine the target execution strategy to be to selectively execute at least two operation instructions (e.g., execute the first operation instruction, or execute the second operation instruction) based on the operation type conflict and the at least two operation instructions.
[0039] The instruction processing method of the embodiment of the present application first receives at least two operation instructions input within a first time period; then, in the case that there is a conflict between at least two operation instructions, determines the target conflict type between at least two operation instructions; finally, based on at least the target conflict type and at least two operation instructions, determines the target execution strategy to respond to at least two operation instructions based on the target execution strategy. In this way, the embodiment of the present application can determine the target execution strategy based on the conflict type and multiple operation instructions, so that the electronic device can respond to multiple operation instructions based on the target execution strategy, and can realize the processing of multiple conflicting instructions, which to a certain extent reduces the occurrence of electronic equipment crashes or disordered operations caused by different types of conflicts in the received instructions, and avoids the risk of execution errors in the execution of multiple instructions, effectively improving the instruction processing efficiency and enhancing the user experience.
[0040] In some embodiments, when at least two operation instructions include a first operation instruction and a second operation instruction, a target conflict type between the at least two operation instructions is determined. Based on the foregoing embodiments, an embodiment of the present application provides an instruction processing method, which can be executed by an electronic device. Figure 2 is a flowchart of another instruction processing method according to an embodiment of the present application. Figure 2 As shown, the above step 104 can be implemented by the following steps 10411 and 10413:
[0041] Step 10411: The electronic device obtains a first operation object and a first operation type of the first operation instruction.
[0042] Step 10412: The electronic device obtains a second operation object and a second operation type of the second operation instruction.
[0043] In some embodiments, the operation instruction received by the electronic device may include an operation type, an operation object, etc. The operation object refers to the object of the instruction execution. The operation type refers to the execution content of the operation instruction, such as turning on or off a specified function, increasing or decreasing a specified parameter, etc.
[0044] In some practical applications, for example, in a recorder application scenario, the first operation instruction may be "turn on the recorder", and the second operation instruction may be "turn off the recorder". Correspondingly, the first operation object is the recorder, and the first operation type is to turn on the recorder function. The second operation object is the recorder, and the second operation type is to turn off the recorder function.
[0045] For example, in an air-conditioning application scenario, the first operation instruction may also be "increase the air-conditioning temperature by one degree", and the second operation instruction may also be "lower the air-conditioning temperature by one degree". Correspondingly, the first operation object is the air-conditioning, and the first operation type is to increase the air-conditioning temperature parameter; the second operation object is the air-conditioning, and the second operation type is to lower the air-conditioning temperature parameter.
[0046] Step 10413: When the first operation object and the second operation object are the same and the first operation type and the second operation type are different, the electronic device determines that the target conflict type is a first type conflict.
[0047] In the embodiment of the present application, the electronic device may determine, among multiple conflicting instructions, instructions having the same operation object but different operation types as first-type conflicts.
[0048] In some embodiments, when the at least two operation instructions include a third operation instruction and a fourth operation instruction, a target conflict type between the at least two operation instructions is determined. Based on the foregoing embodiments, an embodiment of the present application provides an instruction processing method, which can be executed by an electronic device. Figure 3 is a flowchart of another instruction processing method in an embodiment of the present application, such as Figure 3 As shown, the above step 104 can also be implemented by the following steps 10421 to 10423:
[0049] Step 10421: The electronic device obtains the third operation object and the first operation time of the third operation instruction.
[0050] Step 10422: The electronic device obtains the fourth operation object and the second operation time of the fourth operation instruction.
[0051] In some embodiments, the operation instruction received by the electronic device may include the operation time, the operation object, etc. Among them, the operation object refers to the object of the instruction execution. The operation time refers to the execution time of the operation instruction, and the operation time can be a set time point or time period. After the electronic device receives the operation instruction, it executes the operation instruction at the set time point; the operation time can also be a set time period (such as n seconds or n minutes). After the electronic device receives the operation instruction, it waits for the set time period before executing the operation instruction.
[0052] In some practical applications, for example, the third operation instruction may be "at 11 a.m., turn on the radio channel of the recorder", and the fourth operation instruction may be "at 11 a.m., turn on the music player of the recorder". Correspondingly, the third operation object is the recorder, the first operation time is 11 a.m., the fourth operation object is the recorder, and the second operation time is 11 a.m.
[0053] Step 10423: When the third operation object and the fourth operation object are the same and the first operation time overlaps with the second operation time, the electronic device determines that the target conflict type is a second type conflict.
[0054] In the embodiment of the present application, the electronic device may determine, among multiple conflicting instructions, instructions having the same operation object and overlapping operation times as second-type conflicts.
[0055] In some embodiments, the operation instruction may further include the operation purpose, such as performance optimization, troubleshooting, or scheduled maintenance, etc. The operation instruction may further include an execution priority, and the higher the priority, the greater the probability of being selected for execution in the event of a conflict with other instructions.
[0056] In some embodiments, the operation instruction also includes an operation time limit, and the operation time limit includes immediate execution or non-immediate execution; when the operation time limit is non-immediate execution, the operation instruction also includes a time parameter. Non-immediate execution can also be divided into two types according to the time parameter: the time parameter can be a set time point or time period, and the electronic device executes the operation instruction at the set time point after receiving the operation instruction; the time parameter can also be a set time period (such as n seconds or n minutes), and the electronic device block waits for the set time period after receiving the operation instruction before executing the operation instruction.
[0057] In some embodiments, the target execution strategy can be determined based on at least the target conflict type and at least two operation instructions. Based on the above embodiments, the present application embodiment provides an instruction processing method, which can be executed by an electronic device. Figure 4 FIG. 1 is a flow chart of another instruction processing method according to an embodiment of the present application. Figure 4As shown, the above step 106 can also be implemented by the following steps 1061 to 1062:
[0058] Step 1061: The electronic device obtains state information of a target operation object at the current moment; the target operation object is a common operation object corresponding to the at least two operation instructions.
[0059] In some embodiments, the state information refers to information about whether the target operation object is turned on or off at the current moment.
[0060] Step 1062: The electronic device determines the target execution strategy based on the state information, the target conflict type, and the at least two operation instructions.
[0061] In an embodiment of the present application, the electronic device can determine a target execution strategy based on status information, target conflict type and at least two operation instructions, and can process multiple conflicting instructions, thereby avoiding the risk of execution errors during the execution of multiple instructions.
[0062] In some embodiments, when at least two operation instructions include a first operation instruction and a second operation instruction, the electronic device can determine the target execution strategy according to the state information and the target conflict type. Based on the above embodiments, the present application embodiment provides an instruction processing method, Figure 5 FIG. 1 is a flow chart of another instruction processing method according to an embodiment of the present application. Figure 5 As shown, the above step 1062 can also be implemented by the following steps 10621 and 10624:
[0063] Step 10621: When the state information satisfies the first condition and the target conflict type is a first type of conflict, the electronic device determines that the target execution strategy is to execute the first operation instruction.
[0064] In some application scenarios, the first condition is the basis for the electronic device to determine the target execution strategy. First, the electronic device can determine the driver's operation type by obtaining the vehicle's navigation information and the vehicle's driving status information, that is, determine the operation instruction that the driver needs to execute (that is, execute one of at least two operation instructions); then, determine whether the first condition is met based on the state information of the target operation object, the first type of conflict (that is, the operation objects of the instructions are the same, but the operation types are different) and the operation type, that is, when the state information and the operation type are inconsistent, determine that the target execution strategy is to execute the first operation instruction.
[0065] For example, in the car door application scenario, the first condition can be determined by the electronic device in combination with the vehicle's navigation information and the vehicle's driving status information. Here, the first condition can be when the user has driven the vehicle to the destination of the vehicle navigation and the vehicle has stopped, that is, the electronic device determines that the user needs to open the door and get off the vehicle. At this time, when the first operation instruction input by the user is "open the door", the second operation instruction is "close the door", and the current state of the vehicle door is closed, based on the current state information of the door and the first condition, the electronic device determines that the corresponding target execution strategy should be to execute the "open the door" instruction, that is, the target execution strategy is to execute the first operation instruction.
[0066] Step 10622: When the state information satisfies the second condition and the target conflict type is the first type of conflict, the electronic device determines that the target execution strategy is to execute the second operation instruction.
[0067] In some application scenarios, the second condition is the basis for the electronic device to determine the target execution strategy. First, the electronic device can determine the driver's operation type by obtaining the vehicle's environmental information and the vehicle's driving status information, that is, determine the operation instruction that the driver needs to execute (that is, execute one of at least two operation instructions); then, determine whether the second condition is met based on the state information of the target operation object, the first type of conflict and the operation type, that is, when the state information and the operation type are consistent, determine the target execution strategy to execute the second operation instruction.
[0068] For example, in the vehicle window application scenario, the second condition is determined by the electronic device in combination with the vehicle's environmental information and the vehicle's driving status information. Here, the second condition is when the user is driving the vehicle on a highway and the vehicle is driving at a high speed, that is, in order to ensure the safety of the vehicle's driving, the user needs the vehicle's windows to be in closed mode. At this time, when the first operation instruction input by the user is "open the window", the second operation instruction is "close the window", and the current state of the vehicle's window is the open state, based on the current window state information and the second condition, the electronic device determines that the corresponding target execution strategy should be to execute the "close the window" instruction, that is, the target execution strategy is to execute the second operation instruction.
[0069] Step 10623: When the state information satisfies the third condition and the target conflict type is the first type of conflict, the electronic device determines the target execution strategy as: executing the first operation instruction and the second operation instruction in sequence.
[0070] In some application scenarios, the third condition is the basis for the electronic device to determine the target execution strategy. First, the electronic device can determine the driver's operation type by obtaining the entertainment mode information of the vehicle, that is, determine the operation instructions that the driver needs to execute (that is, execute at least two operation instructions in full); then, the electronic device determines whether the third condition is met based on the operation type, that is, when the operation type is to execute all operation instructions in sequence according to the order in which the instructions are received, the target execution strategy is determined to be to execute the first operation instruction and the second operation instruction in sequence.
[0071] For example, in the application scenario of the celebration mode of the vehicle, the third condition is determined by the electronic device based on the vehicle's entertainment mode information and other information. Here, the third condition is when the vehicle is in celebration mode, that is, the user needs to perform a series of consecutive actions of opening and closing the door for celebration. At this time, the first operation instruction input by the user is "open the door", and the second operation instruction is "close the door". The electronic device determines that the corresponding target execution strategy should be to execute the consecutive instructions of "open the door, close the door", that is, the target execution strategy is to execute the first operation instruction and the second operation instruction in sequence.
[0072] Step 10624: When the state information satisfies the fourth condition and the target conflict type is the first type of conflict, the electronic device determines the target execution strategy as: executing the second operation instruction and the first operation instruction in sequence.
[0073] In some application scenarios, the fourth condition is the basis for the electronic device to determine the target execution strategy. First, the electronic device can determine the driver's operation type by obtaining the entertainment mode information of the vehicle, that is, determine the operation instructions that the driver needs to execute (that is, execute at least two operation instructions in full); then, the electronic device determines whether the fourth condition is met based on the operation type, that is, when the operation type is to execute all operation instructions in reverse order of the received instructions, the target execution strategy is determined to execute the fourth operation instruction and the third operation instruction in reverse order.
[0074] For example, in the application scenario of the celebration mode of the vehicle, the fourth condition is determined by the electronic device based on the entertainment mode information of the vehicle and other information. Here, the fourth condition is when the vehicle is in celebration mode, that is, the user needs to perform a series of consecutive actions of opening and closing the door for celebration. At this time, the first operation instruction input by the user is "close the door", and the second operation instruction is "open the door". The electronic device determines that the corresponding target execution strategy should be to execute the consecutive instructions of "open the door, close the door", that is, the target execution strategy is to execute the second operation instruction and the first operation instruction in reverse order.
[0075] In some embodiments, the target execution strategy can be determined based on at least the target conflict type and at least two operation instructions. Based on the above embodiments, the present application embodiment provides an instruction processing method, which can be executed by an electronic device. Figure 6 FIG. 1 is a flow chart of another instruction processing method according to an embodiment of the present application. Figure 6 As shown, the above step 106 can also be implemented by the following steps 1063 to 1064:
[0076] Step 1063: When the time difference between the target operation time and the current time is less than the time threshold and the target conflict type is a second type conflict, the electronic device executes the at least two operation instructions in parallel; the target operation time is the overlapping time of the corresponding operation times of the at least two operation instructions.
[0077] In some application scenarios, when the target operation times of at least two operation instructions are urgent, that is, when the time difference between the target operation time and the current time is less than a time threshold, the electronic device can execute at least two operation instructions in parallel.
[0078] Step 1064: When the time difference between the target operation time and the current time is not less than the time threshold and the target conflict type is the second type of conflict, the electronic device executes the at least two operation instructions in series.
[0079] In some application scenarios, when the target operation times of at least two operation instructions are not urgent, that is, when the time difference between the target operation time and the current time is not less than a time threshold, the electronic device can execute at least two operation instructions in parallel.
[0080] In some embodiments, when at least two operation instructions include multiple operation instructions (i.e., including three or more operation instructions), after the electronic device determines that multiple operation instructions need to be executed, the electronic device may also determine the execution order corresponding to the multiple operation instructions based on a preset strategy, so as to respond to the multiple instructions based on the execution order. For example, assuming that at least two instructions include instruction A, instruction B, instruction C, and instruction D, after determining that instructions A, instruction B, instruction C, and instruction D need to be executed, the electronic device may also determine the execution order based on a preset strategy as: executing instruction B, instruction A, instruction D, and instruction C in sequence, so as to determine the execution of instruction B, instruction A, instruction D, and instruction C in sequence as the target execution strategy, so as to achieve the response to multiple instructions.
[0081] In an embodiment of the present application, the electronic device can flexibly determine whether to execute multiple received operation instructions in parallel or serially according to the emergency situation of the operation time of multiple operation instructions, thereby improving the instruction processing efficiency and enhancing the user experience to a certain extent.
[0082] In some embodiments, when there is a conflict between at least two operation instructions, before determining the target conflict type between the at least two operation instructions, the method may further include the following:
[0083] A conflict prediction model is used to perform conflict prediction on the at least two operation instructions to obtain a prediction result; the prediction result includes conflict or no conflict.
[0084] In some embodiments, the electronic device may also predict conflicting attributes between operation instructions through preset conflict rules. The electronic device may also predict conflicting attributes between at least two operation instructions through other methods, which is not specifically limited in the embodiments of the present application.
[0085] In an embodiment of the present application, the electronic device can perform conflict prediction on the operation instructions based on the conflict prediction model. The means of conflict prediction through the model will have certain advantages over the existing technology in terms of prediction freedom and prediction accuracy. That is to say, the present application can improve the accuracy and prediction efficiency of conflict prediction to a certain extent, and enhance the user experience.
[0086] Figure 7 is a schematic diagram of the structure of an instruction processing device according to an embodiment of the present application. Figure 7 As shown, the device 700 includes: an instruction receiving module 701, a first determining module 702 and a second determining module 703, wherein:
[0087] An instruction receiving module 701 is used to receive at least two operation instructions input within a first time period; a first determination module 702 is used to determine a target conflict type between the at least two operation instructions when a conflict exists between the at least two operation instructions; a second determination module 703 is used to determine a target execution strategy based at least on the target conflict type and the at least two operation instructions, so as to respond to the at least two operation instructions based on the target execution strategy.
[0088] In some embodiments, when the at least two operation instructions include a first operation instruction and a second operation instruction, the first determination module 702 is further used to obtain a first operation object and a first operation type of the first operation instruction; obtain a second operation object and a second operation type of the second operation instruction; and when the first operation object and the second operation object are the same and the first operation type is different from the second operation type, determine that the target conflict type is a first type conflict.
[0089] In some embodiments, when the at least two operation instructions include a third operation instruction and a fourth operation instruction, the first determination module 702 is further used to obtain a third operation object and a first operation time of the third operation instruction; obtain a fourth operation object and a second operation time of the fourth operation instruction; and determine that the target conflict type is a second type of conflict when the third operation object and the fourth operation object are the same and the first operation time overlaps with the second operation time.
[0090] In some embodiments, the second determination module 703 is also used to obtain state information of the target operation object at the current moment; the target operation object is a common operation object corresponding to the at least two operation instructions; based on the state information, the target conflict type and the at least two operation instructions, the target execution strategy is determined.
[0091] In some embodiments, the second determination module 703 is also used to determine that the target execution policy is to execute the first operation instruction when the status information satisfies the first condition and the target conflict type is the first type of conflict; to determine that the target execution policy is to execute the second operation instruction when the status information satisfies the second condition and the target conflict type is the first type of conflict; to determine that the target execution policy is to execute the first operation instruction and the second operation instruction in sequence when the status information satisfies the third condition and the target conflict type is the first type of conflict; and to determine that the target execution policy is to execute the second operation instruction and the first operation instruction in sequence when the status information satisfies the fourth condition and the target conflict type is the first type of conflict.
[0092] In some embodiments, the second determination module 703 is also used to execute the at least two operation instructions in parallel when the time difference between the target operation time and the current time is less than the time threshold and the target conflict type is the second type of conflict; the target operation time is the overlapping time of the corresponding operation times of the at least two operation instructions; and when the time difference between the target operation time and the current time is not less than the time threshold and the target conflict type is the second type of conflict, execute the at least two operation instructions serially.
[0093] In some embodiments, the device further includes: a prediction module, configured to use a conflict prediction model to perform conflict prediction on the at least two operation instructions to obtain a prediction result; the prediction result includes conflict or non-conflict.
[0094] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0095] Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 8 As shown, the hardware entity of the device 800 includes: a memory 801 and a processor 802, wherein the memory 801 stores a computer program that can be run on the processor 802, and the processor 802 implements the steps of the instruction processing method in the above embodiment when executing the program.
[0096] The memory 801 is configured to store instructions and applications executable by the processor 802, and can also cache data to be processed or processed by the processor 802 and various modules in the electronic device 800 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0097] Based on the foregoing embodiments, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor of an electronic device, the instruction processing method provided in any of the previous embodiments can be implemented.
[0098] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0099] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0100] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0101] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0102] It should be noted that the above-mentioned computer-readable storage medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0103] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0104] 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.
[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus necessary general hardware nodes, 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 application, 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, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0109] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A command processing method, characterized in that: The method comprises: receiving at least two operation instructions input within a first time period; In the case that there is a conflict between the at least two operation instructions, determining a target conflict type between the at least two operation instructions; Acquire state information of a target operation object at a current moment; the target operation object is a common operation object corresponding to the at least two operation instructions; When the state information and the operation type are inconsistent and the target conflict type is a first type conflict, determining the target execution strategy to execute the first operation instruction; When the state information is consistent with the operation type and the target conflict type is the first type of conflict, determining the target execution strategy to execute a second operation instruction; When the operation type is to execute all operation instructions in sequence according to the order in which the instructions are received and the target conflict type is the first type of conflict, determining the target execution strategy is: to execute the first operation instruction and the second operation instruction in sequence; When the operation type is to execute all operation instructions in reverse order of received instructions and the target conflict type is the first type of conflict, determining the target execution strategy is: to execute the second operation instruction and the first operation instruction in sequence; responding to the at least two operating instructions based on the target execution strategy; The operation type is determined by the electronic device through acquired navigation information and driving status information of the vehicle; the first type of conflict representation is that the operation objects in the at least two conflicting operation instructions are the same but the operation types are different.
2. The method according to claim 1, characterized in that In a case where the at least two operation instructions include a first operation instruction and a second operation instruction, determining the target conflict type between the at least two operation instructions includes: Acquire a first operation object and a first operation type of the first operation instruction; Acquire a second operation object and a second operation type of the second operation instruction; When the first operation object and the second operation object are the same, and the first operation type and the second operation type are different, the target conflict type is determined to be a first type conflict.
3. The method according to claim 1, characterized in that In a case where the at least two operation instructions include a third operation instruction and a fourth operation instruction, determining the target conflict type between the at least two operation instructions includes: Acquire a third operation object and a first operation time of the third operation instruction; Acquire a fourth operation object and a second operation time of the fourth operation instruction; When the third operation object and the fourth operation object are the same and the first operation time overlaps with the second operation time, it is determined that the target conflict type is a second type conflict.
4. The method according to claim 1, characterized in that: The determining of the target execution strategy based at least on the target conflict type and the at least two operation instructions includes: When the time difference between the target operation time and the current time is less than the time threshold and the target conflict type is a second type conflict, the at least two operation instructions are executed in parallel; the target operation time is the overlapping time of the corresponding operation times of the at least two operation instructions; When the time difference between the target operation time and the current time is not less than the time threshold, and the target conflict type is the second type of conflict, the at least two operation instructions are executed serially.
5. The method according to claim 1, characterized in that In the case that there is a conflict between the at least two operation instructions, before determining the target conflict type between the at least two operation instructions, the method further includes: A conflict prediction model is used to perform conflict prediction on the at least two operation instructions to obtain a prediction result; the prediction result includes conflict or no conflict.
6. An instruction processing device, characterized in that: The device comprises: An instruction receiving module, used for receiving at least two operation instructions input within a first time period; A first determining module, configured to determine a target conflict type between the at least two operation instructions when there is a conflict between the at least two operation instructions; a second determination module, for obtaining state information of a target operation object at a current moment; the target operation object is a common operation object corresponding to the at least two operation instructions; when the state information and the operation type are inconsistent and the target conflict type is a first type of conflict, determining the target execution strategy to execute the first operation instruction; when the state information and the operation type are consistent and the target conflict type is the first type of conflict, determining the target execution strategy to execute the second operation instruction; when the operation type is to execute all operation instructions in sequence according to the order in which the instructions are received and the target conflict type is the first type of conflict, determining the target execution strategy to: execute the first operation instruction and the second operation instruction in sequence; when the operation type is to execute all operation instructions in sequence according to the reverse order in which the instructions are received and the target conflict type is the first type of conflict, determining the target execution strategy to: execute the second operation instruction and the first operation instruction in sequence; responding to the at least two operation instructions based on the target execution strategy; wherein the operation type is determined by the electronic device through the acquired navigation information of the vehicle and the driving state information of the vehicle; the first type of conflict indicates that the operation objects in the at least two conflicting operation instructions are the same but the operation types are different.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the instruction processing method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium storing executable instructions, for causing a processor to execute the executable instructions to implement the instruction processing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Multi-spacecraft main and auxiliary sequence cooperative control system and method
CN112462712A
Instruction execution method and system, network equipment and storage medium
CN112672440A