Process state detection method and device, storage medium, system-on-chip and vehicle
By installing preset detection programs in the system-level chip to obtain and analyze heartbeat messages, the problem of not being able to accurately identify the operating status of the vehicle's functional safety control process is solved, and timely identification and response to vehicle functional safety risks is achieved, and vehicle operation safety is improved.
Patent Information
- Application Number
- CN202411588939.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-03-28
Smart Images

Figure CN119718814A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle functional safety control technology, and in particular to a process status detection method, device, storage medium, system-level chip and vehicle. Background Art
[0002] With the development of science and technology and the improvement of national consumption level, people's requirements for automobile safety performance are getting higher and higher. Functional Safety (FuSa) is a standard for road vehicles that eliminates unacceptable risks through safety functions and measures to ensure the reliable and safe operation of vehicles. At present, the microcontroller unit at the vehicle usually obtains the cyclic redundancy check code corresponding to the target information to be monitored from the system-level chip at the smart cockpit system, so as to detect whether the operation process of the smart cockpit system meets the road vehicle functional safety standards based on the cyclic redundancy check code, thereby realizing vehicle functional safety control. However, since it is usually impossible to accurately identify the operating status of the process used to realize vehicle functional safety control in the system-level chip, when the vehicle functional safety risk is detected based on the cyclic redundancy check code, it may not be possible to take effective measures in time to control the vehicle functional safety risk, affecting the safety of the vehicle operation process. Summary of the invention
[0003] Based on this, the present invention provides a process status detection method, device, storage medium, system-level chip and vehicle. By adopting the process status detection method, the operating status of the target process in the system-level chip for realizing vehicle functional safety control can be accurately identified, which is beneficial to ensuring the safety of the vehicle operation process.
[0004] In one aspect, the present invention provides a process status detection method, the method comprising:
[0005] Using a preset detection program carried in a system-level chip at the smart cockpit system, obtaining a heartbeat message reported by a preset process in the system-level chip for implementing vehicle functional safety control based on a cyclic redundancy check code;
[0006] Based on the heartbeat message obtained by the preset detection program within a preset time period, the running status of the target process for realizing the functional safety control of the vehicle in the system-level chip is analyzed and processed to obtain the process status information of the target process.
[0007] Further, in some embodiments, the method of using a preset detection program carried in a system-on-chip at the smart cockpit system to obtain a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle functional safety control based on a cyclic redundancy check code includes:
[0008] Utilizing the preset detection program, obtaining a first heartbeat message reported by a first preset process in the system-on-chip according to a first preset period; wherein the first preset process is a process for receiving a cyclic redundancy check code acquisition request sent by a microcontroller unit at a vehicle; and / or,
[0009] Utilizing the preset detection program, obtaining a second heartbeat message reported by a second preset process in the system-on-chip according to a second preset period; wherein the second preset process is a process for forwarding the cyclic redundancy check code acquisition request to a cyclic redundancy check code generator in the system-on-chip; and / or,
[0010] Utilizing the preset detection program, the third heartbeat message reported by the first preset process and the second preset process in the system-level chip in response to a target event is obtained; wherein the target event includes a preset event involved in the processing process of the cyclic redundancy check code acquisition request.
[0011] Furthermore, in some embodiments, the above method further comprises:
[0012] Obtaining process running record information at a process management program in the system-on-chip;
[0013] The heartbeat message obtained by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the vehicle functional safety control in the system-level chip to obtain the process state information of the target process, including:
[0014] Based on the first heartbeat message and the process running record information obtained by the preset detection program within a preset time period, it is determined whether the first preset process has not reported the first heartbeat message within a recent first time period, and the first preset process has not exited running, to obtain a first judgment result;
[0015] If the first judgment result indicates that the first preset process has not reported the first heartbeat message within the latest first period of time, and the first preset process has not exited running, then generating process status information reflecting that the first preset process is in a blocked state; and / or,
[0016] Based on the second heartbeat message and the process running record information obtained by the preset detection program within the preset time period, it is determined whether the second preset process has not reported the second heartbeat message within the latest second time period, and the second preset process has not exited running, to obtain a second judgment result;
[0017] If the second judgment result indicates that the second preset process has not reported the second heartbeat message within the latest second period of time and the second preset process has not exited, process status information reflecting that the second preset process is in a blocked state is generated.
[0018] Further, in some implementations, the heartbeat message acquired by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the functional safety control of the vehicle in the system-level chip to obtain the process state information of the target process, and further includes:
[0019] Based on the first heartbeat message obtained by the preset detection program within a preset time period, determine whether the first preset process has not reported the first heartbeat message within a recent third time period, and obtain a third judgment result; wherein the third time period is greater than the first time period;
[0020] If the third judgment result indicates that the first preset process has not reported the first heartbeat message within the latest third period of time, then generating process status information reflecting that the first preset process is in a timeout state; and / or,
[0021] Based on the second heartbeat message obtained by the preset detection program within the preset time period, determine whether the second preset process has not reported the second heartbeat message within the latest fourth time period, and obtain a fourth judgment result; wherein the fourth time period is greater than the second time period;
[0022] If the fourth judgment result indicates that the second preset process has not reported the second heartbeat message within the latest fourth period of time, process status information reflecting that the second preset process is in a timeout state is generated.
[0023] Further, in some implementations, after generating process status information reflecting that the first preset process is in a blocked state, and / or generating process status information reflecting that the first preset process is in a timeout state, the method further includes:
[0024] Using the preset detection program, sending a restart instruction for the first preset process to the process management program; and / or,
[0025] After generating the process status information reflecting that the second preset process is in a blocked state, and / or generating the process status information reflecting that the second preset process is in a timeout state, the method further includes:
[0026] By using the preset detection program, a restart instruction for the second preset process is sent to a power management module for performing power management on the second preset process.
[0027] Further, in some implementations, the heartbeat message acquired by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the functional safety control of the vehicle in the system-level chip to obtain the process state information of the target process, including:
[0028] Based on the third heartbeat message obtained by the preset detection program within the preset time period, determine whether the first preset process and the second preset process report the heartbeat message according to the preset execution order of the target event, and obtain a fifth judgment result;
[0029] If the fifth judgment result indicates that the first preset process and the second preset process do not report the heartbeat message according to the preset execution order of the target event, then process status information is generated reflecting that the process flow in the system-level chip used to implement the vehicle functional safety control is in a chaotic state of operation.
[0030] Furthermore, in some embodiments, after generating the process status information reflecting that the process flow in the system-level chip for implementing the vehicle functional safety control is in a chaotic running state, the method further includes:
[0031] Using the preset detection program, a restart instruction for the system-on-chip is sent to a microcontroller unit at the vehicle.
[0032] Further, in some embodiments, the preset execution order of the target event includes: sequentially executing a first preset event reflecting that the first preset process receives the cyclic redundancy check code acquisition request, a second preset event reflecting that the second preset process forwards the cyclic redundancy check code acquisition request to the cyclic redundancy check code generator, a third preset event reflecting that the second preset process receives the cyclic redundancy check code fed back by the cyclic redundancy check code generator, and a fourth preset event reflecting that the first preset process receives the cyclic redundancy check code.
[0033] Further, in some implementations, the heartbeat message acquired by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the functional safety control of the vehicle in the system-level chip to obtain the process state information of the target process, and further includes:
[0034] Based on the second heartbeat message and the third heartbeat message acquired by the preset detection program within the preset time period, it is determined whether the second preset process is in a normal operating state, and the interval between the second preset process sending the heartbeat message in response to the second preset event and the third preset event is greater than the fifth duration, to obtain a sixth judgment result;
[0035] If the sixth judgment result indicates that the second preset process is in a normal operating state, and the interval duration between the second preset process sending a heartbeat message in response to the second preset event and the third preset event is greater than the fifth duration, then process status information reflecting that the cyclic redundancy check code generator is in a timeout state is generated.
[0036] Further, in some embodiments, the cyclic redundancy check code generator is an OpenWFD module, and the OpenWFD module is used to generate a cyclic redundancy check code corresponding to the target information currently displayed on the human-machine interface at the vehicle in response to the cyclic redundancy check code acquisition request;
[0037] The microcontroller unit at the vehicle is used to perform vehicle functional safety control according to the cyclic redundancy check code.
[0038] Further, in some embodiments, the method of using a preset detection program carried in a system-on-chip at the smart cockpit system to obtain a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle functional safety control based on a cyclic redundancy check code includes:
[0039] Using an independently running target detection process created based on the preset detection program, obtaining a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle functional safety control based on a cyclic redundancy check code; and / or,
[0040] The heartbeat message obtained by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the vehicle functional safety control in the system-level chip to obtain the process state information of the target process, including:
[0041] Utilizing the target detection process, based on the heartbeat message obtained by the preset detection program within a preset time period, the running status of the target process in the system-level chip for implementing the vehicle functional safety control is analyzed and processed to obtain the process status information of the target process.
[0042] On the other hand, the present invention also provides a process status detection device, comprising:
[0043] An acquisition module, used to use a preset detection program carried in a system-level chip at the smart cockpit system to acquire a heartbeat message reported by a preset process in the system-level chip for implementing vehicle functional safety control based on a cyclic redundancy check code;
[0044] An analysis module is used to analyze and process the running status of the target process for realizing the functional safety control of the vehicle in the system-level chip based on the heartbeat message obtained by the preset detection program within a preset time period, so as to obtain the process status information of the target process.
[0045] On the other hand, the present invention further provides a storage medium storing a computer program, wherein the computer program is suitable for being loaded by a processor and executing the steps of the above-mentioned process status detection method.
[0046] On the other hand, the present invention also provides a system-level chip, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and the computer-readable instructions are suitable for being loaded by the processor and executing the steps of the above-mentioned process status detection method.
[0047] On the other hand, the present invention further provides a vehicle, comprising the above-mentioned process status detection device or the above-mentioned system-level chip.
[0048] According to the process status detection method provided by the present invention, a preset detection program can be pre-installed in the system-level chip of the smart cockpit system, so as to use the preset detection program to obtain the heartbeat message reported by the preset process in the system-level chip for realizing the vehicle functional safety control based on the cyclic redundancy check code; by analyzing the heartbeat message obtained by the preset detection program within a preset time period, the process status information of the target process in the system-level chip for realizing the vehicle functional safety control can be accurately obtained; therefore, when the smart cockpit system is identified to have a vehicle functional safety risk based on the cyclic redundancy check code, the cause of the fault can be analyzed in combination with the process status information of the target process in the system-level chip, so as to take accurate and effective measures to reduce the vehicle functional safety risk, which is conducive to ensuring the safety of the vehicle operation process.
[0049] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of a process status detection method provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a process status detection scenario provided by an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of the structure of a process status detection device provided by an embodiment of the present invention;
[0053] Figure 4 A schematic diagram of the structure of a system-on-chip provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0055] In the description of one or more embodiments of the present invention, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0056] One of the requirements in the functional safety standard for road vehicles (FuSa) is that the information display device at the smart cockpit system should accurately display the content it needs to display at each moment. In order to achieve this vehicle functional safety goal, the vehicle's microcontroller unit is usually made to interact with the system-level chip at the smart cockpit system, so that the system-level chip can generate corresponding cyclic redundancy check codes for the target information actually displayed by the information display device at the smart cockpit system at each moment, and the microcontroller unit can compare the cyclic redundancy check code obtained from the system-level chip with the reference cyclic redundancy check code corresponding to the content actually required to be displayed by the information display device at each moment; if they are inconsistent, it can be determined that there is a vehicle functional safety risk in the smart cockpit system.
[0057] At present, when the cyclic redundancy check code obtained by the microcontroller unit from the system-level chip of the smart cockpit system is inconsistent with the reference cyclic redundancy check code, it is impossible to accurately identify the running status of the process used to achieve vehicle functional safety control in the system-level chip, and thus it is impossible to accurately analyze the cause of the fault. Therefore, the system-level chip of the smart cockpit system is usually restarted to reduce the risk of vehicle functional safety. This vehicle functional safety control method is not only time-consuming, but also not conducive to fundamentally solving the risk of vehicle functional safety, and thus not conducive to ensuring the safety of the vehicle operation process.
[0058] Based on this, how to accurately identify the operating status of the target process in the system-level chip of the smart cockpit system for achieving vehicle functional safety control in order to ensure the safety of the vehicle operation process has become a technical problem that needs to be solved urgently.
[0059] In order to solve the above technical problems, the present invention proposes a process status detection method. Figure 1 , which is a flow chart of a process status detection method provided by an embodiment of the present invention. From a program perspective, the execution subject of the process can be a program in a system-level chip installed in the smart cockpit system. Alternatively, the execution subject of the process can also be a system-level chip or a vehicle in the smart cockpit system, or other devices that can communicate with the system-level chip or vehicle in the smart cockpit system, without specific limitation.
[0060] The following is for Figure 1 The process shown is described in detail, and the process status detection method may specifically include the following steps:
[0061] Step S102, using a preset detection program installed in the system-on-chip of the smart cockpit system, obtain a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle function safety control based on a cyclic redundancy check code.
[0062] In an embodiment of the present invention, the system-on-chip (SoC) of the smart cockpit system can integrate computing, storage, communication and other peripheral devices on one chip to provide stronger processing capabilities, higher integration and better energy efficiency performance, thereby supporting the intelligent operation of the smart cockpit system in the vehicle.
[0063] Cyclic Redundancy Check (CRC) is a checksum with error detection and correction capabilities. It is widely used in network communication protocols, storage systems, and other data transmission fields that need to ensure data integrity and reliability because of its strong error detection capability, low overhead, and easy implementation with encoders and detection circuits.
[0064] In an embodiment of the present invention, since the functional safety standard for road vehicles (Functional Safety, FuSa for short) may include a requirement that the information display device at the smart cockpit system accurately display the content it needs to display at each moment, a process for implementing vehicle functional safety control based on a cyclic redundancy check code can be run in the system-level chip at the smart cockpit system, so as to utilize the above process to generate a corresponding cyclic redundancy check code for the content displayed by the information display device at the smart cockpit system at each moment, and send the cyclic redundancy check code to the microcontroller unit (MCU for short) at the vehicle, so that the microcontroller unit can compare the cyclic redundancy check code with a benchmark cyclic redundancy check code for consistency, thereby implementing vehicle functional safety control based on the cyclic redundancy check code.
[0065] In practical applications, the heartbeat mechanism is a mechanism in which the source sends a custom structure (also called a heartbeat message) at regular intervals so that the receiver can determine whether and when the source fails or terminates to ensure the validity of the connection. Because the heartbeat mechanism has the characteristics of low resource consumption and good flexibility, it is widely used in cluster management, network communication, and service monitoring.
[0066] Based on this, in the process of implementing vehicle functional safety control based on cyclic redundancy check codes, if it is necessary to accurately identify the running status of the process used to implement vehicle functional safety control in the system-level chip of the smart cockpit system, it is possible to use the preset detection program installed in the system-level chip based on the heartbeat mechanism to obtain the heartbeat message reported by the preset process used to implement vehicle functional safety control based on cyclic redundancy check codes in the system-level chip.
[0067] Step S104, based on the heartbeat message obtained by the preset detection program within a preset time period, the running status of the target process in the system-level chip for implementing the vehicle functional safety control is analyzed and processed to obtain the process status information of the target process.
[0068] In the embodiment of the present invention, since there may be dependencies between the processes used to implement vehicle functional safety control based on cyclic redundancy check codes, for example, some processes need to rely on data transmitted by other processes to perform vehicle functional safety control, or some processes need to perform two-way data transmission with other processes to implement vehicle functional safety control, etc., therefore, by analyzing and processing the heartbeat messages reported by some preset processes used to implement the vehicle functional safety control, not only the running status of the preset process itself can be determined, but also the running status of some other processes that have dependencies with the preset process can be determined. Based on this, by analyzing and processing the heartbeat messages obtained by the preset detection program within a preset time period, the process status information of the target process related to vehicle functional safety control including the preset process can be obtained.
[0069] Figure 1 According to the method, a preset detection program can be pre-installed in the system-level chip at the smart cockpit system, so as to use the preset detection program to obtain the heartbeat message reported by the preset process in the system-level chip for realizing the vehicle functional safety control based on the cyclic redundancy check code; by analyzing the heartbeat message obtained by the preset detection program within a preset time period, the process status information of the target process in the system-level chip for realizing the vehicle functional safety control can be accurately obtained; therefore, when the smart cockpit system is identified to have a vehicle functional safety risk based on the cyclic redundancy check code, the cause of the fault can be analyzed in combination with the process status information of the target process in the system-level chip, so as to take accurate and effective measures to reduce the vehicle functional safety risk, which is conducive to ensuring the safety of the vehicle operation process.
[0070] In a feasible implementation manner, the using of a preset detection program carried in a system-level chip at the smart cockpit system to obtain a heartbeat message reported by a preset process in the system-level chip for implementing vehicle functional safety control based on a cyclic redundancy check code may include:
[0071] Utilizing the preset detection program, obtaining a first heartbeat message reported by a first preset process in the system-on-chip according to a first preset period; wherein the first preset process is a process for receiving a cyclic redundancy check code acquisition request sent by a microcontroller unit at a vehicle; and / or,
[0072] Utilizing the preset detection program, obtaining a second heartbeat message reported by a second preset process in the system-on-chip according to a second preset period; wherein the second preset process is a process for forwarding the cyclic redundancy check code acquisition request to a cyclic redundancy check code generator in the system-on-chip; and / or,
[0073] Utilizing the preset detection program, the third heartbeat message reported by the first preset process and the second preset process in the system-level chip in response to a target event is obtained; wherein the target event includes a preset event involved in the processing process of the cyclic redundancy check code acquisition request.
[0074] In an embodiment of the present invention, the preset process for implementing vehicle functional safety control based on a cyclic redundancy check code contained in the system-level chip of the smart cockpit system may include but is not limited to: a first preset process for receiving a cyclic redundancy check code acquisition request sent by the microcontroller unit MCU of the vehicle, and a second preset process for forwarding the cyclic redundancy check code acquisition request to a cyclic redundancy check code generator in the system-level chip SOC.
[0075] Among them, the first preset process and the second preset process can periodically report heartbeat messages to the preset detection program in the system-on-chip SOC; or when the first preset process and the second preset process process the cyclic redundancy check code acquisition request sent by the MCU, after the target event corresponding to each processing operation / processing node is triggered, the heartbeat message is reported to the preset detection program in the system-on-chip SOC; the flexibility is good.
[0076] In actual applications, the first preset period for the first preset process to report the heartbeat message, and the second preset period for the second preset process to report the heartbeat message, can be set according to actual needs, for example, tens of milliseconds to hundreds of milliseconds, and no specific limitation is made thereto. Also, the target event that needs to be triggered when the first preset process and the second preset process report the heartbeat message can also be determined according to actual needs, and no specific limitation is made thereto.
[0077] In order to understand the principle of MCU and SOC interacting with each other to implement vehicle functional safety control based on cyclic redundancy check code, this paper combines Figure 2 The schematic diagram of a process status detection scenario shown in FIG. Figure 2 As shown, the vehicle may have a microcontroller unit MCU21 and a system-level chip SOC22 of the smart cockpit system. Among them, the microcontroller unit 21 may be equipped with a cyclic redundancy check code comparison module 202. The system-level chip SOC22 may be equipped with: a preset detection program 201, a first preset process 203, a second preset process 204, a cyclic redundancy check code generator 205 and an information display module 206.
[0078] Specifically, the cyclic redundancy check code comparison module 202 can send a cyclic redundancy check code acquisition request for the target type information that the information display module 206 needs to display to the first preset process 203 based on the serial peripheral interface (Serial Peripheral Interface, referred to as SPI); the first preset process 203 can forward the cyclic redundancy check code acquisition request to the second preset process 204 based on the message queue technology; the second preset process 204 can determine the preset display position information of the target type information at the information display module 206, thereby generating and sending a cyclic redundancy check code acquisition request carrying the preset display position information to the cyclic redundancy check code generator 205.
[0079] The cyclic redundancy check code generator 205 can obtain the target information currently displayed at the preset display position information from the information display module 206, and generate and feed back the cyclic redundancy check code corresponding to the target information to the second preset process 204. The second preset process 204 can forward the cyclic redundancy check code to the first preset process 203 based on the message queue technology; so that the first preset process 203 can send the cyclic redundancy check code to the cyclic redundancy check code comparison module 202 based on the SPI interface.
[0080] The cyclic redundancy check code comparison module 202 can pre-acquire the baseline cyclic redundancy check code corresponding to the information that the information display module 206 actually needs to display at the preset display location, and compare whether the baseline cyclic redundancy check code is consistent with the cyclic redundancy check code sent by the first preset process 203. If they are inconsistent, it can be considered that the smart cockpit system has a vehicle functional safety risk and risk control measures need to be taken; if they are consistent, it can be considered that the smart cockpit system does not have a vehicle functional safety risk, and there is no need to take risk control measures.
[0081] In practical applications, the microcontroller unit MCU21 can usually be equipped with a WatchDog module implemented in the Autosar service ( Figure 2 (not shown) so as to monitor the working status of the cyclic redundancy check code comparison module 202 based on the heartbeat mechanism, so as to better ensure the normal implementation of vehicle functional safety control.
[0082] Based on this, a preset detection program 201 can be installed in the system-on-chip SOC22 to use the preset detection program 201 to obtain the heartbeat messages periodically reported by the first preset process 203 and the second preset process 204, and / or to obtain the heartbeat messages reported by the first preset process 203 and the second preset process 204 when processing a cyclic redundancy check code acquisition request; and then by analyzing the obtained heartbeat messages, the process status information of the target process used to implement vehicle functional safety control in the SOC can be accurately determined, which is conducive to better ensuring the normal implementation of vehicle functional safety control.
[0083] In practical applications, the information display module 206 may include a human machine interface (Human Machine Interface, referred to as HMI). The cyclic redundancy check code generator (CRC generator) 205 may be an OpenWFD module, which may be used to generate a cyclic redundancy check code corresponding to the target information currently displayed by the human machine interface at the vehicle (e.g., vehicle gear information, electronic power steering system information, alarm information, airbag light operating status information, etc.) in response to the cyclic redundancy check code acquisition request. Of course, the cyclic redundancy check code generator may also be implemented using other types of CRC generators, and no specific limitation is made to this. The microcontroller unit MCU at the vehicle may be used to perform vehicle functional safety control according to the cyclic redundancy check code, which will not be elaborated on.
[0084] In a feasible implementation, Figure 1 The method may further include:
[0085] Obtain process running record information at a process management program in the system-on-chip.
[0086] Correspondingly, the heartbeat message obtained by the preset detection program within a preset time period, analyzing and processing the running status of the target process for realizing the vehicle functional safety control in the system-level chip to obtain the process status information of the target process may include:
[0087] Based on the first heartbeat message and the process running record information obtained by the preset detection program within the preset time period, it is determined whether the first preset process has not reported the first heartbeat message within the most recent first time period and the first preset process has not exited operation, and a first judgment result is obtained.
[0088] If the first judgment result indicates that the first preset process has not reported the first heartbeat message within the latest first period of time, and the first preset process has not exited running, then generating process status information reflecting that the first preset process is in a blocked state; and / or,
[0089] Based on the second heartbeat message and the process running record information obtained by the preset detection program within the preset time period, determine whether the second preset process has not reported the second heartbeat message within the most recent second time period and the second preset process has not exited running, and obtain a second judgment result.
[0090] If the second judgment result indicates that the second preset process has not reported the second heartbeat message within the latest second period of time and the second preset process has not exited, process status information reflecting that the second preset process is in a blocked state is generated.
[0091] In an embodiment of the present invention, if the first / second preset process can periodically report a heartbeat message, then when the first / second preset process fails to report a heartbeat message on time within the most recent heartbeat message reporting period, and the first / second preset process has not exited operation, it can usually be indicated that the first / second preset process is affected by certain factors and cannot normally perform the preset processing operation, and is in a state where it needs to wait for certain conditions to be met before it can continue to execute. Therefore, when it is determined that the first / second preset process has not reported the first / second heartbeat message within the most recent first / second time period, and the first / second preset process has not exited operation, process status information reflecting that the first / second preset process is in a blocked state can be generated.
[0092] In practical applications, the most recent first / second duration may refer to a time period from a moment earlier than the first / second duration at the current moment to the current moment. Typically, the first / second duration will be greater than the first / second preset period for the first / second preset process to report a heartbeat message, for example, it may range from tens of milliseconds to hundreds of milliseconds, and there is no specific limitation on this.
[0093] In practical applications, QNX is an operating system suitable for running applications with high requirements for security, reliability and real-time performance. It is widely used in the fields of automobiles, industrial automation, national defense, aerospace, medical, nuclear power and communications. The SLM service (System Launch and Monitor) in QNX can be used for process startup management and status monitoring. Therefore, when the system-level chip at the smart cockpit system is equipped with a QNX operating system, the SLM service can be used as the process management program, so as to obtain the process operation record information related to the first / second preset process from the SLM service to accurately identify whether the first / second preset process has exited operation. If the first / second preset process has currently exited operation, even if the first / second preset process has not reported the first / second heartbeat message within the last first / second time period, there is no need to generate process status information reflecting that the first / second preset process is in a blocked state, which is conducive to ensuring the accuracy of the process status detection result.
[0094] In a feasible implementation manner, the heartbeat message obtained by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the functional safety control of the vehicle in the system-level chip to obtain the process state information of the target process, and may also include:
[0095] Based on the first heartbeat message obtained by the preset detection program within the preset time period, determine whether the first preset process has not reported the first heartbeat message within the latest third time period, and obtain a third judgment result; wherein the third time period is greater than the first time period.
[0096] If the third judgment result indicates that the first preset process has not reported the first heartbeat message within the latest third period of time, then generating process status information reflecting that the first preset process is in a timeout state; and / or,
[0097] Based on the second heartbeat message obtained by the preset detection program within the preset time period, determine whether the second preset process has not reported the second heartbeat message within the latest fourth time period, and obtain a fourth judgment result; wherein the fourth time period is greater than the second time period.
[0098] If the fourth judgment result indicates that the second preset process has not reported the second heartbeat message within the latest fourth period of time, process status information reflecting that the second preset process is in a timeout state is generated.
[0099] In an embodiment of the present invention, if the first / second preset process can periodically report a heartbeat message, and the first / second preset process has not exited operation, then when the first / second preset process has not reported a heartbeat message according to the first / second preset period for a long time, it can usually indicate that the first / second preset process cannot normally process the cyclic redundancy check code acquisition request, that is, the vehicle functional safety control operation executed by it will have a timeout problem. Therefore, when it is determined that the first / second preset process has not reported the first / second heartbeat message within the last third / fourth time period, and the first / second preset process has not exited operation, process status information reflecting that the first / second preset process is in an overtime state can be generated.
[0100] In practical applications, the latest third / fourth time period may refer to the time period from a time three / fourth time period earlier than the current time to the current time. Generally, the third / fourth time period required to determine the process timeout state will be greater than the first / second time period required to determine the process blocking state; wherein, the third / fourth time period may range from tens of milliseconds to several seconds, and there is no specific limitation on this.
[0101] At present, since it is impossible to identify the process status information of the target process used to implement vehicle functional safety control within the system-on-chip SOC, when the MCU fails to verify the cyclic redundancy check code obtained from the SOC side, it is usually impossible to accurately identify the specific cause of the problem, so the entire system-on-chip SOC can only be restarted to perform vehicle functional safety control, which is not only time-consuming, but also not conducive to analyzing the root cause of the vehicle functional safety risk, thereby affecting the safety of vehicle operation.
[0102] Based on this, in a feasible implementation manner, after generating process status information reflecting that the first preset process is in a blocked state, and / or generating process status information reflecting that the first preset process is in a timeout state, the method may further include:
[0103] Using the preset detection program, sending a restart instruction for the first preset process to the process management program; and / or,
[0104] Correspondingly, after generating the process status information reflecting that the second preset process is in a blocked state, and / or generating the process status information reflecting that the second preset process is in a timeout state, the method may further include:
[0105] By using the preset detection program, a restart instruction for the second preset process is sent to a power management module for performing power management on the second preset process.
[0106] In an embodiment of the present invention, when the first preset process is in a blocked state or a timeout state, it often results in the inability to timely transmit the cyclic redundancy check code acquisition request generated by the MCU for the information currently displayed by the information display device at the smart cockpit system to the cyclic redundancy check code generator at the SOC, which in turn results in the cyclic redundancy check code generator obtaining the target information displayed by the information display device at the smart cockpit system from a delay problem, which will subsequently cause the MCU to fail to verify the cyclic redundancy check code. It can be seen that when the first preset process is in a blocked state or a timeout state, it may cause the smart cockpit system to have a vehicle functional safety risk. Based on the same principle, when the second preset process is in a blocked state or a timeout state, it may also cause the smart cockpit system to have a vehicle functional safety risk. Based on this, the first / second preset process can be restarted to reduce the vehicle functional safety risk of the smart cockpit system; without restarting the SOC, it is beneficial to save the time spent on vehicle functional safety control, and thus to ensure the safety of the vehicle operation process.
[0107] In a feasible implementation manner, the heartbeat message obtained by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the functional safety control of the vehicle in the system-level chip to obtain the process state information of the target process, which may include:
[0108] Based on the third heartbeat message obtained by the preset detection program within the preset time period, it is determined whether the first preset process and the second preset process report heartbeat messages according to the preset execution order of the target event to obtain a fifth judgment result.
[0109] If the fifth judgment result indicates that the first preset process and the second preset process do not report the heartbeat message according to the preset execution order of the target event, then process status information is generated reflecting that the process flow in the system-level chip used to implement the vehicle functional safety control is in a chaotic state of operation.
[0110] In the embodiment of the present invention, since the second preset process can be used to forward the cyclic redundancy check code acquisition request obtained by the first preset process from the MCU to the CRC generator, and the first preset process can be used to pass the cyclic redundancy check code obtained by the second preset process to the MCU, the first preset process and the second preset process have a dependency relationship when performing vehicle functional safety control. Based on this, the preset execution order of the target events involved in the processing of the cyclic redundancy check code acquisition request by the first preset process and the second preset process can be determined according to the dependency relationship, and the first preset process and the second preset process can report the third heartbeat message carrying the unique identification information of the corresponding target event to the preset detection program when the target event is triggered.
[0111] Subsequently, by analyzing the third heartbeat message obtained by the preset detection program within the preset time period, it can be determined whether the first preset process and the second preset process have reported the third heartbeat message in accordance with the preset execution order of the target event. If so, it can indicate that the first preset process and the second preset process are running normally. Otherwise, it can indicate that there is an error in the running order of the first preset process and the second preset process, thereby generating process status information indicating that the process flow at the SOC for realizing vehicle functional safety control is in a chaotic running state.
[0112] In a feasible implementation manner, after generating the process status information reflecting that the process flow in the system-level chip for implementing the vehicle functional safety control is in a chaotic running state, the method may further include:
[0113] Using the preset detection program, a restart instruction for the system-on-chip is sent to a microcontroller unit at the vehicle.
[0114] In an embodiment of the present invention, when the process flow for implementing vehicle functional safety control at the SOC is in a chaotic state, it can usually indicate that the smart cockpit system has a relatively serious vehicle functional safety risk, and the cause of the failure may be relatively complex. Therefore, the system-level chip SOC of the smart cockpit system can be restarted to facilitate timely and effective vehicle functional safety control of the smart cockpit system. In actual applications, after the preset detection program sends the restart instruction for the system-level chip SOC of the smart cockpit system to the microcontroller unit MCU, the microcontroller unit MCU can call the single-chip microcomputer interface for managing the power supply corresponding to the system-level chip SOC to realize the restart operation of the system-level chip SOC, which is convenient and quick.
[0115] Optionally, the preset execution order of the target event may include: sequentially executing a first preset event reflecting that the first preset process receives the cyclic redundancy check code acquisition request, a second preset event reflecting that the second preset process forwards the cyclic redundancy check code acquisition request to the cyclic redundancy check code generator, a third preset event reflecting that the second preset process receives the cyclic redundancy check code fed back by the cyclic redundancy check code generator, and a fourth preset event reflecting that the first preset process receives the cyclic redundancy check code. Of course, the target event may also include other events involving the first preset process and the vehicle functional safety control operations that the first preset process needs to execute. At this time, the preset execution order of the target event may also be adaptively changed. However, the relative execution order between the first to fourth preset events mentioned above usually does not change, and this will not be elaborated.
[0116] At present, when the OpenWFD module provided by Qualcomm is used as the cyclic redundancy check code generator at the SOC of the smart cockpit system, due to the black box nature of the OpenWFD module, it is impossible to adaptively adjust the program at the OpenWFD module to directly monitor the running status of the OpenWFD module. However, since the second preset program can send a cyclic redundancy check code acquisition request to the cyclic redundancy check code generator and obtain the cyclic redundancy check code fed back by the cyclic redundancy check code generator, and can send a heartbeat message to the preset detection program in response to the target event when performing the above operations, therefore, by analyzing the heartbeat message sent by the second preset program, it is possible to know the time consumed by the cyclic redundancy check code generator to respond to the cyclic redundancy check code acquisition request, and then the running status of the cyclic redundancy check code generator can be determined.
[0117] Based on this, the heartbeat message obtained by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the vehicle functional safety control in the system-level chip to obtain the process state information of the target process, and may also include:
[0118] Based on the second heartbeat message and the third heartbeat message obtained by the preset detection program within the preset time period, it is determined whether the second preset process is in a normal operating state, and whether the interval between the second preset process sending the heartbeat message in response to the second preset event and the third preset event is greater than the fifth duration, and a sixth judgment result is obtained.
[0119] If the sixth judgment result indicates that the second preset process is in a normal operating state, and the interval duration between the second preset process sending a heartbeat message in response to the second preset event and the third preset event is greater than the fifth duration, then process status information reflecting that the cyclic redundancy check code generator is in a timeout state is generated.
[0120] In an embodiment of the present invention, the fifth time duration is generally greater than a baseline / ideal time duration for the cyclic redundancy check code generator to respond to a cyclic redundancy check code acquisition request. Therefore, if the interval duration between the second preset process sending a heartbeat message in response to the second preset event and the third preset event is greater than the fifth time duration, it may indicate that the time consumed by the cyclic redundancy check code generator to respond to the cyclic redundancy check code acquisition request is too long, thereby generating process status information reflecting that the cyclic redundancy check code generator (e.g., OpenWFD module) is in a timeout state, which has good flexibility.
[0121] In actual applications, after generating process status information reflecting that the cyclic redundancy check code generator (for example, the OpenWFD module) is in a timeout state, the preset detection program can also generate a restart instruction for the cyclic redundancy check code generator or the SOC to restart the cyclic redundancy check code generator or the SOC, thereby realizing vehicle functional safety control, which is beneficial to ensuring the safety of the vehicle's operation process.
[0122] In the embodiment of the present invention, the step of using a preset detection program carried in a system-on-chip at the smart cockpit system to obtain a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle functional safety control based on a cyclic redundancy check code may include:
[0123] Using an independently running target detection process created based on the preset detection program, obtaining a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle functional safety control based on a cyclic redundancy check code; and / or,
[0124] The step of analyzing and processing the running state of the target process for realizing the functional safety control of the vehicle in the system-level chip based on the heartbeat message acquired by the preset detection program within the preset time period to obtain the process state information of the target process may include:
[0125] Utilizing the target detection process, based on the heartbeat message obtained by the preset detection program within a preset time period, the running status of the target process in the system-level chip for implementing the vehicle functional safety control is analyzed and processed to obtain the process status information of the target process.
[0126] In the embodiment of the present invention, an independent process is run in the SOC based on the preset detection program to detect the running state of the target process in the SOC for realizing the vehicle functional safety control, so that the target detection process for realizing the process state detection can be decoupled from other processes, which can not only reduce the interference to the original process at the SOC, but also help to ensure Figure 1 The stable operation of the process status detection scheme in its embodiment is to ensure the safety of the vehicle operation process.
[0127] See also Figure 3 , is a schematic diagram of the structure of a process status detection device provided by an embodiment of the present invention. Figure 3 As shown, the process state detection device 03 can be implemented as all or part of a system-level chip through software, hardware or a combination of both. According to some embodiments, the process state detection device 03 may include an acquisition module 31 and an analysis module 32, specifically including:
[0128] The acquisition module 31 is used to use a preset detection program installed in the system-level chip of the smart cockpit system to obtain a heartbeat message reported by a preset process in the system-level chip for implementing vehicle functional safety control based on a cyclic redundancy check code.
[0129] The analysis module 32 is used to analyze and process the running status of the target process for realizing the functional safety control of the vehicle in the system-level chip based on the heartbeat message obtained by the preset detection program within a preset time period, and obtain the process status information of the target process.
[0130] Optionally, the acquisition module 31 may include:
[0131] Utilizing the preset detection program, obtaining a first heartbeat message reported by a first preset process in the system-on-chip according to a first preset period; wherein the first preset process is a process for receiving a cyclic redundancy check code acquisition request sent by a microcontroller unit at a vehicle; and / or,
[0132] Utilizing the preset detection program, obtaining a second heartbeat message reported by a second preset process in the system-on-chip according to a second preset period; wherein the second preset process is a process for forwarding the cyclic redundancy check code acquisition request to a cyclic redundancy check code generator in the system-on-chip; and / or,
[0133] Utilizing the preset detection program, the third heartbeat message reported by the first preset process and the second preset process in the system-level chip in response to a target event is obtained; wherein the target event includes a preset event involved in the processing process of the cyclic redundancy check code acquisition request.
[0134] Optional, Figure 3 The device may further include:
[0135] The record information acquisition module is used to obtain the process running record information at the process management program in the system-level chip.
[0136] The analysis module 32 may include:
[0137] A first judgment unit is used to judge whether the first preset process has not reported the first heartbeat message within a recent first time period and the first preset process has not exited the operation based on the first heartbeat message and the process operation record information obtained by the preset detection program within a preset time period, and obtain a first judgment result;
[0138] a first generating unit, configured to generate process status information reflecting that the first preset process is in a blocked state if the first judgment result indicates that the first preset process has not reported the first heartbeat message within a recent first period of time and the first preset process has not exited operation; and / or,
[0139] A second judgment unit is used to judge whether the second preset process has not reported the second heartbeat message within a recent second time period and the second preset process has not exited the operation based on the second heartbeat message and the process operation record information obtained by the preset detection program within a preset time period, and obtain a second judgment result;
[0140] The second generating unit is used to generate process status information reflecting that the second preset process is in a blocked state if the second judgment result indicates that the second preset process has not reported the second heartbeat message within the latest second time period and the second preset process has not exited.
[0141] Optionally, the analysis module 32 may further include:
[0142] The third judgment unit is used to judge whether the first preset process has not reported the first heartbeat message within the latest third time period based on the first heartbeat message obtained by the preset detection program within the preset time period, and obtain a third judgment result; wherein the third time period is greater than the first time period.
[0143] a third generating unit, configured to generate process status information reflecting that the first preset process is in a timeout state if the third judgment result indicates that the first preset process has not reported the first heartbeat message within a recent third period of time; and / or,
[0144] The fourth judgment unit is used to judge whether the second preset process has not reported the second heartbeat message within the latest fourth time period based on the second heartbeat message obtained by the preset detection program within the preset time period, and obtain a fourth judgment result; wherein the fourth time period is greater than the second time period.
[0145] The fourth generating unit is configured to generate process status information reflecting that the second preset process is in a timeout state if the fourth judgment result indicates that the second preset process has not reported the second heartbeat message within a recent fourth time period.
[0146] Optional, Figure 3 The device may further include:
[0147] a first sending module, configured to, after generating process status information reflecting that the first preset process is in a blocked state and / or generating process status information reflecting that the first preset process is in a timeout state, send a restart instruction for the first preset process to the process management program using the preset detection program; and / or,
[0148] A second sending module is used to use the preset detection program to send a restart instruction for the second preset process to a power management module used to perform power management on the second preset process after generating process status information reflecting that the second preset process is in a blocked state and / or generating process status information reflecting that the second preset process is in a timeout state.
[0149] Optionally, the analysis module 32 may further include:
[0150] The fifth judgment unit is used to judge whether the first preset process and the second preset process report heartbeat messages according to the preset execution order of the target event based on the third heartbeat message obtained by the preset detection program within the preset time period, and obtain a fifth judgment result.
[0151] The fifth generation unit is used to generate process status information reflecting that the process flow in the system-level chip for implementing the vehicle functional safety control is in a chaotic running state if the fifth judgment result indicates that the first preset process and the second preset process do not report the heartbeat message according to the preset execution order of the target event.
[0152] Optional, Figure 3 The device may further include:
[0153] The third sending module is used to send a restart instruction for the system-level chip to the microcontroller unit in the vehicle by using the preset detection program after generating process status information reflecting that the process flow in the system-level chip for realizing the functional safety control of the vehicle is in a chaotic running state.
[0154] Optionally, the preset execution order of the target event may include: sequentially executing a first preset event reflecting that the first preset process receives the cyclic redundancy check code acquisition request, a second preset event reflecting that the second preset process forwards the cyclic redundancy check code acquisition request to the cyclic redundancy check code generator, a third preset event reflecting that the second preset process receives the cyclic redundancy check code fed back by the cyclic redundancy check code generator, and a fourth preset event reflecting that the first preset process receives the cyclic redundancy check code.
[0155] Optionally, the analysis module 32 may further include:
[0156] The sixth judgment unit is used to judge whether the second preset process is in a normal operating state based on the second heartbeat message and the third heartbeat message obtained by the preset detection program within a preset time period, and whether the interval duration of the second preset process sending the heartbeat message in response to the second preset event and the third preset event is greater than the fifth duration, to obtain a sixth judgment result.
[0157] The sixth generation unit is used to generate process status information reflecting that the cyclic redundancy check code generator is in a timeout state if the sixth judgment result indicates that the second preset process is in a normal operating state, and the interval duration between the second preset process sending a heartbeat message in response to the second preset event and the third preset event is greater than the fifth duration.
[0158] Optionally, the cyclic redundancy check code generator may be an OpenWFD module, and the OpenWFD module is used to generate a cyclic redundancy check code corresponding to the target information currently displayed on the human-machine interface at the vehicle in response to the cyclic redundancy check code acquisition request.
[0159] The microcontroller unit at the vehicle may be used to perform vehicle functional safety control according to the cyclic redundancy check code.
[0160] Optionally, the acquisition module 31 may be used to obtain a heartbeat message reported by a preset process for implementing vehicle functional safety control based on a cyclic redundancy check code in the system-level chip by using an independently running target detection process created based on the preset detection program; and / or,
[0161] The analysis module 32 can be used to utilize the target detection process and, based on the heartbeat message obtained by the preset detection program within a preset time period, analyze and process the running status of the target process in the system-level chip for implementing the vehicle functional safety control, to obtain the process status information of the target process.
[0162] The above device embodiments correspond to the method embodiments. For specific descriptions, please refer to the description of the method embodiments, which will not be repeated here. The device embodiments are obtained based on the corresponding method embodiments and have the same technical effects as the corresponding method embodiments. For specific descriptions, please refer to the corresponding method embodiments.
[0163] The present invention also provides a storage medium, which can store a computer program. When the computer program is executed by a processor, it can implement the process status detection method as described in the above embodiments. The specific execution process can be found in the specific description of the above embodiments, which will not be repeated here.
[0164] In one embodiment, the present invention also provides Figure 4 The schematic diagram of the structure of the system-level chip is shown in FIG. Figure 4 At the hardware level, the system-level chip may include a processor 41 and a memory 45, and may also include an internal bus 42, a network interface 43, a memory 44, and other hardware required for other services. The system-level chip may be set in a vehicle, wherein the processor 41 may read the corresponding computer-readable instructions from the memory 45 into the memory and then run them to implement the above-mentioned process status detection method. The specific execution process can refer to the specific descriptions in the above-mentioned embodiments, which will not be repeated here.
[0165] In one embodiment, the present invention also provides a vehicle, which may include a process status detection device or a system-level chip as described above, so as to execute the steps of the process status detection method through the process status detection device or the system-level chip. The specific execution process can be referred to the specific description in the above embodiments, which will not be repeated here.
[0166] Finally, the various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the storage medium, system-level chip and vehicle embodiments, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0167] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A process status detection method, comprising: Using a preset detection program carried in a system-level chip at the smart cockpit system, obtaining a heartbeat message reported by a preset process in the system-level chip for implementing vehicle functional safety control based on a cyclic redundancy check code; Based on the heartbeat message obtained by the preset detection program within a preset time period, the running status of the target process for realizing the functional safety control of the vehicle in the system-level chip is analyzed and processed to obtain the process status information of the target process.
2. The method according to claim 1, wherein the step of using a preset detection program in a system-on-chip at a smart cockpit system to obtain a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle functional safety control based on a cyclic redundancy check code comprises: Utilizing the preset detection program, obtaining a first heartbeat message reported by a first preset process in the system-level chip according to a first preset period; wherein the first preset process is a process for receiving a cyclic redundancy check code acquisition request sent by a microcontroller unit at a vehicle; and / or, Utilizing the preset detection program, obtaining a second heartbeat message reported by a second preset process in the system-on-chip according to a second preset period; wherein the second preset process is a process for forwarding the cyclic redundancy check code acquisition request to a cyclic redundancy check code generator in the system-on-chip; and / or, Utilizing the preset detection program, the third heartbeat message reported by the first preset process and the second preset process in the system-level chip in response to a target event is obtained; wherein the target event includes a preset event involved in the processing process of the cyclic redundancy check code acquisition request.
3. The method according to claim 2, further comprising: Obtaining process running record information at a process management program in the system-on-chip; The heartbeat message obtained by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the vehicle functional safety control in the system-level chip to obtain the process state information of the target process, including: Based on the first heartbeat message and the process running record information obtained by the preset detection program within a preset time period, it is determined whether the first preset process has not reported the first heartbeat message within a recent first time period, and the first preset process has not exited running, to obtain a first judgment result; If the first judgment result indicates that the first preset process has not reported the first heartbeat message within the latest first period of time, and the first preset process has not exited running, then generating process status information reflecting that the first preset process is in a blocked state; and / or, Based on the second heartbeat message and the process running record information obtained by the preset detection program within the preset time period, it is determined whether the second preset process has not reported the second heartbeat message within the latest second time period, and the second preset process has not exited running, to obtain a second judgment result; If the second judgment result indicates that the second preset process has not reported the second heartbeat message within the latest second period of time and the second preset process has not exited, process status information reflecting that the second preset process is in a blocked state is generated.
4. The method according to claim 3, wherein based on the heartbeat message obtained by the preset detection program within a preset time period, the running state of the target process for realizing the vehicle functional safety control in the system-level chip is analyzed and processed to obtain the process state information of the target process, further comprising: Based on the first heartbeat message obtained by the preset detection program within a preset time period, determine whether the first preset process has not reported the first heartbeat message within a recent third time period, and obtain a third judgment result; wherein the third time period is greater than the first time period; If the third judgment result indicates that the first preset process has not reported the first heartbeat message within the latest third period of time, then generating process status information reflecting that the first preset process is in a timeout state; and / or, Based on the second heartbeat message obtained by the preset detection program within the preset time period, determine whether the second preset process has not reported the second heartbeat message within the latest fourth time period, and obtain a fourth judgment result; wherein the fourth time period is greater than the second time period; If the fourth judgment result indicates that the second preset process has not reported the second heartbeat message within the latest fourth period of time, process status information reflecting that the second preset process is in a timeout state is generated.
5. The method according to claim 4, after generating the process status information reflecting that the first preset process is in a blocked state, and / or generating the process status information reflecting that the first preset process is in a timeout state, the method further comprises: Using the preset detection program, sending a restart instruction for the first preset process to the process management program; and / or, After generating the process status information reflecting that the second preset process is in a blocked state, and / or generating the process status information reflecting that the second preset process is in a timeout state, the method further includes: By using the preset detection program, a restart instruction for the second preset process is sent to a power management module for performing power management on the second preset process.
6. The method according to claim 2, wherein the heartbeat message obtained by the preset detection program within a preset time period is analyzed and processed for the running state of the target process in the system-level chip for realizing the vehicle functional safety control to obtain the process state information of the target process, including: Based on the third heartbeat message obtained by the preset detection program within the preset time period, determine whether the first preset process and the second preset process report the heartbeat message according to the preset execution order of the target event, and obtain a fifth judgment result; If the fifth judgment result indicates that the first preset process and the second preset process do not report the heartbeat message according to the preset execution order of the target event, then process status information is generated reflecting that the process flow in the system-level chip used to implement the vehicle functional safety control is in a chaotic state of operation.
7. The method according to claim 6, after generating the process status information reflecting that the process flow in the system-level chip for implementing the vehicle functional safety control is in a chaotic running state, further comprising: Using the preset detection program, a restart instruction for the system-on-chip is sent to a microcontroller unit at the vehicle.
8. The method according to claim 6, wherein the preset execution order of the target events comprises: A first preset event reflecting that the first preset process receives the cyclic redundancy check code acquisition request, a second preset event reflecting that the second preset process forwards the cyclic redundancy check code acquisition request to the cyclic redundancy check code generator, a third preset event reflecting that the second preset process receives the cyclic redundancy check code fed back by the cyclic redundancy check code generator, and a fourth preset event reflecting that the first preset process receives the cyclic redundancy check code are executed in sequence.
9. The method according to claim 8, wherein based on the heartbeat message obtained by the preset detection program within a preset time period, the running state of the target process for realizing the vehicle functional safety control in the system-level chip is analyzed and processed to obtain the process state information of the target process, further comprising: Based on the second heartbeat message and the third heartbeat message acquired by the preset detection program within the preset time period, it is determined whether the second preset process is in a normal operating state, and the interval between the second preset process sending the heartbeat message in response to the second preset event and the third preset event is greater than the fifth duration, to obtain a sixth judgment result; If the sixth judgment result indicates that the second preset process is in a normal operating state, and the interval duration between the second preset process sending a heartbeat message in response to the second preset event and the third preset event is greater than the fifth duration, then process status information reflecting that the cyclic redundancy check code generator is in a timeout state is generated.
10. The method according to any one of claims 2 to 10, wherein the cyclic redundancy check code generator is an OpenWFD module, and the OpenWFD module is used to generate a cyclic redundancy check code corresponding to the target information currently displayed on the human-machine interface at the vehicle in response to the cyclic redundancy check code acquisition request; The microcontroller unit at the vehicle is used to perform vehicle functional safety control according to the cyclic redundancy check code.
11. The method according to claim 1, wherein the step of using a preset detection program in a system-on-chip at a smart cockpit system to obtain a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle functional safety control based on a cyclic redundancy check code comprises: Using an independently running target detection process created based on the preset detection program, obtaining a heartbeat message reported by a preset process in the system-on-chip for implementing vehicle functional safety control based on a cyclic redundancy check code; and / or, The heartbeat message obtained by the preset detection program within a preset time period is analyzed and processed for the running state of the target process for realizing the vehicle functional safety control in the system-level chip to obtain the process state information of the target process, including: Utilizing the target detection process, based on the heartbeat message obtained by the preset detection program within a preset time period, the running status of the target process in the system-level chip for implementing the vehicle functional safety control is analyzed and processed to obtain the process status information of the target process.
12. A process status detection device, comprising: An acquisition module, used to use a preset detection program carried in a system-level chip at the smart cockpit system to acquire a heartbeat message reported by a preset process in the system-level chip for implementing vehicle functional safety control based on a cyclic redundancy check code; An analysis module is used to analyze and process the running status of the target process for realizing the functional safety control of the vehicle in the system-level chip based on the heartbeat message obtained by the preset detection program within a preset time period, so as to obtain the process status information of the target process.
13. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 11.
14. A system-on-chip, comprising: A processor and a memory; wherein the memory stores computer-readable instructions, and the computer-readable instructions are suitable for being loaded by the processor and executing the steps of the method as claimed in any one of claims 1 to 11.
15. A vehicle, comprising the process status detection device according to claim 12 or the system-level chip according to claim 14.