Rule engine-based action execution method, vehicle and storage medium
By playing the startup animation when the vehicle starts and combining the vehicle status information to determine whether to execute the preset action, the problem of uncertain triggering of custom scenes when the vehicle is in sleep state is solved, ensuring that the action is executed after the vehicle is fully started, and improving the user experience.
Patent Information
- Application Number
- CN202510894896.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-10-17
AI Technical Summary
After the vehicle is turned off and the car computer is in sleep mode, the custom scene set by the user may be triggered irregularly or not triggered at all, resulting in the user being unable to determine the trigger time, affecting the user experience.
Through the action execution method based on the rule engine, the rule engine is started in response to the vehicle startup request and the startup animation is played. Based on the playback duration of the startup animation and the vehicle status information, it is determined whether to execute the preset action to ensure that the action is executed after the vehicle is fully started.
It achieves accurate execution of preset actions after the vehicle is fully started, avoids the problem of users being unable to determine the execution time of the action, and provides a personalized user experience.
Smart Images

Figure CN120803545A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of monitoring rule engines, and more particularly, to a rule engine-based action execution method, a vehicle, and a storage medium in the technical field of monitoring rule engines. BACKGROUND
[0002] With the popularization of vehicle intelligence, vehicles can provide users with customized scene settings. For example, when the car machine of the vehicle is started, the car machine can turn on the air conditioner of the vehicle to provide a good experience for the user.
[0003] With the development of vehicle technology, after the vehicle is turned off, the car machine of the vehicle is in a hibernation state to maintain multiple functions of the vehicle after the vehicle is turned off. However, in actual applications, if the car machine of the vehicle is in a hibernation state, the customized scene set by the user may not be triggered or triggered at irregular times, so the user cannot determine the real trigger time of the customized scene set by the user in the vehicle, which brings a poor experience to the user. SUMMARY
[0004] The present application provides a rule engine-based action execution method, a vehicle, and a storage medium. The method can determine that the rule engine executes a preset action when it is determined that the car machine of the target vehicle is started, so as to timely obtain the timing of the rule engine executing the preset action, thereby enabling the user to timely determine whether the preset action is an action preset by the car machine.
[0005] In a first aspect, a rule engine-based action execution method is provided. The method includes:
[0006] In response to a start request of a target vehicle, starting a rule engine and playing a boot animation, the rule engine being configured to execute a corresponding action when the target vehicle meets a specific condition;
[0007] In a case where the rule engine is started, determining whether a preset action is executed through the rule engine and whether the boot animation is played, the preset action being an action executed after the target vehicle is started;
[0008] In a case where the boot animation is played, determining whether the preset action is executed through the rule engine based on a playing time length of the boot animation and vehicle state information of the target vehicle.
[0009] With the above scheme, the method can start a rule engine and play a boot-up animation in response to a start request of a target vehicle, the rule engine being configured to perform a corresponding action when the target vehicle meets a certain condition. In the case where the rule engine is started and completed, the target vehicle can be in a sleep state, and if the rule engine performs a preset action at this time, it is easy to cause the user to be unable to determine the execution time and triggering condition of the preset action. In this case, the preset action is not performed by the rule engine, and it is determined whether the boot-up animation is played completely. Based on the playing time length of the boot-up animation and the vehicle state information of the target vehicle, it is determined whether to perform the preset action by the rule engine. That is, in the case where it is determined that the target vehicle is started and the boot-up animation is played completely, it is determined whether the vehicle is in a sleep state by the vehicle state information of the target vehicle, and it is determined whether the rule engine is abnormally started by the playing time length of the boot-up animation, so as to determine that the rule engine performs the preset action, and the timing of the rule engine performing the preset action is obtained in time, and it is avoided that the user is unable to determine whether the preset action is a preset action of the vehicle.
[0010] In combination with the first aspect, in some possible implementation manners, the determining, based on the playing time length of the boot-up animation and the vehicle state information of the target vehicle, whether to perform the preset action by the rule engine comprises:
[0011] In the case where the playing time length is less than a preset playing time length, it is determined, based on the vehicle state information, whether to perform the preset action by the rule engine;
[0012] In the case where the playing time length is greater than or equal to the preset playing time length, it is determined not to perform the preset action by the rule engine.
[0013] With the above method, the target vehicle can perform the preset action by the rule engine only after the vehicle is started. However, the boot-up animation time length of the vehicle can determine whether the vehicle is started, and therefore, whether the vehicle is started can be determined based on the playing time length.
[0014] In combination with the first aspect, in some possible implementation manners, the vehicle state information comprises power state information and a vehicle mode, and the determining, based on the vehicle state information, whether to perform the preset action by the rule engine comprises:
[0015] In the case where the power state information indicates that the target vehicle is in a preset power state, it is determined, based on the vehicle mode, whether to perform the preset action by the rule engine;
[0016] In the case where the power state information indicates that the target vehicle is not in the preset power state, it is determined not to perform the preset action by the rule engine.
[0017] Through the above method, if the target vehicle is not in the preset power state, the target vehicle can not be powered on, and then the rule engine cannot execute the preset action, that is, it is determined not to execute the preset action through the rule engine, that is, when it is determined that the target vehicle is not powered on, the preset action is not executed, so as to prevent the vehicle machine of the target vehicle from being too low in power.
[0018] In combination with the first aspect, in some possible implementation manners, the determining whether to execute the preset action through the rule engine based on the vehicle mode comprises:
[0019] In a case where the vehicle mode is the sentry mode, it is determined not to execute the preset action through the rule engine.
[0020] In a case where the vehicle mode is not the sentry mode, it is determined to execute the preset action through the rule engine.
[0021] In combination with the first aspect, in some possible implementation manners, the method further comprises:
[0022] In a case where the rule engine is started and completed, the current vehicle mode signal is acquired.
[0023] In a case where the current vehicle mode signal is same as the historical vehicle mode signal acquired last time, the vehicle mode corresponding to the current vehicle mode signal is determined as the vehicle mode in the vehicle state information.
[0024] In a case where the current vehicle mode signal is different from the historical vehicle mode signal acquired last time, it is determined whether the boot animation of the target vehicle is completed.
[0025] Through the above method, in actual application, the current vehicle mode signal is different from the historical vehicle mode signal acquired last time, which indicates that the vehicle mode of the target vehicle changes, in this case, the vehicle machine of the target vehicle can be starting, and therefore it is necessary to determine whether the boot animation of the target vehicle is completed, so as to determine whether the vehicle machine is started.
[0026] In combination with the first aspect, in some possible implementation manners, the determining, in a case where the vehicle mode is the sentry mode, not to execute the preset action through the rule engine comprises:
[0027] In a case where the vehicle mode is the sentry mode, identity information of a target object close to the target vehicle is determined.
[0028] In a case where the identity information indicates that the target object is not a preset object, it is determined not to execute the preset action through the rule engine, the preset object being an object having a use right of the target vehicle.
[0029] According to the method, different identity information corresponds to different preset actions, and after the identity information of the target object is determined, the corresponding preset action is executed according to the identity information, thereby providing personalized experience for the user.
[0030] With reference to the first aspect, in some possible implementation manners, after the rule engine is started and the preset action is not executed by the rule engine and it is determined whether the boot animation is completed, the method further includes:
[0031] In the case where the boot animation is not completed, the preset action is not executed by the rule engine and the boot animation is waited to be completed.
[0032] According to the method, in the case where the boot animation is not completed, it indicates that the vehicle machine of the vehicle is not started, and in this case, the vehicle is not completely started, and the execution capability of the vehicle machine is in a very low power consumption state, that is, the rule engine does not have enough power to execute the preset action, and therefore, in the case where the boot animation is not completed, the preset action is not executed by the rule engine and the boot animation is waited to be completed, thereby determining whether to execute the preset action after the vehicle machine of the target vehicle is started.
[0033] With reference to the first aspect, in some possible implementation manners, the method further includes:
[0034] In response to the voice instruction of the preset action, the voice instruction is recognized to obtain instruction information;
[0035] The preset action is created based on the instruction information.
[0036] According to the method, the preset action is created according to the voice instruction, so that the user can change the demand in time, and better experience is provided for the user.
[0037] Secondly, a rule engine-based action execution device is provided, and the device includes:
[0038] A starting and playing module is configured to start a rule engine and play a boot animation in response to a starting request of a target vehicle, the rule engine being configured to execute a corresponding action when the target vehicle meets a specific condition;
[0039] An executing and determining module is configured to, in the case where the rule engine is started, not execute a preset action by the rule engine and determine whether the boot animation is completed, the preset action being an action executed after the target vehicle is started.
[0040] A determining module is configured to, in the case where the boot animation is completed, determine whether to execute the preset action by the rule engine based on a playing time length of the boot animation and vehicle state information of the target vehicle.
[0041] In a third aspect, a vehicle is provided, comprising a memory and a processor. The memory is configured to store executable program code, and the processor is configured to invoke and run the executable program code from the memory, so that the vehicle performs the method performed by the rule engine-based action execution method described above.
[0042] In a fourth aspect, a computer program product is provided, comprising computer program code which, when run on a computer, causes the computer to perform the method performed by the rule engine-based action execution method described above.
[0043] In a fifth aspect, a computer-readable storage medium is provided, which stores computer program code which, when run on a computer, causes the computer to perform the method performed by the rule engine-based action execution method described above. BRIEF DESCRIPTION OF DRAWINGS
[0044] Figure 1 is a schematic diagram of an implementation environment of a rule engine-based action execution method provided by an embodiment of the present application;
[0045] Figure 2 is a schematic flowchart of a rule engine-based action execution method provided by an embodiment of the present application;
[0046] Figure 3 is a schematic flowchart of another rule engine-based action execution method provided by an embodiment of the present application;
[0047] Figure 4 is a schematic flowchart of another rule engine-based action execution method provided by an embodiment of the present application;
[0048] Figure 5 is a structural schematic diagram of a rule engine-based action execution apparatus provided by an embodiment of the present application;
[0049] Figure 6 is a structural schematic diagram of a vehicle provided by an embodiment of the present application. DETAILED DESCRIPTION
[0050] The technical solutions in the present application will be described in detail below with reference to the drawings. In the description of the embodiments of the present application, unless otherwise specified, “ / ” represents or, for example, A / B can represent A or B: “and / or” in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, “multiple” means two or more than two.
[0051] Hereinafter, the terms "first", "second", etc. are used only for the purpose of description, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second", etc. can explicitly or implicitly include one or more of the features.
[0052] With the rapid development of technology, after the vehicle is turned off, multiple functions of the vehicle need the vehicle machine to be in a power-on state. For example, the anti-theft function of the vehicle and the remote control function of the vehicle need the vehicle machine to be maintained in a working state to trigger the machine in real time. However, in the related art, the vehicle provides a user with a setting function of a custom scenario. For example, the custom scenario includes controlling the vehicle window to open when the vehicle machine starts. However, in actual application, in order to maintain the anti-theft function of the vehicle and the remote control function of the vehicle, the vehicle machine can be in a hibernation state all the time, so the setting function of the custom scenario of the vehicle can not be triggered or triggered at irregular times when the machine is in the hibernation state, so the user cannot determine the real trigger time of the setting function of the custom scenario. For example, if the vehicle is in a sentinel mode or a memory hibernation mode and the preset action of the rule engine is to open the vehicle window when the vehicle starts, the vehicle machine enters the hibernation state. In this case, the rule engine triggers the preset setting function of the custom scenario at irregular times, so the user cannot determine the real trigger time of the vehicle window opening, which brings a bad experience to the user.
[0053] In actual application, if the set custom scenario is to control the components of the vehicle to run after the vehicle starts, the rule engine and the boot animation of the vehicle will be performed at the same time after the vehicle starts. If the boot animation of the vehicle ends after the rule engine starts, the rule engine executes the preset custom scenario will end earlier than the boot animation, so the user cannot determine the time when the rule engine triggers the preset custom scenario. If the vehicle is in a memory hibernation mode, the vehicle machine is always in a hibernation state, so the rule engine will not execute the preset custom scenario. If the vehicle is in a sentinel mode and the machine is awakened, the rule engine will execute the preset custom scenario. However, the vehicle is in a sentinel mode, and the rule engine does not need to execute the preset custom scenario, so in this case, the rule engine will be triggered by mistake.
[0054] To solve at least one of the above problems, embodiments of the present application provide a method for executing an action based on a rule engine. The method includes: in response to a start request of a target vehicle, starting a rule engine and playing a start-up animation, the rule engine being configured to execute a corresponding action when the target vehicle meets a specific condition. In a case where the rule engine is started and completed, the target vehicle can be in a sleep state. If the rule engine executes a preset action at this time, it is easy to cause a user to be unable to determine the execution time of the preset action and the triggering condition. In this case, the preset action is executed by the rule engine and it is determined whether the start-up animation is played completely. The preset action is an action executed after the target vehicle is started. In a case where the start-up animation is played completely, it is determined whether to execute the preset action by the rule engine based on the playing time length of the start-up animation and vehicle state information of the target vehicle. That is, in a case where it is determined that the target vehicle is started and the start-up animation is played completely, it is determined whether the vehicle is in a sleep state based on the vehicle state information of the target vehicle, and it is determined whether the rule engine is started abnormally based on the playing time length of the start-up animation, so as to determine that the rule engine executes the preset action, and the timing of the rule engine executing the preset action is obtained in time, and it is avoided that the user is unable to determine whether the preset action is a preset action of the target vehicle in time.
[0055] Figure 1 FIG. 1 is an embodiment of an implementation environment of a method for executing an action based on a rule engine.
[0056] As shown in FIG. 1, the implementation environment includes a vehicle controller 110 and a trigger 120. Figure 1
[0057] The vehicle controller 110 is an important control unit of a vehicle, which can acquire related data of the vehicle and control the vehicle to execute a corresponding operation based on the related data. For example, the vehicle controller 110 can acquire a state of the vehicle, and determine whether to control the trigger of the vehicle to execute a preset action according to the state data of the vehicle.
[0058] The trigger 120 is configured to receive a trigger instruction sent by the vehicle controller 110, and control a corresponding component of the vehicle to execute an action. For example, in a case where a machine of the vehicle is turned on, the trigger 120 receives a trigger instruction sent by the vehicle controller 110, and controls a window of the vehicle to be opened based on the trigger instruction, the trigger instruction being configured to open the window of the vehicle.
[0059] Figure 2 FIG. 2 is an embodiment of a flowchart of a method for executing an action based on a rule engine.
[0060] As shown in FIG. 2, the method includes the following steps. Figure 2 As shown, taking the vehicle controller as an example of the execution subject, a rule engine-based action execution method provided in the application is described, and the method 200 includes the following steps 201-203.
[0061] Step 201, in response to a start request of a target vehicle, starting a rule engine and playing a startup animation, the rule engine being used to execute a corresponding action when the target vehicle meets a specific condition.
[0062] The target vehicle is a vehicle that sets a specific scene action according to user personalized needs. For example, the target vehicle can be a vehicle that opens the vehicle window when the vehicle machine is started. The start request is used to power on the vehicle. The rule engine is a rule-based system. The rule engine is used to execute a corresponding action when the target vehicle meets a specific condition. The rule engine can define and manage business rules, and the rule engine does not need to be hard-coded into the application. When the vehicle is started, the vehicle machine will play a startup animation.
[0063] It should be understood that the start request of the target vehicle means that the system of the vehicle is powered on, and starting the rule engine means starting to determine whether to execute a preset action. When the target vehicle is powered on, the vehicle machine of the target vehicle will play a startup animation. The specific condition is a condition set in advance by the target vehicle, and the action executed at the specific condition is an action set in advance by the target vehicle. For example, the specific condition is to start the vehicle machine, and the action executed at the specific condition is to open the vehicle window when the vehicle is started.
[0064] Step 202, in the case where the rule engine is started, without executing a preset action through the rule engine and determining whether the startup animation is played, the preset action being an action executed after the target vehicle is started.
[0065] The preset action is an action of controlling a component of the vehicle set by the vehicle. The preset action is an action executed after the target vehicle is started. For example, the preset action is to control the vehicle window to open after the target vehicle is started.
[0066] It should be understood that the rule engine can be triggered only after the rule engine is started. Since the preset action is an action executed after the target vehicle is started, in actual applications, the target vehicle may be in a dormant state after being started. If the rule engine executes the preset action at this time, it is easy to cause the user to be unable to determine the execution time and triggering condition of the preset action. In this case, in the case where the rule engine is started, the preset action is not executed through the rule engine, and it is determined whether the startup animation is played. That is, the startup of the vehicle machine of the target vehicle is determined first, and then it is determined whether the preset action is executed through the rule engine.
[0067] Step 203, in the case where the boot animation is played, based on the playing time length of the boot animation and the vehicle state information of the target vehicle, determine whether to execute the preset action through the rule engine.
[0068] The vehicle state information is used to determine whether the vehicle is in a sleep state.
[0069] It should be understood that the completion of the boot animation playing indicates that the vehicle machine has been started. However, in actual application, the target vehicle can still be in a sleep state. If the target vehicle is in a sleep state, directly executing the preset action through the rule engine will make the user unable to determine the triggering time and mechanism of the preset action. Therefore, it is necessary to determine whether the target vehicle is in a sleep state based on the vehicle state information of the target vehicle. In actual application, the rule engine can also be abnormally started. If the rule engine is abnormally started, it is easy to cause the vehicle machine to be unable to be normally initialized, which will prolong the starting time of the vehicle machine, that is, the playing time length of the boot animation will increase. Therefore, it is possible to determine whether to execute the preset action through the rule engine based on the playing time length of the boot animation and the vehicle state information of the target vehicle.
[0070] The embodiment of the present application provides an action execution method based on a rule engine. The method can start a rule engine and play a boot animation in response to a starting request of a target vehicle. The rule engine is used to execute a corresponding action when the target vehicle meets a specific condition. In the case where the rule engine is started, the target vehicle can be in a sleep state all the time. If the rule engine executes a preset action at this time, it is easy to cause the user to be unable to determine the execution time and triggering condition of the preset action. In this case, the preset action is not executed through the rule engine, and it is determined whether the boot animation is played. The preset action is an action executed after the target vehicle is started. In the case where the boot animation is played, based on the playing time length of the boot animation and the vehicle state information of the target vehicle, it is determined whether to execute the preset action through the rule engine. That is, in the case where it is determined that the vehicle machine of the target vehicle is started and the boot animation is played, whether the vehicle is in a sleep state is judged through the vehicle state information of the target vehicle, and whether the rule engine is abnormally started is judged through the playing time length of the boot animation, so as to determine whether the rule engine executes the preset action, and then the timing of the rule engine executing the preset action is obtained in time, and it is avoided that the user is unable to determine whether the preset action is a vehicle machine preset action in time.
[0071] It should be noted that the steps 201-203 are a simple description of the action execution method based on the rule engine provided by the embodiment of the present application. The action execution method based on the rule engine provided by the embodiment of the present application will be described in more detail in combination with some examples, which are described in the following. Figure 3For example, taking the vehicle controller as the execution subject, the method comprises the following steps 301-304.
[0072] Step 301, in response to a start request of a target vehicle, starting a rule engine and playing a start-up animation, the rule engine being used to execute a corresponding action when the target vehicle meets a specific condition.
[0073] It should be understood that the start request of the target vehicle represents the power-on of the system of the vehicle, and starting the rule engine represents starting to determine whether to execute a preset action. When the target vehicle is powered on, the vehicle of the target vehicle will play a start-up animation. The specific condition is a condition set in advance by the target vehicle, and the action executed when the specific condition is met is an action set in advance by the target vehicle. For example, the specific condition is to start the car machine, and the action executed when the specific condition is met is to open the window of the vehicle when starting the vehicle.
[0074] The start request is used to start the target vehicle. The car machine animation is used to display dynamic visual content. The rule engine is used to execute a corresponding action when the target vehicle meets a specific condition.
[0075] In some embodiments, the start request of the target vehicle is generated in response to a click operation, a gesture operation, and a touch instruction on the target vehicle.
[0076] In some embodiments, the start request is generated based on a key click operation on the target vehicle, a key click operation on a remote key of the target vehicle, and a touch operation on the target vehicle.
[0077] For example, the start request is generated through a touch operation on a mobile terminal in communication connection with the target vehicle.
[0078] In some embodiments, the start-up animation of the car machine is played through a vehicle screen of the target vehicle.
[0079] Step 302, in the case where the rule engine is started, a preset action is not executed through the rule engine, and it is determined whether the start-up animation is played, the preset action being an action executed after the target vehicle is started.
[0080] It should be understood that the preset action is determined whether to be executed by the rule engine after the rule engine is started. Since the preset action is an action executed after the target vehicle is started, in actual application, the target vehicle can be in a dormant state after the starting is completed. If the rule engine executes the preset action at this time, it is easy to cause the user to be unable to determine the execution time and the triggering condition of the preset action. In this case, the preset action is not executed by the rule engine after the rule engine is started, and it is determined whether the starting animation is played.
[0081] The preset action is an action executed after the target vehicle is started.
[0082] In a possible implementation, it is determined whether the starting animation of the target vehicle is played based on an end signal of the starting animation.
[0083] In some embodiments, it is determined that the starting animation of the target vehicle is played in a case where the end signal of the starting animation is marked as 1.
[0084] In some embodiments, it is determined that the starting animation of the target vehicle is not played in a case where the end signal of the starting animation is marked as 0.
[0085] It can be understood that the "1" and "0" of the end signal mark are examples of the embodiments of the present application, and in actual application, they can be adjusted according to actual conditions.
[0086] In this implementation, it is determined whether the starting animation of the target vehicle is played based on the end signal of the starting animation, and the accuracy is relatively high.
[0087] In step 303, it is determined whether the preset action is executed by the rule engine based on the playing time length of the starting animation and the vehicle state information of the target vehicle in a case where the starting animation is played.
[0088] It should be understood that in actual application, since the target vehicle can also be in a dormant state, if the target vehicle is in a dormant state, directly executing the preset action through the rule engine can make the user unable to determine the triggering time and mechanism of the preset action, and thus it is necessary to determine whether the target vehicle is in a dormant state based on the vehicle state information of the target vehicle. In actual application, the rule engine can also be abnormally started, and if the rule engine is abnormally started, it is easy to cause the car machine to be unable to normally initialize, and then the starting time of the car machine is prolonged, that is, the playing time of the starting animation is increased, and thus whether the preset action is executed through the rule engine can be determined based on the playing time of the starting animation and the vehicle state information of the target vehicle.
[0089] In some embodiments, in a case where the playing time is greater than or equal to the preset playing time, it is determined that the preset action is not executed through the rule engine.
[0090] It should be understood that the playing time of the starting animation being greater than or equal to the preset playing time indicates that the rule engine is abnormally started, and thus it is determined that the preset action is not executed through the rule engine.
[0091] In some embodiments, in a case where the playing time is less than the preset playing time, whether the preset action is executed through the rule engine is determined based on the vehicle state information.
[0092] It should be understood that the playing time of the starting animation being less than the preset playing time indicates that the rule engine is normally started, and thus it is determined that the preset action is executed through the rule engine.
[0093] The preset playing time is automatically set by the whole vehicle controller, and embodiments of the present application do not set this, for example, the playing time of the starting animation is 1 minute.
[0094] It should be understood that different car machines will be installed for different target vehicles, and then different cars will correspond to different starting animations, and in this case, different preset playing times need to be determined for different target vehicles.
[0095] In some embodiments, the historical starting animation time of the car machine of the target vehicle is obtained, and the average value of the historical starting animation time is determined as the preset playing time.
[0096] For example, the historical starting animation time of the car machine of the target vehicle is 50 seconds, 45 seconds, 1 minute, and 1 minute and 5 seconds, respectively. The preset playing time of the target vehicle is 55 seconds.
[0097] It should be understood that if the target vehicle is in a hibernation state, directly executing the preset action through the rule engine makes it impossible for the user to determine the triggering time and mechanism of the preset action, and thus it is necessary to determine whether the target vehicle is in a hibernation state based on vehicle state information of the target vehicle.
[0098] The following describes content of determining whether to execute the preset action through the rule engine based on the vehicle state information.
[0099] The vehicle state information includes power state information and a vehicle mode.
[0100] The power state information is used to determine a current power state of the vehicle. The vehicle mode includes a sentinel mode and a memory hibernation mode of the vehicle. The memory hibernation mode indicates that a head unit of the target vehicle enters a standby state, and when the target vehicle is in the memory hibernation mode, a vehicle controller saves current state information and data in the memory of the target vehicle to the memory instead of completely shutting down the device.
[0101] In a possible implementation, in a case where the power state information indicates that the target vehicle is in a preset power state, it is determined whether to execute the preset action through the rule engine based on the vehicle mode.
[0102] The preset power state is used to indicate that the power system is in an activated state. For example, the power state of the target vehicle is in a normal state. The power state of the target vehicle in the normal state indicates that the target vehicle is in a normal running state. The power state information of the vehicle further includes a non-preset power state. The non-preset power state includes a start, an off, a power-on non-start, and a shutdown state.
[0103] It should be understood that the head unit of the target vehicle is in an open state, and the head unit can be in a just-started state or the head unit can be in a non-hibernation state. In this case, it is necessary to determine whether the head unit is in a normal start state based on the power state information. The power state information indicating that the target vehicle is in the preset power state indicates that the vehicle is in a drivable state, in which case the vehicle is in a power-on mode, and the start of the head unit is a normal start state. However, if the vehicle is in a different vehicle mode state, the start time of the head unit is different, and the function after the head unit is started is different. Therefore, in this case, it is necessary to determine whether to execute the preset action through the rule engine based on the vehicle mode.
[0104] In some embodiments, in a case where the vehicle mode is a sentinel mode, it is determined not to execute the preset action through the rule engine.
[0105] The vehicle mode is the sentry mode. In the case that the vehicle mode is the sentry mode, the vehicle surrounding environment is continuously monitored based on the vehicle camera, sensor and computing unit. Once a slight collision or friction is sensed, the sentry mode arouses the vehicle network to perform a series of operations such as recording, alarming, warning and double flashing.
[0106] It should be understood that the vehicle mode is the sentry mode indicates that the target vehicle is in a dormant state. Even if the target vehicle is started by the vehicle machine, the vehicle machine is started abnormally. In this case, the vehicle mode is the sentry mode indicates that the vehicle does not meet the specific conditions. In this case, it is determined that the preset action is not executed by the rule engine.
[0107] Optionally, after the above steps are executed, the following steps can also be executed.
[0108] It should be understood that the vehicle mode is the sentry mode indicates that the vehicle is in a safe monitoring mode. However, in actual application, different users may have different needs for the vehicle. Therefore, whether to start the rule engine of the vehicle can be determined based on different target objects. For example, in the case that the target vehicle is started, user A is more inclined to control the ventilation of the vehicle. Therefore, the preset action set by user A is to open the window. However, in the case that the target vehicle is started, user B is more inclined to open the music. Therefore, the preset action set by user B is to play the music. In the case that the target vehicle is started, user C is more inclined to open the navigation system. Therefore, the preset action set by user C is to start the navigation.
[0109] In a possible implementation, in the case that the vehicle mode is the sentry mode, identity information of a target object close to the target vehicle is determined. In the case that the identity information indicates that the target object is not a preset object, it is determined that the preset action is not executed by the rule engine. The preset object is an object having a use right of the target vehicle.
[0110] The identity information is used to determine the identity of the target object.
[0111] It should be understood that in actual application, different users may have different needs for the vehicle. Therefore, whether to start the rule engine of the vehicle can be determined based on different target objects.
[0112] In this implementation, since different identity information corresponds to different preset actions, after the identity information of the target object is determined, the corresponding preset action can be executed according to the identity information, so as to provide personalized experience for the user.
[0113] In order to describe the above implementation in more detail, the above implementation is described in the following parts.
[0114] The first part describes the content of the identity information of the target object close to the target vehicle when the vehicle mode is the sentry mode.
[0115] It should be understood that in actual applications, the identity information of the target object close to the target vehicle can be determined by the user's voice and facial features.
[0116] In a possible implementation, a voice instruction of a user is acquired, and voiceprint recognition is performed on the voice instruction to obtain a voiceprint feature corresponding to the voice instruction.
[0117] The voiceprint recognition refers to analyzing the voice instruction to identify identity information corresponding to the voice instruction. The voiceprint feature refers to a feature used to identify the identity of a speaker. The voice instruction is used to start the vehicle machine.
[0118] In some embodiments, in response to the voice instruction, the voice instruction is input into a voiceprint feature extraction model, and voiceprint feature extraction is performed on the voice instruction by the voiceprint feature extraction model to obtain a voiceprint feature corresponding to the voice instruction.
[0119] The voiceprint feature includes a handcrafted feature and a deep feature. The handcrafted feature is extracted from a feature parameter in the voiceprint feature. The deep feature refers to a voiceprint feature learned by a deep learning algorithm.
[0120] In some embodiments, the voice instruction is input into a voiceprint feature extraction model, and the voice instruction is processed to obtain a feature parameter of the voiceprint feature, the feature parameter being used to represent the voiceprint feature, and the voiceprint feature extraction model being a handcrafted feature extraction module.
[0121] The feature parameter includes an amplitude and a frequency. The amplitude is used to reflect the strength of the sound. The frequency is used to reflect the frequency distribution and intensity of the sound.
[0122] For example, the voice instruction is input into a mel filter to process the voice instruction, thereby obtaining a feature parameter (mel frequency cepstral coefficient) of the voiceprint feature, the mel frequency cepstral coefficient including the amplitude and the frequency.
[0123] In some embodiments, the voice instruction is input into a voiceprint feature extraction model to extract a voiceprint feature of the voice instruction, and the voiceprint feature extraction model is a deep learning algorithm model.
[0124] In some embodiments, a time sequence feature in the voice instruction is obtained by a long short-term memory network (LSTM), and the time sequence feature is analyzed and applied to obtain the voiceprint feature.
[0125] In some embodiments, the relationship between each element in the voice instruction is encoded into the sequence in the voice instruction based on an attention mechanism to obtain a feature encoding of the voiceprint feature.
[0126] It should be understood that, due to the diversity of the environment in which the voice instruction is obtained, the environment in which the voice instruction is collected can be relatively noisy. In order to reduce the influence of background noise on the extraction of the voiceprint feature, the collected voice instruction can be preprocessed.
[0127] In some embodiments, the collected voice instruction is subjected to noise reduction processing to remove unnecessary background noise; and the voiceprint feature is extracted from the noise-reduced voice signal based on an acoustic feature extraction algorithm.
[0128] For example, the voiceprint feature of the voice instruction to be recognized is extracted based on a deep neural network. Since the voiceprint feature of the voice instruction to be recognized is extracted by the deep neural network, the redundant information in the voice information can be removed, and the extraction accuracy of the voiceprint feature can be improved.
[0129] In this case, in response to the voice instruction, the voiceprint recognition is performed on the voice instruction to obtain the voiceprint feature corresponding to the voice instruction. Since the voice instruction is preprocessed, the redundant information in the voice information can be removed, and the extraction accuracy of the voiceprint feature can be improved.
[0130] In this implementation, in response to the voice instruction, the voice instruction is input into a voiceprint feature extraction model, and the voiceprint feature extraction model is used to extract the voiceprint feature of the voice instruction to obtain the voiceprint feature corresponding to the voice instruction, which has high accuracy.
[0131] In one possible implementation, the face image of the user is obtained by an image acquisition device, and the face feature of the user is obtained by performing feature extraction on the face image.
[0132] In some embodiments, the face image is input into a deep learning model, and the face feature of the user is obtained by filtering, recognizing and learning the face image by the deep learning model.
[0133] For example, the voice instruction includes instructions such as “open the window when starting the machine”, “open the window when the machine is started”, and “wait until the machine is started to open the window”. The voice instruction is filtered, recognized and learned to obtain the information carried by the voice instruction, which is to open the window of the vehicle.
[0134] In some embodiments, the voice instruction is obtained by a voiceprint acquisition device, and the voiceprint feature corresponding to the voice instruction is obtained by performing voiceprint recognition on the voice instruction.
[0135] In this implementation, the face feature of the user is obtained by performing feature extraction on the face image of the user.
[0136] In a possible implementation, the identity information of the target object close to the target vehicle is determined based on the voiceprint feature or the face feature.
[0137] It should be understood that the distribution of formants in the spectrogram of different people's voices is different, so whether it is the same person can be determined by comparing two voiceprint features.
[0138] In some embodiments, the voiceprint feature is matched in a plurality of candidate voiceprint features to obtain a target voiceprint feature corresponding to the voiceprint feature in the plurality of candidate voiceprint features, and the target voiceprint feature is a candidate voiceprint feature that matches the voiceprint feature successfully. The identity information corresponding to the target voiceprint feature is determined as the identity information corresponding to the user.
[0139] The plurality of candidate voiceprint features correspond to a plurality of candidate identity information.
[0140] In some embodiments, voiceprint recognition is performed on a plurality of voice instructions of a plurality of users to obtain a plurality of voiceprint features corresponding to the plurality of voice instructions, wherein the plurality of voiceprint features are voiceprint features of target objects pre-stored in the vehicle machine.
[0141] In this implementation, the voiceprint feature corresponding to the voice instruction is matched in a plurality of candidate voiceprint features to obtain a target voiceprint feature corresponding to the voiceprint feature in the plurality of candidate voiceprint features, and the target voiceprint feature is a candidate voiceprint feature that matches the voiceprint feature successfully. The identity information corresponding to the target voiceprint feature is determined as the identity information corresponding to the voice instruction, accurately and quickly determining the identity information of the voice instruction.
[0142] In a possible implementation, a plurality of voiceprint features and identity information corresponding to the plurality of voiceprint features are stored in the vehicle machine.
[0143] In some embodiments, a voice instruction collected by a voiceprint collection device within a preset time is obtained, a voiceprint feature of the voice instruction is extracted, and the voiceprint feature of the voice instruction and the identity information of the user are stored in the vehicle machine.
[0144] For example, the voiceprint feature of Xiaoa is the first voiceprint feature, and the identity information of Xiaoa is the first identity information. The first voiceprint feature and the first identity information are stored in the vehicle machine.
[0145] In this implementation, a plurality of voiceprint features and identity information corresponding to the plurality of voiceprint features are stored in the vehicle machine, facilitating corresponding search for the voiceprint feature.
[0146] In a possible implementation, whether to trigger the addition of the voiceprint feature is determined based on a trigger state of a vehicle switch.
[0147] The vehicle switch is used to indicate whether to trigger the adding of the voiceprint feature. The vehicle switch includes a virtual switch and a physical switch.
[0148] In some embodiments, the trigger state of the virtual switch in the display interface of the car machine or the physical switch of the vehicle triggers the adding of the voiceprint feature.
[0149] For example, if the user presses the physical switch “start adding” in the vehicle, the adding of the voiceprint feature is triggered.
[0150] For another example, if the user presses the virtual switch “start adding” on the center screen, the adding of the voiceprint feature is triggered.
[0151] In some embodiments, after receiving the instruction of triggering the adding of the voiceprint feature, the car machine displays adding voiceprint feature prompt information on the display screen.
[0152] The prompt information is used to prompt the user to read some specified content.
[0153] In this implementation, whether to trigger the adding of the voiceprint feature is determined based on the trigger state of the vehicle switch. That is, the driver can actively add the voiceprint feature, which brings a better vehicle experience to the driver.
[0154] In a possible implementation, the face feature is matched in a plurality of candidate face features to obtain a target face feature corresponding to the face feature in the plurality of candidate face features, the target face feature being a candidate face feature that is successfully matched with the face feature; and identity information corresponding to the target face feature is determined as identity information corresponding to the user.
[0155] The plurality of candidate voiceprint features correspond to a plurality of candidate identity information.
[0156] In some embodiments, the face images of a plurality of users are subjected to feature recognition to obtain a plurality of face features corresponding to the plurality of face images, wherein the plurality of face features are face features of a target object pre-stored in the car machine.
[0157] In this implementation, since the target face feature is a candidate face feature that is successfully matched with the face feature, the identity information corresponding to the target face feature is determined as the identity information corresponding to the voice instruction, so that the identity information of the voice instruction is accurately and quickly determined.
[0158] The second part describes the content of determining not to execute the preset action through the rule engine in the case where the identity information indicates that the target object is not a preset object.
[0159] The preset object is an object that has a use right of the target vehicle.
[0160] It should be understood that the target object not being the preset object indicates that the target object does not add a specific preset action in the target vehicle, in which case, in order to avoid disturbing the target object, it is determined not to execute the preset action through the rule engine.
[0161] In some embodiments, in a case where the vehicle mode is not the sentinel mode, it is determined to execute the preset action through the rule engine.
[0162] It should be understood that the vehicle mode not being the sentinel mode indicates that the machine of the target vehicle is turned on, which indicates that the machine startup is a normal startup, and then the vehicle mode not being the sentinel mode indicates that the vehicle meets a specific condition, in which case, it is determined to execute the preset action through the rule engine.
[0163] Optionally, before the above steps are executed, the following steps can also be executed.
[0164] In a possible implementation, in a case where the rule engine startup is completed, a current vehicle mode signal is acquired; in a case where the current vehicle mode signal is the same as a historical vehicle mode signal acquired last time, a vehicle mode corresponding to the current vehicle mode signal is determined as the vehicle mode in the vehicle state information; in a case where the current vehicle mode signal is different from the historical vehicle mode signal acquired last time, it is determined whether a startup animation of the target vehicle is played completely.
[0165] It should be understood that the rule engine startup being completed indicates that the rule engine can be normally used, and in actual application, in a case where the vehicle mode is in the sentinel mode or the memory hibernation mode, the whole vehicle is always in a power-on state, in which case, the machine of the vehicle can also be always in a hibernation state, that is, in a case where the vehicle mode is in the sentinel mode or the memory hibernation mode, the machine can be always in a startup state, and therefore it is necessary to determine whether the current vehicle mode of the vehicle is changed based on the current vehicle mode signal and the historical vehicle mode signal acquired last time, so as to further determine whether the machine of the target vehicle is always in a startup state.
[0166] In some embodiments, in a case where the rule engine startup is completed, the current vehicle mode signal is acquired based on a controller area network bus.
[0167] In some embodiments, in a case where the current vehicle mode signal is a sentinel mode signal and the historical vehicle mode signal acquired last time is also a sentinel mode signal, it is determined that the current vehicle mode signal is the same as the historical vehicle mode signal acquired last time; and the sentinel mode is determined as the vehicle mode in the vehicle state information.
[0168] In some embodiments, in a case where the current vehicle mode signal is different from the last acquired historical vehicle mode signal, it is determined whether the boot-up animation of the target vehicle is played to completion.
[0169] It should be understood that in a case where the vehicle mode is in the memory hibernation mode, the vehicle head unit is in a hibernation state, and the rule engine does not execute the preset custom scenario. To avoid the above problems, it is determined whether the preset action is executed by the rule engine based on the current vehicle mode signal and the last acquired historical vehicle mode signal.
[0170] In some embodiments, in a case where the current vehicle mode signal is a memory hibernation mode signal and the last acquired historical vehicle mode signal is also a memory hibernation mode signal, it is determined that the preset action is executed by the rule engine; in a case where the current vehicle mode signal is different from the last acquired historical vehicle mode signal, it is determined whether the boot-up animation of the target vehicle is played to completion.
[0171] It should be understood that in actual applications, the current vehicle mode signal and the last acquired historical vehicle mode signal are different, indicating that the vehicle mode of the target vehicle has changed. In this case, the head unit of the target vehicle can be starting up, and therefore it is necessary to determine whether the boot-up animation of the target vehicle is played to completion, so as to determine whether the head unit has started up.
[0172] In a possible implementation, in a case where the power state information indicates that the target vehicle is not in the preset power state, it is determined that the preset action is not executed by the rule engine.
[0173] The preset power state is a normal running state. The non-preset power state includes a starting up state, an engine off state, a power-on but not started state, and a shutdown state.
[0174] It should be understood that in actual applications, since the power state information also includes the starting up state, the engine off state, the power-on but not started state, and the shutdown state, if the vehicle is in the non-preset power state, it indicates that the power system of the vehicle has not started up. In this case, the target vehicle cannot immediately travel, and the preset action cannot be executed by the rule engine in a case where the vehicle is not powered on. That is, in a case where the power state information indicates that the target vehicle is not in the preset power state, it is determined that the preset action is not executed by the rule engine.
[0175] In this implementation, if the target vehicle is not in the preset power state, the target vehicle can not be powered on, and the rule engine cannot execute the preset action. That is, it is determined that the preset action is not executed by the rule engine, that is, the preset action is not executed when it is determined that the target vehicle is not powered on, so as to prevent the head unit of the target vehicle from being low on power.
[0176] The following describes the content of the preset action executed by the rule engine.
[0177] In a possible implementation, the trigger is triggered by the rule engine, and the preset action is executed based on the trigger.
[0178] It should be understood that the preset action needs to be created in the target vehicle before the preset action is executed by the rule engine.
[0179] In a possible implementation, in response to the voice instruction of the preset action, the voice instruction is identified to obtain instruction information, and the preset action is created based on the instruction information.
[0180] In some embodiments, in response to the voice instruction, the voice instruction is input into a voice fuzzy recognition model, the voice instruction is fuzzy recognized by the voice fuzzy recognition model, and information carried by the voice instruction is obtained.
[0181] The voice instruction includes fuzzy voice. Fuzzy voice refers to voice that is not clear enough, contains ambiguity, or is changeable.
[0182] In some embodiments, in response to the voice instruction, the voice instruction is input into a deep learning model, and the voice instruction is filtered, recognized, and learned by the deep learning model to obtain instruction information carried by the voice instruction.
[0183] For example, the voice instruction includes instructions such as “open the window when starting the vehicle”, “open the window when starting the vehicle”, and “wait to open the window when starting the vehicle”. The voice instruction is filtered, recognized, and learned to obtain information carried by the voice instruction, that is, the window is opened when the vehicle starts.
[0184] In some embodiments, the preset action is created based on the instruction information carried by the voice instruction.
[0185] In this implementation, the preset action is created according to the voice instruction, so that the user can change the demand in time, and a better experience is provided for the user.
[0186] Step 304, in the case where the boot animation is not played, the preset action is not executed by the rule engine and the boot animation is waited to be played.
[0187] It should be understood that the boot animation not being played means that the vehicle machine has not been started, in this case, the vehicle has not been completely started, and the execution capability of the vehicle machine is in a very low power consumption state, that is, the rule engine does not have enough power to execute the preset action, and therefore the preset action is not executed by the rule engine and the boot animation is waited to be played in the case where the boot animation is not played.
[0188] An embodiment of the present application provides a rule engine-based action execution method. The method can, in response to a target vehicle's startup request, activate a rule engine and play a startup animation. The rule engine is configured to execute a corresponding action when the target vehicle meets specific conditions. If the rule engine is successfully started, the target vehicle may have been in a dormant state. If the rule engine executes a preset action at this time, it is likely that the user cannot determine the execution time and triggering conditions of the preset action. In this case, the rule engine does not execute the preset action and determine whether the startup animation has been completed. The preset action is the action executed after the target vehicle has been started. If the startup animation has been completed, the rule engine determines whether to execute the preset action based on the playback duration of the startup animation and the vehicle status information of the target vehicle. In other words, if it is determined that the target vehicle's vehicle computer is started and the startup animation has been completed, the vehicle status information of the target vehicle is used to determine whether the vehicle is in a dormant state. The duration of the startup animation is used to determine whether the rule engine has been abnormally started. This determines whether the rule engine executes the preset action, thereby promptly determining the timing for the rule engine to execute the preset action, avoiding the user's inability to promptly determine whether the preset action is the vehicle computer preset action. If the boot animation is not finished playing, the preset action is not executed by the rule engine and the boot animation is finished playing. In other words, the boot animation is used to determine whether the vehicle's computer is started normally, so that the user can avoid being unable to accurately determine the execution time of the vehicle's preset action.
[0189] Figure 4 This is a schematic flowchart of an action execution method based on a rule engine provided in an embodiment of the present application.
[0190] For example, Figure 4 As shown, taking the execution subject as the vehicle controller as an example, an action execution method based on a rule engine of the present application is described, and the method 400 includes the following steps 401-405.
[0191] Step 401: In response to a start request from a target vehicle, determine to start a rule engine.
[0192] It is understandable that the specific implementation of step 401 can refer to the aforementioned step 301, and will not be described in detail here.
[0193] Step 402: When the rule engine is started, determine whether the start-up animation of the target vehicle is completed.
[0194] It is understandable that the specific implementation of step 402 can refer to the aforementioned step 302, which will not be described in detail here.
[0195] Step 403, in the case that the starting animation of the target vehicle is played, whether the preset action is executed through the rule engine is determined based on the vehicle mode of the target vehicle and the power state information.
[0196] It can be understood that the specific implementation of step 403 can refer to the foregoing step 303, which will not be repeated here.
[0197] Step 404, in the case that the power state information indicates that the target vehicle is in the preset power state and the vehicle mode of the target vehicle is not the sentinel mode, it is determined that the preset action is executed through the rule engine.
[0198] It can be understood that the specific implementation of step 404 can refer to the foregoing step 303, which will not be repeated here.
[0199] Step 405, in the case that the power state information indicates that the target vehicle is not in the preset power state or the vehicle mode of the target vehicle is the sentinel mode, it is determined that the preset action is not executed through the rule engine.
[0200] It can be understood that the specific implementation of step 405 can refer to the foregoing step 303, which will not be repeated here.
[0201] Figure 5 is a structural schematic diagram of an action execution device based on a rule engine provided by the embodiment of the application.
[0202] Exemplarily, the device 500 includes:
[0203] The starting and playing module 501 is configured to start the rule engine and play the starting animation in response to a starting request of a target vehicle, the rule engine being configured to execute a corresponding action when the target vehicle meets a specific condition;
[0204] The execution and determination module 502 is configured to, in the case that the rule engine is started, not execute a preset action through the rule engine and determine whether the starting animation is played, the preset action being an action executed after the target vehicle is started;
[0205] The determination module 503 is configured to, in the case that the starting animation is played, determine whether the preset action is executed through the rule engine based on a playing time length of the starting animation and vehicle state information of the target vehicle.
[0206] In a possible implementation, the device 500 includes:
[0207] The determination module 503 is configured to, in the case that the playing time length is less than a preset playing time length, determine whether the preset action is executed through the rule engine based on the vehicle state information;
[0208] The determining module 503 is configured to determine not to execute the preset action through the rule engine in a case where the playing duration is greater than or equal to the preset playing duration.
[0209] In a possible implementation, the apparatus 500 includes:
[0210] The determining module 503 is configured to determine, based on the vehicle mode, whether to execute the preset action through the rule engine in a case where the power state information indicates that the target vehicle is in a preset power state.
[0211] The determining module 503 is configured to determine not to execute the preset action through the rule engine in a case where the power state information indicates that the target vehicle is not in the preset power state.
[0212] In a possible implementation, the apparatus 500 includes:
[0213] The determining module 503 is configured to determine not to execute the preset action through the rule engine in a case where the vehicle mode is the sentry mode.
[0214] The determining module 503 is configured to determine to execute the preset action through the rule engine in a case where the vehicle mode is not the sentry mode.
[0215] In a possible implementation, the apparatus 500 includes:
[0216] The determining module 503 is configured to acquire a current vehicle mode signal in a case where the rule engine is started and completed.
[0217] The determining module 503 is configured to determine, in a case where the current vehicle mode signal is the same as a historical vehicle mode signal acquired last time, a vehicle mode corresponding to the current vehicle mode signal as the vehicle mode in the vehicle state information.
[0218] The determining module 503 is configured to determine, in a case where the current vehicle mode signal is different from the historical vehicle mode signal acquired last time, whether a boot animation of the target vehicle is played completely.
[0219] In a possible implementation, the apparatus 500 includes:
[0220] The determining identity information module is configured to determine identity information of a target object close to the target vehicle in a case where the vehicle mode is the sentry mode.
[0221] The determining module 503 is configured to determine not to execute the preset action through the rule engine in a case where the identity information indicates that the target object is not a preset object, the preset object being an object having a use right of the target vehicle.
[0222] In a possible implementation, the apparatus 500 includes:
[0223] The execution module is configured to, in response to the boot animation not being played to completion, not execute the preset action through the rule engine and wait for the boot animation to be played to completion.
[0224] In a possible implementation, the apparatus 500 includes:
[0225] The identification module is configured to, in response to the voice instruction of the preset action, identify the voice instruction to obtain instruction information.
[0226] The creation module is configured to create the preset action based on the instruction information.
[0227] Figure 6 is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
[0228] As shown in the figure, Figure 6 The vehicle 600 includes a memory 601 and a processor 602, where the memory 601 stores executable program code 603, and the processor 602 is configured to invoke and execute the executable program code 603 to execute a rule engine-based action execution method.
[0229] In addition, an apparatus provided in an embodiment of the present application can include a memory and a processor, where the memory stores executable program code, and the processor is configured to invoke and execute the executable program code to execute a rule engine-based action execution method provided in an embodiment of the present application.
[0230] The embodiment can divide the apparatus into functional modules according to the above method examples, for example, each functional module can be corresponding, or two or more functions can be integrated into one processing module, and the integrated module can be implemented in the form of hardware. It should be noted that the division of modules in the embodiment is illustrative, and is only a logical function division, and another division mode can be used in actual implementation.
[0231] In the case of dividing each functional module corresponding to each function, the apparatus can further include a determination identity information module, an identification module, and a creation module, and the like. It should be noted that all related content of each step involved in the above method embodiments can be referred to the function description of the corresponding functional module, which will not be repeated here.
[0232] It should be understood that the apparatus provided in the embodiment is used to execute the above rule engine-based action execution method, and thus can achieve the same effect as the above implementation method.
[0233] In the case of employing the integrated unit, the device can include a processing module, a storage module. Wherein, when the device is applied to a vehicle, the processing module can be used to control and manage the actions of the vehicle. The storage module can be used to support the vehicle to execute relevant program codes and the like.
[0234] The processing module can be a processor or a controller, which can realize or execute various exemplary logical blocks, modules and circuits shown in combination with the disclosure of the present application. The processor can also be a combination of computing functions, such as including one or more microprocessor combinations, digital signal processing (Digital Signal Processing, DSP) and microprocessor combinations, etc. The storage module can be a memory.
[0235] In addition, the device provided by the embodiments of the present application can be a chip, an assembly or a module, the chip can include a connected processor and a memory; wherein the memory is used to store instructions, when the processor calls and executes the instructions, the chip can execute the action execution method based on the rule engine provided by the above-mentioned embodiments.
[0236] The embodiment also provides a computer readable storage medium, the computer readable storage medium stores computer program code, when the computer program code runs on the computer, the computer executes the related method steps to realize the action execution method based on the rule engine provided by the above-mentioned embodiments.
[0237] The embodiment also provides a computer program product, when the computer program product runs on the computer, the computer executes the related steps to realize the action execution method based on the rule engine provided by the above-mentioned embodiments.
[0238] Wherein, the device, computer readable storage medium, computer program product or chip provided by the embodiment are used to execute the corresponding method provided above, so the beneficial effects that can be achieved are referred to the beneficial effects in the corresponding method provided above, which will not be repeated here.
[0239] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the above-mentioned division of functional modules is taken as an example, in actual application, the above-mentioned functions can be completed by different functional modules according to the needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0240] In the embodiments of the present disclosure, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are merely schematic, and the division of the modules or units is merely a logical function division. In actual implementation, another division manner can be adopted, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or in other forms.
[0241] The above merely describes specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present disclosure, which should be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. An action execution method based on a rule engine, characterized in that: The method comprises: In response to a start-up request from a target vehicle, a rule engine is started and a startup animation is played, wherein the rule engine is configured to execute a corresponding action when the target vehicle meets specific conditions; When the rule engine is started, the preset action is not executed through the rule engine to determine whether the boot animation is played. The preset action is the action executed after the target vehicle is started; When the boot animation is finished playing, it is determined whether to execute the preset action through the rule engine based on the playing duration of the boot animation and the vehicle status information of the target vehicle.
2. The method according to claim 1, characterized in that The determining whether to execute the preset action through the rule engine based on the playback duration of the boot animation and the vehicle status information of the target vehicle includes: In a case where the playback duration is less than a preset playback duration, determining whether to execute the preset action through the rule engine based on the vehicle state information; When the playback duration is greater than or equal to the preset playback duration, it is determined not to execute the preset action through the rule engine.
3. The method according to claim 2, characterized in that The vehicle status information includes power status information and a vehicle mode, and determining whether to execute the preset action through the rule engine based on the vehicle status information includes: If the power state information indicates that the target vehicle is in a preset power state, determining whether to execute the preset action through the rule engine based on the vehicle mode; When the power state information indicates that the target vehicle is not in the preset power state, it is determined not to execute the preset action through the rule engine.
4. The method according to claim 3, characterized in that The determining, based on the vehicle mode, whether to execute the preset action by the rule engine includes: When the vehicle mode is the sentry mode, determining not to execute the preset action through the rule engine; In a case where the vehicle mode is not the sentry mode, determining to execute the preset action through the rule engine.
5. The method according to claim 4, characterized in that The method further comprises: When the rule engine is started, obtaining a current vehicle mode signal; In a case where the current vehicle mode signal is identical to a previously acquired historical vehicle mode signal, determining the vehicle mode corresponding to the current vehicle mode signal as the vehicle mode in the vehicle state information; In a case where the current vehicle mode signal is different from the last acquired historical vehicle mode signal, it is determined whether the startup animation of the target vehicle is completed.
6. The method according to claim 4, characterized in that When the vehicle mode is the sentry mode, determining not to execute the preset action through the rule engine includes: When the vehicle mode is a sentry mode, determining identity information of a target object close to the target vehicle; In a case where the identity information indicates that the target object is not a preset object, it is determined not to execute the preset action through the rule engine, where the preset object is an object having permission to use the target vehicle.
7. The method according to claim 1, characterized in that In the case where the rule engine is started up, after the preset action is not executed by the rule engine and it is determined whether the boot animation is played, the method further includes: In the case that the boot animation has not been played completely, the preset action is not executed through the rule engine and the boot animation is waited for to be played completely.
8. The method according to claim 1, characterized in that The method further comprises: In response to a voice instruction for the preset action, recognizing the voice instruction to obtain instruction information; The preset action is created based on the instruction information.
9. A vehicle, characterized in that: The vehicle comprises: a memory for storing executable program code; A processor is configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 8 is implemented.