Vehicle function fault diagnosis method and device, vehicle and storage medium

By generating a function mapping table and performing fault diagnosis, the problem of low efficiency of vehicle function fault diagnosis is solved, a method of quickly locating and solving vehicle faults is realized, and the efficiency of vehicle function fault diagnosis is improved.

CN118655872AActive Publication Date: 2024-09-17CHINA FAW CO LTD

Patent Information

Application Number
CN202410682289.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-17
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

The efficiency of vehicle functional fault diagnosis is low, mainly due to the complexity of vehicle communication links, which makes it difficult to quickly locate and solve faults.

Method used

By correlating the function information table, functional interface information and functional signal information based on vehicle functions, a function mapping table is generated for fault diagnosis, including verification of communication configuration data and protocol stack, and generation of a fault diagnosis report.

Benefits of technology

It improves the efficiency of vehicle functional fault diagnosis, can quickly monitor and analyze fault conditions, accurately identify fault points, reduces diagnosis time, and realizes automated diagnosis of vehicle functional faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655872A
    Figure CN118655872A
Patent Text Reader

Abstract

The embodiment of the invention provides a vehicle function fault diagnosis method and device, a vehicle and a storage medium, and belongs to the technical field of vehicle function fault diagnosis. The method comprises the steps of generating a function information table based on vehicle functions; obtaining function interface information of the vehicle function; obtaining function signal information of a preset function representation signal; wherein the function representation signal is used for representing a signal of a vehicle function, and the function signal information is used for representing an attribute of the function representation signal; associating the function interface information, the function signal information and the function information table based on the vehicle function to obtain a function mapping table; and performing fault diagnosis on the vehicle functions based on the function mapping table to obtain a fault diagnosis report. According to the embodiment of the invention, the vehicle function can be monitored, analyzed and diagnosed, so that the function with the fault condition can be quickly found, and the fault diagnosis efficiency of the vehicle function is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle functional fault diagnosis, and in particular to a vehicle functional fault diagnosis method, device, vehicle and storage medium. Background Art

[0002] At present, the in-vehicle system is mainly developed based on the Service-Oriented Architecture (SOA), using Ethernet as the communication medium and realizing data exchange and interoperability through the SOME / IP protocol stack, which improves the communication flexibility and scalability of the in-vehicle system.

[0003] However, in actual application scenarios, as the degree of electrification of vehicles increases and the number of vehicle functions increases, the vehicle communication link becomes very complex. When a problem occurs in a vehicle function, the complexity of the communication link makes fault diagnosis difficult, and the problem cannot be quickly located and solved, resulting in low fault diagnosis efficiency.

[0004] Therefore, how to improve the efficiency of vehicle functional fault diagnosis has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The main purpose of the embodiments of the present application is to propose a vehicle functional fault diagnosis method, device, vehicle and storage medium, aiming to improve the efficiency of vehicle functional fault diagnosis.

[0006] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides a vehicle function fault diagnosis method, which is applied to an in-vehicle system, wherein the in-vehicle system is provided with a vehicle function, and the method comprises:

[0007] generating a function information table based on the vehicle function;

[0008] Acquire function interface information of the vehicle function;

[0009] Acquire function signal information of a preset function characterization signal; wherein the function characterization signal is a signal used to characterize the vehicle function, and the function signal information is used to represent the attribute of the function characterization signal;

[0010] Associating the function interface information, the function signal information and the function information table based on the vehicle function to obtain a function mapping table;

[0011] Perform fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report.

[0012] In some embodiments, the vehicle system includes communication configuration data, and the communication configuration data is data used to configure the vehicle function; and the performing fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report includes:

[0013] Performing verification processing on the communication configuration data based on the function mapping table to obtain a function configuration verification result;

[0014] The vehicle function is fault diagnosed based on the function configuration verification result to obtain the fault diagnosis report; wherein the fault diagnosis report is used to indicate whether the vehicle function has a fault or is functioning normally.

[0015] In some embodiments, the communication configuration data includes a vehicle communication signal table, the vehicle communication signal table includes a plurality of vehicle function signals, the number of the vehicle functions is at least two, each of the vehicle function signals corresponds to a vehicle function, each of the vehicle functions corresponds to a piece of function signal information, and the function mapping table contains at least two pieces of function signal information; the verification processing of the communication configuration data based on the function mapping table to obtain a function configuration verification result includes:

[0016] For each of the function signal information in the function mapping table, signal matching is performed between the function signal information and a plurality of the vehicle function signals in the vehicle communication signal table to obtain a signal matching result;

[0017] The signal matching result corresponding to each of the functional signal information is counted to generate the functional configuration verification result.

[0018] In some embodiments, the vehicle-mounted system further includes a protocol stack, and the performing fault diagnosis on the vehicle function based on the function configuration verification result to obtain the fault diagnosis report includes:

[0019] If the function configuration verification result indicates that the communication configuration data has passed the verification, performing verification processing on the protocol stack based on the function mapping table to obtain a protocol stack verification result;

[0020] The vehicle function is fault diagnosed based on the function configuration verification result and the protocol stack verification result to obtain the fault diagnosis report.

[0021] In some embodiments, the performing verification processing on the protocol stack based on the function mapping table to obtain a protocol stack verification result includes:

[0022] Acquire stack data of the protocol stack; wherein the stack data includes a plurality of function service signal information;

[0023] For each of the function signal information in the function mapping table, matching the function signal information with a plurality of the function service signal information in the stack data to obtain an information matching result;

[0024] Statistics are collected on the information matching results corresponding to each of the function signal information to obtain the protocol stack verification result.

[0025] In some embodiments, the performing fault diagnosis on the vehicle function based on the function configuration verification result and the protocol stack verification result to obtain the fault diagnosis report includes:

[0026] When the function configuration verification result indicates that the communication configuration data has passed the verification, and the protocol stack verification result indicates that the protocol stack has passed the verification, performing interface information verification on a plurality of preset function interface files based on the function mapping table and the vehicle communication signal table to obtain an interface verification result; wherein the function interface file is configured in the vehicle-mounted system;

[0027] The vehicle function is fault diagnosed based on the function configuration verification result, the protocol stack verification result and the interface verification result to obtain the fault diagnosis report.

[0028] In some embodiments, the vehicle communication signal table further includes function definition information corresponding to a plurality of the vehicle function signals, and the interface information verification is performed on a plurality of preset function interface files based on the function mapping table and the vehicle communication signal table to obtain an interface verification result, including:

[0029] For each of the function interface files, obtaining header file definition information of the function interface file, determining a vehicle function corresponding to the function interface file based on the function mapping table, determining the function definition information from the vehicle communication signal table based on the vehicle function corresponding to the function interface file, matching the header file definition information with the function definition information to obtain interface matching information;

[0030] The interface verification result is generated according to the interface matching information of each of the functional interface files.

[0031] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides a vehicle function fault diagnosis device, the device comprising:

[0032] A function information table generating module, used to generate a function information table based on vehicle functions;

[0033] A function interface information acquisition module, used to acquire the function interface information of the vehicle function;

[0034] A function signal information acquisition module, used to acquire function signal information of a preset function characterization signal; wherein the function characterization signal is a signal used to characterize the vehicle function, and the function signal information is used to represent the attribute of the function characterization signal;

[0035] An information association module, used for associating the function interface information, the function signal information and the function information table based on the vehicle function to obtain a function mapping table;

[0036] A fault diagnosis module is used to perform fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report.

[0037] To achieve the above-mentioned purpose, a third aspect of an embodiment of the present application proposes a vehicle, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the method described in the first aspect when executing the computer program.

[0038] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0039] The vehicle function fault diagnosis method, device, vehicle and storage medium proposed in the present application generate a function information table based on the vehicle function; obtain the function interface information of the vehicle function; obtain the function signal information of the preset function characterization signal; wherein the function characterization signal is a signal used to characterize the vehicle function, and the function signal information is used to represent the attribute of the function characterization signal; associate the function interface information, function signal information and function information table based on the vehicle function to obtain a function mapping table; perform fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report. The vehicle function can be monitored, analyzed and diagnosed to quickly find the function with a fault condition, thereby improving the fault diagnosis efficiency of the vehicle function. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a flow chart of a vehicle function fault diagnosis method provided by an embodiment of the present application;

[0041] Figure 2 yes Figure 1 Flow chart of step S105 in FIG.

[0042] Figure 3 yes Figure 2 Flow chart of step S201 in FIG.

[0043] Figure 4 yes Figure 2 Flow chart of step S202 in FIG.

[0044] Figure 5 yes Figure 4 Flow chart of step S401 in FIG.

[0045] Figure 6 yes Figure 4 Flow chart of step S402 in FIG.

[0046] Figure 7 yes Figure 6 Flow chart of step S601 in FIG.

[0047] Figure 8 is a schematic diagram of the structure of a vehicle function fault diagnosis device provided in an embodiment of the present application;

[0048] Fig. 9 It is a schematic diagram of the hardware structure of the vehicle provided in the embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0052] First, some nouns involved in this application are analyzed:

[0053] In-vehicle system refers to a series of electronic systems and devices installed inside the car. They provide drivers and passengers with a convenient, safe and comfortable driving experience by integrating advanced information technology, communication technology, control technology, etc. In-vehicle systems have multiple functions, such as navigation, communication, entertainment, information services, vehicle control and safety, etc., aiming to improve the intelligence and automation level of the car and meet the needs of modern people for high-quality travel.

[0054] Service-Oriented Architecture (SOA) is a software design pattern that allows loosely coupled application groups to be deployed, combined, and used over a distributed network based on service requests. These services can be divided into different layers according to their functions, so that each service can run independently without affecting each other. These services communicate over the network and can be shared and reused between different applications. SOA aims to decouple the architecture and business processes of complex systems, thereby improving the flexibility, scalability, and reusability of the system.

[0055] SOME / IP, SOME / IP (Scalable service-oriented MiddlewarE over IP) is an automotive / embedded communication protocol for implementing scalable service-oriented middleware. This protocol is particularly suitable for automotive middleware solutions, supporting remote procedure calls, event notifications, and underlying serialization / wire formats. The SOME / P protocol is designed to adapt to different operating systems, such as AUTOSAR, GENIVI, and OSEK, and can even be implemented on embedded devices without an operating system.

[0056] Signal deployment: A signal is a data unit in communication. Depending on different communication protocols and requirements, signals can be deployed to different levels of the protocol stack. Signal deployment on vehicles specifically refers to the process of managing and configuring various types of signals in the vehicle system. There are a variety of signals in the vehicle system, which may come from various components and sensors of the vehicle and are used to monitor and control the operating status of the vehicle. Signal deployment on the vehicle ensures that these signals can be correctly identified, processed and applied to achieve safe operation, performance optimization and intelligent functions of the vehicle.

[0057] Host System Base: This is a critical hardware or software component responsible for integrating the signals defined in the different protocol stacks for integration and processing in the host system.

[0058] TCP transport layer: The TCP transport layer is responsible for processing the transport layer protocol, which is used to establish a reliable communication connection between different devices. TCP is responsible for data segmentation, retransmission, flow control, etc., to ensure the reliable transmission of data in the network. In the vehicle system, this level may involve the communication between different control units in the vehicle, as well as the connection between the vehicle and external systems.

[0059] Protocol stack: The protocol stack is located above the TCP transport layer and is responsible for handling higher-level protocols, such as application layer protocols (such as HTTP, MQTT, custom protocols, etc.). The protocol stack separates the underlying transmission details from the upper-layer application logic, allowing the application layer to focus on business functions. The protocol stack usually includes operations such as protocol parsing, encapsulation, and data format conversion.

[0060] API layer: The API layer provides a set of interfaces for interaction between upper-layer applications and the protocol stack. The API layer defines functions, methods, and data structures that can be called by upper-layer applications, allowing developers to implement the required functions without having to understand the underlying details. The API layer can hide the complexity of the underlying layer and provide a higher level of abstraction.

[0061] Upper-layer application: This is the highest layer of the vehicle system, including the actual application functions of the vehicle, such as instrument display, vehicle control, data collection, etc. At this level, developers can implement the required business logic by calling the interface provided by the API layer. The upper-layer application can be a single functional module or a combination of multiple modules.

[0062] With the development of automobile architecture, at present, the in-vehicle system is mainly developed based on the service-oriented architecture (SOA), using Ethernet as the communication medium and realizing data exchange and interoperability through the SOME / IP protocol stack, which improves the communication flexibility and scalability of the in-vehicle system.

[0063] The functional service generates a service information table, which contains a detailed definition of the functional service. A protocol stack can be generated based on the information in the service information table. The generated protocol stack will be integrated into the vehicle's host system base, and communication between various application layers can be achieved by subscribing to the service signal of the functional service.

[0064] However, in actual application scenarios, as the degree of electrification of vehicles increases and the number of vehicle functions increases, the vehicle communication link becomes very complex. When a problem occurs in a vehicle function, the complexity of the communication link makes fault diagnosis difficult, and the problem cannot be quickly located and solved, resulting in low fault diagnosis efficiency.

[0065] Based on this, the embodiments of the present application provide a vehicle functional fault diagnosis method, device, vehicle and storage medium, aiming to improve the efficiency of vehicle functional fault diagnosis.

[0066] The vehicle functional fault diagnosis method, device, vehicle and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the vehicle functional fault diagnosis method in the embodiments of the present application is described.

[0067] The vehicle function fault diagnosis method provided in the embodiment of the present application is applied to a vehicle-mounted system, and the vehicle-mounted system is provided with a vehicle function.

[0068] In some embodiments, the vehicle-mounted system is an electronic system on the vehicle, including but not limited to a central control system, a vehicle-mounted navigation system, an instrument display system, a square control system, a safety control system, etc., but not limited thereto.

[0069] Among them, the vehicle system is provided with vehicle functions for realizing various functions on the vehicle, including, for example, multimedia control, navigation control, vehicle safety control (ABS, TCS), tire pressure monitoring and other functions, but not limited thereto.

[0070] Specifically, the number of vehicle functions needs to be set according to the actual application scenario.

[0071] In actual application scenarios, a vehicle is usually provided with multiple vehicle functions, and the following embodiments are implemented in the case where the number of vehicle functions is multiple.

[0072] Of course, the number of vehicle functions can also be one. If the number of vehicle functions is one, the specific implementation methods of the steps provided in the following embodiments are the same, except that the quantity limitations, such as "each", "all", "multiple", etc., need to be converted into a quantity for execution.

[0073] Figure 1 is an optional flowchart of the vehicle function fault diagnosis method provided in the embodiment of the present application, Figure 1 The method may include but is not limited to steps S101 to S105.

[0074] Step S101, generating a function information table based on vehicle functions;

[0075] Step S102, obtaining function interface information of vehicle functions;

[0076] Step S103, obtaining function signal information of a preset function characterization signal; wherein the function characterization signal is a signal used to characterize a vehicle function, and the function signal information is used to indicate an attribute of the function characterization signal;

[0077] Step S104, associating the function interface information, the function signal information and the function information table based on the vehicle function to obtain a function mapping table;

[0078] Step S105 , performing fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report.

[0079] Steps S101 to S105 shown in the embodiment of the present application generate a function information table based on vehicle functions; obtain function interface information of vehicle functions; obtain function signal information of preset function characterization signals; wherein the function characterization signal is a signal used to characterize vehicle functions, and the function signal information is used to represent the attributes of the function characterization signal; associate the function interface information, function signal information and function information table based on vehicle functions to obtain a function mapping table; perform fault diagnosis on vehicle functions based on the function mapping table to obtain a fault diagnosis report. The vehicle functions can be monitored, analyzed and diagnosed to quickly find the functions with fault conditions, thereby improving the fault diagnosis efficiency of vehicle functions.

[0080] In some embodiments, step S101 may include but is not limited to the following steps:

[0081] Obtaining function definition information of vehicle functions;

[0082] A function information table is generated based on the function definition information.

[0083] It should be noted that the function definition information includes the function name, function description and input and output parameters of the vehicle function;

[0084] The function information table is used to represent all vehicle functions required by a vehicle and provide clear definition information for each vehicle function.

[0085] In some embodiments, if there are multiple vehicle functions, step S101 may also include but is not limited to the following steps:

[0086] Obtaining function definition information for each vehicle function;

[0087] A function information table is generated based on the function definition information.

[0088] It should be noted that the functional interface information proposed in the above step S102 is an API interface file pre-developed by technicians for each vehicle function, which is deployed at the API layer to achieve decoupling between functions and components, improve the flexibility of the vehicle system and improve the reusability of the code.

[0089] In some embodiments, the functional interface information may be the file name of an API interface file.

[0090] It should be noted that each vehicle function has a function characterization signal, namely, a SOA signal, in the vehicle system, and the function signal information is the attribute of the SOA signal.

[0091] In some embodiments, the function signal information may be the name of the SOA signal, that is, the name of the SOA signal in the vehicle system. Specifically, the function signal information may be a code variable name or the encoding of the S0A signal, but is not limited thereto.

[0092] In some embodiments, for each vehicle function, the function information table, function interface information, and function signal information corresponding to the vehicle function are associated to obtain function mapping information of the vehicle function;

[0093] The function mapping information of all vehicle functions is combined into a table to obtain a function mapping table.

[0094] In some embodiments, the function definition information, function interface information, and function signal information of each vehicle function may be directly merged to obtain a function mapping table.

[0095] In some embodiments, the in-vehicle system includes communication configuration data, which is data used to configure vehicle functions.

[0096] Specifically, the communication configuration data is a file that is pre-configured based on the function information table during the development process of the vehicle. The configuration process is the basic communication configuration, and the communication configuration data is an ARXML file of the basic communication configuration engineering model.

[0097] It should be noted that the ARXML file is an XML format file used in the AUTOSAR (Automotive Open System Architecture) standard to describe the communication configuration and software components in the automotive electronic system. It contains the ECU (Electronic Control Unit) parameter settings, communication interface definitions, signal routing, and other information related to communication and configuration. The role of the ARXML file is to establish a unified standard for communication between automotive electronic control units and to help achieve modular and reusable software design. Through the ARXML file, software and hardware from different manufacturers can work together better, thereby improving the integration performance and development efficiency of automotive electronic systems.

[0098] See also Figure 2 In some embodiments, step S105 may include but is not limited to steps S201 to S202:

[0099] Step S201, verifying the communication configuration data based on the function mapping table to obtain a function configuration verification result;

[0100] Step S202, based on the function configuration verification result, a fault diagnosis is performed on the vehicle function to obtain a fault diagnosis report; wherein the fault diagnosis report is used to indicate whether the vehicle function has a fault or is functioning normally.

[0101] In steps S201 to S202 shown in the embodiment of the present application, the communication configuration data is verified based on the function mapping table to obtain the function configuration verification result, thereby realizing the verification of the ARXML file of the basic communication configuration engineering model, and then judging whether the vehicle function has a fault based on the verification result, thereby improving the fault diagnosis efficiency of the vehicle function.

[0102] In some embodiments, the communication configuration data includes a vehicle communication signal table, the vehicle communication signal table includes multiple vehicle function signals, the number of vehicle functions is at least two, each vehicle function signal corresponds to a vehicle function, each vehicle function corresponds to a function signal information, and the function mapping table contains at least two function signal information.

[0103] It is understandable that the vehicle functions recorded in the function mapping table can be understood as planned vehicle functions, and the vehicle functions recorded in the communication configuration data correspond to specific functions in the actual application scenarios of the vehicle. Only when the vehicle functions recorded in the communication configuration data and the vehicle functions recorded in the function mapping table are the same in terms of the name, definition, input and output parameters and other attributes of the SOA signal, can the vehicle functions be called and used normally during the actual use of the vehicle.

[0104] In the stage of "verifying the communication configuration data" recorded in the above step S201, the main thing is to verify whether the name of the SOA signal matches, and the rest, such as definition and input and output parameters, will be verified in subsequent embodiments.

[0105] See also Figure 3 In some embodiments, step S201 may include but is not limited to steps S301 to S302:

[0106] Step S301, for each function signal information in the function mapping table, signal matching is performed between the function signal information and a plurality of vehicle function signals in the vehicle communication signal table to obtain a signal matching result;

[0107] Step S302: collect statistics on the signal matching results corresponding to each functional signal information to generate a functional configuration verification result.

[0108] In steps S301 to S302 shown in the embodiment of the present application, signal matching results are obtained by matching each function signal information in the function mapping table with multiple vehicle function signals in the vehicle communication signal table; the signal matching results corresponding to each function signal information are counted to generate function configuration verification results, thereby completing the inspection of the vehicle function signal in the communication configuration data, being able to quickly find the signals in the communication configuration data that do not match the function mapping table, thereby improving the efficiency of vehicle function fault diagnosis.

[0109] It can be understood that the signal in the communication configuration data that does not match the function mapping table is specifically: for a certain vehicle function, the function signal information recorded in the function mapping table is A, that is, the name of the SOA signal is A, and the communication configuration data corresponds to the vehicle system. It can be understood that in the actual application scenario, due to version updates or other reasons, the name of the vehicle function is named A.1 in the communication configuration data, where ".1" may be a version number or other meaning. In the actual use of the vehicle, since the name "A.1" cannot correspond to "A", the vehicle function cannot be used normally, resulting in a vehicle function failure.

[0110] In step S301 of some embodiments, the signal matching result includes two cases, one is that the signal matches, and the other is that the signal does not match;

[0111] Among them, the signal matching representation is: for a certain vehicle function, the vehicle function signal (SOA signal) recorded in the communication configuration data and the function signal information (SOA signal) recorded in the function mapping table are the same in name and have the basis for calling the function.

[0112] Signal mismatch manifestation: For a certain vehicle function, the vehicle function signal (SOA signal) recorded in the communication configuration data is different from the function signal information (SOA signal) recorded in the function mapping table, and there is no basis for calling the function.

[0113] In step S302 of some embodiments, the signal matching results corresponding to each functional signal information are counted to find out how many functional signal information matches the vehicle functional signal and how many functional signal information does not match the vehicle functional signal. At the same time, the unmatched vehicle functions are recorded to facilitate technical personnel to investigate and improve the efficiency of vehicle function fault diagnosis.

[0114] In some embodiments, the functional configuration verification result includes two cases, one is that the communication configuration data passes the verification, and the other is that the communication configuration data fails the verification;

[0115] Specifically, if there is a mismatch in the signal matching result, the functional configuration verification result indicates that the communication configuration data has not passed the verification; if there is no mismatch in the signal matching result, the functional configuration verification result indicates that the communication configuration data has passed the verification.

[0116] In some implementations, when the functional configuration verification result indicates that the communication configuration data has failed verification, a fault diagnosis report is output, wherein the fault diagnosis report indicates that there is a fault in the vehicle function and the fault point is found in the communication configuration data verification link.

[0117] Specifically, the fault diagnosis report will indicate which vehicle functions have failed so that technicians can conduct troubleshooting, saving diagnosis time and improving the efficiency of vehicle function fault diagnosis.

[0118] It should be noted that only when the functional configuration verification result indicates that the communication configuration data has passed the verification will the subsequent verification processing be performed. Because if the communication configuration data is already wrong, the subsequent verification processing will also be wrong. The most efficient approach is to stop fault diagnosis and troubleshoot and repair the fault based on the functional configuration verification result, which can improve the efficiency of vehicle functional fault diagnosis.

[0119] In some embodiments, the in-vehicle system also includes a protocol stack.

[0120] See also Figure 4 In some embodiments, step S202 may include but is not limited to steps S401 to S402:

[0121] Step S401, when the function configuration verification result indicates that the communication configuration data has passed the verification, the protocol stack is verified based on the function mapping table to obtain a protocol stack verification result;

[0122] Step S402: Perform fault diagnosis on the vehicle function based on the function configuration verification result and the protocol stack verification result to obtain a fault diagnosis report.

[0123] In steps S401 to S402 shown in the embodiment of the present application, when the function configuration verification result indicates that the communication configuration data has passed the verification, the protocol stack is verified based on the function mapping table to obtain the protocol stack verification result; based on the function configuration verification result and the protocol stack verification result, the vehicle function is diagnosed for faults. By step-by-step troubleshooting, the fault point can be accurately found without repeated inspection, thereby improving the efficiency of diagnosing vehicle function faults.

[0124] See also Figure 5 In some embodiments, step S401 may also include but is not limited to steps S501 to S503:

[0125] Step S501, obtaining stack data of a protocol stack; wherein the stack data includes information of a plurality of functional service signals;

[0126] Step S502, for each function signal information in the function mapping table, matching the function signal information with multiple function service signal information in the stack data to obtain an information matching result;

[0127] Step S503: statistics are collected on the information matching results corresponding to each functional signal information to obtain a protocol stack verification result.

[0128] Steps S501 to S503 shown in the embodiment of the present application match multiple function service signals contained in the stack data of the protocol stack with each function signal information in the function mapping table to ensure that each vehicle function can find the corresponding function service signal information in the protocol stack, thereby ensuring the consistency of the function mapping.

[0129] At the same time, when a vehicle function fails, by troubleshooting the protocol stack, it is possible to more effectively locate and resolve the mismatch in functional service signal information in the protocol stack, providing convenience for troubleshooting.

[0130] It is understandable that the functional service signal contained in the stack data of the protocol stack is implemented based on a publish / subscribe model or other communication mechanisms, and communication and data interaction can be achieved by subscribing to the functional service signal.

[0131] It should be noted that a certain functional service signal contained in the stack data of the protocol stack corresponds to a vehicle functional signal and also corresponds to functional signal information, and the relationship is: vehicle function A-functional signal information A-vehicle function signal A-functional service signal A.

[0132] In addition, the number of functional service signals included in the stack data of the protocol stack is greater than the number of vehicle functions set in the vehicle system, and the functional service signals can fully cover the vehicle functions set in the vehicle system.

[0133] For example, if the number of vehicle functions is 100, then the number of function service signals included in the stack data is at least 100, and may be 200.

[0134] In step S502 of some embodiments, the information matching result includes two cases, one is information matching, and the other is information mismatching;

[0135] Among them, the information matching representation is: for a certain vehicle function, the function service signal (SOA signal) recorded in the stack data of the protocol stack and the function signal information (SOA signal) recorded in the function mapping table are the same in name, and have the basis for data communication and interaction.

[0136] Information mismatch manifestation: For a certain vehicle function, the function service signal (SOA signal) recorded in the stack data of the protocol stack is different from the function signal information (SOA signal) recorded in the function mapping table, and there is no basis for data communication and interaction.

[0137] In step S503 of some embodiments, statistics are taken for the information matching results corresponding to each function signal information to find out how many function signal information matches the function service signal and how many function signal information does not match the function service signal. At the same time, the unmatched vehicle functions are recorded, which saves diagnosis time and improves the fault diagnosis efficiency of the vehicle functions.

[0138] In some embodiments, the protocol stack verification result includes two cases, one is that the protocol stack passes the verification, and the other is that the protocol stack fails the verification;

[0139] Specifically, if there is a mismatch in the information matching result, the protocol stack verification result indicates that the protocol stack has failed the verification; if there is no mismatch in the information matching result, the protocol stack verification result indicates that the protocol stack has passed the verification.

[0140] In some implementations, when the protocol stack verification result indicates that the protocol stack has failed verification, a fault diagnosis report is output, wherein the fault diagnosis report indicates that there is a fault in the vehicle function and the fault point is found in the protocol stack verification link.

[0141] Specifically, the fault diagnosis report will indicate which vehicle functions have failed so that technicians can conduct troubleshooting, saving diagnosis time and improving the efficiency of vehicle function fault diagnosis.

[0142] It should be noted that only when the functional configuration verification result indicates that the communication configuration data has passed the verification, and the protocol stack verification result indicates that the protocol stack has passed the verification, will the subsequent verification processing be performed. Because if the communication configuration data has passed the verification, but the protocol stack has not passed the verification, the subsequent verification processing will also be wrong. It is the most efficient approach to stop fault diagnosis and troubleshoot and repair the fault based on the protocol stack verification result, which can improve the efficiency of vehicle functional fault diagnosis.

[0143] See also Figure 6 In some embodiments, step S402 includes but is not limited to steps S601 to S602:

[0144] Step S601, when the function configuration verification result indicates that the communication configuration data has passed the verification, and the protocol stack verification result indicates that the protocol stack has passed the verification, interface information verification is performed on a plurality of preset function interface files based on the function mapping table and the vehicle communication signal table to obtain an interface verification result; wherein the function interface file is configured in the vehicle-mounted system;

[0145] Step S602, based on the function configuration verification result, the protocol stack verification result and the interface verification result, the vehicle function fault diagnosis is performed to obtain a fault diagnosis report.

[0146] In the steps S601 to S602 shown in the embodiment of the present application, when the function configuration verification result indicates that the communication configuration data has passed the verification, and the protocol stack verification result indicates that the protocol stack has passed the verification, the interface information of multiple preset function interface files is verified based on the function mapping table and the vehicle communication signal table to obtain the interface verification result; wherein the function interface file is configured in the vehicle system; based on the function configuration verification result, the protocol stack verification result and the interface verification result, the vehicle function is diagnosed to obtain a fault diagnosis report. By step-by-step troubleshooting, the fault point can be accurately found without repeated inspection, thereby improving the diagnostic efficiency of vehicle function faults.

[0147] In some embodiments, the vehicle communication signal table also includes function definition information corresponding to multiple vehicle function signals.

[0148] It should be noted that the function definition information includes but is not limited to parameter type, value range, input and output parameters, etc.;

[0149] See also Figure 7 In some embodiments, step S601 may include but is not limited to steps S701 to S702:

[0150] Step S701, for each function interface file, obtaining header file definition information of the function interface file, determining the vehicle function corresponding to the function interface file based on the function mapping table, determining function definition information from the vehicle communication signal table based on the vehicle function corresponding to the function interface file, matching the header file definition information with the function definition information, and obtaining interface matching information;

[0151] Step S702: Generate an interface verification result according to the interface matching information of each functional interface file.

[0152] Steps S701 to S702 shown in the embodiment of the present application obtain interface matching information by matching the header file definition information of the function interface file with the function definition information in the vehicle communication signal table, thereby avoiding problems caused by inconsistent definition information, such as communication errors, function failures, etc., and helping to quickly discover and resolve differences or errors between function definition information, thereby improving the efficiency of vehicle function fault diagnosis.

[0153] It should be noted that there is a one-to-one correspondence between the function interface file, ie, the API interface file, and the vehicle function, that is, one vehicle function corresponds to one function interface file.

[0154] Furthermore, the function interface file is configured based on the communication configuration data and recorded in the vehicle system, that is, the corresponding vehicle function can be realized by calling the function interface file.

[0155] It is understandable that the function interface file (API interface file) defines the attributes of relevant parameters in the header file, including parameter type, value range, input and output parameters, etc., which constitute the header file definition information. During the API interface file development phase, the configuration is based on the function definition information recorded in the vehicle communication signal table in the communication configuration data. There is a possibility of configuration errors, so this potential problem needs to be checked.

[0156] Therefore, the vehicle function corresponding to the function interface file can be determined through the function mapping table, and then the corresponding function definition information can be found from the vehicle communication signal table based on the vehicle function.

[0157] In step S701 of some embodiments, the interface matching information includes two situations, one is that the interface information matches, and the other is that the interface information does not match;

[0158] Among them, interface information matching represents: for a certain vehicle function, the header file definition information recorded in the function interface file corresponding to the vehicle function is the same as the function definition information recorded in the communication configuration data of the vehicle function, which means that the function interface file configuration is accurate, thereby ensuring the accuracy and consistency of the system.

[0159] Interface information mismatch manifestation: For a certain vehicle function, the header file definition information recorded in the function interface file corresponding to the vehicle function is different from the function definition information recorded in the communication configuration data of the vehicle function, which means that there is an error in the function interface file configuration, which will affect the accuracy and consistency of the system.

[0160] In step S702 of some embodiments, statistics are collected on the interface matching information of each functional interface file to obtain an interface verification result.

[0161] Specifically, statistics are performed on the interface matching information of each functional interface file to find out how many header file definition information recorded in the functional interface file matches the function definition information recorded in the communication configuration data, and how many header file definition information recorded in the functional interface file does not match the function definition information recorded in the communication configuration data. The unmatched functional interface files are recorded, which saves diagnostic time and improves the fault diagnosis efficiency of vehicle functions.

[0162] In some embodiments, the interface verification result includes two situations, one is that all functional interface files pass the verification, and the other is that there are functional interface files that fail the verification;

[0163] Specifically, if there is a mismatch in the interface matching information, the interface verification result indicates that a functional interface file has failed the verification; if there is no mismatch in the interface matching information, the interface verification result indicates that all functional interface files have passed the verification.

[0164] In some embodiments, when the interface verification result indicates that a functional interface file has failed verification, a fault diagnosis report is output, wherein the fault diagnosis report indicates that a vehicle function has a fault and the fault point is found in the functional interface file verification link.

[0165] In some other embodiments, when the interface verification result indicates that all functional interface files have passed the verification, a fault diagnosis report is output, wherein the fault diagnosis report indicates that the vehicle function is normal and no fault points were found in the communication configuration data verification link, the protocol stack verification link and the functional interface file verification link.

[0166] It should be noted that if the interface verification results indicate that all functional interface files have passed the verification, but some vehicle functions still fail, technicians will be required to troubleshoot from aspects other than communication configuration data, protocol stack, and functional interface files. Since the technicians' operations cannot be automatically executed by the system, they are not within the scope of consideration of the embodiments of this application.

[0167] It can be understood that in the embodiment of the present application, the communication configuration data relative to the vehicle-mounted system is verified. When the communication configuration data passes the verification, the protocol stack of the vehicle-mounted system is verified. When the protocol stack passes the verification, the functional interface file is verified. A step-by-step troubleshooting method is adopted to conduct a comprehensive and complete troubleshooting of the communication link of the vehicle-mounted system, which can accurately identify the fault point without repeated inspections, and ultimately realize the automation of vehicle fault diagnosis, thereby improving the efficiency of diagnosing vehicle functional faults.

[0168] In a specific embodiment, the above-mentioned vehicle function fault diagnosis method is used to realize automatic diagnosis of vehicle faults, so as to conduct a comprehensive and complete investigation of the communication link of the vehicle system. Specifically, the vehicle function fault diagnosis method is applied to a vehicle system, the vehicle system is provided with multiple vehicle functions, the vehicle system includes communication configuration data, the communication configuration data is data used to configure the vehicle function, the communication configuration data includes a vehicle communication signal table, the vehicle communication signal table includes multiple vehicle function signals, and the vehicle system also includes a protocol stack;

[0169] The specific vehicle function fault diagnosis process is as follows:

[0170] Step 1,

[0171] Acquire function definition information of each vehicle function, and generate a function information table based on the function definition information;

[0172] Get the functional interface information of vehicle functions;

[0173] Acquire function signal information of a preset function characterization signal; wherein the function characterization signal is a signal used to characterize a vehicle function, and the function signal information is used to represent an attribute of the function characterization signal;

[0174] Associating the function interface information, the function signal information and the function information table based on the vehicle function to obtain a function mapping table;

[0175] Go to step 2.

[0176] Step 2: Verify the communication configuration data as follows:

[0177] For each function signal information in the function mapping table, signal matching is performed between the function signal information and a plurality of vehicle function signals in the vehicle communication signal table to obtain a signal matching result;

[0178] The signal matching results corresponding to each functional signal information are counted to generate the functional configuration verification results;

[0179] Perform fault diagnosis on vehicle functions based on the function configuration verification results.

[0180] When the function configuration verification result indicates that the communication configuration data has not passed the verification, a fault diagnosis report is output, wherein the fault diagnosis report indicates that there is a fault in the vehicle function, and the function fault diagnosis process is exited;

[0181] If the functional configuration verification result indicates that the communication configuration data has passed the verification, execute step 3.

[0182] Step 3: Verify the protocol stack, as follows:

[0183] Acquire stack data of the protocol stack; wherein the stack data includes function definition information corresponding to multiple function service signal information and vehicle function signals;

[0184] For each function signal information in the function mapping table, information matching is performed between the function signal information and multiple function service signal information in the stack data to obtain an information matching result;

[0185] The information matching results corresponding to each functional signal information are counted to obtain the protocol stack verification result;

[0186] Perform fault diagnosis on vehicle functions based on function configuration verification results and protocol stack verification results.

[0187] When the protocol stack verification result indicates that the protocol stack has failed the verification, a fault diagnosis report is output, wherein the fault diagnosis report indicates that a vehicle function has a fault, and the function fault diagnosis process is exited;

[0188] When the function configuration verification result indicates that the communication configuration data has passed the verification, and the protocol stack verification result indicates that the protocol stack has passed the verification, step 4 is performed.

[0189] Step 4: Verify the function interface file, as follows:

[0190] For each function interface file, obtaining header file definition information of the function interface file, determining a vehicle function corresponding to the function interface file based on a function mapping table, determining function definition information from a vehicle communication signal table based on the vehicle function corresponding to the function interface file, matching the header file definition information with the function definition information, and obtaining interface matching information;

[0191] Generate an interface verification result according to the interface matching information of each functional interface file;

[0192] Carry out fault diagnosis on vehicle functions based on function configuration verification results, protocol stack verification results and interface verification results.

[0193] When the interface verification result indicates that a function interface file fails to pass the verification, a fault diagnosis report is output, wherein the fault diagnosis report indicates that a vehicle function has a fault, and the function fault diagnosis process is exited;

[0194] When the interface verification result indicates that all functional interface files have passed the verification, a fault diagnosis report is output, wherein the fault diagnosis report indicates that the vehicle function is functioning normally, and the functional fault diagnosis process is exited.

[0195] In the embodiment of the present application, the communication configuration data of the vehicle-mounted system is verified. When the communication configuration data passes the verification, the protocol stack of the vehicle-mounted system is verified. When the protocol stack passes the verification, the functional interface file is verified. A step-by-step troubleshooting method is adopted to conduct a comprehensive and complete troubleshooting of the communication link of the vehicle-mounted system, so that the fault point can be accurately found without repeated inspections, and ultimately the automation of vehicle fault diagnosis is realized, thereby improving the efficiency of diagnosing vehicle functional faults.

[0196] See also Figure 8 The embodiment of the present application also provides a vehicle function fault diagnosis device, which can implement the above-mentioned vehicle function fault diagnosis method, and the device includes:

[0197] A function information table generating module 801 is used to generate a function information table based on vehicle functions;

[0198] Function interface information acquisition module 802, used to acquire function interface information of vehicle functions;

[0199] The function signal information acquisition module 803 is used to acquire the function signal information of a preset function characterization signal; wherein the function characterization signal is a signal used to characterize the function of the vehicle, and the function signal information is used to indicate the attribute of the function characterization signal;

[0200] An information association module 804 is used to associate the function interface information, the function signal information and the function information table based on the vehicle function to obtain a function mapping table;

[0201] The fault diagnosis module 805 is used to perform fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report.

[0202] The specific implementation of the vehicle function fault diagnosis device is basically the same as the specific implementation of the above-mentioned vehicle function fault diagnosis method, and will not be repeated here.

[0203] The embodiment of the present application also provides a vehicle, the vehicle includes a memory and a processor, the memory stores a computer program, and the processor implements the above vehicle function fault diagnosis method when executing the computer program. The vehicle can be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.

[0204] See also Fig. 9 , Fig. 9 The hardware structure of a vehicle of another embodiment is illustrated, and the vehicle includes:

[0205] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0206] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the vehicle function fault diagnosis method of the embodiment of this application;

[0207] Input / output interface 903, used to implement information input and output;

[0208] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0209] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0210] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0211] In some embodiments, the vehicle can be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it can be a hybrid vehicle or a pure electric vehicle.

[0212] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned vehicle functional fault diagnosis method is implemented.

[0213] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0214] The vehicle function fault diagnosis method, device, vehicle and storage medium provided in the embodiments of the present application generate a function information table based on the vehicle function; obtain the function interface information of the vehicle function; obtain the function signal information of the preset function characterization signal; wherein the function characterization signal is a signal used to characterize the vehicle function, and the function signal information is used to represent the attribute of the function characterization signal; associate the function interface information, function signal information and function information table based on the vehicle function to obtain a function mapping table; perform fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report. The embodiments of the present application can monitor, analyze and diagnose the vehicle function to quickly find the function with a fault condition, thereby improving the fault diagnosis efficiency of the vehicle function.

[0215] In addition, by verifying the communication configuration data relative to the on-board system, if the communication configuration data passes the verification, the protocol stack of the on-board system is verified, and if the protocol stack passes the verification, the functional interface file is verified. A step-by-step troubleshooting method is used to conduct a comprehensive and complete troubleshooting of the communication link of the on-board system, which can accurately identify the fault point without repeated inspections, ultimately realizing the automation of vehicle fault diagnosis and improving the efficiency of diagnosing vehicle functional faults.

[0216] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0217] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0218] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0219] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0220] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0221] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0222] In the several 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 above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another 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.

[0223] The units described above 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.

[0224] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0225] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a 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 all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0226] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A vehicle function fault diagnosis method, It is characterized in that Applied to a vehicle-mounted system, the vehicle-mounted system is provided with a vehicle function, and the method comprises: generating a function information table based on the vehicle function; Acquire function interface information of the vehicle function; Acquire function signal information of a preset function characterization signal; wherein the function characterization signal is a signal used to characterize the vehicle function, and the function signal information is used to represent the attribute of the function characterization signal; Associating the function interface information, the function signal information and the function information table based on the vehicle function to obtain a function mapping table; Perform fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report.

2. The method according to claim 1, It is characterized in that The vehicle-mounted system includes communication configuration data, which is data used to configure the vehicle function; the fault diagnosis of the vehicle function based on the function mapping table to obtain a fault diagnosis report includes: Performing verification processing on the communication configuration data based on the function mapping table to obtain a function configuration verification result; The vehicle function is fault diagnosed based on the function configuration verification result to obtain the fault diagnosis report; wherein the fault diagnosis report is used to indicate whether the vehicle function has a fault or is functioning normally.

3. The method according to claim 2, It is characterized in that The communication configuration data includes a vehicle communication signal table, the vehicle communication signal table includes a plurality of vehicle function signals, the number of the vehicle functions is at least two, each of the vehicle function signals corresponds to a vehicle function, each of the vehicle functions corresponds to a piece of function signal information, and the function mapping table includes at least two pieces of function signal information; the verification processing of the communication configuration data based on the function mapping table to obtain a function configuration verification result includes: For each of the function signal information in the function mapping table, signal matching is performed between the function signal information and a plurality of the vehicle function signals in the vehicle communication signal table to obtain a signal matching result; The signal matching result corresponding to each of the functional signal information is counted to generate the functional configuration verification result.

4. The method according to claim 3, It is characterized in that The vehicle-mounted system further includes a protocol stack, and the performing fault diagnosis on the vehicle function based on the function configuration verification result to obtain the fault diagnosis report includes: If the function configuration verification result indicates that the communication configuration data has passed the verification, performing verification processing on the protocol stack based on the function mapping table to obtain a protocol stack verification result; The vehicle function is fault diagnosed based on the function configuration verification result and the protocol stack verification result to obtain the fault diagnosis report.

5. The method according to claim 4, It is characterized in that The verifying the protocol stack based on the function mapping table to obtain a protocol stack verification result includes: Acquire stack data of the protocol stack; wherein the stack data includes a plurality of function service signal information; For each of the function signal information in the function mapping table, matching the function signal information with a plurality of the function service signal information in the stack data to obtain an information matching result; Statistics are collected on the information matching results corresponding to each of the function signal information to obtain the protocol stack verification result.

6. The method according to claim 4, It is characterized in that The performing fault diagnosis on the vehicle function based on the function configuration verification result and the protocol stack verification result to obtain the fault diagnosis report includes: When the function configuration verification result indicates that the communication configuration data has passed the verification, and the protocol stack verification result indicates that the protocol stack has passed the verification, performing interface information verification on a plurality of preset function interface files based on the function mapping table and the vehicle communication signal table to obtain an interface verification result; wherein the function interface file is configured in the vehicle-mounted system; The vehicle function is fault diagnosed based on the function configuration verification result, the protocol stack verification result and the interface verification result to obtain the fault diagnosis report.

7. The method according to claim 5, It is characterized in that The vehicle communication signal table also includes function definition information corresponding to a plurality of the vehicle function signals. The interface information verification is performed on a plurality of preset function interface files based on the function mapping table and the vehicle communication signal table to obtain an interface verification result, including: For each of the function interface files, obtaining header file definition information of the function interface file, determining a vehicle function corresponding to the function interface file based on the function mapping table, determining the function definition information from the vehicle communication signal table based on the vehicle function corresponding to the function interface file, matching the header file definition information with the function definition information to obtain interface matching information; The interface verification result is generated according to the interface matching information of each of the functional interface files.

8. A vehicle function fault diagnosis device, It is characterized in that The device comprises: A function information table generating module, used to generate a function information table based on vehicle functions; A function interface information acquisition module, used to acquire the function interface information of the vehicle function; A function signal information acquisition module, used to acquire function signal information of a preset function characterization signal; wherein the function characterization signal is a signal used to characterize the vehicle function, and the function signal information is used to represent the attribute of the function characterization signal; An information association module, used for associating the function interface information, the function signal information and the function information table based on the vehicle function to obtain a function mapping table; A fault diagnosis module is used to perform fault diagnosis on the vehicle function based on the function mapping table to obtain a fault diagnosis report.

9. A vehicle, It is characterized in that The vehicle comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

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

Citation Information

Patent Citations

  • Ethernet communication protocol stack system and implementation method

    CN111726361A

  • Vehicle fault processing method and device and vehicle diagnosis equipment

    CN113504772A

  • SOA-based application service diagnosis architecture and method

    CN114265386A

  • End-to-end fault diagnosis method and device

    CN114545888A

  • Fault diagnosis method, system, equipment and medium

    CN115113611A

Cited By

  • Inhibition method, device and system for automobile functions

    CN119705478A