CN111857103B - Vehicle diagnosis method, device, equipment and storage medium - Google Patents

Vehicle diagnosis method, device, equipment and storage medium Download PDF

Info

Publication number
CN111857103B
CN111857103B CN202010762726.4A CN202010762726A CN111857103B CN 111857103 B CN111857103 B CN 111857103B CN 202010762726 A CN202010762726 A CN 202010762726A CN 111857103 B CN111857103 B CN 111857103B
Authority
CN
China
Prior art keywords
diagnosis
vehicle
diagnostic
field
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010762726.4A
Other languages
Chinese (zh)
Other versions
CN111857103A (en
Inventor
刘均
樊球
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202010762726.4A priority Critical patent/CN111857103B/en
Publication of CN111857103A publication Critical patent/CN111857103A/en
Application granted granted Critical
Publication of CN111857103B publication Critical patent/CN111857103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Abstract

The application discloses a vehicle diagnosis method, a vehicle diagnosis device, a vehicle diagnosis apparatus and a storage medium. The method comprises the steps that a diagnosis action request is received by diagnosis equipment, the diagnosis action request comprises vehicle information acquisition, a vehicle diagnosis file is acquired in a server according to the diagnosis action request, the vehicle diagnosis file is further analyzed to obtain a diagnosis action field, and vehicle diagnosis operation is executed according to the diagnosis action field and the diagnosis action request. The vehicle diagnosis file comprises the diagnosis action field, so that the corresponding target diagnosis action field can be selectively called according to the diagnosis action request to execute the corresponding diagnosis operation on the vehicle, the condition that the data flow information in the vehicle to be diagnosed does not exist is avoided, and the overall accuracy and reliability of vehicle diagnosis are relatively ensured. In addition, the application also provides a vehicle diagnosis device, equipment and a storage medium, and the beneficial effects are as described above.

Description

Vehicle diagnosis method, device, equipment and storage medium
Technical Field
The present application relates to the field of vehicle diagnosis, and in particular, to a vehicle diagnosis method, apparatus, device, and storage medium.
Background
With the continuous development of the automobile industry, the diagnosis of the working condition of the vehicle gradually becomes an important task for technicians in vehicle maintenance and repair.
In order to apply the vehicle diagnosis method through the vehicle diagnosis file more and more, developers develop corresponding vehicle diagnosis files according to vehicle type diagnosis requirements, and then diagnosis equipment downloads and analyzes the vehicle diagnosis files through a network to diagnose the vehicle.
At present, when a manufacturer develops a diagnostic data vehicle diagnostic file of a certain vehicle type, the vehicle diagnostic file of another vehicle type is often reused, but data stream information which can be diagnosed by each vehicle type is often different, so that diagnostic equipment can diagnose data stream information which does not exist in the vehicle after analyzing the vehicle diagnostic file, further diagnostic errors of the vehicle are caused, and the overall accuracy and reliability of vehicle diagnosis are difficult to ensure.
It is therefore seen that providing a vehicle diagnostic method to relatively ensure the overall accuracy and reliability of vehicle diagnostics is a problem that those skilled in the art need to address.
Disclosure of Invention
An object of the present application is to provide a vehicle diagnosis method, apparatus, device, and storage medium to relatively ensure the overall accuracy and reliability of vehicle diagnosis.
In order to solve the above technical problem, the present application provides a vehicle diagnostic method applied to a diagnostic apparatus, including:
receiving a diagnosis action request, wherein the diagnosis action request comprises vehicle information;
acquiring a vehicle diagnosis file in a server according to the diagnosis action request;
analyzing the vehicle diagnosis file to obtain a diagnosis behavior field;
and performing a vehicle diagnostic operation based on the diagnostic action field and the diagnostic action request.
Preferably, the vehicle diagnostic operation is performed according to the diagnostic action field and the diagnostic action request, including:
matching a target diagnosis action field corresponding to the diagnosis action request in the diagnosis action field;
and executing the vehicle diagnosis operation based on the diagnosis service field corresponding to the target diagnosis action field in the vehicle diagnosis file.
Preferably, the vehicle diagnosis operation is performed based on a diagnosis service field corresponding to the target diagnosis action field in the vehicle diagnosis file, and includes:
reading a diagnosis service field corresponding to the target diagnosis behavior field in the vehicle diagnosis file;
acquiring a diagnosis command field corresponding to a diagnosis service field; wherein, the diagnosis command field comprises a display field;
executing the diagnosis command of the diagnosis command field to obtain a diagnosis data stream;
judging whether the field value of the display field is a display default value or not;
and if the field value of the display field is a display default value, performing front-end display on the diagnostic data stream.
Preferably, after executing the diagnostic command of the diagnostic command field to obtain the diagnostic data stream, the method further comprises:
the diagnostic data stream is written to a diagnostic log.
Preferably, the obtaining of the vehicle diagnosis file in the server according to the diagnosis action request includes:
acquiring identity information of the vehicle to be diagnosed according to the diagnosis action request;
and acquiring a corresponding vehicle diagnosis file in the server according to the identity information.
Preferably, the identity information comprises a vehicle VIN code and/or vehicle model information.
In addition, the present application also provides a vehicle diagnosis method, applied to a server, including:
acquiring identity information of a vehicle to be diagnosed;
generating diagnostic service data according to the identity information;
and setting a diagnosis behavior field for the diagnosis service data to generate a vehicle diagnosis file for the diagnosis equipment to obtain and execute vehicle diagnosis operation according to the diagnosis behavior field.
Further, the present application also provides a vehicle diagnostic apparatus including:
the request receiving module is used for receiving a diagnosis action request, and the diagnosis action request comprises vehicle information;
the diagnostic file acquisition module is used for acquiring a vehicle diagnostic file in the server according to the diagnostic behavior request;
the behavior field analyzing module is used for analyzing the vehicle diagnosis file to obtain a diagnosis behavior field;
and the diagnosis operation execution module is used for executing vehicle diagnosis operation according to the diagnosis action field and the diagnosis action request.
Preferably, the diagnostic operation performing module includes:
the behavior field matching module is used for matching a target diagnosis behavior field corresponding to the diagnosis behavior request in the diagnosis behavior field;
and the service field execution module is used for executing vehicle diagnosis operation based on the diagnosis service field corresponding to the target diagnosis action field in the vehicle diagnosis file.
Preferably, the service field execution module includes:
the diagnostic service reading module is used for reading a diagnostic service field corresponding to the target diagnostic behavior field in the vehicle diagnostic file;
the command field acquisition module is used for acquiring a diagnosis command field corresponding to the diagnosis service field; wherein, the diagnosis command field comprises a display field;
the command field execution module is used for executing the diagnosis command of the diagnosis command field to obtain a diagnosis data stream;
and the default value judging module is used for judging whether the field value of the display field is the display default value or not, and if so, the front-end display module is called.
And the front-end display module is used for carrying out front-end display on the diagnostic data stream.
Preferably, the apparatus further comprises:
and the log writing module is used for writing the diagnostic data stream into the diagnostic log.
Preferably, the diagnostic file acquisition module includes:
the identity information acquisition module is used for acquiring the identity information of the vehicle to be diagnosed according to the diagnosis action request;
and the identity information execution module is used for acquiring the corresponding vehicle diagnosis file in the server according to the identity information.
Preferably, the identity information comprises a vehicle VIN code and/or vehicle model information.
Further, the present application also provides a vehicle diagnostic apparatus including:
a memory for storing a computer program;
a processor for implementing the steps of the vehicle diagnostic method as described above when executing the computer program.
Furthermore, the present application also provides a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, realizes the steps of the vehicle diagnosis method as described above.
According to the vehicle diagnosis method, the diagnosis equipment receives the diagnosis action request, the diagnosis action request comprises vehicle information acquisition, a vehicle diagnosis file is acquired in the server according to the diagnosis action request, the vehicle diagnosis file is analyzed to obtain a diagnosis action field, and vehicle diagnosis operation is executed according to the diagnosis action field and the diagnosis action request. The vehicle diagnosis file comprises the diagnosis action field, so that the corresponding target diagnosis action field can be selectively called according to the diagnosis action request to execute the corresponding diagnosis operation on the vehicle, the condition that the data flow information in the vehicle to be diagnosed does not exist is avoided, and the overall accuracy and reliability of vehicle diagnosis are relatively ensured. In addition, the application also provides a vehicle diagnosis device, equipment and a storage medium, and the beneficial effects are as described above.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flow chart of a vehicle diagnostic method disclosed in an embodiment of the present application;
FIG. 2 is a flow chart of a vehicle diagnostic method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart of a vehicle diagnostic method disclosed in an embodiment of the present application;
FIG. 4 is a flow chart of a vehicle diagnostic method disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a vehicle diagnostic device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
At present, when a manufacturer develops a diagnostic data vehicle diagnostic file of a certain vehicle type, the vehicle diagnostic file of another vehicle type is often reused, but data stream information which can be diagnosed by each vehicle type is often different, so that diagnostic equipment can diagnose data stream information which does not exist in the vehicle after analyzing the vehicle diagnostic file, further diagnostic errors of the vehicle are caused, and the overall accuracy and reliability of vehicle diagnosis are difficult to ensure.
Therefore, the core of the application is to provide a vehicle diagnosis method to relatively ensure the overall accuracy and reliability of vehicle diagnosis.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application discloses a vehicle diagnostic method applied to a diagnostic device, including:
step S10: a diagnostic action request is received.
The diagnostic action request includes obtaining vehicle information.
It should be noted that the execution subject of the present embodiment is a diagnostic device that establishes a connection with a vehicle to be diagnosed and diagnoses vehicle information thereof.
The diagnosis action request in this step may be a request generated by a technician performing control through the front end of the diagnosis device, or a request written into the diagnosis device by the technician in advance in the form of a configuration file. The diagnosis action request acquired in the step includes a request for acquiring vehicle information, and the purpose is to control the diagnosis equipment to diagnose the relevant working state content in the vehicle to be diagnosed on the vehicle information in the subsequent step through the diagnosis action request.
Step S11: and acquiring a vehicle diagnosis file in the server according to the diagnosis action request.
After receiving the diagnosis action request, the step further obtains a vehicle diagnosis file in the server according to the diagnosis action request. It should be noted that, in this step, a communication relationship exists between the server and the diagnostic device, so as to provide a corresponding vehicle diagnostic file for the diagnostic device according to the diagnostic requirements of the diagnostic device on different vehicles to be diagnosed, thereby ensuring that the diagnostic device can diagnose different vehicles to be diagnosed.
Step S12: and analyzing the vehicle diagnosis file to obtain a diagnosis behavior field.
It should be noted that the present embodiment is focused on that the vehicle diagnostic file includes a diagnostic action field, and further, after the vehicle diagnostic file is obtained in the server according to the diagnostic action request, the vehicle diagnostic file is further analyzed to obtain the diagnostic action field, where the diagnostic action field referred to herein corresponds to the diagnostic operation action in the vehicle diagnostic file.
Step S13: and performing a vehicle diagnostic operation based on the diagnostic action field and the diagnostic action request.
After the vehicle diagnosis file is analyzed to obtain the diagnosis action field, the step further executes the vehicle diagnosis operation according to the diagnosis action field and the diagnosis action request, namely executes the vehicle diagnosis operation content corresponding to the corresponding diagnosis action field according to the diagnosis action request.
According to the vehicle diagnosis method, the diagnosis equipment receives the diagnosis action request, the diagnosis action request comprises vehicle information acquisition, a vehicle diagnosis file is acquired in the server according to the diagnosis action request, the vehicle diagnosis file is analyzed to obtain a diagnosis action field, and vehicle diagnosis operation is executed according to the diagnosis action field and the diagnosis action request. The vehicle diagnosis file comprises the diagnosis action field, so that the corresponding target diagnosis action field can be selectively called according to the diagnosis action request to execute the corresponding diagnosis operation on the vehicle, the condition that the data flow information in the vehicle to be diagnosed does not exist is avoided, and the overall accuracy and reliability of vehicle diagnosis are relatively ensured.
Referring to fig. 2, an embodiment of the present application discloses a vehicle diagnostic method applied to a diagnostic device, including:
step S20: a diagnostic action request is received, the diagnostic action request including obtaining vehicle information.
Step S21: and acquiring a vehicle diagnosis file in the server according to the diagnosis action request.
Step S22: and analyzing the vehicle diagnosis file to obtain a diagnosis behavior field.
Step S23: and matching a target diagnosis action field corresponding to the diagnosis action request in the diagnosis action field.
After the vehicle diagnosis file is obtained, the step further receives a diagnosis action request, where the diagnosis action request in the step may be a background request of the diagnosis device generated according to a diagnosis action option selected by a technician in a front-end interface of the diagnosis device. After the diagnosis action request is obtained, the step further matches a target diagnosis action field corresponding to the diagnosis action request according to a preset corresponding relation, so that the corresponding relation between the diagnosis action request and a diagnosis service field in a vehicle diagnosis file is established in the subsequent step.
Step S24: and executing the vehicle diagnosis operation based on the diagnosis service field corresponding to the target diagnosis action field in the vehicle diagnosis file.
After the corresponding target diagnosis behavior field is acquired according to the diagnosis behavior request, the vehicle diagnosis operation is further executed based on the target diagnosis service field where the target diagnosis behavior field is located in the vehicle diagnosis file, so that the purpose of vehicle diagnosis of the vehicle to be diagnosed is achieved. In addition, it should be noted that, the vehicle diagnosis operation is executed based on the target diagnosis service field, and essentially, the corresponding diagnosis instruction may be called according to the diagnosis parameter in the target diagnosis service field, so as to obtain the corresponding diagnosis result data.
The vehicle diagnostic file obtained in the embodiment is a diagnostic file with a standardized format, and when different vehicle quantities or different Electronic Control Units (ECUs) are used, the vehicle diagnostic file adapted to the vehicle type or the ECU only needs to be loaded, and the diagnostic equipment does not need to be changed. The vehicle diagnostic file unifies the format of the diagnostic file, so that format conversion is not needed when the diagnostic file is transmitted and exchanged in research and development, test, production, after-sale and other departments.
The purpose of obtaining the vehicle diagnosis file is to call corresponding diagnosis service in the vehicle diagnosis file to perform diagnosis operation on the vehicle according to the diagnosis action request in the subsequent step. In addition, the present embodiment is characterized in that the diagnostic service field in the vehicle diagnostic file includes a diagnostic action field, so as to characterize the diagnostic action corresponding to the corresponding diagnostic service field through the content in the diagnostic action field, and thus, the diagnostic service field of the specific diagnostic action can be invoked in the vehicle diagnostic file in a targeted manner in the subsequent step to complete the vehicle diagnosis.
Referring to fig. 3, an embodiment of the present application discloses a vehicle diagnosis method, including:
step S30: a diagnostic action request is received, the diagnostic action request including obtaining vehicle information.
Step S31: and acquiring a vehicle diagnosis file in the server according to the diagnosis action request.
Step S32: and analyzing the vehicle diagnosis file to obtain a diagnosis behavior field.
Step S33: and matching a target diagnosis action field corresponding to the diagnosis action request in the diagnosis action field.
Step S34: and reading a diagnosis service field corresponding to the target diagnosis behavior field in the vehicle diagnosis file.
After the target diagnosis action field corresponding to the diagnosis action request is matched, the present embodiment further reads a target diagnosis service field to which the target diagnosis action field belongs in the vehicle diagnosis file, where the target diagnosis service field referred to herein is a diagnosis service field corresponding to the diagnosis requirement of the diagnosis action request.
Step S35: and acquiring a diagnosis command field corresponding to the diagnosis service field.
Wherein, the diagnosis command field comprises a display field.
In this embodiment, the diagnostic service field further includes a diagnostic command field for recording a diagnostic command to be executed when the vehicle diagnosis is executed, and further, the diagnostic command field includes a display field for marking whether a data stream generated after the diagnostic command corresponding to the diagnostic command field is executed is displayed.
Step S36: executing the diagnostic command of the diagnostic command field results in a diagnostic data stream.
After the diagnosis command field corresponding to the target diagnosis service field is obtained, the diagnosis command in the diagnosis command field is further executed, and then a corresponding diagnosis data stream is obtained, wherein the diagnosis data stream is a state data stream related to the working condition attribute of the vehicle to be diagnosed.
Step S37: it is determined whether the field value of the display field is a display default value, and if yes, step S38 is executed.
Step S38: and performing front-end display on the diagnostic data stream.
After a diagnostic command of a diagnostic command field is executed to obtain a diagnostic data stream, the step further determines whether a field value in a display field is a display default value, where the display default value refers to a content value in the display field that characterizes front-end display of the diagnostic data stream, and is determined according to an actual application scenario, and includes but is not limited to a state value such as "1" or "TRUE", and when the field value in the display field is the display default value, the embodiment further performs front-end display of the diagnostic data stream, where the front-end display refers to output of the diagnostic data stream through a front-end screen of the diagnostic device or a front-end page established with a data transmission relationship with the diagnostic device; similarly, when it is determined that the field value of the display field is not the display default value, the present embodiment does not perform front-end display on the diagnostic data stream.
On the basis of the foregoing embodiment, as a preferred implementation manner, after the diagnostic command of the diagnostic command field is executed to obtain the diagnostic data stream, the method further includes:
the diagnostic data stream is written to a diagnostic log.
In order to ensure the overall reliability and traceability of the execution of the diagnostic commands in the diagnostic command field, the diagnostic data stream is further written into the diagnostic log after the diagnostic commands in the diagnostic command field are executed to obtain the diagnostic data stream. The diagnostic data stream can be reliably recorded in a mode of writing the diagnostic data stream into the diagnostic log, so that a technician can further acquire the diagnostic data stream generated in the process of executing the diagnostic operation on the vehicle to be diagnosed in a mode of calling the diagnostic log.
On the basis of the above series of embodiments, as a preferred implementation, acquiring a vehicle diagnosis file in a server according to a diagnosis action request includes:
acquiring identity information of the vehicle to be diagnosed according to the diagnosis action request;
and acquiring a corresponding vehicle diagnosis file in the server according to the identity information.
The key point of the embodiment is that in the process of obtaining the vehicle diagnosis file, the identity information of the vehicle to be diagnosed is obtained firstly, and then the corresponding vehicle diagnosis file is obtained in the server according to the identity information. The vehicle diagnostic file may specifically be an Open diagnostic data exchange (ODX) diagnostic file, or a PDX file composed of the ODX diagnostic files, where the PDX file is a file container including a plurality of or multiple types of ODX diagnostic files, and is used to compress and carry the ODX diagnostic files, and then the corresponding PDX file is acquired based on the identity information of the vehicle in this embodiment, and then the included ODX diagnostic file is read in the PDX file, so that the overall reliability of acquiring the ODX diagnostic file can be relatively ensured, and the overall accuracy of vehicle diagnosis is further ensured.
Further, as a preferred embodiment, the identity information includes a vehicle VIN code and/or vehicle model information.
The Vehicle Identification Number (Vehicle Identification Number) can be used for uniquely identifying a specific Vehicle, so that a Vehicle diagnostic file customized and developed for the specific Vehicle can be acquired based on the Vehicle VIN, the Vehicle diagnostic file is suitable for a scene of customized diagnosis for the specific Vehicle, and the reliability of diagnosis for the Vehicle to be diagnosed in the scene can be further improved. In addition, the vehicle type information refers to the vehicle type of the vehicle to be diagnosed, so that the vehicle diagnosis file which is customized and developed for the specific vehicle is acquired based on the vehicle type information, the method is suitable for a scene for diagnosing the vehicle to be diagnosed according to the vehicle type, and the reliability of diagnosis for the vehicle to be diagnosed in the scene can be further improved.
Referring to fig. 4, an embodiment of the present application discloses a vehicle diagnosis method applied to a server, including:
step S40: and acquiring the identity information of the vehicle to be diagnosed.
It should be noted that the execution subject of the embodiment is a server that establishes a communication relationship with the diagnostic device in advance, and the server functions to develop a corresponding vehicle diagnostic file according to the identity information of the vehicle to be diagnosed and provide the vehicle diagnostic file to the diagnostic device.
Step S41: and generating diagnosis service data according to the identity information.
After the identity information of the vehicle to be diagnosed is acquired, the server further generates corresponding diagnosis service data according to the identity information, wherein the diagnosis service data refers to parameter data which needs to be referred to when the vehicle to be diagnosed performs diagnosis operation, that is, the diagnosis service data is data required for performing vehicle diagnosis operation.
Step S42: and setting a diagnosis behavior field for the diagnosis service data to generate a vehicle diagnosis file for the diagnosis equipment to obtain and execute vehicle diagnosis operation according to the diagnosis behavior field.
After the diagnostic service data is generated, the step further sets a diagnostic action field for the diagnostic service data so as to generate a vehicle diagnostic file, and then the server can provide the vehicle diagnostic file to the diagnostic equipment according to the diagnostic requirement of the diagnostic equipment, and the vehicle diagnostic equipment executes vehicle diagnostic operation according to the diagnostic action field in the vehicle diagnostic file.
The vehicle diagnosis file comprises the diagnosis action field, so that the corresponding target diagnosis action field can be selectively called according to the diagnosis action request to execute the corresponding diagnosis operation on the vehicle, the condition that the data flow information in the vehicle to be diagnosed does not exist is avoided, and the overall accuracy and reliability of vehicle diagnosis are relatively ensured.
In order to deepen understanding of the technical solution of the present application, a scene embodiment in a specific application scenario is provided below for further description.
A host factory developer develops a diagnosis data file according to a vehicle model, adds attribute values to the Semantic fields in each diagnosis service field in the ODX diagnosis file, for example, assigns the Semantic field of 1902 XX as a READ-DTC to indicate that the diagnosis service is a code reading service, assigns the Semantic field of 22 XX as a READ-ECU-VERSION to indicate that the diagnosis service is an ECU VERSION information reading service, assigns the Semantic field of 22 XX as a READ-DATASTREAM to indicate that the diagnosis service is an ECU VERSION information reading service, and through the Semantic values, a client can clearly judge the definition of each diagnosis service and correctly find out the desired algorithm and command. In developing the diagnostic data for a data stream, a developer may add SDG information (SDG is annotation information in the ODX standard) to the diagnostic data for the commands of each data stream, an after-market identifier "after" is added to the SDG, with a default value of "true", when the car does not need to display the data stream, the value is configured as "false", the client will determine whether the data stream needs to be displayed by comparing the value of aftersample when parsing the ODX diagnostic file, through the proposal, the host factory developer can conveniently distinguish the types represented by each service in the diagnosis service, especially, the version information and data stream service which are both '22' improves the efficiency of the client side for analyzing the ODX diagnosis file, reduces the workload, and by adding an artifact value in the data stream command, whether each data stream needs to be displayed or not is intelligently judged, and the accuracy of data stream display is greatly reduced.
And a host factory developer develops the ODX file of the diagnosis data according to the vehicle type, configures the Semantic attribute value and the data stream aft value in the diagnosis service according to the actual information of the vehicle, and uploads the data stream aft value to the server. The client downloads the vehicle type diagnosis data ODX packet, determines diagnosis service according to Semantic, analyzes aftersale, and determines whether the data stream needs to be displayed, so that the display process of the whole data stream is completed:
1: and a host factory developer develops the ODX file of the diagnosis data according to the vehicle type, configures the Semantic attribute value and the data stream aft value in the diagnosis service according to the actual information of the vehicle, and uploads the data stream aft value to the server.
2: and the user starts the client, downloads the corresponding ODX diagnostic data file according to the read vehicle type information and analyzes the source file.
3: and the diagnosis service types are distinguished by analyzing the Semantic values, including version information and data stream services.
4: and analyzing the data stream algorithm command and acquiring an artifact value in the data stream command.
5: if the artifact value is false, the data stream is not displayed, otherwise the data stream is normally displayed.
6: and exiting the program.
Through the steps 1-6, the host factory developer configures the Semantic and artifact attribute values when developing the diagnostic data file, and the client can distinguish the diagnostic function of each diagnostic service representative and judge which data streams do not need to be displayed according to the two values when analyzing, so that the diagnostic efficiency is improved, the workload is reduced, and the development efficiency of the host factory is greatly facilitated.
Referring to fig. 5, an embodiment of the present application provides a vehicle diagnostic apparatus, including:
a request receiving module 10, configured to receive a diagnostic action request, where the diagnostic action request includes vehicle information;
the diagnostic file acquisition module 11 is used for acquiring a vehicle diagnostic file in the server according to the diagnostic action request;
the behavior field analyzing module 12 is used for analyzing the vehicle diagnosis file to obtain a diagnosis behavior field;
and a diagnostic operation execution module 13 for executing a vehicle diagnostic operation based on the diagnostic action field and the diagnostic action request.
As a preferred embodiment, the diagnostic operation performing module 13 includes:
the behavior field matching module is used for matching a target diagnosis behavior field corresponding to the diagnosis behavior request in the diagnosis behavior field;
and the service field execution module is used for executing vehicle diagnosis operation based on the diagnosis service field corresponding to the target diagnosis action field in the vehicle diagnosis file.
As a preferred embodiment, the service field execution module includes:
the diagnostic service reading module is used for reading a diagnostic service field corresponding to the target diagnostic behavior field in the vehicle diagnostic file;
the command field acquisition module is used for acquiring a diagnosis command field corresponding to the diagnosis service field; wherein, the diagnosis command field comprises a display field;
the command field execution module is used for executing the diagnosis command of the diagnosis command field to obtain a diagnosis data stream;
and the default value judging module is used for judging whether the field value of the display field is the display default value or not, and if so, the front-end display module is called.
And the front-end display module is used for carrying out front-end display on the diagnostic data stream.
As a preferred embodiment, the apparatus further comprises:
and the log writing module is used for writing the diagnostic data stream into the diagnostic log.
As a preferred embodiment, the diagnostic file acquiring module 11 includes:
the identity information acquisition module is used for acquiring the identity information of the vehicle to be diagnosed according to the diagnosis action request;
and the identity information execution module is used for acquiring the corresponding vehicle diagnosis file in the server according to the identity information.
As a preferred embodiment, the identity information includes a vehicle VIN code and/or vehicle model information.
According to the vehicle diagnosis device, the diagnosis equipment receives the diagnosis action request, the diagnosis action request comprises vehicle information acquisition, the vehicle diagnosis file is acquired in the server according to the diagnosis action request, the vehicle diagnosis file is analyzed to obtain the diagnosis action field, and vehicle diagnosis operation is executed according to the diagnosis action field and the diagnosis action request. The vehicle diagnosis file comprises the diagnosis action field, so that the corresponding target diagnosis action field can be selectively called according to the diagnosis action request to execute the corresponding diagnosis operation on the vehicle, the condition that the data flow information in the vehicle to be diagnosed does not exist is avoided, and the overall accuracy and reliability of vehicle diagnosis are relatively ensured.
In addition, an embodiment of the present application further provides a vehicle diagnostic apparatus, including:
a memory for storing a computer program;
a processor for implementing the steps of the vehicle diagnostic method as described above when executing the computer program.
According to the vehicle diagnosis device, the diagnosis action request is received by the diagnosis device, the diagnosis action request comprises vehicle information acquisition, a vehicle diagnosis file is acquired in the server according to the diagnosis action request, the vehicle diagnosis file is further analyzed to obtain a diagnosis action field, and vehicle diagnosis operation is executed according to the diagnosis action field and the diagnosis action request. The vehicle diagnosis file comprises the diagnosis action field, so that the corresponding target diagnosis action field can be selectively called according to the diagnosis action request to execute the corresponding diagnosis operation on the vehicle, the condition that the data flow information in the vehicle to be diagnosed does not exist is avoided, and the overall accuracy and reliability of vehicle diagnosis are relatively ensured.
Furthermore, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the vehicle diagnosis method as described above.
The computer-readable storage medium provided by the application receives a diagnosis action request by a diagnosis device, wherein the diagnosis action request comprises vehicle information acquisition, a vehicle diagnosis file is acquired in a server according to the diagnosis action request, the vehicle diagnosis file is further analyzed to obtain a diagnosis action field, and vehicle diagnosis operation is executed according to the diagnosis action field and the diagnosis action request. The vehicle diagnosis file comprises the diagnosis action field, so that the corresponding target diagnosis action field can be selectively called according to the diagnosis action request to execute the corresponding diagnosis operation on the vehicle, the condition that the data flow information in the vehicle to be diagnosed does not exist is avoided, and the overall accuracy and reliability of vehicle diagnosis are relatively ensured.
A vehicle diagnostic method, apparatus, device and storage medium provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (8)

1. A vehicle diagnostic method is applied to a diagnostic apparatus, and includes:
receiving a diagnostic action request, wherein the diagnostic action request comprises vehicle information;
acquiring a vehicle diagnosis file in a server according to the diagnosis action request;
analyzing the vehicle diagnosis file to obtain a diagnosis behavior field;
performing a vehicle diagnostic operation according to the diagnostic action field and the diagnostic action request;
wherein the performing a vehicle diagnostic operation based on the diagnostic action field and the diagnostic action request comprises: matching a target diagnostic action field corresponding to the diagnostic action request in the diagnostic action field; performing the vehicle diagnostic operation based on a diagnostic service field in the vehicle diagnostic file corresponding to the target diagnostic behavior field;
the performing the vehicle diagnostic operation based on the diagnostic service field corresponding to the target diagnostic behavior field in the vehicle diagnostic file comprises:
reading a diagnosis service field corresponding to the target diagnosis behavior field in the vehicle diagnosis file;
acquiring a diagnosis command field corresponding to the diagnosis service field; wherein, the diagnosis command field comprises a display field;
executing the diagnosis command of the diagnosis command field to obtain a diagnosis data stream;
judging whether the field value of the display field is a display default value or not;
and if the field value of the display field is the display default value, performing front-end display on the diagnosis data stream.
2. The vehicle diagnostic method of claim 1, wherein after the executing the diagnostic command of the diagnostic command field results in a diagnostic data stream, the method further comprises:
writing the diagnostic data stream to a diagnostic log.
3. The vehicle diagnostic method of claim 1, wherein the obtaining a vehicle diagnostic file in a server according to the diagnostic action request comprises:
acquiring identity information of the vehicle to be diagnosed according to the diagnosis action request;
and acquiring the corresponding vehicle diagnosis file in the server according to the identity information.
4. The vehicle diagnostic method of claim 3, wherein the identity information comprises a vehicle VIN code and/or vehicle model information.
5. A vehicle diagnosis method is applied to a server and comprises the following steps:
acquiring identity information of a vehicle to be diagnosed;
generating diagnostic service data according to the identity information;
setting a diagnosis behavior field for the diagnosis service data to generate a vehicle diagnosis file for a diagnosis device to obtain and execute vehicle diagnosis operation according to the diagnosis behavior field;
wherein the diagnostic device matches a target diagnostic action field corresponding to a diagnostic action request in the diagnostic action field; performing the vehicle diagnostic operation based on a diagnostic service field in the vehicle diagnostic file corresponding to the target diagnostic behavior field; the performing the vehicle diagnostic operation based on the diagnostic service field corresponding to the target diagnostic behavior field in the vehicle diagnostic file comprises: reading a diagnosis service field corresponding to the target diagnosis behavior field in the vehicle diagnosis file; acquiring a diagnosis command field corresponding to the diagnosis service field; wherein, the diagnosis command field comprises a display field; executing the diagnosis command of the diagnosis command field to obtain a diagnosis data stream; judging whether the field value of the display field is a display default value or not; and if the field value of the display field is the display default value, performing front-end display on the diagnosis data stream.
6. A vehicle diagnostic device characterized by comprising:
the request receiving module is used for receiving a diagnosis action request, and the diagnosis action request comprises vehicle information;
the diagnostic file acquisition module is used for acquiring a vehicle diagnostic file in the server according to the diagnostic behavior request;
the behavior field analyzing module is used for analyzing the vehicle diagnosis file to obtain a diagnosis behavior field;
the diagnosis operation execution module is used for executing vehicle diagnosis operation according to the diagnosis action field and the diagnosis action request;
wherein, the diagnosis operation execution module comprises:
the behavior field matching module is used for matching a target diagnosis behavior field corresponding to the diagnosis behavior request in the diagnosis behavior field;
the service field execution module is used for executing vehicle diagnosis operation based on the diagnosis service field corresponding to the target diagnosis action field in the vehicle diagnosis file;
a service field execution module comprising:
the diagnostic service reading module is used for reading a diagnostic service field corresponding to the target diagnostic behavior field in the vehicle diagnostic file;
the command field acquisition module is used for acquiring a diagnosis command field corresponding to the diagnosis service field; wherein, the diagnosis command field comprises a display field;
the command field execution module is used for executing the diagnosis command of the diagnosis command field to obtain a diagnosis data stream;
the default value judging module is used for judging whether the field value of the display field is the display default value or not, and if so, the front-end display module is called;
and the front-end display module is used for carrying out front-end display on the diagnostic data stream.
7. A vehicle diagnostic apparatus characterized by comprising:
a memory for storing a computer program;
a processor for carrying out the steps of the vehicle diagnostic method according to any one of claims 1 to 4 and/or the steps of the vehicle diagnostic method according to claim 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the vehicle diagnostic method as claimed in one of claims 1 to 4 and/or the steps of the vehicle diagnostic method as claimed in claim 5.
CN202010762726.4A 2020-07-31 2020-07-31 Vehicle diagnosis method, device, equipment and storage medium Active CN111857103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010762726.4A CN111857103B (en) 2020-07-31 2020-07-31 Vehicle diagnosis method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010762726.4A CN111857103B (en) 2020-07-31 2020-07-31 Vehicle diagnosis method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111857103A CN111857103A (en) 2020-10-30
CN111857103B true CN111857103B (en) 2022-04-19

Family

ID=72954111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010762726.4A Active CN111857103B (en) 2020-07-31 2020-07-31 Vehicle diagnosis method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111857103B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631228A (en) * 2020-12-28 2021-04-09 浙江中控技术股份有限公司 Data processing method and system
CN113065033B (en) * 2021-03-22 2023-03-14 江铃汽车股份有限公司 ODX file-based diagnosis method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101393543A (en) * 2007-09-18 2009-03-25 西门子公司 Failure analysis and diagnosis method and system
CN104965507A (en) * 2015-06-29 2015-10-07 广州汽车集团股份有限公司 Method used for generating open diagnostic data exchange database and device
CN105530291A (en) * 2015-11-30 2016-04-27 深圳市元征软件开发有限公司 Method, device and system for obtaining diagnostic equipment state
CN105843920A (en) * 2016-03-25 2016-08-10 深圳市道通科技股份有限公司 Information display method and apparatus applied to automotive diagnosis device
CN108566368A (en) * 2018-02-08 2018-09-21 深圳市元征软件开发有限公司 A kind of data processing method, server and diagnosis connector
CN110597239A (en) * 2019-10-22 2019-12-20 上海星融汽车科技有限公司 Diagnosis method for displaying vehicle diagnosis function nodes on same interface
CN110989555A (en) * 2019-12-06 2020-04-10 深圳市元征科技股份有限公司 Vehicle diagnosis and alarm method, device and system
CN111024405A (en) * 2019-11-28 2020-04-17 深圳市元征科技股份有限公司 Automobile diagnosis method, related device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117215B (en) * 2015-08-05 2018-12-07 深圳市元征科技股份有限公司 The development approach and device of automobile function
CN109581994A (en) * 2017-09-28 2019-04-05 深圳市优必选科技有限公司 A kind of robot failure diagnosis method, system and terminal device
CN109800040A (en) * 2018-12-21 2019-05-24 深圳市元征科技股份有限公司 A kind of diagnostic program interface display method, device and vehicle diagnostic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101393543A (en) * 2007-09-18 2009-03-25 西门子公司 Failure analysis and diagnosis method and system
CN104965507A (en) * 2015-06-29 2015-10-07 广州汽车集团股份有限公司 Method used for generating open diagnostic data exchange database and device
CN105530291A (en) * 2015-11-30 2016-04-27 深圳市元征软件开发有限公司 Method, device and system for obtaining diagnostic equipment state
CN105843920A (en) * 2016-03-25 2016-08-10 深圳市道通科技股份有限公司 Information display method and apparatus applied to automotive diagnosis device
CN108566368A (en) * 2018-02-08 2018-09-21 深圳市元征软件开发有限公司 A kind of data processing method, server and diagnosis connector
CN110597239A (en) * 2019-10-22 2019-12-20 上海星融汽车科技有限公司 Diagnosis method for displaying vehicle diagnosis function nodes on same interface
CN111024405A (en) * 2019-11-28 2020-04-17 深圳市元征科技股份有限公司 Automobile diagnosis method, related device and system
CN110989555A (en) * 2019-12-06 2020-04-10 深圳市元征科技股份有限公司 Vehicle diagnosis and alarm method, device and system

Also Published As

Publication number Publication date
CN111857103A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN111045952B (en) Software testing method, flow playback device, terminal equipment and readable storage medium
US7904757B2 (en) Activity identifier based tracing and troubleshooting
CN110673576B (en) Automatic test method and device, vehicle and storage medium
CN111857103B (en) Vehicle diagnosis method, device, equipment and storage medium
CN107370637B (en) Vehicle-mounted ECU communication function automatic test system and method
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN110888804B (en) Interface test method and interface test platform
CN114625645A (en) Service testing method and device, electronic equipment and readable storage medium
CN110322587B (en) Evaluation recording method, device and equipment in driving process and storage medium
CN114896168B (en) Quick debugging system, method and memory for automatic driving algorithm development
CN115542875A (en) Vehicle detection method based on SOA service and related equipment
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN114356769A (en) Software learning method, device, equipment and storage medium
CN112346981A (en) Joint debugging test coverage rate detection method and system
CN111813662A (en) User behavior driven sustainable integration test method, device and equipment
CN112416735A (en) Application program detection method and device, terminal equipment and storage medium
CN114124992B (en) Method, device, equipment and system for monitoring running state of whole vehicle domain controller
CN114488997B (en) ECU (electronic control Unit) refreshing method and device, electronic equipment and storage medium
CN113778801B (en) Method and device for reporting start event, electronic equipment and storage medium
CN115473832B (en) Internet of vehicles end cloud communication testing method, device, server, client and system
CN117155818A (en) Real vehicle testing method, system and medium based on SOA service
CN116915645A (en) Signal detection method and device, electronic equipment and vehicle
CN117376225A (en) Communication test method and electronic equipment
CN116300791A (en) Diagnostic report generation method and related equipment
CN116125946A (en) Vehicle fault diagnosis method, system, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant