Function safety control method of vehicle, vehicle, electronic equipment and storage medium
By collecting and analyzing characteristic data when a vehicle fails, determining the number of adaptive fault monitoring times and tolerance time intervals, the problem of vehicle functional safety data differences is solved, the accuracy and rationality of functional safety are improved, and the user's driving experience is improved. .
Patent Information
- Application Number
- CN202410812388.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-06
AI Technical Summary
Differences in functional safety data of vehicles of the same model lead to lower functional safety accuracy and rationality, affecting user driving experience.
By monitoring vehicle faults, characteristic data, including fault frequency and timestamps, are collected and sent to the fault analysis device to determine the adapted fault monitoring times and tolerance time intervals, thereby controlling the vehicle to enter a safe state.
It improves the accuracy and rationality of the vehicle entering a safe state and improves the user's driving experience.
Smart Images

Figure CN118597174A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle functional safety control method, a vehicle, an electronic device, and a storage medium. Background Art
[0002] With the development of autonomous driving technology, more and more vehicles in our lives are realizing autonomous driving by applying autonomous driving technology. Among them, the functional safety of autonomous driving vehicles is indispensable in the automotive system. Functional safety means that there is no unreasonable risk caused by dangers caused by failures in electronic and electrical systems. Its purpose is to ensure that when a vehicle system fails, the system can enter a safe and controllable mode to avoid damage to people and property.
[0003] In the related art, for vehicles of the same model, the functional safety data of the vehicles is uniformly set before the vehicles leave the factory to ensure the normal operation of the vehicles. However, even for vehicles of the same model, there are differences in the functional safety data, which results in low accuracy and rationality of the functional safety of the vehicles after the functional safety data of the vehicles are uniformly set, thus affecting the driving experience of users. Summary of the invention
[0004] In view of this, the present application provides a vehicle functional safety control method, a vehicle, an electronic device and a storage medium, which can improve the accuracy and rationality of the vehicle functional safety, thereby improving the user's driving experience.
[0005] An embodiment of the present application provides a functional safety control method for a vehicle, comprising: when a vehicle fault is detected and the vehicle enters a safe state, obtaining characteristic data of the fault; wherein the characteristic data includes at least the occurrence frequency of the fault and the timestamp of the fault; sending the characteristic data to a fault analysis device; wherein the fault analysis device is used to determine a fault monitoring number matching the fault according to the occurrence frequency, and determine a fault tolerance time interval matching the fault according to the timestamp; receiving the fault monitoring number and the fault tolerance time interval sent by the fault analysis device, and when the fault occurs again in the vehicle, controlling the vehicle to enter the safe state according to the fault monitoring number and the fault tolerance time interval.
[0006] Compared with the related art, the embodiment of the present application has at least the following advantages: by obtaining characteristic data of the fault when the vehicle is monitored to have a fault and enter a safe state, the characteristic data can accurately reflect the handling method of the vehicle when the fault occurs; the characteristic data is then sent to the fault analysis device. Since the characteristic data includes at least the frequency of occurrence of the fault and the timestamp of the fault, the fault analysis device can determine the number of fault monitoring times that match the fault according to the frequency of occurrence, and determine the fault tolerance time interval that matches the fault according to the timestamp. By determining the number of fault monitoring times and the fault tolerance time interval according to the characteristic data of the vehicle when the fault occurs, the number of fault monitoring times and the fault tolerance time interval are more accurate and more adapted to the fault. Therefore, when the vehicle has the fault again, by controlling the vehicle to enter a safe state according to the number of fault monitoring times and the fault tolerance time interval, the accuracy and rationality of the vehicle entering a safe state can be improved, thereby improving the user's driving experience.
[0007] In some possible implementations, the fault analysis device is a cloud server; sending the characteristic data to the fault analysis device includes: uploading the characteristic data to the cloud server; the cloud server determines the fault monitoring times and the fault tolerance time interval according to the following method: inputting the characteristic data into a preset safety model, and obtaining the fault monitoring times and the fault tolerance time interval according to an output result of the preset safety model; wherein the preset safety model is obtained by training with historical characteristic data, and the historical characteristic data is characteristic data when the fault occurs in other vehicles of the same model as the vehicle.
[0008] In some possible implementations, before sending the feature data to the cloud server, the method further includes: desensitizing the feature data according to preset desensitizing rules; uploading the feature data to the cloud server includes: uploading the desensitized feature data to the cloud server.
[0009] In some possible implementations, the fault analysis device is an AI module of the vehicle; sending the characteristic data to the fault analysis device includes: sending the characteristic data to the AI module; the AI module determines the fault monitoring times and the fault tolerance time interval according to the following method: performing inference calculations on the characteristic data according to a preset algorithm model to obtain the fault monitoring times and the fault tolerance time interval.
[0010] In some possible implementations, the AI module includes a main AI module and an auxiliary AI module; the preset algorithm model includes a first algorithm model set in the main AI module, and a second algorithm model set in the auxiliary AI module; sending the feature data to the AI module includes: sending the feature data to the main AI module and the auxiliary AI module respectively; reasoning and calculating the feature data according to the preset algorithm model to obtain the fault monitoring times and the fault tolerance time interval includes: reasoning and calculating the feature data according to the first algorithm model to obtain a first calculation result; reasoning and calculating the feature data according to the second algorithm model to obtain a second calculation result; detecting whether the difference between the first calculation result and the second calculation result is within a preset range; when it is detected that the difference between the first calculation result and the second calculation result is within the preset range, obtaining the fault monitoring times and the fault tolerance time interval according to the first calculation result and the second calculation result.
[0011] In some possible implementations, the characteristic data also includes an initial fault detection time interval and an initial fault response time interval matching the fault; the fault analysis device is also used to update the initial fault detection time interval and the initial fault response time interval according to the timestamp and the occurrence frequency to obtain a target fault detection time interval and a target fault response time interval; wherein the sum of the target fault detection time interval and the target fault response time interval is less than the fault tolerance time interval.
[0012] In some possible implementations, after sending the characteristic data to the fault analysis device, the method further includes: deleting the characteristic data in response to sending success information.
[0013] The second aspect of the present application discloses a vehicle, comprising: a monitoring module, a sending module and a control module; the monitoring module is used to obtain characteristic data of the fault when it is detected that the vehicle has a fault and enters a safe state; wherein the characteristic data at least includes the frequency of occurrence of the fault and the timestamp of the fault; the sending module is used to send the characteristic data to a fault analysis device; wherein the fault analysis device is used to determine the number of fault monitoring times matching the fault according to the frequency of occurrence, and determine the fault tolerance time interval matching the fault according to the timestamp; the control module is used to receive the fault monitoring times and the fault tolerance time interval sent by the fault analysis device, and when the fault occurs again in the vehicle, control the vehicle to enter the safe state according to the fault monitoring times and the fault tolerance time interval.
[0014] The third aspect of the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned vehicle functional safety control method.
[0015] The fourth aspect of the present application discloses a storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned vehicle functional safety control method.
[0016] It can be understood that the vehicle of the second aspect, the electronic device of the third aspect and the storage medium of the fourth aspect provided above all correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of a functional safety control method for a vehicle according to an embodiment of the present application.
[0018] Figure 2 It is a flow chart of a functional safety control method for a vehicle according to an embodiment of the present application.
[0019] Figure 3 This is an interaction diagram between a vehicle and a cloud server according to an embodiment of the present application.
[0020] Figure 4 It is a flow chart of a functional safety control method for a vehicle according to an embodiment of the present application.
[0021] Figure 5 It is an interaction diagram between functional modules of a vehicle itself according to an embodiment of the present application.
[0022] Figure 6 It is a schematic diagram of the structure of a vehicle according to an embodiment of the present application.
[0023] Figure 7 It is a schematic diagram of functional modules of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.
[0025] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0027] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0028] In this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0029] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0030] With the development of autonomous driving technology, more and more vehicles in our lives are realizing autonomous driving by applying autonomous driving technology. Among them, the functional safety of autonomous driving vehicles is indispensable in the automotive system. Functional safety means that there is no unreasonable risk caused by dangers caused by failures in electronic and electrical systems. Its purpose is to ensure that when a vehicle system fails, the system can enter a safe and controllable mode to avoid damage to people and property.
[0031] The rationality of the functional safety goal formulation of the whole vehicle determines the accuracy of the functional safety requirements and ensures the safety and reliability of the advanced driver assistance system functions. The current definition of functional safety goals is based on the ISO 26262 standard, which clarifies the functional safety goal analysis process, but the standard does not clearly propose a method for determining functional safety-related data.
[0032] Before introducing the functional safety control method of a vehicle provided in the embodiment of the present application, some concepts mentioned in the embodiment of the present application are briefly introduced:
[0033] 1. Functional safety refers to avoiding unacceptable risks caused by functional failures of the system. Functional safety focuses on the behavior of the system after failure, rather than the original function or performance of the system. Failures defined in functional safety refer to abnormal conditions that can cause failure of elements or related items.
[0034] 2. The advanced driver assistance system uses various sensors installed on the vehicle (such as millimeter-wave radar, lidar, camera, and satellite navigation, etc.) to sense the surrounding environment at any time during the vehicle's driving, collect data, identify, detect, and track static and dynamic objects, and combine navigation map data to perform systematic calculations and analysis, so that the driver can be aware of possible dangers in advance, effectively improving the comfort and safety of car driving.
[0035] 3. Functional safety requirements define safety behaviors that are independent of specific implementation methods, or safety measures that are independent of specific implementation methods, including safety-related properties. Functional safety requirements can be safety requirements implemented by safety-related electrical and electronic systems or safety-related systems based on other technologies, with the goal of achieving or maintaining vehicle functions in a safe state by considering certain hazardous events.
[0036] 4. Microcontroller Unit (MCU): A single-chip microcontroller that includes a processor core, memory, input / output interfaces, and other peripherals. It is usually used to control and execute simpler tasks, such as embedded systems, sensor control, etc. It has the characteristics of low power consumption and low cost, and runs specific applications directly without external support. MCU usually contains a processor core, memory, programmable input / output (I / O) peripherals, timers, counters, etc., providing minimal memory, interfaces, and processing power. It focuses on providing fast response and low-power control capabilities, and usually does not require a highly complex operating system or a large amount of external hardware support.
[0037] 5. System on a Chip (SoC): is a more complex integrated circuit design that integrates multiple functional components onto one chip, such as multiple processor cores, graphics processing units (GPUs), memory controllers, communication interfaces, peripherals, etc. It is usually used in complex application scenarios such as high-performance computing, mobile devices, smartphones, tablets, etc. SoC is more flexible and can support multi-tasking and complex operating systems, while also integrating more functions and connectivity options. SoC integrates the functions of traditional MCUs as well as more system components, such as a complete operating system, high-performance processors (such as CPUs, GPUs), multimedia processing units, network interfaces, etc., and is suitable for applications that are too complex for a single MCU to handle. SoC may contain multiple MCUs, and is more like a complete computer system on a single chip, capable of performing complex tasks and requiring higher resources.
[0038] Please refer to Figure 1 , is a flow chart of a functional safety control method for a vehicle provided in an embodiment of the present application. This embodiment is applied to a vehicle and includes the following steps:
[0039] Step 101: When a vehicle is detected to have a fault and enter a safe state, characteristic data of the fault is obtained; wherein the characteristic data at least includes the frequency of occurrence of the fault and the timestamp of the fault.
[0040] In some embodiments, the vehicle includes multiple types of controllers, and the failures occurring in the vehicle include communication failures between different controllers and failures of the controllers themselves. It is understood that the communication failure between the controllers may be an E2E test error between the controllers. The failure of the controller itself may be an error in the functional logic of the controller, or a failure in the internal software or hardware.
[0041] It is worth noting that since the vehicle includes multiple types of controllers, there may be information interaction between different controllers. Therefore, the vehicle in this embodiment adds an E2E (End to End) protection mechanism to the signals related to the functions to eliminate the impact of possible failures in the communication link. The E2E protection mechanism is a data protection protocol / mechanism executed between communication nodes for safety-related data to prevent possible failures (HW / SW) in the communication link. The E2E protection mechanism is applicable to a variety of network structures, such as: CAN (Controller Area Network), CAN FD (CAN with Flexible Data rate), FlexRay, Ethernet, etc.
[0042] In some embodiments, the fault type includes bus communication error, bus communication timeout, random electronic hardware failure, etc. The bus includes but is not limited to CAN bus, CAN FD bus, LIN (Local Interconnect Network) bus and FlexRay bus.
[0043] It can be understood that the present embodiment does not specifically limit the types of faults, and the types of faults of the vehicle may include all possible faults of the vehicle.
[0044] It should be noted that the specific introduction of the characteristic data is described in detail in the subsequent embodiments, and will not be repeated here to avoid repetition.
[0045] Step 102: Send the characteristic data to a fault analysis device; wherein the fault analysis device is used to determine the number of fault monitoring times matching the fault according to the occurrence frequency, and determine the fault tolerance time interval matching the fault according to the timestamp.
[0046] In some embodiments, the characteristic data includes but is not limited to: timestamps recorded when the underlying fault occurs inside the MCU or SoC, functional application logic fault data, bus (CAN / LIN / CANFD / Flexray, etc.) error data trigger frequency data, bus timeout frequency data, electronic hardware random fault data, etc.
[0047] In some embodiments, the number of fault monitoring times is the number of times the vehicle detects the fault before the vehicle enters a safe state. For ease of understanding, the vehicle fault monitoring process is described in detail below:
[0048] Assume that the vehicle includes controller A and controller B. After detecting that controller A has fault 1, the number of times the vehicle detects fault 1 is recorded as 1. The vehicle monitors controller A again. If fault 1 is detected again, the number of times the vehicle detects fault 1 is recorded as 2. Repeat the above process until the number of times the vehicle detects fault 1 reaches the fault monitoring number, and then control the vehicle to enter the safe state corresponding to fault 1.
[0049] It is worth noting that for the same vehicle, different fault types correspond to different safety states. For example, when the fault type is a communication error between controller A and controller B, the safety state corresponding to this fault type may be uploading error information; when the fault type is a hardware failure of controller A, the safety state corresponding to this fault type may be shutting down the vehicle function controlled by controller A.
[0050] In some embodiments, the fault tolerance time interval is FTTI (Fault Tolerant Time Interval), which represents the length of time a vehicle can maintain a safe state after a fault occurs. FTTI can measure the ability of a vehicle to maintain safe operation after a fault occurs. Common FTTIs include the FTTI of the vehicle's braking system, the FTTI of the steering system, and the FTTI of the power system, etc.
[0051] In some embodiments, the characteristic data also includes an initial fault detection time interval matching the fault, and an initial fault response time interval; the fault analysis device is also used to update the initial fault detection time interval and the initial fault response time interval according to the timestamp and the occurrence frequency to obtain a target fault detection time interval and a target fault response time interval; wherein the sum of the target fault detection time interval and the target fault response time interval is less than the fault tolerance time interval.
[0052] Specifically, the initial fault detection time interval is FDTI (Fault Detection Time Interval), which indicates the time from the occurrence of a fault to its recognition by the system, such as brake failure causing the instrument fault indicator light to light up.
[0053] The initial fault response time interval is FRTI (Fault Reaction Time Interval), which is the time from fault identification to taking safety measures or entering emergency operation mode, such as the response time for the system to stop safely after brake failure.
[0054] By updating the initial fault detection time interval and the initial fault response time interval according to the timestamp and the occurrence frequency, the sum of the updated target fault detection time interval and the target fault response time interval can be made closer to the fault tolerance time interval obtained in the above steps, thereby avoiding the vehicle from entering a safe state as much as possible while ensuring the safety of vehicle driving, thereby further improving the user's driving experience.
[0055] Step 103: Receive the fault monitoring times and fault tolerance time interval sent by the fault analysis device, and when the vehicle fails again, control the vehicle to enter a safe state according to the fault monitoring times and the fault tolerance time interval.
[0056] It is worth noting that, by updating the functional safety data corresponding to the fault, such as FTTI, FRTI, FDTI, and the number of fault monitoring times, based on the characteristic data of the fault when a fault occurs and enters a safe state, this embodiment enables each fault type of the vehicle to match a specific functional safety data, realizes the personalized setting of the vehicle, and makes the functional safety data of different vehicles adapt to themselves, which greatly improves the driving experience of the user. For example, for a certain model of vehicle M, when the vehicle M drives automatically at different speeds, the corresponding FTTI, FRTI, and FDTI are all different, such as the slower the speed, the larger the corresponding FRTI value, and the faster the speed, the smaller the corresponding FRTI value, thereby ensuring driving safety while improving the driving experience of the user.
[0057] Compared with the related art, the embodiment of the present application has at least the following advantages: by obtaining characteristic data of the fault when the vehicle is monitored to have a fault and enter a safe state, the characteristic data can accurately reflect the handling method of the vehicle when the fault occurs; the characteristic data is then sent to the fault analysis device. Since the characteristic data includes at least the frequency of occurrence of the fault and the timestamp of the fault, the fault analysis device can determine the number of fault monitoring times that match the fault according to the frequency of occurrence, and determine the fault tolerance time interval that matches the fault according to the timestamp. By determining the number of fault monitoring times and the fault tolerance time interval according to the characteristic data of the vehicle when the fault occurs, the number of fault monitoring times and the fault tolerance time interval are more accurate and more adapted to the fault. Therefore, when the vehicle has the fault again, by controlling the vehicle to enter a safe state according to the number of fault monitoring times and the fault tolerance time interval, the accuracy and rationality of the vehicle entering a safe state can be improved, thereby improving the user's driving experience.
[0058] Please refer to Figure 2 , which is a flow chart of the functional safety control method of a vehicle provided in an embodiment of the present application. This embodiment is a further explanation of the aforementioned embodiment, and specifically explains: when the fault analysis device is a cloud server, how to determine the number of fault monitoring times and fault tolerance time intervals that match the fault after a vehicle fault occurs.
[0059] This embodiment is applied to a vehicle and includes the following steps:
[0060] Step 201: When a vehicle is detected to have a fault and enter a safe state, characteristic data of the fault is obtained; wherein the characteristic data at least includes the frequency of occurrence of the fault and the timestamp of the fault.
[0061] Step 202: upload the characteristic data to the cloud server; wherein the cloud server inputs the characteristic data into a preset security model, and obtains the number of fault monitoring times and the fault tolerance time interval according to the output result of the preset security model.
[0062] Specifically, the preset safety model is obtained by training historical feature data, and the historical feature data is feature data when other vehicles of the same model as the vehicle fail.
[0063] It is worth mentioning that by training the preset safety model with a large amount of historical feature data, it is possible to accurately obtain the FDTI and FRTI in the implementation of a functional safety requirement of a certain vehicle model through the preset safety model, and it is also possible to accurately obtain the FDTI and FRTI in the implementation of a certain functional safety requirement of a specific vehicle, thereby improving the rationality and accuracy of vehicle functional safety.
[0064] In some embodiments, before sending the feature data to the cloud server, the method also includes: desensitizing the feature data according to preset desensitization rules; uploading the feature data to the cloud server, including: uploading the desensitized feature data to the cloud server.
[0065] Specifically, by desensitizing the feature data through masking, forgery and replacement, data obfuscation, data cutting, changing or disrupting data by introducing noise, temporaryization and blurring, data integration, and other desensitizing processes, and then uploading the desensitized feature data to the cloud server, it can effectively protect user privacy and improve user experience.
[0066] In some embodiments, after the characteristic data is sent to the cloud server, the method further includes: deleting the characteristic data in response to a successful sending message. In this way, the storage space of the vehicle can be saved, and the characteristic data can be prevented from occupying the memory, thereby increasing the subsequent data transmission speed.
[0067] Step 203: Receive the fault monitoring times and fault tolerance time interval sent by the fault analysis device, and when the vehicle fails again, control the vehicle to enter a safe state according to the fault monitoring times and the fault tolerance time interval.
[0068] For ease of understanding, the following Figure 3 The functional safety control process of this embodiment is specifically described as follows:
[0069] Please refer to Figure 3 , is an interaction diagram between a vehicle and a cloud server provided in an embodiment of the present application. Assuming that the vehicle includes a functional safety monitoring module, a recording module, a desensitizing module, and an uploading module, the interaction between the vehicle and the cloud server may include the following steps:
[0070] 1. The functional safety monitoring module monitors vehicle failures and enters a safe state.
[0071] 2. The functional safety monitoring module sends the records of faults and entering the safe state, that is, the characteristic data, to the recording module.
[0072] 3. The recording module sends the feature data to the desensitizing module to request desensitization.
[0073] 4. The desensitizing module sends the desensitized feature data to the uploading module.
[0074] 5. The upload module uploads the desensitized feature data to the cloud server.
[0075] 6. The cloud server returns the number of fault monitoring times and fault tolerance time interval based on the uploaded feature data, and returns a successful sending message.
[0076] 7. After receiving the successful sending information, the upload module notifies the record module that the record upload is completed.
[0077] 8. The recording module deletes the feature data.
[0078] Compared with the related art, the embodiment of the present application has at least the following advantages: by obtaining characteristic data of the fault when the vehicle is monitored to have a fault and enter a safe state, the characteristic data can accurately reflect the handling method of the vehicle when the fault occurs; the characteristic data is then sent to the fault analysis device. Since the characteristic data includes at least the frequency of occurrence of the fault and the timestamp of the fault, the fault analysis device can determine the number of fault monitoring times that match the fault according to the frequency of occurrence, and determine the fault tolerance time interval that matches the fault according to the timestamp. By determining the number of fault monitoring times and the fault tolerance time interval according to the characteristic data of the vehicle when the fault occurs, the number of fault monitoring times and the fault tolerance time interval are more accurate and more adapted to the fault. Therefore, when the vehicle has the fault again, by controlling the vehicle to enter a safe state according to the number of fault monitoring times and the fault tolerance time interval, the accuracy and rationality of the vehicle entering a safe state can be improved, thereby improving the user's driving experience.
[0079] Please refer to Figure 4 , which is a flow chart of the functional safety control method of the vehicle provided in an embodiment of the present application. This embodiment is a further explanation of the aforementioned embodiment, and specifically explains: when the fault analysis device is the vehicle's own AI module, how to determine the number of fault monitoring times and fault tolerance time intervals that match the fault after a vehicle fault occurs.
[0080] This embodiment is applied to a vehicle and includes the following steps:
[0081] Step 301: When a vehicle is detected to have a fault and enter a safe state, characteristic data of the fault is obtained; wherein the characteristic data at least includes the frequency of occurrence of the fault and the timestamp of the fault.
[0082] Step 302: Send the characteristic data to the AI module; wherein the AI module performs inference calculation on the characteristic data according to a preset algorithm model to obtain the number of fault monitoring times and the fault tolerance time interval.
[0083] In some embodiments, the AI module includes a main AI module and an auxiliary AI module; the preset algorithm model includes a first algorithm model set in the main AI module, and a second algorithm model set in the auxiliary AI module; sending the feature data to the AI module includes: sending the feature data to the main AI module and the auxiliary AI module respectively; performing inference calculation on the feature data according to the preset algorithm model to obtain the number of fault monitoring times and the fault tolerance time interval, including: performing inference calculation on the feature data according to the first algorithm model to obtain a first calculation result; performing inference calculation on the feature data according to the second algorithm model to obtain a second calculation result; detecting whether the difference between the first calculation result and the second calculation result is within a preset range; when it is detected that the difference between the first calculation result and the second calculation result is within the preset range, obtaining the number of fault monitoring times and the fault tolerance time interval according to the first calculation result and the second calculation result.
[0084] It is worth noting that by setting up an AI module, fault analysis can be performed directly locally, effectively shortening the fault analysis time and further improving the user experience. In addition, by setting up a main AI module and an auxiliary AI module, and both the main AI module and the auxiliary AI module contain an algorithm model, when it is detected that the difference between the first calculation result and the second calculation result is within a preset range, the fault monitoring times and the fault tolerance time interval are obtained based on the first calculation result and the second calculation result, which can improve the accuracy of the fault monitoring times and the fault tolerance time interval, thereby further improving the user experience.
[0085] In some embodiments, the characteristic data also includes the initial FDTI and initial FRTI of the vehicle, and the initial FDTI and initial FRTI can also be input into the main AI module and the auxiliary AI module respectively to obtain the target FDTI and target FRTI calculated by the main AI module and the auxiliary AI module, thereby ensuring that the sum of the target FDTI and the target FRTI is as close as possible to the fault tolerance time interval FTTI.
[0086] Specifically, the first algorithm model of the main AI module and the second algorithm model of the auxiliary AI module both use fixed programs or artificial intelligence to quantify or automatically expand the number of fault monitoring times and the defined time to the limit value within the FTTI time range according to the frequency of vehicle use, that is, the sum of the target FDTI and the target FRTI is as close to the FTTI defined time as possible.
[0087] Step 303: Receive the fault monitoring times and fault tolerance time interval sent by the fault analysis device, and when the vehicle fails again, control the vehicle to enter a safe state according to the fault monitoring times and the fault tolerance time interval.
[0088] For ease of understanding, the following Figure 5 The functional safety control process of this embodiment is specifically described as follows:
[0089] Please refer to Figure 5 , is an interaction diagram between the functional modules of the vehicle itself provided in the embodiment of the present application. Assuming that the vehicle includes a functional safety monitoring module, a main AI module and an auxiliary AI module, the interaction between the functional modules of the vehicle itself may include the following steps:
[0090] 1. The functional safety monitoring module monitors vehicle failures and enters a safe state.
[0091] 2. The functional safety monitoring module sends the initial FDTI and the initial FRTI to the main AI module, wherein the main AI module is provided with a first algorithm model.
[0092] 3. The main AI module transparently transmits the initial FDTI and the initial FRTI to the auxiliary AI module, wherein the auxiliary AI module is provided with a second algorithm model.
[0093] It can be understood that the first algorithm model and the second algorithm model can be the same algorithm model or different algorithm models.
[0094] 4. The main AI module performs inference calculations on the initial FDTI and initial FRTI.
[0095] 5. The auxiliary AI module performs inference calculations on the initial FDTI and initial FRTI.
[0096] 6. The auxiliary AI module returns the obtained second calculation result to the main AI module.
[0097] 7. The main AI module compares the first calculation result obtained by itself with the second calculation result returned by the auxiliary AI module.
[0098] 8. When the main AI module detects that the difference between the first calculation result and the second calculation result is within a preset range, the main AI module sets the target FDTI and the target FRTI to the functional safety monitoring module.
[0099] 9. The next time the same fault occurs, the functional safety monitoring module applies the target FDTI trigger logic and the target FRTI definition value.
[0100] Compared with the related art, the embodiment of the present application has at least the following advantages: by obtaining characteristic data of the fault when the vehicle is monitored to have a fault and enter a safe state, the characteristic data can accurately reflect the handling method of the vehicle when the fault occurs; the characteristic data is then sent to the fault analysis device. Since the characteristic data includes at least the frequency of occurrence of the fault and the timestamp of the fault, the fault analysis device can determine the number of fault monitoring times that match the fault according to the frequency of occurrence, and determine the fault tolerance time interval that matches the fault according to the timestamp. By determining the number of fault monitoring times and the fault tolerance time interval according to the characteristic data of the vehicle when the fault occurs, the number of fault monitoring times and the fault tolerance time interval are more accurate and more adapted to the fault. Therefore, when the vehicle has the fault again, by controlling the vehicle to enter a safe state according to the number of fault monitoring times and the fault tolerance time interval, the accuracy and rationality of the vehicle entering a safe state can be improved, thereby improving the user's driving experience.
[0101] Please refer to Figure 6 , is a schematic diagram of the structure of a functional safety control device 100 for a vehicle provided in an embodiment of the present application. The vehicle 100 includes: a monitoring module 1, a sending module 2 and a control module 3;
[0102] The monitoring module 1 is used to obtain the characteristic data of the fault when it is detected that the vehicle has a fault and enters a safe state; wherein the characteristic data at least includes the frequency of occurrence of the fault and the timestamp of the fault; the sending module 2 is used to send the characteristic data to the fault analysis device; wherein the fault analysis device is used to determine the number of fault monitoring times matching the fault according to the frequency of occurrence, and determine the fault tolerance time interval matching the fault according to the timestamp; the control module 3 is used to receive the fault monitoring times and the fault tolerance time interval sent by the fault analysis device, and when the fault occurs again in the vehicle, control the vehicle to enter the safe state according to the fault monitoring times and the fault tolerance time interval.
[0103] It should be noted here that the above-mentioned vehicle provided in the embodiment of the present application can implement all the method steps in the functional safety control method embodiment of the above-mentioned vehicle, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0104] Please refer to Figure 7 , is a schematic diagram of the hardware structure of the electronic device 1000 provided in the embodiment of the present application. Figure 7As shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above-mentioned vehicle functional safety control method in the electronic device 1000.
[0105] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.
[0106] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0107] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.
[0108] In some embodiments, the processor 1001 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0109] In some embodiments, processor 1001 is used to execute acceleration schemes such as single instruction multiple data (SIMD) and very long instruction word (VLIW).
[0110] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0111] This embodiment also provides a storage medium, in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the functional safety control method of the vehicle in the above-mentioned embodiment.
[0112] Among them, the electronic device and storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0113] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0114] In several embodiments provided in the present application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0115] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0116] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0118] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A functional safety control method for a vehicle, It is characterized in that include: When a vehicle is detected to have a fault and enter a safe state, characteristic data of the fault is obtained; wherein the characteristic data at least includes the frequency of occurrence of the fault and the timestamp of the fault; Sending the characteristic data to a fault analysis device; wherein the fault analysis device is used to determine the number of fault monitoring times matching the fault according to the occurrence frequency, and to determine the fault tolerance time interval matching the fault according to the timestamp; The fault monitoring times and the fault tolerance time interval sent by the fault analysis device are received, and when the fault occurs again in the vehicle, the vehicle is controlled to enter the safe state according to the fault monitoring times and the fault tolerance time interval.
2. The functional safety control method of a vehicle according to claim 1, It is characterized in that The fault analysis device is a cloud server; The step of sending the characteristic data to a fault analysis device comprises: Uploading the characteristic data to the cloud server; The cloud server determines the fault monitoring times and the fault tolerance time interval according to the following method: Inputting the characteristic data into a preset safety model, and obtaining the fault monitoring times and the fault tolerance time interval according to an output result of the preset safety model; The preset safety model is obtained by training with historical feature data, and the historical feature data is feature data when other vehicles of the same model as the vehicle have the fault.
3. The functional safety control method of a vehicle according to claim 2, It is characterized in that Before sending the characteristic data to the cloud server, the method further includes: Desensitizing the feature data according to preset desensitization rules; The uploading of the characteristic data to the cloud server includes: The feature data after desensitization processing is uploaded to the cloud server.
4. The functional safety control method of a vehicle according to claim 1, It is characterized in that The fault analysis device is an AI module of the vehicle; The step of sending the characteristic data to a fault analysis device comprises: Sending the feature data to the AI module; The AI module determines the fault monitoring times and the fault tolerance time interval according to the following method: The characteristic data is inferred and calculated according to a preset algorithm model to obtain the fault monitoring times and the fault tolerance time interval.
5. The functional safety control method of a vehicle according to claim 4, It is characterized in that The AI module includes a main AI module and an auxiliary AI module; the preset algorithm model includes a first algorithm model set in the main AI module and a second algorithm model set in the auxiliary AI module; The sending the feature data to the AI module includes: Sending the feature data to the main AI module and the auxiliary AI module respectively; The performing inference calculation on the characteristic data according to the preset algorithm model to obtain the fault monitoring times and the fault tolerance time interval includes: Performing inference calculation on the feature data according to the first algorithm model to obtain a first calculation result; performing inference calculation on the feature data according to the second algorithm model to obtain a second calculation result; and detecting whether a difference between the first calculation result and the second calculation result is within a preset range; When it is detected that the difference between the first calculation result and the second calculation result is within the preset range, the fault monitoring times and the fault tolerance time interval are obtained according to the first calculation result and the second calculation result.
6. The functional safety control method of a vehicle according to claim 1, It is characterized in that The characteristic data also includes an initial fault detection time interval and an initial fault response time interval matching the fault; The fault analysis device is further used to update the initial fault detection time interval and the initial fault response time interval according to the timestamp and the occurrence frequency to obtain a target fault detection time interval and a target fault response time interval; The sum of the target fault detection time interval and the target fault response time interval is smaller than the fault tolerance time interval.
7. The functional safety control method of a vehicle according to claim 1, It is characterized in that After sending the characteristic data to the fault analysis device, the method further includes: In response to the sending success information, the characteristic data is deleted.
8. A vehicle, It is characterized in that include: Monitoring module, sending module and control module; The monitoring module is used to obtain characteristic data of the fault when the vehicle is detected to have a fault and enter a safe state; wherein the characteristic data at least includes the frequency of occurrence of the fault and the timestamp of the fault; The sending module is used to send the characteristic data to the fault analysis device; wherein the fault analysis device is used to determine the number of fault monitoring times matching the fault according to the occurrence frequency, and determine the fault tolerance time interval matching the fault according to the timestamp; The control module is used to receive the fault monitoring times and the fault tolerance time interval sent by the fault analysis device, and when the fault occurs again in the vehicle, control the vehicle to enter the safe state according to the fault monitoring times and the fault tolerance time interval.
9. An electronic device, It is characterized in that The electronic device includes a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the functional safety control method for the vehicle according to any one of claims 1 to 7.
10. A storage medium, It is characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the functional safety control method for a vehicle according to any one of claims 1 to 7.
Citation Information
Cited By
Function safety test method for steering system failure
CN121632639A
