CN118311937A - Diagnostic automatic test method, device and system - Google Patents

Diagnostic automatic test method, device and system Download PDF

Info

Publication number
CN118311937A
CN118311937A CN202310018292.0A CN202310018292A CN118311937A CN 118311937 A CN118311937 A CN 118311937A CN 202310018292 A CN202310018292 A CN 202310018292A CN 118311937 A CN118311937 A CN 118311937A
Authority
CN
China
Prior art keywords
time
test
fault
message data
driving controller
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
CN202310018292.0A
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.)
SAIC Motor Corp Ltd
Original Assignee
SAIC Motor Corp 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 SAIC Motor Corp Ltd filed Critical SAIC Motor Corp Ltd
Priority to CN202310018292.0A priority Critical patent/CN118311937A/en
Publication of CN118311937A publication Critical patent/CN118311937A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a diagnostic automatic test method, equipment and a system, wherein the scheme is that message data with fault information is sent to an intelligent driving controller, fault zone bits and function degradation zone bits generated by the intelligent driving controller based on the message data corresponding to the message data with the fault information are obtained, the sending time of the message data with the fault information and the generating time of the fault zone bits and the function degradation zone bits are compared, a test result is determined based on the comparison result, a test cabinet is not needed in the test process, and the limit requirements on environment and resources in the test process are reduced.

Description

Diagnostic automatic test method, device and system
Technical Field
The invention relates to the technical field of intelligent driving, in particular to a diagnostic automatic test method, device and system.
Background
With the current great popularization of intelligent driving functions, the safety of vehicles is more and more important, and therefore, fault degradation testing for intelligent driving faults is also more and more important.
The existing test scheme is used for focusing on the peripheral communication monitoring of the controller, lacking in communication monitoring among chips in the domain, focusing on the safety test of vehicles by using the HIL test cabinet with large occupied space and having certain limiting requirements on test environment and resources.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a diagnostic automated testing method, apparatus and device, so as to reduce the limitation requirements on the testing environment and testing resources.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
a diagnostic automated test method comprising:
generating and continuously presetting a period to send message data containing fault information to an intelligent driving controller;
Acquiring the end time of the continuous transmission message data, and recording the end time as the first time;
judging whether the intelligent driving controller generates a fault zone bit or not, and when the intelligent driving controller is detected to generate the fault zone bit, acquiring the time of the fault zone bit, and recording the time as second time;
acquiring the time of the function degradation zone bit generated by the intelligent driving controller, and recording the time as a third time;
calculating comparison results of the first time, the second time and the third time;
And outputting a test result matched with the comparison result.
A diagnostic automated test method, wherein calculating a comparison of the first time, the second time, and the third time comprises:
Calculating a difference between the second time and the first time;
calculating a difference between the third time and the second time;
and taking the difference between the second time and the first time and the difference between the third time and the second time as the comparison result of the first time, the second time and the third time.
Optionally, in the above diagnostic automation test method, outputting a test result adapted to the comparison result includes:
Outputting a first test result for representing failure of the fault zone bit test when the difference between the second time and the first time is greater than a first preset duration or less than zero, and outputting a second test result for representing passing of the fault zone bit test when the difference between the second time and the first time is less than or equal to the first preset duration and greater than zero;
Outputting a third test result for representing that the function degradation zone bit test fails when the difference between the third time and the second time is larger than a second preset duration or smaller than zero, and outputting a fourth test result for representing that the function degradation zone bit test passes when the difference between the third time and the second time is smaller than or equal to the second preset duration and larger than zero.
Optionally, in the above diagnostic automatic test method, generating and continuously transmitting message data including fault information to the intelligent driving controller in a preset period includes:
Generating for the X time and continuously transmitting message data containing fault information to the intelligent driving controller in a preset period;
Judging whether the value of X is a preset secondary value, if not, controlling the value of X to be added with 1, and continuing to execute the action after waiting for a preset time interval: and generating at the X time and continuously transmitting message data containing fault information to the intelligent driving controller in a preset period, wherein the initial value of X is 1.
Optionally, in the above diagnostic automation test method, the preset secondary value is a positive integer not less than 2.
Optionally, in the above diagnostic automatic test method, when the message data including the fault information is generated at the X-th time and sent to the intelligent driving controller in a continuous preset period, the value of X is different, and the value of the preset period is different.
Optionally, in the above diagnostic automatic test method, adjacent two times of generating and continuously preset periods send message data including fault information to the intelligent driving controller, where a value of a previous corresponding preset period is smaller than a value of a next corresponding preset period.
Optionally, in the above diagnostic automatic test method, generating and continuously transmitting message data including fault information to the intelligent driving controller in a preset period includes:
acquiring a control instruction;
determining a test case based on the acquired control instruction;
Generating a fault sequence matched with the test case, generating message data containing fault information matched with the fault sequence through a test tool, and continuously transmitting the message data to an intelligent driving controller in a preset period.
A diagnostic automated test apparatus comprising:
A memory and a processor;
The memory is used for storing programs;
The processor is configured to execute the program to implement the steps of the diagnostic automated test method described in any one of the above.
A diagnostic automated test system comprising:
The upper computer is used for storing the test cases, determining the test cases based on the acquired control instructions, generating a fault sequence matched with the test cases, sending the fault sequence to the test tool, and calculating comparison results of the first time, the second time and the third time after the first time, the second time and the third time are acquired, and outputting test results matched with the comparison results;
the test tool is used for acquiring the fault sequence, generating message data containing fault information, which is matched with the fault sequence, based on the fault sequence, and continuously transmitting the message data to the intelligent driving controller in a preset period; and recording the end time of continuously transmitting the message data, namely recording the first time, acquiring the time of acquiring the fault zone bit when the intelligent driving controller generates the fault zone bit, recording the second time, acquiring the time of acquiring the function degradation zone bit generated by the intelligent driving controller, recording the third time, and transmitting the first time, the second time and the third time to an upper computer.
Optionally, in the above diagnostic automation test system, the upper computer includes:
The test management module is used for realizing the loading management of the test cases;
The fault injection module is used for determining a test case based on the acquired control instruction, generating a fault sequence matched with the test case and sending the fault sequence to the test tool;
the test result comparison module is used for calculating comparison results of the first time, the second time and the third time after the first time, the second time and the third time are acquired;
and the test result output module is used for outputting a test result matched with the comparison result.
Based on the technical scheme, the method provided by the embodiment of the invention obtains the fault zone bit and the function degradation zone bit generated by the intelligent driving controller based on the message data corresponding to the message data with the fault information by sending the message data with the fault information to the intelligent driving controller, compares the sending time of the message data with the fault information with the generating time of the fault zone bit and the function degradation zone bit, determines the test result based on the comparison result, does not need to use a test cabinet in the test process, and reduces the limit requirements on environment and resources in the test process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a diagnostic automated test method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of the architecture of an intelligent drive controller;
FIG. 3 is a schematic diagram of a diagnostic automated test apparatus according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a diagnostic automated test system according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of an upper computer according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
According to the scheme, the message data with the fault information is generated and sent to the intelligent driving controller, the fault zone bit and the function degradation zone bit which are generated by the intelligent driving controller based on the message data corresponding to the message data with the fault information are obtained, the sending time of the message data with the fault information and the generating time of the fault zone bit and the function degradation zone bit are compared, and the test result is determined based on the comparison result.
Specifically, referring to fig. 1, the diagnostic automation test method disclosed in the embodiment of the present application includes:
Step S101: and generating and continuously transmitting message data containing fault information to the intelligent driving controller in a preset period.
In this scheme, the preset period is preset according to a rule, for example, the preset period may be an integer multiple of the message period, and the message period is generally a selected standard period (10 ms, 20ms, etc.). And the difference value between the preset period and the standard fault reporting period of the intelligent driving controller is smaller than a set value, and when the microcontroller unit in the intelligent driving controller detects that an error message (a message containing fault information) reaches the standard fault reporting period, a fault diagnosis code corresponding to the error message is reported, and a fault zone bit is generated. The difference between the preset period and the standard fault reporting period is smaller than a set value, the set value is an effective value which is preset, and when the difference exceeds the set value, the test process is invalid. In this scheme, the specific value of the preset period is determined according to the value of the standard fault reporting period. For example, the step may specifically be: generating and continuously transmitting message data containing fault information to the intelligent driving controller in a first preset period; or generating and continuously sending message data containing fault information to the intelligent driving controller in a second preset period; or generating and continuously transmitting message data containing fault information to the intelligent driving controller in a third preset period; the first preset period is smaller than a second preset period, the second preset period is a standard fault reporting period of the intelligent driving controller, and the third preset period is larger than the second preset period.
The diagnostic automatic test method disclosed by the embodiment of the application can be applied to an upper computer, wherein the upper computer is internally provided with a pre-stored test case, the fault types corresponding to different test cases are different, for example, the fault types can comprise signal error faults, counting error faults, checking error faults, overtime faults or data length error faults, if the fault type is the signal error faults, the wrong signal value is sent to a bus, and the wrong signal value is message data with fault information; if the fault type is a counting error fault, repeatedly sending a counting value at the previous moment to the bus, wherein the counting value at the previous moment is message data with fault information; if the fault type is a check error fault, directly sending a value calculated by standard check to a bus, wherein the value calculated by standard check is message data with fault information; if the fault type is overtime fault, stopping sending the message, wherein the time for stopping sending is the cycle number of the corresponding mark, and at the moment, the empty message is the message data with fault information. If the fault type is a data length error fault, the DLC (DATE LENGTH Code) data length Code is modified and then sent to the bus, and at the moment, the modified DLC data length Code is the message data with fault information. The upper computer can utilize tool compiling language to carry out loading management of test cases, in the scheme, when testing is carried out, a user can send a proper control instruction based on test requirements, a proper test case is selected and determined based on the control instruction, after the test case is determined, a fault sequence matched with the test case is generated, the fault sequence is used for prescribing a specific structure of message data containing fault information and a sending mode of the message data, and the fault sequence is sent to a test tool, so that the test tool generates and sends the message data containing the fault information to an intelligent driving controller. The test tool can generate message data with fault information according to the fault sequence, and send the message data to an intelligent driving controller to be tested based on a preset period set by the fault sequence, wherein the duration of each preset period can be set according to user requirements, for example, the duration can be an integral multiple of the message period, and the message period is generally 10ms, 20ms, 50ms and the like.
Step S102: acquiring the end time of the continuous transmission message data, and recording the end time as the first time;
in this step, when the transmission of the message data is completed, the end time is recorded as a first time, and for example, when the message data including the fault information for n periods is transmitted, the end time of the last period of the n periods is recorded as the first time.
In this scheme, referring to fig. 2, the intelligent driving controller includes a MCU (MicroControllerUnit) microcontroller unit and a SOC (System on Chip) system-level chip, the MCU microcontroller unit is connected to the ethernet switch through the ethernet, the SOC system-level chip is connected to the ethernet switch through the ethernet, after the MCU microcontroller unit obtains the message data with fault information, analyzes the message data with fault information, when detecting that the message data in a certain period is the message data with fault information, the counter starts counting, and when detecting that one message period is the message data with fault information, the counter counts up by 1, and when detecting that the message data with fault information continuously reaches n message periods, that is, when the count result reaches n, the MCU microcontroller unit first reports a fault diagnosis code corresponding to the message data with fault information, the fault diagnosis code can determine the fault diagnosis code corresponding to the message data with fault information through the diagnosis instrument, generate a fault flag bit, send the fault flag bit to the SOC system through the ethernet, and then the SOC system-level system is degraded, and the SOC system is degraded, and the relevant function is degraded, and the SOC system is degraded is then, and the function is degraded.
Step S103: judging whether the intelligent driving controller generates a fault zone bit or not, and executing step S104 when the intelligent driving controller is detected to generate the fault zone bit;
step S104: and acquiring the time of the fault zone bit, and recording the time as second time.
The upper computer can acquire the time of the fault zone bit generated by the intelligent driving controller directly or through the testing tool, and the time is recorded as second time.
Step S105: and acquiring the time of the function degradation zone bit generated by the intelligent driving controller, and recording the time as a third time.
The upper computer can acquire the time of the function degradation zone bit generated by the intelligent driving controller directly or through a testing tool, and the time is recorded as third time.
Step S106: calculating comparison results of the first time, the second time and the third time;
After the first time, the second time and the third time are obtained, comparing the three based on a preset comparison strategy to obtain a comparison result, wherein the comparison result can be specifically calculated as the difference between the second time and the first time; a difference between the third time and the second time is calculated. And taking the difference between the second time and the first time and the difference between the third time and the second time as the comparison result of the first time, the second time and the third time.
Step S107: and outputting a test result matched with the comparison result.
In the scheme, test results matched with different comparison results are configured in advance, after the comparison results are determined, the test results are called and output based on the comparison results, and in order to facilitate the user to read the test results, the test results can be sent to a visual interface.
Specifically, in this step, if the difference between the second time and the first time is greater than the first preset duration, the failure flag bit test is indicated to be failed, and when the difference between the second time and the first time is less than or equal to the first preset duration and greater than zero, the failure report and the corresponding failure flag bit test are considered to be passed, and of course, when the value obtained by subtracting the first time from the second time is less than 0, the intelligent driving controller is considered to be set in advance and is also considered to be failed. And outputting a third test result for representing the failure of the function degradation zone bit test when the difference between the third time and the second time is larger than a second preset duration, and outputting a fourth test result for representing the passing of the function degradation zone bit test when the difference between the third time and the second time is smaller than or equal to the second preset duration and larger than zero, wherein, of course, when the value of the third time minus the second time is smaller than 0, the intelligent driving controller is considered to be set in advance and also to be the failure of the test. And then outputting the determined test result to a corresponding document so as to facilitate the visual check of the result by a tester. In the scheme, the first preset time length and the second preset time length are set to take the influence of inconsistent calculation tasks in the MCU and Ethernet message periods and loads on the bus into consideration, the test result can be more accurate by setting the first preset time length and the second preset time length, and the first preset time length and the second preset time length can be one message period length.
In the technical scheme disclosed in this embodiment, in order to ensure the reliability of the test result, the operation of step S101 may be repeated for multiple times, where the message data including the fault information is generated and sent to the intelligent driving controller in consecutive preset periods, and each time the step S101 is executed, the corresponding preset period has different values, and each corresponding preset period may represent an increasing relationship, and there is a preset time interval between two adjacent operations of executing step S101, so that the preset time interval needs to be set, so as to prevent unnecessary errors from occurring and affect the test accuracy. At this time, when the step S101 needs to be executed multiple times, in the above steps, generating and continuously presetting a period to send message data including fault information to the intelligent driving controller, including: generating for the X time and continuously transmitting message data containing fault information to the intelligent driving controller in a preset period; Judging whether the value of X is a preset secondary value, if not, controlling the value of X to be added with 1, and continuing to execute the action after waiting for a preset time interval: and generating and continuously presetting the number of times and sending the total number of times of the message data containing the fault information to the intelligent driving controller in the period of X, wherein the initial value of X is 1, and the preset number of times is the test number of times, namely, the total number of times of generating and continuously presetting the number of times and sending the message data containing the fault information to the intelligent driving controller in the period of X can be 2, 3, 4, 5, 6 or other times. For example, taking 3 times as an example, if each of the foregoing is regarded as a separate test procedure, the generating and continuously presetting the cycle sends message data including fault information to the intelligent driving controller, including: firstly generating and continuously transmitting message data containing fault information to an intelligent driving controller in a preset period; Generating for the second time and continuously transmitting message data containing fault information to the intelligent driving controller in a preset period; thirdly, generating and continuously transmitting message data containing fault information to the intelligent driving controller in a preset period; the number of the preset periods corresponding to the first time is smaller than the number of the preset periods corresponding to the second time, the preset period corresponding to the second time can be a standard fault reporting period of the intelligent driving controller, the preset period corresponding to the third time is larger than the preset period corresponding to the second time, and the first time, the second time and the third time correspond to the first time, the second time and the third time respectively and are generated for the first time, the second time and the third time, and the preset periods are continuously transmitted to the intelligent driving controller to form message data containing fault information. And sending message data containing fault information to the intelligent driving controller each time, wherein the total length of preset periods is different. In order to facilitate analysis of the test results, the adjacent two times of sending the message data containing the fault information to the intelligent driving controller are in continuous preset periods, and the total length of the preset period corresponding to the former time is smaller than that of the preset period corresponding to the latter time. For example, taking 3 times as an example, the first preset period is n-p message periods, the second preset period is n message periods, the third preset period is n+q message periods, and both p and q are greater than 0; n > p, and n > q. specifically, the length of the first corresponding preset period may be set to n-2 message periods, the length of the second corresponding preset period may be set to n message periods, the length of the third corresponding preset period may be set to n+2 message periods, n is set to several, signals representing that several message periods are continuously sent in the preset period, and n message periods may be set to be standard fault reporting periods of the intelligent driving controller, where, of course, the number of message periods included in each sent preset period may be set according to the user requirement, and the method is not limited to the forms of n-2, n, and n+2. After each execution of step S101, the steps of steps S102-S107 are executed once after the message data including the fault information is sent to the intelligent driving controller. the test mode can effectively detect the boundary of the fault reported by the intelligent driving controller, namely the earliest time and the latest time of the fault, grasp the calculation stability of the intelligent driving controller software and determine the fault tolerance interval of the follow-up fault calculation.
Fig. 3 is a hardware configuration diagram of a diagnostic automatic test device according to an embodiment of the present invention, which is shown in fig. 3, and may include: at least one processor 100, at least one communication interface 200, at least one memory 300, and at least one communication bus 400;
In the embodiment of the present invention, the number of the processor 100, the communication interface 200, the memory 300 and the communication bus 400 is at least one, and the processor 100, the communication interface 200 and the memory 300 complete the communication with each other through the communication bus 400; it will be apparent that the communication connection schematic shown in the processor 100, the communication interface 200, the memory 300 and the communication bus 400 shown in fig. 3 is only optional;
alternatively, the communication interface 200 may be an interface of a communication module, such as an interface of a GSM module;
processor 100 may be a central processing unit CPU, or an Application-specific integrated Circuit ASIC (Application SPECIFIC INTEGRATED Circuit), or one or more integrated circuits configured to implement embodiments of the present invention.
Memory 300 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 100 is specifically configured to:
generating and transmitting message data with fault information to an intelligent driving controller;
Acquiring the time of the fault information sent to the intelligent driving controller, and recording the time as first time;
Acquiring the time of the fault zone bit generated by the intelligent driving controller, and recording the time as second time;
acquiring the time of the function degradation zone bit generated by the intelligent driving controller, and recording the time as a third time;
calculating comparison results of the first time, the second time and the third time;
And outputting a test result matched with the comparison result.
Correspondingly, the application also discloses a diagnosis automatic test system, referring to fig. 4, the system comprises: upper computer A and test tool B.
The upper computer A is used for storing a test case, determining the test case based on the acquired control instruction, generating message data matched with the test case and generating fault information, and sending the message data with the fault information to the intelligent driving controller through a test tool; the upper computer is also used for calculating comparison results of the first time, the second time and the third time after the first time, the second time and the third time are acquired, and outputting test results matched with the comparison results;
A test tool B for; acquiring the first time when the fault information is sent to the intelligent driving controller; acquiring the time of the fault zone bit generated by the intelligent driving controller, and recording the time as second time; and acquiring the time of the function degradation zone bit generated by the intelligent driving controller, recording the time as a third time, and transmitting the first time, the second time and the third time to an upper computer. The test tool comprises a module capable of identifying a tool programming instruction of the upper computer, a module capable of sending corresponding message data according to the instruction of the upper computer, and a module capable of reading the message information and uploading the message information to the upper computer, wherein the functions of the test tool are realized through the modules. In this embodiment, the test tool B may be a CANoe tool.
Specifically, referring to fig. 4, the intelligent driving controller at least includes MCU (MicroControllerUnit) micro controller unit, SOC (System on Chip) system-on-chip, CAN and ethernet channel.
The upper computer A is connected with the testing tool B through a serial bus;
the testing tool B is connected with the intelligent driving controller through CAN and Ethernet;
The MCU is directly connected with the testing tool B through the CAN, and the MCU is also connected with the Ethernet through an Ethernet switch;
The SOC and the test tool B are connected via an ethernet switch based on ethernet.
In the scheme, the intelligent driving controller defines the requirement that n fault periods need to be reported according to the formulated requirement, when the error message is detected to reach n message periods, the MCU firstly reports the fault diagnosis code corresponding to the error message, namely the fault diagnosis code can be read through a diagnosis instrument, and then the fault zone bit on the Ethernet corresponding to the detected fault is sent to the SOC through the Ethernet. After the SOC identifies the fault caused by the fault of the related message according to the fault flag bit in the received ethernet message, the SOC sets the functional status affected by the message (the message data with the fault information) to a degraded status, and then sends out the functional degraded flag bit.
The configuration module in the upper computer can be set according to the user's requirement, see fig. 5, in this scheme, the upper computer can be split into a test management module A1, a fault injection module A2, a test result comparison module A3, and a test result output module A4 based on the functions required to be implemented by the upper computer.
The test management module A1 is used for realizing the loading management of test cases;
the fault injection module A2 is used for determining a test case based on the acquired control instruction, generating fault information matched with the test case, and sending message data with the fault information to the intelligent driving controller through a test tool;
The test result comparison module A3 is used for calculating comparison results of the first time, the second time and the third time after the first time, the second time and the third time are acquired;
and the test result output module A4 is used for outputting a test result matched with the comparison result.
For convenience of description, the above system is described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in the same piece or pieces of software and/or hardware when implementing the present invention.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A diagnostic automated test method comprising:
generating and continuously presetting a period to send message data containing fault information to an intelligent driving controller;
Acquiring the end time of the continuous transmission message data, and recording the end time as the first time;
judging whether the intelligent driving controller generates a fault zone bit or not, and when the intelligent driving controller is detected to generate the fault zone bit, acquiring the time of the fault zone bit, and recording the time as second time;
acquiring the time of the function degradation zone bit generated by the intelligent driving controller, and recording the time as a third time;
calculating comparison results of the first time, the second time and the third time;
And outputting a test result matched with the comparison result.
2. The diagnostic automated test method of claim 1, wherein calculating the comparison of the first time, the second time, and the third time comprises:
Calculating a difference between the second time and the first time;
calculating a difference between the third time and the second time;
and taking the difference between the second time and the first time and the difference between the third time and the second time as the comparison result of the first time, the second time and the third time.
3. The diagnostic automated test method of claim 2, wherein outputting test results that are compatible with the comparison results comprises:
Outputting a first test result for representing failure of the fault zone bit test when the difference between the second time and the first time is greater than a first preset duration or less than zero, and outputting a second test result for representing passing of the fault zone bit test when the difference between the second time and the first time is less than or equal to the first preset duration and greater than zero;
Outputting a third test result for representing that the function degradation zone bit test fails when the difference between the third time and the second time is larger than a second preset duration or smaller than zero, and outputting a fourth test result for representing that the function degradation zone bit test passes when the difference between the third time and the second time is smaller than or equal to the second preset duration and larger than zero.
4. The diagnostic automated test method of claim 1, wherein generating and continuously transmitting message data including fault information to the intelligent driving controller for a predetermined period comprises:
Generating for the X time and continuously transmitting message data containing fault information to the intelligent driving controller in a preset period;
Judging whether the value of X is a preset secondary value, if not, controlling the value of X to be added with 1, and continuing to execute the action after waiting for a preset time interval: and generating at the X time and continuously transmitting message data containing fault information to the intelligent driving controller in a preset period, wherein the initial value of X is 1.
5. The diagnostic automated test method of claim 4, wherein the predetermined secondary value is a positive integer not less than 2.
6. The diagnostic automated test method of claim 4, wherein,
When message data containing fault information is generated for the X-th time and is sent to the intelligent driving controller in a continuous preset period, the values of X are different, and the values of the preset periods are different.
7. The diagnostic automated test method of any one of claim 6, wherein,
And in the message data which is generated twice and is sent to the intelligent driving controller in a continuous preset period and contains fault information, the value of the preset period corresponding to the former time is smaller than that of the preset period corresponding to the latter time.
8. The diagnostic automated test method of claim 1, wherein generating and continuously transmitting message data including fault information to the intelligent driving controller for a predetermined period comprises:
acquiring a control instruction;
determining a test case based on the acquired control instruction;
Generating a fault sequence matched with the test case, generating message data containing fault information matched with the fault sequence through a test tool, and continuously transmitting the message data to an intelligent driving controller in a preset period.
9. A diagnostic automated test apparatus comprising:
A memory and a processor;
The memory is used for storing programs;
The processor for executing the program to perform the steps of the diagnostic automated test method of any of claims 1-8.
10. A diagnostic automated test system, comprising:
The upper computer is used for storing the test cases, determining the test cases based on the acquired control instructions, generating a fault sequence matched with the test cases, sending the fault sequence to the test tool, and calculating comparison results of the first time, the second time and the third time after the first time, the second time and the third time are acquired, and outputting test results matched with the comparison results;
the test tool is used for acquiring the fault sequence, generating message data containing fault information, which is matched with the fault sequence, based on the fault sequence, and continuously transmitting the message data to the intelligent driving controller in a preset period; and recording the end time of continuously transmitting the message data, namely recording the first time, acquiring the time of acquiring the fault zone bit when the intelligent driving controller generates the fault zone bit, recording the second time, acquiring the time of acquiring the function degradation zone bit generated by the intelligent driving controller, recording the third time, and transmitting the first time, the second time and the third time to an upper computer.
11. The diagnostic automated test system of claim 10, wherein the host computer comprises:
The test management module is used for realizing the loading management of the test cases;
The fault injection module is used for determining a test case based on the acquired control instruction, generating a fault sequence matched with the test case and sending the fault sequence to the test tool;
the test result comparison module is used for calculating comparison results of the first time, the second time and the third time after the first time, the second time and the third time are acquired;
and the test result output module is used for outputting a test result matched with the comparison result.
CN202310018292.0A 2023-01-06 2023-01-06 Diagnostic automatic test method, device and system Pending CN118311937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310018292.0A CN118311937A (en) 2023-01-06 2023-01-06 Diagnostic automatic test method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310018292.0A CN118311937A (en) 2023-01-06 2023-01-06 Diagnostic automatic test method, device and system

Publications (1)

Publication Number Publication Date
CN118311937A true CN118311937A (en) 2024-07-09

Family

ID=91730630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310018292.0A Pending CN118311937A (en) 2023-01-06 2023-01-06 Diagnostic automatic test method, device and system

Country Status (1)

Country Link
CN (1) CN118311937A (en)

Similar Documents

Publication Publication Date Title
CN109783262B (en) Fault data processing method, device, server and computer readable storage medium
CN111312325B (en) BBU fault diagnosis method and device, electronic equipment and storage medium
CN109849935B (en) Security control method, device and storage medium
CN108398915A (en) Control device and its control method
US20080276129A1 (en) Software tracing
CN110059013B (en) Method and device for determining normal operation after software upgrading
CN112256507A (en) Chip fault diagnosis method and device, readable storage medium and electronic equipment
CN110231537B (en) Method and device for detecting pin error configuration of ECU (electronic control Unit)
CN115016444A (en) Vehicle remote diagnosis method and related components
US20200159980A1 (en) Method for a computer-aided automated verification of requirements
CN111124828B (en) Data processing method, device, equipment and storage medium
CN118311937A (en) Diagnostic automatic test method, device and system
CN115623464B (en) Fault processing method and device for Bluetooth module of electric energy meter and electric energy meter
US8089712B2 (en) Abnormality determining apparatus
CN112306038B (en) Detection method, detection device and diagnosis equipment
CN114937316A (en) Software fault detection method, device, equipment and medium
CN112631929A (en) Test case generation method and device, storage medium and electronic equipment
EP4256354B1 (en) Safety mechanisms for artificial intelligence units used in safety critical applications
CN117076183B (en) Error reporting method, system on chip, computer equipment and storage medium
CN114089726B (en) Fault diagnosis system
CN117896301B (en) Baud rate analysis method, device, electronic equipment and storage medium
CN117806870B (en) Fault code positioning method and related device
CN118732573A (en) Diagnostic method and device for DI module, electronic equipment and readable storage medium
CN118672862A (en) Power measurement system, method, storage medium, and program product
CN116465444A (en) Test parameter display system and detection method thereof

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