Diagnostic function display method and device, equipment and storage medium

By sending supplier information reading commands in the diagnostic software and using this information to determine the target ECU tag, the problem of cumbersome menu items in the multi-track ECU diagnostic function development is solved, and efficient and accurate display of diagnostic function is achieved, reducing maintenance costs.

CN119847123AActive Publication Date: 2025-04-18LAUNCH TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing multi-track ECU diagnostic function development method results in cumbersome menu items, users are prone to errors in selection, and precise search through servers increases R&D and maintenance costs.

Method used

When an abnormality of the target vehicle is detected by the diagnostic software, a supplier information reading command is sent to obtain supplier information, and the information is used to determine the target ECU tag from the preset configuration file, thereby obtaining the diagnostic function number, displaying the corresponding diagnostic function menu and function interface.

Benefits of technology

Realize real-time query of supplier information of target ECU, accurately query the diagnostic functions supported by corresponding ECU, reduce menu entries, improve development efficiency and accuracy, and reduce diagnostic software maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847123A_ABST
    Figure CN119847123A_ABST
Patent Text Reader

Abstract

The invention discloses a diagnosis function display method and device, equipment and a storage medium, and relates to the technical field of vehicle diagnos.The method comprises the steps that when it is detected that a target vehicle is abnormal through diagnosis software, a supplier information reading command is sent to a target ECU of the target vehicle through the diagnosis software to obtain supplier information; the target ECU is an ECU for supplying goods through different suppliers; searching a supplier number from a supplier mapping set by using the supplier information, and determining a target ECU tag from a plurality of ECU tags of a preset configuration file by using the supplier number; and determining diagnosis function numbers in the target ECU tag by using the supplier field values and the supplier numbers in the target ECU tag, determining each diagnosis function name and a function interface function in each diagnosis function tag, and displaying a function menu composed of the diagnosis function names and a function interface corresponding to the function interface function. And 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 invention relates to the field of vehicle diagnosis technology, and in particular to a diagnostic function display method, device, equipment and storage medium. Background Art

[0002] With the continuous development of automotive electronics, there are more and more auto parts manufacturers. Considering factors such as R&D cycle, information security and production cost, automakers generally use multiple suppliers to supply the same ECU (Electronic Control Unit), that is, multi-track ECU. ECUs from different suppliers formulate diagnostic protocols and processes according to the needs of automakers. Most of the functions are the same, and some may differ from one supplier to another. As a result, when diagnosing the car, for the differences, it is necessary to first know which supplier the ECU is equipped with, and then select the correct diagnostic function in the diagnostic software to execute.

[0003] At present, there are two methods for developing diagnostic functions for multi-track ECUs: (1) Display all diagnostic functions, that is, after all diagnostic functions for the ECU are developed, all ECU functions are displayed in the diagnostic menu. For the same function with differences, the supplier name is added to the end of the function name, and the user selects the correct function diagnosis when using it; (2) Map the VIN (Vehicle Identification Number) and the ECU list on the server. Each VIN has a corresponding ECU list, and each ECU has clear supplier information. When diagnosing the vehicle, the user uploads the vehicle VIN code to the server to obtain the information of each ECU. When executing a specific ECU function, the diagnostic function of the corresponding supplier ECU is displayed according to the obtained supplier information. However, both methods have disadvantages. The first method displays all ECU functions, which will lead to cumbersome menu items. It is easy for unskilled users to choose to execute incorrectly, and in serious cases, the ECU may be damaged; the second method uses the server to accurately search, which will not only increase the R&D and maintenance costs 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 cumbersome menu items so that the diagnostic software can obtain and display the diagnostic functions corresponding to the ECU supplier is a problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a diagnostic function display method, device, equipment and storage medium, which can avoid cumbersome menu items and enable diagnostic software to obtain and display the diagnostic functions corresponding to the ECU supplier. The specific scheme is as follows:

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

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

[0008] Using the supplier information, searching for a corresponding supplier number from a supplier mapping set, and using the supplier number to determine a target ECU tag from a plurality of ECU tags in a preset configuration file;

[0009] Determine a diagnostic function number in a diagnostic function tag in the target ECU tag based on the vendor field value in the target ECU tag and the vendor number;

[0010] The diagnostic function number is used to determine each diagnostic function name in each diagnostic function label and the corresponding function interface function, so that the function menu composed of each diagnostic function name and the function interface corresponding to the function interface function can be displayed based on the preset display interface of the diagnostic software.

[0011] Optionally, searching a corresponding supplier number from a supplier mapping set using the supplier information includes:

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

[0013] Optionally, determining the diagnostic function number in the diagnostic function tag in the target ECU tag based on the vendor field value and the vendor number in the target ECU tag includes:

[0014] Performing an AND operation on the supplier field value in the target ECU tag and the supplier number 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 using the diagnostic function number to determine each diagnostic function name in each diagnostic function tag and the corresponding functional interface function, the method further includes:

[0017] By using preset combination rules and based on the ECU name, diagnostic function name and supplier name corresponding to the target ECU, a function interface function corresponding to each of the diagnostic function names is constructed, and the function interface function is saved in a dynamic library file.

[0018] Optionally, the using the diagnostic function number to determine each diagnostic function name in each diagnostic function tag and a corresponding functional interface function includes:

[0019] Using the diagnostic function number, determining whether a diagnostic function tag corresponding to the diagnostic function number has a sub-function tag;

[0020] If the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag, the diagnostic function tag and the function name tag and the interface function tag in the sub-function tag are parsed respectively, and the diagnostic function names and the corresponding function interface functions in the diagnostic function tag and the sub-function tag are obtained based on the parsing results.

[0021] Optionally, the using the diagnostic function number to determine whether the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag includes:

[0022] If the diagnostic function number is a first preset value, it indicates that the diagnostic function tag corresponding to the diagnostic function number does not have a sub-function tag;

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

[0024] Optionally, the preset display interface based on the diagnostic software displays a function menu composed of the names of the diagnostic functions and a function interface corresponding to the function interface function, including:

[0025] Obtaining the diagnostic function numbers corresponding to the diagnostic function names, and sorting the diagnostic function names using the diagnostic function numbers corresponding to the diagnostic function names 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] A command sending module, used for sending a supplier information reading command to a target ECU of the target vehicle through the diagnostic software to obtain supplier information when an abnormality of the target vehicle is detected through the diagnostic software; the target ECU is an ECU that can be supplied by different suppliers;

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

[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 vendor field value and the vendor number in the target ECU tag;

[0031] A function display module is used to 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.

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

[0033] Memory, used to store computer programs;

[0034] The processor is used to execute the computer program to implement the aforementioned diagnostic function display method.

[0035] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned diagnostic function display method when executed by a processor.

[0036] When the diagnostic software detects that the target vehicle has an abnormality, the application sends a supplier information read command to the target ECU of the target vehicle through the diagnostic software to obtain the supplier information; uses the supplier information to find the corresponding supplier number from the supplier mapping set, and uses the supplier number to determine the target ECU tag from several ECU tags in the preset configuration file; performs an AND operation on the supplier field value in the target ECU tag and the supplier number, and if the operation result obtained by the AND operation is consistent with the supplier number, obtains the diagnostic function number in the diagnostic function tag in the target ECU tag; uses the diagnostic function number to determine each diagnostic function name in each diagnostic function tag 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.

[0037] As can be seen from the above, the present application establishes supplier information and label information corresponding to the target ECU of the target vehicle through a pre-constructed supplier mapping set and a preset configuration file, obtains the supplier field value using the label information in the target ECU label, and performs an AND operation on 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, so as to obtain the names of each diagnostic function in each diagnostic function label and the corresponding function interface function 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 queried in real time, the diagnostic functions supported by the corresponding ECU can be accurately queried according to the supplier number, and the function menu is displayed. By displaying the function interface corresponding to each function, the ECU function is decoupled, which greatly improves the development efficiency and accuracy, and reduces the maintenance cost of the diagnostic software. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0039] Figure 1 This is a flow chart of a diagnostic function display method disclosed in this application;

[0040] Figure 2 A schematic diagram of a supplier information request provided for this application;

[0041] Figure 3 A schematic diagram of building a supplier mapping set provided for this application;

[0042] Figure 4 A schematic diagram of ECU labels in a preset configuration file provided for this application;

[0043] Figure 5 A schematic diagram showing the functions of an ECU provided for this application;

[0044] Figure 6 This is a schematic diagram of the structure of a diagnostic function display device disclosed in this application;

[0045] Figure 7 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] At present, displaying all the functions of the ECU will result in cumbersome menu items, which is easy for unskilled users to choose to execute incorrectly, and in serious cases, the ECU may be damaged; or accurately searching for ECU functions through the server will not only increase the R&D and maintenance costs of the automobile factory, but may also be unable to query and display in places with poor network. To this end, the present application provides a diagnostic function display method, which displays the function menu composed of each diagnostic function name and the function interface corresponding to the function interface function based on a preset display interface, can query the supplier information of the target ECU in real time, accurately query the diagnostic functions supported by the corresponding ECU according to the supplier number, and display the function menu. By displaying the function interface corresponding to each function, the ECU function is decoupled, which greatly improves the development efficiency and accuracy, and reduces the maintenance cost of the diagnostic software.

[0048] See also Figure 1 As shown, an embodiment of the present invention discloses a diagnostic function display method, including:

[0049] Step S11, when the target vehicle is detected to be abnormal by the diagnostic software, a supplier information reading command is sent to the 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.

[0050] In this embodiment, a communication relationship between the diagnostic software and the target ECU of the target vehicle can be established based on the vehicle gateway of the target vehicle, so as to utilize the communication relationship and send a supplier information reading command to the target ECU of the target vehicle through the diagnostic software; based on the supplier information reading command, the corresponding supplier information is obtained through the target ECU, and the supplier information is sent to the diagnostic software. The vehicle gateway serves as an interface between the internal network of the vehicle and external devices (such as diagnostic software), ensuring the safe and effective transmission of data.

[0051] Figure 2A supplier information request schematic diagram is provided for this embodiment. When the diagnostic software (i.e., the diagnostic instrument) detects an abnormality in the target vehicle, a supplier information read request is sent 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, the supplier information is queried based on the target ECU, and the supplier information is transmitted to the diagnostic software through the vehicle gateway.

[0052] Step S12: using the supplier information to search for a corresponding supplier number from a supplier mapping set, and using the supplier number to determine a target ECU tag from a plurality of ECU tags in a 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 supplier name obtained by the parsing and the corresponding supplier number. Specifically, searching for the corresponding supplier number from the supplier mapping set using the supplier information includes: constructing a supplier mapping set using the mapping relationship between the supplier name in the supplier information and the corresponding supplier number, so as to search for the corresponding supplier number from the supplier mapping set using the supplier name in the supplier information.

[0054] Figure 3 A schematic diagram of constructing a supplier mapping set provided for this embodiment. In a specific implementation, supplier 1, supplier 2, supplier 3, and supplier 4 are supplier names, 0x01, 0x02, 0x04, and 0x08 are supplier numbers, and the supplier names and supplier numbers are in a one-to-one mapping relationship. Among them, in binary sorting, such as the supplier number corresponding to supplier 2 is 0x02, and the corresponding binary is 00000010; the supplier number corresponding to supplier 3 is 0x04, and the corresponding binary is 00000100. 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 can be 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 4A schematic diagram of ECU labels in a preset configuration file provided for this embodiment, including FuntionPath (dynamic library file name called by interface function), Function (i.e. diagnostic function label), FuncId (i.e. diagnostic function number), Supplier (i.e. supplier number), ChildFunc (label for determining whether there is a sub-function), FuncName (i.e. diagnostic function name), and FuncRef (i.e. functional interface function).

[0056] Step S13: Determine the diagnostic function number in the diagnostic function tag in the target ECU tag based on the vendor field value in the target ECU tag and the vendor number.

[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, and the supplier field value and the supplier number are ANDed. If the ANDed result is consistent with the supplier number, the diagnostic function number in the diagnostic function tag in the target ECU tag is obtained. Specifically, the diagnostic function number in the diagnostic function tag in the target ECU tag is determined based on the supplier field value and the supplier number in the target ECU tag, including: performing an ANDed operation on the supplier field value in the target ECU tag and the supplier number to obtain a corresponding ANDed result; if the ANDed result is consistent with the supplier number, the diagnostic function number in the diagnostic function tag in the target ECU tag is obtained.

[0058] Step S14, using the diagnostic function number to determine each diagnostic function name 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, the interface function is constructed based on the ECU name, diagnostic function name and supplier name corresponding to the target ECU using the preset combination rule, and the interface function function is saved in the dynamic library file. Specifically, before the diagnostic function number is used to determine each diagnostic function name in each diagnostic function label and the corresponding function interface function, it also includes: constructing the function interface function corresponding to each diagnostic function name based on the ECU name, diagnostic function name and supplier name corresponding to the target ECU using the preset combination rule, and saving the function interface function in the dynamic library file.

[0060] It is understandable that all functions of the ECU are developed, and one function corresponds to one function interface function, and the function is composed of ECU name + function name + supplier name (if any). For example, the composed function interface function is BCM_Learning_A, which means the BCM controller learning function with supplier name A; the function interface function is BCM_Learning_B, which means the BCM controller learning function with supplier name B; the function interface function is BCM_Learning, and there is no supplier information in the suffix, which means that this is a more general BCM controller learning function. All functions are developed in a dynamic library file to facilitate the diagnostic software to call.

[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 names of each diagnostic function and the corresponding function interface function are obtained based on the judgment result. Specifically, the use of the diagnostic function number to determine the names of each diagnostic function in each diagnostic function tag and the corresponding function interface function includes: using the diagnostic function number to determine 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, the function name tag and the interface function tag in the diagnostic function tag and the sub-function tag are parsed respectively, and the names of each diagnostic function in the diagnostic function tag and the sub-function tag and the corresponding function interface function are obtained based on the parsing result.

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

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

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

[0065] As can be seen from the above, the present application establishes supplier information and label information corresponding to the target ECU of the target vehicle through a pre-constructed supplier mapping set and a preset configuration file, obtains the supplier field value using the label information in the target ECU label, and performs an AND operation on 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, so as to obtain the names of each diagnostic function in each diagnostic function label and the corresponding function interface function 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 queried in real time, the diagnostic functions supported by the corresponding ECU can be accurately queried according to the supplier number, and the function menu is displayed. By displaying the function interface corresponding to each function, the ECU function is decoupled, which greatly improves the development efficiency and accuracy, and reduces the maintenance cost of the diagnostic software.

[0066] Accordingly, see Figure 6 As shown, the present application also provides a diagnostic function display device, including:

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

[0068] A target tag determination module 12, configured to use the supplier information to search for a corresponding supplier number from a supplier mapping set, and use the supplier number to determine a target ECU tag from a plurality of ECU tags in a preset configuration file;

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

[0070] The function display module 14 is used to 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.

[0071] As can be seen from the above, the present application establishes supplier information and label information corresponding to the target ECU of the target vehicle through a pre-constructed supplier mapping set and a preset configuration file, obtains the supplier field value using the label information in the target ECU label, and performs an AND operation on 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, so as to obtain the names of each diagnostic function in each diagnostic function label and the corresponding function interface function 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 queried in real time, the diagnostic functions supported by the corresponding ECU can be accurately queried according to the supplier number, and the function menu is displayed. By displaying the function interface corresponding to each function, the ECU function is decoupled, which greatly improves the development efficiency and accuracy, and reduces the maintenance cost of the diagnostic software.

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

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

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

[0075] An AND operation unit, used for performing an AND operation on the supplier field value in the target ECU tag and the supplier number to obtain a corresponding AND operation result;

[0076] The function number acquisition unit is used to acquire the diagnostic function number in the diagnostic function tag in the target ECU tag if the AND operation result 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 ECU name, diagnostic function name and supplier name corresponding to the target ECU using a preset combination rule, and save the function interface function to a dynamic library file.

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

[0080] A function label determination unit, configured to determine, by using the diagnostic function number, whether a diagnostic function label corresponding to the diagnostic function number has a sub-function label;

[0081] A label parsing unit is used to parse the diagnostic function label and the function name label and the interface function label in the sub-function label respectively if a sub-function label exists in the diagnostic function label corresponding to the diagnostic function number, and obtain the names of the diagnostic functions in the diagnostic function label and the sub-function label and the corresponding function interface functions based on the parsing results.

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

[0083] A first judgment result unit, used for indicating that the diagnostic function tag corresponding to the diagnostic function number does not have a sub-function tag if the diagnostic function number is a first preset value;

[0084] The second judgment result unit is used for indicating that the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag if the diagnostic function number is a second preset value.

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

[0086] A function menu acquisition unit, used to acquire the diagnostic function numbers corresponding to the diagnostic function names, and sort the diagnostic function names by using the diagnostic function numbers corresponding to the diagnostic function names to obtain a function menu;

[0087] A 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, the present application also discloses an electronic device. Figure 7 It is a structural diagram of an electronic device 20 shown according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 20 may specifically 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. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the diagnostic function display method disclosed in any of the aforementioned embodiments. In addition, 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 working 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 the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain 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 storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a 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 hardware devices and computer programs 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the diagnostic function display method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0092] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the diagnostic function display method disclosed above is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, and will not be repeated here.

[0093] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0094] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0095] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0096] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0097] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A diagnostic function display method, characterized in that: include: When the target vehicle is detected to be abnormal by the diagnostic software, a supplier information reading command is sent to the target ECU of the target vehicle by the diagnostic software to obtain the supplier information; The target ECU is an ECU that can be supplied by different suppliers; Using the supplier information, searching for a corresponding supplier number from a supplier mapping set, and using the supplier number to determine a target ECU tag from a plurality of ECU tags in a preset configuration file; Determine a diagnostic function number in a diagnostic function tag in the target ECU tag based on the vendor field value in the target ECU tag and the vendor number; The diagnostic function number is used to determine each diagnostic function name in each diagnostic function label and the corresponding function interface function, so that the function menu composed of each diagnostic function name and the function interface corresponding to the function interface function can be displayed based on the preset display interface of the diagnostic software.

2. The diagnostic function display method according to claim 1, characterized in that: The using the supplier information to search for a corresponding supplier number from a supplier mapping set includes: A supplier mapping set is constructed using a mapping relationship between a supplier name in the supplier information and a corresponding supplier number, so that the corresponding supplier number can be found from the supplier mapping set using the supplier name in the supplier information.

3. The diagnostic function display method according to claim 1, characterized in that: The step of determining the diagnostic function number in the diagnostic function tag in the target ECU tag based on the vendor field value and the vendor number in the target ECU tag comprises: Performing an AND operation on the supplier field value in the target ECU tag and the supplier number 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 tag in the target ECU tag is obtained.

4. The diagnostic function display method according to claim 1, characterized in that: Before determining each diagnostic function name in each diagnostic function tag and the corresponding functional interface function by using the diagnostic function number, the method further includes: By using preset combination rules and based on the ECU name, diagnostic function name and supplier name corresponding to the target ECU, a functional interface function corresponding to each of the diagnostic function names is constructed, and the functional interface function is saved in a dynamic library file.

5. The diagnostic function display method according to claim 4, characterized in that: The method of using the diagnostic function number to determine each diagnostic function name in each diagnostic function tag and a corresponding functional interface function includes: Using the diagnostic function number, determining whether a diagnostic function tag corresponding to the diagnostic function number has a sub-function tag; If the diagnostic function label corresponding to the diagnostic function number has a sub-function label, the diagnostic function label and the function name label and the interface function label in the sub-function label are parsed respectively, and the diagnostic function names and the corresponding function interface functions in the diagnostic function label and the sub-function label are obtained based on the parsing results.

6. The diagnostic function display method according to claim 5, characterized in that: The step of using the diagnostic function number to determine whether the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag includes: If the diagnostic function number is a first preset value, it indicates that the diagnostic function tag corresponding to the diagnostic function number does not have a sub-function tag; If the diagnostic function number is a second preset value, it indicates that the diagnostic function tag corresponding to the diagnostic function number has a sub-function tag.

7. The diagnostic function display method according to any one of claims 1 to 6, characterized in that: The preset display interface based on the diagnostic software displays the function menu composed of the names of the diagnostic functions and the function interface corresponding to the function interface function, including: Obtaining the diagnostic function numbers corresponding to the diagnostic function names, and sorting the diagnostic function names using the diagnostic function numbers corresponding to the diagnostic function names 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 display device, characterized in that: include: A command sending module, used for sending a supplier information reading command to a target ECU of the target vehicle through the diagnostic software to obtain the supplier information when an abnormality of the target vehicle is detected through the diagnostic software; The target ECU is an ECU that can be supplied by different suppliers; a target tag determination module, configured to use the supplier information to search for a corresponding supplier number from a supplier mapping set, and use the supplier number to determine a target ECU tag from a plurality of ECU tags in a preset configuration file; 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 vendor field value and the vendor number in the target ECU tag; A function display module is used to 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.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the diagnostic function display method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the diagnostic function display method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Diagnosis system suitable for different vehicles

    CN107145138A

  • Vehicle fault diagnosis method and device and related equipment

    CN111103868A

  • Configuration method of automobile diagnosis software and related equipment

    CN111474921A

  • Vehicle diagnosis method, system and equipment and readable storage medium

    CN112577760A

  • Vehicle diagnosis method, device, equipment and medium

    CN112729868A