Vehicle diagnosis data generation method and device, equipment and storage medium
By using target configuration words and fault configuration words in the vehicle diagnostic system, the generation of electronic control unit lists and diagnostic data packets is optimized, and the problem of inefficient diagnosis in the prior art is solved, and faster and more efficient vehicle diagnosis is achieved.
Patent Information
- Application Number
- CN202510068541.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-01-15
AI Technical Summary
The existing vehicle diagnostic data generation method results in inefficient and time-consuming diagnosis process, especially when the network is in poor condition, which will slow the diagnosis process, affect work efficiency and increase costs.
The target configuration word is obtained through the vehicle gateway, the electronic control unit list is determined, and the fault code reading command is sent. The fault configuration word is determined based on the read command, logical calculation rules and target configuration word, and sent to the server to obtain the vehicle diagnostic data packet.
The generation method of vehicle diagnostic data is optimized, the download and parsing time of data packets is reduced, the diagnostic efficiency is improved, and the consumption and cost of network resources are reduced.
Smart Images

Figure CN119882694A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle diagnosis, and in particular to a method, device, equipment and storage medium for generating vehicle diagnostic data. Background Art
[0002] In the field of vehicle diagnosis, with the gradual popularization of ODX (Open Diagnostic Data Exchange) diagnostic technology, many OEMs have adopted it as the main method of vehicle diagnosis.
[0003] However, the current way of generating diagnostic data makes the entire diagnostic process extremely inefficient and time-consuming. In actual diagnostic scenarios, users often only want to diagnose ECUs (Electronic Control Units) with fault codes, and do not need to perform diagnostic operations on those ECUs that are operating normally. However, the current conventional process requires that every time a diagnosis is performed, regardless of the status of the ECU, a complete diagnostic data package for the entire vehicle must be downloaded, and the data volume can generally reach tens of megabytes. This means that every time a vehicle is diagnosed, a lot of time is spent on downloading and parsing the data package. This problem is particularly prominent in scenarios with poor network conditions, which will not only make the diagnostic process extremely slow and greatly affect work efficiency, but also consume a lot of additional network resources, increasing unnecessary cost expenditures and time costs.
[0004] In summary, how to optimize the generation method of vehicle diagnostic data is a technical 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 vehicle diagnostic data generation method, device, equipment and storage medium, which can optimize the generation method of vehicle diagnostic data. The specific scheme is as follows:
[0006] In a first aspect, the present application provides a vehicle diagnostic data generation method, which is applied to an on-board device, comprising:
[0007] When the diagnostic software is started, the first electronic control unit list is determined through the target configuration word obtained by the vehicle gateway, and a fault code reading command is sent to the corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word representing the installation condition determined based on the installation condition of the electronic control unit on the target vehicle;
[0008] Determine a fault configuration word based on the fault code reading command, the preset logic calculation rule and the target configuration word, and send the fault configuration word to the server so that the server determines the vehicle diagnostic data packet using the fault configuration word; the fault configuration word is a configuration word of the electronic control unit that records the fault code in the first electronic control unit list;
[0009] The vehicle diagnostic data packet sent by the server is obtained to trigger a corresponding diagnostic operation based on the vehicle diagnostic data packet.
[0010] Optionally, when the diagnostic software is started, determining the first electronic control unit list through the target configuration word obtained by the vehicle gateway includes:
[0011] When the diagnostic software is started, an electronic control unit acquisition instruction is sent to the vehicle gateway through the diagnostic software;
[0012] The target configuration word is parsed based on the electronic control unit acquisition instruction through the vehicle gateway, and a first electronic control unit list is determined based on the parsing result of the target configuration word.
[0013] Optionally, the sending a fault code reading command to a corresponding electronic control unit based on the first electronic control unit list includes:
[0014] The vehicle gateway sends a fault code reading command to the corresponding electronic control unit in a polling manner based on the first electronic control unit list, so as to perform a corresponding reading operation on the electronic control unit using the fault code reading command.
[0015] Optionally, the target configuration word is a configuration word characterizing the installation situation that is determined based on the number of installed electronic control units and a preset electronic control unit sequence arrangement rule.
[0016] Optionally, the determining the fault configuration word based on the fault code reading command, a preset logic calculation rule and the target configuration word includes:
[0017] Determine an electronic control unit containing a fault code in the first electronic control unit list based on the fault code reading command;
[0018] The fault configuration word is determined based on the electronic control unit containing the fault code, the target configuration word and a preset logic calculation rule.
[0019] In a second aspect, the present application provides a vehicle diagnostic data generation method, which is applied to a server, comprising:
[0020] Obtaining a fault configuration word sent by the diagnostic software; the fault configuration word is a configuration word determined by the vehicle-mounted device based on a fault reading command, a preset logic calculation rule and a target configuration word; wherein 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 characterizing the installation condition determined based on the installation condition of the electronic control unit on the target vehicle, and the fault configuration word is a configuration word recording the electronic control unit having a fault code in the first electronic control unit list;
[0021] Parsing the fault configuration word to obtain a second electronic control unit list;
[0022] A vehicle diagnostic data packet is determined based on the second electronic control unit list, and the vehicle diagnostic data packet is sent to the diagnostic software so that the diagnostic software obtains the vehicle diagnostic data packet and triggers corresponding diagnostic operations based on the vehicle diagnostic data packet.
[0023] Optionally, determining the vehicle diagnostic data packet based on the second electronic control unit list includes:
[0024] determining a target diagnostic data file and a target open test sequence interchange format file from a preset diagnostic database based on the second electronic control unit list;
[0025] Initializing a target object in an initial vehicle electronic control unit file using the second electronic control unit list, and determining an electronic control unit containing a fault code based on the target object, so as to determine a 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] A vehicle diagnostic data package is determined based on the target diagnostic data file, the target open test sequence interchange format file, and the target vehicle electronic control unit file.
[0027] In a third aspect, the present application provides a vehicle diagnostic data generating device, which is applied to an on-board device, including:
[0028] A fault reading module, used for determining a first electronic control unit list through a target configuration word obtained by a vehicle gateway after the diagnostic software is started, and sending a fault code reading command to a corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word indicating the installation condition determined based on the installation condition of the electronic control unit on the target vehicle;
[0029] a fault sending module, configured to determine a fault configuration word based on the fault code reading command, a preset logic calculation rule and the target configuration word, and send the fault configuration word to a server, so that the server determines a vehicle diagnostic data packet using the fault configuration word; the fault configuration word is a configuration word of an electronic control unit that records a fault code in the first electronic control unit list;
[0030] The diagnosis trigger module is used to obtain the vehicle diagnosis data packet sent by the server to trigger a corresponding diagnosis operation based on the vehicle diagnosis data packet.
[0031] In a fourth aspect, the present application provides an electronic device, including:
[0032] Memory, used to store computer programs;
[0033] The processor is used to execute the computer program to implement the aforementioned vehicle diagnostic data generating method.
[0034] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned vehicle diagnostic data generation method is implemented.
[0035] In this application, when the diagnostic software is started, the target configuration word obtained by the vehicle gateway is used to determine the first electronic control unit list, and a fault code reading command is sent to the corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word that characterizes the installation status determined based on the installation status of the electronic control unit on the target vehicle; the fault configuration word is determined based on the fault code reading command, the preset logical calculation rule and the target configuration word, and the fault configuration word is sent to the server, so that the server uses the fault configuration word to determine the vehicle diagnostic data packet; the fault configuration word is a configuration word that records the electronic control unit with a fault code in the first electronic control unit list; the vehicle diagnostic data packet sent by the server is obtained to trigger the corresponding diagnostic operation based on the vehicle diagnostic data packet. As can be seen from the above, after the diagnostic software is started, the application obtains the target configuration word through the vehicle gateway, determines the first electronic control unit list, and sends a fault code reading command to the electronic control unit; determines the fault configuration word based on the fault code reading command, the preset logical calculation rule and the target configuration word, and sends the fault configuration word to the server, and the server determines the vehicle diagnostic data packet accordingly; finally, the vehicle diagnostic data packet sent by the server is obtained to trigger the corresponding diagnostic operation. In this way, the present application can optimize the way vehicle diagnostic data is generated, thereby improving diagnostic efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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.
[0037] Figure 1 A flow chart of a vehicle diagnostic data generating method disclosed in this application;
[0038] Figure 2 A structural diagram of a vehicle diagnostic data generation system disclosed in this application;
[0039] Figure 3 A schematic diagram of a target configuration word disclosed in this application;
[0040] Figure 4 A schematic diagram of a fault configuration word disclosed in this application;
[0041] Figure 5 A schematic diagram of a target diagnostic data file disclosed in this application;
[0042] Figure 6 A schematic diagram of various files packaged by a server disclosed in this application;
[0043] Figure 7 A schematic diagram of a topological node disclosed in this application;
[0044] Figure 8 A flowchart of a specific vehicle diagnostic data generating method disclosed in this application;
[0045] Fig. 9 A schematic diagram of the structure of a vehicle diagnostic data generating device for vehicle-mounted equipment disclosed in the present application;
[0046] Fig.10 This is a schematic diagram of the structure of a vehicle diagnostic data generating device applied to a server disclosed in the present application;
[0047] Fig.11 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0048] 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.
[0049] The current vehicle fault diagnosis process often requires that a complete diagnostic data packet for the entire vehicle must be downloaded at each diagnosis, regardless of the status of the electronic control unit, and the data volume can generally reach tens of megabytes. This means that every time a vehicle diagnosis is performed, a lot of time is required to download and parse the data packet. Especially in scenarios with poor network conditions, this problem is more prominent, not only making the diagnostic process abnormally slow and greatly affecting work efficiency, but also consuming a lot of additional network resources, increasing unnecessary cost expenditures and time costs. To this end, the present application provides a vehicle diagnostic data generation method, device, equipment, and storage medium that can optimize the way vehicle diagnostic data is generated.
[0050] See also Figure 1 and Figure 2 As shown, an embodiment of the present invention discloses a vehicle diagnostic data generation method, which is applied to a vehicle-mounted device, comprising:
[0051] Step S11, when the diagnostic software is started, the target configuration word obtained through the vehicle gateway is used to determine the first electronic control unit list, and a fault code reading command is sent to the corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word that characterizes the installation status and is determined based on the installation status of the electronic control unit on the target vehicle.
[0052] In this embodiment, when the diagnostic software is started, the diagnostic software sends an electronic control unit acquisition instruction to the vehicle gateway, and then the vehicle gateway parses the target configuration word (i.e., EcuConfigCode) based on the electronic control unit acquisition instruction, and determines the first electronic control unit list based on the parsing result of the target configuration word. Among them, the electronic control units included in the vehicle are represented in the first electronic control unit list.
[0053] It should be noted that the target configuration word is a configuration word that characterizes the installation situation and is determined based on the number of installed electronic control units and the preset electronic control unit sequence arrangement rules. Among them, the number of installed electronic control units reflects the total number of electronic control units actually installed in the vehicle. The preset electronic control unit sequence arrangement rules refer to the pre-set rules for the positions of each electronic control unit of the vehicle in the target configuration word. Through this rule, each electronic control unit has its specific position and representation in the configuration word. It can be understood that 1 byte (ie byte) has 8 bits (ie bite), and each bit can represent a certain electronic control unit, so the state of each bit can indicate whether a certain electronic control unit exists in a certain car. For example, if Figure 3As shown, if a certain bit is "1", it means that the vehicle contains this electronic control unit, and if the bit is "0", it means that the vehicle does not contain this electronic control unit. That is, if there are 8 electronic control units in a vehicle, then 1 byte is required to represent the target configuration word that represents the installation status of the electronic control unit, and if the order of the electronic control units in the target configuration word is set to 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), BMSH (Battery Management System for Hybrid), and there is no VCU and BMSH in the vehicle, then the target configuration word is 1011 1110 in binary and 0xBE in hexadecimal.
[0054] Furthermore, after obtaining the first electronic control unit list, the vehicle gateway sends a fault code reading command to the corresponding electronic control unit based on the first electronic control unit list through polling, so as to perform corresponding reading operations on the electronic control unit using the fault code reading command. It should be noted that the fault code is a code analyzed by the vehicle electronic control unit after a vehicle failure, which is mainly used to reflect problems in the vehicle's internal system. Moreover, the polling method is an orderly and efficient communication strategy, which ensures that each electronic control unit can receive the fault code reading command in turn, avoiding confusion and omissions in information transmission.
[0055] In this embodiment, by sending fault code reading commands, the vehicle gateway can use these commands to perform corresponding reading operations on each electronic control unit. After receiving the command, the electronic control unit will feed back the fault code information stored in itself to the vehicle gateway in accordance with the preset communication protocol and instruction requirements. Among them, the fault code reading command can be a 19 service command, 19 is the service ID of UDS (Unified Diagnostic Services) diagnosis, and 19 service is a service specifically used to read the fault code of the vehicle electronic control unit.
[0056] Step S12, determining a fault configuration word based on the fault code reading command, preset logic calculation rules and the target configuration word, and sending 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 a configuration word for recording the electronic control unit with a fault code in the first electronic control unit list.
[0057] In this embodiment, the electronic control unit containing the fault code in the first electronic control unit list is determined based on the fault code reading command, and the fault configuration word (ie, EcuConfigCodeWithDtc) is determined based on the electronic control unit containing the fault code, the target configuration word, and the preset logic calculation rule. Figure 4 As shown, in the process of determining the fault configuration word, the bit position represented by the electronic control unit without a fault code is set to "0" and the bit position containing the fault code is set to "1" in the order of the electronic control units defined in the target configuration word, and then an "AND" operation is performed with the target configuration word to obtain the corresponding fault configuration word.
[0058] Step S13: Acquire the vehicle diagnostic data packet sent by the server to trigger a corresponding diagnostic operation 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, and parses the vehicle diagnostic data packet, 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. Among them, 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 Figure 7 It should be noted that Figure 7In the example, BX11-A2 is the model code, VIN (Vehicle Identification Number) is LB6512FG541651462, Hybrid_CAN is the hybrid domain, Chassis_CAN is the chassis domain, Body_CAN is the body domain, and different CANs (Controller Area Networks) represent different domains. The electronic control units in the vehicle can be divided into different domains according to their functional differences. Next, the diagnostic software parses the ODX file and the target open test sequence exchange format file (also known as the OTX file), and determines the corresponding diagnostic data and diagnostic script based on the parsed results to trigger the corresponding diagnostic operations based on the diagnostic data and diagnostic scripts. In addition, the 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 is started, the application obtains the target configuration word through the vehicle gateway, determines the first electronic control unit list, and sends a fault code reading command to the electronic control unit; determines the fault configuration word based on the fault code reading command, the preset logic calculation rules and the target configuration word, and sends the fault configuration word to the server, which determines the vehicle diagnostic data packet accordingly; finally, obtains the vehicle diagnostic data packet sent by the server to trigger the corresponding diagnostic operation. In this way, the application can optimize the generation method of vehicle diagnostic data, thereby improving the efficiency of diagnosis.
[0061] For further information, see Figure 8 As shown, the embodiment of the present application also provides a vehicle diagnostic data generation method, which is applied to the server, including:
[0062] Step S21, obtaining the fault configuration word sent by the diagnostic software; the fault configuration word is a configuration word determined by the on-board device based on a fault reading command, preset logic 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 is started; the target configuration word is a configuration word characterizing the installation condition determined based on the installation condition of the electronic control unit on the target vehicle, and the fault configuration word is a configuration word recording the electronic control unit having a fault code in the first electronic control unit list.
[0063] Step S22: parse the fault configuration word to obtain a second electronic control unit list.
[0064] In this embodiment, the server parses the acquired fault configuration word through a specific parsing algorithm. Since the fault configuration word is generated according to certain rules and formats, the server needs to parse the content according to these rules. During the parsing process, the server may analyze the fault configuration word according to preset logical rules and algorithms, and then determine the second electronic control unit list. The second electronic control unit list provides an important basis for subsequent diagnostic data processing, and the server can further determine the relevant content information of the vehicle diagnostic data packet based on this list.
[0065] Step S23, determining a vehicle diagnostic data packet based on the second electronic control unit list, and sending the vehicle diagnostic data packet to the diagnostic software, so that the diagnostic software obtains the vehicle diagnostic data packet and triggers corresponding diagnostic operations based on the vehicle diagnostic data packet.
[0066] In this embodiment, the target diagnostic data file (i.e., ODX-d file, a file for describing diagnostic data) and the target open test sequence exchange format file (i.e., OTX file) are determined from the preset diagnostic database based on the second electronic control unit list. In addition, the process of determining the relevant files from the preset diagnostic database based on the second electronic control unit list is automatically performed by the server, allowing users to diagnose faulty vehicles and systems more conveniently. In addition, 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.
[0067] Finally, in this embodiment, a vehicle diagnostic data packet 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, the present application obtains the fault configuration word through the server, obtains the second electronic control unit list through parsing, and then determines the vehicle diagnostic data packet and sends it to the diagnostic software. After the diagnostic software is started, the on-board equipment determines the fault configuration word based on the fault reading command, preset logical calculation rules and target configuration word, providing an accurate diagnostic basis for the server. The server's analysis of the fault configuration word further clarifies the fault information and lays the foundation for subsequent diagnostic data processing. By determining the vehicle diagnostic data packet based on the second electronic control unit list, the server can integrate relevant data in a targeted manner to make the diagnostic data packet more streamlined and efficient. In this way, the present application not only improves the diagnostic efficiency, but also optimizes resource utilization.
[0069] Accordingly, see Fig. 9As shown, an embodiment of the present application provides a vehicle diagnostic data generating device, which is applied to a vehicle-mounted device, including:
[0070] The fault reading module 11 is used to determine the first electronic control unit list through the target configuration word obtained by the vehicle gateway after the diagnostic software is started, and 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 representing the installation condition determined based on the installation condition of the electronic control unit on the target vehicle;
[0071] A fault sending module 12 is used to determine a fault configuration word based on the fault code reading command, a preset logic calculation rule and the target configuration word, and send the fault configuration word to the server so that the server determines the vehicle diagnostic data packet using the fault configuration word; the fault configuration word is a configuration word of the electronic control unit that records the fault code in the first electronic control unit list;
[0072] The diagnosis triggering module 13 is used to obtain the vehicle diagnosis data packet sent by the server to trigger a corresponding diagnosis operation based on the vehicle diagnosis data packet.
[0073] As can be seen from the above, after the diagnostic software is started, the application obtains the target configuration word through the vehicle gateway, determines the first electronic control unit list, and sends a fault code reading command to the electronic control unit; determines the fault configuration word based on the fault code reading command, the preset logic calculation rules and the target configuration word, and sends the fault configuration word to the server, which determines the vehicle diagnostic data packet accordingly; finally, obtains the vehicle diagnostic data packet sent by the server to trigger the corresponding diagnostic operation. In this way, the application can optimize the generation method of vehicle diagnostic data, thereby improving the efficiency of diagnosis.
[0074] In a specific implementation, the fault reading module 11 specifically includes:
[0075] An instruction sending unit, used to send an electronic control unit acquisition instruction to the vehicle gateway through the diagnostic software after the diagnostic software is started;
[0076] A list determination unit is used to parse a target configuration word based on the electronic control unit acquisition instruction through the vehicle gateway, and determine a first electronic control unit list based on the parsing result of the target configuration word.
[0077] In a specific implementation, the fault reading module 11 specifically includes:
[0078] A fault reading unit is used to send a fault code reading command to a corresponding electronic control unit through the vehicle gateway based on the first electronic control unit list in a polling manner, so as to perform a corresponding reading operation on the electronic control unit using the fault code reading command.
[0079] In a specific implementation, the target configuration word is a configuration word characterizing the installation situation determined based on the number of installed electronic control units and a preset electronic control unit sequence arrangement rule.
[0080] In a specific implementation manner, the fault sending module 12 specifically includes:
[0081] a fault determination unit, configured to determine an electronic control unit having a fault code 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 a preset logic calculation rule.
[0083] See also Fig.10 As shown, the embodiment of the present application provides a vehicle diagnostic data generating device, which is applied to a server, 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, the preset logic calculation rule and the target configuration word; wherein 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 condition determined based on the installation condition of the electronic control unit on the target vehicle, and the fault configuration word is a configuration word recording the electronic control unit having a fault code in the first electronic control unit list;
[0085] A configuration word parsing module 22, used for parsing 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 obtains the vehicle diagnostic data packet and triggers corresponding diagnostic operations based on the vehicle diagnostic data packet.
[0087] As can be seen from the above, the present application obtains the fault configuration word through the server, obtains the second electronic control unit list through parsing, and then determines the vehicle diagnostic data packet and sends it to the diagnostic software. After the diagnostic software is started, the on-board equipment determines the fault configuration word based on the fault reading command, preset logical calculation rules and target configuration word, providing an accurate diagnostic basis for the server. The server's analysis of the fault configuration word further clarifies the fault information and lays the foundation for subsequent diagnostic data processing. By determining the vehicle diagnostic data packet based on the second electronic control unit list, the server can integrate relevant data in a targeted manner to make the diagnostic data packet more streamlined and efficient. In this way, the present application not only improves the diagnostic efficiency, but also optimizes resource utilization.
[0088] In a specific implementation, the data sending module 23 specifically includes:
[0089] a first file determination unit, configured to determine a target diagnostic data file and a target open test sequence exchange format file from a preset diagnostic database based on the second electronic control unit list;
[0090] a second file determining unit, configured to initialize a target object in an initial vehicle electronic control unit file using the second electronic control unit list, and determine an electronic control unit containing a fault code based on the target object, so as to determine a 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] A data determination unit is used to determine a vehicle diagnostic data packet 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, the present application also discloses an electronic device. Fig.11 It is a structural diagram of an electronic device 30 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 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 is used to store 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 aforementioned embodiments. In addition, 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 working 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 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 35 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.
[0094] In addition, the memory 32 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 331, a computer program 332, etc., and the storage method may be temporary storage or permanent storage.
[0095] The operating system 331 is used to manage and control the hardware devices on the electronic device 20 and the computer program 332, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the vehicle diagnostic data generation method performed by the electronic device 30 disclosed in any of the aforementioned embodiments, the computer program 332 can further include a computer program that can be used to complete other specific tasks.
[0096] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the vehicle diagnostic data generation method disclosed above. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, and will not be repeated here.
[0097] 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.
[0098] 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.
[0099] 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.
[0100] 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.
[0101] 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 method for generating vehicle diagnostic data, characterized in that: Applied to vehicle-mounted equipment, including: When the diagnostic software is started, the first electronic control unit list is determined through the target configuration word obtained by the vehicle gateway, and a fault code reading command is sent to the corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word representing the installation condition determined based on the installation condition of the electronic control unit on the target vehicle; Determine a fault configuration word based on the fault code reading command, the preset logic calculation rule and the target configuration word, and send the fault configuration word to the server so that the server determines the vehicle diagnostic data packet using the fault configuration word; the fault configuration word is a configuration word of the electronic control unit that records the fault code in the first electronic control unit list; The vehicle diagnostic data packet sent by the server is obtained to trigger a corresponding diagnostic operation based on the vehicle diagnostic data packet.
2. The vehicle diagnostic data generating method according to claim 1, characterized in that: When the diagnostic software is started, the first electronic control unit list is determined through the target configuration word obtained by the vehicle gateway, including: When the diagnostic software is started, an electronic control unit acquisition instruction is sent to the vehicle gateway through the diagnostic software; The target configuration word is parsed based on the electronic control unit acquisition instruction through the vehicle gateway, and a first electronic control unit list is determined based on the parsing result of the target configuration word.
3. The vehicle diagnostic data generating method according to claim 1, characterized in that: The sending a fault code reading command to a corresponding electronic control unit based on the first electronic control unit list includes: The vehicle gateway sends a fault code reading command to the corresponding electronic control unit in a polling manner based on the first electronic control unit list, so as to perform a corresponding reading operation on the electronic control unit using the fault code reading command.
4. The vehicle diagnostic data generating method according to any one of claims 1 to 3, characterized in that: The target configuration word is a configuration word characterizing the installation situation determined based on the number of installed electronic control units and a preset electronic control unit sequence arrangement rule.
5. The vehicle diagnostic data generating method according to claim 1, characterized in that: The determining of the fault configuration word based on the fault code reading command, the preset logic calculation rule and the target configuration word includes: Determine an electronic control unit containing a fault code in the first electronic control unit list based on the fault code reading command; The fault configuration word is determined based on the electronic control unit containing the fault code, the target configuration word and a preset logic calculation rule.
6. A method for generating vehicle diagnostic data, characterized in that: Applied to the server, including: Obtaining a fault configuration word sent by the diagnostic software; the fault configuration word is a configuration word determined by the vehicle-mounted device based on a fault reading command, a preset logic calculation rule and a target configuration word; wherein 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 characterizing the installation condition determined based on the installation condition of the electronic control unit on the target vehicle, and the fault configuration word is a configuration word recording the electronic control unit having a fault code in the first electronic control unit list; Parsing the fault configuration word to obtain a second electronic control unit list; A vehicle diagnostic data packet is determined based on the second electronic control unit list, and the vehicle diagnostic data packet is sent to the diagnostic software so that the diagnostic software obtains the vehicle diagnostic data packet and triggers corresponding diagnostic operations based on the vehicle diagnostic data packet.
7. The vehicle diagnostic data generating method according to claim 6, characterized in that: The determining of the vehicle diagnostic data packet based on the second electronic control unit list comprises: determining a target diagnostic data file and a target open test sequence interchange format file from a preset diagnostic database based on the second electronic control unit list; Initializing a target object in an initial vehicle electronic control unit file using the second electronic control unit list, and determining an electronic control unit containing a fault code based on the target object, so as to determine a target vehicle electronic control unit file based on the initial vehicle electronic control unit file and the electronic control unit containing the fault code; A vehicle diagnostic data package is determined based on the target diagnostic data file, the target open test sequence interchange format file, and the target vehicle electronic control unit file.
8. A vehicle diagnostic data generating device, characterized in that: Applied to vehicle-mounted equipment, including: A fault reading module, used for determining a first electronic control unit list through a target configuration word obtained by a vehicle gateway after the diagnostic software is started, and sending a fault code reading command to a corresponding electronic control unit based on the first electronic control unit list; the target configuration word is a configuration word indicating the installation condition determined based on the installation condition of the electronic control unit on the target vehicle; a fault sending module, configured to determine a fault configuration word based on the fault code reading command, a preset logic calculation rule and the target configuration word, and send the fault configuration word to a server, so that the server determines a vehicle diagnostic data packet using the fault configuration word; the fault configuration word is a configuration word of an electronic control unit that records a fault code in the first electronic control unit list; The diagnosis trigger module is used to obtain the vehicle diagnosis data packet sent by the server to trigger a corresponding diagnosis operation based on the vehicle diagnosis data packet.
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 vehicle diagnostic data generating method according to 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 vehicle diagnostic data generating method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Automobile diagnosis method, related device and system
CN111024405A
Vehicle fault diagnosis method and device, vehicle and storage medium
CN112485019A
Vehicle electronic control unit brushing method, device, equipment and medium
CN114647422A
Vehicle diagnosis method, device, equipment and medium
CN116578066A
Vehicle diagnosis method, device, equipment and medium
CN117032190A