A vehicle diagnostic data generation method, apparatus, device, and storage medium

By obtaining the target configuration word in vehicle diagnostics to determine the list of electronic control units, sending fault code reading commands and calculating fault configuration words, the method of generating vehicle diagnostic data has been optimized, improving diagnostic efficiency and optimizing resource utilization.

CN119882694BActive Publication Date: 2026-07-10LAUNCH TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LAUNCH TECH CO LTD
Filing Date
2025-01-15
Publication Date
2026-07-10

Smart Images

  • Figure CN119882694B_ABST
    Figure CN119882694B_ABST
Patent Text Reader

Abstract

The application discloses a vehicle diagnosis data generation method and device, equipment and a storage medium, and relates to the field of vehicle diagnosis. When diagnosis software is started, a target configuration word obtained through a vehicle gateway is used to determine a first electronic control unit list, and a fault code reading command is sent to corresponding electronic control units based on the first electronic control unit list. The target configuration word is a configuration word representing the installation condition and determined based on the installation condition of the electronic control unit on the target vehicle. A fault configuration word is determined based on the fault code reading command, a preset logic calculation rule and the target configuration word, and the fault configuration word is sent to a server, so that the server determines a vehicle diagnosis data packet by using the fault configuration word. The vehicle diagnosis data packet sent by the server is obtained, and corresponding diagnosis operations are triggered based on the vehicle diagnosis data packet. Therefore, the generation mode of the vehicle diagnosis data can be optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle diagnostics, and in particular to a method, apparatus, device, and storage medium for generating vehicle diagnostic data. Background Technology

[0002] In the field of vehicle diagnostics, with the gradual popularization of ODX (Open Diagnostic Data Exchange) diagnostic technology, many OEMs have adopted it as the main method for vehicle diagnostics.

[0003] However, the current method of generating diagnostic data results in an extremely inefficient and time-consuming diagnostic process. In real-world diagnostic scenarios, users often only want to diagnose ECUs (Electronic Control Units) with fault codes, while those ECUs that are functioning normally do not require diagnostic operations. However, the current standard procedure requires downloading a complete diagnostic data package for the entire vehicle every time a diagnostic is performed, regardless of the ECU's status. This data package typically reaches tens of megabytes in size. This means that a significant amount of time is spent downloading and parsing the data package each time a vehicle is diagnosed. This problem is particularly pronounced in scenarios with poor network conditions, not only making the diagnostic process exceptionally slow and significantly impacting work efficiency, but also consuming substantial network resources and increasing unnecessary costs and time.

[0004] In summary, optimizing the way vehicle diagnostic data is generated is a pressing technical problem that needs to be solved. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide a method, apparatus, device, and storage medium for generating vehicle diagnostic data, which can optimize the generation of vehicle diagnostic data. The specific solution is as follows:

[0006] In a first aspect, this application provides a method for generating vehicle diagnostic data, applied to in-vehicle equipment, including:

[0007] After the diagnostic software starts, it determines the first list of electronic control units (ECUs) by obtaining the target configuration word through the vehicle gateway, and sends a fault code reading command to the corresponding ECUs based on the first list of ECUs; the target configuration word is a configuration word that represents the installation status based on the installation status of the ECUs on the target vehicle.

[0008] Based on the fault code reading command, preset logic calculation rules, and the target configuration word, a fault configuration word is determined and sent to the server so that the server can use the fault configuration word to determine the vehicle diagnostic data packet; the fault configuration word is the configuration word that records the electronic control unit with a fault code in the first electronic control unit list;

[0009] Obtain the vehicle diagnostic data packet sent by the server, and trigger corresponding diagnostic operations based on the vehicle diagnostic data packet.

[0010] Optionally, the step of determining the first electronic control unit list through the target configuration word obtained by the vehicle gateway after the diagnostic software is started includes:

[0011] Once the diagnostic software is started, it sends an electronic control unit acquisition command to the vehicle gateway.

[0012] The vehicle gateway obtains instructions from the electronic control unit to parse the target configuration word, and determines the first electronic control unit list based on the parsing result of the target configuration word.

[0013] Optionally, sending a fault code reading command to the corresponding electronic control unit based on the first electronic control unit list includes:

[0014] The vehicle gateway sends fault code reading commands to the corresponding electronic control units through a polling method based on the first electronic control unit list, so as to perform corresponding reading operations on the electronic control units using the fault code reading commands.

[0015] Optionally, the target configuration word is a configuration word that characterizes the installation status, determined based on the number of electronic control units installed and a preset electronic control unit sequence arrangement rule.

[0016] Optionally, determining the fault configuration word based on the fault code reading command, preset logical calculation rules, and the target configuration word includes:

[0017] Based on the fault code reading command, the electronic control units containing fault codes are determined from the first list of electronic control units;

[0018] The fault configuration word is determined based on the electronic control unit containing the fault code, the target configuration word, and preset logic calculation rules.

[0019] Secondly, this application provides a method for generating vehicle diagnostic data, applied on a server side, including:

[0020] The diagnostic software sends a fault configuration word; the fault configuration word is a configuration word determined by the on-board device based on a fault reading command, preset logical calculation rules, and a target configuration word; wherein, the fault reading command is a fault code reading command sent by the on-board device to the corresponding electronic control unit through the vehicle gateway and using a first electronic control unit list determined based on the target configuration word after the diagnostic software starts; the target configuration word is a configuration word representing the installation status of the electronic control unit on the target vehicle, and the fault configuration word is a configuration word that records the electronic control units with fault codes in the first electronic control unit list;

[0021] The fault configuration word is parsed to obtain a list of second electronic control units;

[0022] The vehicle diagnostic data package is determined based on the second electronic control unit list, and the vehicle diagnostic data package is sent to the diagnostic software so that the diagnostic software can obtain the vehicle diagnostic data package and trigger corresponding diagnostic operations based on the vehicle diagnostic data package.

[0023] Optionally, determining the vehicle diagnostic data package based on the second electronic control unit list includes:

[0024] Based on the second electronic control unit list, the target diagnostic data file and the target open test sequence exchange format file are determined from the preset diagnostic database;

[0025] The target object in the initial vehicle electronic control unit file is initialized using the second electronic control unit list, and the electronic control unit containing the fault code is determined based on the target object, so as to determine the target vehicle electronic control unit file based on the initial vehicle electronic control unit file and the electronic control unit containing the fault code;

[0026] The vehicle diagnostic data package is determined based on the target diagnostic data file, the target open test sequence exchange format file, and the target vehicle electronic control unit file.

[0027] Thirdly, this application provides a vehicle diagnostic data generation device, applied to in-vehicle equipment, comprising:

[0028] The fault reading module is used to determine the first electronic control unit list by obtaining the target configuration word through the vehicle gateway after the diagnostic software is started, and to send a fault code reading command to the corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word that represents the installation status based on the installation status of the electronic control unit on the target vehicle.

[0029] The fault transmission module is used to determine a fault configuration word based on the fault code reading command, preset logical calculation rules, and the target configuration word, and send the fault configuration word to the server so that the server can use the fault configuration word to determine the vehicle diagnostic data packet; the fault configuration word is the configuration word that records the electronic control unit with a fault code in the first electronic control unit list;

[0030] The diagnostic triggering module is used to obtain the vehicle diagnostic data packet sent by the server, and to trigger corresponding diagnostic operations based on the vehicle diagnostic data packet.

[0031] Fourthly, this application provides an electronic device, comprising:

[0032] Memory, used to store computer programs;

[0033] A processor is used to execute the computer program to implement the aforementioned vehicle diagnostic data generation method.

[0034] Fifthly, this application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned vehicle diagnostic data generation method.

[0035] In this application, after the diagnostic software starts, a first list of electronic control units (ECUs) is determined through a target configuration word obtained from the vehicle gateway, and a fault code reading command is sent to the corresponding ECUs based on the first ECU list. The target configuration word is a configuration word representing the installation status of the ECUs on the target vehicle. A fault configuration word is determined based on the fault code reading command, preset logical calculation rules, and the target configuration word, and is sent to the server so that the server can use the fault configuration word to determine the vehicle diagnostic data packet. The fault configuration word is a configuration word that records the ECUs with fault codes in the first ECU list. The vehicle diagnostic data packet sent by the server is obtained, and a corresponding diagnostic operation is triggered based on the vehicle diagnostic data packet. As can be seen from the above, after the diagnostic software starts, this application obtains a target configuration word through the vehicle gateway, determines a first list of ECUs, and sends a fault code reading command to the ECUs. The fault configuration word is determined based on the fault code reading command, preset logical calculation rules, and the target configuration word, and is sent to the server, which then determines the vehicle diagnostic data packet. Finally, the vehicle diagnostic data packet sent by the server is obtained to trigger a corresponding diagnostic operation. In this way, this application can optimize the way vehicle diagnostic data is generated, thereby improving diagnostic efficiency. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0037] Figure 1 This is a flowchart of a vehicle diagnostic data generation method disclosed in this application;

[0038] Figure 2 This is a structural diagram of a vehicle diagnostic data generation system disclosed in this application;

[0039] Figure 3 This is a schematic diagram of a target configuration word disclosed in this application;

[0040] Figure 4 This is a schematic diagram of a fault configuration word disclosed in this application;

[0041] Figure 5 This is a schematic diagram of a target diagnostic data file disclosed in this application;

[0042] Figure 6 This is a schematic diagram of the files packaged in a server-side application as disclosed in this application;

[0043] Figure 7 This is a schematic diagram of a topology node disclosed in this application;

[0044] Figure 8 This is a flowchart of a specific vehicle diagnostic data generation method disclosed in this application;

[0045] Figure 9 This is a schematic diagram of a vehicle diagnostic data generation device for in-vehicle equipment disclosed in this application;

[0046] Figure 10 This is a schematic diagram of a vehicle diagnostic data generation device for use on a server side, as disclosed in this application.

[0047] Figure 11 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0048] 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.

[0049] Current vehicle fault diagnosis procedures often require downloading a complete diagnostic data package for the entire vehicle during each diagnosis, regardless of the electronic control unit's status. This data package typically reaches tens of megabytes in size. This means that a significant amount of time is spent downloading and parsing the data package during each vehicle diagnosis. This problem is particularly pronounced in scenarios with poor network conditions, not only making the diagnostic process extremely slow and significantly impacting work efficiency, but also consuming substantial network resources and increasing unnecessary costs and time. Therefore, this application provides a vehicle diagnostic data generation method, apparatus, device, and storage medium that optimizes the generation of vehicle diagnostic data.

[0050] See Figure 1 and Figure 2 As shown, this embodiment of the invention discloses a method for generating vehicle diagnostic data, applied to in-vehicle equipment, including:

[0051] Step S11: After the diagnostic software starts, it determines the first electronic control unit list through the target configuration word obtained by the vehicle gateway, and sends a fault code reading command to the corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word that represents the installation status based on the installation status of the electronic control unit on the target vehicle.

[0052] In this embodiment, after the diagnostic software starts, it sends an electronic control unit (ECU) retrieval command to the vehicle gateway. The vehicle gateway then parses the target configuration word (EcuConfigCode) based on the ECU retrieval command and determines a first list of ECUs based on the parsing result. This first list represents the ECUs included in the vehicle.

[0053] It should be noted that the target configuration word is a configuration word representing the installation status, determined based on the number of electronic control units (ECUs) installed and a preset ECU sequence arrangement rule. The number of ECUs installed reflects the total number of ECUs actually installed in the vehicle. The preset ECU sequence arrangement rule refers to the pre-defined rules governing the position of each ECU in the target configuration word. Through this rule, each ECU has a specific position and representation in the configuration word. It can be understood that one byte has 8 bits, and each bit can represent a specific ECU; therefore, the state of each bit indicates whether a particular ECU exists in a particular vehicle. For example, as... Figure 3As shown, assuming a bit is "1" to indicate that the vehicle contains this electronic control unit (ECU), and a bit is "0" to indicate that the vehicle does not contain this ECU. That is, if a vehicle has 8 ECUs, then one byte is needed to represent the target configuration word indicating the installation status of the ECUs. If the order of the ECUs in the target configuration word is set as EMS (Engine Management System), VCU (Vehicle Control Unit), GW (Gateway), BCM (Body Control Module), TCU (Transmission Control Unit), ESC (Electronic Stability Control), FCS (Fuel Cell System), and BMSH (Battery Management System for Hybrid), and the vehicle does not have VCU and BMSH, then the target configuration word in binary is 1011 1110, and in hexadecimal it is 0xBE.

[0054] Furthermore, after obtaining the first list of electronic control units (ECUs), the vehicle gateway sends fault code reading commands to the corresponding ECUs via a polling method based on the first list, so as to perform corresponding reading operations on the ECUs using the fault code reading commands. It should be noted that fault codes are codes analyzed by the vehicle's ECUs after a vehicle malfunction, mainly used to reflect problems in the vehicle's internal systems. Moreover, the polling method is an orderly and efficient communication strategy, ensuring that each ECU receives the fault code reading command sequentially, avoiding information transmission chaos and omissions.

[0055] In this embodiment, by sending fault code reading commands, the vehicle gateway can perform corresponding reading operations on each electronic control unit (ECU). Upon receiving the command, the ECU will feed back its stored fault code information to the vehicle gateway according to a preset communication protocol and instruction requirements. The fault code reading command can be a 19 service command, where 19 is the service ID for UDS (Unified Diagnostic Services) diagnostics, and the 19 service is specifically used to read fault codes from vehicle ECUs.

[0056] Step S12: Determine the fault configuration word based on the fault code reading command, the preset logic calculation rules, and the target configuration word, and send the fault configuration word to the server so that the server can use the fault configuration word to determine the vehicle diagnostic data packet; the fault configuration word is the configuration word of the electronic control unit that records the fault code in the first electronic control unit list.

[0057] In this embodiment, the electronic control units containing fault codes in the first electronic control unit list are determined based on the fault code reading command, and the fault configuration word (i.e., EcuConfigCodeWithDtc) is determined based on the electronic control unit containing the fault code, the target configuration word, and preset logical calculation rules. For example, as Figure 4 As shown, in the process of determining the fault configuration word, the bits representing electronic control units without fault codes are set to "0" and the bits containing fault codes are set to "1" according to the order of electronic control units defined in the target configuration word. Then, an "AND" operation is performed with the target configuration word to obtain the corresponding fault configuration word.

[0058] Step S13: Obtain the vehicle diagnostic data packet sent by the server, and trigger corresponding diagnostic operations based on the vehicle diagnostic data packet.

[0059] In this embodiment, the diagnostic software obtains the vehicle diagnostic data packet (PDX, Packaged ODX, i.e., packaged ODX data) sent by the server, parses the vehicle diagnostic data packet, and obtains the relevant electronic control unit information in the diagnostic data packet through the target object (i.e., LOGICAL-LINK) in the target vehicle electronic control unit file (i.e., ODX-V file), and forms the vehicle topology with this information. The target vehicle electronic control unit file can be as follows: Figure 5 As shown, the files in the vehicle diagnostic data package can be as follows: Figure 6 As shown, the vehicle topology can be as follows: Figure 7 As shown. It should be noted that, Figure 7In this code, BX11-A2 is the vehicle model designation, VIN (Vehicle Identification Number) is LB6512FG541651462, Hybrid_CAN is the hybrid power domain, Chassis_CAN is the chassis domain, and Body_CAN is the body domain. Different CANs (Controller Area Networks) represent different domains, and the electronic control units in the vehicle can be divided into different domains according to their functions. Next, the diagnostic software parses the ODX file and the target open test sequence exchange format file (OTX file), and determines the corresponding diagnostic data and diagnostic scripts based on the parsing results, triggering corresponding diagnostic operations according to the diagnostic data and diagnostic scripts. Furthermore, diagnostic operations include, but are not limited to, generating diagnostic reports and providing corresponding fault solutions.

[0060] As can be seen from the above, after the diagnostic software starts, this application obtains the target configuration word through the vehicle gateway, determines the list of first electronic control units, and sends a fault code reading command to the electronic control units; based on the fault code reading command, preset logical calculation rules, and the target configuration word, it determines the fault configuration word and sends it to the server, which then determines the vehicle diagnostic data packet accordingly; finally, it obtains the vehicle diagnostic data packet sent by the server to trigger the corresponding diagnostic operation. In this way, this application can optimize the generation method of vehicle diagnostic data, thereby improving the efficiency of diagnosis.

[0061] Further, see Figure 8 As shown in the illustration, this application also provides a vehicle diagnostic data generation method, applied to a server, including:

[0062] Step S21: Obtain the fault configuration word sent by the diagnostic software; the fault configuration word is a configuration word determined by the vehicle device based on the fault reading command, preset logical calculation rules, and target configuration word; wherein, the fault reading command is a fault code reading command sent by the vehicle device to the corresponding electronic control unit through the vehicle gateway and using the first electronic control unit list determined based on the target configuration word after the diagnostic software is started; the target configuration word is a configuration word representing the installation status of the electronic control unit on the target vehicle, and the fault configuration word is a configuration word that records the electronic control units with fault codes in the first electronic control unit list.

[0063] Step S22: Parse the fault configuration word to obtain the second electronic control unit list.

[0064] In this embodiment, the server uses a specific parsing algorithm to parse the acquired fault configuration words. Since the fault configuration words are generated according to certain rules and formats, the server needs to parse their content according to these rules. During the parsing process, the server may analyze the fault configuration words according to preset logical rules and algorithms to determine the second electronic control unit (ECU) list. Furthermore, the second ECU list provides an important basis for subsequent diagnostic data processing; the server can use this list to further determine the relevant content information of the vehicle diagnostic data package.

[0065] Step S23: Determine the vehicle diagnostic data package based on the second electronic control unit list, and send the vehicle diagnostic data package to the diagnostic software so that the diagnostic software can obtain the vehicle diagnostic data package and trigger corresponding diagnostic operations based on the vehicle diagnostic data package.

[0066] In this embodiment, the target diagnostic data file (i.e., an ODX-d file, a file used to describe diagnostic data) and the target Open Test Sequence Exchange Format file (i.e., an OTX file) are determined from a preset diagnostic database based on the second electronic control unit list. Furthermore, the process of determining the relevant files from the preset diagnostic database based on the second electronic control unit list is performed automatically by the server, making it more convenient for users to diagnose faulty vehicles and systems. Additionally, the target objects in the initial vehicle electronic control unit file are initialized using the second electronic control unit list, and electronic control units containing fault codes are determined based on the target objects. Finally, the target vehicle electronic control unit file is determined based on the initial vehicle electronic control unit file and the electronic control units containing fault codes.

[0067] Ultimately, in this embodiment, the vehicle diagnostic data package is determined based on the target diagnostic data file, the target open test sequence exchange format file, and the target vehicle electronic control unit file.

[0068] As can be seen from the above, this application obtains the fault configuration word through the server, parses it to obtain the list of second electronic control units, and then determines the vehicle diagnostic data package and sends it to the diagnostic software. After the diagnostic software starts, the on-board equipment determines the fault configuration word based on the fault reading command, preset logical calculation rules, and target configuration word, providing the server with accurate diagnostic basis. The server's parsing of the fault configuration word further clarifies the fault information, laying the foundation for subsequent diagnostic data processing. By determining the vehicle diagnostic data package based on the list of second electronic control units, the server can selectively integrate relevant data, making the diagnostic data package more concise and efficient. In this way, this application not only improves diagnostic efficiency but also optimizes resource utilization.

[0069] Accordingly, see Figure 9As shown, this application provides a vehicle diagnostic data generation device, applied to in-vehicle equipment, including:

[0070] The fault reading module 11 is used to determine the first electronic control unit list by obtaining the target configuration word through the vehicle gateway after the diagnostic software is started, and to send a fault code reading command to the corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word that represents the installation status based on the installation status of the electronic control unit on the target vehicle.

[0071] The fault sending module 12 is used to determine a fault configuration word based on the fault code reading command, preset logical calculation rules and the target configuration word, and send the fault configuration word to the server so that the server can use the fault configuration word to determine the vehicle diagnostic data packet; the fault configuration word is the configuration word that records the electronic control unit with a fault code in the first electronic control unit list;

[0072] The diagnostic trigger module 13 is used to obtain the vehicle diagnostic data packet sent by the server, and to trigger corresponding diagnostic operations based on the vehicle diagnostic data packet.

[0073] As can be seen from the above, after the diagnostic software starts, this application obtains the target configuration word through the vehicle gateway, determines the list of first electronic control units, and sends a fault code reading command to the electronic control units; based on the fault code reading command, preset logical calculation rules, and the target configuration word, it determines the fault configuration word and sends it to the server, which then determines the vehicle diagnostic data packet accordingly; finally, it obtains the vehicle diagnostic data packet sent by the server to trigger the corresponding diagnostic operation. In this way, this application can optimize the generation method of vehicle diagnostic data, thereby improving the efficiency of diagnosis.

[0074] In one specific embodiment, the fault reading module 11 specifically includes:

[0075] The instruction sending unit is used to send an electronic control unit acquisition instruction to the vehicle gateway through the diagnostic software after the diagnostic software is started.

[0076] The list determination unit is used to parse the target configuration word based on the instruction obtained by the vehicle gateway from the electronic control unit, and determine the first electronic control unit list based on the parsing result of the target configuration word.

[0077] In one specific embodiment, the fault reading module 11 specifically includes:

[0078] The fault reading unit is used to send a fault code reading command to the corresponding electronic control unit through the vehicle gateway based on the first electronic control unit list in a polling manner, so as to perform corresponding reading operations on the electronic control unit using the fault code reading command.

[0079] In one specific implementation, the target configuration word is a configuration word representing the installation status, determined based on the number of electronic control units installed and a preset electronic control unit sequence arrangement rule.

[0080] In one specific embodiment, the fault transmission module 12 specifically includes:

[0081] The fault determination unit is used to determine the electronic control units containing fault codes in the first electronic control unit list based on the fault code reading command.

[0082] The configuration word determination unit is used to determine the fault configuration word based on the electronic control unit containing the fault code, the target configuration word, and preset logic calculation rules.

[0083] See Figure 10 As shown in the figure, this application provides a vehicle diagnostic data generation device, applied on a server side, including:

[0084] The configuration word acquisition module 21 is used to acquire the fault configuration word sent by the diagnostic software. The fault configuration word is a configuration word determined by the vehicle-mounted device based on the fault reading command, preset logical calculation rules, and target configuration word. The fault reading command is a fault code reading command sent by the vehicle-mounted device to the corresponding electronic control unit through the vehicle gateway and using the first electronic control unit list determined based on the target configuration word after the diagnostic software is started. The target configuration word is a configuration word representing the installation status of the electronic control unit on the target vehicle, and the fault configuration word is a configuration word that records the electronic control units with fault codes in the first electronic control unit list.

[0085] Configuration word parsing module 22 is used to parse the fault configuration word to obtain a second electronic control unit list;

[0086] The data sending module 23 is used to determine the vehicle diagnostic data packet based on the second electronic control unit list, and send the vehicle diagnostic data packet to the diagnostic software so that the diagnostic software can obtain the vehicle diagnostic data packet and trigger corresponding diagnostic operations based on the vehicle diagnostic data packet.

[0087] As can be seen from the above, this application obtains the fault configuration word through the server, parses it to obtain the list of second electronic control units, and then determines the vehicle diagnostic data package and sends it to the diagnostic software. After the diagnostic software starts, the on-board equipment determines the fault configuration word based on the fault reading command, preset logical calculation rules, and target configuration word, providing the server with accurate diagnostic basis. The server's parsing of the fault configuration word further clarifies the fault information, laying the foundation for subsequent diagnostic data processing. By determining the vehicle diagnostic data package based on the list of second electronic control units, the server can selectively integrate relevant data, making the diagnostic data package more concise and efficient. In this way, this application not only improves diagnostic efficiency but also optimizes resource utilization.

[0088] In one specific embodiment, the data sending module 23 specifically includes:

[0089] The first file determination unit is used to determine the target diagnostic data file and the target open test sequence exchange format file from the preset diagnostic database based on the second electronic control unit list;

[0090] The second file determination unit is used to initialize the target object in the initial vehicle electronic control unit file using the second electronic control unit list, and determine the electronic control unit containing the fault code based on the target object, so as to determine the target vehicle electronic control unit file based on the initial vehicle electronic control unit file and the electronic control unit containing the fault code;

[0091] The data determination unit is used to determine the vehicle diagnostic data package based on the target diagnostic data file, the target open test sequence exchange format file, and the target vehicle electronic control unit file.

[0092] Furthermore, embodiments of this application also disclose an electronic device, Figure 11 This is a structural diagram of an electronic device 30 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application. The electronic device 30 may specifically include: at least one processor 31, at least one memory 32, a power supply 33, a communication interface 34, an input / output interface 35, and a communication bus 36. The memory 32 stores a computer program, which is loaded and executed by the processor 31 to implement the relevant steps in the vehicle diagnostic data generation method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0093] In this embodiment, the power supply 33 is used to provide operating voltage for each hardware device on the electronic device 30; the communication interface 34 can create a data transmission channel between the electronic device 30 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 35 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.

[0094] In addition, the memory 32, 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 an operating system 331, computer programs 332, etc., and the storage method can be temporary storage or permanent storage.

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

[0096] 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 vehicle diagnostic data generation method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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.

[0101] 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 method for generating vehicle diagnostic data, characterized in that, Applications in vehicle-mounted equipment, including: After the diagnostic software starts, it determines the first list of electronic control units (ECUs) by obtaining the target configuration word through the vehicle gateway, and sends a fault code reading command to the corresponding ECUs based on the first list of ECUs; the target configuration word is a configuration word that represents the installation status based on the installation status of the ECUs on the target vehicle. Based on the fault code reading command, preset logic calculation rules, and the target configuration word, a fault configuration word is determined and sent to the server so that the server can use the fault configuration word to determine the vehicle diagnostic data packet; the fault configuration word is the configuration word that records the electronic control unit with a fault code in the first electronic control unit list; Obtain the vehicle diagnostic data packet sent by the server, and trigger corresponding diagnostic operations based on the vehicle diagnostic data packet; The process of determining the vehicle diagnostic data package includes: the server determining a target diagnostic data file and a target open test sequence exchange format file from a preset diagnostic database based on a second electronic control unit (ECU) list; initializing target objects in the initial vehicle ECU file using the second ECU list, and determining ECUs containing fault codes based on the target objects, thereby determining a target vehicle ECU file based on the initial vehicle ECU file and the ECUs containing fault codes; determining the vehicle diagnostic data package based on the target diagnostic data file, the target open test sequence exchange format file, and the target vehicle ECU file; the second ECU list is a list obtained by parsing the fault configuration words.

2. The vehicle diagnostic data generation method according to claim 1, characterized in that, When the diagnostic software starts, the first electronic control unit list is determined through the target configuration word obtained from the vehicle gateway, including: Once the diagnostic software is started, it sends an electronic control unit acquisition command to the vehicle gateway. The vehicle gateway obtains instructions from the electronic control unit to parse the target configuration word, and determines the first electronic control unit list based on the parsing result of the target configuration word.

3. The vehicle diagnostic data generation method according to claim 1, characterized in that, The step of sending a fault code reading command to the corresponding electronic control unit based on the first electronic control unit list includes: The vehicle gateway sends fault code reading commands to the corresponding electronic control units through a polling method based on the first electronic control unit list, so as to perform corresponding reading operations on the electronic control units using the fault code reading commands.

4. The vehicle diagnostic data generation method according to any one of claims 1 to 3, characterized in that, The target configuration word is a configuration word that characterizes the installation status, determined based on the number of electronic control units installed and a preset electronic control unit sequence arrangement rule.

5. The vehicle diagnostic data generation method according to claim 1, characterized in that, The process of determining the fault configuration word based on the fault code reading command, preset logical calculation rules, and the target configuration word includes: Based on the fault code reading command, the electronic control units containing fault codes are determined from the first list of electronic control units; The fault configuration word is determined based on the electronic control unit containing the fault code, the target configuration word, and preset logic calculation rules.

6. A method for generating vehicle diagnostic data, characterized in that, Applied to the server side, including: The diagnostic software sends a fault configuration word; the fault configuration word is a configuration word determined by the on-board device based on a fault reading command, preset logical calculation rules, and a target configuration word; wherein, the fault reading command is a fault code reading command sent by the on-board device to the corresponding electronic control unit through the vehicle gateway and using the first electronic control unit list determined based on the target configuration word after the diagnostic software starts; the target configuration word is a configuration word representing the installation status of the electronic control unit on the target vehicle, and the fault configuration word is a configuration word that records the electronic control units with fault codes in the first electronic control unit list; The fault configuration word is parsed to obtain a list of second electronic control units; The vehicle diagnostic data package is determined based on the second electronic control unit list, and the vehicle diagnostic data package is sent to the diagnostic software so that the diagnostic software can obtain the vehicle diagnostic data package and trigger corresponding diagnostic operations based on the vehicle diagnostic data package; The step of determining the vehicle diagnostic data package based on the second electronic control unit list includes: Based on the second electronic control unit list, the target diagnostic data file and the target open test sequence exchange format file are determined from the preset diagnostic database; The target object in the initial vehicle electronic control unit file is initialized using the second electronic control unit list, and the electronic control unit containing the fault code is determined based on the target object, so as to determine the target vehicle electronic control unit file based on the initial vehicle electronic control unit file and the electronic control unit containing the fault code; The vehicle diagnostic data package is determined based on the target diagnostic data file, the target open test sequence exchange format file, and the target vehicle electronic control unit file.

7. A vehicle diagnostic data generation device, characterized in that, Applications in vehicle-mounted equipment, including: The fault reading module is used to determine the first electronic control unit list by obtaining the target configuration word through the vehicle gateway after the diagnostic software is started, and to send a fault code reading command to the corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word that represents the installation status based on the installation status of the electronic control unit on the target vehicle. The fault transmission module is used to determine a fault configuration word based on the fault code reading command, preset logical calculation rules, and the target configuration word, and send the fault configuration word to the server so that the server can use the fault configuration word to determine the vehicle diagnostic data packet; the fault configuration word is the configuration word that records the electronic control unit with a fault code in the first electronic control unit list; The diagnostic triggering module is used to obtain the vehicle diagnostic data packet sent by the server, and to trigger corresponding diagnostic operations based on the vehicle diagnostic data packet; The process of determining the vehicle diagnostic data package includes: the server determining a target diagnostic data file and a target open test sequence exchange format file from a preset diagnostic database based on a second electronic control unit (ECU) list; initializing target objects in the initial vehicle ECU file using the second ECU list, and determining ECUs containing fault codes based on the target objects, thereby determining a target vehicle ECU file based on the initial vehicle ECU file and the ECUs containing fault codes; determining the vehicle diagnostic data package based on the target diagnostic data file, the target open test sequence exchange format file, and the target vehicle ECU file; the second ECU list is a list obtained by parsing the fault configuration words.

8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the vehicle diagnostic data generation method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, Used to store a computer program; wherein, when the computer program is executed by a processor, it implements the vehicle diagnostic data generation method as described in any one of claims 1 to 6.