Diagnostic data reading method and device, equipment and storage medium
By presetting the data flow in the initial diagnostic file in ODX diagnosis, it is divided into dynamic and static data flows, and sending corresponding data flows according to the read instruction type, the problem of waste of communication resources caused by the non-split diagnosis data flow is solved. , improves the reading efficiency of diagnostic data.
Patent Information
- Application Number
- CN202411068065.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-05
AI Technical Summary
In ODX diagnosis, the diagnostic data flow is not shunted, resulting in waste of communication resources, affecting the user experience, and may cause the communication process to wait for timeout.
By presetting the type of data flow in the initial diagnostic file, it is divided into dynamic data flow and static data flow, the target diagnostic file is generated, and the corresponding data flow is sent to the vehicle side according to the type of read instruction (cyclic or single time). Implement data shunt.
It effectively solves the problem of waste of communication resources caused by the non-split diagnosis data flow, reduces the communication load of the electronic control unit, and improves the reading efficiency of diagnostic data.
Smart Images

Figure CN119024809A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle diagnosis technology, and in particular to a diagnostic data reading method, device, equipment and storage medium. Background Art
[0002] With the continuous development of automotive electronics, diagnostic technology is becoming more and more advanced. ODX technology, as a new technology, is used to produce diagnostic data files required for vehicle diagnosis and has been increasingly used. OEM developers develop diagnostic data files based on vehicle diagnostic requirements. Clients download and upgrade through the Internet, parse ODX files, and perform vehicle diagnosis.
[0003] For data streams, the process in ODX diagnosis is usually as follows: the diagnostic end parses the ODX file of the electronic control unit ECU (ECU, electronic control unit) on the vehicle end selected by the user, queries 22 diagnostic services, and displays the data streams corresponding to all data identifiers DID (D ID, data identifier) on the client interface. The user selects the data stream that needs to be diagnosed, and the diagnostic software obtains the D ID of these data streams and sends instructions to the ECU in a loop, then parses the ECU's reply command to obtain the value of the data stream in real time and displays it on the diagnostic end.
[0004] However, all data streams are constantly sending commands to the ECU in a loop in order to obtain real-time values. However, the values of some data streams do not change and only need to be read once. It is not necessary to send commands to the ECU all the time to read them. If they are also read all the time together with ordinary data streams, it will cause a waste of communication resources. If the ECU does not reply to the values of these data streams, it will also cause the communication process to timeout and affect the user experience.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of the present application is to provide a diagnostic data reading method, device, equipment and storage medium, aiming to solve the technical problem of communication resource waste caused by not splitting the diagnostic data stream when the diagnostic end reads the diagnostic data stream.
[0007] To achieve the above object, the present application proposes a method for reading diagnostic data, the method comprising:
[0008] Obtaining a target diagnosis file according to an initial data stream of a preset type in the initial diagnosis file;
[0009] In response to an acquisition instruction sent by the vehicle end, the target diagnostic file is provided to the vehicle end, the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
[0010] In one embodiment, the step of obtaining the target diagnosis file according to the initial data stream of a preset type in the initial diagnosis file includes:
[0011] Setting a classification mark for the initial data stream in the initial diagnosis file to obtain a dynamic data stream and a static data stream;
[0012] The dynamic data stream and the static data stream are written into the initial diagnosis file to obtain a target diagnosis file.
[0013] In one embodiment, the step of setting a classification identifier for the initial data flow in the initial diagnosis file to obtain a dynamic data flow and a static data flow includes:
[0014] Presetting a data type for an initial data stream in the initial diagnosis file;
[0015] Setting a classification identifier for the initial data stream according to a preset data type, wherein the classification identifier includes a dynamic identifier and a static identifier;
[0016] Setting the initial data stream preset with the dynamic identifier as a dynamic data stream;
[0017] The initial data stream preset with the static identifier is set as a static data stream.
[0018] In one embodiment, the diagnostic data reading method is applied to a vehicle, and the method includes:
[0019] Send acquisition instructions to the cloud;
[0020] Receiving a target diagnosis file provided by the cloud according to the acquisition instruction, the target diagnosis file being obtained by the cloud according to an initial data stream of a type preset in an initial diagnosis file;
[0021] The target diagnosis file is sent to the diagnosis end, and the diagnosis end reads the diagnosis data according to the target diagnosis file.
[0022] In one embodiment, the step of sending the target diagnostic file to the diagnostic terminal, and having the diagnostic terminal read the diagnostic data according to the target diagnostic file comprises:
[0023] responding to a read instruction sent by the diagnosis terminal;
[0024] If the read instruction is a dynamic instruction sent cyclically, the dynamic data stream in the target diagnostic file is sent cyclically to the diagnostic end;
[0025] If the read instruction is a static instruction sent once, the static data stream in the target diagnostic file is sent once to the diagnostic terminal.
[0026] In one embodiment, the diagnostic data reading method is applied to a diagnostic terminal, and the method includes:
[0027] Send a read command to the vehicle end;
[0028] According to the read instruction, receiving the target diagnostic file sent by the vehicle end;
[0029] A reading operation is performed according to the target diagnostic file to obtain a diagnostic data reading result.
[0030] In one embodiment, the step of receiving the target diagnostic file sent by the vehicle terminal according to the read instruction includes:
[0031] If the read instruction is a dynamic instruction, cyclically sending the dynamic instruction to the vehicle end, and cyclically receiving the dynamic data stream in the target diagnostic file sent by the vehicle end;
[0032] If the read instruction is a static instruction, the static instruction is sent to the vehicle end once, and the static data stream in the target diagnostic file sent by the vehicle end is received once.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a diagnostic data reading device, the diagnostic data reading device comprising:
[0034] A preset module, used to obtain a target diagnosis file according to an initial data stream of a preset type in the initial diagnosis file;
[0035] The response module is used to respond to the acquisition instruction sent by the vehicle end, provide the target diagnostic file to the vehicle end, and the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a device, characterized in that the device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the diagnostic data reading method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the diagnostic data reading method described above are implemented.
[0038] One or more technical solutions proposed in this application have at least the following technical effects:
[0039] A diagnostic data reading method, apparatus, device and storage medium proposed in the embodiments of the present application obtain a target diagnostic file according to an initial data stream of a preset type in an initial diagnostic file; in response to an acquisition instruction sent by a vehicle end, the target diagnostic file is provided to the vehicle end, and the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file. By using the initial data stream of the preset type in the initial diagnostic file, data diversion is completed, which effectively solves the problem of communication resource waste caused by non-diversion of the diagnostic data stream, reduces the communication load of the electronic control unit, and greatly improves the data reading efficiency of the diagnostic data. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0041] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A flowchart of the first embodiment of the diagnostic data reading method of the present application is provided;
[0043] Figure 2 A flowchart of the third embodiment of the diagnostic data reading method of the present application is provided;
[0044] Figure 3 A flowchart of a fifth embodiment of the diagnostic data reading method of the present application is provided;
[0045] Figure 4 This is a schematic diagram of the module structure of the diagnostic data reading device according to an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the device structure of the hardware operating environment involved in the diagnostic data reading method in the embodiment of the present application;
[0047] Figure 6 A schematic diagram of presetting a dynamic identifier for an initial data stream in an ODX file in a specific application scenario of the diagnostic data reading method of this application;
[0048] Figure 7 A schematic diagram of presetting a static identifier for an initial data stream in an ODX file in a specific application scenario of the diagnostic data reading method of this application;
[0049] Figure 8A schematic diagram of integrating a dynamic collection in an ODX file in a specific application scenario of the diagnostic data reading method of this application;
[0050] Fig. 9 This is a schematic diagram of integrating static collections in an ODX file in a specific application scenario of the diagnostic data reading method of this application.
[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0054] The main solution of the embodiment of the present application is: in the cloud, according to the initial data stream of the preset type in the initial diagnostic file, obtain the target diagnostic file; in response to the acquisition instruction sent by the vehicle end, provide the target diagnostic file to the vehicle end, the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file; the vehicle end sends an acquisition instruction to the cloud; receives the target diagnostic file provided by the cloud according to the acquisition instruction, the target diagnostic file is obtained by the cloud according to the initial data stream of the preset type in the initial diagnostic file; sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file; sends a read instruction to the vehicle end at the diagnostic end; receives the target diagnostic file sent by the vehicle end according to the read instruction; performs a read operation according to the target diagnostic file to obtain the diagnostic data reading result. The present invention completes data diversion of the diagnostic data stream according to the initial data stream of the preset type in the initial diagnostic file, effectively solves the problem of communication resource waste caused by the non-diversion of the diagnostic data stream, reduces the communication load of the electronic control unit, and greatly improves the data reading efficiency of the diagnostic data.
[0055] With the continuous development of automotive electronics, diagnostic technology is becoming more and more advanced. As a new technology, ODX technology is used to produce diagnostic data files required for vehicle diagnosis and has been increasingly used. OEM developers develop diagnostic data files according to vehicle model diagnostic requirements. Clients download and upgrade through the network, parse ODX files, and perform vehicle diagnosis. For data streams, the process in ODX diagnosis is often as follows: the diagnostic end parses the ODX file of the electronic control unit ECU (ECU, electronic control unit) of the vehicle end selected by the user, queries 22 diagnostic services, and displays the data streams corresponding to all data identifiers DID (DID, data identifier) on the client interface. The user selects the data streams to be diagnosed, and the diagnostic software obtains the DID of these data streams and sends instructions to the ECU in a loop, and then parses the reply command of the ECU to obtain the value of the data stream in real time and display it on the diagnostic end. However, all data streams are constantly sending commands to the ECU in a loop to obtain real-time values, but the values of some data streams will not change, and only need to be read once, and do not need to send commands to the ECU all the time to read. If they are also read all the time with ordinary data streams, it will cause a waste of communication resources, and if the ECU does not reply to the values of these data streams, it will also cause the communication process to time out and wait, affecting the user experience.
[0056] The present application completes data diversion according to the initial data stream of the preset type in the initial diagnostic file, effectively solves the problem of communication resource waste caused by non-diversion of data stream, reduces the communication load of the electronic control unit, and greatly improves the data reading efficiency of the diagnostic data.
[0057] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device or a diagnostic data reading device capable of realizing the above functions. The following takes the diagnostic data reading device as an example to illustrate this embodiment and the following embodiments.
[0058] Based on this, the present application embodiment provides a method for reading diagnostic data, referring to Figure 1 , Figure 1 The flowchart of the first exemplary embodiment of the diagnostic data reading method of the present invention is shown in FIG. 1 . The diagnostic data reading method is applied in the cloud and includes the following steps:
[0059] Step S10, obtaining a target diagnosis file according to an initial data stream of a preset type in the initial diagnosis file.
[0060] It should be noted that the initial diagnostic file refers to the ODX (Open Diagnost ic data exchange) file, which stipulates the use of a new industry standard diagnostic format to make diagnostic data stream information available to diagnostic tool application manufacturers. It is a standard format for describing diagnostic data and is mainly used for the diagnosis and communication of automotive electronic control units ECU (Electronic Control Unit). ODX files contain descriptions of ECU diagnostic data, diagnostic services and communication interfaces, which are usually read and interpreted by diagnostic tools used by automobile manufacturers or suppliers. The main functions of ODX files include describing the vehicle's diagnostic functions and services, defining ECU parameters, signals and data structures, and providing a standardized communication interface between diagnostic tools and vehicles. ODX files usually include the following: diagnostic services (such as reading and clearing fault codes, executing test functions, etc.), ECU description (including ECU identification, supported functions, parameters and data structures), and communication interface (defining the communication protocol and message format between diagnostic tools and ECUs).
[0061] In addition, it should be noted that the initial data stream is the diagnostic data stream in the ODX file. All diagnostic data streams carry a data identifier D ID that uniquely identifies the data stream. Each data identifier corresponds to a specific data item in the ECU, such as engine speed, vehicle speed, throttle position, etc. By sending a specific data identifier, a diagnostic tool or other device can request relevant real-time data or stored historical data from the ECU. The diagnostic data stream can be used for real-time data streams read by diagnostic tools from the vehicle's electronic control unit (ECU) during the automotive diagnostic process. These data streams contain real-time information of various vehicle systems, such as engine speed, vehicle speed, oil pressure, engine temperature, sensor status, etc.; during the diagnostic process, a dedicated diagnostic tool can communicate with the vehicle's ECU through a diagnostic interface to read and display these real-time data streams. Diagnostic data streams can help engineers quickly analyze and diagnose vehicle problems, such as detecting whether the engine is running normally, checking whether sensors and actuators are working properly, etc. Common diagnostic data streams include but are not limited to: engine parameters (such as engine speed, throttle position, coolant temperature, etc.), vehicle status (such as vehicle speed, accelerator pedal position, brake switch status, etc.), sensor data (such as the output values of oxygen sensors, air pressure sensors, wheel speed sensors, etc.), actuator status (such as the working status of fuel injectors, valve position, etc.); the real-time and accuracy of diagnostic data streams are very important for diagnosing and solving vehicle faults. Diagnostic tools will display this data in the form of charts, numbers or text. Engineers can judge the working status of each system of the vehicle based on this information, so as to quickly locate and solve problems.
[0062] In addition, it should be noted that the target diagnosis file is a diagnosis file obtained after the diagnosis data stream in the initial diagnosis file is preset into a certain type.
[0063] Step S20, in response to the acquisition instruction sent by the vehicle end, providing the target diagnostic file to the vehicle end, the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
[0064] It should be noted that the acquisition instruction is an instruction issued by the vehicle side and received by the cloud side, and is used by the vehicle side to obtain the target diagnostic file from the cloud side.
[0065] Specifically, the cloud responds to the acquisition instruction sent by the vehicle end and provides the target diagnostic file to the vehicle end, and the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
[0066] This embodiment adopts the above scheme, specifically by presetting the type of the initial data stream in the initial diagnostic file in the cloud, obtaining the target diagnostic file, completing the data diversion, and effectively solving the problem of communication resource waste caused by the non-diversion of diagnostic data streams under the prior art.
[0067] Based on the first embodiment, a second embodiment of the present application is proposed. The difference between the second embodiment of the present application and the first embodiment is that:
[0068] In this embodiment, the step of obtaining the target diagnosis file according to the initial data stream of the preset type in the initial diagnosis file includes:
[0069] Step S21, setting a classification mark for the initial data stream in the initial diagnosis file to obtain a dynamic data stream and a static data stream;
[0070] Step S22, writing the dynamic data stream and the static data stream into the initial diagnosis file to obtain a target diagnosis file.
[0071] It should be noted that the classification mark is an mark for distinguishing the type of initial data stream, and the initial data stream is divided into a dynamic data stream and a static data stream. The dynamic data stream refers to the diagnostic data stream that the diagnostic end needs to send a read instruction to the electronic control unit at the vehicle end at all times for reading, and is displayed in real time on the diagnostic end interface; the static data stream refers to the diagnostic data stream that the diagnostic end only needs to send a read instruction to the electronic control unit at the vehicle end once for reading, and is displayed on the diagnostic end interface.
[0072] Specifically, a classification identifier is set for the initial data stream in the initial diagnosis file, the classification identifier includes a dynamic identifier and a static identifier, and then the dynamic data stream and the static data stream are obtained according to the classification identifier; the dynamic data stream and the static data stream are written into the initial diagnosis file to obtain the target diagnosis file.
[0073] More specifically, in this embodiment, a classification identifier is often set for the diagnostic data stream in the service data module SDG (Service Data Group) of the diagnostic file, and the initial data streams with dynamic identifiers are grouped into a dynamic set, and the initial data streams with static identifiers are grouped into a static set. The dynamic set and the static set are combined in the initial diagnostic file to obtain the target diagnostic file.
[0074] It should be noted that SDG is an important concept in ODX files. It refers to a group of related service data, usually corresponding to specific services or functions of one or more ECUs. Each SDG contains the diagnostic data and related description information of the ECU, which may include: data identifier D ID, used to uniquely identify and reference data objects in the ECU, such as sensor values, control status, etc.; data object attributes, used to describe the attributes of data objects, such as data types, units, ranges, etc.; diagnostic services, used to describe supported diagnostic services or functions, such as reading data, writing data, performing tests, etc.; error codes and diagnostic messages, used to define possible error codes and their meanings, as well as the format and semantics of diagnostic messages; diagnostic parameters, used to define the parameters and conditions used to perform diagnostic operations. Through SDG, diagnostic tools can accurately understand the meaning and usage of each service data, thereby achieving effective communication and data exchange with ECUs.
[0075] In addition, it should be noted that the data identifier DID is a standardized way to request and obtain specific data parameters or information. Each data identifier corresponds to a specific data item in the ECU, such as engine speed, vehicle speed, throttle position, etc. By sending a specific data identifier, a diagnostic tool or other device can request relevant real-time data or stored historical data from the ECU.
[0076] Further, as an implementation mode, the step of setting a data identifier for the initial data stream in the initial diagnosis file to obtain a dynamic data stream and a static data stream includes:
[0077] Step S211: presetting a data type for the initial data stream in the initial diagnosis file.
[0078] Step S212: Setting a classification identifier for the initial data stream according to a preset data type, wherein the classification identifier includes a dynamic identifier and a static identifier.
[0079] Step S213: setting the initial data flow preset with the dynamic identifier as a dynamic data flow.
[0080] Step S214: setting the initial data flow preset with the static identifier as a static data flow.
[0081] Specifically, the diagnostic data stream is read according to how many times the diagnostic end sends reading instructions to the vehicle end, the data type of the initial data stream is determined, the data type is preset for the initial data stream, and a classification identifier is set for the initial data stream according to the preset data type, the classification identifier includes a dynamic identifier and a static identifier, the initial data stream preset with the dynamic identifier is set as a dynamic data stream, and the initial data stream preset with the static identifier is set as a static data stream.
[0082] Reference Figure 2 , Figure 2 FIG. 4 is a flow chart of a third exemplary embodiment of a method for reading diagnostic data according to the present invention.
[0083] Based on the second embodiment, a third embodiment of the present application is proposed. The difference between the third embodiment of the present application and the second embodiment is that:
[0084] In this embodiment, the diagnostic data reading method is applied to the vehicle side, including the following steps:
[0085] Step S30, sending an acquisition instruction to the cloud.
[0086] Step S40, receiving a target diagnosis file provided by the cloud according to the acquisition instruction, wherein the target diagnosis file is obtained by the cloud according to an initial data stream of a preset type in an initial diagnosis file.
[0087] Step S50, sending the target diagnosis file to the diagnosis terminal, and the diagnosis terminal reading the diagnosis data according to the target diagnosis file.
[0088] It should be noted that the acquisition instruction is issued by the vehicle side and received by the cloud side. It is an instruction used by the vehicle side to obtain the target diagnostic file from the cloud side. The acquisition instruction is determined by the vehicle side based on the vehicle information of the target vehicle.
[0089] Specifically, first, the vehicle side sends an acquisition instruction to the cloud according to the vehicle information. The cloud side responds to the acquisition instruction and provides the target diagnostic file of the corresponding vehicle information to the vehicle side. Then the vehicle side receives the target diagnostic file by downloading. The target diagnostic file is obtained by the cloud side according to the initial data stream of the preset type in the initial diagnostic file. Finally, in response to the read instruction sent by the diagnostic end, the target diagnostic file is sent to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
[0090] Based on the third embodiment, a fourth embodiment of the present application is proposed. The difference between the fourth embodiment of the present application and the third embodiment is that:
[0091] In this embodiment, the step of sending the target diagnostic file to the diagnostic terminal, and the diagnostic terminal reading the diagnostic data according to the target diagnostic file includes:
[0092] Step S51, responding to a read instruction sent by the diagnosis terminal.
[0093] Step S52: If the read instruction is a dynamic instruction sent cyclically, the dynamic data stream in the target diagnostic file is sent cyclically to the diagnostic end.
[0094] Step S53: If the read instruction is a static instruction sent once, the static data stream in the target diagnostic file is sent once to the diagnostic terminal.
[0095] It should be noted that the read instruction is issued by the diagnostic end and received by the vehicle end, and is used by the diagnostic end to obtain the diagnostic data stream in the target diagnostic file from the vehicle end. The read instruction refers to the instruction for obtaining the diagnostic data stream, which usually requires the diagnostic end to communicate with the electronic control unit (ECU) through the vehicle's diagnostic interface to read the real-time diagnostic data stream and display it in real time on the interface of the diagnostic end; the read instruction includes dynamic instructions and static instructions, the dynamic instruction is an instruction requesting to read the dynamic data stream, and the static instruction is an instruction requesting to read the static data stream.
[0096] Specifically, the user performs a read operation of the diagnostic data stream on the interface of the diagnostic end. After receiving the read operation issued by the user, the diagnostic end sends a read instruction to the vehicle end, and the read instruction includes a data identifier D ID of the diagnostic data stream. The vehicle end responds to the read instruction sent by the diagnostic end, and locates the corresponding diagnostic data stream according to the data identifier D ID. The read instruction is divided into dynamic instructions and static instructions. If the read instruction is a dynamic instruction sent cyclically, the dynamic data stream in the target diagnostic file is sent cyclically to the diagnostic end. If the read instruction is a static instruction sent once, the static data stream in the target diagnostic file is sent once to the diagnostic end.
[0097] Reference Figure 3 , Figure 3 FIG. 5 is a flow chart of a fifth exemplary embodiment of a method for reading diagnostic data according to the present invention.
[0098] Based on the fourth embodiment, a fifth embodiment of the present application is proposed. The difference between the fifth embodiment of the present application and the fourth embodiment is that:
[0099] In this embodiment, the diagnostic data reading method is applied to the diagnostic end, and includes the following steps:
[0100] Step S60, sending a read instruction to the vehicle end.
[0101] Step S70: receiving the target diagnostic file sent by the vehicle end according to the read instruction.
[0102] Step S80, performing a reading operation according to the target diagnostic file to obtain a diagnostic data reading result.
[0103] Specifically, the user performs a read operation on the interface of the diagnostic end to read the diagnostic data stream. After receiving the read operation issued by the user, the diagnostic end sends a read instruction to the vehicle end. The vehicle end sends a target diagnostic file to the diagnostic end according to the read instruction. The diagnostic end performs a read operation based on the target diagnostic file to read the dynamic data stream and the static data stream in the target diagnostic file to obtain a diagnostic data reading result.
[0104] Based on the fourth embodiment, a fifth embodiment of the present application is proposed. The difference between the fifth embodiment of the present application and the fourth embodiment is that:
[0105] In this embodiment, the step of receiving the target diagnostic file sent by the vehicle terminal according to the read instruction includes:
[0106] Step S701: if the read instruction is a dynamic instruction, the dynamic instruction is cyclically sent to the vehicle end, and the dynamic data stream in the target diagnostic file sent by the vehicle end is cyclically received.
[0107] Step S702: if the read instruction is a static instruction, the static instruction is sent to the vehicle end once, and the static data stream in the target diagnostic file sent by the vehicle end is received once.
[0108] Specifically, if the read instruction sent by the diagnostic end is a dynamic instruction, the dynamic instruction is sent to the vehicle end in a loop. After receiving the dynamic instruction, the vehicle end sends the corresponding dynamic data stream to the diagnostic end in a loop according to the dynamic instruction. The diagnostic end receives the dynamic data stream in the target diagnostic file sent by the vehicle end in a loop, and displays the dynamic data stream on the display interface of the diagnostic end after parsing. If the read instruction sent by the diagnostic end is a static instruction, the static instruction is sent to the vehicle end once. After receiving the static instruction, the vehicle end sends the corresponding static data stream to the diagnostic end once according to the static instruction. The diagnostic end receives the static data stream in the target diagnostic file sent by the vehicle end once, and displays the static data stream on the display interface of the diagnostic end after parsing.
[0109] For example, in order to help understand the implementation process of the diagnostic data reading method of this embodiment, this embodiment provides a specific scenario-based description of this solution:
[0110] 1. The diagnostic data reading method is applied to the cloud:
[0111] (1) Obtain a target diagnosis file according to an initial data stream of a preset type in the initial diagnosis file.
[0112] First, a data identifier is set for the initial data stream in the initial diagnosis file to obtain a dynamic data stream and a static data stream. A classification identifier is set for the initial data stream in the initial diagnosis file in the cloud, that is, the diagnostic data stream in the initial ODX file in the cloud is classified, and a classification identifier is preset for the initial data stream in its SDG. The classification identifier is divided into a dynamic identifier and a static identifier.
[0113] Then the initial data stream is divided into a dynamic data stream and a static data stream, and the target diagnosis file is obtained by presetting the type of the initial data stream in the initial diagnosis file. The data type is preset for the initial data stream in the initial diagnosis file; a classification identifier is set for the initial data stream according to the preset data type, and the classification identifier is divided into a dynamic identifier and a static identifier; the initial data stream preset with the dynamic identifier is set as a dynamic data stream; the initial data stream preset with the static identifier is set as a static data stream. More specifically, the dynamic data streams are grouped into a dynamic set, and the static data streams are grouped into a static set.
[0114] For easier understanding, please refer to Figure 6 and Figure 7 , Figure 6 This is a schematic diagram of presetting the dynamic identifier Dynamic for the initial data flow in the tab l e->tab l e-row of the ODX file, indicating that the diagnostic data flow with the data identifier D ID "D ID0001" is set as the dynamic data flow. Figure 7 It is a schematic diagram of presetting a static identifier Static for an initial data stream in the tab l e->tab l e-row of an ODX file, indicating that a diagnostic data stream with a data identifier D ID of "D ID0002" is set as a static data stream; Figure 8 and Fig. 9 To preset the type of initial data flow for a table in an ODX file, a table consists of multiple table-rows. Figure 8 The dynamic collection tab le for integrating dynamic data flows is set to the name tab l e_Dynamic, which contains two dynamic data flows with data identifiers D ID "D ID0001" and "D ID0003". Fig. 9The static collection table in the middle integrates static data flows and is named table_Static. It contains two static data flows with data identifiers D ID "D ID0002" and "D ID0004".
[0115] (2) In response to an acquisition instruction sent by the vehicle end, the target diagnostic file is provided to the vehicle end, the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
[0116] Specifically, the cloud responds to the acquisition instruction sent by the vehicle end and provides the target diagnostic file to the vehicle end, and the vehicle end sends the target diagnostic file to the diagnostic end. After the diagnostic end receives the target file, it reads the diagnostic data according to the target diagnostic file.
[0117] 2. The diagnostic data reading method is applied to the vehicle side:
[0118] (1) sending an acquisition instruction to the cloud; receiving a target diagnosis file provided by the cloud according to the acquisition instruction, wherein the target diagnosis file is obtained by the cloud according to an initial data stream of a preset type in the initial diagnosis file.
[0119] Specifically, the vehicle first sends an acquisition instruction to the cloud based on the vehicle information. The cloud responds to the acquisition instruction and provides a target diagnostic file of the corresponding vehicle information to the vehicle. Then the vehicle receives the target diagnostic file by downloading. The target diagnostic file is obtained by the cloud based on an initial data stream of a preset type in the initial diagnostic file.
[0120] (2) The target diagnostic file is sent to a diagnostic terminal, and the diagnostic terminal reads the diagnostic data according to the target diagnostic file.
[0121] Specifically, the vehicle end responds to a read instruction sent by the diagnostic end, wherein the read instruction includes a data identifier D ID of the diagnostic data stream in the target diagnostic file. The vehicle end sends the target diagnostic file where the corresponding diagnostic data stream is located to the diagnostic end according to the data identifier D ID, and the diagnostic end reads the diagnostic data stream according to the target diagnostic file and displays the diagnostic data stream on the interface of the diagnostic end.
[0122] 3. The diagnostic data reading method is applied to the diagnostic end:
[0123] (1) sending a read instruction to a vehicle end; and receiving a target diagnostic file sent by the vehicle end according to the read instruction.
[0124] Specifically, the user performs a read operation of the diagnostic data stream on the interface of the diagnostic end. After receiving the read operation issued by the user, the diagnostic end sends a read instruction to the vehicle end, and the read instruction includes a data identifier D ID of the diagnostic data stream. The vehicle end responds to the read instruction sent by the diagnostic end, and locates the corresponding diagnostic data stream according to the data identifier D ID. The read instruction includes a dynamic instruction and a static instruction. If the read instruction is a dynamic instruction, the dynamic instruction is sent to the vehicle end in a loop, and the dynamic data stream in the target diagnostic file sent by the vehicle end is received in a loop; if the read instruction is a static instruction, the static instruction is sent to the vehicle end once, and the static data stream in the target diagnostic file sent by the vehicle end is received once.
[0125] More specifically, taking reading dynamic data streams as an example, the user selects a function item of the dynamic data stream in the interface of the diagnostic end, such as "engine temperature", "vehicle speed" and other diagnostic data that need to be updated in real time. After the diagnostic end receives the function item selected by the user, it sends a read instruction to the vehicle end. The read instruction contains the data identifier DID of the dynamic data stream. The vehicle end responds to the read instruction sent by the diagnostic end, locates the corresponding dynamic data stream according to the data identifier DID, and sends the corresponding dynamic data stream to the diagnostic end in a loop for real-time update viewing.
[0126] More specifically, taking reading static data streams as an example, the user selects a function item of the static data stream in the interface of the diagnostic end, such as "vehicle frame number", "vehicle configuration code" and other diagnostic data that does not need to be updated. After the diagnostic end receives the function item selected by the user, it sends a read instruction to the vehicle end. The read instruction contains the data identifier DID of the static data stream. The vehicle end responds to the read instruction sent by the diagnostic end, locates the corresponding static data stream according to the data identifier DID, and sends the corresponding static data stream to the diagnostic end once for real-time viewing.
[0127] (2) Performing a reading operation according to the target diagnostic file to obtain a diagnostic data reading result.
[0128] Specifically, after receiving the initial data stream with the classification identifier in the target diagnostic file, the diagnostic terminal performs a read operation on the initial data stream of the target diagnostic file according to the read instruction, obtains the diagnostic data reading result, and displays it on the interface of the diagnostic terminal.
[0129] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the diagnostic data reading method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0130] This application also provides a diagnostic data reading device, please refer to Figure 4 , the diagnostic data reading device comprises:
[0131] A preset module 401 is used to obtain a target diagnosis file according to an initial data stream of a preset type in the initial diagnosis file;
[0132] The response module 402 is used to respond to the acquisition instruction sent by the vehicle end, provide the target diagnostic file to the vehicle end, and the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
[0133] The diagnostic data reading device provided by the present application adopts the diagnostic data reading method in the above embodiment, which can solve the technical problem of the waste of communication resources caused by the non-dividing of the diagnostic data flow. Compared with the prior art, the beneficial effects of the diagnostic data reading device provided by the present application are the same as the beneficial effects of the diagnostic data reading method provided by the above embodiment, and the other technical features in the diagnostic data reading device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0134] The present application provides a diagnostic data reading device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the diagnostic data reading method in the above-mentioned embodiment 1.
[0135] Reference below Figure 5 , which shows a schematic diagram of the structure of a diagnostic data reading device suitable for implementing the embodiment of the present application. The diagnostic data reading device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The diagnostic data reading device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0136] like Figure 5As shown, the diagnostic data reading device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read On ly Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the diagnostic data reading device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a diagnostic data reading device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0137] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0138] The diagnostic data reading device provided by the present application adopts the diagnostic data reading method in the above embodiment, which can solve the technical problem of diagnostic data reading. Compared with the prior art, the beneficial effects of the diagnostic data reading device provided by the present application are the same as the beneficial effects of the diagnostic data reading method provided by the above embodiment, and other technical features in the diagnostic data reading device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0139] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0140] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0141] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the diagnostic data reading method in the above-mentioned embodiment.
[0142] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM: Erasable Programmab le Read On ly Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read On ly Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0143] The computer-readable storage medium may be included in the diagnostic data reading device; or may exist independently without being assembled into the diagnostic data reading device.
[0144] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the diagnostic data reading device, the diagnostic data reading device: obtains a target diagnostic file according to an initial data stream of a preset type in the initial diagnostic file; provides the target diagnostic file to the vehicle end in response to an acquisition instruction sent by the vehicle end, and the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
[0145] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0146] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0147] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0148] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned diagnostic data reading method, and can solve the technical problem of the waste of communication resources caused by the non-dividing of diagnostic data streams. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the diagnostic data reading method provided by the above-mentioned embodiment, and will not be repeated here.
[0149] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the diagnostic data reading method as described above are implemented.
[0150] The computer program product provided by the present application can solve the technical problem of the waste of communication resources caused by the non-dividing of the diagnostic data flow. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the diagnostic data reading method provided by the above embodiment, which will not be repeated here.
[0151] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A diagnostic data reading method, characterized in that: The diagnostic data reading method is applied to the cloud, and the method includes: Obtaining a target diagnosis file according to an initial data stream of a preset type in the initial diagnosis file; In response to an acquisition instruction sent by the vehicle end, the target diagnostic file is provided to the vehicle end, the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
2. The method according to claim 1, characterized in that The step of obtaining the target diagnosis file according to the initial data stream of the preset type in the initial diagnosis file comprises: Setting a classification mark for the initial data stream in the initial diagnosis file to obtain a dynamic data stream and a static data stream; The dynamic data stream and the static data stream are written into the initial diagnosis file to obtain a target diagnosis file.
3. The method according to claim 2, characterized in that The step of setting a classification mark for the initial data stream in the initial diagnosis file to obtain a dynamic data stream and a static data stream comprises: Presetting a data type for an initial data stream in the initial diagnosis file; Setting a classification identifier for the initial data stream according to a preset data type, wherein the classification identifier includes a dynamic identifier and a static identifier; Setting the initial data stream preset with the dynamic identifier as a dynamic data stream; The initial data stream preset with the static identifier is set as a static data stream.
4. A diagnostic data reading method, characterized in that: The diagnostic data reading method is applied to a vehicle end, and the method comprises: Send acquisition instructions to the cloud; Receiving a target diagnosis file provided by the cloud according to the acquisition instruction, the target diagnosis file being obtained by the cloud according to an initial data stream of a type preset in an initial diagnosis file; The target diagnosis file is sent to the diagnosis end, and the diagnosis end reads the diagnosis data according to the target diagnosis file.
5. The method according to claim 4, characterized in that The step of sending the target diagnostic file to the diagnostic terminal, and having the diagnostic terminal read the diagnostic data according to the target diagnostic file comprises: responding to a read instruction sent by the diagnosis terminal; If the read instruction is a dynamic instruction sent cyclically, the dynamic data stream in the target diagnostic file is sent cyclically to the diagnostic end; If the read instruction is a static instruction sent once, the static data stream in the target diagnostic file is sent once to the diagnostic terminal.
6. A diagnostic data reading method, characterized in that: The diagnostic data reading method is applied to a diagnostic terminal, and the method comprises: Send a read command to the vehicle end; According to the read instruction, receiving the target diagnostic file sent by the vehicle end; A reading operation is performed according to the target diagnostic file to obtain a diagnostic data reading result.
7. The method according to claim 6, characterized in that The step of receiving the target diagnostic file sent by the vehicle end according to the read instruction includes: If the read instruction is a dynamic instruction, cyclically sending the dynamic instruction to the vehicle end, and cyclically receiving the dynamic data stream in the target diagnostic file sent by the vehicle end; If the read instruction is a static instruction, the static instruction is sent to the vehicle end once, and the static data stream in the target diagnostic file sent by the vehicle end is received once.
8. A diagnostic data reading device, characterized in that: The device comprises: A preset module, used to obtain a target diagnosis file according to an initial data stream of a preset type in the initial diagnosis file; The response module is used to respond to the acquisition instruction sent by the vehicle end, provide the target diagnostic file to the vehicle end, and the vehicle end sends the target diagnostic file to the diagnostic end, and the diagnostic end reads the diagnostic data according to the target diagnostic file.
9. A diagnostic data reading device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the diagnostic data reading method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the diagnostic data reading method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Network performance test method and device
CN105024872A
A Vehicle Engine Air Valve Quality Streaming Data Processing Method and Device
CN106355314A
Diagnostic data processing method and device, diagnostic equipment and server
CN109710682A
Fault diagnosis method and device for electronic control unit of vehicle
CN113467409A
Data stream scheduling method and device, electronic equipment and storage medium
CN116599913A
Cited By
Vehicle diagnosis method, device, equipment and medium
CN119937523A
