Vehicle computer restart fault monitoring method, device, vehicle and storage medium

By storing fault data on the central processor side of the vehicle, it solves the problems of low efficiency in troubleshooting and unreasonable storage when restarting the vehicle, enables rapid analysis and saves storage space, and improves user experience and developer work efficiency.

CN115416593BActive Publication Date: 2024-09-27CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210971748.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-12
Publication Date
2024-09-27
Estimated Expiration
2042-08-12

AI Technical Summary

Technical Problem

In the existing technology, the troubleshooting efficiency of vehicle restart troubleshooting is low and the storage location is unreasonable, resulting in space occupation and the inability to quickly analyze the cause of the fault, which is time-consuming and labor-intensive.

Method used

By storing fault data on the central processor side of the vehicle, it avoids over-reliance on the MCU side of the control unit, realizes local fault data storage and analysis, allows offline operation, and displays fault information according to user intentions.

Benefits of technology

It improves troubleshooting efficiency, saves storage space, reduces invalid data storage, and improves user experience and developer work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115416593B
    Figure CN115416593B
Patent Text Reader

Abstract

The present application relates to the technical field of vehicle computer fault monitoring, and in particular to a vehicle computer restart fault monitoring method, device, vehicle and storage medium, wherein the method comprises: detecting the actual fault type of the vehicle computer restart fault; when the actual fault type is a restart fault caused by the MCU side, obtaining the restart fault data of the MCU side, and reporting the restart fault data of the MCU side to the CPU side; when the actual fault type is a restart fault caused by the CPU side, obtaining the fault restart data of the CPU side, and analyzing the fault restart data of the CPU side to obtain the analysis result; storing the restart fault data and / or the analysis result of the MCU side in the first preset memory on the CPU side, so as to monitor the vehicle computer restart fault based on the data stored in the first preset memory. Thus, the problems in the related technology of low efficiency of vehicle computer restart fault troubleshooting process, unreasonable storage location, too much invalid data resulting in space occupation, and inability to quickly analyze and locate the cause of the fault resulting in time and effort are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle computer fault monitoring, and in particular to a vehicle computer restart fault monitoring method, device, vehicle and storage medium. Background Art

[0002] The in-vehicle entertainment system host (referred to as the car machine) is an in-vehicle comprehensive information processing system formed by a dedicated in-vehicle central processor, based on the body bus system and Internet services. The existing in-vehicle infotainment system is developed based on the Android system, and the processor chip is responsible for the operation and management of the entire Android system. However, when a fatal error occurs in the kernel program or the Android app responds to a timeout, the entire Android system will be restarted, and the phenomenon manifested is that the screen of the central control is black and the boot animation is replayed, which reduces the user experience.

[0003] In the related technology, the reason for the MPU restart is recorded by MCU, and the Android system automatically packages and uploads it to the back-end log server. According to the information that uniquely identifies the vehicle, the log is automatically stored in the corresponding directory and the problems are automatically classified.

[0004] However, in the specific implementation, the cause analysis is not performed on the vehicle side, and only the log file generated by the logService during restart is uploaded to the cloud, which is inefficient, and the cloud log server may store a large amount of invalid data files that take up space; the MCU is used as the actual log storage and restart judgment party, and the MCU itself has limited space, which is used to store log files and takes up memory space; the analysis of restart-related problems of the vehicle computer can only be done by uploading to the cloud, and then downloading the log file to the developer. The results can only be obtained after the developer has completed the analysis. If the vehicle computer has no network, it cannot be uploaded to the cloud, which is extremely inefficient. Summary of the invention

[0005] The present application provides a vehicle computer restart fault monitoring method, device, vehicle and storage medium to solve the problems in the related art such as low efficiency of the vehicle computer restart fault troubleshooting process, unreasonable storage location, too much invalid data resulting in space occupation, and inability to quickly analyze and locate the cause of the fault resulting in time and effort.

[0006] A first aspect embodiment of the present application provides a restart fault monitoring method for a vehicle computer, comprising the following steps: detecting the actual fault type of the vehicle computer restart fault, wherein the actual fault type includes a restart fault caused by the control unit MCU side of the vehicle computer and a restart fault caused by the central processing unit CPU side of the vehicle computer; when the actual fault type is a restart fault caused by the MCU side, obtaining restart fault data on the MCU side, and reporting the restart fault data on the MCU side to the CPU side; when the actual fault type is a restart fault caused by the CPU side, obtaining fault restart data on the CPU side, and analyzing the fault restart data on the CPU side to obtain an analysis result; storing the restart fault data on the MCU side and / or the analysis result in a first preset memory on the CPU side, so as to perform restart fault monitoring on the vehicle computer based on the data stored in the first preset memory.

[0007] According to the above-mentioned technical means, the embodiment of the present application can store fault data on the CPU side to realize the monitoring of vehicle computer restart faults, without over-reliance on the MCU side, avoiding the large amount of memory on the MCU side, and improving storage rationality; and because the fault data is stored locally, offline operation can be achieved during troubleshooting, avoiding the inefficiency caused by the need to download fault data in a poor network environment, and facilitating developers to quickly analyze and locate the problems caused, thereby improving work efficiency; at the same time, because the fault data on the MCU side ultimately stores the analysis results, it is possible to avoid the storage of too much invalid data, improve storage efficiency, and save storage space.

[0008] Further, the obtaining of the restart fault data on the MCU side includes: reading a second preset memory on the MCU side to obtain the restart fault data on the MCU side, wherein the restart fault data on the MCU side is recorded at a preset time before the vehicle computer is restarted.

[0009] According to the above-mentioned technical means, the embodiment of the present application can read the relevant restart fault data within a certain period of time before the vehicle computer restarts from the MCU side memory, which is convenient for developers to analyze the specific causes of the restart failure caused by the MCU side of the control unit of the vehicle computer, save working time and improve work efficiency.

[0010] Furthermore, the acquisition of fault restart data on the CPU side includes: when the upper-layer application logic on the CPU side restarts abnormally, using a preset restart interface to capture the fault restart data on the CPU side; when the system framework layer on the CPU side restarts abnormally, calling the system exception capture service to capture the abnormal data of the kernel and framework layers, and marking and classifying the abnormal data to obtain the fault restart data on the CPU side.

[0011] According to the above-mentioned technical means, in the embodiment of the present application, different measures are taken to capture the fault restart data on the CPU side for different abnormal restart conditions occurring on the CPU side, and the abnormal data is marked and classified, so as to facilitate developers to distinguish the specific causes of the fault restart caused by the CPU side, and make corresponding strategies for the corresponding exceptions, thereby saving working time and improving work efficiency.

[0012] Furthermore, after storing the restart fault data and / or the analysis result on the MCU side in the first preset memory on the CPU side, it also includes: obtaining the user's restart fault display intention; reading the restart fault data and / or the analysis result on the MCU side from the first preset memory according to the restart fault display intention, and displaying them on the screen of the vehicle computer.

[0013] According to the above-mentioned technical means, the embodiment of the present application decides whether to read the restart fault data on the MCU side and / or the restart fault analysis results caused by the CPU side from the CPU side memory according to the user's actual restart fault display intention, and display them on the car computer screen, which is more intelligent and convenient for users to promptly obtain relevant problems existing in the car computer, and promptly feedback to after-sales processing, thereby improving user experience.

[0014] The second aspect of the present application provides a restart fault monitoring device for a vehicle computer, comprising: a detection module, used to detect the actual fault type of the vehicle computer restart fault, wherein the actual fault type includes the restart fault caused by the control unit MCU side of the vehicle computer and the restart fault caused by the central processing unit CPU side of the vehicle computer; an acquisition module, used to obtain the restart fault data of the MCU side when the actual fault type is the restart fault caused by the MCU side, and report the restart fault data of the MCU side to the CPU side; an analysis module, used to obtain the fault restart data of the CPU side when the actual fault type is the restart fault caused by the CPU side, and analyze the fault restart data of the CPU side to obtain an analysis result; a storage module, used to store the restart fault data of the MCU side and / or the analysis result in a first preset memory on the CPU side, so as to perform restart fault monitoring on the vehicle computer based on the data stored in the first preset memory.

[0015] Furthermore, the acquisition module includes: reading a second preset memory on the MCU side to obtain restart fault data on the MCU side, wherein the restart fault data on the MCU side is recorded at a preset time before the vehicle computer is restarted.

[0016] Furthermore, the acquisition module is further used for: when the upper-layer application logic on the CPU side restarts abnormally, using the preset restart interface to capture the fault restart data on the CPU side; when the system framework layer on the CPU side restarts abnormally, calling the system exception capture service to capture the abnormal data of the kernel and framework layers, and marking and classifying the abnormal data to obtain the fault restart data on the CPU side.

[0017] Furthermore, it also includes: obtaining the user's restart fault display intention; reading the restart fault data and / or the analysis result on the MCU side from the first preset memory according to the restart fault display intention, and displaying them on the screen of the vehicle computer.

[0018] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the restart fault monitoring method as described in the above embodiment.

[0019] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to implement the restart fault monitoring method as described in the above embodiment.

[0020] Therefore, this application has at least the following beneficial effects:

[0021] (1) The embodiments of the present application can store fault data on the CPU side to monitor the vehicle computer restart fault without over-reliance on the MCU side, thus avoiding occupying a large amount of memory on the MCU side and improving storage rationality; and because the fault data is stored locally, offline operation can be achieved during troubleshooting, thus avoiding the inefficiency caused by the need to download fault data in a poor network environment, making it easier for developers to quickly analyze and locate the problems and improve work efficiency; and because the fault data on the MCU side ultimately stores the analysis results, it is possible to avoid storing too much invalid data, thus improving storage efficiency and saving storage space.

[0022] (2) The embodiment of the present application can read the relevant restart fault data within a certain period of time before the vehicle computer restarts from the MCU side memory, which is convenient for developers to analyze the specific cause of the restart fault caused by the MCU side of the control unit of the vehicle computer, saving working time and improving work efficiency.

[0023] (3) In the embodiments of the present application, different measures are taken to capture the fault restart data on the CPU side in response to different abnormal restart conditions occurring on the CPU side, and the abnormal data is marked and classified, so as to facilitate developers to distinguish the specific causes of the fault restart caused by the CPU side, and formulate corresponding strategies for the corresponding abnormalities, thereby saving working time and improving work efficiency.

[0024] (4) The embodiment of the present application determines whether to read the restart fault data on the MCU side and / or the restart fault analysis results caused by the CPU side from the CPU side memory according to the user's actual restart fault display intention, and displays them on the car computer screen. This is more intelligent and convenient for users to promptly obtain relevant problems existing in the car computer and provide timely feedback to after-sales processing, thereby improving user experience.

[0025] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0027] Figure 1 is a flow chart of a restart fault monitoring method for a vehicle computer according to an embodiment of the present application;

[0028] Figure 2 A system framework diagram of a restart fault monitoring method for a vehicle computer according to an embodiment of the present application;

[0029] Figure 3 A flowchart of a system recording fault according to an embodiment of the present application;

[0030] Figure 4 This is a flow chart of vehicle-side data collection and file reporting according to an embodiment of the present application;

[0031] Figure 5 A diagram showing a historical restart data framework according to an embodiment of the present application;

[0032] Figure 6 Schematic diagram of a restart fault monitoring device for a vehicle computer according to an embodiment of the present application;

[0033] Figure 7 It is a schematic diagram of the structure of a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0035] The in-vehicle entertainment system host (referred to as the car computer) is an in-vehicle comprehensive information processing system that uses a dedicated in-vehicle central processor, based on the body bus system and Internet services. The car computer can realize a series of applications including navigation, real-time road conditions, assisted driving, fault detection, vehicle information, body control, mobile office, wireless communication, online entertainment functions and TSP services, greatly improving the level of vehicle electrification, networking and intelligence.

[0036] The existing in-vehicle infotainment system is developed based on the Android system. The processor chip is responsible for the operation and management of the entire Android system. During the early development of the vehicle computer, the modules in the system are in poor condition. When a fatal error occurs in the kernel program or the Android app responds to a timeout, the entire Android system will be restarted. The central control screen will go black and the boot animation will be replayed, reducing the user experience. This type of error usually occurs because the log is not saved completely or the problem is not handled in time. At the same time, the probability of recurrence of the problem is relatively low, which makes it difficult to analyze such problems later. It may require a lot of manpower to find the root cause.

[0037] There are many reasons for the current Android system to restart. After the system initialization is completed, the system starts a logService log recording process to write the system operation log in real time to a storage space allocated on the emmc (EmbeddedMultiMediaCard, embedded memory). If the system executes abnormally and restarts, the log can be recorded in the log partition of the emmc. After the restart, the log is exported from the system to assist in problem analysis. However, when the hardware carrier CPU of the Android system has a power failure abnormality, the logService cannot write the log to the log partition of the emmc in time, resulting in the inability to analyze the specific cause of the problem after the restart. If the probability of the problem occurring is low, the time and manpower cost of problem analysis will increase.

[0038] In the implementation of the known method, the cause analysis is not performed on the vehicle side, and only the log file generated by the logService during restart is uploaded to the cloud, which is inefficient, and a large number of invalid data files are stored in the cloud log server; the MCU is used as the actual log storage and restart judgment party, and the log does not need to be placed in the MCU, and the MCU itself has limited space, so it is unreasonable to use it to store log files; the analysis of restart-related problems of the vehicle computer can only be obtained by uploading to the cloud and downloading the log file to the developer for analysis. If the vehicle computer has no network, it cannot be uploaded or downloaded, which is extremely inefficient.

[0039] Specifically, Figure 1 Schematic diagram of the process of the vehicle computer restart fault monitoring method according to an embodiment of the present application.

[0040] like Figure 1 As shown, the restart fault monitoring method of the vehicle computer includes the following steps:

[0041] In step S101, the actual fault type of the vehicle computer restart fault is detected, wherein the actual fault type includes a restart fault caused by the control unit MCU side of the vehicle computer and a restart fault caused by the central processing unit CPU side of the vehicle computer.

[0042] It is understandable that in the embodiment of the present application, the detected vehicle computer restart failure is classified according to the actual failure situation, so that the developers can intuitively understand the relevant types of vehicle computer restart failure.

[0043] In step S102, when the actual fault type is a restart fault caused by the MCU side, the restart fault data of the MCU side is obtained, and the restart fault data of the MCU side is reported to the CPU side.

[0044] Among them, the restart failure data on the MCU side includes failure to establish a communication channel with the vehicle computer, MCU power failure, MCU diagnosis failure, low power supply voltage, AccOff not sleeping after a period of time, etc., which are not specifically limited here.

[0045] It can be understood that when the detection system detects that the actual fault type is a restart fault caused by the MCU side, the embodiment of the present application obtains relevant data, and after the vehicle computer is successfully restarted, the fault information of the MCU is reported to the CPU side. Only the fault information is uploaded to ensure the validity of the information, reduce the storage space occupied, and facilitate developers to quickly handle related problems and improve the user experience of the car.

[0046] In an embodiment of the present application, obtaining the restart fault data on the MCU side includes: reading a second preset memory on the MCU side to obtain the restart fault data on the MCU side, wherein the restart fault data on the MCU side is recorded at a preset time before the vehicle computer restarts.

[0047] The second preset memory may be the EMMC (embedded memory) of the vehicle computer's MCU itself, which is not specifically limited here.

[0048] The preset time may be a time set in advance by a user, or a time obtained by a computer after multiple experimental data, for example, 20 seconds or 30 seconds before restart, which is not specifically limited here.

[0049] It can be understood that the embodiment of the present application can read the relevant restart fault data within a certain period of time before the vehicle computer restarts from the MCU side memory, which is convenient for developers to analyze the specific causes of the restart failure caused by the MCU side of the control unit of the vehicle computer, save working time and improve work efficiency.

[0050] Specifically, the vehicle MCU mainly implements the record of restart events caused by the MCU itself in the restart fault monitoring system. The recorded data includes but is not limited to the time when the restart fault occurred, the cause of the fault, and the related MCU functional modules that triggered the fault. After the vehicle is successfully restarted, the fault information of the MCU is reported to the CPU Android side.

[0051] In step S103, when the actual fault type is a restart fault caused by the CPU side, the fault restart data of the CPU side is acquired, and the fault restart data of the CPU side is analyzed to obtain an analysis result.

[0052] The fault restart data on the CPU side includes upper-layer application logic abnormalities on the CPU side, system framework layer abnormalities on the CPU side, etc., which are not specifically limited here.

[0053] It can be understood that when the detection system detects that the actual fault type is a restart fault caused by the CPU side, the embodiment of the present application obtains the fault restart data and analyzes it to obtain the analysis result, which is convenient for developers to accurately and quickly determine the specific cause of the problem, save work time and improve work efficiency.

[0054] In an embodiment of the present application, the fault restart data on the CPU side is obtained, including: when the upper-layer application logic on the CPU side restarts abnormally, using a preset restart interface to capture the fault restart data on the CPU side; when the system framework layer on the CPU side restarts abnormally, calling the system exception capture service to capture the abnormal data of the kernel and framework layers, and marking and classifying the abnormal data to obtain the fault restart data on the CPU side.

[0055] Among them, the preset restart interface can be a restart interface set in advance by the user, or it can be a restart interface obtained by the computer through multiple experimental data. For example, the restart interface can include the package name, restart reason, restart time, etc., which is not specifically limited here.

[0056] It can be understood that the embodiments of the present application take different measures to capture the fault restart data on the CPU side in response to different abnormal restart conditions occurring on the CPU side, and mark and classify the abnormal data therein, so as to facilitate developers to distinguish the specific causes of the fault restart caused by the CPU side, and formulate corresponding strategies for the corresponding exceptions, thereby saving working time and improving work efficiency.

[0057] Specifically, the vehicle CPU mainly implements the following in the restart fault monitoring system:

[0058] 1. Analyze, collect and record restart failure events caused by the Android system;

[0059] 2. Call the car screen to display historical restart fault information on it, so that testers and developers can quickly and accurately understand the cause and effect of the problem;

[0060] 3. The restart fault information is recorded and reported to the cloud. The reported fault information is brief and clear.

[0061] In step S104, the restart fault data and / or analysis results on the MCU side are stored in the first preset memory on the CPU side, so as to monitor the restart fault of the vehicle computer based on the data stored in the first preset memory.

[0062] The first preset memory may be a CPU memory, which is not specifically limited here.

[0063] It can be understood that the embodiment of the present application stores the analysis results of the restart fault data on the MCU side and / or the restart fault data caused by the CPU side in the CPU memory, and performs restart monitoring on the vehicle computer based on the stored data, which not only ensures the validity of the stored information and reduces the storage space occupied, but also can call the required restart fault data through the stored data, making the operation more convenient and quick.

[0064] In an embodiment of the present application, after storing the restart fault data and / or analysis results on the MCU side in the first preset memory on the CPU side, it also includes: obtaining the user's restart fault display intention; reading the restart fault data and / or analysis results on the MCU side from the first preset memory according to the restart fault display intention, and displaying them on the screen of the vehicle computer.

[0065] Among them, the restart fault display intention can be the user's intention to display the restart fault information through the vehicle host panel.

[0066] It can be understood that the embodiment of the present application decides whether to read the restart fault data on the MCU side and / or the restart fault analysis results caused by the CPU side from the CPU side memory according to the user's actual restart fault display intention, and display them on the car computer screen, which is more intelligent and convenient for users to promptly obtain relevant problems with the car computer, and promptly feedback to after-sales processing, thereby improving user experience.

[0067] Specifically, the cloud TSP server mainly implements the following in the restart fault monitoring system:

[0068] 1. Collect the restart failures of all relevant vehicles and make them persistent;

[0069] 2. Analyze the reasons for restarting all vehicle hosts and the proportion of each type. Combined with the advantages of the cloud-based Internet of Vehicles database, it can analyze the working conditions of the vehicle when it fails;

[0070] 3. Display the vehicle host restart fault information panel and provide statistical analysis functions such as statistical export for analysts;

[0071] According to the restart fault monitoring method of the vehicle computer proposed in the embodiment of the present application, by classifying the detected vehicle computer restart fault types and making corresponding processing for different types, and then storing the restart fault data and / or analysis results in the cloud, the vehicle computer is restarted and monitored based on the stored data, which is convenient for developers to quickly analyze and locate the problems caused and improve work efficiency, and only upload fault information to ensure the validity of the information and reduce the storage space occupied. In this way, the problems of low efficiency in the vehicle computer restart fault troubleshooting process, unreasonable storage location, too much invalid data occupying space, and inability to quickly analyze and locate the cause of the fault, which is time-consuming and laborious, are solved.

[0072] The following will Figure 2 Taking the application scenario shown as an example, the restart fault monitoring system of the vehicle computer is divided into two parts as a whole: the vehicle computer side and the cloud side. The vehicle computer side includes: the vehicle computer MCU, the vehicle computer CPU, and the vehicle computer screen; the cloud side includes: data basic platform services and big data processing platforms. The vehicle computer MCU and the CPU communicate through the UART serial port and the SPI high-speed interface. The vehicle computer screen displays the Android UI interface for the CPU, and the vehicle computer side transmits data to the cloud server through the mobile network. The system mainly includes three sub-functions: 1. Recording of restart fault events, 2. Uploading restart fault event data to the cloud, and 3. Vehicle computer UI display of restart fault events; the three sub-functions complement each other and ultimately realize the entire system.

[0073] The following will be combined Figure 3 , Figure 4 and Figure 5 The above three sub-functions are elaborated in detail. Among them, the restart failure of the car entertainment system can be divided into two categories: restart failure caused by the car and restart failure caused by the Android system side of the car CPU, as follows:

[0074] Among them, the record analysis of restart failure in this system is as follows: Figure 3 As shown, the process is as follows:

[0075] In process S100, a restart caused by the MCU occurs. Then before the restart, the MCU needs to record the reason for the restart in the EMMC of the MCU itself. When recording the restart event, it is necessary to record the restart time, the reason for the restart, and the software module to which the restart initiator belongs. Among them, the restart initiated by the MCU itself may include: failure to establish the communication channel with the vehicle machine, MCU power failure, MCU diagnosis failure, low power supply voltage, AccOff not sleeping after a period of time, etc.

[0076] In S101 and S102, after the vehicle computer is restarted, the vehicle computer MCU will establish a communication channel with the CPU side, that is, after the two communication channels of UART communication and SPI are established, the MCU will actively report the restart event recorded in the EMMC to the vehicle computer;

[0077] In S120 and S121, after receiving the reported event, the CPU Android side stores it persistently in the database of the Android system.

[0078] In process S110, in the scenario where the Android system abnormality causes a restart due to itself, if the upper-layer APP logic abnormality requires a restart, a restart interface can be provided to the APP for easy capture. The restart interface may include a package name, a restart reason, and a restart time;

[0079] In process S111, for exceptions in the Android system framework layer, the system exception capture service is called to record exceptions in the kernel and framework layers, and the exceptions that require restart are marked and classified and recorded in the file system;

[0080] In the next S112, the restart fault monitoring service will monitor the corresponding file path and analyze the abnormal files written. After the analysis is completed, the next process S120 and S121 are performed to record the relevant analysis results and restart events and store them persistently in the Android system database.

[0081] Among them, after collecting and recording the restart event and persisting it in the Android system database, it will trigger the process of uploading the fault data to the cloud, such as Figure 4 As shown, the specific process is as follows:

[0082] After receiving and recording the data in S200 and S201, the process S202 continues, first checking whether the network is available. If the network is available, check whether there is a fault record of failed upload in S203. If there is a failed report record, the failed record is stored in the upload list in S204, and then S205 puts the failed record into the current reporting event list and uploads it to the cloud server. Then the cloud server receives the reported data from the cloud basic platform in process S206. Next, process S207 is used by the cloud big data platform to obtain the restart fault data of the vehicle computer from the former. Then, in S208, the big data platform analyzes the fault-related data and displays it on the vehicle computer screen, including but not limited to historical fault time, fault cause, etc.

[0083] Among them, in the specific display of historical restart, the restart failure event will be displayed through the UI of the vehicle computer, such as Figure 5As shown, whether to display the relevant restart fault information on the vehicle screen is determined according to the user's actual display intention, as follows:

[0084] In process S300, when the user clicks the display button, he selects the number of display items; in process S301, the corresponding monitoring service of Android receives the relevant request; then continues process S302 to read the recorded restart fault data from the local Android system persistent database; then in process S303, the data is processed and the UI is drawn, and finally in process S304, the drawn UI result is displayed on the car screen.

[0085] Next, the restart fault monitoring device for a vehicle computer proposed in an embodiment of the present application will be described with reference to the accompanying drawings.

[0086] Figure 6 It is a block diagram of a restart fault monitoring device for a vehicle computer according to an embodiment of the present application.

[0087] like Figure 6 As shown, the restart fault monitoring device 40 of the vehicle computer includes: a detection module 410 , an acquisition module 420 , an analysis module 430 and a storage module 440 .

[0088] Among them, the detection module 410 is used to detect the actual fault type of the vehicle computer restart fault, wherein the actual fault type includes the restart fault caused by the MCU side of the vehicle computer control unit and the restart fault caused by the CPU side of the vehicle computer central processing unit; the acquisition module 420 is used to obtain the restart fault data on the MCU side when the actual fault type is the restart fault caused by the MCU side, and report the restart fault data on the MCU side to the CPU side; the analysis module 430 is used to obtain the fault restart data on the CPU side when the actual fault type is the restart fault caused by the CPU side, and analyze the fault restart data on the CPU side to obtain the analysis result; the storage module 440 is used to store the restart fault data and / or analysis result on the MCU side in the first preset memory on the CPU side, so as to monitor the restart fault of the vehicle computer based on the data stored in the first preset memory.

[0089] In an embodiment of the present application, the acquisition module 420 includes: reading a second preset memory on the MCU side to obtain restart fault data on the MCU side, wherein the restart fault data on the MCU side is recorded at a preset time before the vehicle computer restarts.

[0090] In an embodiment of the present application, the acquisition module 420 is further used for: when the upper-layer application logic on the CPU side restarts abnormally, using the preset restart interface to capture the fault restart data on the CPU side; when the system framework layer on the CPU side restarts abnormally, calling the system exception capture service to capture the abnormal data of the kernel and framework layers, and marking and classifying the abnormal data to obtain the fault restart data on the CPU side.

[0091] In an embodiment of the present application, it also includes: obtaining the user's restart fault display intention; reading the restart fault data and / or analysis results on the MCU side from the first preset memory according to the restart fault display intention, and displaying them on the screen of the vehicle computer.

[0092] It should be noted that the above explanation of the embodiment of the vehicle computer restart fault monitoring method is also applicable to the vehicle computer restart fault monitoring device of this embodiment, and will not be repeated here.

[0093] According to the restart fault monitoring device for the vehicle computer proposed in the embodiment of the present application, by classifying the detected vehicle computer restart fault types and making corresponding processing for different types, and then storing the restart fault data and / or analysis results in the cloud, the vehicle computer is restarted and monitored based on the stored data, which is convenient for developers to quickly analyze and locate the problems caused and improve work efficiency, and only uploads fault information to ensure the validity of the information and reduce the storage space occupied. Thus, the problems of low efficiency in the vehicle computer restart fault troubleshooting process, unreasonable storage location, too much invalid data occupying space, and inability to quickly analyze and locate the cause of the fault, which is time-consuming and laborious, are solved.

[0094] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:

[0095] A memory 701 , a processor 702 , and a computer program stored in the memory 701 and executable on the processor 702 .

[0096] When the processor 702 executes the program, the restart fault monitoring method of the vehicle computer provided in the above embodiment is implemented.

[0097] Furthermore, the vehicle also includes:

[0098] The communication interface 703 is used for communication between the memory 701 and the processor 702 .

[0099] The memory 701 is used to store computer programs that can be executed on the processor 702 .

[0100] The memory 701 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0101] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0102] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.

[0103] The processor 702 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0104] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned restart fault monitoring method of the vehicle computer is implemented.

[0105] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0106] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0107] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0108] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0109] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0110] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for monitoring a restart failure of a vehicle computer, characterized in that: The following steps are involved: Detecting the actual fault type of the vehicle computer restart fault, wherein the actual fault type includes a restart fault caused by the vehicle computer control unit MCU side and a restart fault caused by the vehicle computer central processing unit CPU side; When the actual fault type is a restart fault caused by the MCU side, obtaining restart fault data of the MCU side, and reporting the restart fault data of the MCU side to the CPU side; When the actual fault type is a restart fault caused by the CPU side, acquiring fault restart data of the CPU side, and analyzing the fault restart data of the CPU side to obtain an analysis result; The restart fault data on the MCU side and / or the analysis result are stored in a first preset memory on the CPU side, so as to perform restart fault monitoring on the vehicle computer based on the data stored in the first preset memory.

2. The method according to claim 1, characterized in that The obtaining of restart fault data on the MCU side includes: The second preset memory on the MCU side is read to obtain restart fault data on the MCU side, wherein the restart fault data on the MCU side is recorded at a preset time before the vehicle computer is restarted.

3. The method according to claim 1, characterized in that The obtaining of CPU-side fault restart data includes: When the upper-layer application logic on the CPU side abnormally restarts, the fault restart data on the CPU side is captured using the preset restart interface; When the system framework layer on the CPU side restarts abnormally, the system abnormality capture service is called to capture abnormal data of the kernel and framework layers, and the abnormal data is marked and classified to obtain the fault restart data on the CPU side.

4. The method according to any one of claims 1 to 3, characterized in that: After storing the restart fault data on the MCU side and / or the analysis result in the first preset memory on the CPU side, the method further includes: Get the user's restart failure display intention; According to the restart fault display intention, the restart fault data and / or the analysis result on the MCU side are read from the first preset memory and displayed on the screen of the vehicle computer.

5. A restart fault monitoring device for a vehicle computer, characterized in that: include: A detection module, used to detect the actual fault type of the vehicle computer restart fault, wherein the actual fault type includes a restart fault caused by the vehicle computer control unit MCU side and a restart fault caused by the vehicle computer central processing unit CPU side; an acquisition module, used for acquiring restart fault data of the MCU side when the actual fault type is a restart fault caused by the MCU side, and reporting the restart fault data of the MCU side to the CPU side; An analysis module, used for obtaining the fault restart data of the CPU side and analyzing the fault restart data of the CPU side to obtain an analysis result when the actual fault type is a restart fault caused by the CPU side; A storage module is used to store the restart fault data of the MCU side and / or the analysis result in a first preset memory on the CPU side, so as to monitor the restart fault of the vehicle computer based on the data stored in the first preset memory.

6. The device according to claim 5, characterized in that The acquisition module comprises: The second preset memory on the MCU side is read to obtain restart fault data on the MCU side, wherein the restart fault data on the MCU side is recorded at a preset time before the vehicle computer is restarted.

7. The device according to claim 5, characterized in that The acquisition module is further used for: When the upper-layer application logic on the CPU side abnormally restarts, the fault restart data on the CPU side is captured using the preset restart interface; When the system framework layer on the CPU side restarts abnormally, the system abnormality capture service is called to capture abnormal data of the kernel and framework layers, and the abnormal data is marked and classified to obtain the fault restart data on the CPU side.

8. The device according to claim 5, characterized in that Also includes: Get the user's restart failure display intention; According to the restart fault display intention, the restart fault data and / or the analysis result on the MCU side are read from the first preset memory and displayed on the screen of the vehicle computer.

9. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the restart fault monitoring method for a vehicle computer as described in any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the restart fault monitoring method of a vehicle computer as described in any one of claims 1 to 4.