Remote diagnosis method, system, equipment and medium for vehicle MCU (Microprogrammed Control Unit) state
By installing the fault diagnosis monitoring module and the inter-chip communication module in the vehicle MCU, the fault information is monitored and forwarded in real time to the SOC, remote fault diagnosis and debugging of the MCU side is realized, the problem that the MCU cannot operate remotely is solved, and the diagnosis and debugging efficiency is improved .
Patent Information
- Application Number
- CN202411353779.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-01-07
AI Technical Summary
In the prior art, the vehicle MCU cannot be operated remotely, and depends on equipment such as debuggers and local connections. Real-time and convenience are limited, which affects the efficiency of function debugging and is time-consuming and labor-consuming.
Install the fault diagnosis and monitoring module in the MCU to monitor the fault information and operating status information of other modules in the MCU in real time, and send it to the SOC through inter-chip communication to generate fault log information, and perform fault diagnosis and debugging through remote servers to reduce the cost. Dependencies of debuggers and other devices.
Remote fault diagnosis and debugging on the MCU side is realized, fault analysis efficiency and debugging efficiency are improved, dependence on local scenarios is reduced, and time and effort are saved.
Smart Images

Figure CN119270818A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of fault diagnosis technology, and in particular to a remote diagnosis method, system, device and medium for vehicle MCU status. Background Art
[0002] The current intelligent driving domain controller is mainly composed of one or more MCUs (Micro Control Units) and SOCs (System-on-Chip). As a performance chip, SOC mainly deploys some functional modules with high computing power consumption. As a security chip, MCU mainly deploys some functional modules with high real-time requirements.
[0003] For debugging and troubleshooting on the SOC side, you can use the terminal SSH (Secure Shell) to remotely connect and analyze the fault log in real time. For debugging and troubleshooting on the MCU side, you often cannot use remote connection to operate, and you need to rely on debuggers and other devices for local debugging. Even if there are fault storage records, you cannot quickly get the fault record content for analysis. You need to use debuggers or UDS (Unified Diagnostic Services) services to read and analyze the local content of the MCU.
[0004] Therefore, the current vehicle MCU cannot be operated remotely and relies on devices such as debuggers and local connections. Its real-time performance and convenience are limited, which affects the efficiency of functional debugging and is more time-consuming and labor-intensive. Summary of the invention
[0005] The embodiments of the present application provide a remote diagnosis method, system, device and medium for the status of a vehicle MCU to solve the problem in the prior art that the MCU cannot be remotely operated, relies on devices such as debuggers and local connections, has limited real-time and convenience, affects the efficiency of function debugging, and is more time-consuming and labor-intensive.
[0006] In order to solve the above technical problems, the embodiment of the present application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a remote diagnosis method for a vehicle MCU status, the method comprising:
[0008] Calling a fault diagnosis monitoring module pre-installed in the MCU to monitor fault diagnosis information and operation status information of MCU modules other than the fault diagnosis monitoring module in the MCU;
[0009] Sending the fault diagnosis information and the operating status information to the SOC;
[0010] The SOC is called to generate and store fault log information of the MCU module according to the fault diagnosis information and the operating status information, and the fault diagnosis information and the operating status information are displayed in a preset interface, so that the remote server can perform fault diagnosis and debugging on the MCU module according to the fault diagnosis information and the operating status information when remotely logging into the SOC.
[0011] Optionally, calling a fault diagnosis monitoring module pre-installed in the MCU to monitor fault diagnosis information and operation status information of MCU modules other than the fault diagnosis monitoring module in the MCU includes:
[0012] Calling the fault diagnosis monitoring module to monitor and obtain the fault information and operation status information of the MCU module;
[0013] Perform a preliminary diagnosis on the fault information to obtain fault diagnosis information of the MCU module.
[0014] Optionally, sending the fault diagnosis information and the operating status information to a SOC includes:
[0015] The inter-chip communication module in the MCU is called to send the fault diagnosis information and the operation status information to the SOC based on the inter-chip communication protocol.
[0016] Optionally, after calling the SOC to generate and store the fault log information of the MCU module according to the fault diagnosis information and the running status information, and displaying the fault diagnosis information and the running status information in a preset interface, it also includes:
[0017] Calling the SOC to obtain fault debugging information for the MCU module sent by the remote server;
[0018] Calling the inter-chip communication module in the SOC to send the fault debugging information to the MCU;
[0019] The MCU is called to perform fault debugging on the faulty MCU module according to the fault debugging information.
[0020] Optionally, the calling the MCU to perform fault debugging on the faulty MCU module according to the fault debugging information includes:
[0021] Calling a memory processing module in the MCU to read debugging variable parameters in the debugging information;
[0022] The debugging variable parameters are written into the corresponding MCU module to perform corresponding debugging operations to complete fault debugging.
[0023] In a second aspect, an embodiment of the present application provides a remote diagnosis system for the status of a vehicle MCU, the system comprising: an MCU, a SOC and a remote server, the MCU comprising: a fault diagnosis monitoring module,
[0024] The fault diagnosis monitoring module is used to monitor the fault diagnosis information and operation status information of the MCU modules other than the fault diagnosis monitoring module in the MCU;
[0025] The MCU is used to send the fault diagnosis information and the operation status information to the SOC;
[0026] The SOC is used to generate and store the fault log information of the MCU module according to the fault diagnosis information and the operating status information, and display the fault diagnosis information and the operating status information in a preset interface;
[0027] The remote server is used to log in to the SOC and perform fault diagnosis and debugging on the MCU module according to the fault diagnosis information and the operating status information.
[0028] Optionally, the fault diagnosis monitoring module is specifically used to monitor and obtain fault information and operating status information of the MCU module; perform preliminary diagnosis on the fault information, and obtain fault diagnosis information of the MCU module.
[0029] Optionally, the MCU further includes: an inter-chip communication module,
[0030] The inter-chip communication module is used to send the fault diagnosis information and the operation status information to the SOC based on the inter-chip communication protocol.
[0031] Optionally, the SOC is further used to obtain fault debugging information for the MCU module sent by the remote server, and send the fault debugging information to the MCU through the inter-chip communication module;
[0032] The MCU is also used to perform fault debugging on the faulty MCU module according to the fault debugging information.
[0033] Optionally, the MCU further includes: a memory processing module,
[0034] The memory processing module is used to read the debugging variable parameters in the debugging information; write the debugging variable parameters into the corresponding MCU module to perform corresponding debugging operations to complete fault debugging.
[0035] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0036] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements any of the above-mentioned methods for remotely diagnosing the vehicle MCU status.
[0037] In a fourth aspect, an embodiment of the present application provides a readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned remote diagnosis methods for the vehicle MCU status.
[0038] In the embodiment of the present application, by calling the fault diagnosis monitoring module pre-installed in the MCU, the fault diagnosis information and operating status information of the MCU module other than the fault diagnosis monitoring module in the MCU are monitored. The fault diagnosis information and operating status information are sent to the SOC. The SOC is called to generate and store the fault log information of the MCU module according to the fault diagnosis information and operating status information, and the fault diagnosis information and operating status information are displayed in the preset interface. The remote server performs fault diagnosis and debugging on the MCU module according to the fault diagnosis information and operating status information when logging into the SOC remotely. The embodiment of the present application monitors the fault information of other modules in the MCU in real time by installing the fault diagnosis monitoring module in the MCU, and performs preliminary diagnosis. At the same time, based on the inter-chip communication between the MCU and the SOC end, the fault diagnosis information of the MCU end is forwarded to the SOC, and the real-time online analysis of simple fault problems on the MCU end and the historical log archiving and rapid analysis of complex fault problems are realized through log storage and visual interface tools, thereby improving the efficiency of fault analysis. In addition, remote debugging of the MCU end can be realized, reducing the dependence on devices such as debuggers and local scenes, improving the debugging efficiency of the MCU, and saving time and effort.
[0039] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application 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 creative work.
[0041] Figure 1 A flowchart of a remote diagnosis method for a vehicle MCU status provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a remote diagnosis and debugging process of an MCU in an intelligent driving domain control system provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of the structure of a remote diagnosis system for vehicle MCU status provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] Reference Figure 1 , shows a flowchart of the steps of a remote diagnosis method of a vehicle MCU state provided by an embodiment of the present application. Figure 1 As shown, the remote diagnosis method of the vehicle MCU status may include: step 101, step 102 and step 103.
[0047] Step 101: calling a fault diagnosis monitoring module pre-installed in the MCU to monitor the fault diagnosis information and operation status information of MCU modules in the MCU except the fault diagnosis monitoring module.
[0048] The embodiments of the present application can be applied to scenarios where communication between an SOC and an MCU is used to implement remote fault diagnosis and debugging of the MCU.
[0049] In this embodiment, a fault diagnosis monitoring module may be pre-installed in the vehicle MCU, and the fault diagnosis monitoring module may monitor the fault information of other modules in the MCU in real time and perform preliminary diagnosis on the fault information of other modules.
[0050] In a specific implementation, each functional module on the MCU side (i.e., the MCU module in this example) can collect possible fault information of itself and the operation status information associated with the fault information troubleshooting in real time, and output the fault information and operation status information to the fault diagnosis and monitoring module.
[0051] At this time, the fault diagnosis monitoring module can be called to obtain the fault information and operation status information output by each MCU module. At the same time, the fault diagnosis monitoring module can perform preliminary diagnosis on the fault information to obtain fault diagnosis information. The implementation process can be described in detail in combination with the following specific implementation method.
[0052] In a specific implementation of the present application, the above step 101 may include:
[0053] Sub-step A1: calling the fault diagnosis monitoring module to monitor and obtain the fault information and operation status information of the MCU module.
[0054] In this embodiment, the fault diagnosis monitoring module may be called first to monitor and obtain the fault information and operation status information of the MCU module.
[0055] After the fault diagnosis monitoring module is called to monitor and obtain the fault information and operation status information of the MCU module, sub-step A2 is executed.
[0056] Sub-step A2: Perform a preliminary diagnosis on the fault information to obtain fault diagnosis information of the MCU module.
[0057] After calling the fault diagnosis monitoring module to monitor and obtain the fault information and operating status information of the MCU module, the fault diagnosis monitoring module can be called to perform preliminary diagnosis on the fault information to obtain the fault diagnosis information of the MCU module. In the specific implementation, the fault diagnosis monitoring module can collect the operating status information and fault information output by each MCU module on the MCU side, and monitor in real time. For the content that the module itself cannot diagnose, the fault diagnosis module monitors and diagnoses through the operating status information to obtain the fault diagnosis information.
[0058] The embodiment of the present application can monitor the fault information and operating status information of other functional modules in the MCU in real time by pre-installing a fault diagnosis monitoring module in the MCU, and output it to the SOC to achieve remote diagnosis and debugging, thereby providing a basis for remote diagnosis and debugging of the MCU.
[0059] After calling the fault diagnosis monitoring module pre-installed in the MCU to monitor the fault diagnosis information and operation status information of the MCU modules other than the fault diagnosis monitoring module in the MCU, step 102 is executed.
[0060] Step 102: Send the fault diagnosis information and the operating status information to the SOC.
[0061] After the fault diagnosis information and operating status information of the MCU modules other than the fault diagnosis monitoring module in the MCU are obtained through monitoring, the fault diagnosis information and operating status information may be sent to the SOC.
[0062] In a specific implementation, an inter-chip communication module is provided in the MCU. After obtaining the fault diagnosis information and the operating status information, the fault diagnosis monitoring module can send the fault diagnosis information and the operating status information to the inter-chip communication module in the MCU. Furthermore, the inter-chip communication module in the MCU can send the fault diagnosis information and the operating status information to the inter-chip communication module in the SOC based on the inter-chip communication protocol.
[0063] Among them, chip-to-chip communication protocols refer to protocols for data transmission and communication between different chips. These protocols define how to exchange information between chips, including the format, transmission method, synchronization mechanism, etc. of data, to ensure that data can be accurately and reliably transmitted between chips. In this example, the chip-to-chip communication protocol can be, but is not limited to: I2C protocol, UART protocol, SPI protocol, etc.
[0064] After the fault diagnosis information and the operation status information are sent to the SOC, step 103 is executed.
[0065] Step 103: Call the SOC to generate and store the fault log information of the MCU module according to the fault diagnosis information and the operating status information, and display the fault diagnosis information and the operating status information in a preset interface, so that the remote server can perform fault diagnosis and debugging on the MCU module according to the fault diagnosis information and the operating status information when remotely logging into the SOC.
[0066] After the fault diagnosis information and the operating status information are sent to the SOC, the SOC can be called to generate the fault log information of each MCU module in the MCU according to the fault diagnosis information and the operating status information, and the fault diagnosis information and the operating status information are displayed in the preset interface. Specifically, the SOC can be connected to the PC in the vehicle, so that the fault diagnosis information and the operating status information can be displayed on the visual interface of the PC, which is the preset interface.
[0067] Among them, the fault log information can be archived for fault location.
[0068] When the remote server needs to perform fault diagnosis and debugging on the vehicle MCU, the remote server can remotely log in to the SOC and perform fault diagnosis and debugging on the MCU module based on the fault diagnosis information and operating status information.
[0069] The embodiment of the present application installs a fault diagnosis monitoring module in the MCU to monitor the fault information of other modules in the MCU in real time and perform preliminary diagnosis. At the same time, based on the inter-chip communication between the MCU and the SOC, the fault diagnosis information on the MCU is forwarded to the SOC. Through log storage and visualization interface tools, real-time online analysis of simple fault problems on the MCU side and historical log archiving and rapid analysis of complex fault problems are achieved, thereby improving the efficiency of fault analysis. In addition, remote debugging of the MCU side can be achieved, reducing the dependence on debuggers and other equipment and local scenarios, improving the debugging efficiency of the MCU, and saving time and effort.
[0070] In this embodiment, after the MCU and the SOC complete the interaction of fault information, the remote server can remotely log in to the SOC and perform remote debugging in combination with the fault diagnosis information and operation status information displayed by the SOC. This implementation process can be described in detail in combination with the following specific implementation methods.
[0071] In a specific implementation of the present application, after the above step 103, the following may also be included:
[0072] Step B1: calling the SOC to obtain the fault debugging information for the MCU module sent by the remote server.
[0073] In this embodiment, when the MCU needs to be remotely debugged, the remote server can remotely log in to the SOC, and perform fault diagnosis on each MCU module according to the fault diagnosis information and operation status information of each MCU module in the MCU recorded and displayed in the SOC. At the same time, fault debugging information of each MCU module can be generated according to the fault diagnosis result, and the fault debugging information is sent to the SOC.
[0074] Furthermore, the SOC can be called to obtain the fault debugging information for the MCU module sent by the remote server.
[0075] After calling the SOC to obtain the fault debugging information for the MCU module sent by the remote server, step B2 is executed.
[0076] Step B2: calling the inter-chip communication module in the SOC to send the fault debugging information to the MCU.
[0077] After calling SOC to obtain the fault debugging information for the MCU module sent by the remote server, the inter-chip communication module in SOC can be called to send the fault debugging information to MCU. Specifically, the inter-chip communication module of SOC can be called to send the fault debugging information to the inter-chip communication module in MCU.
[0078] After the inter-chip communication module in the SOC is called to send the fault debugging information to the MCU, step B3 is executed.
[0079] Step B3: calling the MCU to perform fault debugging on the faulty MCU module according to the fault debugging information.
[0080] After calling the inter-chip communication module in the SOC to send the fault debugging information to the MCU, the MCU can be called to debug the faulty MCU module according to the fault debugging information. Specifically, the memory processing module in the MCU can be called to read the debugging variable parameters in the debugging information. The debugging variable parameters are written into the corresponding MCU module to perform the corresponding debugging operation to complete the fault debugging.
[0081] The embodiment of the present application realizes remote debugging of the MCU side through debugging information interaction between the MCU and the SOC based on a customized debugging protocol, reduces dependence on devices such as debuggers and local scenarios, improves energy efficiency, and saves time and effort.
[0082] Next, combine Figure 2 The process of remote fault diagnosis and debugging of MCU is described in detail.
[0083] Reference Figure 2 , shows a schematic diagram of a remote diagnosis and debugging process of an MCU in a smart driving domain control system provided by an embodiment of the present application. Figure 2 As shown, the MCU-side remote diagnosis and debugging process may include:
[0084] 1. Output of status information of each module on the MCU side. That is, each functional module on the MCU side sorts out the possible fault information of the module itself and the status information associated with the fault information troubleshooting, and outputs them uniformly to provide a basis for troubleshooting for remote diagnosis.
[0085] 2. The fault diagnosis monitoring module collects the status of each module and performs monitoring and diagnosis processing. That is, the fault diagnosis monitoring module collects the output status information and fault information of each module on the MCU side, and monitors in real time. For the content that the module itself cannot diagnose, the fault diagnosis module monitors and diagnoses through the module status information.
[0086] 3. Inter-chip communication information processing module on the MCU side. The inter-chip communication information processing module on the MCU side forwards the status information and fault diagnosis information of each module to the SOC side through inter-chip communication.
[0087] 4. SOC-side inter-chip communication information processing module. The SOC-side inter-chip communication information processing module receives the status information and fault diagnosis information of each module on the MCU side through inter-chip communication. On the one hand, it uploads it to the visualization tool for visualization processing, and on the other hand, it records the diagnostic log information and archives the historical information.
[0088] 5. Real-time recording of diagnostic log information. SOC stores the received MCU-side diagnostic and status information in real-time logs, saves evidence and clues, and facilitates the location and analysis of complex problems.
[0089] 6. Visual tool diagnostic information display. The SOC uploads the received MCU-side diagnostic and status information to the visualization tool, which can display the MCU-side fault status information in real time, making it easy to quickly locate simple problems.
[0090] 7. Debug information input and output. The SOC inputs corresponding instructions through debug information, such as reading and writing variable information, and transmits the corresponding debug interaction information to the MCU through the inter-chip communication information processing module of the SOC. Among them, debug information debugging is very flexible on the SOC side. You can develop and deploy a script tool with a window, and input the variable address information of the MCU side that needs to be read or written through the window. Debug interaction information refers to the interaction between the MCU and the SOC through inter-chip communication, which can be through the Spi serial port or Ethernet communication. In simple terms, it is the data interaction between the MCU and the SOC side through inter-chip communication. Debug interaction information includes the instruction information related to the variable sent by the SOC to the MCU. For example, when reading the variable value, the debug interaction information refers to: the variable address information and length information sent by the SOC to the MCU, and the variable value information replied by the MCU to the SOC. For example, when writing the variable value, the debug interaction information refers to: the variable address information, length information and variable value information to be written sent by the SOC to the MCU, and the write result replied by the MCU to the SOC.
[0091] 8. Memory processing module: After receiving the debugging interaction information, the MCU-side inter-chip communication information processing module interacts with the memory processing module to read or write the corresponding variable value.
[0092] 9. Trigger Action. When the corresponding variable value on the MCU side is modified, the predefined Action is triggered to perform the corresponding response operation. These predefined Actions can be customized according to needs. After the SOC side sends the debugging interaction information of the inter-chip communication to the MCU, the Action can be, for example, writing the corresponding variable value operation. The MCU side will perform corresponding processing operations according to the changes in the local variable value, such as executing a function, controlling a peripheral register, etc.
[0093] In the current situation of debugging and diagnosis based on the MCU, in order to reduce the dependence of MCU diagnosis and debugging on local and debugging equipment, and to improve the real-time and energy efficiency of fault diagnosis, the embodiments of the present application can only indirectly realize this remote connection mode with the help of the SOC end, realize remote diagnosis and debugging, and improve the efficiency of fault diagnosis and functional debugging on the MCU end. Based on the inter-chip communication between the MCU and the SOC end, the fault diagnosis information on the MCU end is forwarded to the SOC, and through the log storage and visualization interface tools, the real-time online analysis of simple fault problems on the MCU end and the historical log archiving and rapid analysis of complex fault problems are realized, which improves the efficiency of fault analysis.
[0094] The remote diagnosis method of the vehicle MCU state provided in the embodiment of the present application monitors the fault diagnosis information and operating status information of the MCU modules other than the fault diagnosis monitoring module in the MCU by calling the fault diagnosis monitoring module pre-installed in the MCU. The fault diagnosis information and operating status information are sent to the SOC. The SOC is called to generate and store the fault log information of the MCU module according to the fault diagnosis information and operating status information, and the fault diagnosis information and operating status information are displayed in the preset interface. The remote server performs fault diagnosis and debugging on the MCU module according to the fault diagnosis information and operating status information when logging into the SOC remotely. The embodiment of the present application installs the fault diagnosis monitoring module in the MCU to monitor the fault information of other modules in the MCU in real time and perform preliminary diagnosis. At the same time, based on the inter-chip communication between the MCU and the SOC end, the fault diagnosis information on the MCU end is forwarded to the SOC, and the real-time online analysis of simple fault problems on the MCU end and the historical log archiving and rapid analysis of complex fault problems are realized through log storage and visualization interface tools, thereby improving the efficiency of fault analysis. In addition, remote debugging of the MCU end can be realized, reducing the dependence on devices such as debuggers and local scenes, improving the debugging efficiency of the MCU, and saving time and effort.
[0095] Reference Figure 3 , shows a schematic diagram of the structure of a remote diagnosis system for a vehicle MCU status provided by an embodiment of the present application, such as Figure 3 As shown, the remote diagnosis system 300 of the vehicle MCU status may include: MCU310, SOC320 and remote server 330, wherein the MCU310 includes: a fault diagnosis monitoring module,
[0096] The fault diagnosis monitoring module is used to monitor the fault diagnosis information and operation status information of the MCU modules other than the fault diagnosis monitoring module in the MCU;
[0097] The MCU is used to send the fault diagnosis information and the operation status information to the SOC;
[0098] The SOC is used to generate and store the fault log information of the MCU module according to the fault diagnosis information and the operating status information, and display the fault diagnosis information and the operating status information in a preset interface;
[0099] The remote server is used to log in to the SOC and perform fault diagnosis and debugging on the MCU module according to the fault diagnosis information and the operating status information.
[0100] Optionally, the fault diagnosis monitoring module is specifically used to monitor and obtain fault information and operating status information of the MCU module; perform preliminary diagnosis on the fault information, and obtain fault diagnosis information of the MCU module.
[0101] Optionally, the MCU further includes: an inter-chip communication module,
[0102] The inter-chip communication module is used to send the fault diagnosis information and the operation status information to the SOC based on the inter-chip communication protocol.
[0103] Optionally, the SOC is further used to obtain fault debugging information for the MCU module sent by the remote server, and send the fault debugging information to the MCU through the inter-chip communication module;
[0104] The MCU is also used to perform fault debugging on the faulty MCU module according to the fault debugging information.
[0105] Optionally, the MCU further includes: a memory processing module,
[0106] The memory processing module is used to read the debugging variable parameters in the debugging information; write the debugging variable parameters into the corresponding MCU module to perform corresponding debugging operations to complete fault debugging.
[0107] The remote diagnosis system of the vehicle MCU state provided by the embodiment of the present application monitors the fault diagnosis information and operating status information of the MCU modules other than the fault diagnosis monitoring module in the MCU by calling the fault diagnosis monitoring module pre-installed in the MCU. The fault diagnosis information and operating status information are sent to the SOC. The SOC is called to generate and store the fault log information of the MCU module according to the fault diagnosis information and operating status information, and the fault diagnosis information and operating status information are displayed in the preset interface. The remote server performs fault diagnosis and debugging on the MCU module according to the fault diagnosis information and operating status information when remotely logging into the SOC. The embodiment of the present application installs the fault diagnosis monitoring module in the MCU to monitor the fault information of other modules in the MCU in real time and perform preliminary diagnosis. At the same time, based on the inter-chip communication between the MCU and the SOC end, the fault diagnosis information on the MCU end is forwarded to the SOC, and the real-time online analysis of simple fault problems on the MCU end and the historical log archiving and rapid analysis of complex fault problems are realized through log storage and visualization interface tools, thereby improving the efficiency of fault analysis. In addition, remote debugging of the MCU end can be realized, reducing the dependence on devices such as debuggers and local scenes, improving the debugging efficiency of the MCU, and saving time and effort.
[0108] An embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the above-mentioned remote diagnosis method of the vehicle MCU status when executed by the processor.
[0109] Figure 4 FIG. 4 is a schematic diagram showing the structure of an electronic device 400 according to an embodiment of the present invention. Figure 4 As shown, the electronic device 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 402 or computer program instructions loaded from a storage unit 408 into a random access memory (RAM) 403. In RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. CPU 401, ROM 402 and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0110] Multiple components in the electronic device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, a microphone, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0111] The various processes and processing described above may be performed by the processing unit 401. For example, the method of any of the above embodiments may be implemented as a computer software program, which is tangibly contained in a computer-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the CPU 401, one or more actions in the method described above may be performed.
[0112] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned remote diagnosis method embodiment of the vehicle MCU status is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0113] It should be noted that, in this article, the terms "include", "comprises" 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 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 existence of other identical elements in the process, method, article or device including the element.
[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0115] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0116] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0118] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or groups can be combined or integrated into another system, 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.
[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0120] 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.
[0121] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A remote diagnosis method for vehicle MCU status, characterized in that: The method comprises: Calling a fault diagnosis monitoring module pre-installed in the MCU to monitor fault diagnosis information and operation status information of MCU modules other than the fault diagnosis monitoring module in the MCU; Sending the fault diagnosis information and the operating status information to the SOC; The SOC is called to generate and store fault log information of the MCU module according to the fault diagnosis information and the operating status information, and the fault diagnosis information and the operating status information are displayed in a preset interface, so that the remote server can perform fault diagnosis and debugging on the MCU module according to the fault diagnosis information and the operating status information when remotely logging into the SOC.
2. The method according to claim 1, characterized in that The calling of the fault diagnosis monitoring module pre-installed in the MCU to monitor the fault diagnosis information and operation status information of the MCU modules other than the fault diagnosis monitoring module in the MCU includes: Calling the fault diagnosis monitoring module to monitor and obtain the fault information and operation status information of the MCU module; Perform a preliminary diagnosis on the fault information to obtain fault diagnosis information of the MCU module.
3. The method according to claim 1, characterized in that The sending the fault diagnosis information and the operation status information to the SOC includes: The inter-chip communication module in the MCU is called to send the fault diagnosis information and the operation status information to the SOC based on the inter-chip communication protocol.
4. The method according to claim 1, characterized in that: After calling the SOC to generate and store the fault log information of the MCU module according to the fault diagnosis information and the running status information, and displaying the fault diagnosis information and the running status information in a preset interface, the method further includes: Calling the SOC to obtain fault debugging information for the MCU module sent by the remote server; Calling the inter-chip communication module in the SOC to send the fault debugging information to the MCU; The MCU is called to perform fault debugging on the faulty MCU module according to the fault debugging information.
5. The method according to claim 4, characterized in that The calling the MCU to perform fault debugging on the faulty MCU module according to the fault debugging information includes: Calling a memory processing module in the MCU to read debugging variable parameters in the debugging information; The debugging variable parameters are written into the corresponding MCU module to perform corresponding debugging operations to complete fault debugging.
6. A remote diagnosis system for vehicle MCU status, characterized in that: The system includes: MCU, SOC and remote server, and the MCU includes: fault diagnosis and monitoring module, The fault diagnosis monitoring module is used to monitor the fault diagnosis information and operation status information of the MCU modules other than the fault diagnosis monitoring module in the MCU; The MCU is used to send the fault diagnosis information and the operation status information to the SOC; The SOC is used to generate and store the fault log information of the MCU module according to the fault diagnosis information and the operating status information, and display the fault diagnosis information and the operating status information in a preset interface; The remote server is used to log in to the SOC and perform fault diagnosis and debugging on the MCU module according to the fault diagnosis information and the operating status information.
7. The system according to claim 6, characterized in that The fault diagnosis monitoring module is specifically used to monitor and obtain the fault information and operating status information of the MCU module; perform preliminary diagnosis on the fault information to obtain the fault diagnosis information of the MCU module.
8. The system according to claim 6, characterized in that The MCU also includes: an inter-chip communication module, The inter-chip communication module is used to send the fault diagnosis information and the operation status information to the SOC based on the inter-chip communication protocol.
9. The system according to claim 6, characterized in that The SOC is further used to obtain the fault debugging information for the MCU module sent by the remote server, and send the fault debugging information to the MCU through the inter-chip communication module; The MCU is also used to perform fault debugging on the faulty MCU module according to the fault debugging information.
10. The system according to claim 9, characterized in that The MCU also includes: a memory processing module, The memory processing module is used to read the debugging variable parameters in the debugging information; write the debugging variable parameters into the corresponding MCU module to perform corresponding debugging operations to complete fault debugging.
11. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the remote diagnosis method for the vehicle MCU status according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the remote diagnosis method for the vehicle MCU status according to any one of claims 1 to 5.