CN117369417A - Test method, device, equipment and storage medium for vehicle-mounted diagnosis application - Google Patents

Test method, device, equipment and storage medium for vehicle-mounted diagnosis application Download PDF

Info

Publication number
CN117369417A
CN117369417A CN202311524127.9A CN202311524127A CN117369417A CN 117369417 A CN117369417 A CN 117369417A CN 202311524127 A CN202311524127 A CN 202311524127A CN 117369417 A CN117369417 A CN 117369417A
Authority
CN
China
Prior art keywords
fault
vehicle
display
test
log
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.)
Pending
Application number
CN202311524127.9A
Other languages
Chinese (zh)
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.)
FAW Jiefang Automotive Co Ltd
Original Assignee
FAW Jiefang Automotive 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 FAW Jiefang Automotive Co Ltd filed Critical FAW Jiefang Automotive Co Ltd
Priority to CN202311524127.9A priority Critical patent/CN117369417A/en
Publication of CN117369417A publication Critical patent/CN117369417A/en
Pending legal-status Critical Current

Links

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/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present application relates to a test method, apparatus, computer device, storage medium and computer program product for an on-board diagnostic application. The method comprises the following steps: and in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application. And sending the display log to the first upper computer, wherein the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log. And under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by the vehicle remote terminal. And determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log. Thus, the test effect of the vehicle-mounted diagnosis application test is improved.

Description

Test method, device, equipment and storage medium for vehicle-mounted diagnosis application
Technical Field
The present application relates to the field of vehicle testing technology, and in particular, to a testing method, apparatus, computer device, storage medium and computer program product for vehicle-mounted diagnostic applications.
Background
Along with the development of vehicle technology, the vehicle intelligent degree is higher and higher, in order to facilitate the driver to timely grasp the fault condition of the vehicle and ensure driving safety, the fault information of the vehicle is usually displayed in time by utilizing the diagnosis application of the vehicle-mounted large screen so as to visually present the fault of the vehicle.
To ensure the accuracy of the display of the diagnostic application, it is often necessary to test the diagnostic application, and in the related art, to test whether the display of the diagnostic application is erroneous by simulating the entire vehicle failure and transmitting to the diagnostic application for display. However, the related art cannot further locate the cause of the error in the diagnostic application, i.e. the test effect is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a testing method, apparatus, computer device, computer-readable storage medium, and computer program product for an in-vehicle diagnostic application that can improve the testing effect of the in-vehicle diagnostic application test.
In a first aspect, the present application provides a method for testing an onboard diagnostic application, comprising:
in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application;
the display log is sent to a first upper computer, and the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log;
under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by a vehicle remote terminal;
And determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
In a second aspect, the present application further provides a test device for an on-board diagnostic application, including:
the display log acquisition module is used for acquiring a display log sent by the vehicle-mounted diagnostic application in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application;
the log sending module is used for sending the display log to a first upper computer, and the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log;
the transmission log acquisition module is used for determining that the display condition is abnormal under the condition of receiving the diagnosis instruction sent by the first upper computer and acquiring a transmission log sent by the vehicle remote terminal;
and the determining module is used for determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
In the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application;
the display log is sent to a first upper computer, and the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log;
under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by a vehicle remote terminal;
and determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application;
the display log is sent to a first upper computer, and the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log;
under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by a vehicle remote terminal;
And determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
In a fifth aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application;
the display log is sent to a first upper computer, and the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log;
under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by a vehicle remote terminal;
and determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
The method, the device, the computer equipment, the storage medium and the computer program product for testing the vehicle-mounted diagnostic application directly acquire the display log sent by the vehicle-mounted diagnostic application in the process of concurrent fault testing of the vehicle-mounted diagnostic application. And then, sending the display log to the first upper computer, wherein the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log. Therefore, the vehicle-mounted diagnosis application is primarily judged through the first upper computer, and whether the current concurrent fault test is abnormal or not can be timely screened. And under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, namely that in the concurrent fault test process, the vehicle-mounted diagnosis application cannot display the tested fault. At this time, a transmission log sent by a vehicle remote terminal is obtained; and further accurately determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log. Based on the method, in the concurrent fault test process, not only can the vehicle-mounted diagnostic application be tested, but also the cause of the error can be accurately positioned once the error of the vehicle-mounted diagnostic application is detected, and the test effect of the vehicle-mounted diagnostic application test is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions 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 other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is an application environment diagram of a test method for an in-vehicle diagnostic application in one embodiment;
FIG. 2 is a flow diagram of a test method for an in-vehicle diagnostic application in one embodiment;
FIG. 3 is a schematic diagram of the cause determination step in one embodiment;
FIG. 4 is a schematic diagram of the testing steps of an in-vehicle diagnostic application in one embodiment;
FIG. 5 is a block diagram of a test device for an in-vehicle diagnostic application in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The test method for the vehicle-mounted diagnosis application provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The target host 102 communicates with the first host 104 through a network. The vehicle remote terminal 106 and the on-board diagnostic application 108 are both deployed in a vehicle, for example, both deployed in a vehicle. Alternatively, the onboard diagnostic application 108 is deployed on an onboard screen, and the vehicle remote terminal 106 communicates with the onboard diagnostic application 108, which may be a wired communication, for example, through a USB (Universal Serial Bus ) connection line, or through a network. The vehicle remote terminal 104 communicates wirelessly with the target host computer 102. The on-board diagnostic application 108 communicates with the target host computer 102, and may be wired, for example, via a USB connection, or wireless, and is not particularly limited.
In the process of performing the concurrent failure test on the in-vehicle diagnostic application 108, the target upper computer 102 acquires a display log sent by the in-vehicle diagnostic application. The target upper computer 102 sends a display log to the first upper computer 104, wherein the display log is used for indicating the first upper computer 104 to check the display condition of the vehicle-mounted diagnostic application according to the display log; upon receiving the diagnostic instruction sent by the first host computer, the target host computer 102 determines that the display condition is abnormal, and acquires a transmission log sent by the vehicle remote terminal 106. The target host computer 102 determines the cause of the display abnormality of the in-vehicle diagnostic application 108 from the display log and the transmission log.
The target host 102 and the first host 104 may be the same host or different hosts, and in this embodiment, different hosts are exemplified. The upper computer is a computer device, and can be a terminal or a server, and the data storage system can store data which the server needs to process. The data storage system may be integrated on a server or may be placed on a cloud or other network server. The terminal may be, but not limited to, various personal computers, notebook computers, smart phones and tablet computers. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers. On-board diagnostic applications are used to display malfunctions that occur in a vehicle. The vehicle remote terminal can be regarded as a remote information processor (T-BOX), has a networking function, namely, the vehicle can be positioned with a satellite system, the vehicle information can be collected in real time, and the like, and the fault is detected; the system also has a real-time vehicle state detection function, namely, various information is acquired, including running data such as real-time oil consumption, residual oil quantity and the like; and has remote control vehicle functions, such as remote door closing, etc.
In an exemplary embodiment, as shown in fig. 2, a vehicle-mounted diagnostic application method is provided, and the method is applied to the target host computer 102 in fig. 1, for example, and includes the following steps S202 to S208. Wherein:
step S202, in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, obtaining a display log sent by the vehicle-mounted diagnostic application.
The on-board diagnostic application is an on-board application program for displaying the results of vehicle diagnosis, for example, for displaying a malfunction of a vehicle. The concurrent fault test is to simulate fault data of multiple fault types at one time, and send the fault data of multiple fault types to the vehicle-mounted diagnosis application for display so as to test whether the vehicle-mounted diagnosis application can completely and correctly display the fault data of all the simulated fault types. If the vehicle-mounted diagnosis application can be displayed completely and correctly, the vehicle-mounted diagnosis application is indicated to have no error, the test is passed, and if the vehicle-mounted diagnosis application can not be displayed completely or displayed incorrectly, the vehicle-mounted diagnosis application is indicated to have error, and the test is not passed. The display log is a log that records display data of the on-board diagnostic application, and optionally, the display log is used for recording fault data actually displayed by the on-board diagnostic application at each test.
Optionally, in the process of performing concurrent fault test on the vehicle-mounted diagnostic application, the vehicle-mounted diagnostic application generates a display log of the current concurrent fault test according to the fault data actually displayed by the vehicle-mounted diagnostic application and the fault data actually received, and sends the display log to the target upper computer, and the target upper computer acquires the display log in the current concurrent fault test.
In an exemplary process of performing a current concurrent fault test on an on-board diagnostic application of a vehicle, the on-board diagnostic application receives fault data sent from a remote terminal of the vehicle, obtains actually received fault data, and performs format conversion based on the actually received fault data to obtain fault data for display, that is, actually displayed fault data. The on-board diagnostic application generates a display log from the actually received fault data and the actually displayed fault data. And the vehicle-mounted diagnosis application sends the display log to the target upper computer, and the target upper computer receives and stores the display log corresponding to the current concurrent fault test of the vehicle. The target host computer associates the display log with a vehicle identifier of the vehicle on which the onboard diagnostic application is installed and a test label of the current concurrent failure test, and stores the associated display log.
In some embodiments, the method further comprises: and responding to the test request aiming at the vehicle-mounted diagnostic application, determining the currently tested fault simulation equipment, starting the fault simulation equipment so that the fault simulation equipment generates test fault data, sending the test fault data to the vehicle remote terminal, and sending the test fault data to the vehicle-mounted diagnostic application for display through the vehicle remote terminal, wherein the test fault data comprises test information of various test fault types.
The fault simulation device is a device for simulating concurrent fault tests, for example, the fault simulation device may be a simulation device configured with a fault injection system, or may be a simulation device of a whole vehicle test bench. The fault data related to the actual whole vehicle is generated by the whole vehicle test bench, so that the simulation speed is higher. However, for some scenarios, such as extreme environments, the entire vehicle test bench cannot simulate corresponding fault data. At this point, it can be modeled by a fault injection system. The fault injection system comprises a sensor fault injection plate, an actuator fault injection plate, a high-current injection plate and other units and is used for automatically simulating and generating fault data in the whole vehicle. The fault injection system not only can simulate all fault data which can be simulated by the whole vehicle test bench, but also can simulate fault data in an extreme environment. The test fault data comprises a plurality of test fault types and test information of each test fault type.
Optionally, the target upper computer responds to the test request for the vehicle-mounted diagnosis application, determines the currently tested fault simulation equipment from the simulation equipment of the whole vehicle test bench and the simulation equipment of the fault injection system, and controls the fault simulation equipment to start simulation so that the fault simulation equipment generates test fault data of the current test and sends the test fault data to the vehicle remote terminal. The vehicle remote terminal sends the actually received test fault data to the vehicle-mounted diagnosis application, and the vehicle-mounted diagnosis application performs format conversion based on the actually received test fault data to obtain and display actually displayed fault test data.
The target upper computer responds to a test request for the vehicle-mounted diagnosis application, queries whether a record of a history test corresponding to the vehicle identification exists in a pre-stored test database according to the vehicle identification carried by the test request, and if so, determines the fault simulation equipment of the current test according to the record of the history test. If the fault simulation equipment does not exist, determining the fault simulation equipment which is tested currently according to the actual demand.
It should be noted that, in order to ensure the validity of multiple concurrent fault tests, the test fault data related to each concurrent fault test is different, so in the process of determining the fault simulation device of the current test (i.e., the current concurrent fault test), the record of the historical concurrent fault test of the tested process may be queried first, where the record includes the test fault data simulated by the historical concurrent fault test. Based on the record, fault data of other untested fault types are selected, whereby a fault simulation device capable of simulating the other untested fault data is determined. It should be noted that, if the historical concurrent fault test has already tested the fault data of all the extreme environments, then, for the current concurrent fault test, it is not necessary to test the fault data of the extreme environments again, and it is necessary to test the fault during the actual whole vehicle, therefore, the fault injection system is not required to be used for simulation, and the simulation device of the whole vehicle test bench is only used for simulation, that is, the simulation device of the whole vehicle test bench is determined to be the current fault simulation device, for example, the electric faults such as short circuit to the power supply, short circuit to the ground, open circuit, adhesion to the switch are only simulated through the whole vehicle test bench, and thus, the efficiency of fault simulation can be improved. For another example, historical concurrent fault testing fails to test fault data for an extreme environment, at which time it is desirable to determine the simulation device of the fault injection system as the current fault simulation device.
In this embodiment, in response to a test request for the vehicle-mounted diagnostic application, a fault simulation device required by a current test is determined, and the fault simulation device is turned on, so that the fault simulation device timely generates test fault data, sends the test fault data to a vehicle remote terminal, and sends the test fault data to the vehicle-mounted diagnostic application for display through the vehicle remote terminal, wherein the test fault data contains test information of multiple test fault types. Thus, the test request is responded quickly, and corresponding test fault data is generated, so that the test efficiency is improved.
Step S204, a display log is sent to the first upper computer, and the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log.
The first upper computer is used for judging whether the vehicle-mounted diagnosis application displays correct computer equipment. The display condition characterizes whether the on-board diagnostic application is properly displayed.
Optionally, the first upper computer receives the display log sent by the target upper computer, and the first upper computer acquires test fault data simulated by the pre-stored fault simulation device. The first upper computer analyzes the actually displayed fault data in the display log, and verifies the display condition of the vehicle-mounted diagnosis application according to the actually displayed fault data and the test fault data.
In some embodiments, the display log includes first fault data displayed by the on-board diagnostic application, and the sending of the display log to the first host computer includes: under the condition that a query instruction sent by the first upper computer is received, sending a display log to the first upper computer, wherein the display log is used for indicating the first upper computer to compare the first fault data with the pre-stored test fault data, and under the condition that the first fault data is inconsistent with the test fault data, determining that the display condition is abnormal, and generating a diagnosis instruction.
The query instruction comprises a vehicle identifier of a vehicle on which the vehicle-mounted diagnosis application is mounted. The diagnosis instruction is used for indicating the first upper computer to diagnose the cause of the display abnormality. The first fault data is the fault data actually displayed by the vehicle-mounted diagnosis application.
Optionally, the first upper computer acquires a vehicle identifier of the vehicle currently subjected to concurrent test and a test label of the current concurrent fault test, and generates the query instruction according to the vehicle identifier and the test label. The first upper computer sends the query instruction to the target upper computer. And the target upper computer sends the display log corresponding to the vehicle identification and the test mark to the first upper computer. After receiving the display log, the first upper computer analyzes the display log to obtain first fault data displayed by the vehicle-mounted diagnosis application. The first upper computer queries test fault data corresponding to the vehicle identification and the test mark, and compares the first fault data with the test fault data. Under the condition that the first fault data is consistent with the test fault data, the first upper computer determines that the vehicle-mounted diagnosis application is not in error in the current concurrent fault test, namely the display condition is normal, sends a result of the normal display condition to the target upper computer for corresponding storage, and ends the current concurrent fault test. And under the condition that the first fault data is inconsistent with the test fault data, determining that the display condition is abnormal, generating a diagnosis instruction, sending the diagnosis instruction to the target upper computer, and returning to the step S206 for continuous execution after the target upper computer receives the diagnosis instruction.
Illustratively, the first fault data includes first fault information of at least one first fault type and the test fault data includes test fault information of a plurality of test fault types. If the number of the first fault types is the same as the number of the test fault types, and each first fault type has the same test fault type, further checking whether the first fault information of each first fault type is consistent with the test fault information of the same test fault type, and if so, indicating that the first fault data is consistent with the test fault data. If at least one of the number of the first fault types and the number of the test fault types are different, the first fault type does not have the same test fault type as the first fault type, and the first fault information of the first fault type is inconsistent with the test fault information of the same test fault type as the first fault information is met, the first fault data is determined to be inconsistent with the test fault data.
In this embodiment, under the condition that a query instruction sent by the first upper computer is received, a display log is directly sent to the first upper computer, where the display log is used to instruct the first upper computer to compare the first fault data with the pre-stored test fault data, so as to pre-verify whether the vehicle-mounted diagnostic application displays an error. And under the condition that the first fault data is inconsistent with the test fault data, determining that the display condition is abnormal, and generating a diagnosis instruction. Therefore, the reasons for errors can be accurately positioned based on the diagnosis instructions, and the test effect of the vehicle-mounted diagnosis application test is improved.
Step S206, when a diagnosis instruction sent by the first upper computer is received, the abnormal display condition is determined, and a transmission log sent by the vehicle remote terminal is obtained.
The transmission log describes the fault data transmission process between the vehicle remote terminal and the vehicle-mounted diagnosis application.
Optionally, under the condition that the target upper computer receives the diagnosis instruction sent by the first upper computer, the target upper computer determines that the display condition corresponding to the current concurrent fault test is abnormal. And the target upper computer determines the vehicle identification of the vehicle carried by the vehicle-mounted diagnosis application, and sends a log acquisition instruction to the vehicle remote terminal matched with the vehicle identification according to the test mark. After receiving the log obtaining instruction, the vehicle remote terminal queries a transmission log corresponding to the test mark from a plurality of prestored transmission logs, and sends the transmission log corresponding to the test mark to the target upper computer.
Step S208, determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
Optionally, the target upper computer checks whether format conversion of the vehicle-mounted diagnosis application is in error according to the display log, and a first check result is obtained. And checking whether transmission between the vehicle-mounted diagnosis application and the vehicle remote terminal is in error or not according to the display log and the transmission log, and obtaining a second checking result. And the target upper computer positions the reasons for abnormal display of the vehicle-mounted diagnosis application according to the first check result and the second check result.
It can be appreciated that the first verification result can reflect whether the cause of the display abnormality is caused by an error of the on-board diagnostic application itself, that is, whether the format conversion process of the on-board diagnostic application has an erroneous conversion or a missing conversion. The second check result can reflect whether the cause of the display abnormality is caused by a transmission error between the in-vehicle diagnostic application and the vehicle remote terminal.
In the whole fault data transmission chain, firstly, the fault simulation equipment simulates the generated test fault data and transmits the test fault data to a vehicle remote terminal of the vehicle for current concurrent fault test. And then, the vehicle remote terminal transmits the received test fault data to the vehicle-mounted diagnosis application through the USB connecting wire, and the vehicle-mounted diagnosis application performs format conversion on the actually received fault data to obtain the actually displayed fault data. In this process, if at least one of transmission error and format conversion occurs, the fault data displayed by the on-board diagnostic application is caused to be erroneous.
Particularly in the case of concurrent fault testing, that is, in which a large amount of fault data of fault type is simultaneously transmitted in one test, data may be missing or missing in the fault data transmission chain, and these causes may cause the vehicle-mounted diagnostic application to fail to accurately and comprehensively display all the fault data. Therefore, after the vehicle-mounted diagnostic application is displayed, pre-detection is carried out through the first upper computer, whether the vehicle-mounted diagnostic application is in error or not in the current concurrent fault test is judged, if not, the current concurrent fault test is ended, and if so, after the obtained first checking result and the second checking result are obtained, the reason that the vehicle-mounted diagnostic application is in abnormal display can be positioned according to the first checking result and the second checking result.
According to the test method of the vehicle-mounted diagnostic application, the display log sent by the vehicle-mounted diagnostic application is directly obtained in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application. And then, sending the display log to the first upper computer, wherein the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log. Therefore, the vehicle-mounted diagnosis application is primarily judged through the first upper computer, and whether the current concurrent fault test is abnormal or not can be timely screened. And under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, namely that in the concurrent fault test process, the vehicle-mounted diagnosis application cannot display the tested fault. At this time, a transmission log sent by a vehicle remote terminal is obtained; and further accurately determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log. Based on the method, in the concurrent fault test process, not only can the vehicle-mounted diagnostic application be tested, but also the cause of the error can be accurately positioned once the error of the vehicle-mounted diagnostic application is detected, and the test effect of the vehicle-mounted diagnostic application test is improved.
In some embodiments, as shown in FIG. 3, a schematic diagram of the cause determination step is shown in one embodiment. The display log further comprises second fault data received by the vehicle-mounted diagnosis application, and the transmission log comprises third fault data sent to the vehicle-mounted diagnosis application; determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log, wherein the method comprises the following steps:
step S302, format conversion is carried out on the second fault data to obtain converted second fault data, and the converted second fault data and the first fault data are compared to obtain a first comparison result related to vehicle-mounted diagnosis application.
Wherein format conversion is converting fault data of one format into fault data of another format for display. The format conversion mentioned in this embodiment is normal format conversion, i.e., no omission or deletion occurs. However, the conversion of the second fault data into the third fault data is not necessarily a normal format conversion when the on-board diagnostic application actually converts the second fault data, and thus the first comparison result is required to be checked.
Optionally, after the target upper computer obtains the display log, analyzing the second fault data from the display log, and performing format conversion on the second fault data to obtain converted second fault data. And the target upper computer compares the converted second fault data with the first fault data to obtain a first comparison result. And if the converted second fault data is the same as the first fault data, determining that the first comparison result represents the consistency of comparison. If the converted second fault data is different from the first fault data, determining that the characterization comparison of the first comparison result is inconsistent. The first comparison result mentioned here can be understood as the first check result mentioned previously.
In some embodiments, the converted second fault data includes at least one second fault type and corresponding second fault information, and the first fault data includes at least one first fault type and corresponding first fault information; comparing the converted second fault data with the first fault data to obtain a first comparison result about the vehicle-mounted diagnostic application, including: for each second fault type, respectively comparing the second fault type with each first fault type; under the condition that the first fault type is consistent with the second fault type, comparing the second fault information of the checked second fault type with the first fault information of the first fault type to obtain a comparison result of the second fault type; and under the condition that the comparison results of each second fault type are consistent in characterization comparison, determining that the first comparison results are consistent in characterization comparison.
For example, the target upper computer compares whether the number of the first fault types and the number of the second fault types are consistent, and if not, the target upper computer directly determines that the first comparison result related to the vehicle-mounted diagnosis application is inconsistent in comparison. And if the first fault types are consistent, the target upper computer compares the first fault types with the second fault types for each second fault type.
If any one of the first fault types is not verified to be the same as the second fault type, the target upper computer directly determines that the first comparison result is inconsistent in comparison.
If the first fault type is the same as the second fault type, the target upper computer compares whether the first fault information corresponding to the first fault type and the second fault information of the second fault type are the same, if not, the target upper computer directly determines that the first comparison result is inconsistent, and if so, the target upper computer determines that the first comparison result is consistent.
In this embodiment, for each second fault type, the second fault type is compared with each first fault type, respectively. And under the condition that the first fault type is consistent with the second fault type, the fault data are not missed in the format conversion process, and at the moment, the second fault information of the checked second fault type is further compared with the first fault information of the first fault type to obtain a comparison result of the second fault type. Under the condition that the comparison results of the second fault types are consistent in characterization and comparison, the fault information is not lost in the format conversion process, and at the moment, the first comparison result can be determined to be consistent in characterization and comparison. Also, it can be determined that the cause of the error is not caused by format conversion of the on-board diagnostic application.
And step S304, comparing the second fault data with the third fault data to obtain a second comparison result transmitted between the vehicle remote terminal and the vehicle-mounted diagnosis application.
The second fault data are fault data actually received by the vehicle-mounted diagnosis application. The third fault data is fault data actually transmitted by the vehicle remote terminal.
Optionally, after the target upper computer obtains the transmission log, the target upper computer analyzes the third fault data from the transmission log. And the target upper computer compares the second fault data with the third fault data to obtain a second comparison result. If the second fault data and the third fault data are the same, the target upper computer determines that the second comparison result is consistent in characterization comparison. If the third fault data and the third fault data are different, the target upper computer determines that the third comparison result characterization is inconsistent. The second comparison result mentioned here is the second check result mentioned previously.
The second fault data is subjected to format conversion to obtain converted second fault data, wherein the format conversion is normal format conversion, so that the fault type in the converted second fault data is consistent with the corresponding fault information and the second fault data. Thus, the second fault data comprises at least one second fault type and corresponding second fault information. The third fault data includes a plurality of third fault types and corresponding third fault information.
For each second fault type, the second fault type is compared with each third fault type; under the condition that the existence of the third fault type is consistent with the second fault type is checked, comparing the second fault information of the checked second fault type with the third fault information of the third fault type to obtain a comparison result of the second fault type; and under the condition that the comparison results of each second fault type are consistent in characterization comparison, determining that the second comparison results are consistent in characterization comparison.
For example, the target upper computer compares whether the number of the third fault types and the number of the second fault types are consistent, and if not, the target upper computer directly determines that the second comparison result transmitted between the vehicle-mounted diagnosis application and the vehicle remote terminal is inconsistent. And if the second fault types are consistent, the target upper computer compares the second fault types with the third fault types respectively for each second fault type.
If any one of the third fault types is not verified to be the same as the second fault type, the target upper computer directly determines that the second comparison result is inconsistent in comparison.
If the third fault type is the same as the second fault type, the target upper computer compares whether the third fault information corresponding to the third fault type is the same as the second fault information of the second fault type, if not, the target upper computer directly determines that the second comparison result is inconsistent, and if so, the target upper computer determines that the second comparison result is consistent.
In step S306, when the first comparison result is inconsistent in the characterization comparison and the second comparison result is consistent in the characterization comparison, it is determined that the cause of the display abnormality is the display abnormality of the vehicle-mounted diagnostic application.
In this embodiment, first, format conversion is performed on the second fault data to obtain converted second fault data, and a first comparison result related to vehicle-mounted diagnostic application is obtained by comparing the converted second fault data with the first fault data. Thus, based on the first comparison result, it can be checked in time whether the cause of the display error is caused by the onboard diagnostic application error format conversion. And comparing the second fault data with the third fault data to obtain a second comparison result about transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application. Therefore, based on the second comparison result, whether the cause of the display error is caused by the transmission error between the vehicle remote terminal and the vehicle-mounted diagnosis application can be checked in time. Under the conditions that the first comparison result is inconsistent in characterization comparison and the second comparison result is consistent in characterization comparison, the reason for the occurrence of display abnormality can be precisely positioned to be the occurrence of display abnormality of the vehicle-mounted diagnostic application, and therefore the test effect of the vehicle-mounted diagnostic application is improved.
In some embodiments, the method further comprises: under the conditions that the first comparison result is consistent in characterization comparison and the second comparison result is inconsistent in characterization comparison, determining that the reason for abnormal display is abnormal transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application.
In other examples, the cause of the display abnormality is determined to be abnormal transmission between the vehicle remote terminal and the vehicle-mounted diagnostic application and display abnormality of the vehicle-mounted diagnostic application when the first comparison result is inconsistent in the characterization comparison and the second comparison result is inconsistent in the characterization comparison.
In addition, under the condition that the first comparison result characterization comparison is consistent and the second comparison result characterization comparison is consistent, the target upper computer judges that the current concurrent fault test is abnormal, and records the transmission log and the display log of the current concurrent fault test so as to instruct corresponding maintenance personnel to further exclude the current concurrent fault test based on the transmission log and the display log.
In this embodiment, under the condition that the first comparison result is consistent in characterization comparison and the second comparison result is inconsistent in characterization comparison, the reason that the display abnormality occurs can be precisely located to be that the abnormality transmission occurs between the vehicle remote terminal and the vehicle-mounted diagnostic application, so that the test effect of the vehicle-mounted diagnostic application is improved.
In one specific embodiment, as shown in FIG. 4, a schematic diagram of the testing steps of an in-vehicle diagnostic application in one embodiment is shown. In this embodiment, the first host computer, the second host computer, and the third host computer are referred to, and in some examples, the first host computer, the second host computer, and the third host computer may be the same host computer, for example, all be regarded as target host computers. In some examples, to further distinguish between the second host computer and the third host computer, both the second host computer and the third host computer may be considered as target host computers, i.e., any one of the second host computer and the third host computer is selected as the target host computer, so that in this example, the first host computer is used to pre-check whether the current concurrent failure test is in error. If the error occurs, the target upper computer is used for locating the error reason, namely the function of the target upper computer and the function of the first upper computer in the example are different. The following description will take any one of the second host computer and the third host computer as an example of the target host computer.
In fig. 4, the conversion between the simulation equipment of the fault injection system and the simulation equipment of the whole vehicle test bench is realized through a conversion unit. And determining the fault simulation equipment for the current concurrent fault test based on the conversion unit. The test fault data simulated by the fault simulation equipment are stored in the first upper computer through a CAN (Controller Area Network ) unit, and the first upper computer detects and records the test fault data generated by the fault simulation equipment through the CAN unit. The cloud back-office is used for storing data stored by the vehicle remote terminal, such as a transmission log. The target upper computer (the second upper computer or the third upper computer) reads data of the vehicle-mounted diagnostic application, for example, a display log through an adb (android debug bridge ) debug instruction. In fig. 4, the vehicle-mounted remote terminal is connected to the vehicle-mounted diagnostic application through a USB connection line, and the vehicle-mounted diagnostic application is connected to the third upper computer through a USB connection line. The second host computer may communicate with the vehicle remote terminal via a network and also communicate with the on-board diagnostic application via the network. The third host computer may communicate with the vehicle remote terminal via a network and also communicate with the on-board diagnostic application via the network.
The testing process of the in-vehicle diagnostic application in the embodiments of the present application will be explained in detail below. In the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, the target upper computer responds to a test request aiming at the vehicle-mounted diagnostic application, determines the fault simulation equipment of the current test, starts the fault simulation equipment so that the fault simulation equipment generates test fault data, sends the test fault data to the vehicle remote terminal, and sends the test fault data to the vehicle-mounted diagnostic application for display through the vehicle remote terminal, wherein the test fault data comprises test information of various test fault types. And the target upper computer acquires a display log sent by the vehicle-mounted diagnosis application. The target upper computer sends the display log to the first upper computer, the first upper computer compares the first fault data with the pre-stored test fault data, and under the condition that the first fault data is inconsistent with the test fault data, the display condition is determined to be abnormal, and a diagnosis instruction is generated and sent to the target upper computer.
And under the condition that the target upper computer receives the diagnosis instruction sent by the first upper computer, sending the display log to the first upper computer. The display log further comprises second fault data received by the vehicle-mounted diagnosis application, and the transmission log comprises third fault data sent to the vehicle-mounted diagnosis application. And performing format conversion on the second fault data to obtain converted second fault data. The converted second fault data includes at least one second fault type and corresponding second fault information, and the first fault data includes at least one first fault type and corresponding first fault information. And the target upper computer compares whether the quantity of the first fault type and the second fault type is consistent, and if the quantity of the first fault type and the quantity of the second fault type are inconsistent, the target upper computer directly determines that the first comparison result related to the vehicle-mounted diagnosis application is inconsistent. And if the first fault types are consistent, the target upper computer compares the first fault types with the second fault types for each second fault type. If any one of the first fault types is not verified to be the same as the second fault type, the target upper computer directly determines that the first comparison result is inconsistent in comparison. If the first fault type is the same as the second fault type, the target upper computer compares whether the first fault information corresponding to the first fault type and the second fault information of the second fault type are the same, if not, the target upper computer directly determines that the first comparison result is inconsistent, and if so, the target upper computer determines that the first comparison result is consistent.
Since the second fault data comprises at least one second fault type and corresponding second fault information. The third fault data includes a plurality of third fault types and corresponding third fault information. Therefore, the target upper computer compares whether the number of the third fault type and the number of the second fault types are consistent, and if not, the target upper computer directly determines that the second comparison result transmitted between the vehicle-mounted diagnosis application and the vehicle remote terminal is inconsistent. And if the second fault types are consistent, the target upper computer compares the second fault types with the third fault types respectively for each second fault type. If any one of the third fault types is not verified to be the same as the second fault type, the target upper computer directly determines that the second comparison result is inconsistent in comparison. If the third fault type is the same as the second fault type, the target upper computer compares whether the third fault information corresponding to the third fault type is the same as the second fault information of the second fault type, if not, the target upper computer directly determines that the second comparison result is inconsistent, and if so, the target upper computer determines that the second comparison result is consistent.
And under the condition that the first comparison result is inconsistent in characterization comparison and the second comparison result is consistent in characterization comparison, determining that the display abnormality occurs because of the display abnormality in the vehicle-mounted diagnosis application. Under the conditions that the first comparison result is consistent in characterization comparison and the second comparison result is inconsistent in characterization comparison, determining that the reason for abnormal display is abnormal transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application.
In this embodiment, the display log sent by the vehicle-mounted diagnostic application is directly obtained in the process of performing the concurrent fault test on the vehicle-mounted diagnostic application. And then, sending the display log to the first upper computer, wherein the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log. Therefore, the vehicle-mounted diagnosis application is primarily judged through the first upper computer, and whether the current concurrent fault test is abnormal or not can be timely screened. And under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, namely that in the concurrent fault test process, the vehicle-mounted diagnosis application cannot display the tested fault. At this time, a transmission log sent by a vehicle remote terminal is obtained; and further accurately determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log. Based on the method, in the concurrent fault test process, not only can the vehicle-mounted diagnostic application be tested, but also the cause of the error can be accurately positioned once the error of the vehicle-mounted diagnostic application is detected, and the test effect of the vehicle-mounted diagnostic application test is improved. In addition, through setting up the analog device of fault injection system and the analog device of whole car test rack, can realize automatic and manual switching in a flexible way, can adapt to more test scene requirements, have higher test coverage, that is, can realize the complementation between real car operating mode and the complete simulation, can test the fault mode under the extreme operating mode, can guarantee security, the integrality of test again, can carry out the contrast test between fault injection system and the whole car test rack simultaneously, better assurance test accuracy.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a testing device for the vehicle-mounted diagnostic application for realizing the testing method of the vehicle-mounted diagnostic application. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the test device for one or more vehicle-mounted diagnostic applications provided below may be referred to the limitation of the test method for the vehicle-mounted diagnostic application hereinabove, and will not be repeated herein.
In one exemplary embodiment, as shown in FIG. 5, a test apparatus 500 for an in-vehicle diagnostic application is provided, comprising: a display log acquisition module 502, a log sending module 504, a transmission log acquisition module 506, and a determination module 508, wherein:
the display log obtaining module 502 is configured to obtain a display log sent by the vehicle-mounted diagnostic application in a process of performing concurrent fault test on the vehicle-mounted diagnostic application;
the log sending module 504 is configured to send a display log to the first upper computer, where the display log is used to instruct the first upper computer to check a display condition of the vehicle-mounted diagnostic application according to the display log;
the transmission log obtaining module 506 is configured to determine that the display condition is abnormal and obtain a transmission log sent by the vehicle remote terminal when receiving the diagnostic instruction sent by the first upper computer;
the determining module 508 is configured to determine, according to the display log and the transmission log, a cause of the display abnormality of the vehicle-mounted diagnostic application.
In some embodiments, the apparatus further includes a data sending module, where the data sending module is configured to determine, in response to a test request for the vehicle-mounted diagnostic application, a currently tested fault simulation device, and turn on the fault simulation device, so that the fault simulation device generates test fault data, and sends the test fault data to the vehicle remote terminal, and sends the test fault data to the vehicle-mounted diagnostic application through the vehicle remote terminal for display, where the test fault data includes test information of multiple test fault types.
In some embodiments, the display log includes first fault data displayed by the vehicle-mounted diagnostic application, and the log sending module 504 is configured to send the display log to the first upper computer when receiving the query instruction sent by the first upper computer, where the display log is used to instruct the first upper computer to compare the first fault data with pre-stored test fault data, determine that the display condition is abnormal when the first fault data is inconsistent with the test fault data, and generate the diagnostic instruction.
In some embodiments, the display log further includes second fault data received by the on-board diagnostic application, and the transmission log includes third fault data sent to the on-board diagnostic application; the log sending module 504 is configured to perform format conversion on the second fault data to obtain converted second fault data, and compare the converted second fault data with the first fault data to obtain a first comparison result related to the vehicle-mounted diagnostic application; comparing the second fault data with the third fault data to obtain a second comparison result about transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application; and under the condition that the first comparison result is inconsistent in characterization comparison and the second comparison result is consistent in characterization comparison, determining that the display abnormality occurs because of the display abnormality in the vehicle-mounted diagnosis application.
In some embodiments, the converted second fault data includes at least one second fault type and corresponding second fault information, and the first fault data includes at least one first fault type and corresponding first fault information; a log sending module 504, configured to compare, for each second fault type, the second fault type with each first fault type; under the condition that the first fault type is consistent with the second fault type, comparing the second fault information of the checked second fault type with the first fault information of the first fault type to obtain a comparison result of the second fault type; and under the condition that the comparison results of each second fault type are consistent in characterization comparison, determining that the first comparison results are consistent in characterization comparison.
In some embodiments, the determining module 508 is further configured to determine that the cause of the display abnormality is abnormal transmission between the vehicle remote terminal and the vehicle-mounted diagnostic application when the first comparison result is consistent in the characterization comparison and the second comparison result is inconsistent in the characterization comparison.
The various modules in the test device for on-board diagnostic applications described above may be implemented in whole or in part in software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, the computer device being any one of the above mentioned superordinate computers. The computer device may be a server or a terminal. The internal structure thereof can be shown in fig. 6. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a test method for an onboard diagnostic application.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one exemplary embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of: and in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application. And sending the display log to the first upper computer, wherein the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log. And under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by the vehicle remote terminal. And determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
In one embodiment, the processor when executing the computer program further performs the steps of: and responding to the test request aiming at the vehicle-mounted diagnostic application, determining the currently tested fault simulation equipment, starting the fault simulation equipment so that the fault simulation equipment generates test fault data, sending the test fault data to the vehicle remote terminal, and sending the test fault data to the vehicle-mounted diagnostic application for display through the vehicle remote terminal, wherein the test fault data comprises test information of various test fault types.
In one embodiment, the display log includes first fault data displayed by the on-board diagnostic application, and the processor when executing the computer program further performs the steps of: under the condition that a query instruction sent by the first upper computer is received, sending a display log to the first upper computer, wherein the display log is used for indicating the first upper computer to compare the first fault data with the pre-stored test fault data, and under the condition that the first fault data is inconsistent with the test fault data, determining that the display condition is abnormal, and generating a diagnosis instruction.
In one embodiment, the display log further includes second fault data received by the on-board diagnostic application, and the transmission log includes third fault data sent to the on-board diagnostic application; the processor when executing the computer program also implements the steps of: performing format conversion on the second fault data to obtain converted second fault data, and comparing the converted second fault data with the first fault data to obtain a first comparison result related to vehicle-mounted diagnosis application; comparing the second fault data with the third fault data to obtain a second comparison result about transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application; and under the condition that the first comparison result is inconsistent in characterization comparison and the second comparison result is consistent in characterization comparison, determining that the display abnormality occurs because of the display abnormality in the vehicle-mounted diagnosis application.
In one embodiment, the converted second fault data includes at least one second fault type and corresponding second fault information, and the first fault data includes at least one first fault type and corresponding first fault information; the processor when executing the computer program also implements the steps of: for each second fault type, respectively comparing the second fault type with each first fault type; under the condition that the first fault type is consistent with the second fault type, comparing the second fault information of the checked second fault type with the first fault information of the first fault type to obtain a comparison result of the second fault type; and under the condition that the comparison results of each second fault type are consistent in characterization comparison, determining that the first comparison results are consistent in characterization comparison.
In one embodiment, the processor when executing the computer program further performs the steps of: under the conditions that the first comparison result is consistent in characterization comparison and the second comparison result is inconsistent in characterization comparison, determining that the reason for abnormal display is abnormal transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: and in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application. And sending the display log to the first upper computer, wherein the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log. And under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by the vehicle remote terminal. And determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
In one embodiment, the computer program when executed by the processor further performs the steps of: and responding to the test request aiming at the vehicle-mounted diagnostic application, determining the currently tested fault simulation equipment, starting the fault simulation equipment so that the fault simulation equipment generates test fault data, sending the test fault data to the vehicle remote terminal, and sending the test fault data to the vehicle-mounted diagnostic application for display through the vehicle remote terminal, wherein the test fault data comprises test information of various test fault types.
In one embodiment, the display log includes first fault data displayed by the on-board diagnostic application, the computer program when executed by the processor further implementing the steps of: under the condition that a query instruction sent by the first upper computer is received, sending a display log to the first upper computer, wherein the display log is used for indicating the first upper computer to compare the first fault data with the pre-stored test fault data, and under the condition that the first fault data is inconsistent with the test fault data, determining that the display condition is abnormal, and generating a diagnosis instruction.
In one embodiment, the display log further includes second fault data received by the on-board diagnostic application, and the transmission log includes third fault data sent to the on-board diagnostic application; the computer program when executed by the processor also performs the steps of: performing format conversion on the second fault data to obtain converted second fault data, and comparing the converted second fault data with the first fault data to obtain a first comparison result related to vehicle-mounted diagnosis application; comparing the second fault data with the third fault data to obtain a second comparison result about transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application; and under the condition that the first comparison result is inconsistent in characterization comparison and the second comparison result is consistent in characterization comparison, determining that the display abnormality occurs because of the display abnormality in the vehicle-mounted diagnosis application.
In one embodiment, the converted second fault data includes at least one second fault type and corresponding second fault information, and the first fault data includes at least one first fault type and corresponding first fault information; the computer program when executed by the processor also performs the steps of: for each second fault type, respectively comparing the second fault type with each first fault type; under the condition that the first fault type is consistent with the second fault type, comparing the second fault information of the checked second fault type with the first fault information of the first fault type to obtain a comparison result of the second fault type; and under the condition that the comparison results of each second fault type are consistent in characterization comparison, determining that the first comparison results are consistent in characterization comparison.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the conditions that the first comparison result is consistent in characterization comparison and the second comparison result is inconsistent in characterization comparison, determining that the reason for abnormal display is abnormal transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of: and in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application. And sending the display log to the first upper computer, wherein the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log. And under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by the vehicle remote terminal. And determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
In one embodiment, the computer program when executed by the processor further performs the steps of: and responding to the test request aiming at the vehicle-mounted diagnostic application, determining the currently tested fault simulation equipment, starting the fault simulation equipment so that the fault simulation equipment generates test fault data, sending the test fault data to the vehicle remote terminal, and sending the test fault data to the vehicle-mounted diagnostic application for display through the vehicle remote terminal, wherein the test fault data comprises test information of various test fault types.
In one embodiment, the display log includes first fault data displayed by the on-board diagnostic application, the computer program when executed by the processor further implementing the steps of: under the condition that a query instruction sent by the first upper computer is received, sending a display log to the first upper computer, wherein the display log is used for indicating the first upper computer to compare the first fault data with the pre-stored test fault data, and under the condition that the first fault data is inconsistent with the test fault data, determining that the display condition is abnormal, and generating a diagnosis instruction.
In one embodiment, the display log further includes second fault data received by the on-board diagnostic application, and the transmission log includes third fault data sent to the on-board diagnostic application; the computer program when executed by the processor also performs the steps of: performing format conversion on the second fault data to obtain converted second fault data, and comparing the converted second fault data with the first fault data to obtain a first comparison result related to vehicle-mounted diagnosis application; comparing the second fault data with the third fault data to obtain a second comparison result about transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application; and under the condition that the first comparison result is inconsistent in characterization comparison and the second comparison result is consistent in characterization comparison, determining that the display abnormality occurs because of the display abnormality in the vehicle-mounted diagnosis application.
In one embodiment, the converted second fault data includes at least one second fault type and corresponding second fault information, and the first fault data includes at least one first fault type and corresponding first fault information; the computer program when executed by the processor also performs the steps of: for each second fault type, respectively comparing the second fault type with each first fault type; under the condition that the first fault type is consistent with the second fault type, comparing the second fault information of the checked second fault type with the first fault information of the first fault type to obtain a comparison result of the second fault type; and under the condition that the comparison results of each second fault type are consistent in characterization comparison, determining that the first comparison results are consistent in characterization comparison.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the conditions that the first comparison result is consistent in characterization comparison and the second comparison result is inconsistent in characterization comparison, determining that the reason for abnormal display is abnormal transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of testing an on-board diagnostic application, the method comprising:
in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application, acquiring a display log sent by the vehicle-mounted diagnostic application;
the display log is sent to a first upper computer, and the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log;
Under the condition that a diagnosis instruction sent by the first upper computer is received, determining that the display condition is abnormal, and acquiring a transmission log sent by a vehicle remote terminal;
and determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
2. The method according to claim 1, wherein the method further comprises:
and responding to a test request aiming at the vehicle-mounted diagnostic application, determining a currently tested fault simulation device, starting the fault simulation device so that the fault simulation device generates test fault data, sending the test fault data to the vehicle remote terminal, and sending the test fault data to the vehicle-mounted diagnostic application for display through the vehicle remote terminal, wherein the test fault data comprises test information of various test fault types.
3. The method of claim 1, wherein the display log includes first fault data displayed by the on-board diagnostic application, the sending the display log to a first host computer comprising:
and under the condition that the query instruction sent by the first upper computer is received, sending the display log to the first upper computer, wherein the display log is used for indicating the first upper computer to compare the first fault data with the pre-stored test fault data, and under the condition that the first fault data is inconsistent with the test fault data, determining that the display condition is abnormal and generating a diagnosis instruction.
4. The method of claim 3, wherein the display log further comprises second fault data received by the on-board diagnostic application, the transmission log comprising third fault data sent to the on-board diagnostic application;
the determining, according to the display log and the transmission log, a cause of the display abnormality of the vehicle-mounted diagnostic application includes:
performing format conversion on the second fault data to obtain converted second fault data, and comparing the converted second fault data with the first fault data to obtain a first comparison result related to the vehicle-mounted diagnosis application;
comparing the second fault data with the third fault data to obtain a second comparison result transmitted between the vehicle remote terminal and the vehicle-mounted diagnosis application;
and under the condition that the first comparison result is inconsistent in characterization comparison and the second comparison result is consistent in characterization comparison, determining that the display abnormality occurs because the vehicle-mounted diagnosis application is abnormal in display.
5. The method of claim 4, wherein the converted second fault data comprises at least one second fault type and corresponding second fault information, and the first fault data comprises at least one first fault type and corresponding first fault information;
The comparing the converted second fault data with the first fault data to obtain a first comparison result about the vehicle-mounted diagnostic application includes:
for each second fault type, comparing the second fault type with each first fault type respectively;
under the condition that the first fault type is checked to be consistent with the second fault type, comparing the second fault information of the checked second fault type with the first fault information of the first fault type to obtain a comparison result of the second fault type;
and under the condition that the comparison results of each second fault type are consistent in characterization comparison, determining that the first comparison results are consistent in characterization comparison.
6. The method according to claim 4, wherein the method further comprises:
and under the condition that the first comparison result is consistent in characterization comparison and the second comparison result is inconsistent in characterization comparison, determining that the reason for abnormal display is abnormal transmission between the vehicle remote terminal and the vehicle-mounted diagnosis application.
7. A test device for an in-vehicle diagnostic application, the device comprising:
The display log acquisition module is used for acquiring a display log sent by the vehicle-mounted diagnostic application in the process of carrying out concurrent fault test on the vehicle-mounted diagnostic application;
the log sending module is used for sending the display log to a first upper computer, and the display log is used for indicating the first upper computer to check the display condition of the vehicle-mounted diagnostic application according to the display log;
the transmission log acquisition module is used for determining that the display condition is abnormal under the condition of receiving the diagnosis instruction sent by the first upper computer and acquiring a transmission log sent by the vehicle remote terminal;
and the determining module is used for determining the reason for abnormal display of the vehicle-mounted diagnosis application according to the display log and the transmission log.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311524127.9A 2023-11-15 2023-11-15 Test method, device, equipment and storage medium for vehicle-mounted diagnosis application Pending CN117369417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311524127.9A CN117369417A (en) 2023-11-15 2023-11-15 Test method, device, equipment and storage medium for vehicle-mounted diagnosis application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311524127.9A CN117369417A (en) 2023-11-15 2023-11-15 Test method, device, equipment and storage medium for vehicle-mounted diagnosis application

Publications (1)

Publication Number Publication Date
CN117369417A true CN117369417A (en) 2024-01-09

Family

ID=89407782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311524127.9A Pending CN117369417A (en) 2023-11-15 2023-11-15 Test method, device, equipment and storage medium for vehicle-mounted diagnosis application

Country Status (1)

Country Link
CN (1) CN117369417A (en)

Similar Documents

Publication Publication Date Title
US9639996B2 (en) Vehicle diagnostics apparatus and method
CN105573296A (en) Hardware-in-loop-based automation test system for automobile diagnosis, and method thereof
CN104579816B (en) Diagnose the method and system of vehicle network
US8543286B2 (en) Vehicle hardware integrity analysis systems and methods
CN110502374A (en) The traffic capture debugging tool of the basic reason of equipment fault when identification is tested automatically
JP2009265104A (en) Diagnostic data mining
US7734389B2 (en) Fault information management system and a method for implementing a fault information management system for a vehicle
EP2808846A1 (en) Device and method for detecting faults in electronic systems
CN110739025A (en) storage equipment power failure test method, device and system
CN207541496U (en) A kind of automated diagnostic tester device based on vehicle body domain controller
Ham et al. A framework for simulation-based engine-control unit inspection in manufacturing phase
US8359577B2 (en) Software health management testbed
CN108965053B (en) Method, device and system for testing software pressure of upper computer
CN117369417A (en) Test method, device, equipment and storage medium for vehicle-mounted diagnosis application
CN114138587B (en) Method, device and equipment for verifying reliability of server power firmware upgrade
CN114338451B (en) Controller local area network bus test system, method and storage medium
CN110264585A (en) Public transport diagnostic system after sale
US11726853B2 (en) Electronic control device
CN111552584B (en) Testing system, method and device for satellite primary fault diagnosis isolation and recovery function
CN114356769A (en) Software learning method, device, equipment and storage medium
CN109960238B (en) Automatic test system and method for vehicle diagnostic instrument
Steinhilper et al. New technologies for remanufacturing of automotive systems communicating via CAN bus
CN114371683B (en) Diagnostic function verification method, system, storage medium and device for diagnostic apparatus
WO2014118328A1 (en) Vehicle diagnostics apparatus and method
CN113535547B (en) Test method based on functional safety

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