Vehicle black screen software redundancy lightening method, device and equipment and storage medium
By obtaining and storing task codes in the car machine and switching tasks when a black screen is detected, the problem of black screen in the vehicle instrument is solved, ensuring the normal display of the instrument and improving driving safety.
Patent Information
- Application Number
- CN202411726601.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-28
AI Technical Summary
The vehicle instrument has a black screen during driving, seriously threatening the lives and safety of people in the car.
By obtaining all tasks of the current car machine, storing the task code in memory in different areas, executing the current task and the task to be redirected in time slices, switching the task when a black screen state is detected, executing the code of the task to be redirected, and restoring the original task after the task is run normally.
It effectively avoids the problem that the MCU cannot light the instrument due to SoC failure in the vehicle, and ensures that the instrument is displayed normally when the vehicle instrument has a black screen failure, which improves the safety of users' driving.
Smart Images

Figure CN119590214A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle computer fault processing, and in particular to a vehicle computer black screen software redundant lighting method, device, equipment and storage medium. Background Art
[0002] As the iteration of automobiles becomes faster and faster, the hardware and software functions of vehicle controllers are also accelerating. The mainstream solution of vehicle controllers on the market adopts Microcontroller Unit (MCU) + System on Chip (SoC) design. MCU is responsible for the instrument display part, and SoC is responsible for the audio and video entertainment system, but the logic between them involves many aspects of interaction. According to fault statistics, most instrument black screens are caused by SoC system failures. When some kind of fault occurs, the vehicle instrument and audio and video entertainment system will have a black screen. When the vehicle has a black screen while driving, it can seriously threaten the lives of people in the car. Summary of the invention
[0003] The main purpose of the present invention is to provide a method, device, equipment and storage medium for redundancy lighting of the black screen software of a vehicle computer, aiming to solve the technical problem in the prior art that a black screen appears during driving of vehicle instruments, which seriously threatens the life safety of people in the vehicle.
[0004] In a first aspect, the present invention provides a method for lighting up a vehicle computer black screen with software redundancy, the method comprising the following steps:
[0005] Obtain all tasks of the current vehicle computer, and store the codes of all the tasks in different areas of the vehicle computer memory;
[0006] Execute the current task and the task to be jumped in time slices, and when it is detected that the display screen of the current vehicle computer is in a black screen state, switch out the current task corresponding to the black screen state and execute the code of the task to be jumped;
[0007] After detecting that the current task is running normally, continue to execute the current task and display the current task on the display screen.
[0008] Optionally, the acquiring all tasks of the current vehicle computer and storing the codes of all the tasks in different areas of the vehicle computer memory includes:
[0009] Get all tasks of the current vehicle computer, including currently executed tasks, tasks to be jumped to, and unexecuted tasks;
[0010] A RAM shared data area for the currently executed task and the task to be jumped is established, and all the codes are stored in different areas of the vehicle computer memory ROM.
[0011] Optionally, the time-sliced execution of the current task and the task to be jumped to, when detecting that the display screen of the current vehicle computer is in a black screen state, switching out the current task corresponding to the black screen state, and executing the code of the task to be jumped to, includes:
[0012] Start executing the code entry points of the current task and the task to be jumped to, and execute the codes of the current task and the task to be jumped to in time slices;
[0013] When it is detected that the display screen of the current vehicle computer is in a black screen state, checking the code running state of the current task causing the display screen to be black;
[0014] When the code running state is faulty or abnormal, the current task is switched out and the code of the task to be jumped is executed.
[0015] Optionally, when the code running state is a fault or an exception, switching the current task and executing the code of the task to be jumped includes:
[0016] When the code running state is faulty or abnormal, selecting a task with a higher priority from the tasks to be jumped as a target task;
[0017] The code of the target task is executed, and the target task is displayed on the display screen.
[0018] Optionally, after detecting that the current task is running normally, continuing to execute the current task, and before the display screen displays the current task, the vehicle computer black screen software redundant lighting method further includes:
[0019] Real-time detection or detection according to a preset detection cycle to determine whether the current task has returned to normal.
[0020] Optionally, after detecting that the current task is running normally, continuing to execute the current task and displaying the current task on the display screen includes:
[0021] After detecting that the current task is running normally, continue to execute the current task, display the current task on the display screen, and transfer the task to be jumped to the background for running.
[0022] Optionally, the display screen has at least two power supply controls.
[0023] In a second aspect, in order to achieve the above-mentioned purpose, the present invention further proposes a vehicle computer black screen software redundant lighting device, the vehicle computer black screen software redundant lighting device comprising:
[0024] A code storage module, used for acquiring all tasks of the current vehicle computer and storing the codes of all the tasks in different areas of the vehicle computer memory;
[0025] A task switching module is used to execute the current task and the task to be jumped in time slices. When it is detected that the display screen of the current vehicle computer is in a black screen state, the current task corresponding to the black screen state is switched and the code of the task to be jumped is executed;
[0026] The display module is used to continue executing the current task and display the current task on the display screen after detecting that the current task is running normally.
[0027] In the third aspect, to achieve the above-mentioned purpose, the present invention also proposes a vehicle computer black screen software redundant lighting device, the vehicle computer black screen software redundant lighting device comprising: a memory, a processor and a vehicle computer black screen software redundant lighting program stored in the memory and executable on the processor, the vehicle computer black screen software redundant lighting program being configured to implement the steps of the vehicle computer black screen software redundant lighting method as described above.
[0028] In a fourth aspect, in order to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a vehicle computer black screen software redundant lighting program is stored, and when the vehicle computer black screen software redundant lighting program is executed by a processor, the steps of the vehicle computer black screen software redundant lighting method as described above are implemented.
[0029] The method for lighting up a black screen of a vehicle computer with software redundancy proposed by the present invention obtains all tasks of the current vehicle computer and stores the codes of all the tasks in different areas of the vehicle computer memory; executes the current task and the task to be jumped to in time slices, and when it is detected that the display screen of the current vehicle computer is in a black screen state, switches the current task corresponding to the black screen state and executes the code of the task to be jumped to; after detecting that the current task is running normally, continues to execute the current task and displays the current task on the display screen, which can effectively avoid the problem that the MCU cannot light up the instrument due to a vehicle computer SoC failure during driving, and when a black screen failure occurs on the vehicle instrument, ensures the normal display of the instrument, thereby improving the driving safety of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;
[0031] Figure 2 This is a flow chart of the first embodiment of the vehicle computer black screen software redundant lighting method of the present invention;
[0032] Figure 3 This is a flow chart of a second embodiment of a method for redundancy lighting up a black screen of a vehicle computer using software according to the present invention;
[0033] Figure 4 It is a flowchart of the third embodiment of the vehicle computer black screen software redundant lighting method of the present invention;
[0034] Figure 5 A schematic diagram of the code storage logic in the vehicle computer black screen software redundant lighting method of the present invention;
[0035] Figure 6 This is a flow chart of a fourth embodiment of a method for redundancy lighting up a black screen of a vehicle computer using software according to the present invention;
[0036] Figure 7 A schematic diagram of hardware control in the vehicle computer black screen software redundant lighting method of the present invention;
[0037] Figure 8 This is a functional module diagram of the first embodiment of the vehicle computer black screen software redundant lighting device of the present invention.
[0038] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0039] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0040] The solution of the embodiment of the present invention is mainly: by acquiring all the tasks of the current vehicle computer, the codes of all the tasks are stored in different areas of the vehicle computer memory; executing the current task and the task to be jumped in time slices, and when it is detected that the display screen of the current vehicle computer is in a black screen state, switching the current task corresponding to the black screen state, and executing the code of the task to be jumped; after detecting that the current task is running normally, continuing to execute the current task, and displaying the current task on the display screen, which can effectively avoid the problem that the MCU cannot light up the instrument due to the failure of the vehicle computer SoC during driving, and when the vehicle instrument has a black screen failure, it ensures the normal display of the instrument, thereby improving the safety of user driving, and solving the technical problem in the prior art that the vehicle instrument has a black screen during driving, which seriously threatens the life safety of people in the vehicle.
[0041] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0042] like Figure 1As shown, the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (Non-Volatile Memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0043] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0044] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating device, a network communication module, a user interface module, and a vehicle computer black screen software redundant lighting program.
[0045] The device of the present invention calls the vehicle computer black screen software redundant lighting program stored in the memory 1005 through the processor 1001, and performs the following operations:
[0046] Obtain all tasks of the current vehicle computer, and store the codes of all the tasks in different areas of the vehicle computer memory;
[0047] Execute the current task and the task to be jumped in time slices, and when it is detected that the display screen of the current vehicle computer is in a black screen state, switch out the current task corresponding to the black screen state and execute the code of the task to be jumped;
[0048] After detecting that the current task is running normally, continue to execute the current task and display the current task on the display screen.
[0049] The device of the present invention calls the vehicle computer black screen software redundant lighting program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0050] Get all tasks of the current vehicle computer, including currently executed tasks, tasks to be jumped to, and unexecuted tasks;
[0051] A RAM shared data area for the currently executed task and the task to be jumped is established, and all the codes are stored in different areas of the vehicle computer memory ROM.
[0052] The device of the present invention calls the vehicle computer black screen software redundant lighting program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0053] Start executing the code entry points of the current task and the task to be jumped to, and execute the codes of the current task and the task to be jumped to in time slices;
[0054] When it is detected that the display screen of the current vehicle computer is in a black screen state, checking the code running state of the current task causing the display screen to be black;
[0055] When the code running state is faulty or abnormal, the current task is switched out and the code of the task to be jumped is executed.
[0056] The device of the present invention calls the vehicle computer black screen software redundant lighting program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0057] When the code running state is faulty or abnormal, selecting a task with a higher priority from the tasks to be jumped as a target task;
[0058] The code of the target task is executed, and the target task is displayed on the display screen.
[0059] The device of the present invention calls the vehicle computer black screen software redundant lighting program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0060] Real-time detection or detection according to a preset detection cycle to determine whether the current task has returned to normal.
[0061] The device of the present invention calls the vehicle computer black screen software redundant lighting program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0062] After detecting that the current task is running normally, continue to execute the current task, display the current task on the display screen, and transfer the task to be jumped to the background for running.
[0063] The device of the present invention calls the vehicle computer black screen software redundant lighting program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0064] The display screen has at least two power supply controls.
[0065] Through the above scheme, this embodiment obtains all tasks of the current vehicle computer and stores the codes of all tasks in different areas of the vehicle computer memory; executes the current task and the task to be jumped in time slices, and when it is detected that the display screen of the current vehicle computer is in a black screen state, switches the current task corresponding to the black screen state and executes the code of the task to be jumped; after detecting that the current task is running normally, continues to execute the current task and displays the current task on the display screen, which can effectively avoid the problem that the MCU cannot light up the instrument due to a vehicle computer SoC failure during driving, and when a black screen failure occurs on the vehicle instrument, it ensures the normal display of the instrument, thereby improving the driving safety of the user.
[0066] Based on the above hardware structure, an embodiment of the vehicle computer black screen software redundant lighting method of the present invention is proposed.
[0067] Reference Figure 2 , Figure 2 This is a flow chart of the first embodiment of the method for redundantly lighting up a black screen of a vehicle computer using software of the present invention.
[0068] In the first embodiment, the vehicle computer black screen software redundant lighting method includes the following steps:
[0069] Step S10: Acquire all tasks of the current vehicle computer, and store the codes of all the tasks in different areas of the vehicle computer memory.
[0070] It should be noted that all tasks of the current vehicle computer are obtained, and the codes of all the tasks are stored in different areas of the vehicle computer memory.
[0071] Step S20, executing the current task and the task to be jumped in time slices. When it is detected that the display screen of the current vehicle computer is in a black screen state, switching out the current task corresponding to the black screen state, and executing the code of the task to be jumped.
[0072] It should be understood that the time slice is a pre-set time period. One round of time slices can be set to 50ms. Of course, it can also be set to other values according to actual conditions, such as 10ms, 30ms, 65ms, etc. This embodiment does not limit this.
[0073] It can be understood that the current task is the task being executed by the vehicle computer of the current vehicle, and the task to be jumped to is a pre-set task for alternative jump when a problem occurs in the current task. When it is detected that the display screen of the current vehicle computer is in a black screen state, the current task corresponding to the black screen state can be switched to execute the code of the task to be jumped to.
[0074] Step S30: After detecting that the current task is running normally, continue to execute the current task and display the current task on the display screen.
[0075] It can be understood that after detecting that the current task is running normally, the current task can continue to be executed and displayed on the display screen.
[0076] Through the above scheme, this embodiment obtains all tasks of the current vehicle computer and stores the codes of all tasks in different areas of the vehicle computer memory; executes the current task and the task to be jumped in time slices, and when it is detected that the display screen of the current vehicle computer is in a black screen state, switches the current task corresponding to the black screen state and executes the code of the task to be jumped; after detecting that the current task is running normally, continues to execute the current task and displays the current task on the display screen, which can effectively avoid the problem that the MCU cannot light up the instrument due to a vehicle computer SoC failure during driving, and when a black screen failure occurs on the vehicle instrument, it ensures the normal display of the instrument, thereby improving the driving safety of the user.
[0077] Further, Figure 3 FIG. 2 is a flow chart of a second embodiment of a method for redundancy lighting a vehicle computer black screen with software according to the present invention. Figure 3 As shown, based on the first embodiment, a second embodiment of the vehicle computer black screen software redundant lighting method of the present invention is proposed. In this embodiment, the step S10 specifically includes the following steps:
[0078] Step S11, obtaining all tasks of the current vehicle computer, wherein all tasks include currently executed tasks, tasks to be jumped to, and unexecuted tasks.
[0079] It should be noted that all tasks of the current vehicle computer are tasks corresponding to all programs pre-set in the vehicle computer, and all tasks include currently executed tasks, tasks to be jumped to, and unexecuted tasks.
[0080] Step S12: establishing a RAM shared data area for the currently executed task and the task to be jumped to, and storing all the codes in different areas of the vehicle computer memory ROM.
[0081] It is understandable that by establishing a shared data area of the random access memory (RAM) of the currently executed task and the task to be jumped, all the codes can be stored in different areas of the vehicle computer solid-state semiconductor memory (Read Only Memory, ROM).
[0082] This embodiment adopts the above scheme to obtain all the tasks of the current vehicle computer, and the tasks include currently executed tasks, tasks to be jumped and unexecuted tasks; establish a RAM shared data area for the currently executed tasks and the tasks to be jumped, and store all the codes in different areas of the vehicle computer memory ROM; it can store the task code in advance, effectively avoiding the problem that the MCU cannot light up the instrument due to a vehicle computer SoC failure during driving, and improving the speed and efficiency of redundant lighting of the vehicle computer black screen software.
[0083] Further, Figure 4 FIG. 1 is a flow chart of a third embodiment of a method for redundancy lighting a vehicle computer black screen with software according to the present invention. Figure 4 As shown, based on the first embodiment, a third embodiment of the vehicle computer black screen software redundant lighting method of the present invention is proposed. In this embodiment, the step S20 specifically includes the following steps:
[0084] Step S21, start executing the code entry points of the current task and the task to be jumped to, and execute the codes of the current task and the task to be jumped to in time slices.
[0085] It should be noted that after the code entry points for executing the current task and the task to be jumped to are started, the codes of the current task and the task to be jumped to may be executed in time slices.
[0086] Step S22: When it is detected that the display screen of the current vehicle computer is in a black screen state, check the code running state of the current task that causes the display screen to be black.
[0087] It is understandable that when it is detected that the display screen of the current vehicle computer is in a black screen state, the code running state of the current task causing the display screen to be black can be checked in time.
[0088] Step S23: When the code running state is faulty or abnormal, the current task is switched out and the code of the task to be jumped is executed.
[0089] It should be understood that when the code running state is faulty or abnormal, the current task can be switched out in time, so as to execute the code of the task to be jumped.
[0090] Furthermore, the step S23 specifically includes the following steps:
[0091] When the code running state is faulty or abnormal, selecting a task with a higher priority from the tasks to be jumped as a target task;
[0092] The code of the target task is executed, and the target task is displayed on the display screen.
[0093] It can be understood that when the code running state is faulty or abnormal, a task with a higher priority can be selected from the tasks to be jumped to as the target task; generally, the task with the highest priority is selected. Of course, the most suitable task can also be switched as the target task according to the current usage scenario. This embodiment does not limit this, executes the code of the target task, and displays the target task on the display screen.
[0094] Accordingly, before step S20, the vehicle computer black screen software redundant lighting method further includes the following steps:
[0095] Real-time detection or detection according to a preset detection cycle to determine whether the current task has returned to normal.
[0096] In the specific implementation, see Figure 5 , Figure 5 This is a schematic diagram of the code storage logic in the vehicle computer black screen software redundant lighting method of the present invention, such as Figure 5 As shown, the second part of the solution is as follows: A implements the complete functional logic, and B implements the necessary instrument functional logic (independent of the SoC, only receiving necessary signals such as vehicle speed, speed, gear position, ready, some fault lights, and some functional indicator lights); when A fails, it jumps to B to work, and when A completes initialization and returns to normal, it jumps from B to A first. Establish a RAM shared data area for tasks A and B.
[0097] Generally, the two codes are stored in different areas of ROM: Code A is stored in the starting address of ROM from 0x0000 to 0x1FFF;
[0098] Code B is stored in another area of ROM, such as 0x2000 to 0x2FFF (for a simplified version of Code A).
[0099] Startup process: At startup, the entry points of startup code A and code B start to execute in time slices. Under normal circumstances, the instrument display only shows the A status. During the execution of code A, the running status of code A will be checked regularly; if a fault or abnormality is detected in code A, the core will switch the instrument to display the status of code B. If A is detected to be running normally or other fault handling operations are performed.
[0100] Task management: Each code instance can be considered a task; a task switching mechanism can be designed so that the core can switch between two tasks under certain circumstances (e.g., task priority changes, resource requirements, etc.); this may involve saving and restoring the task's context (e.g., register values, stack pointer, etc.).
[0101] Through the above scheme, this embodiment starts the code entry points for executing the current task and the task to be jumped, and executes the codes of the current task and the task to be jumped in time slices; when it is detected that the display screen of the current vehicle computer is in a black screen state, the code running status of the current task that causes the display screen to be black is checked; when the code running status is a fault or an abnormality, the current task is switched off and the code of the task to be jumped is executed; the current task can be quickly switched and jumped to other task codes, effectively avoiding the problem that the MCU cannot light up the instrument due to a vehicle computer SoC fault during driving, and improving the speed and efficiency of redundant lighting of the vehicle computer black screen software.
[0102] Further, Figure 6 FIG. 4 is a flow chart of a fourth embodiment of a method for redundancy lighting a vehicle computer black screen with software according to the present invention. Figure 6 As shown, based on the first embodiment, a fourth embodiment of the vehicle computer black screen software redundant lighting method of the present invention is proposed. In this embodiment, the step S30 specifically includes the following steps:
[0103] Step S31, after detecting that the current task is running normally, continue to execute the current task, display the current task on the display screen, and transfer the task to be jumped to the background for running.
[0104] It should be noted that after detecting that the current task is running normally, the current task continues to be executed, the current task is displayed on the display screen, and the task to be jumped is transferred to the background for running.
[0105] In a specific implementation, the display screen has at least two power supply controls, see Figure 7 , Figure 7 FIG. 1 is a schematic diagram of hardware control in the vehicle computer black screen software redundant lighting method of the present invention, such as Figure 7 As shown in the figure, the instrument backlight is redundantly designed and an additional power supply control is added to improve the reliability and stability of the system; reliable switching between two tasks (A and B) is achieved to ensure seamless switching to task B when task A fails, and when task A completes initialization and returns to normal, it can jump from task B to task A first, ensuring the continuous normal operation of the instrument system and realizing specific logical control of instrument functions by different tasks; an additional control is added in hardware, and the MCU selects the power source according to the fault control.
[0106] Through the above scheme, this embodiment starts the code entry points for executing the current task and the task to be jumped, and executes the codes of the current task and the task to be jumped in time slices; when it is detected that the display screen of the current vehicle computer is in a black screen state, the code running status of the current task that causes the display screen to be black is checked; when the code running status is faulty or abnormal, the current task is switched off and the code of the task to be jumped is executed. After detecting that the current task is normal, the execution of the current task can be quickly resumed, and the problem of MCU being unable to light up the instrument due to a vehicle computer SoC failure during driving of the vehicle can be effectively avoided. When a black screen failure occurs on the vehicle instrument, the normal display of the instrument is guaranteed, thereby improving the driving safety of the user.
[0107] Correspondingly, the present invention further provides a vehicle computer black screen software redundant lighting device.
[0108] Reference Figure 8 , Figure 8 This is a functional module diagram of the first embodiment of the vehicle computer black screen software redundant lighting device of the present invention.
[0109] In the first embodiment of the vehicle computer black screen software redundant lighting device of the present invention, the vehicle computer black screen software redundant lighting device comprises:
[0110] The code storage module 10 is used to obtain all tasks of the current vehicle computer and store the codes of all the tasks in different areas of the vehicle computer memory.
[0111] The task switching module 20 is used to execute the current task and the task to be jumped in time slices. When it is detected that the display screen of the current vehicle computer is in a black screen state, the current task corresponding to the black screen state is switched and the code of the task to be jumped is executed.
[0112] The display module 30 is used to continue executing the current task and display the current task on the display screen after detecting that the current task is running normally.
[0113] The code storage module 10 is also used to obtain all tasks of the current vehicle computer, including currently executed tasks, tasks to be jumped and unexecuted tasks; establish a RAM shared data area for the currently executed tasks and the tasks to be jumped, and store all the codes in different areas of the vehicle computer memory ROM.
[0114] The task switching module 20 is also used to start the code entry points for executing the current task and the task to be jumped, and execute the codes of the current task and the task to be jumped in time slices; when it is detected that the display screen of the current vehicle computer is in a black screen state, check the code running status of the current task that causes the display screen to be black; when the code running status is a fault or abnormality, switch the current task and execute the code of the task to be jumped.
[0115] The task switching module 20 is further configured to select a task with a higher priority from the tasks to be jumped as a target task when the code running state is faulty or abnormal; execute the code of the target task, and display the target task on the display screen.
[0116] The task switching module 20 is further used to detect in real time or according to a preset detection period whether the current task has returned to normal.
[0117] The display module 30 is further used to continue executing the current task after detecting that the current task is running normally, display the current task on the display screen, and transfer the task to be jumped to the background for running.
[0118] The display module 30 is also used for controlling at least two power supplies of the display screen.
[0119] Among them, the steps implemented by each functional module of the vehicle computer black screen software redundant lighting device can refer to the various embodiments of the vehicle computer black screen software redundant lighting method of the present invention, and will not be repeated here.
[0120] In addition, an embodiment of the present invention further provides a storage medium, on which a vehicle-computer black screen software redundant lighting program is stored, and when the vehicle-computer black screen software redundant lighting program is executed by a processor, the following operations are implemented:
[0121] Obtain all tasks of the current vehicle computer, and store the codes of all the tasks in different areas of the vehicle computer memory;
[0122] Execute the current task and the task to be jumped in time slices, and when it is detected that the display screen of the current vehicle computer is in a black screen state, switch out the current task corresponding to the black screen state and execute the code of the task to be jumped;
[0123] After detecting that the current task is running normally, continue to execute the current task and display the current task on the display screen.
[0124] Furthermore, when the vehicle computer black screen software redundant lighting program is executed by the processor, the following operations are also implemented:
[0125] Get all tasks of the current vehicle computer, including currently executed tasks, tasks to be jumped to, and unexecuted tasks;
[0126] A RAM shared data area for the currently executed task and the task to be jumped is established, and all the codes are stored in different areas of the vehicle computer memory ROM.
[0127] Furthermore, when the vehicle computer black screen software redundant lighting program is executed by the processor, the following operations are also implemented:
[0128] Start executing the code entry points of the current task and the task to be jumped to, and execute the codes of the current task and the task to be jumped to in time slices;
[0129] When it is detected that the display screen of the current vehicle computer is in a black screen state, checking the code running state of the current task causing the display screen to be black;
[0130] When the code running state is faulty or abnormal, the current task is switched out and the code of the task to be jumped is executed.
[0131] Furthermore, when the vehicle computer black screen software redundant lighting program is executed by the processor, the following operations are also implemented:
[0132] When the code running state is faulty or abnormal, selecting a task with a higher priority from the tasks to be jumped as a target task;
[0133] The code of the target task is executed, and the target task is displayed on the display screen.
[0134] Furthermore, when the vehicle computer black screen software redundant lighting program is executed by the processor, the following operations are also implemented:
[0135] Real-time detection or detection according to a preset detection cycle to determine whether the current task has returned to normal.
[0136] Furthermore, when the vehicle computer black screen software redundant lighting program is executed by the processor, the following operations are also implemented:
[0137] After detecting that the current task is running normally, continue to execute the current task, display the current task on the display screen, and transfer the task to be jumped to the background for running.
[0138] Furthermore, when the vehicle computer black screen software redundant lighting program is executed by the processor, the following operations are also implemented:
[0139] The display screen has at least two power supply controls.
[0140] Those skilled in the art will appreciate that all or part of the steps in the above-mentioned implementation method can be accomplished by instructing related hardware through a program, and the program is stored in a storage medium, including a number of instructions for enabling a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each implementation method of the present application; and the aforementioned storage medium is a computer-readable storage medium, including: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0141] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0142] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0143] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for lighting up a black screen of a vehicle computer with software redundancy, characterized in that: The vehicle computer black screen software redundant lighting method comprises: Obtain all tasks of the current vehicle computer, and store the codes of all the tasks in different areas of the vehicle computer memory; Execute the current task and the task to be jumped in time slices, and when it is detected that the display screen of the current vehicle computer is in a black screen state, switch out the current task corresponding to the black screen state and execute the code of the task to be jumped; After detecting that the current task is running normally, continue to execute the current task and display the current task on the display screen.
2. The vehicle computer black screen software redundant lighting method according to claim 1, characterized in that: The acquiring of all tasks of the current vehicle computer and storing the codes of all the tasks in different areas of the vehicle computer memory include: Get all tasks of the current vehicle computer, including currently executed tasks, tasks to be jumped to, and unexecuted tasks; A RAM shared data area for the currently executed task and the task to be jumped is established, and all the codes are stored in different areas of the vehicle computer memory ROM.
3. The vehicle computer black screen software redundant lighting method according to claim 1, characterized in that: The code for executing the current task and the task to be jumped in the time slice, switching the current task corresponding to the black screen state and executing the task to be jumped when detecting that the display screen of the current vehicle computer is in a black screen state, includes: Start executing the code entry points of the current task and the task to be jumped to, and execute the codes of the current task and the task to be jumped to in time slices; When it is detected that the display screen of the current vehicle computer is in a black screen state, checking the code running state of the current task causing the display screen to be black; When the code running state is faulty or abnormal, the current task is switched out and the code of the task to be jumped is executed.
4. The vehicle computer black screen software redundant lighting method as claimed in claim 3 is characterized in that: When the code running state is a fault or an exception, switching the current task and executing the code of the task to be jumped includes: When the code running state is faulty or abnormal, selecting a task with a higher priority from the tasks to be jumped as a target task; The code of the target task is executed, and the target task is displayed on the display screen.
5. The vehicle computer black screen software redundant lighting method as claimed in claim 1, characterized in that: After detecting that the current task is running normally, continuing to execute the current task, and before the display screen displays the current task, the vehicle computer black screen software redundant lighting method also includes: Real-time detection or detection according to a preset detection cycle to determine whether the current task has returned to normal.
6. The vehicle computer black screen software redundant lighting method as claimed in claim 1, characterized in that: After detecting that the current task is running normally, continuing to execute the current task and displaying the current task on the display screen includes: After detecting that the current task is running normally, continue to execute the current task, display the current task on the display screen, and transfer the task to be jumped to the background for running.
7. The vehicle computer black screen software redundant lighting method as claimed in claim 1, characterized in that: The display screen has at least two power supply controls.
8. A vehicle computer black screen software redundant lighting device, characterized in that: The vehicle computer black screen software redundant lighting device comprises: A code storage module, used for acquiring all tasks of the current vehicle computer and storing the codes of all the tasks in different areas of the vehicle computer memory; A task switching module is used to execute the current task and the task to be jumped in time slices. When it is detected that the display screen of the current vehicle computer is in a black screen state, the current task corresponding to the black screen state is switched and the code of the task to be jumped is executed; The display module is used to continue executing the current task and display the current task on the display screen after detecting that the current task is running normally.
9. A vehicle computer black screen software redundant lighting device, characterized in that: The vehicle computer black screen software redundant lighting device includes: a memory, a processor, and a vehicle computer black screen software redundant lighting program stored in the memory and executable on the processor, wherein the vehicle computer black screen software redundant lighting program is configured to implement the steps of the vehicle computer black screen software redundant lighting method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a vehicle computer black screen software redundant lighting program, and when the vehicle computer black screen software redundant lighting program is executed by the processor, the steps of the vehicle computer black screen software redundant lighting method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Backup method and device for automobile instrument display screen
CN115257370A
Display screen blank screen detection method, display screen blank screen detection equipment and vehicle
CN115933230A
Vehicle-mounted instrument display method and system, storage medium and vehicle
CN116278740A
Information display method and device, vehicle-mounted controller and storage medium
CN116901700A
Blank screen processing method and system for picture of in-vehicle infotainment system
CN117389770A