Vehicle fault diagnosis method and device and vehicle

By determining and accessing vehicle controller spaces using event-based methods and mapping relationships, the method addresses the incompatibility issue of ODX with controller software, enabling effective vehicle fault diagnosis and proactive fault warnings.

CN119131932APending Publication Date: 2024-12-13GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411198888.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

Existing vehicle fault diagnosis methods fail when Open Diagnostic Data Exchange (ODX) is incompatible with controller software, preventing the reading of vehicle data and subsequent fault diagnosis.

Method used

A method and device that determine a target space in the vehicle controller based on detected events, send a request message with a target address link, receive and analyze the data to diagnose vehicle faults, using a mapping relationship to accurately identify and access the relevant data.

Benefits of technology

Enables accurate vehicle fault diagnosis by obtaining and analyzing the necessary data, facilitating quick failure resolution and proactive fault warnings, thereby improving vehicle safety and diagnostic efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119131932A_ABST
    Figure CN119131932A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle fault diagnosis method and device and a vehicle, and the method is applied to the technical field of vehicles, and the method comprises the steps: determining a target space based on a target event under the condition that the target event is detected; wherein the target space is a space, used for storing to-be-diagnosed data, in a controller of the target vehicle; sending a first request message carrying the target address link to the target vehicle; wherein the target address link is an address link corresponding to the target space; the first request message is used for requesting to obtain the to-be-diagnosed data in the target space; receiving the to-be-diagnosed data sent by the target vehicle; wherein the to-be-diagnosed data is obtained by the target vehicle from the target space in real time based on the first request message; and performing diagnosis analysis on the to-be-diagnosed data to obtain a diagnosis result. According to the method, vehicle faults can be diagnosed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and more specifically, to a vehicle fault diagnosis method, device and vehicle in the field of vehicle technology. Background Art

[0002] With the development of vehicle technology, vehicles play an important role in people's work and life. Therefore, in order to ensure vehicle safety, vehicle fault diagnosis is particularly important in vehicle design.

[0003] In the related art, a diagnostic tool is used to diagnose and analyze the vehicle data to be diagnosed based on the Open Diagnostic Data Exchange (ODX) to achieve the diagnosis of vehicle faults. However, when ODX and controller software are incompatible, since the current ODX may not be able to read the data of the controller, the ODX will not be pre-set with the parsed vehicle data to be diagnosed, making it impossible to diagnose the vehicle fault.

[0004] Thus, there is an urgent need to provide a vehicle fault diagnosis method to solve the problem of being unable to diagnose vehicle faults. Summary of the invention

[0005] The present application provides a vehicle fault diagnosis method, device and vehicle, and the method can diagnose vehicle faults.

[0006] In a first aspect, a vehicle fault diagnosis method is provided, which is applied to a target device, and the method includes:

[0007] In the case of detecting a target event, determining a target space based on the target event; wherein the target space is a space in a controller of the target vehicle for storing data to be diagnosed;

[0008] Sending a first request message carrying a target address link to a target vehicle; wherein the target address link is an address link corresponding to the target space; and the first request message is used to request to obtain the data to be diagnosed in the target space;

[0009] Receiving the data to be diagnosed sent by the target vehicle; wherein the data to be diagnosed is acquired by the target vehicle in real time from the target space based on the first request message;

[0010] The diagnostic analysis is performed on the data to be diagnosed to obtain a diagnostic result; wherein the diagnostic result is used to indicate the fault-related information of the target vehicle.

[0011] In an embodiment of the present application, when a target event is detected, a target space is determined based on the target event; a first request message carrying a target address link is sent to a target vehicle; data to be diagnosed sent by the target vehicle is received; data to be diagnosed sent by the target vehicle is received; in the above method, when a target event is detected, a target space storing data to be diagnosed can be determined based on the target event, and since a first request message carrying a target address link corresponding to the target space can be sent to the vehicle, the data to be diagnosed from the target space sent by the vehicle can be received, so that the data to be diagnosed can be diagnosed and analyzed to achieve diagnosis of vehicle faults, thereby solving the problem of being unable to diagnose vehicle faults due to the inability to obtain data to be diagnosed in the related technology.

[0012] In combination with the first aspect, in some possible implementations, the target device stores a first mapping relationship; the first mapping relationship is used to indicate a correspondence between multiple spaces and an address link of each space in a controller of the target vehicle; the multiple spaces include the target space; before sending a first request message carrying a target address link to the target vehicle, the method further includes:

[0013] Based on the first mapping relationship, determine the target address link corresponding to the target space;

[0014] The first request message is obtained based on the target address link, the preset access method and the Internet protocol.

[0015] In an embodiment of the present application, since the target device stores a first mapping relationship, the target address link corresponding to the target space can be accurately found based on the first mapping relationship. Therefore, after obtaining the first request message based on the target address link, the preset access method and the Internet protocol, the data to be diagnosed stored in the target space can be accurately obtained through the first request message, thereby facilitating accurate diagnosis of vehicle faults.

[0016] In combination with the first aspect, in some possible implementations, when a target event is detected, determining a target space based on the target event includes:

[0017] In the case where it is detected that a vehicle fault diagnosis task is triggered, the target space is determined based on the vehicle fault diagnosis task; wherein the vehicle fault diagnosis task is used to perform fault diagnosis on the data in the target space; or,

[0018] When a target fault code sent by the target vehicle is detected, based on the fault type information indicated by the target fault code, a space storing the fault type information is determined as the target space.

[0019] In the embodiments of the present application, regardless of whether the vehicle fault diagnosis task is detected to be triggered or the target fault code is sent by the target vehicle, the target space for storing the data to be diagnosed can be determined. Therefore, on the one hand, the cause of the vehicle failure can be analyzed later, and on the other hand, the vehicle controller can be monitored when the vehicle has not failed to avoid the problem in advance.

[0020] In combination with the first aspect, in some possible implementations, after performing diagnostic analysis on the data to be diagnosed and obtaining a diagnostic result, the method further includes:

[0021] In the case where the diagnosis result indicates the cause of the fault of the target vehicle, outputting first prompt information; wherein the first prompt information is used to indicate the cause of the fault; or,

[0022] When the diagnosis result indicates that the target vehicle is about to fail, a second prompt message is output; wherein the second prompt message is used for failure warning.

[0023] In an embodiment of the present application, on the one hand, when the diagnostic result indicates the cause of the failure of the target vehicle, first output information indicating the cause of the failure can be output, thereby facilitating a quick resolution of the failure based on the cause of the failure; on the other hand, when the diagnostic result indicates that the target vehicle is about to fail, second prompt information for a fault warning can be output, thereby facilitating adjustments based on the second prompt information to avoid the failure, thereby improving the safety of the vehicle.

[0024] In a second aspect, a vehicle fault diagnosis method is provided, which is applied to a vehicle, and the method includes:

[0025] A first request message carrying a target address link is received from a target device; wherein the target address link corresponds to a target space in a controller of the vehicle; and the first request message is used to request to obtain the to-be-diagnosed data stored in the target space;

[0026] Based on the first request message, acquiring the to-be-diagnosed data from the target space corresponding to the target address link;

[0027] The data to be diagnosed is sent to the target device.

[0028] In an embodiment of the present application, when a first request message carrying a target address link is received from a target device, the data to be diagnosed is obtained from a target space corresponding to the target address link based on the first request message; and the data to be diagnosed is sent to a cloud server; in the above method, when a first request message carrying a target address link is received from a target device, since the data to be diagnosed can be obtained from the target space corresponding to the target address link based on the first request message, after sending the data to be diagnosed to the cloud server, the cloud server can perform diagnostic analysis on the data to be diagnosed to realize the diagnosis of the vehicle fault, thereby solving the problem of the inability to diagnose the vehicle fault due to the inability to obtain the data to be diagnosed in the related technology.

[0029] In conjunction with the second aspect, in some possible implementations, before acquiring the to-be-diagnosed data from the target space corresponding to the target address link based on the first request message, the method further includes:

[0030] Based on a preset first mapping relationship, determining a first preset space corresponding to the target address link in the controller of the vehicle; wherein the first mapping relationship is used to indicate a correspondence between a plurality of spaces in the controller of the target vehicle and an address link of each space, the plurality of spaces including the target space;

[0031] The first preset space is determined as the target space.

[0032] In the embodiment of the present application, since the target space can be accurately determined based on the first mapping relationship, it is convenient to subsequently obtain accurate data to be diagnosed from the target space, so that the diagnosis result obtained by analysis based on the data to be diagnosed is more accurate.

[0033] In conjunction with the second aspect, in some possible implementations, the method further includes:

[0034] When the space is updated in the controller of the target vehicle, updating the first mapping relationship;

[0035] The first mapping relationship is used to indicate the relationship between the updated space and the corresponding address link.

[0036] In an embodiment of the present application, since the first mapping relationship is updated when the space is updated in the controller of the target vehicle, it can be ensured that the accurate target space is determined based on the first mapping relationship, and then accurate data to be diagnosed can be obtained from the accurate target space, which helps to improve the accuracy of the diagnosis result.

[0037] In conjunction with the second aspect, in some possible implementations, the method further includes:

[0038] When the controller of the target vehicle updates the application, the first mapping relationship is maintained.

[0039] In an embodiment of the present application, since the first mapping relationship can be maintained when the controller of the target vehicle performs an application update, the first mapping relationship will not be affected when the controller performs an application update, that is, the target space of the data to be diagnosed and the corresponding target address link remain unchanged, thereby ensuring that the target space storing the data to be diagnosed can be accurately determined at any time based on the first mapping relationship, thereby achieving decoupling of the address link, application software and data to be diagnosed, and improving the stability of vehicle fault diagnosis.

[0040] In a third aspect, a vehicle fault diagnosis device is provided, the device comprising:

[0041] A first determination space is used to determine a target space based on the target event when a target event is detected; wherein the target space is a space in a controller of the target vehicle for storing data to be diagnosed;

[0042] A first sending module, used for sending a first request message carrying a target address link to a target vehicle; wherein the target address link is an address link corresponding to the target space; and the first request message is used for requesting to obtain the data to be diagnosed in the target space;

[0043] A first receiving module, configured to receive the data to be diagnosed sent by the target vehicle; wherein the data to be diagnosed is acquired by the target vehicle in real time from the target space based on the first request message;

[0044] The diagnostic analysis module is used to perform diagnostic analysis on the data to be diagnosed to obtain a diagnostic result; wherein the diagnostic result is used to indicate the fault-related information of the target vehicle.

[0045] In a fourth aspect, a vehicle fault diagnosis device is provided, the device comprising:

[0046] A first receiving module, configured to receive a first request message carrying a target address link sent by a target device; wherein the target address link corresponds to a target space in a controller of the vehicle; and the first request message is used to request to obtain the data to be diagnosed stored in the target space;

[0047] A first acquisition module, configured to acquire the to-be-diagnosed data from the target space corresponding to the target address link based on the first request message;

[0048] The first sending module is used to send the data to be diagnosed to the target device.

[0049] In a fifth aspect, a vehicle is provided, comprising: a memory for storing executable program code; and a processor for calling and running the executable program code from the memory, so that the vehicle executes a method in any possible implementation of the first aspect or the second aspect.

[0050] In a sixth aspect, a computer program product is provided, which includes: a computer program code, which, when executed on a computer, enables the computer to execute a method in any possible implementation of the first aspect or the second aspect.

[0051] In the seventh aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes a method in any possible implementation of the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a schematic diagram of a vehicle fault diagnosis system provided by an embodiment of the present application;

[0053] Figure 2 It is a flow chart of a vehicle fault diagnosis method provided by an embodiment of the present application;

[0054] Figure 3 It is a flowchart of another method for vehicle fault diagnosis provided by an embodiment of the present application;

[0055] Figure 4 A schematic diagram of the software design of a controller in a vehicle provided in an embodiment of the present application;

[0056] Figure 5 is an interactive schematic diagram of a vehicle fault diagnosis method provided by an embodiment of the present application;

[0057] Figure 6 It is a structural schematic diagram of a vehicle fault diagnosis device provided in an embodiment of the present application;

[0058] Figure 7 It is a structural schematic diagram of another vehicle fault diagnosis device provided in an embodiment of the present application;

[0059] Figure 8 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0061] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0062] At present, in the related art, the vehicle data to be diagnosed that is parsed based on Open Diagnostic Data Exchange (ODX) is diagnosed and analyzed by a diagnostic tool to achieve vehicle fault diagnosis. However, when ODX and controller software are incompatible, since the current ODX may not be able to read the controller data, the parsed vehicle data to be diagnosed is not preset in ODX, making it impossible to diagnose the vehicle fault.

[0063] Thus, there is an urgent need to provide a vehicle fault diagnosis method to solve the problem of being unable to diagnose vehicle faults.

[0064] In view of this, in an embodiment of the present application, when a target event is detected, a target space can be determined based on the target event; a first request message carrying a target address link is sent to a target vehicle; data to be diagnosed sent by the target vehicle is received; data to be diagnosed sent by the target vehicle is received; in the above method, when a target event is detected, a target space storing data to be diagnosed can be determined based on the target event, and since a first request message carrying a target address link corresponding to the target space can be sent to the vehicle, the data to be diagnosed from the target space sent by the vehicle can be received, so that the data to be diagnosed can be diagnosed and analyzed to achieve diagnosis of vehicle faults, thereby solving the problem of being unable to diagnose vehicle faults due to the inability to obtain data to be diagnosed in the related technology.

[0065] Figure 1 1 is a schematic diagram of a vehicle fault diagnosis system provided by an embodiment of the present application. The system may include a client device 101, a cloud server 102 and a vehicle 103; or, the system only includes the cloud server 102 and the vehicle 103.

[0066] The client device 101 can be used to determine the target space based on the target event when a target event is detected; wherein the target space is the space in the controller of the vehicle 103 for storing the data to be diagnosed; send a first request message carrying a target address link to the vehicle 103 through the cloud server 102; receive the data to be diagnosed sent by the target vehicle; and perform diagnostic analysis on the data to be diagnosed to obtain a diagnostic result.

[0067] Vehicle 103 can be used to obtain the data to be diagnosed from the target space corresponding to the target address link based on the first request message when receiving the first request message carrying the target address link sent by the target device; and send the data to be diagnosed to the cloud server.

[0068] The cloud server 102 can be used to determine the target space based on the target event when a target event is detected; wherein the target space is the space in the controller of the vehicle 103 for storing the data to be diagnosed; send a first request message carrying a target address link to the vehicle 103; receive the data to be diagnosed sent by the target vehicle; and perform diagnostic analysis on the data to be diagnosed to obtain a diagnostic result.

[0069] Above Figure 1 The arrows in the figure indicate that the devices can communicate data with each other.

[0070] Figure 2 It is a flow chart of a vehicle fault diagnosis method provided in an embodiment of the present application.

[0071] Exemplarily, the method may be performed by a target device, which may be a client device or a cloud server. For example, the client device is a laptop computer.

[0072] Illustratively, the above method may include S201 to S204, which are described in detail below.

[0073] S201 : When a target event is detected, determine a target space based on the target event.

[0074] The target space is a space in the controller of the target vehicle for storing data to be diagnosed.

[0075] Optionally, in the embodiment of the present application, it is possible to periodically detect whether a target event occurs in a target device, or, in response to a user's trigger, detect whether a target event occurs in a target device.

[0076] Optionally, the target event may be an event preset by a user.

[0077] Exemplarily, the target event is that a vehicle fault diagnosis task is triggered; or, the target event is that a target fault code sent by a target vehicle is received.

[0078] It should be noted that the controller of the target vehicle may include multiple spaces, including the target space; each space is used to store different to-be-diagnosed data of the controller.

[0079] Optionally, determining the target space based on the target event can be understood as obtaining event-related information of the target event, and determining the target space based on the event-related information.

[0080] Optionally, the above S201, i.e., the step of determining the target space based on the target event when the target event is detected, may specifically include the following steps (a) or (b):

[0081] (a) When it is detected that a vehicle fault diagnosis task is triggered, a target space is determined based on the vehicle fault diagnosis task.

[0082] Among them, the vehicle fault diagnosis task is used to perform fault diagnosis on the data in the target space.

[0083] Exemplarily, take the case where the target event is the triggering of a vehicle fault diagnosis task; when it is detected that the vehicle fault diagnosis task is triggered, the task configuration information of the vehicle fault diagnosis task can be obtained, and the task configuration information is used to configure fault diagnosis of data in the target space; since the task configuration information is associated with the target space, the target space can be determined based on the task configuration information.

[0084] (b) When a target fault code sent by a target vehicle is detected, based on the fault type information indicated by the target fault code, a space storing the fault type information is determined as a target space.

[0085] Exemplarily, taking the target event as receiving a target fault code sent by a target vehicle as an example, the fault type information indicated by the target fault code can be obtained; since the log data space stores the fault type information, the log data space can be determined as the target space.

[0086] In the embodiments of the present application, since it is detected that the vehicle fault diagnosis task is triggered or the target fault code is sent by the target vehicle, the target space for storing the data to be diagnosed can be determined. Therefore, on the one hand, the cause of the vehicle failure can be analyzed later, and on the other hand, the vehicle controller can be monitored when the vehicle has not failed to avoid the problem in advance.

[0087] Optionally, the number of the target spaces may be at least one.

[0088] Optionally, the target vehicle may be any vehicle that establishes a communication connection with the target device.

[0089] Optionally, the data to be diagnosed may include static data and dynamic data of the controller, wherein static data refers to data that does not change frequently over time during the operation of the controller, and dynamic data refers to data that changes continuously during the operation of the controller.

[0090] Exemplarily, the static data may include diagnostic service data, diagnostic communication protocol data, etc. For example, the diagnostic service data is controller software version data, controller hardware version data, and controller vendor data.

[0091] Exemplarily, the dynamic data may include memory working status data of the controller, working log data, processor load data, software network management data, or active service quantity data and other related data.

[0092] The vehicle fault diagnosis method provided in the embodiment of the present application can be applied to the following two scenarios:

[0093] (1) If a vehicle failure has been reported, diagnose the cause of the vehicle failure.

[0094] (2) When the vehicle is not faulty, the vehicle controller is monitored in real time to provide fault warning.

[0095] S202, sending a first request message carrying a target address link to a target vehicle.

[0096] The target address link is an address link corresponding to the target space; and the first request message is used to request to obtain the data to be diagnosed in the target space.

[0097] It should be noted that different spaces correspond to different address links. Since different spaces store different data, different data correspond to different address links. It is understandable that in the embodiment of the present application, the spaces in the controller of the target vehicle are all spaces for storing data to be diagnosed.

[0098] Exemplarily, the first request information may be a GET request message.

[0099] Optionally, the target address link is an address link corresponding to the target space, and it can be understood that the target address link is an address link designated for the target space and used to access the data to be diagnosed stored in the target space.

[0100] Optionally, the target device stores a first mapping relationship; the first mapping relationship is used to indicate a correspondence between multiple spaces and an address link of each space in a controller of the target vehicle; the multiple spaces include the target space; before the above S202, that is, before the step of sending a first request message carrying a target address link to the target vehicle, the vehicle fault diagnosis method provided in the embodiment of the present application may also include:

[0101] Based on the first mapping relationship, determine a target address link corresponding to the target space;

[0102] Based on the target address link, the preset access method and the Internet protocol, a first request message is obtained.

[0103] Optionally, the first mapping relationship may be stored in the target device in a table format, with each space corresponding to a different address link. For example, the first mapping relationship may be represented as a hash table.

[0104] Exemplarily, after the target space is determined based on the target event, the address link corresponding to the target space in the first mapping relationship may be queried, and the address link corresponding to the target space may be determined as the target address link.

[0105] Optionally, the access method refers to a method in which the target device is connected to the target vehicle through a network and accesses the target space in the controller of the target vehicle; the access method is related to the Internet protocol, that is, the access method will be different for different Internet protocols. For example, the access method may be a GET method or a POST method, etc.

[0106] Optionally, the above-mentioned Internet protocol refers to a communication protocol for network communication between the target device and the vehicle.

[0107] Exemplarily, the Internet protocol is Hypertext Transfer Protocol (HTTP).

[0108] Optionally, obtaining the first request message based on the target address link, the preset access method and the Internet protocol can be understood as combining the target address link, the preset access method and the Internet protocol and other related information in a preset manner to obtain the first request message. Among them, other information may include the version of the Internet protocol, the address of the vehicle and other information.

[0109] In one example, the access method is GET, the target address link is System_Name, the Internet protocol is HTTP, and other relevant information includes the version of the Internet protocol, the address of the vehicle and other information; thus, the target address link, the preset access method, the Internet protocol and other relevant information can be combined in a preset manner to obtain the first request message: GET{base_url} / Data_App / System_Name / data / signal HTTP / 1.1; wherein base_url represents the address of the server, data / signal represents the specific link path of the target address link, HTTP / 1.1 indicates that the network communication between the target device and the vehicle follows the HTTP1.1 protocol, and GET indicates that the target device is connected to the target vehicle through the network and requests to obtain the data to be diagnosed in the target space in GET mode.

[0110] In an embodiment of the present application, since the target device stores a first mapping relationship, the target address link corresponding to the target space can be accurately found based on the first mapping relationship. Therefore, after obtaining the first request message based on the target address link, the preset access method and the Internet protocol, the data to be diagnosed stored in the target space can be accurately obtained through the first request message, thereby facilitating accurate diagnosis of vehicle faults.

[0111] S203, receiving the data to be diagnosed sent by the target vehicle.

[0112] The data to be diagnosed is acquired by the target vehicle from the target space in real time based on the first request message.

[0113] Optionally, the target vehicle stores a first mapping relationship, and the first mapping relationship is used to indicate the correspondence between multiple spaces in the controller of the target vehicle and the address link of each space. When the target vehicle receives the first request message carrying the target address link, it can determine the target space based on the target address link and the first mapping relationship; obtain the data to be diagnosed from the target space; and send the data to be diagnosed to the target device.

[0114] S204, performing diagnostic analysis on the data to be diagnosed to obtain a diagnostic result.

[0115] The diagnosis result is used to indicate the fault-related information of the target vehicle.

[0116] Optionally, the target device is equipped with a diagnostic tool, and the diagnostic tool can be used to perform diagnostic analysis on the data to be diagnosed to obtain a diagnostic result.

[0117] Optionally, in one possible situation, the fault-related information may indicate the cause of the fault; in another possible situation, the fault-related information indicates that the target vehicle will fail; in yet another possible situation, the fault-related information indicates that the target vehicle is operating normally and there is no fault abnormality.

[0118] Optionally, after the above S204, that is, after the diagnostic analysis is performed on the data to be diagnosed and the diagnostic result is obtained, the vehicle fault diagnosis method provided in the embodiment of the present application may further include the following step (c) or (d):

[0119] (c) When the diagnosis result indicates the cause of the failure of the target vehicle, outputting first prompt information.

[0120] The first prompt information is used to indicate the cause of the fault.

[0121] In one example, when a target fault code sent by a target vehicle is detected, based on the fault type information indicated by the target fault code, a log data space storing fault type information is determined as a target space; a first request message carrying "PT_Log_Name" is sent to the target vehicle, and PT_Log_Name corresponds to the target space; when the data to be diagnosed obtained from the log data space and sent by the target vehicle is received, the data to be diagnosed is diagnosed and analyzed by diagnostic software to obtain the cause of the fault: sensor data abnormality or control instruction execution failure, so that the first prompt information "sensor data abnormality or control instruction execution failure" can be output.

[0122] (d) When the diagnosis result indicates that the target vehicle is about to fail, output a second prompt message.

[0123] The second prompt information is used for fault warning.

[0124] In one example, when it is detected that a vehicle fault diagnosis task is triggered, the processor data space is determined as the target space based on the task configuration information of the vehicle fault diagnosis task; a first request message carrying "System_Cpu_Name" is sent to the target vehicle, and System_Cpu_Name corresponds to the target space; when the data to be diagnosed obtained from the processor data space and sent by the target vehicle is received, the data to be diagnosed is diagnosed and analyzed by diagnostic software to obtain a diagnostic result, and the diagnostic result is "too much CPU resources are consumed", so that a second prompt information "too much CPU resources are consumed" can be output for fault warning.

[0125] In an embodiment of the present application, on the one hand, when the diagnostic result indicates the cause of the failure of the target vehicle, first output information indicating the cause of the failure can be output, thereby facilitating a quick resolution of the failure based on the cause of the failure; on the other hand, when the diagnostic result indicates that the target vehicle is about to fail, second prompt information for a fault warning can be output, thereby facilitating adjustments based on the second prompt information to avoid the failure, thereby improving the safety of the vehicle.

[0126] In an embodiment of the present application, when a target event is detected, a target space is determined based on the target event; a first request message carrying a target address link is sent to a target vehicle; data to be diagnosed sent by the target vehicle is received; data to be diagnosed sent by the target vehicle is received; in the above method, when a target event is detected, a target space storing data to be diagnosed can be determined based on the target event, and since a first request message carrying a target address link corresponding to the target space can be sent to the vehicle, the data to be diagnosed from the target space sent by the vehicle can be received, so that the data to be diagnosed can be diagnosed and analyzed to achieve diagnosis of vehicle faults, thereby solving the problem of being unable to diagnose vehicle faults due to the inability to obtain data to be diagnosed in the related technology.

[0127] Figure 3 It is a flowchart of another vehicle fault diagnosis method provided in an embodiment of the present application.

[0128] Exemplarily, the method may be executed by a vehicle, or a chip in a vehicle.

[0129] Illustratively, the above method may include S301 to S303, which are described in detail below.

[0130] S301: receiving a first request message carrying a target address link sent by a target device.

[0131] The target address link corresponds to the target space in the controller of the vehicle; and the first request message is used to request to obtain the data to be diagnosed stored in the target space.

[0132] Optionally, in the embodiment of the present application, the target device may be a client device or a cloud server. For example, the client device is a laptop computer.

[0133] Optionally, the target address link is used to identify a target space for storing the data to be diagnosed.

[0134] Optionally, the target space is a space in the controller of the target vehicle for storing the data to be diagnosed. The controller of the target vehicle may include multiple spaces, each space is used to store different data to be diagnosed of the controller; each space corresponds to a different address link.

[0135] Exemplarily, the first request information may be a GET request message.

[0136] Optionally, the data to be diagnosed may include static data and dynamic data of the controller.

[0137] Exemplarily, the static data may include diagnostic service data, diagnostic communication protocol data, etc. For example, the diagnostic service data is controller software version data, controller hardware version data, and controller vendor data.

[0138] Exemplarily, the dynamic data may include memory working status data of the controller, working log data, processor load data, software network management data, or active service quantity data and other related data.

[0139] S302: Based on the first request message, obtain the data to be diagnosed from the target space corresponding to the target address link.

[0140] Since different address links correspond to different spaces, after the target address link is acquired based on the first request message, the data to be diagnosed can be acquired from the target space corresponding to the target address link.

[0141] For example, Figure 4 A schematic diagram of the controller software design in a vehicle provided in an embodiment of the present application. The controller may include an application layer, a system layer, and a bottom layer; the application layer may be provided with application software (e.g., Data_APP), and the system layer of the controller includes the above-mentioned multiple spaces, such as a log data space and a processor data space, etc.; the application software may be used to store multiple address links, each address link corresponding to a different space in the multiple spaces. In this way, the data to be diagnosed may be obtained from the target space corresponding to the target address link through the application software.

[0142] Exemplarily, the above-mentioned multiple address links may be a data structure tree, which respectively correspond to various spaces in the controller for storing data.

[0143] Optionally, before the above S302, that is, before the step of acquiring the data to be diagnosed from the target space corresponding to the target address link based on the first request message, the vehicle fault diagnosis method provided in the embodiment of the present application may further include the following steps:

[0144] Based on a preset first mapping relationship, determining a first space corresponding to the target address link in the controller of the vehicle; wherein the first mapping relationship is used to indicate a correspondence between a plurality of spaces in the controller of the vehicle and an address link of each space, the plurality of spaces including the first space;

[0145] The first space is determined as a target space.

[0146] Optionally, a first mapping relationship may be stored in the vehicle, where the first mapping relationship is used to indicate a correspondence between multiple spaces in the controller of the target vehicle and an address link of each space, where the multiple spaces include the first space.

[0147] Optionally, the first mapping relationship may be stored in the vehicle in a table format, with each space corresponding to a different address link. For example, the first mapping relationship may be represented as a hash table.

[0148] Exemplarily, after the target address link is obtained based on the first request message, the first preset relationship can be queried to obtain the first space corresponding to the target address link, so that the first space can be determined as the target space, that is, the data to be diagnosed can be obtained from the target space.

[0149] In the embodiment of the present application, since the target space can be accurately determined based on the first mapping relationship, it is convenient to subsequently obtain accurate data to be diagnosed from the target space, so that the diagnosis result obtained by analysis based on the data to be diagnosed is more accurate.

[0150] Optionally, the vehicle fault diagnosis method provided in the embodiment of the present application may further include the following steps:

[0151] When the space is updated in the controller of the target vehicle, the first mapping relationship is updated.

[0152] The first mapping relationship is used to indicate the relationship between the updated space and the corresponding address link.

[0153] Exemplarily, updating the space in the controller of the target vehicle may include: the number of spaces of the multiple spaces included in the controller of the target vehicle is increased; and a space among the multiple spaces included in the controller of the target vehicle is deleted.

[0154] In one example, when a space for storing data is added within the controller of the target vehicle, the newly added space and the link address corresponding to the newly added space can be added to the first mapping relationship; when a space for storing data is deleted within the controller of the target vehicle, the deleted space and the link address corresponding to the deleted space can be deleted from the first mapping relationship.

[0155] In an embodiment of the present application, since the first mapping relationship is updated when the space is updated in the controller of the target vehicle, it can be ensured that the accurate target space is determined based on the first mapping relationship, and then accurate data to be diagnosed can be obtained from the accurate target space, which helps to improve the accuracy of the diagnosis result.

[0156] Optionally, the vehicle fault diagnosis method provided in the embodiment of the present application may further include the following steps:

[0157] When the controller of the target vehicle updates the application, the first mapping relationship is maintained.

[0158] It should be noted that when the controller of the target vehicle updates the application, if only the application is updated but there is no need to increase the space in the controller, the first mapping relationship does not need to be updated, and the first mapping relationship can still be used to obtain the data to be diagnosed without being affected by the update of the application.

[0159] In an embodiment of the present application, since the first mapping relationship can be maintained when the controller of the target vehicle performs an application update, the first mapping relationship will not be affected when the controller performs an application update, that is, the target space of the data to be diagnosed and the corresponding target address link remain unchanged, thereby ensuring that the target space storing the data to be diagnosed can be accurately determined at any time based on the first mapping relationship, thereby achieving decoupling of the address link, application software and data to be diagnosed, and improving the stability of vehicle fault diagnosis.

[0160] S303, sending the data to be diagnosed to the target device.

[0161] In one example, a first request message carrying "System_Cpu_Name" is received from a target device, and System_Cpu_Name corresponds to a processor data space (i.e., a target space); based on the first request message, data to be diagnosed can be obtained from the processor data space: processor load data, so that the data to be diagnosed can be sent to a cloud server (i.e., a target device).

[0162] In an embodiment of the present application, when a first request message carrying a target address link is received from a target device, the data to be diagnosed is obtained from a target space corresponding to the target address link based on the first request message; and the data to be diagnosed is sent to a cloud server; in the above method, when a first request message carrying a target address link is received from a target device, since the data to be diagnosed can be obtained from the target space corresponding to the target address link based on the first request message, after sending the data to be diagnosed to the cloud server, the cloud server can perform diagnostic analysis on the data to be diagnosed to realize the diagnosis of the vehicle fault, thereby solving the problem of the inability to diagnose the vehicle fault due to the inability to obtain the data to be diagnosed in the related technology.

[0163] Figure 5 This is an interactive schematic diagram of a vehicle fault diagnosis method provided in an embodiment of the present application. Figure 1 The vehicle fault diagnostic system shown.

[0164] For example, Figure 5 As shown, the method includes the following implementation process:

[0165] S401: When a target event is detected, the target device determines a target space based on the target event.

[0166] S402, the target device sends a first request message carrying a target address link to the vehicle.

[0167] S403: Based on the first request message, the vehicle obtains the data to be diagnosed from the target space corresponding to the target address link.

[0168] S404, the vehicle sends the data to be diagnosed to the target device.

[0169] S405: The target device performs diagnostic analysis on the data to be diagnosed to obtain a diagnostic result.

[0170] S406: The target device outputs corresponding prompt information based on the diagnosis result.

[0171] Optionally, when the diagnosis result indicates the cause of the vehicle failure, the prompt information is used to indicate the cause of the failure; when the diagnosis result indicates that the vehicle is about to fail, the prompt information is used to provide a failure warning.

[0172] Exemplarily, the target device may be a client device or a cloud server. For example, the client device is a laptop computer.

[0173] Optionally, the implementation of the above S401 to S406 may refer to the relevant descriptions of S201 to S204 and S301 to S303 in the above embodiments, and the embodiments of the present application will not be repeated here.

[0174] In an embodiment of the present application, when a target event is detected, a target space storing data to be diagnosed can be determined based on the target event. Since a first request message carrying a target address link corresponding to the target space can be sent to a vehicle, the data to be diagnosed from the target space sent by the vehicle can be received, so that the data to be diagnosed can be diagnosed and analyzed to achieve diagnosis of vehicle faults. Therefore, the problem of being unable to diagnose vehicle faults due to the inability to obtain the data to be diagnosed in the related technology is solved.

[0175] Furthermore, since a corresponding prompt message can be output based on the diagnosis result, the vehicle failure can be solved in time through the prompt message, thereby improving the safety of the vehicle.

[0176] Combination of the above Figures 1 to 4The vehicle fault diagnosis method provided by the embodiment of the present application is described in detail; Figure 5 and Figure 7 The device embodiments of the present application are described in detail. It should be understood that the device in the embodiments of the present application can execute the various methods of the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.

[0177] Figure 6 A schematic diagram of the structure of a vehicle fault diagnosis device provided in an embodiment of the present application. The device may be a functional module on a target device.

[0178] like Figure 6 As shown, the device comprises:

[0179] A first determination module 501 is used to determine a target space based on the target event when a target event is detected; wherein the target space is a space in the controller of the target vehicle for storing data to be diagnosed;

[0180] The first sending module 502 is used to send a first request message carrying a target address link to the target vehicle; wherein the target address link is an address link corresponding to the target space; and the first request message is used to request to obtain the data to be diagnosed in the target space;

[0181] The first receiving module 503 is used to receive the data to be diagnosed sent by the target vehicle; wherein the data to be diagnosed is obtained by the target vehicle in real time from the target space based on the first request message;

[0182] The diagnosis analysis module 504 is used to perform diagnosis analysis on the data to be diagnosed to obtain a diagnosis result; wherein the diagnosis result is used to indicate the fault-related information of the target vehicle.

[0183] In a possible implementation, the target device stores a first mapping relationship; the first mapping relationship is used to indicate a correspondence between a plurality of spaces in a controller of the target vehicle and an address link of each space; the plurality of spaces include the target space; before sending a first request message carrying a target address link to the target vehicle, the apparatus further includes:

[0184] A second determining module, configured to determine the target address link corresponding to the target space based on the first mapping relationship;

[0185] The first acquisition module is used to obtain the first request message based on the target address link, the preset access method and the Internet protocol.

[0186] In one possible implementation, the first determination module 501 is used to determine the target space based on the vehicle fault diagnosis task when it is detected that the vehicle fault diagnosis task is triggered; wherein the vehicle fault diagnosis task is used to perform fault diagnosis on the data in the target space; or, when a target fault code sent by the target vehicle is detected, based on the fault type information indicated by the target fault code, the space storing the fault type information is determined as the target space.

[0187] In a possible implementation, the device further includes:

[0188] A first output module is used to output first prompt information when the diagnosis result indicates the cause of the fault of the target vehicle; wherein the first prompt information is used to indicate the cause of the fault; or

[0189] The second output module is used to output second prompt information when the diagnosis result indicates that the target vehicle is about to fail; wherein the second prompt information is used for failure warning.

[0190] Figure 7 A schematic diagram of the structure of another vehicle fault diagnosis device provided in an embodiment of the present application. The device may be a functional module on a vehicle.

[0191] like Figure 7 As shown, the device comprises:

[0192] The first receiving module 601 is used to receive a first request message carrying a target address link sent by a target device; wherein the target address link corresponds to a target space in the controller of the vehicle; and the first request message is used to request to obtain the data to be diagnosed stored in the target space;

[0193] A first acquisition module 602, configured to acquire the to-be-diagnosed data from the target space corresponding to the target address link based on the first request message;

[0194] The first sending module 603 is used to send the data to be diagnosed to the target device.

[0195] In a possible implementation, the device further includes:

[0196] A first determination module, configured to determine a first preset space corresponding to the target address link in the controller of the vehicle based on a preset first mapping relationship; wherein the first mapping relationship is used to indicate a correspondence between a plurality of spaces in the controller of the target vehicle and an address link of each space, the plurality of spaces including the target space;

[0197] The second determining module is used to determine the first preset space as the target space.

[0198] In a possible implementation, the device further includes:

[0199] An updating module, configured to update the first mapping relationship when the space is updated in the controller of the target vehicle;

[0200] The first mapping relationship is used to indicate the relationship between the updated space and the corresponding address link.

[0201] In a possible implementation, the device further includes:

[0202] A maintaining module is used to maintain the first mapping relationship when the controller of the target vehicle updates the application program.

[0203] Figure 8 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.

[0204] For example, Figure 8 As shown, the vehicle 700 includes: a memory 701 and a processor 702, wherein the memory 701 stores an executable program code 7011, and the processor 702 is used to call and execute the executable program code 7011 to perform a vehicle fault diagnosis method.

[0205] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to execute a vehicle fault diagnosis method provided by an embodiment of the present application.

[0206] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0207] In the case of dividing each functional module according to each function, the device may also include a first determination module, a first sending module, a first receiving module, and a diagnosis and analysis module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0208] It should be understood that the device provided in this embodiment is used to execute the above-mentioned vehicle fault diagnosis method, and thus can achieve the same effect as the above-mentioned implementation method.

[0209] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing related program codes, etc.

[0210] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits shown in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

[0211] In addition, the device provided in the embodiments of the present application may specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a vehicle fault diagnosis method provided in the above embodiment.

[0212] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a vehicle fault diagnosis method provided by the above embodiment.

[0213] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a vehicle fault diagnosis method provided by the above embodiment.

[0214] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0215] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0216] 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 modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0217] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the 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 method for vehicle fault diagnosis, characterized in that: Applied to a target device, the method comprises: In the case of detecting a target event, determining a target space based on the target event; wherein the target space is a space in a controller of the target vehicle for storing data to be diagnosed; Sending a first request message carrying a target address link to a target vehicle; wherein the target address link is an address link corresponding to the target space; and the first request message is used to request to obtain the data to be diagnosed in the target space; Receiving the data to be diagnosed sent by the target vehicle; wherein the data to be diagnosed is acquired by the target vehicle in real time from the target space based on the first request message; The diagnostic analysis is performed on the data to be diagnosed to obtain a diagnostic result; wherein the diagnostic result is used to indicate the fault-related information of the target vehicle.

2. The method according to claim 1, characterized in that: The target device stores a first mapping relationship; the first mapping relationship is used to indicate the correspondence between multiple spaces and the address link of each space in the controller of the target vehicle; The plurality of spaces include the target space; Before sending the first request message carrying the target address link to the target vehicle, the method further includes: Based on the first mapping relationship, determine the target address link corresponding to the target space; The first request message is obtained based on the target address link, the preset access method and the Internet protocol.

3. The method according to claim 1, characterized in that The step of determining a target space based on the target event when a target event is detected includes: In the case where it is detected that a vehicle fault diagnosis task is triggered, the target space is determined based on the vehicle fault diagnosis task; wherein the vehicle fault diagnosis task is used to perform fault diagnosis on the data in the target space; or, When a target fault code sent by the target vehicle is detected, based on the fault type information indicated by the target fault code, a space storing the fault type information is determined as the target space.

4. The method according to claim 1, characterized in that: After performing diagnostic analysis on the data to be diagnosed and obtaining a diagnostic result, the method further includes: In the case where the diagnosis result indicates the cause of the fault of the target vehicle, outputting first prompt information; wherein the first prompt information is used to indicate the cause of the fault; or, When the diagnosis result indicates that the target vehicle is about to fail, a second prompt message is output; wherein the second prompt message is used for failure warning.

5. A method for vehicle fault diagnosis, characterized in that: Applied to a vehicle, the method comprises: A first request message carrying a target address link is received from a target device; wherein the target address link corresponds to a target space in a controller of the vehicle; and the first request message is used to request to obtain the to-be-diagnosed data stored in the target space; Based on the first request message, acquiring the to-be-diagnosed data from the target space corresponding to the target address link; The data to be diagnosed is sent to the target device.

6. The method according to claim 5, characterized in that Before acquiring the to-be-diagnosed data from the target space corresponding to the target address link based on the first request message, the method further includes: Based on a preset first mapping relationship, determining a first space corresponding to the target address link in the controller of the vehicle; wherein the first mapping relationship is used to indicate a correspondence between a plurality of spaces in the controller of the target vehicle and an address link of each space, the plurality of spaces including the first space; The first space is determined as the target space.

7. The method according to claim 6, characterized in that The method further comprises: When the space is updated in the controller of the target vehicle, updating the first mapping relationship; The first mapping relationship is used to indicate the relationship between the updated space and the corresponding address link.

8. The method according to claim 6, characterized in that The method further comprises: When the controller of the target vehicle updates the application, the first mapping relationship is maintained.

9. A vehicle fault diagnosis device, characterized in that: The device comprises: A first determination module is used to determine a target space based on the target event when a target event is detected; wherein the target space is a space in the controller of the target vehicle for storing data to be diagnosed; A first sending module, used for sending a first request message carrying a target address link to a target vehicle; wherein the target address link is an address link corresponding to the target space; and the first request message is used for requesting to obtain the data to be diagnosed in the target space; A first receiving module, configured to receive the data to be diagnosed sent by the target vehicle; wherein the data to be diagnosed is acquired by the target vehicle in real time from the target space based on the first request message; The diagnostic analysis module is used to perform diagnostic analysis on the data to be diagnosed to obtain a diagnostic result; wherein the diagnostic result is used to indicate the fault-related information of the target vehicle.

10. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory so that the vehicle executes the method as claimed in any one of claims 5 to 7.