Functional safety system and method for functional safety system
By adopting a distributed communication structure and priority empowerment mechanism in new energy vehicles, it ensures that each sub-business module participates in functional safety monitoring, solves the problem of high safety risks in existing technologies, and achieves a higher level of functional safety monitoring. and robust performance.
Patent Information
- Application Number
- PCT/CN2024/087858
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-24
- Filing Date
- 2024-04-16
- Publication Date
- 2024-10-31
AI Technical Summary
Existing functional safety systems in new energy vehicles have problems such as high hardware costs, high software complexity, long development cycles, and insufficient technological maturity, resulting in high safety risks and difficulty in effectively achieving high-level functional safety monitoring.
Adopt a distributed communication structure and priority empowerment mechanism, and ensure that each sub-business module participates in functional safety monitoring through multi-level communication between business modules, monitoring modules and processing modules. The monitoring module and processing module will respond according to the priority when an error occurs. Perform corresponding operations and improve system robustness through the hardware circuit Switch mechanism.
It implements a higher-level functional safety mechanism, enhances the security and robust performance of the system, avoids over-reliance on the normal operation of the monitoring module and processing module, and ensures the functional safety monitoring of the business module. Even if an error occurs in some modules, The system still operates effectively.
Smart Images

Figure CN2024087858_31102024_PF_FP_ABST
Abstract
Description
Functional safety system and method for functional safety system Technical Field
[0001] The present application relates to the field of vehicles, and in particular to a functional safety system and a method for a functional safety system. Background Art
[0002] Functional safety is part of the overall safety of a system or device. It is often applied in fields such as aviation and machinery, typically focusing on electronic and electrical equipment and related software. Functional safety addresses safety aspects related to the functionality of a device or system and ensures that it correctly responds to received commands. Within a systemic approach, functional safety identifies potentially hazardous conditions, situations, or events that could lead to harm or damage, and enables corrective or preventive measures to avoid unacceptable risks resulting from functional failures in the system. Current new energy vehicles (NEVs) differ significantly from traditional gasoline-powered vehicles in terms of system hardware architecture and software solutions. When applying functional safety to NEVs, due to constraints such as hardware cost, software complexity, development cycle, and technology maturity, chip manufacturers and OEMs typically adopt relatively easy-to-implement solutions to ensure system safety to a certain extent. However, existing solutions still present risks and areas for improvement.
[0003] Summary of the Invention
[0004] The embodiments of the present application provide a functional safety system and a method for the functional safety system, which are used to implement a functional safety mechanism with a higher safety level.
[0005] According to one aspect of the present application, a functional safety system is provided, which includes: a business module, a monitoring module and a processing module, wherein the business module includes at least one sub-business module, wherein each sub-business module in the at least one sub-business module is configured to send an error report to a module that performs a monitoring operation when an error occurs in the at least one sub-business module; the monitoring module is communicatively connected to each sub-business module in the at least one sub-business module, and the monitoring module is configured to perform the monitoring operation when the at least one sub-business module itself operates normally; the processing module is communicatively connected to the monitoring module and each sub-business module in the at least one sub-business module, respectively, and the processing module is configured to perform a processing operation when the at least one sub-business module itself operates normally; wherein each sub-business module in the at least one sub-business module is configured to perform the monitoring operation based on a monitoring priority for performing the monitoring operation when the at least one sub-business module itself operates normally and an error occurs in the monitoring module, and the monitoring module and each sub-business module in the at least one sub-business module are further configured to perform the processing operation based on a processing priority for performing the processing operation when the at least one sub-business module itself operates normally and an error occurs in the processing module.
[0006] In some embodiments of the present application, optionally, the monitoring operation includes: upon receiving the error report, determining whether to forward the error report; and upon determining that the error report is to be forwarded, forwarding the error report to a module that performs the processing operation.
[0007] In some embodiments of the present application, optionally, the processing operation includes: upon receiving the error report, determining whether error processing is to be performed on the error report; and upon determining that error processing is to be performed, sending an instruction to perform error processing.
[0008] In some embodiments of the present application, optionally, each sub-business module in the at least one sub-business module, the monitoring module, and the processing module are respectively communicatively connected to the hardware module; and the sending of the instruction to perform error processing includes: sending the instruction to perform error processing to the hardware module, so that the hardware module can perform corresponding error processing in response to the instruction.
[0009] In some embodiments of the present application, optionally, executing the processing operation based on executing the processing priority includes: when the processing priority of the monitoring module is better than the processing priority of each sub-business module in the at least one sub-business module, the monitoring module executes the processing operation.
[0010] In some embodiments of the present application, optionally, in the event that an error occurs in the monitoring module and the processing module, one of the at least one sub-business modules performs the monitoring operation based on the monitoring priority, and one of the at least one sub-business modules performs the processing operation based on the processing priority.
[0011] In some embodiments of the present application, optionally, the at least one sub-business module includes a first sub-business module, and the performing of the monitoring operation by one of the at least one sub-business module based on the monitoring priority includes: when the first sub-business module has the best monitoring priority among the at least one sub-business module, the monitoring operation is performed by the first sub-business module.
[0012] In some embodiments of the present application, optionally, the at least one sub-business module includes a first sub-business module, and the execution of the processing operation by one of the at least one sub-business module based on the processing priority includes: when the first sub-business module has the best processing priority among the at least one sub-business module, the processing operation is executed by the first sub-business module.
[0013] According to another aspect of the present application, a method for a functional safety system is provided, wherein the functional safety system includes a processing module, a monitoring module and a business module, the business module includes at least one sub-business module, and the method includes: in a case where an error occurs in a sub-business module in the at least one sub-business module, the sub-business module in which the error occurs sends an error report to a module that performs a monitoring operation; in a case where the monitoring module operates normally, the monitoring module performs a monitoring operation; in a case where an error occurs in the monitoring module, a sub-business module in the at least one sub-business module performs the monitoring operation based on a monitoring priority for performing the monitoring operation; in a case where the processing module operates normally, the processing module performs a processing operation; and in a case where an error occurs in the processing module, the monitoring module or a sub-business module in the at least one sub-business module performs the processing operation based on a processing priority for performing the processing operation.
[0014] In some embodiments of the present application, optionally, the monitoring operation includes: upon receiving the error report, determining whether to forward the error report; and upon determining that the error report is to be forwarded, forwarding the error report to a module that performs a processing operation.
[0015] In some embodiments of the present application, optionally, the processing operation includes: upon receiving the error report, determining whether error processing is to be performed on the error report; and upon determining that error processing is to be performed, sending an instruction to perform error processing.
[0016] In some embodiments of the present application, optionally, sending an instruction to perform error processing includes: sending an instruction to perform error processing to a hardware module, so that the hardware module can perform corresponding error processing in response to the instruction.
[0017] In some embodiments of the present application, optionally, the monitoring module or the sub-business module in the at least one sub-business module executes the processing operation based on the processing priority of executing the processing operation, including: the monitoring module executes the processing operation when the processing priority of the monitoring module is higher than the processing priority of each sub-business module in the at least one sub-business module.
[0018] In some embodiments of the present application, optionally, the method also includes: in the event of an error in the monitoring module and the processing module, one of the at least one sub-business modules performs the monitoring operation based on the monitoring priority, and one of the at least one sub-business modules performs the processing operation based on the processing priority.
[0019] In some embodiments of the present application, optionally, the at least one sub-business module includes a first sub-business module, and the performing of the monitoring operation by one of the at least one sub-business module based on the monitoring priority includes: when the first sub-business module has the best monitoring priority among the at least one sub-business module, the monitoring operation is performed by the first sub-business module.
[0020] In some embodiments of the present application, optionally, the at least one sub-business module includes a first sub-business module, and the execution of the processing operation by one of the at least one sub-business module based on the processing priority includes: when the first sub-business module has the best processing priority among the at least one sub-business module, the processing operation is executed by the first sub-business module.
[0021] According to another aspect of the present application, a vehicle is provided, comprising any one of the functional safety systems described above.
[0022] The functional safety system of the present application provides an improved state monitoring mechanism, incorporating various sub-business modules of the business module into the functional safety monitoring business. Therefore, the functional safety system of the present application is safer and has stronger robust performance in terms of functional safety monitoring and result implementation control. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other objects and advantages of the present application will become more fully apparent from the following detailed description taken in conjunction with the accompanying drawings, wherein the same or similar elements are denoted by the same reference numerals.
[0024] FIG1 shows a schematic diagram of a functional safety system and its communication with a hardware module according to an embodiment of the present application;
[0025] 2A and 2B respectively show schematic structural diagrams of service modules according to two embodiments of the present application;
[0026] FIG3 shows a schematic diagram of a configuration of monitoring priorities according to an embodiment of the present application;
[0027] FIG4 shows a schematic diagram of a configuration of processing priorities according to an embodiment of the present application;
[0028] FIG5 shows a schematic flow chart of a method for a functional safety system according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] For the purpose of brevity and illustration, the principles of the present application are described herein primarily with reference to exemplary embodiments thereof. However, those skilled in the art will readily recognize that the same principles are equally applicable to all types of functional safety systems and methods for functional safety systems, and that the same or similar principles may be implemented therein, without departing from the true spirit and scope of the present application.
[0030] The following will introduce a functional safety system 100 and a communication method with a hardware module 150 according to an embodiment of the present application with reference to FIG1 .
[0031] FIG1 illustrates a schematic diagram of a functional safety system 100 and its communication with a hardware module 150 according to one embodiment of the present application. As shown in FIG1 , the functional safety system 100 may include a business module 110, a monitoring module 120, and a processing module 130. The business module 110 is communicatively coupled to the monitoring module 120, and the monitoring module 120 is communicatively coupled to the processing module 130. The business module 110 can be used to perform business processing functions. Through the communication between the monitoring module 120 and the business module 110, the monitoring module 120 can monitor the safety status of the business module 110. Through the communication between the processing module 130 and the monitoring module 120, the processing module 130 can monitor the status of the monitoring module 120. In some embodiments, the processing module 130 may also be communicatively coupled to an external hardware module 150, so that the processing module 130 can issue hardware control signals to the hardware module 150 based on the information monitored by the monitoring module 120.
[0032] In some embodiments, the functional safety system 100 may be an on-board autonomous driving system, or be applied in an on-board autonomous driving system. Accordingly, the business module 110 may perform business associated with the autonomous driving function of the vehicle. In some embodiments, the business module 110 may include at least one sub-business module 111, wherein each sub-business module 111 may perform its corresponding business processing function. For example, as shown in FIG1 , the business module 110 may include two sub-business modules 111. The two sub-business modules 111 may be respectively recorded as a first sub-business module and a second sub-business module herein. For example, the first sub-business module may be used to perform an image acquisition function, and the second sub-business module may be used to perform a computing function. In some other embodiments, the business module 110 may also include other numbers of sub-business modules 111, for example, one, three, four, five, six, etc.
[0033] While processing normal services, sub-service modules 111 within service module 110 may experience errors. In some embodiments, each sub-service module 111 is communicatively connected to monitoring module 120, and each sub-service module 111 can be configured to send an error report to monitoring module 120 when an error occurs. By having sub-service modules 111 proactively send error reports to monitoring module 120 when an error occurs, monitoring module 120 can monitor the security status of each sub-service module 111 within service module 110. As used herein, "error" may refer to either a hardware error or a software error in the corresponding module. In some embodiments, hardware errors may include errors in the UART (Universal Asynchronous Receiver / Transmitter) used by the corresponding module or errors in the ECC mechanism of the DDR memory. In some embodiments, software errors may include deadlocks or unexpected exits of service processes. For example, in the first sub-service module performing image acquisition, an error may occur due to a malfunction in the camera used to capture images, or due to an error in the software performing the image acquisition function. If an error occurs in the process of the first sub-service module executing the image acquisition function, the first sub-service module may send an error report to the execution monitoring module 120 .
[0034] In some embodiments, the monitoring module 120 can be configured to perform monitoring operations in response to receiving an error report. In some embodiments, the monitoring module 120 can be implemented by an independent CPU module. For example, the monitoring module 120 can be a functional safety island (FSI). In some embodiments, the monitoring module 120 and the business module 110 can both be set inside the chip of the system on chip (SoC), wherein the monitoring module 120 (e.g., FSI) will be designed for safety and reliability during the chip hardware design, such as independent power supply, clock domain, multi-core lock-step redundancy design, etc.
[0035] In some embodiments, the monitoring operation may include: upon receiving an error report, determining whether to forward the error report. For example, whether to forward the error report may be determined in the following manner: when the monitoring module 120 receives an error report from the sub-business module 111, the monitoring module 120 may first preliminarily filter out the error report that is not to be forwarded from the error report through a pre-defined filtering rule. If the error report is not filtered out, the monitoring module 120 may further determine whether to forward the error report through interaction with the sub-business module 111 where the error occurs. For example, error reports that are not to be forwarded may be preliminarily filtered out in the following manner: when receiving an error report from the sub-business module 111, the monitoring module 120 may determine whether the corresponding error affects the working business of the sub-business module 111. If it does not affect the working business of the sub-business module 111, the error may be ignored, i.e., the error report may not be forwarded. If it is determined that the corresponding error affects the working operations of the sub-business module 111, the monitoring module 120 can determine whether to forward the corresponding unfiltered error report by, for example, querying the sub-business module 111 where the error occurred within a first threshold time t_time1. If the query shows that the corresponding error has been recovered by the sub-business module 111 within the first threshold time t_time1, the error can be ignored, that is, the error report is not forwarded. Otherwise, the error report is forwarded. In some embodiments, the first threshold time t_time1 can be any time value selected from a range of greater than 0 and less than 30 seconds, such as 1 second, 2 seconds, etc.
[0036] In some embodiments, based on the communicative connection between the monitoring module 120 and the processing module 130, the monitoring operation may further include: if it is determined that the error report is to be forwarded, forwarding the error report to the processing module 130 via the monitoring module 120. It will be appreciated that the relevant error that is filtered by the monitoring operation and then reported to the processing module 130 may be a serious error.
[0037] In some embodiments, the monitoring module 120 may also be configured to send an error report regarding the monitoring module 120 itself to the processing module 130 if an error occurs in the monitoring module 120 itself. In other words, the monitoring module 120 may be used to monitor the security status of the service module 110 and the security status of the monitoring module 120 itself. The error report sent by the monitoring module 120 to the processing module 130 may include information describing an error in the sub-service module 111 of the service module 110, and may also include information describing an error in the monitoring module 120.
[0038] In some embodiments, the processing module 130 may be configured to perform processing operations in response to receiving an error report from the monitoring module 120. In some embodiments, the processing module 130 may be a safety microcontroller unit (SMCU). Alternatively, the SMCU may be co-located on a mainboard with the service module 110 and the monitoring module 120 (e.g., FSI).
[0039] In some embodiments, the processing operation may include: upon receiving an error report from the monitoring module 120, determining whether error handling is to be performed for the error report. In some embodiments, the processing module 130 may determine whether error handling is to be performed for the error report by interacting with the monitoring module 120. For example, the processing module 130 may query the monitoring module 120 within a second threshold time t_time2. If, upon query, the corresponding error has been recovered by the monitoring module 120 within the second threshold time t_time2, the error may be ignored, i.e., error handling is not performed. Otherwise, error handling is required. In some embodiments, the second threshold time t_time2 may be any time value selected from a range of greater than 0 and less than 30 seconds, such as 1 second, 2 seconds, etc.
[0040] In some embodiments, the processing operation may further include: in the case of determining that error handling is to be performed, sending an instruction to perform error handling. For example, via the communication connection between the processing module 130 and the hardware module 150, the processing module 130 may send an instruction to perform error handling by sending a hardware control signal to the hardware module 150. In some embodiments, the communication connection with the hardware module 150 may be achieved via a hardware control interface 140. Optionally, the hardware control interface 140 may be one or more of the following interfaces: UART (Universal Asynchronous Receiver / Transmitter), GPIO (General Purpose Input / Output Port), CAN (Controller Area Network) interface, I2C bus, or network (e.g., Ethernet, etc.) interface. Optionally, the hardware module 150 may be a display of the vehicle cockpit and / or a controller of the corresponding module.
[0041] In some embodiments, the functional safety system 100 can dynamically define the content of the instructions sent to perform error handling based on the product form of each module therein. For example, for errors in the error report that do not require urgent processing, the processing module 130 can send instructions to the display in the vehicle cabin so that the display can display the content of the error report according to the instructions, thereby serving as an information prompt to the user. In some embodiments, for errors in the error report that must be handled urgently, the processing module 130 can issue a restart instruction to the controller that controls the module where the error occurred so that the controller can be used to restart the module where the error occurred, or issue a backup instruction to the backup controller so that the controller can be used to start a backup of related units (e.g., a storage unit of a sensor), thereby providing a solution to the error report by restarting or backing up.
[0042] In some embodiments, regarding which modules cannot have errors, once errors occur in certain modules (for example, the monitoring module 120, or the processing module 130, or the monitoring module 120 and the processing module 130), another module that takes over the functional safety monitoring business (for example, the first sub-business module) can directly control the hardware module 150 to perform error handling.
[0043] The functional safety system 100 can monitor the functional safety of the service module 110 by automatically reporting errors through the service module 110 and the monitoring module 120 when an error occurs. For example, some embodiments of the present application can monitor whether an error occurs in the service module 110 by: reporting the error to the monitoring module 120 when an error occurs in the service module 110, and if the error is a serious error, the monitoring module 120 further reports the error to the processing module 130.
[0044] Taking into account the possibility that the business module 110, the monitoring module 120 and the processing module 130 themselves are not in an operating state (for example, they are frozen), some embodiments of the present application can use heartbeats to obtain real-time information on whether the business module 110, the monitoring module 120 and the processing module 130 are in an operating state.
[0045] In some embodiments, in order to ensure that the monitoring module 120 can know in real time whether each sub-business module 111 in the business module 110 is running (for example, not freezing), the monitoring module 120 can be configured to maintain a heartbeat with each sub-business module 111. For example, during the operation of each sub-business module 111, each sub-business module 111 can periodically send a heartbeat signal to the monitoring module 120, so that the monitoring module 120 can ensure that each sub-business module 111 is running by periodically receiving the heartbeat signal from each sub-business module 111.
[0046] Similarly, in some embodiments, to ensure that the processing module 130 can know in real time whether the monitoring module 120 is running (for example, not frozen), the processing module 130 can be configured to maintain a heartbeat with the monitoring module 120. For example, the monitoring module 120 can periodically send a heartbeat signal to the processing module 130 during operation, so that the processing module 130 can ensure that the monitoring module 120 is running by periodically receiving the heartbeat signal from the monitoring module 120.
[0047] The above describes a method for implementing functional safety monitoring of each sub-business module 111 within the business module 110 using a fixed-level implementation using the monitoring module 120 and the processing module 130. Specifically, each sub-business module 111 relies on the monitoring module 120 to handle errors, the monitoring module 120 relies on the processing module 130 to handle and monitor serious errors, and the processing module 130 ultimately performs error handling. Each monitoring level has fixed monitoring and monitored entities. However, if only a fixed-level approach is used to implement functional safety monitoring of the business module 110, the functional safety system 100 may become overly dependent on the normal operation of the monitoring module 120 and the processing module 130. If an error occurs in either the monitoring module 120 or the processing module 130, the functional safety system 100 may fail to function.
[0048] As described above, in order to serve the hierarchical fixed monitoring mechanism, some embodiments of the present application arrange the following communication structure between the business module 110, the monitoring module 120 and the processing module 130: each sub-business module 111 in the business module 110 is communicatively connected to the monitoring module 120, the monitoring module 120 is communicatively connected to the processing module 130, and the processing module 130 is communicatively connected to the hardware module 150.
[0049] In order to avoid excessive reliance on a fixed monitoring party due to the use of only a monitoring mechanism with a fixed hierarchy, some embodiments of the present application incorporate each sub-business module 111 in the business module 110 into the functional safety monitoring business of the functional safety system, breaking through the limitations of the monitoring mechanism with a fixed hierarchy and effectively realizing a functional safety mechanism with a higher safety level. In order to serve a functional safety mechanism with a higher safety level, some embodiments of the present application further provide an improved communication distribution structure for the functional safety system 100 based on the communication structure corresponding to the monitoring mechanism with a fixed hierarchy. For example, as shown in Figure 1, some embodiments of the present application can further connect each sub-business module 111 in the business module 110 to the processing module 130 and the hardware module 150 in a communicative manner, connect any two of the sub-business modules 111 of the business module 110 to each other in a communicative manner, and connect the monitoring module 120 to the hardware module 150 in a communicative manner.
[0050] That is, some embodiments of the present application may further increase the communication connection between the business module 110 and the processing module 130 and the hardware module 150, and increase the communication connection between the monitoring module 120 and the hardware module 150, based on the communication structure corresponding to the fixed-level monitoring mechanism, so as to improve the status monitoring mechanism of the functional safety system 100. In some embodiments, the communication connection between the various modules in the functional safety system 100 can be implemented through an IPC (inter-process communication) message transmission channel. For example, each sub-business module 111 can be connected to the monitoring module 120 and the processing module 130 respectively through IPC communication, any two of the sub-business modules 111 can be connected to each other through IPC communication, and the monitoring module 120 can be connected to the processing module 130 through IPC communication. Optionally, the IPC channel can be an independent hardware connection or other hardware interface such as Mailbox or I2C. In some embodiments, through the communication connections between the various modules in the functional safety system 100, as long as an error occurs in any one module (for example, a sub-business module 111, the monitoring module 120, or the processing module 130), the module with the error can send an error report to all other modules. In other words, in some embodiments, the various modules in the functional safety system 100 can promptly know whether each other is in a normal operating state (for example, no error has occurred).
[0051] In some embodiments, the processing module 130, the monitoring module 120, and each sub-service module 111 can each be communicatively connected to the hardware module 150, thereby enabling instructions for executing error handling to be sent to the hardware module 150 via the communication connection with the hardware module 150. Optionally, each module in the functional safety system 100 can be communicatively connected to the hardware module 150 via the hardware control interface 140. For example, each sub-service module 111, the monitoring module 120, and the processing module 130 can each be communicatively connected to the hardware module 150 via the hardware control interface 140. Optionally, the hardware control interface 140 can be one or more of the following interfaces: a UART (Universal Asynchronous Receiver / Transmitter), a GPIO (General Purpose Input / Output), a CAN (Controller Area Network) interface, an I2C bus, or a network interface.
[0052] By constructing an improved distributed communication structure between the business module 110, the monitoring module 120 and the processing module 130, the present application can construct a priority enabling mechanism and a hardware circuit switch mechanism in each module of the functional safety system 100, making the functional safety system 100 safer in terms of functional safety monitoring and result implementation control.
[0053] When monitoring module 120 operates normally, monitoring operations can be performed by monitoring module 120. Based on the improved distributed communication structure of functional safety system 100, in some embodiments, each sub-service module 111 can be configured to perform monitoring operations. In other words, embodiments of the present application can assign monitoring operations originally performed by monitoring module 120 to each sub-service module 111. Alternatively, if an error occurs in monitoring module 120, each sub-service module 111 can perform monitoring operations based on the priority of the monitoring operation.
[0054] When the processing module 130 operates normally, the processing operation can be performed by the processing module 130. Based on the improved distributed communication structure of the functional safety system 100, in some embodiments, the monitoring module 120 and each sub-service module 111 can be configured to perform the processing operation. In other words, embodiments of the present application can assign the processing operation function originally performed by the processing module 130 to the monitoring module 120 and / or each sub-service module 111. Optionally, if an error occurs in the processing module 130, the monitoring module 120 and each sub-service module 111 can perform the processing operation based on the processing priority of the processing operation.
[0055] That is, in some embodiments, the monitoring module 120 can be configured to: when the monitoring module 120 itself is operating normally and an error occurs in the processing module 130, perform processing operations based on the processing priority. Each sub-business module 111 can be configured to: when the monitoring module 120 itself is operating normally and an error occurs in the monitoring module 120, perform monitoring operations based on the monitoring priority; and when the processing module 130 itself is operating normally and an error occurs in the processing module 130, perform processing operations based on the processing priority. This application can enable the sub-business modules 111 in the business module 110 to participate in the functional safety monitoring business originally performed by the monitoring module 120 and the processing module 130 in the functional safety system 100, and enable the monitoring module 120 to participate in the functions of the processing operations originally performed by the processing module 130.
[0056] The functional safety system 100 of some embodiments of the present application can implement a functional safety mechanism with a higher level of safety by adding a small amount of hardware improvement mechanisms to an existing hardware system. Based on the improved state monitoring mechanism in the functional safety system 100, the original monitoring and monitored entities at each monitoring level may change dynamically, thereby avoiding over-reliance on the monitoring module 120 and the processing module 130 in the functional safety monitoring mechanism. Even if an error occurs in either the monitoring module 120 or the processing module 130, the functional safety monitoring of the business module 110 can still be guaranteed. It can be understood that the monitoring and monitored entities corresponding to each monitoring level change dynamically. The monitoring operation may include: upon receiving an error report from any sub-business module 111, determining whether to forward the error report, and if so, forwarding the error report to a module that performs processing operations. The processing operation may also include: upon receiving an error report from a unit that performs monitoring operations, determining whether to perform error processing for the error report, and if so, sending an instruction to the hardware module 150 to perform error processing.
[0057] The functional safety system 100 of some embodiments of the present application further proposes a functional safety mechanism with a higher safety level on the basis of the fixed-level monitoring mechanism described above, which has the following beneficial effects: a) When a problem occurs in the processing module 130, the monitoring module 120 can handle and monitor serious errors. Therefore, even if a serious error occurs in the business module 110, the serious error can be effectively handled without affecting the functional safety system 100's 100 safety monitoring function for the business module 110; b) When errors occur in both the monitoring module 120 and the processing module 130, the sub-business module 111 with the highest monitoring priority and processing priority in the business module 110 can handle and monitor the error. Therefore, as long as there is a sub-business module 111 in the business module 110 that operates normally, the safety monitoring function of the functional safety system 100 can be achieved.
[0058] Next, the structure of the service module 110 according to the embodiment of the present application will be described with reference to FIG. 2A and FIG. 2B .
[0059] Figures 2A and 2B respectively illustrate schematic diagrams of the structure of the service module 110 according to two embodiments of the present application. Figure 2A illustrates an example in which all submodules in the service module 110 participate in the functional safety monitoring service, while Figure 2B illustrates an example in which some submodules in the service module 110 do not participate in the functional safety monitoring service.
[0060] In the example shown in FIG2A , the business module 110 includes a plurality of sub-business modules 111. Among the plurality of sub-business modules 111, any two of the sub-business modules 111 can be communicatively connected. For example, as shown in FIG2A , the business module 110 includes four sub-business modules 111, wherein any two of the four sub-business modules 111 can be communicatively connected. Optionally, the plurality of sub-business modules 111 can be interconnected by means of an IPC (inter-process communication) message transmission channel. By interconnecting the plurality of sub-business modules 111 in pairs (i.e., a fully connected manner), all sub-modules in the business module 110 can participate in the functional safety monitoring business.
[0061] In the example shown in FIG2B , the business module 110 includes a plurality of sub-business modules 111 and other sub-modules 215 for executing business. Among them, the plurality of sub-business modules 111 can participate in the functional safety monitoring business, while the other sub-modules 215 for executing business are only used for business execution and do not participate in the functional safety monitoring business. In some embodiments, whether to configure the sub-modules to participate in the functional safety monitoring business can be determined based on the security level and / or hardware configuration level of each sub-module in the business module 110. For example, if the hardware configuration level of the other sub-modules 215 is not high enough and is not a CPU module, it does not have the hardware conditions to execute the monitoring business and may not participate in the functional safety monitoring business. In some embodiments, the function of whether to participate in the functional safety monitoring business can be configured to the sub-modules therein when the chip containing the business module 111 leaves the factory.
[0062] Among all sub-business modules 111 participating in the functional safety monitoring service, any two sub-business modules 111 can be communicatively connected to each other, while other sub-modules 215 not participating in the functional safety monitoring service may not be communicatively connected to the sub-business modules 111 participating in the functional safety monitoring service. Optionally, multiple sub-business modules 111 participating in the functional safety monitoring service can be interconnected via IPC (inter-process communication) message transmission channels. For example, as shown in FIG2B , the business module 110 includes four sub-business modules 111 participating in the functional safety monitoring service and two other sub-modules 215 not participating in the functional safety monitoring service. Any two of the four sub-business modules 111 can be communicatively connected to each other, while the other two sub-modules 215 may not be communicatively connected to the sub-business modules 111, and the other two sub-modules 215 may not communicate with each other. In other words, if some sub-modules in the business module 110 do not need to participate in the functional safety monitoring service, the sub-modules in the business module 110 can be connected using a partial connection method. It should be understood that even if the other sub-modules 215 do not participate in the functional safety monitoring service, they can also be communicatively connected to the monitoring module 120 to implement functional safety monitoring through the monitoring module 120 .
[0063] Next, the configuration of monitoring priority according to an embodiment of the present application will be introduced with reference to FIG3 .
[0064] As shown in FIG3 , FIG3 shows a schematic diagram of the configuration of monitoring priorities according to an embodiment of the present application. The “monitoring priority” herein may describe the priority of a module in the functional safety system 100 for performing monitoring operations. In some embodiments, the numerical value of the priority may be used to describe the priority level of the monitoring priority. For example, the smaller the numerical value representing the monitoring priority of a module, the higher the priority given to the corresponding module for performing monitoring operations. As shown in FIG3 , for some embodiments in which the monitoring module 120 and each sub-business module 111 are configured to perform monitoring operations, the numerical value of the monitoring priority of the monitoring module 120 may be defined as 0, the numerical value of the monitoring priority of the first sub-business module may be defined as 1, and the numerical value of the monitoring priority of the second sub-business module may be defined as 2. Accordingly, in this example, corresponding to a monitoring priority of 0, the monitoring module 120 is the module with the highest priority for performing monitoring operations. For example, in the functional safety system 100, as long as the monitoring module 120 operates normally, the monitoring operation may be performed by the monitoring module 120. Corresponding to monitoring priority 1, the first sub-service module is a module that performs monitoring operations, with a priority second only to monitoring module 120. For example, in functional safety system 100, if an error occurs in monitoring module 120, the first sub-service module may perform monitoring operations. Corresponding to monitoring priority 2, the second sub-service module is a module that performs monitoring operations, with a priority second only to monitoring module 120 and the first sub-service module. For example, in functional safety system 100, if an error occurs in both monitoring module 120 and the first sub-service module, the second sub-service module may perform monitoring operations.
[0065] Next, the configuration of the processing priority according to an embodiment of the present application will be introduced with reference to FIG4 .
[0066] FIG4 illustrates a schematic diagram of a processing priority configuration according to one embodiment of the present application. As used herein, "processing priority" may describe the priority with which a module in the functional safety system 100 performs a processing operation. In some embodiments, the numerical value of the processing priority may be used to describe the priority level of the processing priority. For example, a smaller numerical value representing a module's processing priority may indicate a higher priority for the corresponding module to perform the processing operation. As shown in FIG4 , in some embodiments where the processing module 130, the monitoring module 120, and each sub-business module 111 are all configured to perform a processing operation, the processing priority value of the processing module 130 may be defined as 0, the processing priority value of the monitoring module 120 may be defined as 1, the processing priority value of the first sub-business module may be defined as 2, and the processing priority value of the second sub-business module may be defined as 3. Accordingly, in this example, corresponding to a processing priority of 0, the processing module 130 is the module with the highest priority for performing a processing operation. For example, in the functional safety system 100, as long as the processing module 130 is operating normally, the processing module 130 may perform the processing operation. Corresponding to processing priority 1, the monitoring module 120 is a module that is used to execute processing operations, with a priority lower than that of the processing module 130. For example, in the functional safety system 100, if an error occurs in the processing module 130, the monitoring module 120 may execute the processing operation. Corresponding to processing priority 2, the first sub-service module is a module that is used to execute processing operations, with a priority lower than that of the processing module 130 and the monitoring module 120. For example, in the functional safety system 100, if an error occurs in both the processing module 130 and the monitoring module 120, the first sub-service module may execute the processing operation. Corresponding to monitoring priority 3, the second sub-service module is a module that is used to execute processing operations, with a priority lower than that of the processing module 130, the monitoring module 120, and the first sub-service module. For example, in the functional safety system 100, if an error occurs in the processing module 130, the monitoring module 120, and the first sub-service module, the second sub-service module may execute the processing operation.
[0067] In other embodiments, a different priority value assignment method than the above may be used to assign monitoring priorities and processing priorities to each module that performs monitoring and processing operations. For example, the examples of Figures 3 and 4 describe the configuration of monitoring priorities and processing priorities based on two sub-business modules 111 participating in the functional safety monitoring service. For an example in which a different number of sub-business modules 111 participate in the functional safety monitoring service in the business module 110, monitoring priorities and processing priorities may also be assigned to a corresponding number of sub-business modules 111 (e.g., a third sub-business module, etc.). In some embodiments, the configuration of monitoring priorities and processing priorities may be pre-stored in a storage unit when the functional safety system 100 leaves the factory.
[0068] This application provides an improved distributed inter-CPU module status monitoring mechanism, a priority enabling mechanism, and an improved hardware circuit switching mechanism, making the functional safety system 100 safer in terms of functional safety monitoring and result implementation control. This application can achieve a higher level of functional safety mechanism by adding a small number of hardware improvement mechanisms to the existing hardware system.
[0069] Next, a method 500 for the functional safety system 100 according to an embodiment of the present application will be described with reference to Fig. 5. The "method 500" is also referred to herein as the "functional safety method 500".
[0070] FIG5 is a flow chart of a functional safety method 500 according to an embodiment of the present application. In some embodiments, the functional safety method 500 may be executed by the functional safety system 100 described above. As shown in FIG5 , the functional safety method 500 may include steps S510 to S550.
[0071] In step S510, if an error occurs in a sub-business module 110, the sub-business module 111 in which the error occurred sends an error report to the module that performs monitoring operations. If an error occurs in any of the sub-business modules 111 in the business module 110 while performing its corresponding business function, the sub-business module 111 in which the error occurred may send an error report to the module that performs monitoring operations. As described above regarding the functional safety system 100, if the monitoring module 120 is operating normally, the monitoring module 120 may be the module that performs monitoring operations. If an error occurs in the monitoring module 120, the sub-business module 111 in the business module 110 may be the module that performs monitoring operations based on the monitoring priority.
[0072] In step S510, the present invention focuses on sending an error report to the module performing monitoring operations when an error occurs in the sub-service module 110. However, it should be understood that because the various modules in the functional safety system 100 communicate with each other, in some embodiments, the sub-service module 110 in which the error occurs may also send an error report to modules other than the module performing monitoring operations, for example, all other modules in the functional safety system 100. After receiving the error report, the modules other than the module performing monitoring operations may not respond to the error report and only need to be informed that an error has occurred in the corresponding module.
[0073] In step S520, when the module performing the monitoring operation receives an error report, it determines whether to forward the error report. In some embodiments, the method for determining whether to forward the error report can be the same as those described above for the monitoring operation. For example, first, a preliminary determination can be made through filtering rules, and then, if the preliminary determination is not made, the determination can be made by interacting with the sub-service module 111 where the error occurred. The details will not be repeated here.
[0074] In step S530, if it is determined that the error report should be forwarded, the error report is forwarded to the module that performs the processing operation. As can be seen from the above description of the functional safety system 100, when the processing module 130 operates normally, the processing module 130 may be the module that performs the processing operation. If an error occurs in the processing module 130, the monitoring module 120 and the sub-service module 111 in the service module 110 may be the module that performs the processing operation based on the processing priority.
[0075] In step S540, when the module performing the processing operation receives an error report, it determines whether to perform error processing for the error report. In some embodiments, the method for determining whether to perform error processing for the error report can be the same as those described above for the processing operation, for example, it can be determined by interacting with the monitoring module 120, and will not be repeated here.
[0076] In step S550, if error handling is determined to be performed, the module performing the processing operation sends an instruction to perform the error handling. In some embodiments, the instruction to perform the error handling can be sent directly to the hardware module 150. In some embodiments, the method for sending the instruction to perform the error handling can be those described above, such as sending an instruction to a display in the vehicle cabin to cause the vehicle cabin to display the contents of the error report to the user, sending a restart instruction to the controller, etc., which will not be repeated here.
[0077] It should be noted that, as described above, in some embodiments, because the various modules in the functional safety system 100 (i.e., the processing module 130, the monitoring module 120, and the various sub-service modules 111) are communicatively connected to each other, each module can promptly determine whether the other is operating normally (e.g., operating and error-free). For example, the processing module 130 and the various sub-service modules 111 can each maintain a heartbeat with the monitoring module 120, allowing each module to promptly determine whether the other is operating properly. Furthermore, a module experiencing an error can send an error report to all other modules in the functional safety system 100 via a communication connection, allowing each module to promptly determine whether an error has occurred. Based on each module's knowledge of whether it is operating normally and whether an error has occurred, each module can determine which module is currently performing a monitoring operation and which module is currently performing a processing operation based on pre-stored monitoring and processing priorities, thereby enabling the functional safety system 100 to successfully execute the functional safety method 500 described above. For example, with respect to the current operating status of each module, the functional safety system 100 may determine the module currently performing the monitoring operation and the module currently performing the processing operation described in steps S510 to S550 based on pre-stored monitoring priorities and processing priorities. The specific manner of determining the modules based on the monitoring priorities and processing priorities may be as described above with respect to FIG. 3 and FIG. 4 , and will not be further elaborated here.
[0078] As an example, if each module learns that all modules are in operation and that an error has occurred in the processing module 130 by sending heartbeat signals and error reports to each other, each module can determine that the monitoring module 120 is the module currently performing the monitoring operation and the module currently performing the processing operation based on the pre-stored monitoring priority and processing priority shown in Figures 3 and 4. At this time, if an error occurs in one of the sub-business modules 110, the sub-business module 111 that has the error sends an error report to the monitoring module 120 (corresponding to step S510), and the monitoring module 120 determines whether the error report needs to be forwarded (corresponding to step S520). If it is determined that the error report needs to be forwarded, the monitoring module 120 forwards the error report to itself (corresponding to step S530) and further performs error processing on the error report (corresponding to step S540). It can be understood that if the module performing the monitoring operation and the module performing the processing operation are the same module, the step of forwarding the error report can be a formal forwarding, which can actually be reflected in that the same module can further perform subsequent steps based on the error report.
[0079] In an embodiment of the present application, in addition to executing their respective businesses (such as image acquisition and processing, etc.), and reporting their own errors when errors occur and querying errors in response to the functional safety monitoring of the monitoring module 120, the various sub-business modules 111 of the business module 110 of the present application are also given the function of executing monitoring operations and processing operations, so that each sub-business module 111 can execute the functional safety monitoring business that should have been performed by the monitoring module 120 and the processing module 130 based on the corresponding priority.
[0080] The functional safety system 100 of the present application is very flexible in the process of performing functional safety monitoring services. In the most extreme case, as long as there is still a module in the functional safety system 100 operating normally, control processing can be performed on the external hardware module 150, greatly improving the safety monitoring performance of the functional safety system 100.
[0081] According to another aspect of the present application, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed by a processor, the processor is caused to perform any one of the methods 500 for the functional safety system 100 described above. The computer-readable medium referred to in the present application includes various types of computer storage media, and can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, the computer-readable medium can include RAM, ROM, EPROM, E 2 PROM, register, hard disk, removable disk, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage device, or any other temporary or non-temporary medium that can be used to carry or store desired program code units in the form of instructions or data structures and can be accessed by a general or special-purpose computer, or a general or special-purpose processor. As used herein, disks usually copy data magnetically, while dishes use lasers to optically copy data. The above combinations should also be included in the scope of protection of computer-readable media. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative solution, the storage medium can be integrated into the processor. The processor and storage medium can reside in an ASIC. The ASIC can reside in a user terminal. In an alternative solution, the processor and storage medium can reside in a user terminal as discrete components.
[0082] According to another aspect of the present application, a vehicle is provided, comprising any one of the functional safety systems 100 described above. The vehicles referred to herein may include new energy vehicles, such as hybrid electric vehicles, electric vehicles, and plug-in hybrid electric vehicles. In some embodiments, the functional safety system 100 may be an onboard autonomous driving system, or may be implemented within a vehicle's autonomous driving system.
[0083] The relevant user personal information that may be involved in the various embodiments of this application is strictly in accordance with the requirements of laws and regulations, following the principles of legality, legitimacy and necessity, and based on the reasonable purposes of business scenarios, to process the personal information that users actively provide during the use of products / services or generated due to the use of products / services, as well as the personal information obtained with the user's authorization.
[0084] The personal information processed by the Applicant will vary depending on the specific product / service scenario and will be based on the specific scenario in which the user uses the product / service. This may involve the user's account information, device information, driving information, vehicle information, or other related information. The Applicant will treat the user's personal information and its processing with a high degree of diligence.
[0085] The Applicant attaches great importance to the security of user personal information and has taken reasonable and feasible security measures that comply with industry standards to protect user information and prevent personal information from being accessed, disclosed, used, modified, damaged or lost without authorization.
[0086] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Those skilled in the art can think of other feasible changes or replacements based on the technical scope disclosed in this application, and such changes or replacements are all included in the scope of protection of the present application. In the absence of conflict, the embodiments of the present application and the features in the embodiments can also be combined with each other. The scope of protection of the present application shall be based on the description of the claims.
Claims
1. A functional safety system, characterized in that: The functional safety system includes: a business module, the business module comprising at least one sub-business module, wherein each of the at least one sub-business module is configured to send an error report to a module performing a monitoring operation if an error occurs in the sub-business module; a monitoring module, the monitoring module being communicatively connected to each of the at least one sub-business module, the monitoring module being configured to perform the monitoring operation when the monitoring module itself operates normally; and a processing module, the processing module being communicatively connected to the monitoring module and each of the at least one sub-business module, and the processing module being configured to perform processing operations when the processing module itself operates normally; Each of the at least one sub-business modules is configured to, when the module itself operates normally and an error occurs in the monitoring module, perform the monitoring operation based on the monitoring priority of performing the monitoring operation; the monitoring module and each of the at least one sub-business module are further configured to, when the module itself operates normally and an error occurs in the processing module, perform the processing operation based on the processing priority of performing the processing operation.
2. The functional safety system according to claim 1, characterized in that: The monitoring operation includes: Upon receiving the error report, determining whether to forward the error report; and If it is determined that the error report is to be forwarded, the error report is forwarded to a module that performs the processing operation.
3. The functional safety system according to claim 2, characterized in that: The processing operations include: Upon receiving the error report, determining whether error processing is to be performed for the error report; and If it is determined that error processing is to be executed, an instruction to execute the error processing is sent.
4. The functional safety system according to claim 3, characterized in that: Each sub-business module in the at least one sub-business module, the monitoring module, and the processing module are communicatively connected to the hardware module respectively; and The sending of the instruction to execute error processing includes: sending the instruction to execute error processing to the hardware module, so that the hardware module can execute corresponding error processing in response to the instruction.
5. The functional safety system according to claim 3, characterized in that: The performing of the processing operation based on the processing priority includes: In a case where the processing priority of the monitoring module is higher than the processing priority of each sub-service module in the at least one sub-service module, the monitoring module performs the processing operation.
6. The functional safety system according to claim 3, characterized in that: In the event that an error occurs in the monitoring module and the processing module, one of the at least one sub-business modules performs the monitoring operation based on the monitoring priority, and one of the at least one sub-business module performs the processing operation based on the processing priority.
7. The functional safety system according to claim 6, characterized in that: The at least one sub-business module includes a first sub-business module, and the performing of the monitoring operation by a sub-business module among the at least one sub-business module based on the monitoring priority includes: when the first sub-business module has the best monitoring priority among the at least one sub-business module, the monitoring operation is performed by the first sub-business module.
8. The functional safety system according to claim 6, characterized in that: The at least one sub-business module includes a first sub-business module, and the execution of the processing operation by one of the at least one sub-business module based on the processing priority includes: when the first sub-business module has the best processing priority among the at least one sub-business module, the processing operation is executed by the first sub-business module.
9. A method for a functional safety system, characterized in that, The functional safety system includes a processing module, a monitoring module, and a service module, wherein the service module includes at least one sub-service module, and the method includes: In the event that an error occurs in a sub-business module in the at least one sub-business module, the sub-business module in which the error occurs sends an error report to the module that performs the monitoring operation; When the monitoring module operates normally, the monitoring module performs the monitoring operation; In the event that an error occurs in the monitoring module, a sub-service module in the at least one sub-service module performs the monitoring operation based on a monitoring priority for performing the monitoring operation; In the case where the processing module operates normally, the processing module performs the processing operation; and In the event that an error occurs in the processing module, the monitoring module or a sub-service module among the at least one sub-service module executes the processing operation based on a processing priority for executing the processing operation.
10. The method according to claim 9, characterized in that The monitoring operation includes: Upon receiving the error report, determining whether to forward the error report; and If it is determined that the error report is to be forwarded, the error report is forwarded to a module that performs a processing operation.
11. The method according to claim 10, characterized in that The processing operations include: Upon receiving the error report, determining whether error processing is to be performed for the error report; and If it is determined that error processing is to be executed, an instruction to execute the error processing is sent.
12. The method according to claim 11, characterized in that The sending of the instruction to execute the error processing includes: sending the instruction to execute the error processing to the hardware module, so that the hardware module can execute the corresponding error processing in response to the instruction.
13. The method according to claim 11, characterized in that The monitoring module or the at least one sub-service module executing the processing operation based on the processing priority of executing the processing operation includes: In a case where the processing priority of the monitoring module is higher than the processing priority of each sub-service module in the at least one sub-service module, the monitoring module performs the processing operation.
14. The method according to claim 11, characterized in that The method further comprises: In the event that an error occurs in the monitoring module and the processing module, one of the at least one sub-business modules performs the monitoring operation based on the monitoring priority, and one of the at least one sub-business module performs the processing operation based on the processing priority.
15. The method according to claim 14, characterized in that The at least one sub-business module includes a first sub-business module, and the performing of the monitoring operation by a sub-business module among the at least one sub-business module based on the monitoring priority includes: when the first sub-business module has the best monitoring priority among the at least one sub-business module, the monitoring operation is performed by the first sub-business module.
16. The method according to claim 14, characterized in that The at least one sub-business module includes a first sub-business module, and the execution of the processing operation by one of the at least one sub-business module based on the processing priority includes: when the first sub-business module has the best processing priority among the at least one sub-business module, the processing operation is executed by the first sub-business module.
17. A vehicle, characterized in that: The vehicle comprises the functional safety system according to any one of claims 1 to 8.
Citation Information
Patent Citations
An automatic driving safety interaction system
CN112105540A
Intelligent driving domain controller, vehicle control method and vehicle
CN115384533A
Automatic driving control device, system, method, vehicle, and storage medium
CN115465284A
Safety monitoring method, system and device for vehicle-mounted system
CN115470023A
Abnormality supervision system and method, storage medium and vehicle
CN115617557A
