Vehicle animation playback control method, device, electronic device and storage medium

By creating a process state machine and a playback state machine in the vehicle, and controlling the switch-off animation playback according to the power state switch, the interface lag or black screen caused by animation playback conflicts in the prior art is solved, and the user's driving experience is improved.

CN118312222BActive Publication Date: 2025-03-25CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410380580.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-30
Publication Date
2025-03-25
Estimated Expiration
2044-03-30

AI Technical Summary

Technical Problem

In the existing vehicle control technology, the playback conflict between the switch animation causes the interface to stutter or the screen to black, affecting the user's driving experience.

Method used

By obtaining the power state of the vehicle display screen, creating a process state machine and a play state machine, switching the process state machine and a play state machine according to the power state, controlling the display screen to play the switch-off animation according to the process state, and adjusting the playback order according to the current screen state.

Benefits of technology

It realizes flexible control of vehicle animation playback, avoids conflicts between turning on and off animation playback, and ensures interface stability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118312222B_ABST
    Figure CN118312222B_ABST
Patent Text Reader

Abstract

The present invention provides a vehicle animation playback control method, device, electronic device and storage medium, which relates to the field of vehicle technology. The method includes: obtaining the power state of the vehicle display screen, switching a pre-created process state machine to a process state corresponding to the power state according to the power state of the display screen, responding to the state switching of the process state machine, controlling the display screen to play the power-on and power-off animation according to the process state, and switching the preset playback state machine of the display screen to the playback state, when the process state is the power-on and power-off animation playback state, if the power state switching is detected, obtaining the current screen state of the playback state machine, and controlling the power-on and power-off animation playback sequence of the display screen according to the current screen state. The present invention uses a state machine to control the entire power-on and power-off animation playback process and the playback state of the display screen respectively, so as to realize flexible playback of the power-on and power-off animation according to the current process state, and ensure the playback effect of the vehicle power-on and power-off animation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control technology, and in particular to a vehicle animation playback control method, device, electronic equipment and storage medium. Background Art

[0002] With the development of vehicle intelligent technology, the vehicle terminal may include multiple display screens, among which the display screens may include instrument screens and in-vehicle entertainment screens. The corresponding power on and off animations of the screens are an indispensable part of the vehicle to improve the driver and passenger experience. When the user uses the vehicle, the display screen can play the power-on animation after the power is started, and play the shutdown animation when the power is off.

[0003] At present, the power on and off animations in the vehicle cockpit are usually played back using a single-thread control, that is, the power on and off animations are played and stopped according to the power status of the vehicle terminal. There may be a sudden power outage during the playback of the power on animation, and the power on animation will be interrupted and the shutdown animation will be played. This may easily lead to a playback conflict between the power on animation and the shutdown animation, and even cause the power on and off animation interface to freeze or the display screen to go black, affecting the playback effect of the vehicle's power on and off animation and further affecting the user's driving experience. Summary of the invention

[0004] In view of this, the present invention aims to propose a vehicle animation playback control method, device, electronic device and storage medium to solve the problem of interface freeze or black screen caused by vehicle power on and off animation playback conflict, affecting the power on and off animation playback effect, and realize flexible control of vehicle animation playback.

[0005] According to a first aspect of the present invention, a vehicle animation playback control method is provided, the method comprising:

[0006] Get the power status of the vehicle display screen;

[0007] According to the power state of the display screen, the pre-created process state machine is switched to the process state corresponding to the power state; wherein the process state includes the power on / off animation playing state;

[0008] In response to the state switching of the process state machine, controlling the display screen to play the power on / off animation according to the process state, and switching the preset play state machine of the display screen to the play state;

[0009] When the process state is the power on / off animation playing state, if the power state switching is detected, the current screen state of the playing state machine is obtained, and the power on / off animation playing sequence of the display screen is controlled according to the current screen state.

[0010] Optionally, according to the power state of the display screen, the pre-created process state machine is switched to a process state corresponding to the power state; wherein the process state includes a power on / off animation playback state, including:

[0011] Pre-creating a process state machine, wherein the process state machine is in an initial state when the vehicle display screen is powered off;

[0012] Detecting that the power state of the display screen is the driving state, switching the process state of the process state machine to the boot animation playing state; or

[0013] It is detected that the power state of the display screen is a power-off state, and the process state of the process state machine is switched to a shutdown animation playing state.

[0014] Optionally, in response to the state switching of the process state machine, controlling the display screen to play the power on / off animation according to the process state, and switching the preset play state machine of the display screen to the play state, comprises:

[0015] In response to the process state machine switching to the target process state, using a semaphore to send the target process state to the playback state machine of the display screen;

[0016] Controlling the display screen to play the power on / off animation according to the target process state through the playback state machine;

[0017] It is detected that the display screen plays a power on / off animation, and the screen state of the playing state machine is controlled to switch to a playing state.

[0018] Optionally, when the process state is a power on / off animation playing state, if the power state switching is detected, obtaining the current screen state of the playing state machine, and controlling the power on / off animation playing sequence of the display screen according to the current screen state, includes:

[0019] When the process state is the power on / off animation playing state, in response to the switching of the power state, the process state is switched to correspond to the current power state;

[0020] Obtaining the current screen state of the playback state machine, and determining whether the current screen state is a playback state;

[0021] If so, the display screen is controlled to play the power on and off animation according to the switching sequence of the process states.

[0022] Optionally, if yes, controlling the display screen to play the power on / off animation according to the switching sequence of the process states includes:

[0023] If the switching sequence of the process state is switching from the boot animation playing state to the shutdown animation playing state, then controlling the display screen to turn off the boot animation and then play the shutdown animation;

[0024] If the switching sequence of the process state is switching from the shutdown animation playing state to the startup animation playing state, the display screen is controlled to turn off the shutdown animation and then play the startup animation.

[0025] Optionally, when the process state is the power on / off animation playing state, if the power state switching is detected, the current screen state of the playing state machine is obtained, and after the power on / off animation playing sequence of the display screen is controlled according to the current screen state, the process further includes:

[0026] Monitoring the progress or duration of the power on and power off animation of the display screen;

[0027] If the power on / off animation is finished or the timing duration meets the preset duration, the process state is controlled to switch to the power on / off animation end state;

[0028] According to the end state of the power on / off animation, the playing state machine is controlled to be in a standby state.

[0029] Optionally, after obtaining the power status of the vehicle display screen, the method further includes:

[0030] If the power state is a dormant state, the process state is controlled to switch to a closed state, and according to the closed state, the playback state machine of the display screen is controlled to be in an initial state.

[0031] According to a second aspect of the present invention, a vehicle animation playback control device is provided, the device comprising:

[0032] An information acquisition module is used to acquire the power status of the vehicle display screen;

[0033] A state switching module, used to switch the pre-created process state machine to the process state corresponding to the power state according to the power state of the display screen; wherein the process state includes the power on / off animation playing state;

[0034] A first control module, configured to control the display screen to play a power-on / off animation according to the process state in response to the state switching of the process state machine, and switch the preset play state machine of the display screen to a play state;

[0035] The second control module is used to obtain the current screen state of the playback state machine when the process state is the power on / off animation playback state, if the power state switching is detected, and control the power on / off animation playback order of the display screen according to the current screen state.

[0036] According to another aspect of the present invention, there is also provided an electronic device, comprising:

[0037] processor;

[0038] a memory for storing instructions executable by the processor;

[0039] Wherein, the processor is configured to execute the instructions to implement the vehicle animation playback control method as described above.

[0040] According to another aspect of the present invention, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle animation playback control method as described above are implemented.

[0041] The vehicle animation playback control method provided by the embodiment of the present invention obtains the power state of the vehicle display screen, switches the pre-created process state machine to the process state corresponding to the power state according to the power state of the display screen, responds to the state switching of the process state machine, controls the display screen to play the power-on and power-off animation according to the process state, and switches the preset playback state machine of the display screen to the playback state. When the process state is the power-on and power-off animation playback state, if the power state switching is detected, the current screen state of the playback state machine is obtained, and the playback sequence of the power-on and power-off animation of the display screen is controlled according to the current screen state. The embodiment of the present invention adopts the overall process state machine of the vehicle power-on and power-off animation playback and the playback state machine of the animation playback display screen, and adjusts the power-on and power-off animation process of the overall process state machine to match the power state according to the change of the power state. Under the monitoring of the overall process state machine, the power-on and power-off animation playback state of the display screen is independently and parallelly controlled, and the state machine is used to control the entire power-on and power-off animation playback process and the playback state of the display screen respectively, so as to realize the flexible playback of the power-on and power-off animation according to the current process state, avoid the interface freeze or black screen caused by the conflict between the power-on animation and the power-off animation playback, ensure the playback effect of the vehicle power-on and power-off animation, and further enhance the user's driving experience.

[0042] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0044] Figure 1 is a flow chart of the steps of a vehicle animation playback control method provided by an embodiment of the present invention;

[0045] Figure 2 yes Figure 1 A flowchart of step 103 in the vehicle animation playback control method provided by an embodiment of the present invention;

[0046] Figure 3 yes Figure 1 A flowchart of step 104 in the vehicle animation playback control method provided by an embodiment of the present invention;

[0047] Figure 4 is a flowchart of another vehicle animation playback control method provided by an embodiment of the present invention;

[0048] Figure 5 is a flow chart of a vehicle animation playback control method provided by an embodiment of the present invention;

[0049] Figure 6 The vehicle animation playback control method provided by the embodiment of the present invention is schematically shown in FIG. Figure 1 ;

[0050] Figure 7 The vehicle animation playback control method provided by the embodiment of the present invention is schematically shown in FIG. Figure 2 ;

[0051] Figure 8 The vehicle animation playback control method provided by the embodiment of the present invention is schematically shown in FIG. Figure 3 ;

[0052] Fig. 9 is a structural schematic diagram of a vehicle animation playback control device provided by an embodiment of the present invention;

[0053] Fig.10 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0055] Reference Figure 1 , shows a flow chart of the steps of a vehicle animation playback control method provided by an embodiment of the present invention, the method may include:

[0056] Step 101, obtaining the power status of the vehicle display screen.

[0057] In an embodiment of the present invention, in order to solve the problem that the current playback control of the power on and off animation only relies on the power status of the vehicle terminal, there will be a conflict between the playback of the power on and off animation, and even cause the power on and off animation interface to freeze or the display screen to go black, affecting the playback effect of the vehicle's power on and off animation, this embodiment adopts at least two state machines, and uses the state machines to control the entire power on and off animation playback process and the playback status of the display screen respectively. According to the change of the power status, the power on and off animation process of the overall process state machine is adjusted to match the power status. Under the monitoring of the overall process state machine, the power on and off animation playback status of the display screen is controlled independently and in parallel, so as to realize flexible playback of the power on and off animation according to the current process status.

[0058] Specifically, the vehicle control unit of the present embodiment monitors the power status of the vehicle display screen and obtains the power status of the vehicle display screen. The power status includes a driving status, a power-off status and a sleep status. Specifically, when the vehicle is turned on, the power reaches the driving status, and when the vehicle is turned off, the power reaches the power-off status, so as to facilitate the one-to-one matching of the overall process state machine and the power status.

[0059] It should be noted that the driving state is a preparatory state when the vehicle is about to start, and the vehicle's display screen, such as the instrument panel, is turned on. In the power-off state, the vehicle's display screen is powered off and turned off. Among them, the power hibernation state is to save the current system state to the hard disk and then shut down directly. When it is turned on again, the operating system will not be reloaded, and the original state will be restored directly from the hard disk, thereby shortening the time for booting and loading applications. I will not go into details here.

[0060] Step 102 , according to the power state of the display screen, switch the pre-created process state machine to the process state corresponding to the power state.

[0061] Wherein, the process status includes the power on / off animation playing status;

[0062] In the embodiment of the present invention, a process state machine for monitoring the complete power on / off animation playback process is pre-created, referring to Figure 6 The process state machine is used to display the process state corresponding to the power state according to the power state of the display screen, wherein the process state includes at least six states, namely, the initial state, the sleep state, the power on / off animation playing state and the power on / off animation ending state. Specifically, the power on / off animation playing state is the power on animation playing state and the power off animation playing state, and the power on / off animation ending state is the power on animation ending state and the power off animation ending state.

[0063] It should be noted that the process state machine in this embodiment can be implemented using a state machine, wherein the state machine defines multiple states and transitions between states. The state machine runs by responding to a series of events. When an event meets certain trigger conditions, it will cause the state machine to migrate from the current state to the next state. Among the multiple states defined, there is at least one initial state and at least one final state. The state machine starts running from the initial state and stops running when it migrates to the final state.

[0064] Specifically, the power state corresponds to the process state one by one. In this embodiment, when it is detected that the power state of the display screen is the driving state, the process state of the process state machine is switched to the power-on animation playback state; or when it is detected that the power state of the display screen is the power-off state, the process state of the process state machine is switched to the power-off animation playback state.

[0065] Step 103, in response to the state switching of the process state machine, control the display screen to play the power on / off animation according to the process state, and switch the preset play state machine of the display screen to the play state.

[0066] In the embodiment of the present invention, the vehicle control unit responds to the state switch of the process state machine, transmits the state switch of the process state machine to the playback state machine of the display screen in the form of a semaphore, and based on the process state of the switched process state machine, controls the display screen to play the power on and off animation according to the process state, and switches the preset playback state machine of the display screen to the playback state.

[0067] Specifically, if the process state of the process state machine is switched from the initial state or other state to the power on and off animation playing state, the state switch of the process state machine is transmitted to the playing state machine of the display screen in the form of a semaphore, controlling the display screen to play the power on and off animation according to the process state.

[0068] It should be noted that, refer to Figures 7 and 8The playback state machine of this embodiment is created based on the vehicle display screen. The state machine includes an initial state, a playback state, and a standby state. For example, the display screen for playing the power on and off animation of the vehicle includes an instrument and an IVI car entertainment system. In order to realize the power on and off animation of each display screen being monitored and processed in parallel by the overall process state machine, two playback state machines are required to control the state of the instrument and the car entertainment system respectively. Of course, the above is only a specific example. The creation of the playback state machine is based on the actual vehicle equipment setting. This embodiment does not specifically limit the number of playback state machines.

[0069] Step 104, when the process state is the power on / off animation playing state, if the power state switching is detected, the current screen state of the playing state machine is obtained, and the power on / off animation playing sequence of the display screen is controlled according to the current screen state.

[0070] In the embodiment of the present invention, when the process state is the power on / off animation playing state, if the power state switching is detected, the current screen state of the playing state machine is first obtained, and the power on / off animation playing sequence of the display screen is controlled according to the current screen state.

[0071] Specifically, when the process state is the power on and off animation playing state, if the power state is suddenly switched from the original driving state to the power off state, or suddenly switched from the power off state to the driving state, then in response to the switching of the power state, the process state is switched to correspond to the current power state, and the current screen state of the playback state machine is obtained. The purpose is to determine whether the display screen has completed the animation playback, so it is judged whether the current screen state is the playback state. If the current screen state is the playback state, the display screen is controlled to play the power on and off animation according to the switching order of the process state. It should be noted that if the switching order of the process state is from the startup animation playback state to the shutdown animation playback state, the startup animation and the shutdown animation are played in this switching order to avoid conflicts in the playback of the startup animation and the shutdown animation.

[0072] The vehicle animation playback control method provided by the embodiment of the present invention obtains the power state of the vehicle display screen, switches the pre-created process state machine to the process state corresponding to the power state according to the power state of the display screen, responds to the state switching of the process state machine, controls the display screen to play the power-on and power-off animation according to the process state, and switches the preset playback state machine of the display screen to the playback state. When the process state is the power-on and power-off animation playback state, if the power state switching is detected, the current screen state of the playback state machine is obtained, and the playback sequence of the power-on and power-off animation of the display screen is controlled according to the current screen state. The embodiment of the present invention adopts the overall process state machine of the vehicle power-on and power-off animation playback and the playback state machine of the animation playback display screen, and adjusts the power-on and power-off animation process of the overall process state machine to match the power state according to the change of the power state. Under the monitoring of the overall process state machine, the power-on and power-off animation playback state of the display screen is independently and parallelly controlled, and the state machine is used to control the entire power-on and power-off animation playback process and the playback state of the display screen respectively, so as to realize the flexible playback of the power-on and power-off animation according to the current process state, avoid the interface freeze or black screen caused by the conflict between the power-on animation and the power-off animation playback, ensure the playback effect of the vehicle power-on and power-off animation, and further enhance the user's driving experience.

[0073] Specifically, step 102 switches a pre-created process state machine to a process state corresponding to the power state according to the power state of the display screen; wherein the process state includes a power on / off animation playback state, and may specifically include the following steps: pre-create a process state machine, wherein the process state machine is in an initial state when the vehicle display screen is powered off; when it is detected that the power state of the display screen is a driving state, the process state of the process state machine is switched to a power-on animation playback state; or when it is detected that the power state of the display screen is a power-off state, the process state of the process state machine is switched to a power-off animation playback state.

[0074] Further, see Figure 2 , showing Figure 1 A flowchart of step 103 in a vehicle animation playback control method is provided. The method is substantially the same as the vehicle animation playback control method provided in the first embodiment of the present invention. Step 103 may include:

[0075] Step 201, in response to the process state machine switching to the target process state, a semaphore is used to send the target process state to the playback state machine of the display screen.

[0076] In an embodiment of the present invention, in response to the process state machine switching to the target process state, a semaphore is used to send the target process state to the playback state machine of the display screen, wherein the target process state is a process state that accurately corresponds to the current power state. For example, if the power state switches from the sleep state to the driving state, the target process state is the boot animation playback state corresponding to the driving state, which will not be described in detail in this embodiment.

[0077] It should be noted that the overall process state machine communicates with the playback state machines of each display screen, and the process state of the process state machine directly affects the switching of the playback state machine. This embodiment uses a semaphore to send the target process state to the playback state machine of the display screen to improve the state switching efficiency.

[0078] Step 202, controlling the display screen to play the power on / off animation according to the target process state through the playback state machine.

[0079] In this embodiment, the playback state machine determines whether the startup animation or the shutdown animation needs to be played, then the process of playing the startup and shutdown animation of the vehicle is executed, the animation resources are loaded, and the display screen is controlled to play the startup and shutdown animation according to the target process state. This embodiment does not specifically limit the operation process of playing the startup and shutdown animation.

[0080] Step 203: Detect that the display screen plays the power on / off animation, and control the screen state of the playing state machine to switch to the playing state.

[0081] The embodiment of the present invention controls the display screen to play the power on and off animation according to the target process state based on the state switching of the process state machine, and controls the screen state of the playback state machine to switch to the playback state, so as to adjust the power on and off animation process of the overall process state machine to match the power state according to the change of the power state, and independently and in parallel control the power on and off animation playback state of the display screen under the monitoring of the overall process state machine.

[0082] Further, see Figure 3 , showing Figure 1 A flowchart of step 104 in a vehicle animation playback control method is provided. The method is substantially the same as the vehicle animation playback control method provided in the first embodiment of the present invention. Step 104 may include:

[0083] Step 301, when the process state is the power on / off animation playing state, in response to the switching of the power state, the process state is switched to correspond to the current power state.

[0084] In an embodiment of the present invention, when the process state is the power on / off animation playing state, if the power state is suddenly switched, then in response to the switching of the power state, the process state is switched to correspond to the current power state to achieve real-time matching of the process state and the power state.

[0085] Step 302, obtaining the current screen state of the playback state machine, and determining whether the current screen state is a playback state.

[0086] Step 303: If yes, control the display screen to play the power on / off animation according to the switching sequence of the process states.

[0087] For example, the power state enters the driving state, and the startup animation is played. If the startup animation is not finished, the car computer is powered off, and the display screen enters the power-off state. At this time, it is necessary to play the shutdown animation. If the startup animation is not finished and is not closed, the startup animation and the shutdown animation will be confused, the layers will overlap, or the animation sound effects will overlap, resulting in only the top layer of animation being closed when shutting down, and the interface is stuck in the last frame of the animation. This embodiment obtains the current screen state of the playback state machine to determine whether the current screen state is the playback state. If so, the currently playing startup animation is closed first and then the shutdown animation is played. If it is not in the playback state but in the standby state, no processing is performed or the configuration word is updated. The initial state is not processed to ensure a smoother process.

[0088] It should be noted that, if step 303 is yes, then controlling the display screen to play the power-on and power-off animations according to the switching order of the process states may specifically include the following two situations: if the switching order of the process states is from the power-on animation playing state to the power-off animation playing state, then controlling the display screen to turn off the power-on animation and then play the power-off animation; if the switching order of the process states is from the power-off animation playing state to the power-on animation playing state, then controlling the display screen to turn off the power-off animation and then play the power-on animation.

[0089] The embodiment of the present invention determines whether the current screen state is the playback state based on the current screen state of the playback state machine by switching the process state, thereby controlling the display screen to play the power on / off animation according to the switching sequence of the process state. There may be various abnormalities or changes in requirements during the development process. Through the control of the state machine, when an abnormality occurs, various response processes can be conveniently performed by judging the current instrument and IVI playback state, making it easier to control the entire power on / off animation process.

[0090] Reference Figure 4 , shows a flow chart of steps of another vehicle animation playback control method provided by an embodiment of the present invention, which method is basically the same as the vehicle animation playback control method provided by the first embodiment of the present invention, except that the method may further include:

[0091] Step 101, obtaining the power status of the vehicle display screen.

[0092] Step 102 , according to the power state of the display screen, switch the pre-created process state machine to the process state corresponding to the power state.

[0093] Wherein, the process status includes the power on / off animation playing status;

[0094] Step 103, in response to the state switching of the process state machine, control the display screen to play the power on / off animation according to the process state, and switch the preset play state machine of the display screen to the play state.

[0095] Step 104, when the process state is the power on / off animation playing state, if the power state switching is detected, the current screen state of the playing state machine is obtained, and the power on / off animation playing sequence of the display screen is controlled according to the current screen state.

[0096] The above steps 101 to 104 are described in the foregoing description and will not be repeated here.

[0097] Step 105, monitoring the power on and off animation playing progress or timing duration of the display screen.

[0098] In this embodiment, in order to achieve a smooth playback effect of the power-on and power-off animation, the power-on animation interacts a lot with other modules of the vehicle computer, such as power management, HMI (Human Machine Interface), etc. Through state control, the current state can be controlled during joint debugging to determine whether there is a problem. It also has advantages in overall debugging. The HMI is used to monitor the playback progress of the power-on and power-off animation on the display screen, or a timer is used to time the playback duration of the power-on and power-off animation, so as to timely update the process state of the process state machine and improve the accuracy of state switching.

[0099] Step 106, if the power on / off animation is finished or the timing duration meets the preset duration, the control process state switches to the power on / off animation end state.

[0100] It should be noted that the completion of the power on and off animation is determined according to the progress of the power on and off animation playback. If the power on and off animation playback progress reaches the length of the animation resource, the control process state is switched to the power on and off animation end state. Alternatively, if the timing duration of the timer, that is, the power on and off animation playback duration, meets the preset duration, the control process state can also be switched to the power on and off animation end state. This embodiment does not specifically limit the preset duration, and the playback progress is determined based on the power on and off animation resources of the actual vehicle, which will not be elaborated here.

[0101] Step 107, according to the end state of the power on / off animation, control the playback state machine to the standby state.

[0102] On the basis of achieving the beneficial effects of the first embodiment, the embodiment of the present invention monitors the progress of the power on and off animation playback or the timing duration of the display screen, so that when the power on and off animation playback is completed or the timing duration meets the preset duration, the process state is switched to the corresponding state, and the playback state machine is controlled to the standby state. The state machine is used to control the entire power on and off animation playback process and the playback state of the display screen respectively, so as to realize flexible playback of the power on and off animation according to the current process state.

[0103] Specifically, after step 101 obtains the power status of the vehicle display screen, it can also include: if the power status is a sleep state, controlling the process state to switch to a closed state, and according to the closed state, controlling the playback state machine of the display screen to an initial state.

[0104] It should be noted that when the power state enters the sleep state, the process state can be set to the closed state, and the playback state machine of the display screen can be controlled to the initial state by sending a signal, so as to reduce the processing pressure of state switching and monitoring, reduce standby energy consumption, and save vehicle data processing resources.

[0105] In order to facilitate those skilled in the art to fully understand the above vehicle animation playback control method, refer to Figure 5 , Figure 5 : is a flow chart of a vehicle animation playback control method provided by an embodiment of the present invention, which shows the overall process of the vehicle animation playback control provided by an embodiment of the present invention, specifically including:

[0106] S401, boot animation playing status;

[0107] S402, playing the boot animation;

[0108] Specifically, when it is detected that the power state is the driving state, the process state machine is in the boot animation playing state, the display screen plays the boot animation, and the playback state machine of the display screen is in the playback state.

[0109] S403, boot animation end state;

[0110] S404, turn off the boot animation;

[0111] Specifically, the playback is timed by monitoring the playback progress or a timer. When the boot animation is completed and the power state is detected to be non-driving, that is, power-off or sleep, the process state machine is in the boot animation end state, the display screen turns off the boot animation, and the playback state machine of the display screen is in the standby state.

[0112] S405, shutdown animation playing state;

[0113] S406, playing the shutdown animation;

[0114] Specifically, when it is detected that the power state is the power-off state, the process state machine is in the shutdown animation playing state, the display screen plays the shutdown animation, and the playing state machine of the display screen is in the playing state.

[0115] S407, shutdown animation end state;

[0116] S408, turn off the shutdown animation;

[0117] Specifically, the playback is timed by monitoring the playback progress or a timer. When the shutdown animation is completed and the power state is detected to be in sleep state or temporarily switched to driving state, the process state machine is in the shutdown animation end state, the display screen turns off the shutdown animation, and the playback state machine of the display screen is in the standby state.

[0118] S409, closed state;

[0119] S410, read configuration words and status settings.

[0120] It should be noted that if the process state machine is in the closed state and the playback state machine is in the standby state machine IDLE, no processing is performed or the configuration word is updated. If the playback state machine is in the initial state, no processing or necessary operations are performed to ensure that the control process of the power on and off animation is smoother.

[0121] In this embodiment, according to the change of power supply status, the overall process state machine of the vehicle power on and off animation playback and the playback state machine of the animation playback display screen are adopted to adjust the power on and off animation process of the overall process state machine to match the power supply status, and under the monitoring of the overall process state machine, according to the monitored playback progress and the timing duration of the timer, the power on and off animation playback state of the display screen is independently and parallelly controlled, and the state machine is used to control the entire power on and off animation playback process and the playback state of the display screen respectively, so as to realize the flexible playback of the power on and off animation according to the current process status and ensure the playback effect of the vehicle power on and off animation.

[0122] Reference Fig. 9 , shows a schematic diagram of the structure of a vehicle animation playback control device provided by an embodiment of the present invention, the device comprising:

[0123] The information acquisition module 501 is used to acquire the power status of the vehicle display screen;

[0124] The state switching module 502 is used to switch the pre-created process state machine to the process state corresponding to the power state according to the power state of the display screen; wherein the process state includes the power on / off animation playing state;

[0125] A first control module 503, for controlling the display screen to play the power-on and power-off animation according to the process state in response to the state switching of the process state machine, and switching the preset play state machine of the display screen to the play state;

[0126] The second control module 504 is used to obtain the current screen state of the playback state machine when the process state is the power on / off animation playback state, if the power state switching is detected, and control the power on / off animation playback order of the display screen according to the current screen state.

[0127] Furthermore, the state switching module 502 includes:

[0128] A preprocessing submodule, used for pre-creating a process state machine, wherein the process state machine is in an initial state when the vehicle display screen is powered off;

[0129] A first switching submodule is used to detect that the power state of the display screen is a driving state, and switch the process state of the process state machine to a boot animation playing state; or

[0130] The second switching submodule is used to detect that the power state of the display screen is a power-off state, and switch the process state of the process state machine to a shutdown animation playing state.

[0131] Furthermore, the first control module 503 includes:

[0132] A first response submodule, configured to respond to the process state machine switching to a target process state, and send the target process state to the playback state machine of the display screen using a semaphore;

[0133] A first control submodule, configured to control the display screen to play the power on / off animation according to the target process state through the playback state machine;

[0134] The second control submodule is used to detect that the display screen plays the power on and off animation, and control the screen state of the playing state machine to switch to the playing state.

[0135] Furthermore, the second control module 504 includes:

[0136] A second response submodule is used for switching the process state to correspond to the current power state in response to the switching of the power state when the process state is the power on / off animation playing state;

[0137] An acquisition submodule, used to acquire the current screen state of the playback state machine and determine whether the current screen state is a playback state;

[0138] The third control submodule is used to control the display screen to play the power on and off animation according to the switching order of the process state.

[0139] Furthermore, the third control submodule includes:

[0140] A first control unit, configured to control the display screen to turn off the startup animation and then play the shutdown animation if the switching order of the process state is switching from the startup animation playing state to the shutdown animation playing state;

[0141] The second control unit is used to control the display screen to turn off the shutdown animation and then play the startup animation if the switching order of the process state is switching from the shutdown animation playing state to the startup animation playing state.

[0142] Furthermore, the device also includes:

[0143] A playback monitoring module, used to monitor the playback progress or timing duration of the power on and off animation of the display screen;

[0144] A third control module, configured to control the process state to switch to the power on / off animation end state if the power on / off animation is played completely or the timing duration meets a preset duration;

[0145] The fourth control module is used to control the playing state machine to a standby state according to the end state of the power on / off animation.

[0146] Furthermore, the device also includes:

[0147] The fifth control module is used to control the process state to switch to the closed state if the power state is the sleep state, and control the playback state machine of the display screen to the initial state according to the closed state.

[0148] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0149] The vehicle animation playback control device provided by the embodiment of the present invention obtains the power state of the vehicle display screen, switches the pre-created process state machine to the process state corresponding to the power state according to the power state of the display screen, responds to the state switching of the process state machine, controls the display screen to play the power-on and power-off animation according to the process state, and switches the preset playback state machine of the display screen to the playback state. When the process state is the power-on and power-off animation playback state, if the power state switching is detected, the current screen state of the playback state machine is obtained, and the playback sequence of the power-on and power-off animation of the display screen is controlled according to the current screen state. The embodiment of the present invention adopts the overall process state machine of the vehicle power-on and power-off animation playback and the playback state machine of the animation playback display screen, and adjusts the power-on and power-off animation process of the overall process state machine to match the power state according to the change of the power state. Under the monitoring of the overall process state machine, the power-on and power-off animation playback state of the display screen is independently and parallelly controlled, and the state machine is used to control the entire power-on and power-off animation playback process and the playback state of the display screen respectively, so as to realize the flexible playback of the power-on and power-off animation according to the current process state, avoid the interface freeze or black screen caused by the conflict between the power-on animation and the power-off animation playback, ensure the playback effect of the vehicle power-on and power-off animation, and further enhance the user's driving experience.

[0150] Reference Fig.10 , an embodiment of the present invention further provides an electronic device, such as Fig.10 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0151] Memory 603, used for storing computer programs;

[0152] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:

[0153] Get the power status of the vehicle display screen;

[0154] According to the power state of the display screen, the pre-created process state machine is switched to the process state corresponding to the power state; wherein the process state includes the power on / off animation playing state;

[0155] In response to the state switching of the process state machine, controlling the display screen to play the power on / off animation according to the process state, and switching the preset play state machine of the display screen to the play state;

[0156] When the process state is the power on / off animation playing state, if the power state switching is detected, the current screen state of the playing state machine is obtained, and the power on / off animation playing sequence of the display screen is controlled according to the current screen state.

[0157] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0158] The communication interface is used for communication between the above terminal and other devices.

[0159] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0160] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0161] In another embodiment provided by the present invention, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the vehicle animation playback control method described in any of the above embodiments.

[0162] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0163] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants 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, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0164] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0165] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A vehicle animation playback control method, characterized in that: The method comprises: Get the power status of the vehicle display screen; According to the power state of the display screen, the pre-created process state machine is switched to the process state corresponding to the power state; wherein the process state includes the power on / off animation playing state; In response to the state switching of the process state machine, controlling the display screen to play the power on / off animation according to the process state, and switching the preset play state machine of the display screen to the play state; When the process state is the power on / off animation playing state, if the power state switching is detected, the current screen state of the playback state machine is obtained, and according to the current screen state, the power on / off animation playing order of the display screen is controlled, including: when the process state is the power on / off animation playing state, in response to the switching of the power state, the process state is switched to correspond to the current power state, the current screen state of the playback state machine is obtained, and it is determined whether the current screen state is the playback state; if so, the display screen is controlled to play the power on / off animation according to the switching order of the process state.

2. The method according to claim 1, characterized in that According to the power state of the display screen, the pre-created process state machine is switched to the process state corresponding to the power state; wherein the process state includes the power on / off animation playback state, including: Pre-creating a process state machine, wherein the process state machine is in an initial state when the vehicle display screen is powered off; Detecting that the power state of the display screen is the driving state, switching the process state of the process state machine to the boot animation playing state; or It is detected that the power state of the display screen is a power-off state, and the process state of the process state machine is switched to a shutdown animation playing state.

3. The method according to claim 1, characterized in that In response to the state switching of the process state machine, controlling the display screen to play the power on / off animation according to the process state, and switching the preset play state machine of the display screen to the play state, comprises: In response to the process state machine switching to the target process state, using a semaphore to send the target process state to the playback state machine of the display screen; Controlling the display screen to play the power on / off animation according to the target process state through the playback state machine; It is detected that the display screen plays a power on / off animation, and the screen state of the playing state machine is controlled to switch to a playing state.

4. The method according to claim 1, characterized in that: If so, controlling the display screen to play the power on / off animation according to the switching sequence of the process states includes: If the switching sequence of the process state is switching from the boot animation playing state to the shutdown animation playing state, then controlling the display screen to turn off the boot animation and then play the shutdown animation; If the switching sequence of the process state is switching from the shutdown animation playing state to the startup animation playing state, the display screen is controlled to turn off the shutdown animation and then play the startup animation.

5. The method according to claim 1, characterized in that When the process state is the power on / off animation playing state, if the power state switching is detected, the current screen state of the playing state machine is obtained, and according to the current screen state, the power on / off animation playing sequence of the display screen is controlled, and further includes: Monitoring the progress or duration of the power on and power off animation of the display screen; If the power on / off animation is finished or the timing duration meets the preset duration, the process state is controlled to switch to the power on / off animation end state; According to the end state of the power on / off animation, the playing state machine is controlled to be in a standby state.

6. The method according to claim 1, characterized in that After obtaining the power status of the vehicle display screen, the method further includes: If the power state is a dormant state, the process state is controlled to switch to a closed state, and according to the closed state, the playback state machine of the display screen is controlled to be in an initial state.

7. A vehicle animation playback control device, characterized in that: The device comprises: An information acquisition module is used to acquire the power status of the vehicle display screen; A state switching module, used to switch the pre-created process state machine to the process state corresponding to the power state according to the power state of the display screen; wherein the process state includes the power on / off animation playing state; A first control module, configured to control the display screen to play a power-on / off animation according to the process state in response to the state switching of the process state machine, and switch the preset play state machine of the display screen to a play state; The second control module is used to obtain the current screen state of the playback state machine when the process state is the power on / off animation playback state, if the power state switching is detected, and control the power on / off animation playback order of the display screen according to the current screen state. The second control module includes: a second response submodule, used to switch the process state to correspond to the current power state in response to the switching of the power state when the process state is the power on / off animation playback state; an acquisition submodule, used to obtain the current screen state of the playback state machine, and determine whether the current screen state is the playback state; and a third control submodule, used to, if so, control the display screen to play the power on / off animation according to the switching order of the process state.

8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the instructions to implement the vehicle animation playback control method as described in any one of claims 1 to 6.

9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle animation playback control method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Motormeter startup and shutdown logic method and system and vehicle

    CN114435132A