Diagnostic method, diagnostic system, electronic equipment, vehicle and readable storage medium

By customizing the combination of diagnostic service modules and introducing standard service interfaces, the problems of single functions of diagnostic tool and fixed testing process in the existing technology are solved, and an efficient and flexible combination of diagnostic service modules is realized to meet the diverse diagnostic needs of automotive electronic controllers.

CN120508076APending Publication Date: 2025-08-19BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510052811.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-10
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

In the face of complex automotive electronic controller diagnostic needs, the diagnostic tool has a single function and a fixed test process that leads to flexibility and inefficiency, and cannot quickly adapt to diverse diagnostic scenarios.

Method used

It provides a diagnostic system that generates a combination of target diagnostic service modules through custom input operations, combines international standard protocols, and flexibly combines diagnostic service modules to meet different diagnostic needs, supports multiple diagnostic functions, and introduces standard service interfaces to achieve personalized testing.

Benefits of technology

It realizes an efficient and flexible combination of diagnostic service modules, improves testing efficiency and accuracy, reduces development costs, adapts to complex diagnostic needs, and enhances the applicability and flexibility of the diagnostic system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120508076A_ABST
    Figure CN120508076A_ABST
Patent Text Reader

Abstract

The invention discloses a diagnosis method, a diagnosis system, electronic equipment, a vehicle and a non-volatile computer readable storage medium. The method is applied to a diagnosis system of a vehicle, the diagnosis system is used for controlling a controller of the vehicle to conduct testing, and the method comprises the steps that in response to a user-defined input operation, a target diagnosis service module is generated according to multiple diagnosis service modules, and the user-defined input operation is an operation input when a user defines the needed diagnosis service module in a user-defined mode; different diagnosis service modules correspond to different functions; and generating a diagnostic service module combination based on the target diagnostic service module, so as to diagnose a controller of the vehicle by using the diagnostic service module combination. Thus, the diagnosis service module combination self-defining function is achieved, a user can conveniently generate the diagnosis service module combination according to the current diagnosis requirement, and therefore the diagnosis service module combination self-defining method and device can be suitable for different diagnosis scenes.
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 particularly, to a diagnostic method, a diagnostic system, an electronic device, a vehicle, and a non-volatile computer-readable storage medium. Background Art

[0002] Vehicles are equipped with electronic control units (ECUs) to control various vehicle devices. However, over time, ECUs inevitably malfunction due to various factors. Therefore, ECU fault diagnosis is essential. However, with the rapid advancement of automotive technology, the number and functionality of ECUs are increasing, leading to a corresponding increase in the complexity of diagnostic techniques and the growing complexity of diagnostic requirements. Therefore, how to quickly generate a combination of diagnostic service modules that meet current diagnostic needs has become an urgent issue. Summary of the Invention

[0003] Embodiments of the present application provide a diagnostic method, a diagnostic system, an electronic device, a vehicle, and a non-volatile computer-readable storage medium.

[0004] The diagnostic method of an embodiment of the present application is applied to a vehicle diagnostic system, which is used to control a controller of the vehicle for testing. The method includes: generating a target diagnostic service module based on a plurality of diagnostic service modules in response to a custom input operation, wherein the custom input operation is an operation input by a user when customizing a required diagnostic service module, and different diagnostic service modules correspond to different functions; and generating a diagnostic service module combination based on the target diagnostic service module to diagnose the vehicle controller using the diagnostic service module combination.

[0005] In some embodiments, the method includes determining the customized input operation based on input operations associated with respective diagnostic service module options, wherein one diagnostic service module option corresponds to one diagnostic service module.

[0006] In some embodiments, the custom input operation includes a selection operation and a parameter input operation, the selection operation is an operation input when the user selects the required diagnostic service module, and the parameter input operation is an operation input when the user inputs the parameters of the required diagnostic service module. In response to the custom input operation, a target diagnostic service module is generated based on multiple diagnostic service modules, including: based on the selection operation, determining a selected diagnostic service module among multiple diagnostic service modules; based on the parameter input operation, determining the parameters of the selected diagnostic service module to generate the target diagnostic service module.

[0007] In some embodiments, the custom input operation also includes a sequence determination operation, which is an operation input by a user to determine the order of each required diagnostic service module. The generating of a diagnostic service module combination based on the target diagnostic service module includes: determining the order of multiple target diagnostic service modules based on the sequence determination operation; and generating a diagnostic service module combination based on multiple target diagnostic service modules and the order of multiple target diagnostic service modules.

[0008] In some embodiments, the method further includes: testing a plurality of the diagnostic service modules to obtain test results.

[0009] In certain embodiments, the method further includes: performing a diagnostic flash on the diagnostic system in response to a diagnostic flash input operation, where the diagnostic flash input operation is an operation input by a user when a user needs to flash the diagnostic system.

[0010] In some embodiments, the method further includes: testing the diagnostic flash module to obtain a test result.

[0011] In some embodiments, the method further includes: acquiring message data related to the diagnostic system, and displaying the message data.

[0012] In certain embodiments, the method further includes: acquiring message data of the controller and performing data analysis to determine whether the controller is faulty; and issuing an alarm if it is determined that a faulty working module exists in the controller.

[0013] In some embodiments, the vehicle also includes a data transmission device, which is connected to the diagnostic device and the controller respectively. The diagnostic device includes multiple data transmission device interfaces, and different data transmission device interfaces correspond to different types of data transmission devices. The method includes: based on the type of the data transmission device, determining the target data transmission device interface among multiple data transmission device interfaces; and connecting to the data transmission device according to the target data transmission device interface.

[0014] In some embodiments, the data transmission device interface includes at least a vector tool interface, an InterPace tool interface, and a Zhou Ligong tool interface.

[0015] In some embodiments, the method includes: generating an icon of the diagnostic service module combination based on the diagnostic service module combination and displaying the icon; and diagnosing the controller based on the diagnostic service module combination when the icon of the diagnostic service module combination is clicked.

[0016] The diagnostic system of the embodiment of the present application is used to control the controller of the vehicle for testing. The diagnostic system includes a computer program. When the computer program is executed by a processor, the processor executes the diagnostic method described in any one of the above embodiments.

[0017] The electronic device of an embodiment of the present application includes a processor, a memory and a computer program, wherein the computer program is stored in the memory and executed by the processor, and the computer program includes instructions for executing the diagnostic method described in any one of the above embodiments.

[0018] The vehicle according to the embodiment of the present application includes a controller and the diagnostic system described in any one of the above embodiments, or the electronic device described in any one of the above embodiments, or executes the diagnostic method described in any one of the above embodiments.

[0019] The non-volatile computer-readable storage medium of an embodiment of the present application includes a computer program. When the computer program is executed by a processor, the processor is caused to perform the diagnostic method described in any one of the above embodiments.

[0020] The diagnostic method, diagnostic system, electronic device, vehicle and non-volatile computer-readable storage medium of the embodiments of the present application provide diagnostic service modules corresponding to a variety of diagnostic functions. Users can input custom input operations to the diagnostic system according to their diagnostic needs and the provided diagnostic service modules. After receiving the custom input operation, the present application can generate a target diagnostic service module that can meet the diagnostic needs based on the needs in the custom input operation and multiple diagnostic service modules. Then, based on the target diagnostic service module, a diagnostic service module combination that meets the user's current diagnostic needs is generated. Subsequently, the present application can issue a control instruction to the controller based on the diagnostic service module combination, so that the vehicle's controller performs a diagnosis based on the diagnostic service module combination. In this way, the present application has a diagnostic service module combination customization function, which allows users to easily generate a diagnostic service module combination according to current diagnostic needs, thereby enabling the present application to be applicable to different diagnostic scenarios.

[0021] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0023] Figure 1 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0024] Figure 2 is a schematic diagram of an application scenario of a diagnostic method according to certain embodiments of the present application;

[0025] Figure 3 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0026] Figure 4 is a schematic diagram of modules of a diagnostic system for a diagnostic method according to certain embodiments of the present application;

[0027] Figure 5 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0028] Figure 6 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0029] Figure 7 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0030] Figure 8 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0031] Figure 9 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0032] Figure 10 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0033] Figure 11 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0034] Figure 12 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0035] Figure 13 is a schematic flow chart of a diagnostic method according to certain embodiments of the present application;

[0036] Figure 14 is a schematic diagram of a module of a diagnostic system according to certain embodiments of the present application;

[0037] Figure 15 is a schematic structural diagram of a vehicle according to certain embodiments of the present application;

[0038] Figure 16 is a schematic structural diagram of an electronic device according to some embodiments of the present application;

[0039] Figure 17 It is a schematic diagram of the connection status of a non-volatile computer-readable storage medium and a processor in certain embodiments of the present application. DETAILED DESCRIPTION

[0040] The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and should not be understood as limiting the embodiments of the present application.

[0041] Vehicles are equipped with electronic control units (ECUs), also known as controllers, to control various vehicle devices. However, over time, these ECUs inevitably malfunction due to various factors. Therefore, fault diagnosis is essential. However, with the rapid advancement of automotive technology, the number and functionality of ECUs continues to increase, leading to a corresponding increase in the complexity of diagnostic techniques and the demands placed on them.

[0042] However, the prior art has the following deficiencies:

[0043] 1. Functional Singleness Limitation

[0044] Existing technologies often only focus on a single function of diagnostic flashing or diagnostic testing, which means that in actual applications, users need to use multiple tools to complete different diagnostic tasks.

[0045] 2. Limitations of Fixed Testing Process

[0046] Existing tools often have fixed testing processes built into them. When faced with new testing scenarios or requirements, users often need to redevelop or modify the tools to adapt to the new testing needs. This fixed nature not only increases development costs but also limits the flexibility of the tools.

[0047] To solve the above technical problems, the present application provides a diagnostic method, which will be described in detail below:

[0048] See also Figure 1 The present application provides a diagnostic method for use in a diagnostic system. The diagnostic system is used to control a vehicle controller for testing. The diagnostic system includes a working module, which includes multiple diagnostic service modules. Different diagnostic service modules have different functions. The diagnostic method includes:

[0049] Step 011: generating a target diagnostic service module according to a plurality of diagnostic service modules in response to a custom input operation, wherein the custom input operation is an operation input by a user when customizing a required diagnostic service module;

[0050] Specifically, there are international standard protocols related to universal vehicle diagnostics, such as Unified Diagnostic Services (UDS), a universal automotive diagnostic protocol defined by ISO 15765 and ISO 14229. This protocol provides a unified approach and specifications for vehicle fault diagnosis. These international standard protocols define basic diagnostic functions, such as diagnostic session control, communication control, and clearing diagnostic information.

[0051] A vehicle includes a controller, also known as the vehicle's electronic control unit. The controller itself integrates certain diagnostic functions, such as basic diagnostic functions specified in international standard protocols related to universal vehicle diagnostics. The diagnostic system can send control instructions to the controller to enable it to execute diagnostic functions and determine whether it meets corresponding standards, such as those specified in international standard protocols related to universal vehicle diagnostics.

[0052] The diagnostic system includes multiple working modules, wherein the working modules include at least multiple diagnostic service modules, and each diagnostic service module corresponds to different functions for users to select according to testing requirements. For example, the diagnostic system can also set diagnostic service modules based on the basic diagnostic functions specified in the international standard protocol related to universal vehicle diagnosis. Each diagnostic service module corresponds to a basic diagnostic function. In this way, the basic diagnostic functions included in the controller have corresponding modules in the diagnostic system, thereby ensuring that the diagnostic system can control the controller to implement all basic diagnostic functions included in the controller. At the same time, the diagnostic system sets diagnostic service modules based on the basic diagnostic functions specified in the international standard protocol related to universal vehicle diagnosis, and can also achieve standardization of diagnostic services. In this way, the multiple diagnostic service modules of the diagnostic system can cover the common basic diagnostic functions when testing the controller.

[0053] The diagnostic system can communicate with the user, and the user can perform input operations on the diagnostic system. For example, the diagnostic system can be in the form of software, which can be installed in the user's mobile phone, and the user can perform input operations through the mobile phone. The custom input operation is the operation input when the user customizes the required diagnostic service module. It can be understood that the custom input operation includes the information of the diagnostic service module required by the user. In the case of needing to customize the generation of a diagnostic service module combination, the user can determine the required diagnostic service module according to the current diagnostic needs, and can select the required diagnostic service module in the diagnostic system through the input operation, and can also set the parameters corresponding to the diagnostic service module, so as to generate the user's corresponding custom input operation. Therefore, after obtaining the custom input operation, the diagnostic system can confirm that the user needs a custom module combination at this time, and generate a target diagnostic service module based on the custom input operation and multiple diagnostic service modules. It can be understood that the target diagnostic service module is a diagnostic service module that can meet the user's diagnostic needs.

[0054] Step 012: Generate a diagnostic service module combination based on the target diagnostic service module to diagnose the controller of the vehicle using the diagnostic service module combination.

[0055] Specifically, after obtaining the target diagnostic service module, a diagnostic service module combination can be generated based on the target diagnostic service module. For example, when the user makes an input, the order of each module will also be specified, so the order of each target diagnostic service module can also be determined according to the input operation. At this time, the target diagnostic service modules can be sorted according to the order of the target diagnostic service modules corresponding to the custom input operation, thereby generating a diagnostic service module combination. After generating the diagnostic service module combination, the diagnostic system can package and save the diagnostic service module combination. After the user subsequently determines to use the diagnostic service module combination, the diagnostic system sends a control instruction to the controller based on the diagnostic service module combination, so that the controller can perform a test based on the diagnostic service module combination.

[0056] Therefore, the diagnostic system actually has the function of customizing the combination of diagnostic service modules. Users can flexibly combine diagnostic service modules based on the diagnostic service modules provided by the diagnostic system and their diagnostic needs to build a personalized test plan that meets specific test scenarios, that is, a diagnostic service module combination.

[0057] For example, please combine Figure 2 , Figure 2 The modules in the top box are diagnostic service modules provided by the diagnostic system. Taking the test scenario of "Vehicle Configuration Test" as an example, users can drag and drop multiple diagnostic service modules in sequence, including "10 Diagnostic Session Control", "27 Security Access", "2E Write Data by Identifier", "11 ECU Reset" and "$22 Read Data by Identifier". Figure 2 The box in the middle. After dragging the diagnostic service modules, users also need to fill in the necessary parameters for these services, such as the DID (Data Identifier) information that needs to be written to the vehicle configuration. After completing the service combination and parameter setting, the target diagnostic module can be formed. At the same time, users also need to set the order of these target diagnostic modules to generate a diagnostic module combination. Then, as Figure 2 In the box at the bottom, users can package this customized diagnostic module combination and name it "XX Module Vehicle Configuration Test." Finally, when the "Vehicle Configuration Test" needs to be executed, the user simply clicks "XX Module Vehicle Configuration Test," and the system automatically executes the test according to the user-defined diagnostic module combination. This application not only improves testing efficiency but also standardizes the testing process, making it more efficient and reliable.

[0058] In this way, the present invention achieves highly flexible and personalized customization of diagnostic module combinations, allowing users to quickly build diagnostic module combinations that meet the requirements based on different test scenarios and needs, thereby improving test efficiency and accuracy. When faced with new test scenarios or needs, users can easily generate corresponding diagnostic service module combinations based on the current diagnostic needs, allowing the present application to adapt to increasingly complex diagnostic needs, thereby reducing development costs and ensuring the flexibility of the diagnostic system of the present application.

[0059] At the same time, the diagnostic service module combination of the diagnostic system of the present application can be customized and generated, so that the diagnostic system of the present application has different diagnostic functions, so that users can complete different diagnostic tasks in different scenarios by using only the diagnostic system of the present application, without having to use only a single function like the prior art, which results in the user needing to use multiple tools to complete different diagnostic tasks in actual applications.

[0060] The diagnostic method of the embodiment of the present application provides diagnostic service modules corresponding to a variety of diagnostic functions. Users can input custom input operations to the diagnostic system according to their diagnostic needs and the provided diagnostic service modules. After receiving the custom input operation, the present application can generate a target diagnostic service module that can meet the diagnostic needs based on the needs in the custom input operation and multiple diagnostic service modules. Then, based on the target diagnostic service module, a diagnostic service module combination that meets the user's current diagnostic needs is generated. Subsequently, the present application can issue a control instruction to the controller based on the diagnostic service module combination, so that the vehicle's controller performs a diagnosis based on the diagnostic service module combination. In this way, the present application has a diagnostic service module combination customization function, which allows users to easily generate a diagnostic service module combination according to current diagnostic needs, thereby enabling the present application to be applicable to different diagnostic scenarios.

[0061] See also Figure 3In certain embodiments, the diagnostic method comprises:

[0062] Step 013: Based on the input operations related to each diagnostic service module option, a custom input operation is determined, where one diagnostic service module option corresponds to one diagnostic service module.

[0063] Specifically, please combine Figure 4 , the diagnostic system can set up a custom module separately, which is specifically used to receive input operations when the user needs a custom module combination. The custom module can set up multiple diagnostic service module options, and one diagnostic service module option corresponds to one diagnostic service module, for example Figure 2 , Figure 2 The options in the top box are diagnostic service module options. When input operations related to the diagnostic service module options are received, it can be considered that the user requires a customized diagnostic module combination. In this case, the customized input operation can be determined based on the input operations related to the diagnostic service module options.

[0064] For example Figure 2 and Figure 4 , when the user needs a custom module, the user can trigger the custom module. For example, the diagnostic system sets up an interface including multiple working modules, and the custom module is displayed in the interface. The user can click on the custom module to trigger the custom module. Then, the user can determine the diagnostic function provided by the diagnostic system according to the diagnostic service module option in the custom module, and then select the diagnostic service module based on the current diagnostic needs, and perform corresponding input operations on each diagnostic service module option in the custom module to input the information of the diagnostic service module required to the diagnostic system. For example, click on the diagnostic service module option. When a certain diagnostic service module option is clicked, the diagnostic system can display the parameter input interface of the diagnostic service module option. The user can set the parameters corresponding to the diagnostic service module on this page, thereby completing the input operation of the diagnostic service module option. Therefore, the input operations related to each diagnostic service module option include the operation of clicking the option and the operation of inputting the parameters. Then, a custom input operation can be generated based on the input operations related to each diagnostic service module option, so that the custom input operation includes the information set by the user.

[0065] In this way, the diagnostic system can set diagnostic service module options corresponding to each diagnostic service module. When the user needs a customized module combination, he can trigger and input operations on each diagnostic service module option, thereby ensuring that the diagnostic system can accurately identify the user's need for a customized module combination and generate corresponding customized input operations, thereby facilitating the subsequent generation of a diagnostic service module combination that can meet the user's diagnostic needs based on the customized input operations.

[0066] In certain embodiments, the diagnostic system also provides a standard service interface that allows users, other software, or systems to interact with the software in a unified and unambiguous manner. The design of a standard service interface is intended to ensure the software's ease of use, scalability, and interoperability. For example, the diagnostic system can first set the design interface specifications and select an appropriate communication protocol based on the requirements, such as HTTP, TCP / IP, etc. It then determines the format for data exchange, such as JSON, XML, etc. It also creates a set of clear and consistent interface methods, including method names, parameter lists, parameter types, and return value types. Finally, it writes the interface implementation code based on the design specifications. Ensure that the code follows best practices and is easy to maintain and expand. It also adds exception handling logic to the interface methods to ensure that useful error information is returned when an error occurs, helping the caller diagnose the problem. Detailed documentation is then written for the interface, including method descriptions, parameter lists, return value types, error codes, etc. The diagnostic system sets up a standard service interface to facilitate users to access the diagnostic system and perform corresponding input operations on the diagnostic system, so that the diagnostic system receives the user's input operations through the standard service interface. Therefore, the custom module can receive the user's input operations through the standard service interface to determine the custom input operations, so that users can customize the test scenarios and perform personalized combinations of diagnostic service module combinations to meet the testing needs in different scenarios.

[0067] Thus, this application implements customizable functional scenario testing by introducing a standard diagnostic service interface, allowing users to flexibly customize diagnostic service modules according to their needs, thereby improving the pertinence and effectiveness of testing and enabling users to quickly build diagnostic service modules that meet their requirements based on different testing needs. This allows this application to provide an efficient, flexible, and easy-to-use diagnostic system, providing strong support for users' diagnostic testing work and helping to promote the sustainable development of the automotive industry.

[0068] See also Figure 5 In some embodiments, the custom input operation includes a selection operation and a parameter input operation. The selection operation is an operation input by a user when selecting a desired diagnostic service module, and the parameter input operation is an operation input by a user when inputting parameters of the desired diagnostic service module. Step 011: In response to the custom input operation, generating a target diagnostic service module based on multiple diagnostic service modules includes:

[0069] Step 0111: Based on the selection operation, determine and select a diagnostic service module from multiple diagnostic service modules;

[0070] Step 0112: Based on the parameter input operation, determine the parameters for selecting the diagnostic service module to generate a target diagnostic service module.

[0071] Specifically, custom input operations may include selection operations and parameter input operations. The selection operation is an operation input when the user selects the required diagnostic service module. For example, the custom module of the diagnostic system may provide a selection interface, which displays multiple diagnostic service module options. The user may enter the selection operation by clicking on the diagnostic service module option. The parameter input operation is an operation input when the user enters the parameters of the required diagnostic service module. For example, the diagnostic system may provide a parameter input interface, through which the user may enter the parameters of the diagnostic service module, or the diagnostic system may receive a controller data description (CANdelaStudio Diagnostic Description, CDD) file, and the user may define the parameters of the diagnostic service module by importing the CDD file.

[0072] Therefore, first, based on the selection operation, a selected diagnostic service module can be determined among multiple diagnostic service modules, and the selected diagnostic service module is based on the required diagnostic service module selected by the user. Then, based on the parameter input operation, the parameters corresponding to each selected diagnostic service module input by the user are determined, and then a service list of the selected diagnostic service module can be automatically generated according to the parameters corresponding to each selected diagnostic service module, thereby generating a target diagnostic service module. Among them, the service list represents the test capability of the selected diagnostic service module set by the user to perform diagnostic services on the controller, which can be understood as the specific diagnostic function of the target diagnostic service module. The target diagnostic service module issues a control instruction to the controller based on the service list, so that the controller can perform diagnosis based on the service list. It can be understood that the functions and specific parameters of the target diagnostic service module can meet the needs of the user, that is to say, the testing capability of the target diagnostic service module meets the needs of the user.

[0073] In this way, a target diagnostic service module whose testing capabilities meet user needs can be generated through selection operations and parameter input operations, so that this application can personalize the generation of target diagnostic service modules to ensure that the testing needs in different scenarios can be met.

[0074] See also Figure 6 In some embodiments, the custom input operation further includes a sequence determination operation, which is an operation input by the user when determining the sequence of each required diagnostic service module. Step 012: Generating a diagnostic service module combination based on the target diagnostic service module includes:

[0075] Step 0121: determining the order of multiple target diagnostic service modules based on an order determination operation;

[0076] Step 0122: Generate a diagnostic service module combination based on the multiple target diagnostic service modules and the order of the multiple target diagnostic service modules.

[0077] Specifically, the custom input operation also includes a sequence determination operation, which is input by the user to determine the order of the required diagnostic service modules. Therefore, the order of the target diagnostic service modules can be determined based on the sequence determination operation. Then, based on the multiple target diagnostic service modules and the order of each target diagnostic service module, the target diagnostic service modules can be sorted to generate a diagnostic service module combination.

[0078] In this way, the user can also specify the order of multiple target diagnostic service modules. When generating a diagnostic service module combination, the multiple target diagnostic service modules will be sorted according to the user's order to ensure that the diagnostic process of the diagnostic service module combination meets the user's needs, thereby ensuring that the diagnostic service module combination can meet the user's current diagnostic needs.

[0079] In summary, the diagnostic system can generate a diagnostic service module corresponding to each basic diagnostic function based on the basic diagnostic functions specified in the international standard protocol related to universal vehicle diagnosis. At the same time, the diagnostic system provides a customization function, and the user can select the required diagnostic service module according to the current diagnostic needs, and determine the parameters of each required diagnostic service module, and set the order between each required diagnostic service module, so as to generate a diagnostic service module combination whose diagnostic capabilities and diagnostic processes can meet the current diagnostic needs. In this way, the present application can quickly generate a diagnostic service module combination that can meet different diagnostic needs, so that the present application can be applied to different test scenarios.

[0080] See also Figure 7 In certain embodiments, the diagnostic method further comprises:

[0081] Step 014: Test multiple diagnostic service modules to obtain test results.

[0082] Specifically, different diagnostic service modules need to follow certain execution rules when performing their corresponding diagnostic functions, such as international standard protocols related to vehicle universal diagnosis. Failure to do so may result in the diagnostic service modules being unable to accurately perform diagnostic functions.

[0083] Please combine Figure 4, so it is also necessary to test the diagnostic service module to determine whether the diagnostic service module meets the corresponding rules. At this time, a diagnostic test module can be generated according to the execution rules corresponding to each diagnostic service module. The diagnostic test module can test each diagnostic service module based on the execution rules to obtain test results. For example, multiple diagnostic service modules are generated based on the unified diagnostic service (UDS) to achieve standardization of the diagnostic service module. Based on the standardization of the diagnostic service module, the diagnostic test module can import a set of standardized diagnostic service test plans based on the unified diagnostic service (UDS), such as determining the rules of each diagnostic module service based on the unified diagnostic service (UDS), and setting the test plan based on these rules. Users can use the diagnostic test module to perform a full-function test on the diagnostic service module to obtain test results to determine whether the diagnostic service module meets its corresponding execution rules. At the same time, detailed test reports and test logs can be automatically generated to facilitate subsequent analysis and tracing.

[0084] In this way, each diagnostic service module can be tested to ensure that a diagnostic service module failure can be discovered in a timely manner, thereby facilitating subsequent analysis or maintenance and update of the diagnostic service module.

[0085] See also Figure 8 In certain embodiments, the diagnostic method further comprises:

[0086] Step 015: In response to the diagnostic flash input operation, the diagnostic system is flashed. The diagnostic flash input operation is an operation input by the user when the user needs to flash the diagnostic system.

[0087] Specifically, diagnostic flashing usually refers to the process of updating or reprogramming the software of the vehicle control unit (ECU). Figure 4 , the diagnostic system can also set up a diagnostic flash module specifically for diagnostic flashing. For example, a diagnostic flashing process based on UDS can be defined. For example, the UDS diagnostic flashing process is usually divided into three stages: pre-flashing step, flashing step and post-flashing step. The whole process involves communication with the ECU, diagnostic session control, security access verification, data flashing, and post-flash checksum recovery operations. The code of the diagnostic flashing module can be written according to the UDS diagnostic flashing process, so that the diagnostic refresh module provides a complete and efficient controller flashing solution. It should be noted that the diagnostic flashing module only provides a general basic flashing process. Subsequent users can modify the flashing process of the diagnostic flashing module, that is, users can customize the diagnostic flashing module. It should be noted that the diagnostic service module will not be updated during the diagnostic flashing. The diagnostic flashing updates other software functions of the diagnostic system, such as fixing certain bugs.

[0088] When a user needs to flash the diagnostic system, they can trigger the diagnostic flash module of the diagnostic system, for example by clicking the diagnostic flash module icon on the display interface of the diagnostic system to enter a diagnostic flash input operation. Therefore, the diagnostic flash input operation is the operation entered by the user when they need to flash the diagnostic system. Upon receiving the diagnostic flash input operation, the diagnostic system may determine that a diagnostic refresh of the diagnostic system is required and may then perform a diagnostic flash of the diagnostic system according to the diagnostic flash module.

[0089] Thus, the diagnostic system of the present application also provides a diagnostic flashing function, and the user can use the diagnostic flashing function to implement a flashing operation on the controller.

[0090] See also Figure 9 In certain embodiments, the diagnostic method further comprises:

[0091] Step 016: Test the diagnostic flash module to obtain test results.

[0092] Specifically, please combine Figure 4 The diagnostic system can also include a flash test module, which tests the diagnostic flash module by setting an appropriate flash process. For example, a comprehensive flash test of the diagnostic flash module can be performed, including normal testing, abnormal testing, performance testing, interaction testing, and stress testing. After the test is completed, the flash test module automatically generates a test report (i.e., test results) and saves the test log for user reference.

[0093] The user can trigger the flash test module. For example, the diagnostic system sets up an interface that displays multiple working modules, including the diagnostic refresh module. After the user clicks the diagnostic refresh module in the interface, the diagnostic system can test the diagnostic flash module based on the flash test module. Alternatively, the test time can be set, such as testing the diagnostic flash module at preset intervals, or testing the diagnostic flash module at 10 o'clock every day. The diagnostic system can automatically test the diagnostic flash module based on the flash test module according to the test time.

[0094] In this way, the diagnostic flash module can be tested through the flash test module to promptly detect faults in the diagnostic flash module, thereby facilitating maintenance and updates by users and ensuring the stability of the diagnostic flash.

[0095] See also Figure 10 In certain embodiments, the diagnostic method further comprises:

[0096] Step 017: Obtain message data related to the diagnostic system and display the message data.

[0097] Specifically, during operation, the diagnostic system sends message data to the controller, and the controller also sends message data back to the diagnostic system. These message data can reflect the interaction information between the diagnostic system and the controller, as well as their respective operation information.

[0098] Therefore, please combine Figure 4 The diagnostic system may also include a log window module, which is used to display message data related to the diagnostic system. Users can view the message data related to the diagnostic system based on this module. During the operation of the diagnostic system, message data related to the diagnostic system can be obtained, that is, message data sent from the diagnostic system to the controller, and message data replied by the controller to the diagnostic system. The message data is then displayed in the log window module to provide users with an intuitive data analysis basis, making it easier for users to view message data related to the diagnostic system based on the log window module. At the same time, users can save logs as needed to facilitate further analysis.

[0099] See also Figure 11 In certain embodiments, the method comprises:

[0100] Step 018: Obtain the controller's message data and perform data analysis to determine whether the controller has a fault;

[0101] Step 019: When it is determined that a fault occurs in the controller, an alarm is issued.

[0102] Specifically, during operation, the controller can also perform fault detection on itself or the devices it controls. If it determines that a fault has occurred in itself or a device it controls, the controller will generate and transmit a fault message, for example, to the vehicle's bus. At this point, the controller's message data can be obtained and parsed to determine whether any message contains information indicating a fault, thereby confirming whether the controller has failed. If a message indicates a fault in a particular controller, an alarm can be issued.

[0103] So, please combine Figure 4 In fact, the diagnostic system also has a self-diagnosis service module, which is used to obtain and analyze controller message data. This module monitors each controller's message data in real time and analyzes fault signals. This enables message-based fault self-diagnosis, improving the accuracy and efficiency of fault diagnosis.

[0104] See also Figure 12 In some embodiments, the vehicle further includes a data transmission device, the data transmission device being connected to the diagnostic device and the controller respectively, the diagnostic device including a plurality of data transmission device interfaces, and the method including:

[0105] Step 020: Determine a target data transmission device interface from a plurality of data transmission device interfaces based on the type of the data transmission device;

[0106] Step 021: Connect to the data transmission device according to the target data transmission device interface.

[0107] Specifically, data transmission equipment includes the vehicle bus and corresponding bus tools, which are connected to the vehicle bus. The vehicle bus plays a vital role in facilitating communication between various electronic components within the vehicle, such as electronic control units (ECUs), smart sensors, and actuators. Bus tools play a vital role in the development, testing, simulation, and diagnosis of vehicle bus systems.

[0108] For example, bus tools include Vector, Interpass, and Zhou Ligong. Vector tools generally refer to a series of software tool chains developed by the German company Vector. These tools are widely used in the development, testing, analysis, and fault simulation of automotive electronics and bus systems. The Vector tool chain includes tools such as CANoe, CANalyzer, CANstress, and CANscope, each with unique functions and uses. Interpass tools are also widely used in the automotive bus field. Vehicle Spy, an easy-to-use and cost-effective bus tool from Interpass, includes analysis software and acquisition and debugging hardware. It provides network monitoring, diagnosis, bus analysis, data acquisition, node simulation, and automated testing for various bus data types. Vehicle Spy supports various bus formats, including CAN, CAN FD, LIN, FlexRay, and automotive Ethernet, providing comprehensive support for the development and testing of automotive bus systems. Zhou Ligong tools are also tools designed specifically for automotive bus development. ZCANPRO, for example, is a powerful tool designed specifically for CAN bus development, designed to help engineers and developers easily test, debug, and develop CAN buses. ZCANPRO provides a complete resource file package, including the software installation package, USB-CAN device drivers and detailed tutorials, to ensure that users can quickly get started and use this tool efficiently. With ZCANPRO, users can easily meet various CAN bus development and testing requirements, improve work efficiency and ensure the smooth progress of the project.

[0109] The data transmission device is connected to the diagnostic device and the controller respectively, providing a transmission medium between the diagnostic device and the vehicle controller. Different vehicles may use different bus tools, which means that different vehicles use different data transmission devices.

[0110] The diagnostic device can provide different interfaces for data transmission devices, meaning it can adapt to different data transmission devices. For example, an abstraction layer can be introduced within the diagnostic device to encapsulate interfaces for interacting with different tools. This abstraction layer can define a common API for initialization, configuration, data transmission, and reception. Consider adopting a plug-in mechanism, writing a separate plug-in for each data transmission device. This plug-in implements the API defined by the abstraction layer and handles the interaction details with the specific data transmission device. Next, based on the tool's characteristics and interface specifications, the initialization and configuration logic is implemented, which may include setting communication parameters and opening communication interfaces. Finally, based on the characteristics of each data transmission device, the data transmission and reception logic is implemented. This typically involves converting the data format within the software into a format supported by the tool and sending it through the communication interface. Simultaneously, data received from the tool is converted back to the software's internal data format.

[0111] In actual use, based on the type of the vehicle's data transmission device, a target data transmission device interface of the same type as the vehicle's data transmission device can be identified from among the multiple data transmission device interfaces in the diagnostic system. Then, the target data transmission device interface is connected to the data transmission device, thereby establishing a connection between the diagnostic device and the data transmission device. This ensures that the diagnostic device can subsequently interact with the controller through the data transmission device and perform diagnostics on the controller.

[0112] In certain embodiments, the data transmission device interface includes at least a Vector tool interface, an InterPace tool interface, and a Zhou Ligong tool interface. Vector, InterPace, and Zhou Ligong are the three most commonly used bus tools on the market. The present application is compatible with at least these three bus tools, making the diagnostic device of the present application applicable to most vehicles on the market, thereby improving the applicability of the present application.

[0113] In this way, this application abstracts the differences in the underlying hardware, namely, setting up interfaces corresponding to different data transmission devices. This allows the subsequent diagnostic device to be put into use without having to worry about the specific hardware implementation details. In other words, there is no need to worry about how the data transmission device connects to the diagnostic device. You only need to select the data transmission device interface currently required. Obviously, this design approach not only improves the reusability and maintainability of the code, but also reduces development and maintenance costs, allowing this application to adapt to new hardware platforms and technological developments more quickly.

[0114] See also Figure 13 In certain embodiments, the method comprises:

[0115] Step 022: generating an icon of the diagnostic service module combination based on the diagnostic service module combination, and displaying the icon;

[0116] Step 023: When the icon of the diagnostic service module combination is clicked, diagnose the controller based on the diagnostic service module combination.

[0117] Specifically, after the diagnostic service module combination is generated, an icon for the diagnostic service module combination can be generated based on the diagnostic service module combination, and then the icon can be displayed in the diagnostic system. At the same time, after the diagnostic service module combination is generated, the user can also package and name the diagnostic service module combination to facilitate subsequent identification and management. At this time, an icon for the diagnostic service module combination can also be generated based on the name of the diagnostic service module combination. The naming process helps users quickly identify and manage different test processes.

[0118] When a user clicks the icon for a diagnostic service module combination, it is assumed that the user needs to use the diagnostic service module combination, and the controller can be diagnosed based on the diagnostic service module combination. The diagnostic service module combination is user-defined, so the controller diagnosis process of the diagnostic service module combination can meet the current diagnostic needs.

[0119] In this way, the generated diagnostic service module combination can be enabled by clicking an icon, thereby ensuring that the controller can be selectively diagnosed using a diagnostic service module combination that meets current diagnostic needs.

[0120] In summary, this application achieves comprehensive, efficient, and standardized testing of diagnostic modules by integrating full-scenario diagnostic testing capabilities, including diagnostic services, diagnostic service testing, diagnostic flashing, diagnostic flashing testing, custom diagnostic scenario testing, and self-diagnosis. Users only need to use a single device in this application to complete a comprehensive test of the diagnostic module, without switching between multiple tools or performing tedious operations, thus improving testing efficiency.

[0121] See also Figure 14 and Figure 15 The diagnostic system 100 of the embodiment of the present application is used to control the controller 201 of the vehicle 200 for testing. The diagnostic system includes a computer program 10, which includes instructions for executing the diagnostic method of any of the above embodiments.

[0122] See also Figure 16 The electronic device 300 of an embodiment of the present application includes a processor 301, a memory 302 and a computer program, wherein the computer program is stored in the memory 302 and executed by the processor 301, and the computer program includes instructions for executing the diagnostic method of any of the above embodiments.

[0123] See also Figure 15The vehicle 200 of the embodiment of the present application includes a controller 201, the diagnostic system 100 of any of the above embodiments, or the electronic device 300 of any of the above embodiments, or executes the diagnostic method of any of the above embodiments.

[0124] See also Figure 17 The embodiment of the present application also provides a computer-readable storage medium 400 on which a computer program 410 is stored. When the computer program 410 is executed by the processor 420, the steps of the diagnostic method of any of the above-mentioned embodiments are implemented. For the sake of brevity, they are not repeated here.

[0125] In the description of this specification, the reference terms "certain embodiments", "in an example", "exemplarily", etc. mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are mutually inconsistent.

[0126] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.

[0127] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A diagnostic method, characterized in that A diagnostic system for a vehicle, the diagnostic system being used to control a controller of the vehicle for testing, the method comprising: In response to a custom input operation, generating a target diagnostic service module according to the plurality of diagnostic service modules, wherein the custom input operation is an operation input by a user when customizing a required diagnostic service module, and different diagnostic service modules correspond to different functions; A diagnostic service module combination is generated based on the target diagnostic service module, so as to diagnose the controller of the vehicle by using the diagnostic service module combination.

2. The diagnostic method according to claim 1, wherein The method comprises: The customized input operation is determined based on input operations related to each diagnostic service module option, and one diagnostic service module option corresponds to one diagnostic service module.

3. The diagnostic method according to claim 1 or 2, characterized in that The custom input operation includes a selection operation and a parameter input operation. The selection operation is an operation input by a user when selecting a required diagnostic service module, and the parameter input operation is an operation input by a user when inputting parameters of a required diagnostic service module. In response to the custom input operation, generating a target diagnostic service module based on the plurality of diagnostic service modules includes: Based on the selection operation, determining a selected diagnostic service module among a plurality of diagnostic service modules; Based on the parameter input operation, the parameters of the selected diagnostic service module are determined to generate a target diagnostic service module.

4. The diagnostic method according to claim 3, characterized in that The custom input operation further includes a sequence determination operation, wherein the sequence input operation is an operation input by a user to determine the sequence of each required diagnostic service module. The generating of the diagnostic service module combination based on the target diagnostic service module includes: determining an order of the plurality of target diagnostic service modules based on the order determination operation; A diagnostic service module combination is generated based on the plurality of target diagnostic service modules and the order of the plurality of target diagnostic service modules.

5. The diagnostic method according to claim 1, wherein The method further comprises: The plurality of diagnostic service modules are tested to obtain test results.

6. The diagnostic method according to claim 1, characterized in that The method further comprises: In response to a diagnostic flash input operation, the diagnostic system is flashed. The diagnostic flash input operation is an operation input by a user when the user needs to flash the diagnostic system.

7. The diagnostic method according to claim 6, characterized in that The method further comprises: The diagnostic flashing module is tested to obtain a test result.

8. The diagnostic method according to claim 1, wherein The method further comprises: Acquire message data related to the diagnostic system and display the message data.

9. The diagnostic method according to claim 1, wherein The method further comprises: Obtaining message data from the controller and performing data analysis to determine whether the controller has a fault; In the event that a faulty working module is determined to exist in the controller, an alarm is issued.

10. The diagnostic method according to claim 1, characterized in that The vehicle further includes a data transmission device, the data transmission device being connected to the diagnostic device and the controller respectively, the diagnostic device including a plurality of data transmission device interfaces, different data transmission device interfaces corresponding to different types of data transmission devices, and the method comprising: Determining the target data transmission device interface from a plurality of data transmission device interfaces based on the type of the data transmission device; Connect to the data transmission device according to the target data transmission device interface.

11. The diagnostic method according to claim 10, characterized in that The data transmission device interface includes at least a vector tool interface, an InterPace tool interface and a Zhou Ligong tool interface.

12. The diagnostic method according to claim 1, characterized in that The method comprises: generating an icon of the diagnostic service module combination based on the diagnostic service module combination, and displaying the icon; When the icon of the diagnosis service module combination is clicked, the controller is diagnosed based on the diagnosis service module combination.

13. A diagnostic system, characterized in that: The diagnostic system is used to control a controller of the vehicle to perform a test. The diagnostic system includes a computer program. The computer program includes instructions for executing the diagnostic method according to any one of claims 1 to 12.

14. An electronic device, characterized in that: include: Processor, memory; and A computer program, wherein the computer program is stored in the memory and executed by the processor, the computer program comprising instructions for executing the diagnostic method according to any one of claims 1 to 12.

15. A vehicle, characterized in that: include: Controller; and The diagnostic system of claim 13, or the electronic device of claim 14, or the diagnostic method of any one of claims 1 to 12.

16. A non-volatile computer-readable storage medium containing a computer program, characterized in that When the computer program is executed by a processor, the processor is caused to perform the diagnostic method according to any one of claims 1 to 12.