MCU fault alarm method, device, electronic device and readable storage medium

The SOC chip detects MCU faults and generates alarm signals, which solves the problem of not being able to alarm in time when MCU fails in the intelligent driving system, and improves the reliability and safety of the system.

CN118426434BActive Publication Date: 2024-10-18CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410279970.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-12
Publication Date
2024-10-18
Estimated Expiration
2044-03-12

AI Technical Summary

Technical Problem

When the MCU in the intelligent driving system fails, it cannot send out an alarm signal in time, causing the system to fail to work properly and causing heavy losses.

Method used

The SOC chip detects the output level signals of the MCU's safety core and ordinary core, generates a pulse width modulation signal, transmits the fault detection results through shared memory, and determines the fault type based on the correspondence between the preset fault type and the duty cycle. Generate alarm signals for alarm processing.

Benefits of technology

It effectively solves the alarm problem when the MCU fails, improves the reliability and safety of the intelligent driving system, and ensures the safety and effectiveness of the function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118426434B_ABST
    Figure CN118426434B_ABST
Patent Text Reader

Abstract

The present application provides an alarm method, device, electronic device and readable storage medium for MCU fault. The method includes: when the intelligent driving system activates the target function, the output level signal of the safety core and the common core of the MCU is detected by the SOC chip to obtain the level detection result; when the level detection result indicates that the safety core and / or the common core outputs a pulse width modulation signal containing the fault detection result, the first pulse width modulation signal is processed by the first SOC core to obtain the first duty cycle of the first pulse width modulation signal, and the second pulse width modulation signal is processed by the second SOC core to obtain the second duty cycle of the second pulse width modulation signal; the target fault type corresponding to the second duty cycle is determined according to the corresponding relationship between the second duty cycle and the preset; and an alarm signal containing the target fault type is generated. The technical solution of the present application can improve the reliability and safety of the intelligent driving system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and in particular to an MCU fault alarm method, device, electronic device and readable storage medium. Background Art

[0002] In modern electronic devices, MCU (Microcontroller Unit) is usually the core control unit of the system, responsible for controlling and managing various subsystems. In the field of intelligent driving, MCU mainly plays a role in core safety and driving, including control of intelligent driving assistance systems, chassis safety, body control, power control, infotainment, etc., and has a wide range of applications.

[0003] When the MCU in the intelligent driving system fails, the system may fall into a state of not being able to work normally. If an alarm signal is not issued in time and measures are not taken to take over the system in time, significant losses may result. Summary of the invention

[0004] In view of this, the embodiments of the present application provide an MCU failure alarm method, device, electronic device and readable storage medium to solve the technical problem that an alarm signal cannot be issued in time when an MCU fails in an intelligent driving system.

[0005] According to a first aspect of an embodiment of the present application, a method for alarming an MCU fault is provided, the method comprising: when an intelligent driving system activates a target function, detecting output level signals of a safety core and a common core of the MCU through a SOC chip to obtain a level detection result, wherein the safety core performs fault detection on the MCU and outputs a first pulse width modulation signal according to the fault detection result, after the safety core sends the fault detection result to the common core through a shared memory, the common core outputs a second pulse width modulation signal according to the fault detection result, the first pulse width modulation signal is received through the first SOC core, and the second pulse width modulation signal is received through the second SOC core. signal; when the level detection result indicates that the safety core and / or the common core outputs a pulse width modulation signal containing a fault detection result, the first pulse width modulation signal is processed by the first SOC core to obtain a first duty cycle of the first pulse width modulation signal, and the second pulse width modulation signal is processed by the second SOC core to obtain a second duty cycle of the second pulse width modulation signal, wherein the first duty cycle is used to calibrate the second duty cycle; the target fault type corresponding to the second duty cycle is determined according to the second duty cycle and the corresponding relationship between the preset fault type and the duty cycle; and an alarm signal containing the target fault type is generated to perform alarm processing.

[0006] According to a second aspect of an embodiment of the present application, an alarm device for MCU fault is provided, the device comprising: a detection module, which is used to detect the output level signals of the safety core and the ordinary core of the MCU through the SOC chip when the target function is activated by the intelligent driving system, and obtain a level detection result, wherein the safety core performs fault detection on the MCU and outputs a first pulse width modulation signal according to the fault detection result, and after the safety core sends the fault detection result to the ordinary core through a shared memory, the ordinary core outputs a second pulse width modulation signal according to the fault detection result, receives the first pulse width modulation signal through the first SOC core, and receives the second pulse width modulation signal through the second SOC core; a processing module , used for processing the first pulse width modulation signal through the first SOC core to obtain the first duty cycle of the first pulse width modulation signal when the level detection result indicates that the safety core and / or the common core outputs a pulse width modulation signal containing the fault detection result, and processing the second pulse width modulation signal through the second SOC core to obtain the second duty cycle of the second pulse width modulation signal, wherein the first duty cycle is used to calibrate the second duty cycle; a determination module, used for determining the target fault type corresponding to the second duty cycle according to the second duty cycle and the corresponding relationship between the preset fault type and the duty cycle; a generation module, used for generating an alarm signal containing the target fault type for alarm processing.

[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0009] Compared with the prior art, the beneficial effects of the embodiments of the present application include at least the following: the embodiments of the present application perform MCU fault detection through the safety core of the MCU, and transmit the fault detection result to the two cores of the SOC chip in the form of pulse width modulation signals through the safety core and the ordinary core of the MCU respectively, and the two cores of the SOC chip detect simultaneously to obtain the second duty cycle, and further determine the fault type by looking up the table according to the second duty cycle, so that the MCU can be reliably monitored by the SOC after a fault occurs, effectively solving the alarm problem when the MCU fails, and improving the reliability and safety of the intelligent driving system. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0011] Figure 1 It is a flowchart of an MCU fault alarm method provided in an embodiment of the present application;

[0012] Figure 2 It is a structural diagram of an MCU failure alarm system provided in an embodiment of the present application;

[0013] Figure 3 It is a structural schematic diagram of an MCU failure alarm device provided in an embodiment of the present application;

[0014] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0015] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0016] The MCU fault alarm method and device according to the embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0017] Figure 1 1 is a flow chart of an MCU fault alarm method provided in an embodiment of the present application. The method provided in an embodiment of the present application can be executed by any electronic device with computer processing capabilities, such as a terminal or a server. Figure 1 As shown, the alarm method of the MCU fault includes:

[0018] Step S101, when the intelligent driving system activates the target function, the output level signals of the safety core and the common core of the MCU are detected through the SOC (System on Chip) chip to obtain the level detection result, wherein the safety core performs fault detection of the MCU and outputs a first pulse width modulation signal according to the fault detection result, and after the safety core sends the fault detection result to the common core through a shared memory, the common core outputs a second pulse width modulation signal according to the fault detection result, and the first pulse width modulation signal is received through the first SOC core, and the second pulse width modulation signal is received through the second SOC core. Wherein, both the first pulse width modulation signal and the second pulse width modulation signal are PWM (Pulse Width Modulation) signals.

[0019] Specifically, the MCU may be a domain controller MCU of the intelligent driving system, but is not limited thereto. A domain controller refers to at least one server in the "domain" mode that is responsible for the authentication of each computer and user connected to the network.

[0020] Step S102, when the level detection result indicates that the safety core and / or the common core outputs a pulse width modulation signal including a fault detection result, the first pulse width modulation signal is processed by the first SOC core to obtain a first duty cycle of the first pulse width modulation signal, and the second pulse width modulation signal is processed by the second SOC core to obtain a second duty cycle of the second pulse width modulation signal, wherein the first duty cycle is used to calibrate the second duty cycle.

[0021] Step S103, determining a target fault type corresponding to the second duty cycle according to the second duty cycle and a preset correspondence relationship between the fault type and the duty cycle.

[0022] Step S104, generating an alarm signal including the target fault type for alarm processing.

[0023] In the technical solution of the embodiment of the present application, when the MCU in the intelligent driving system fails, the MCU fault alarm can be realized through the SOC that is connected to the MCU in communication. Specifically, after the SOC learns the fault type of the MCU based on the pulse width modulation signal sent by the MCU, it can send an alarm signal through a relatively safe communication method to notify the associated subsystem of the domain controller of the intelligent driving system to remind personnel to take over the intelligent driving system, which can ensure the safety and effectiveness of the functions of the intelligent driving system. This technical solution has the characteristics of clear technical details and strict logical relationships.

[0024] Before step S101, the activation status of the following intelligent driving functions can be monitored by the SOC chip to obtain a monitoring result, wherein the intelligent driving function includes one, two or more functions: AEB (Autonomous Emergency Braking) function, ACC (Adaptive Cruise Control) function, ELK (Emergency lane-keeping) function, LKA (Lane Keeping Assistant) function, NCA (Navigation Cruise Assist) function; when the monitoring result indicates the activation of any one or all of the intelligent driving functions, the intelligent driving system is determined to activate the target function.

[0025] In one embodiment of the present application, the technical solution of step S101 is executed only when at least one of the five function activation situations, namely, AEB function activation, ACC function activation, ELK function activation, LKA function activation, and NCA function activation, occurs. That is, only when at least one of the above five function activation situations occurs, the alarm process of the MCU failure is started to save computing power and energy consumption of the domain controller. Among them, these five function activation situations will not occur at the same time, and any one of the function activations will run the alarm system corresponding to the MCU failure alarm method.

[0026] Furthermore, intelligent driving functions such as AEB function, ACC function, ELK function, LKA function and NCA function will control the vehicle's throttle, brake and steering wheel during operation. When the domain controller MCU has a serious fault and cannot operate, the intelligent driving system will output erroneous control instructions, causing personal injury to the driver. The technical solution of the embodiment of the present application is started when the above intelligent driving function is running, and the domain controller MCU fault is monitored by the SOC chip connected to the domain controller MCU for communication, and other subsystems other than the intelligent driving domain controller can be alarmed.

[0027] When at least one of the five functions, AEB, ACC, ELK, LKA, and NCA, is activated, the SOC chip starts to monitor the MCU status. By setting a monitoring circuit in the SOC chip, the above five functions can be monitored at the same time, and when any of the functions is detected to be activated, the MCU status can be monitored in real time. The MCU status includes the operating status and the fault status, but is not limited thereto.

[0028] In system design, the SOC chip will detect MCU failures and MCU operating status respectively.

[0029] Specifically, when the MCU failure is caused by an external circuit, the MCU's monitoring circuit can detect the MCU failure, and the safety core on the MCU chip can generate a PWM wave signal, and at the same time, transmit the abnormal operation status to the ordinary core through IPC (InterProcessCommunication) in a shared memory manner. When the MCU monitors the abnormal process failure of the ordinary core, another PWM wave signal is generated through the ordinary core, and at the same time, the abnormal operation status is transmitted to the safety core through IPC in a shared memory manner. In summary, the safety core of the MCU can monitor the MCU fault status, and the ordinary core of the MCU can monitor the operating status of the MCU to ensure multi-coverage of MCU monitoring. Among them, the operating status of the MCU includes the situation where the internal operation of the MCU is stuck.

[0030] The safety core and the common core of the MCU transmit the same type of fault data to the SOC chip in the form of pulse width modulation signals, thereby ensuring that the fault can be reliably identified by the SOC.

[0031] The pin1 pin corresponding to the first SOC core collects the level signal of the safety core output voltage of the MCU, and the pin2 pin corresponding to the second SOC core collects the level signal of the common core output voltage of the MCU. Both the pin1 pin and the pin2 pin are configured as PWM mode. When the safety core of the MCU does not detect the MCU fault, the pin1 pin can be set to a constant output low level, and the pin2 pin can be set to a constant output high level. Among them, when the safety core of the MCU does not detect the MCU fault, the level setting method of the pin1 pin and the pin2 pin is not limited to the above content, which is only an exemplary description here. In actual application, it can be adjusted as needed.

[0032] The common core and the safety core on the SOC use logic processing circuits at the same time to determine the type and degree of MCU failure. Among them, the common core of the SOC is the first SOC core, and the safety core of the SOC is the second SOC core.

[0033] The domain controller MCU in the embodiment of the present application has a dual-core lock-step function.

[0034] Specifically, the sum of the first duty cycle and the second duty cycle can be set to 1, so that the first duty cycle is used to calibrate the second duty cycle. The common core of the MCU transmits different MCU fault types to the outside by sending different second duty cycle data. After receiving the second pulse width modulation signal, the SOC chip can use the duty cycle data of the PWM wave to quickly match in a preset dictionary table to obtain the fault type of the MCU.

[0035] Before step S103, it is also necessary to determine whether the sum of the first duty cycle and the second duty cycle is 1 to obtain a determination result; when the determination result is yes, the second duty cycle is determined to be valid data.

[0036] Specifically, the safety core and the common core of the MCU will synchronize inter-core communication for different faults, and the safety core and the common core of the MCU will generate PWM waves with different duty cycles. When the duty cycle of the safety core on the MCU is x, the duty cycle of the common core on the MCU is 1-x, where x is a percentage less than 1 and the maximum value is 0.95.

[0037] The SOC chip will reliably detect the duty cycles of these two channels to ensure that the fault type is reliably identified. For example, when the MCU fault type is the first type, when the safety core outputs a PWM wave with a duty cycle of 25%, since the first type has been transmitted to the ordinary core through IPC, the ordinary core outputs a PWM wave with a duty cycle of 75%. In the dictionary table, a duty cycle of 75% corresponds to the first type. When the MCU fault type is the second type, when the safety core outputs a PWM wave with a duty cycle of 50%, since the second type has been transmitted to the ordinary core through IPC, the ordinary core outputs a PWM wave with a duty cycle of 50%. In the dictionary table, a duty cycle of 50% corresponds to the second type. When the MCU fault type is the third type, when the safety core outputs a PWM wave with a duty cycle of 75%, since the third type has been transmitted to the ordinary core through IPC, the ordinary core outputs a PWM wave with a duty cycle of 25%. In the dictionary table, a duty cycle of 25% corresponds to the third type.

[0038] In the embodiment of the present application, the fault of the common core can also be transmitted to the safety core to generate corresponding duty cycle data.

[0039] Before step S103, the fault type needs to be written into a pre-established dictionary table; and a corresponding relationship between the fault type and the duty cycle is established in the dictionary table.

[0040] Furthermore, the target fault type corresponding to the second duty cycle is determined based on the corresponding relationship between the second duty cycle and the preset fault type and duty cycle, including matching the second duty cycle with the duty cycle in the dictionary table to obtain a matching result; when the matching result indicates that the second duty cycle has no corresponding matching data in the dictionary table, the target fault type is determined to be a severe fault.

[0041] In an embodiment of the present application, the SOC side parses the first pulse width modulation signal and the second pulse width modulation signal to obtain the first duty cycle and the second duty cycle. After using the first duty cycle to calibrate the second duty cycle, the second duty cycle is used to perform a table lookup to confirm that the MCU operating status is faulty.

[0042] If the second duty cycle parsed by the SOC side has corresponding duty cycle data in the dictionary table, the fault type corresponding to the corresponding duty cycle data in the dictionary table is the matched target fault type. If the second duty cycle parsed by the SOC side does not have corresponding duty cycle data in the dictionary table, the SOC defaults to a serious fault in the MCU, that is, a serious fault is used as the target fault type. The above processing scheme can improve the real-time acquisition of MCU fault types, reduce system time and resource usage, and thus quickly respond to the subsequent processing strategy of the fault.

[0043] In an embodiment of the present application, when writing the fault type into a pre-established dictionary table, at least one of the following fault types can be written into the dictionary table: CPU (Central Processing Unit) query error, code writing error, logic error, algorithm error, voltage fluctuation, overtemperature, short circuit, open circuit, clock failure, memory failure, communication interface failure; wherein, memory failure includes flash memory failure and / or random access memory failure, and communication interface failure includes at least any of the following: serial port failure, SPI (Serial Peripheral Interface) failure or I2C (Inter-Integrated Circuit Bus) failure. The correspondence between these fault types and duty cycles can be freely designed by the developer. After establishing the correspondence between the fault type and the duty cycle, the fault type can be quickly determined by searching the dictionary table according to the duty cycle.

[0044] After step S104, the alarm signal can also be sent to the associated subsystem outside the intelligent driving system domain controller through the fault sub-segment of the CAN (Controller Area Network) message and the fault field of the Ethernet message for early warning response processing.

[0045] After receiving the above alarm signal, the associated subsystem of the domain controller of the intelligent driving system can take timely measures to take over the intelligent driving system according to the pre-set emergency plan to ensure the safe and effective functions of the intelligent driving system.

[0046] By sending the alarm signal to the associated subsystem of the intelligent driving system domain controller, the associated subsystem can be notified to take over the intelligent driving system to ensure the safe and effective functions of the intelligent driving system.

[0047] The domain controller of the intelligent driving system can communicate with the associated subsystems through the communication module. The communication module can select the corresponding communication mode, such as Ethernet, CAN communication, wireless communication, etc., to ensure the reliable transmission of the alarm signal. The associated subsystem can take timely measures to take over the system according to the reception of the alarm signal.

[0048] like Figure 2 As shown, the alarm system for MCU failure in the embodiment of the present application includes a monitoring circuit, a logic processing circuit, a communication module, a software logic module and an associated subsystem, which realizes the linkage of multiple systems of the whole vehicle. The monitoring circuit is used to monitor the status of the MCU in real time, that is, to perform fault detection and status detection. The logic processing circuit is used to perform logic processing to determine the type and degree of MCU failure, the communication module is used to send an alarm signal, and the associated subsystem is used to receive the alarm signal and perform corresponding processing. In the specific implementation, the monitoring circuit includes fault detection and operating status detection, and the operating status of the MCU can be determined by detecting parameters such as the power supply voltage, operating frequency and heartbeat signal of the MCU. The logic processing circuit can determine whether an alarm signal needs to be issued according to different fault types and degrees.

[0049] like Figure 2 As shown in the figure, the safety core of the MCU chip is connected to the A core (application core) of the SOC chip through the PWM-pin1 pin, and the common core of the MCU chip is connected to the R core (safety core) of the SOC chip through the PWM-pin2 pin. The SOC chip sends out an alarm signal through a reliable communication method independent of the MCU, such as the CAN bus and the Ethernet bus, which is not affected by the MCU failure on the SOC chip power supply system, ensuring the normal operation of the SOC chip. In addition, the SOC uses the common core and the safety core for dual-core judgment, which ensures that the SOC can reliably monitor the MCU after a failure. The technical details are clear and the logical relationship is strict, which can effectively solve the alarm problem when the MCU fails.

[0050] Furthermore, the A core and R core of the SOC simultaneously obtain the MCU's heartbeat signal and other operating status signals, as well as the MCU's power supply signal and other fault signals. The A core and R core simultaneously monitor the same signal, and when the signal value is true or there is a difference, it is determined that the MCU is working, thereby achieving dual redundancy and ensuring the reliability of MCU monitoring.

[0051] According to the MCU fault alarm method of the embodiment of the present application, the MCU fault detection is performed through the MCU's safety core, and the fault detection result is transmitted to the two cores of the SOC chip in the form of pulse width modulation signals through the MCU's safety core and the common core respectively. The two cores of the SOC chip detect simultaneously to obtain the second duty cycle, and further determine the fault type by looking up the table according to the second duty cycle. The MCU can be reliably monitored by the SOC after a fault occurs, which effectively solves the alarm problem when the MCU fails and improves the reliability and safety of the intelligent driving system.

[0052] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. The alarm device for MCU failure described below and the alarm method for MCU failure described above can be referred to each other. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0053] Figure 3 Schematic diagram of an MCU fault alarm device provided in an embodiment of the present application. Figure 3 As shown, the MCU failure alarm device in the embodiment of the present application includes:

[0054] The detection module 301 is used to detect the output level signals of the safety core and the common core of the MCU through the SOC chip when the target function is activated by the intelligent driving system, and obtain the level detection result, wherein the safety core performs fault detection on the MCU and outputs a first pulse width modulation signal according to the fault detection result, and after the safety core sends the fault detection result to the common core through a shared memory, the common core outputs a second pulse width modulation signal according to the fault detection result, receives the first pulse width modulation signal through the first SOC core, and receives the second pulse width modulation signal through the second SOC core.

[0055] The processing module 302 is used to process the first pulse width modulation signal through the first SOC core to obtain a first duty cycle of the first pulse width modulation signal when the level detection result indicates that the safety core and / or the common core outputs a pulse width modulation signal containing a fault detection result, and to process the second pulse width modulation signal through the second SOC core to obtain a second duty cycle of the second pulse width modulation signal, wherein the first duty cycle is used to calibrate the second duty cycle.

[0056] The determination module 303 is used to determine the target fault type corresponding to the second duty cycle according to the second duty cycle and the corresponding relationship between the preset fault type and the duty cycle.

[0057] The generating module 304 is used to generate an alarm signal including a target fault type for alarm processing.

[0058] In the technical solution of the embodiment of the present application, when the MCU in the intelligent driving system fails, the MCU fault alarm can be realized through the SOC that is connected to the MCU in communication. Specifically, after the SOC learns the fault type of the MCU based on the pulse width modulation signal sent by the MCU, it can send an alarm signal through a relatively safe communication method to notify the associated subsystem of the domain controller of the intelligent driving system to remind personnel to take over the intelligent driving system, which can ensure the safety and effectiveness of the functions of the intelligent driving system. This technical solution has the characteristics of clear technical details and strict logical relationships.

[0059] The generation module 304 is also used to send the alarm signal to the associated subsystem of the intelligent driving system domain controller through the fault sub-segment of the controller area network CAN message and the fault field of the Ethernet message, so as to perform early warning response processing.

[0060] The MCU failure alarm device in the embodiment of the present application may also include a monitoring module, which is used to monitor the activation status of the following intelligent driving functions through the SOC chip to obtain monitoring results, wherein the intelligent driving functions include one, two or more functions: AEB function, ACC function, ELK function, LKA function, NCA function; when the monitoring result indicates the activation of any one or all of the intelligent driving functions, determine the intelligent driving system to activate the target function.

[0061] The determination module 302 is further used to determine whether the sum of the first duty cycle and the second duty cycle is 1, and obtain a determination result; when the determination result is yes, the second duty cycle is determined to be valid data.

[0062] The MCU fault alarm device in the embodiment of the present application may also include an establishment module for writing the fault type into a pre-established dictionary table; and establishing a corresponding relationship between the fault type and the duty cycle in the dictionary table.

[0063] The determination module 302 is further configured to match the second duty cycle with the duty cycle in the dictionary table to obtain a matching result; when the matching result indicates that the second duty cycle has no corresponding matching data in the dictionary table, the target fault type is determined to be a severe fault.

[0064] The establishment module is also used to write at least one of the following fault types into the dictionary table: central processing unit CPU query error, code writing error, logic error, algorithm error, voltage fluctuation, overtemperature, short circuit, open circuit, clock failure, memory failure, communication interface failure; wherein, memory failure includes flash memory failure and / or random access memory failure, and communication interface failure includes at least any one of the following: serial port failure, serial peripheral interface failure or integrated circuit interconnect bus failure.

[0065] Since the various functional modules of the MCU failure alarm device in the example embodiment of the present application correspond to the steps of the example embodiment of the MCU failure alarm method mentioned above, for details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the MCU failure alarm method mentioned above in the present application.

[0066] According to the MCU fault alarm device of the embodiment of the present application, the MCU fault detection is performed through the safety core of the MCU, and the fault detection result is transmitted to the two cores of the SOC chip in the form of pulse width modulation signals through the safety core and the common core of the MCU respectively. The two cores of the SOC chip detect simultaneously to obtain the second duty cycle, and further determine the fault type by looking up the table according to the second duty cycle. The MCU can be reliably monitored by the SOC after a fault occurs, which effectively solves the alarm problem when the MCU fails and improves the reliability and safety of the intelligent driving system.

[0067] Figure 4 Schematic diagram of an electronic device 4 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules in the above-mentioned device embodiments are implemented.

[0068] The electronic device 4 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 , and may include more or less components than those shown in the figure, or different components.

[0069] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0070] The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. The memory 402 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 402 is used to store computer programs and other programs and data required by the electronic device.

[0071] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0072] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0073] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for alarming a microcontroller unit MCU failure, characterized in that: The method comprises: When the intelligent driving system activates the target function, the output level signals of the safety core and the common core of the MCU are detected through the system on chip SOC chip to obtain a level detection result, wherein the safety core performs fault detection of the MCU and outputs a first pulse width modulation signal according to the fault detection result, and after the safety core sends the fault detection result to the common core through a shared memory, the common core outputs a second pulse width modulation signal according to the fault detection result, and the first pulse width modulation signal is received through the first SOC core, and the second pulse width modulation signal is received through the second SOC core; When the level detection result indicates that the safety core and / or the common core outputs a pulse width modulation signal including the fault detection result, the first pulse width modulation signal is processed by the first SOC core to obtain a first duty cycle of the first pulse width modulation signal, and the second pulse width modulation signal is processed by the second SOC core to obtain a second duty cycle of the second pulse width modulation signal, wherein the first duty cycle is used to calibrate the second duty cycle; Determining a target fault type corresponding to the second duty cycle according to the second duty cycle and a preset correspondence relationship between the fault type and the duty cycle; An alarm signal including the target fault type is generated for alarm processing.

2. The method according to claim 1, characterized in that After generating an alarm signal containing the target fault type, the method further includes: sending the alarm signal to the associated subsystem of the intelligent driving system domain controller through the fault subsegment of the controller area network (CAN) message and the fault field of the Ethernet message respectively for early warning response processing.

3. The method according to claim 1, characterized in that Before detecting the output level signals of the safety core and the common core of the MCU by the SOC chip, the method further includes: The SOC chip is used to monitor the activation of the following intelligent driving functions to obtain a monitoring result, wherein the intelligent driving function includes at least one of the following functions: automatic emergency braking AEB function, adaptive cruise control ACC function, emergency lane keeping ELK function, lane keeping assist LKA function, and navigation cruise assist NCA function; When the monitoring result indicates activation of any one or all of the intelligent driving functions, it is determined that the intelligent driving system activates the target function.

4. The method according to claim 1, characterized in that: Before determining the target fault type corresponding to the second duty cycle according to the second duty cycle and the preset correspondence relationship between the fault type and the duty cycle, the method further includes: Determine whether the sum of the first duty cycle and the second duty cycle is 1, and obtain a determination result; When the judgment result is yes, it is determined that the second duty cycle is valid data.

5. The method according to claim 1, characterized in that Before determining the target fault type corresponding to the second duty cycle according to the second duty cycle and the preset correspondence relationship between the fault type and the duty cycle, the method further includes: Write the fault type into a pre-established dictionary table; A correspondence between the fault type and the duty cycle is established in the dictionary table.

6. The method according to claim 5, characterized in that Determining a target fault type corresponding to the second duty cycle according to the second duty cycle and a preset correspondence relationship between the fault type and the duty cycle includes: Matching the second duty cycle with the duty cycle in the dictionary table to obtain a matching result; When the matching result indicates that the second duty cycle has no corresponding matching data in the dictionary table, the target fault type is determined to be a serious fault.

7. The method according to claim 5, characterized in that Writing the fault type into a pre-established dictionary table includes writing at least one of the following fault types into the dictionary table: Central processing unit CPU query error, code writing error, logic error, algorithm error, voltage fluctuation, overtemperature, short circuit, open circuit, clock failure, memory failure, communication interface failure; The memory failure includes a flash memory failure and / or a random access memory failure, and the communication interface failure includes at least any one of the following: a serial port failure, a serial peripheral interface failure, or an integrated circuit interconnect bus failure.

8. An alarm device for MCU failure, characterized in that: The device comprises: A detection module, configured to detect output level signals of a safety core and a common core of the MCU through a SOC chip when a target function is activated by the intelligent driving system, and obtain a level detection result, wherein the safety core performs fault detection of the MCU and outputs a first pulse width modulation signal according to the fault detection result, and after the safety core sends the fault detection result to the common core through a shared memory, the common core outputs a second pulse width modulation signal according to the fault detection result, and the first pulse width modulation signal is received through the first SOC core, and the second pulse width modulation signal is received through the second SOC core; a processing module, configured to, when the level detection result indicates that the safety core and / or the common core outputs a pulse width modulation signal including the fault detection result, process the first pulse width modulation signal through the first SOC core to obtain a first duty cycle of the first pulse width modulation signal, and process the second pulse width modulation signal through the second SOC core to obtain a second duty cycle of the second pulse width modulation signal, wherein the first duty cycle is used to calibrate the second duty cycle; a determination module, configured to determine a target fault type corresponding to the second duty cycle according to the second duty cycle and a preset correspondence relationship between the fault type and the duty cycle; The generating module is used to generate an alarm signal including the target fault type for alarm processing.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method, device, equipment and system for detecting working state of SOC chip of vehicle

    CN114860512A

  • Diagnostic information synchronization method and device, electronic equipment and storage medium

    CN116339205A