A diagnostic function display method, device, equipment and storage medium

By acquiring supplier information and ECU tags through diagnostic software, and determining the diagnostic function number using mapping sets and configuration files, the problems of cumbersome menus and high costs in the development of multi-track ECU diagnostic functions are solved, achieving accurate display and efficient development.

CN119847123BActive Publication Date: 2026-01-06LAUNCH TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510081674.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2026-01-06
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

In the development of multi-track ECU diagnostic functions, existing technologies suffer from problems such as cumbersome menu items leading to user selection errors, increased costs associated with server-side searches, and inability to display queries in areas with poor network connectivity.

Method used

When the diagnostic software detects an abnormality in the target vehicle, it sends a supplier information read command to obtain the supplier information, uses the supplier mapping set and preset configuration file to determine the diagnostic function number in the target ECU tag, and displays the function menu and function interface based on the preset display interface.

Benefits of technology

It enables precise querying of ECU-supported diagnostic functions based on supplier number, reducing cumbersome menu items and diagnostic software maintenance costs, and improving development efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847123B_ABST
    Figure CN119847123B_ABST
Patent Text Reader

Abstract

The application discloses a diagnostic function display method and device, equipment and a storage medium, and relates to the technical field of vehicle diagnosis. When it is detected by diagnostic software that a target vehicle has an abnormality, a supplier information reading command is sent to a target ECU of the target vehicle by the diagnostic software to obtain supplier information. The target ECU is an ECU supplied by different suppliers. A supplier number is found from a supplier mapping set by using the supplier information, and a target ECU tag is determined from a plurality of ECU tags of a preset configuration file by using the supplier number. The diagnostic function number in the target ECU tag determined by using the supplier field value in the target ECU tag and the supplier number is used to determine the diagnostic function name in each diagnostic function tag and the function interface function. The function menu composed of the diagnostic function name and the function interface corresponding to the function interface function are displayed. The supplier information of the ECU can be inquired in real time.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicle diagnosis, in particular to a diagnosis function display method, device, equipment and storage medium. BACKGROUND

[0002] With the continuous development of automobile electronics, there are more and more automobile parts manufacturers. Due to the factors of R&D cycle, information security and production cost, an automobile factory generally adopts multiple suppliers to supply the same ECU (Electronic Control Unit), that is, a multi-track ECU. The ECUs of different suppliers formulate diagnosis protocols and processes according to the needs of the automobile factory, most of which are the same, and some of which may be different due to different suppliers. This leads to the need to know which supplier the ECU of this vehicle is mounted on before diagnosing the differences.

[0003] Currently, there are two methods for developing diagnosis functions of a multi-track ECU: (1) all diagnosis functions are displayed, that is, after all diagnosis functions of the ECU are developed, all functions of the ECU are displayed in the diagnosis menu. For the same function with differences, the supplier name is added at the end of the function name, and the user selects the correct function for diagnosis when using it; (2) the VIN (Vehicle Identification Number) and the ECU list are mapped on the server. Each VIN has a corresponding ECU list, and each ECU has clear supplier information. When diagnosing a vehicle, the user uploads the vehicle VIN code to the server to obtain the information of each ECU, and displays the diagnosis function of the corresponding supplier ECU according to the obtained supplier information when executing the specific ECU function. However, both methods have disadvantages. The first method displays all functions of the ECU, which will lead to complicated menu items, and the unskilled user is easy to select and execute errors, which may seriously damage the ECU. The second method accurately finds through the server, which not only increases the R&D and maintenance cost of the automobile factory, but also may not be able to query and display in places with poor network.

[0004] As can be seen from the above, how to avoid complicated menu items to enable the diagnosis software to obtain and display the diagnosis function corresponding to the supplier of the ECU is a problem to be solved at present. SUMMARY

[0005] Therefore, the purpose of the present application is to provide a diagnosis function display method, device, equipment and storage medium, which can avoid complicated menu items to enable the diagnosis software to obtain and display the diagnosis function corresponding to the supplier of the ECU. The specific scheme is as follows:

[0006] In a first aspect, the present application provides a diagnostic function display method, comprising:

[0007] When an abnormality of a target vehicle is detected by a diagnostic software, a supplier information reading command is sent to a target ECU of the target vehicle by the diagnostic software to obtain supplier information; the target ECU is an ECU that can be supplied by different suppliers;

[0008] A corresponding supplier number is found from a supplier mapping set by using the supplier information, and a target ECU tag is determined from a plurality of ECU tags of a preset configuration file by using the supplier number;

[0009] Based on a supplier field value in the target ECU tag and the supplier number, a diagnostic function number in a diagnostic function tag in the target ECU tag is determined;

[0010] Each diagnostic function name in each diagnostic function tag and a corresponding function interface function are determined by using the diagnostic function number, so that a function menu composed of each diagnostic function name and a function interface corresponding to the function interface function are displayed based on a preset display interface of the diagnostic software.

[0011] Optionally, the finding of the corresponding supplier number from the supplier mapping set by using the supplier information comprises:

[0012] A supplier mapping set is constructed by using a mapping relationship between a supplier name in the supplier information and a corresponding supplier number, so that the corresponding supplier number is found from the supplier mapping set by using the supplier name in the supplier information.

[0013] Optionally, the determination of the diagnostic function number in the diagnostic function tag in the target ECU tag based on the supplier field value in the target ECU tag and the supplier number comprises:

[0014] The supplier field value in the target ECU tag and the supplier number are subjected to an AND operation to obtain a corresponding AND operation result;

[0015] If the AND operation result is consistent with the supplier number, the diagnostic function number in the diagnostic function tag in the target ECU tag is obtained.

[0016] Optionally, before the determination of each diagnostic function name in each diagnostic function tag and the corresponding function interface function by using the diagnostic function number, the method further comprises:

[0017] The function interface function corresponding to each diagnostic function name is constructed based on the ECU name, the diagnostic function name and the supplier name corresponding to the target ECU according to a preset combination rule, and the function interface function is saved to a dynamic library file.

[0018] Optionally, the determining of each diagnostic function name and the corresponding function interface function in each diagnostic function tag according to the diagnostic function number comprises:

[0019] The diagnostic function tag corresponding to the diagnostic function number is determined to be whether to exist a sub-function tag according to the diagnostic function number.

[0020] If the diagnostic function tag corresponding to the diagnostic function number exists a sub-function tag, the function name tag and the interface function tag in the diagnostic function tag and the sub-function tag are parsed respectively, and each diagnostic function name and the corresponding function interface function in the diagnostic function tag and the sub-function tag are obtained based on the parsing result.

[0021] Optionally, the determining of the diagnostic function tag corresponding to the diagnostic function number to be whether to exist a sub-function tag according to the diagnostic function number comprises:

[0022] If the diagnostic function number is a first preset value, it is represented that the diagnostic function tag corresponding to the diagnostic function number does not exist a sub-function tag.

[0023] If the diagnostic function number is a second preset value, it is represented that the diagnostic function tag corresponding to the diagnostic function number exists a sub-function tag.

[0024] Optionally, the displaying of the function menu composed of each diagnostic function name and the function interface corresponding to the function interface function based on the preset display interface of the diagnostic software comprises:

[0025] The diagnostic function number corresponding to each diagnostic function name is obtained, and each diagnostic function name is sorted according to the diagnostic function number corresponding to each diagnostic function name to obtain a function menu.

[0026] The function menu and the function interface corresponding to the function interface function are displayed based on the preset display interface of the diagnostic software.

[0027] In a second aspect, the present application provides a diagnostic function display device, comprising:

[0028] The command sending module is configured to send a supplier information reading command to a target ECU of a target vehicle through a diagnostic software when the diagnostic software detects that the target vehicle has an abnormality, so as to obtain supplier information; the target ECU is an ECU that can be supplied by different suppliers.

[0029] a target tag determination module configured to find a corresponding supplier number from a supplier mapping set by using the supplier information, and determine a target ECU tag from a plurality of ECU tags of a preset configuration file by using the supplier number;

[0030] a function number determination module configured to determine a diagnostic function number in a diagnostic function tag in the target ECU tag based on a supplier field value in the target ECU tag and the supplier number;

[0031] a function display module configured to determine each diagnostic function name in each diagnostic function tag and a corresponding function interface function by using the diagnostic function number, so as to display a function menu composed of each diagnostic function name and a function interface corresponding to the function interface function based on a preset display interface of the diagnostic software.

[0032] In a third aspect, the present application provides an electronic device, comprising:

[0033] a memory configured to save a computer program;

[0034] a processor configured to execute the computer program to implement the foregoing diagnostic function display method.

[0035] In a fourth aspect, the present application provides a computer readable storage medium configured to save a computer program, wherein the computer program is executed by a processor to implement the foregoing diagnostic function display method.

[0036] When the present application detects that a target vehicle has an abnormality through a diagnostic software, the diagnostic software sends a supplier information reading command to a target ECU of the target vehicle to obtain supplier information; the supplier information is used to find a corresponding supplier number from a supplier mapping set, and the supplier number is used to determine a target ECU tag from a plurality of ECU tags of a preset configuration file; a supplier field value in the target ECU tag and the supplier number are subjected to an AND operation, if the operation result of the AND operation is consistent with the supplier number, a diagnostic function number in a diagnostic function tag in the target ECU tag is obtained; each diagnostic function name in each diagnostic function tag and a corresponding function interface function are determined by using the diagnostic function number, so as to display a function menu composed of each diagnostic function name and a function interface corresponding to the function interface function based on a preset display interface of the diagnostic software.

[0037] From the above, the application establishes the supplier information and the label information corresponding to the target ECU of the target vehicle through the pre-constructed supplier mapping set and the preset configuration file, obtains the supplier field value by using the label information in the target ECU label, and performs an operation of the supplier field value and the supplier number obtained by the supplier mapping set, if the operation result is consistent with the supplier number, the diagnostic function number in the diagnostic function label in the target ECU label is obtained, and each diagnostic function name in each diagnostic function label and the corresponding function interface function are obtained by using the diagnostic function number. In this way, based on the preset display interface, the function menu composed of each diagnostic function name and the function interface corresponding to the function interface function are displayed, the supplier information of the target ECU can be inquired in real time, the diagnostic function supported by the corresponding ECU is accurately inquired according to the supplier number, and the function menu is displayed, the function interface corresponding to each function is displayed, the ECU function is decoupled, the development efficiency and accuracy are greatly improved, and the maintenance cost of the diagnostic software is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor on the basis of the provided drawings.

[0039] Figure 1 A diagnostic function display method flow chart is provided in the present application.

[0040] Figure 2 A supplier information request schematic diagram is provided in the present application.

[0041] Figure 3 A supplier mapping set construction schematic diagram is provided in the present application.

[0042] Figure 4 An ECU label in a preset configuration file is provided in the present application.

[0043] Figure 5 An ECU function display schematic diagram is provided in the present application.

[0044] Figure 6 A diagnostic function display device structure schematic diagram is disclosed in the present application.

[0045] Figure 7 An electronic equipment structure diagram is disclosed in the present application. DETAILED DESCRIPTION

[0046] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0047] Currently, displaying all ECU functions leads to cumbersome menu items, which can easily result in incorrect selections for inexperienced users, potentially damaging the ECU. Alternatively, precisely searching for ECU functions via a server not only increases the R&D and maintenance costs for automakers but may also fail to display the function in areas with poor network connectivity. Therefore, this application provides a diagnostic function display method. Based on a preset display interface, it shows a function menu composed of the names of each diagnostic function and the corresponding function interfaces. It allows real-time querying of the target ECU's supplier information, precise lookup of the diagnostic functions supported by the corresponding ECU based on the supplier number, and display of the function menu. By displaying the function interfaces corresponding to each function, ECU functions are decoupled, significantly improving development efficiency and accuracy, and reducing diagnostic software maintenance costs.

[0048] See Figure 1 As shown in the figure, an embodiment of the present invention discloses a method for demonstrating diagnostic functions, including:

[0049] Step S11: When an abnormality is detected in the target vehicle by the diagnostic software, a supplier information reading command is sent to the target ECU of the target vehicle through the diagnostic software to obtain the supplier information; the target ECU is an ECU that can be supplied by different suppliers.

[0050] In this embodiment, a communication relationship can be established between the diagnostic software and the target ECU of the target vehicle based on the vehicle gateway of the target vehicle. This communication relationship is then used to send a supplier information read command to the target ECU of the target vehicle via the diagnostic software. Based on the supplier information read command, the corresponding supplier information is obtained through the target ECU and sent to the diagnostic software. The vehicle gateway, acting as an interface between the vehicle's internal network and external devices (such as the diagnostic software), ensures the secure and efficient transmission of data.

[0051] Figure 2This is a schematic diagram of a supplier information request provided in this embodiment. When the diagnostic software (i.e., the diagnostic tool) detects an abnormality in the target vehicle, it sends a supplier information read request to the vehicle gateway. The supplier information read request includes a supplier information read command, so that the supplier information read command is sent to the target ECU corresponding to the target vehicle through the vehicle gateway. Based on the target ECU, the supplier information is queried, and the supplier information is transmitted to the diagnostic software through the vehicle gateway.

[0052] Step S12: Use the supplier information to find the corresponding supplier number from the supplier mapping set, and use the supplier number to determine the target ECU tag from several ECU tags in the preset configuration file.

[0053] In this embodiment, after obtaining the supplier information, the supplier information is parsed, and a supplier mapping set is constructed using the parsed supplier names and corresponding supplier numbers. Specifically, the step of using the supplier information to find the corresponding supplier number from the supplier mapping set includes: constructing a supplier mapping set using the mapping relationship between the supplier names and corresponding supplier numbers in the supplier information, so as to find the corresponding supplier number from the supplier mapping set using the supplier names in the supplier information.

[0054] Figure 3 This is a schematic diagram illustrating the construction of a supplier mapping set provided in this embodiment. In one specific implementation, Supplier 1, Supplier 2, Supplier 3, and Supplier 4 are supplier names, and 0x01, 0x02, 0x04, and 0x08 are supplier numbers. The supplier names and supplier numbers have a one-to-one mapping relationship. Specifically, they are ordered in binary; for example, Supplier 2 corresponds to supplier number 0x02, which is 00000010 in binary; Supplier 3 corresponds to supplier number 0x04, which is 00000100 in binary. After constructing the supplier mapping set, the corresponding supplier number can be found from the supplier mapping set based on the supplier name in the supplier information.

[0055] It is understood that after obtaining the supplier number, the target ECU tag containing the supplier number is determined from the preset configuration file based on the supplier number. Figure 4This embodiment provides a schematic diagram of ECU tags in a preset configuration file, which includes FunctionPath (name of the dynamic library file for the interface function call), Function (i.e., diagnostic function tag), FuncId (i.e., diagnostic function number), Supplier (i.e., supplier number), ChildFunc (tag used to determine whether there is a sub-function), FuncName (i.e., diagnostic function name), and FuncRef (i.e., function interface function).

[0056] Step S13: Based on the supplier field value and the supplier number in the target ECU label, determine the diagnostic function number in the diagnostic function label of the target ECU label.

[0057] In this embodiment, after obtaining the target ECU tag, the supplier field value corresponding to the supplier number in the target ECU tag is obtained. A bitwise AND operation is performed between the supplier field value and the supplier number. If the AND result matches the supplier number, the diagnostic function number in the diagnostic function tag of the target ECU tag is obtained. Specifically, determining the diagnostic function number in the diagnostic function tag of the target ECU tag based on the supplier field value and the supplier number includes: performing a bitwise AND operation between the supplier field value and the supplier number in the target ECU tag to obtain a corresponding AND result; if the AND result matches the supplier number, the diagnostic function number in the diagnostic function tag of the target ECU tag is obtained.

[0058] Step S14: Use the diagnostic function number to determine the name of each diagnostic function in each diagnostic function label and the corresponding function interface function, so as to display the function menu composed of each diagnostic function name and the function interface corresponding to the function interface function based on the preset display interface of the diagnostic software.

[0059] In this embodiment, an interface function is constructed using preset combination rules and based on the ECU name, diagnostic function name, and supplier name corresponding to the target ECU, and the interface function is saved to a dynamic library file. Specifically, before determining each diagnostic function name and corresponding function interface function in each diagnostic function tag using the diagnostic function number, the method further includes: constructing a function interface function corresponding to each diagnostic function name using preset combination rules and based on the ECU name, diagnostic function name, and supplier name corresponding to the target ECU, and saving the function interface function to a dynamic library file.

[0060] Understandably, all functions of the ECU are developed, with each function corresponding to a specific interface function. These functions are named with the ECU name, function name, and supplier name (if applicable). For example, a function named BCM_Learning_A represents the BCM controller learning function from supplier A; BCM_Learning_B represents the BCM controller learning function from supplier B; and a function named BCM_Learning with no supplier information indicates a more general BCM controller learning function. All functions are developed into a single dynamic library file for easy access by diagnostic software.

[0061] In this embodiment, after obtaining the diagnostic function number, the diagnostic function number is used to determine whether the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag, and the name of each diagnostic function and the corresponding function interface function are obtained based on the determination result. Specifically, determining the name of each diagnostic function and the corresponding function interface function in each diagnostic function tag using the diagnostic function number includes: determining whether the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag; if the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag, then the function name tag and interface function tag in the diagnostic function tag and the sub-function tag are parsed respectively, and the name of each diagnostic function and the corresponding function interface function in the diagnostic function tag and the sub-function tag are obtained based on the parsing result.

[0062] Furthermore, when determining whether a sub-function label exists for the diagnostic function label corresponding to the diagnostic function number using the diagnostic function number, if the diagnostic function number is a first preset value, it indicates that the diagnostic function label corresponding to the diagnostic function number does not have a sub-function label; if the diagnostic function number is a second preset value, it indicates that the diagnostic function label corresponding to the diagnostic function number has a sub-function label. Specifically, determining whether a sub-function label exists for the diagnostic function label corresponding to the diagnostic function number using the diagnostic function number includes: if the diagnostic function number is a first preset value, it indicates that the diagnostic function label corresponding to the diagnostic function number does not have a sub-function label; if the diagnostic function number is a second preset value, it indicates that the diagnostic function label corresponding to the diagnostic function number has a sub-function label.

[0063] In one specific implementation, the diagnostic function number is used to determine whether the diagnostic function label corresponding to the diagnostic function number has a sub-function label. If the diagnostic function number is 0, it indicates that the diagnostic function label corresponding to the diagnostic function number does not have a sub-function label; if the diagnostic function number is 1, it indicates that the diagnostic function label corresponding to the diagnostic function number has a corresponding sub-function label. Therefore, it is necessary to parse the function name label and the interface function label in the diagnostic function label and the sub-function label respectively to obtain the diagnostic function name and the corresponding function interface function in the diagnostic function label and the sub-function label.

[0064] In this embodiment, Figure 5 This embodiment provides a schematic diagram of ECU function display. After obtaining the diagnostic function number, the diagnostic function names corresponding to the diagnostic function number are sorted using the diagnostic function number. A function menu is formed based on the sorted diagnostic function names, and the function menu and the function interfaces corresponding to the function interfaces are displayed using the preset display interface of the diagnostic software. Specifically, displaying the function menu composed of each diagnostic function name and the function interfaces corresponding to the function interfaces based on the preset display interface of the diagnostic software includes: obtaining the diagnostic function number corresponding to each diagnostic function name, sorting each diagnostic function name using the diagnostic function number corresponding to each diagnostic function name to obtain a function menu; and displaying the function menu and the function interfaces corresponding to the function interfaces based on the preset display interface of the diagnostic software.

[0065] As can be seen from the above, this application establishes supplier information and tag information corresponding to the target ECU of the target vehicle through a pre-constructed supplier mapping set and a preset configuration file. The supplier field value is obtained using the tag information in the target ECU tag, and a bitwise AND operation is performed between the supplier field value and the supplier number obtained from the supplier mapping set. If the result matches the supplier number, the diagnostic function number in the diagnostic function tag of the target ECU tag is obtained. The diagnostic function number is then used to obtain the name of each diagnostic function and its corresponding function interface function in each diagnostic function tag. In this way, a preset display interface shows the function menu composed of the names of each diagnostic function and the corresponding function interface function. The supplier information of the target ECU can be queried in real time, and the diagnostic functions supported by the corresponding ECU can be accurately queried based on the supplier number. The function menu is displayed, and by displaying the function interfaces corresponding to each function, the ECU functions are decoupled, greatly improving development efficiency and accuracy, and reducing the maintenance cost of diagnostic software.

[0066] Accordingly, seeFigure 6 As shown, this application also provides a diagnostic function demonstration device, including:

[0067] The command sending module 11 is used to send a supplier information reading command to the target ECU of the target vehicle through the diagnostic software when an abnormality is detected in the target vehicle, so as to obtain the supplier information; the target ECU is an ECU that can be supplied by different suppliers;

[0068] The target label determination module 12 is used to search for the corresponding supplier number from the supplier mapping set using the supplier information, and to determine the target ECU label from a number of ECU labels in the preset configuration file using the supplier number;

[0069] The function number determination module 13 is used to determine the diagnostic function number in the diagnostic function label of the target ECU label based on the supplier field value and the supplier number in the target ECU label;

[0070] The function display module 14 is used to determine the name of each diagnostic function and the corresponding function interface function in each diagnostic function label using the diagnostic function number, so as to display the function menu composed of each diagnostic function name and the function interface corresponding to the function interface function based on the preset display interface of the diagnostic software.

[0071] As can be seen from the above, this application establishes supplier information and tag information corresponding to the target ECU of the target vehicle through a pre-constructed supplier mapping set and a preset configuration file. The supplier field value is obtained using the tag information in the target ECU tag, and a bitwise AND operation is performed between the supplier field value and the supplier number obtained from the supplier mapping set. If the result matches the supplier number, the diagnostic function number in the diagnostic function tag of the target ECU tag is obtained. The diagnostic function number is then used to obtain the name of each diagnostic function and its corresponding function interface function in each diagnostic function tag. In this way, a preset display interface shows the function menu composed of the names of each diagnostic function and the corresponding function interface function. The supplier information of the target ECU can be queried in real time, and the diagnostic functions supported by the corresponding ECU can be accurately queried based on the supplier number. The function menu is displayed, and by displaying the function interfaces corresponding to each function, the ECU functions are decoupled, greatly improving development efficiency and accuracy, and reducing the maintenance cost of diagnostic software.

[0072] In some specific embodiments, the target label determination module 12 may specifically include:

[0073] The supplier number lookup unit is used to construct a supplier mapping set by utilizing the mapping relationship between the supplier name and the corresponding supplier number in the supplier information, so as to find the corresponding supplier number from the supplier mapping set using the supplier name in the supplier information.

[0074] In some specific embodiments, the function number determination module 13 may specifically include:

[0075] The AND operation unit is used to perform an AND operation on the supplier field value and the supplier number in the target ECU label to obtain the corresponding AND operation result;

[0076] The function number acquisition unit is used to acquire the diagnostic function number in the diagnostic function label of the target ECU label if the result of the AND operation is consistent with the supplier number.

[0077] In some specific embodiments, the diagnostic function display device may further include:

[0078] The interface function construction unit is used to construct a function interface function corresponding to each diagnostic function name based on the preset combination rules, the ECU name, the diagnostic function name and the supplier name corresponding to the target ECU, and save the function interface function to the dynamic library file.

[0079] In some specific embodiments, the function display module 14 may specifically include:

[0080] A function label determination unit is used to determine whether there is a sub-function label for the diagnostic function label corresponding to the diagnostic function number using the diagnostic function number;

[0081] The tag parsing unit is used to parse the function name tag and the interface function tag in the diagnostic function tag and the sub-function tag respectively if the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag, and obtain the diagnostic function name and the corresponding function interface function in the diagnostic function tag and the sub-function tag based on the parsing result.

[0082] In some specific embodiments, the function display module 14 may specifically include:

[0083] The first judgment result unit is used to indicate that if the diagnostic function number is a first preset value, then the diagnostic function label corresponding to the diagnostic function number does not have a sub-function label.

[0084] The second judgment result unit is used to indicate that if the diagnostic function number is a second preset value, then the diagnostic function label corresponding to the diagnostic function number has a sub-function label.

[0085] In some specific embodiments, the function display module 14 may specifically include:

[0086] The function menu acquisition unit is used to acquire the diagnostic function number corresponding to each of the diagnostic function names, and sort the diagnostic function names using the diagnostic function number corresponding to each of the diagnostic function names to obtain the function menu.

[0087] The function menu display unit is used to display the function menu and the function interface corresponding to the function interface function based on the preset display interface of the diagnostic software.

[0088] Furthermore, embodiments of this application also disclose an electronic device, Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the diagnostic function demonstration method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0089] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0090] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0091] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the diagnostic function demonstration method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0092] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned diagnostic function demonstration method. The specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0093] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0094] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0095] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0096] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0097] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A diagnostic functional display method, characterized by, The application relates to a method for displaying a function menu of a target ECU of a target vehicle, comprising the following steps: When the target vehicle is detected to have an abnormality by diagnostic software, a supplier information reading command is sent to a target ECU of the target vehicle by the diagnostic software to obtain supplier information; The target ECU is an ECU that can be supplied by different suppliers; A corresponding supplier number is found from a supplier mapping set by using the supplier information, and a target ECU label is determined from a plurality of ECU labels of a preset configuration file by using the supplier number; Based on a supplier field value in the target ECU label and the supplier number, a diagnostic function number in a diagnostic function label in the target ECU label is determined; Based on a preset display interface of the diagnostic software, a function menu composed of diagnostic function names in each diagnostic function label and a function interface corresponding to a function interface function are displayed by using the diagnostic function number to determine the diagnostic function names and the function interface function.

2. The diagnostic function presentation method according to claim 1, characterized by, The step of finding the corresponding supplier number from the supplier mapping set by using the supplier information comprises the following steps: A mapping relationship between a supplier name in the supplier information and a corresponding supplier number is used to construct a supplier mapping set, so that the corresponding supplier number is found from the supplier mapping set by using the supplier name in the supplier information.

3. The diagnostic function presentation method according to Claim 1, characterized by, The step of determining the diagnostic function number in the diagnostic function label in the target ECU label based on the supplier field value in the target ECU label and the supplier number comprises the following steps: The supplier field value in the target ECU label and the supplier number are subjected to AND operation to obtain a corresponding AND operation result; If the AND operation result is consistent with the supplier number, the diagnostic function number in the diagnostic function label in the target ECU label is obtained.

4. The diagnostic function presentation method according to Claim 1, characterized by, Before the step of determining the diagnostic function names and the function interface function in each diagnostic function label by using the diagnostic function number, the following step is further included: A function interface function corresponding to each diagnostic function name is constructed by using a preset combination rule and based on an ECU name, a diagnostic function name and a supplier name corresponding to the target ECU, and the function interface function is saved to a dynamic library file.

5. The diagnostic function presentation method according to claim 4, characterized by, The step of determining the diagnostic function names and the function interface function in each diagnostic function label by using the diagnostic function number comprises the following steps: It is judged whether a diagnostic function label corresponding to the diagnostic function number exists sub-function labels by using the diagnostic function number; If the diagnostic function label corresponding to the diagnostic function number exists sub-function labels, function name labels and interface function labels in the diagnostic function label and the sub-function labels are respectively parsed, and each diagnostic function name and a corresponding function interface function in the diagnostic function label and the sub-function labels are obtained based on a parsing result.

6. The diagnostic function presentation method according to claim 5, characterized by, The step of judging whether the diagnostic function label corresponding to the diagnostic function number exists sub-function labels by using the diagnostic function number comprises the following steps: If the diagnostic function number is a first preset value, it is indicated that the diagnostic function label corresponding to the diagnostic function number does not exist sub-function labels. If the diagnostic function number is a second preset value, it is indicated that the diagnostic function label corresponding to the diagnostic function number has a sub-function label.

7. The diagnostic function presentation method according to any one of claims 1 to 6, characterized by, The function menu composed of the diagnostic function names and the function interface corresponding to the function interface function are displayed based on the preset display interface of the diagnostic software. The diagnostic function numbers corresponding to the diagnostic function names are obtained, and the diagnostic function names are sorted according to the diagnostic function numbers, to obtain a function menu. The function menu and the function interface corresponding to the function interface function are displayed based on the preset display interface of the diagnostic software.

8. A diagnostic function presentation device, characterized by It comprises: When detecting that a target vehicle has an abnormality through a diagnostic software, a command sending module sends a supplier information reading command to a target ECU of the target vehicle through the diagnostic software, to obtain supplier information; The target ECU is an ECU that can be supplied by different suppliers; A target label determining module finds a corresponding supplier number from a supplier mapping set by using the supplier information, and determines a target ECU label from a plurality of ECU labels of a preset configuration file by using the supplier number; A function number determining module determines a diagnostic function number in a diagnostic function label in the target ECU label based on a supplier field value in the target ECU label and the supplier number; A function display module determines each diagnostic function name in each diagnostic function label and a corresponding function interface function by using the diagnostic function number, so as to display a function menu composed of each diagnostic function name and a function interface corresponding to the function interface function based on a preset display interface of the diagnostic software.

9. An electronic device, comprising: It comprises: A memory for saving a computer program; A processor for executing the computer program to realize the diagnostic function display method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, A computer program is saved, and the computer program is executed by a processor to realize the diagnostic function display method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Diagnosis system suitable for different vehicles

    CN107145138A

  • Vehicle fault diagnosis method and device and related equipment

    CN111103868A