[go: up one dir, main page]

CN120721374A - Method and system for testing missing teeth of engine crankshaft - Google Patents

Method and system for testing missing teeth of engine crankshaft

Info

Publication number
CN120721374A
CN120721374A CN202510890965.0A CN202510890965A CN120721374A CN 120721374 A CN120721374 A CN 120721374A CN 202510890965 A CN202510890965 A CN 202510890965A CN 120721374 A CN120721374 A CN 120721374A
Authority
CN
China
Prior art keywords
missing
crankshaft
tooth
signal
test
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
CN202510890965.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.)
Dongfeng Motor Group Co Ltd
Original Assignee
Dongfeng Motor Group 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 Dongfeng Motor Group Co Ltd filed Critical Dongfeng Motor Group Co Ltd
Priority to CN202510890965.0A priority Critical patent/CN120721374A/en
Publication of CN120721374A publication Critical patent/CN120721374A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing Of Engines (AREA)

Abstract

The application provides an engine crankshaft tooth missing test method which comprises the steps of simulating to obtain a normal crankshaft signal, identifying the normal crankshaft signal, carrying out tooth missing injection to obtain a crankshaft tooth missing signal, carrying out crankshaft tooth missing signal simulation under different tooth missing working conditions, building a test execution sequence, and executing the test execution sequence to obtain test results corresponding to various tooth missing working conditions. The application can realize real-time crankshaft tooth missing simulation under different tooth missing working conditions, satisfies tooth missing signal simulation under various extreme working conditions, and can ensure signal response speed, precision and real-time performance.

Description

Method and system for testing missing teeth of engine crankshaft
Technical Field
The application relates to the technical field of automobile testing, in particular to an engine crankshaft tooth missing testing method and system.
Background
In the development process of an engine EMS controller ECU (automobile electronic control unit), software HIL (hardware in loop) full function test is required to be carried out on software, and after the HIL test software function passes, the on-board is allowed to carry out actual function verification. The HIL equipment is connected with a real EMS controller ECU and a part of real load, a virtual whole vehicle and engine model is built, the parameters and collection of external sensors of the ECU are simulated through hardware plates, the model is compiled to generate an engineering file which can run in a real-time processor, real-time signal collection processing is carried out in the HIL real-time processor, related signals are output to the ECU, and the functions of the ECU software are tested and verified by building a closed-loop HIL test system.
The engine crankshaft sensor signal is usually simulated by an engine board card, and according to a crankshaft camshaft phase relation diagram provided by design requirements, the phase synchronization of the crankshaft and the camshaft is realized by simulating the crankshaft and the camshaft with fixed phase angles by the engine board card. The phase synchronization function is tested, the phase angle deviation of the cam shaft can be carried out through an upper computer model, the method can only simulate the asynchronous working condition of the phase of the cam shaft, the phase synchronization function of the cam shaft of the ECU software is verified, and the missing tooth waveform before and after the phase synchronization of the cam shaft can not be simulated.
Disclosure of Invention
The application aims to solve at least one technical problem in the prior art, and provides an engine crankshaft tooth missing test method and system.
In a first aspect, an embodiment of the present application provides a method for testing missing teeth of an engine crankshaft, including:
Simulating to obtain a normal crankshaft signal;
Identifying the normal crankshaft signal, and carrying out tooth missing injection to obtain a crankshaft tooth missing signal;
Performing crankshaft tooth missing signal simulation under different tooth missing working conditions, and constructing a test execution sequence;
and executing the test execution sequence to obtain test results corresponding to various tooth-missing working conditions.
Further, the simulation of the normal crankshaft signal comprises one or more of crankshaft wavetable design, crankshaft board card configuration and crankshaft signal output setting;
the crankshaft wave table design comprises one or more of a signal type design, a sensor type design, a tooth number design and a tooth missing design;
The crank card configuration comprises one or more of basic engine information configuration and Hall sensor signal configuration;
the crankshaft signal output settings include one or more of a channel enable setting, a signal reference level setting, a signal output mode setting, a signal output initial phase setting, and an output wavetable setting.
Further, the identifying the normal crankshaft signal, performing missing tooth injection, and obtaining a crankshaft missing tooth signal, includes:
performing signal identification analysis on the normal crankshaft signal, converting the electric signal into a digital signal, and obtaining the number of teeth and the rotating speed of the input crankshaft signal;
Carrying out injection of a plurality of types of missing teeth on the normal crankshaft signal to finish different fault types expected to be injected;
and when the output control is not enabled, outputting a normal crankshaft signal.
Further, the plurality of types of missing teeth include one or more of continuous/discontinuous missing teeth, fixed/random missing teeth, missing teeth times, number of missing teeth for a single time, and missing teeth at different rotational speeds.
Further, the executing the test execution sequence obtains test results corresponding to various tooth-missing working conditions, including:
if the tooth-missing working condition is P-gear idle running, 2 continuous missing teeth are injected for every revolution of the crankshaft, and the missing teeth injection is executed for 5 times, the test result is that the engine speed is stable and completely synchronous;
if the tooth-missing working condition is P-gear idle running, setting that 3 teeth are continuously missing after every revolution of the crankshaft, and executing the tooth-missing injection 5 times, wherein the test result is that the engine speed is stable, completely synchronous and immediately recovered after short oil cut-off;
If the tooth-missing working condition is P-gear idle running, 6 continuous teeth are injected every turn of the crankshaft, and the tooth-missing injection is executed 5 times, the test result is that the engine speed shakes, and the engine is immediately recovered after short oil cut;
If the tooth-missing working condition is P-gear idle running, setting that 1 tooth is missing in every rotation of the crankshaft, and executing the tooth-missing injection for 5 times, wherein the test result is that the engine is stopped and a fault code is reported;
if the tooth-missing working condition is P-gear idle running, setting that discontinuous 2-tooth missing is injected every turn of the crankshaft, and executing the tooth-missing injection for 3 times, wherein the test result is that the engine is stopped and a fault code is reported;
if the tooth-missing working condition is P-gear idle running, setting that discontinuous 3-tooth missing is injected every turn of the crankshaft, and executing the tooth missing injection for 2 times, wherein the test result is that the engine is stopped and a fault code is reported;
if the tooth-missing working condition is P-gear idle running, setting that discontinuous 6-tooth missing is injected every turn of the crankshaft, and executing the tooth-missing injection for 1 time, wherein the test result is that the engine is stopped and a fault code is reported;
If the tooth-missing working condition is that the rotating speed of the crankshaft is lower than 400 revolutions per minute, setting fixed 7 th and 8 th teeth missing, and the rotating speed is higher than 400 revolutions per minute, and canceling the injection of the missing teeth, the test result is that the engine runs stably and no fault code is reported;
And/or
If the tooth-missing working condition is that the rotating speed of the crankshaft is lower than 400 revolutions per minute, the 59 th tooth and the 60 th tooth which are fixedly missing are arranged, the rotating speed is higher than 400 revolutions per minute, the injection of the missing teeth is canceled, and the test result is that the engine runs stably and no fault code is reported.
Further, the method further comprises the following steps:
And automatically outputting the test result, wherein the test result comprises one or more of test process data, test cases, test scripts and test reports.
In a second aspect, an embodiment of the present application provides an engine crankshaft tooth missing test system capable of executing the test method described in any one of the foregoing, including a hardware-in-loop crankshaft signal simulation board, a crankshaft tooth missing control board, a signal conditioning circuit, and an automobile electronic control unit to be tested, which are electrically connected in sequence;
the hardware-in-the-loop crankshaft signal simulation board is used for simulation to acquire a normal crankshaft signal;
the crankshaft tooth-missing control board is used for simulating and outputting crankshaft tooth-missing signals;
the signal conditioning circuit is used for converting the signal voltage of the crankshaft;
the automobile electric control unit to be tested is used for running the software of the tested controller and verifying functions.
Further, the crankshaft tooth-missing control board uses an IO board card with a programmable FPGA function.
Further, the method further comprises the following steps:
and the test management module is used for configuring the crankshaft tooth-missing control board and writing automatic test cases and test scripts.
Further, the method further comprises the following steps:
And the automatic test module can call the test management module, the calibration tool and the bus communication tool, complete interface control of the crankshaft tooth-missing control board, read the signal description file and the bus database file, and automatically generate a test report.
According to the method for testing the missing teeth of the engine crankshaft, provided by the application, the missing teeth of the real-time crankshaft under different missing teeth working conditions are simulated, so that missing teeth signal simulation under various extreme working conditions can be met, and the signal response speed, the signal response precision and the real-time performance can be ensured.
Drawings
FIG. 1 is a core flow chart of a method for testing missing teeth of an engine crankshaft according to an embodiment of the present application;
FIG. 2 is a full flow chart of a method for testing missing teeth of an engine crankshaft according to an embodiment of the present application;
FIG. 3 is a schematic block diagram of a crankshaft tooth missing design provided by an embodiment of the application;
FIG. 4 is a block diagram of an engine crankshaft missing tooth test system according to an embodiment of the present application;
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For a better understanding of the technical solutions of the present application, the following description of exemplary embodiments of the present application is made with reference to the accompanying drawings, in which various details of embodiments of the present application are included to facilitate understanding, and they should be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The embodiments of the application and features of the embodiments may be combined with each other without conflict.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present application and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In the technical scheme of the application, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order is not violated. The use of user data in the technical scheme complies with national relevant laws and regulations (for example, information security technology personal information security standards, etc.). For example, the personal information access control takes corresponding prescribed measures, the presentation of the personal information gives prescribed limits, the use purpose of the personal information does not exceed the direct or reasonable association range, and the definite identity directivity is eliminated when the personal information is used, so that the accurate positioning to a specific person is avoided.
In the related prior art, the crankshaft signal is usually simulated by an engine board card, however, the crankshaft signal in the prior art is a fixed 60-tooth missing 2-tooth waveform, and cannot simulate missing tooth waveforms before and after phase synchronization of a crankshaft and a camshaft. The phase of the crankshaft and the camshaft is subjected to angle deviation through the HIL controlled object model, however, the prior art can only perform asynchronous fault simulation of the phase of the crankshaft and the camshaft, and occasional crankshaft tooth missing cannot be manufactured.
In order to solve at least one of the above-mentioned problems in the related art, the present application provides a method for testing missing teeth of an engine crankshaft, and referring to fig. 1 and 2, the method may specifically include the following steps.
Step S101, designing a hardware environment. The hardware environment in the application consists of an HIL crankshaft signal simulation board, a crankshaft tooth-missing control board, a signal conditioning board (signal conditioning circuit) and an ECU to be tested. The crankshaft tooth-missing control board and the signal conditioning circuit are connected in series between the HIL crankshaft signal simulation board and the crankshaft signal pin of the ECU to be tested. In some embodiments, the crankshaft tooth missing control board is connected to the HIL crankshaft signal simulation board through an NI RC68-68 cable, the crankshaft tooth missing control board is connected to a signal conditioning circuit through an NI RC68-68 cable, and the signal conditioning circuit is connected to a crankshaft signal pin of the ECU to be tested through a wire. In the present embodiment, the HIL crankshaft signal simulation board is used to simulate a correct engine crankshaft signal, the crankshaft tooth missing control board is used to simulate a crankshaft tooth missing signal, and the signal conditioning circuit is used to perform voltage conditioning on the crankshaft signal output by the crankshaft tooth missing control board. In some embodiments, the crankshaft tooth missing control board is connected in series between the HIL crankshaft signal simulation board and the crankshaft signal pin of the ECU to be tested, and NI other types of 68-pin plug cables can be used, and the application is not limited.
In some embodiments, the step of connecting the crankshaft tooth missing control board and the signal conditioning circuit in series between the HIL crankshaft signal simulation board and the ECU crankshaft signal pin to be tested may specifically further include:
The crankshaft signal output by the HIL crankshaft signal analog board and ground are respectively connected with the crankshaft tooth-missing control board pins 35 and 1.
The crank missing tooth control board pin 28 is connected to the signal conditioning circuit 5V pin, and the crank missing tooth control board pins 47 and 13 are connected to the signal conditioning circuit LV1 and GND pin, respectively.
The signal conditioning circuit HV1 and GND pins are respectively connected to the crankshaft signal and ground pins of the ECU to be tested.
Step S102, performing crank signal simulation. According to the crank phase relationship diagram, normal crank signal simulation is performed by the HIL crank signal simulation board, and one embodiment of the present application simulates a crank signal to 60 teeth, 2 of which are missing teeth. The normal crankshaft signal simulation is realized by the HIL crankshaft signal simulation board, and specifically comprises the steps of crankshaft wave meter design, crankshaft board card configuration and crankshaft signal output setting. In the present embodiment, the normal crankshaft signal is a hall signal, 60 teeth are total, and 59 th and 60 th teeth are normal missing teeth, and in the present embodiment, the normal crankshaft signal simulation is implemented by a constant TB4700 board card, which is not limited in the present application.
The crankshaft wave table design comprises a signal type, a sensor type, the number of teeth, a missing tooth design and the like.
The crank card configuration comprises engine basic information, hall sensor signal configuration and the like.
The crankshaft signal output setting comprises channel enabling, signal reference level, signal output mode, signal output initial phase, output wave table configuration and the like.
Step S103, performing tooth missing program design. And (3) carrying out crankshaft tooth missing application program design by utilizing program development software, and realizing crankshaft tooth missing enabling, tooth missing quantity setting, tooth missing times and crankshaft tooth missing under different rotating speeds. And compiling in program development software to generate an executable file which can run in the crankshaft tooth-missing control board.
The tooth missing program design is realized by a crankshaft tooth missing control board and mainly comprises a normal crankshaft signal identification module (flow) 21, a tooth missing injection module (flow) 22 and a tooth missing crankshaft signal output module (flow) 23, and is referred to as fig. 3. In this embodiment, the missing tooth programming is based on the LabVIEW platform to perform missing tooth FPGA application programming and compiling, and the missing tooth control board of the crankshaft is controlled by NI VERISTAND to output the missing tooth signal of the crankshaft to be simulated in real time.
In the embodiment, the module carries out signal recognition analysis on the normal crankshaft signal which is simulated and output by the HIL crankshaft signal simulation board, converts the electric signal into a digital signal which can be recognized by a program, and calculates the number of teeth and the rotating speed of the input crankshaft signal.
The tooth missing injection module comprises continuous/discontinuous tooth missing design, fixed/random tooth missing design, tooth missing times, single tooth missing number and tooth missing at different rotation speeds, and it is to be noted that in the embodiment, the FPGA application program design is carried out based on the LabVIEW platform, the tooth missing type, the tooth missing times and different tooth missing working conditions are designed, and further different fault types expected to be injected are completed.
The tooth-missing crankshaft signal output module comprises processing and combination of crankshaft signals and signal output enabling control. In the present embodiment, signals of normal crankshaft signals after passing through the missing tooth injection module are processed, and abnormal crankshaft signals after missing tooth injection are obtained by combination, and output of the abnormal crankshaft signals is controlled by the enable output module. And under the condition of enabling output control, outputting a crankshaft signal after the injection of the missing teeth, and outputting a normal crankshaft signal if the output control is not enabled.
And step S104, simulating the tooth missing working condition. Some embodiments design and output 3 kinds of crankshaft tooth-missing working conditions, namely continuous tooth missing, discontinuous tooth missing, single tooth missing, multiple tooth missing, fixed tooth missing, random tooth missing and the like. The test engineering construction comprises test environment configuration and test case construction, wherein the test environment configuration mainly carries out crankshaft tooth-missing control board configuration in HIL test management software to realize the control of input and output of the crankshaft tooth-missing control board, the test case is constructed according to test working conditions, the test script construction is carried out based on automatic test software, and the test case and the test script can be reused among different projects.
More specifically, in NI VERISTAND, a test engineering environment is built, including configuration of an FPGA board card and design of a test interface, in this embodiment, design of a tooth-missing working condition is performed, and an automatic test software is used to build a test execution sequence according to the design working condition.
And carrying out configuration on each design module of the FPGA board card missing teeth at VERISTAND system configuration interfaces, wherein the configuration comprises missing teeth times, missing teeth number, missing teeth at different rotating speeds, continuous/discontinuous missing teeth and fixed/random missing teeth, and completing software and hardware environment matching.
And designing a missing tooth test interface at VERISTAND test management interface, wherein the design comprises missing tooth output control, missing tooth fault injection and missing tooth data acquisition module construction.
The tooth-missing working condition design comprises a multi-working condition scene design, and can specifically comprise:
(1) And P gear idling operation, namely setting the injection of 2 teeth which are continuously short for every revolution of the crankshaft, and executing the injection of the teeth which are short for 5 times.
(2) And P gear idling operation, namely setting the injection of 3 teeth which are continuously short for every revolution of the crankshaft, and executing the injection of the teeth which are short for 5 times.
(3) And P gear idling operation, namely setting the injection of each revolution of the crankshaft to continuously lack 6 teeth, and executing the injection of the missing teeth for 5 times.
(4) And P is in idle operation, 1-tooth missing is injected for every revolution of the crankshaft, and the tooth missing injection is executed for 5 times.
(5) And P gear idling operation, namely setting the injection of discontinuous 2 teeth missing every revolution of a crankshaft, and executing 3 times of tooth missing injection.
(6) And P gear idling operation, namely setting that discontinuous 3-tooth missing is injected every revolution of a crankshaft, and executing 2 times of tooth missing injection.
(7) And P gear idling operation, namely, setting the injection of discontinuous 6 teeth missing every revolution of a crankshaft, and executing 1 time of tooth missing injection.
(8) The rotating speed of the crankshaft is lower than 400rpm, the 7 th tooth and the 8 th tooth which are fixed and lack are arranged, the rotating speed is higher than 400rpm, and the injection of the lack teeth is canceled.
(9) The rotation speed of the crankshaft is lower than 400 rpm, the 59 th tooth and the 60 th tooth which are fixed are arranged, the rotation speed is higher than 400 rpm, and the injection of the missing teeth is canceled.
In the embodiment, the automatic TEST software uses the ECU-TEST software to set working conditions, read internal and bus signals of the controller, and perform tooth missing injection, data acquisition and data analysis on the controller.
Step S105, performing tooth missing test verification. Based on the crankshaft tooth missing test system, the test is performed using automated test software. The automatic test software operates the configuration engineering to call the test management software, the calibration tool and the bus communication tool, complete the interface control of the crankshaft tooth-missing control board, the reading of the signal description file and the bus database file, and perform the test verification of the crankshaft tooth-missing fault processing function on the ECU by writing the crankshaft tooth-missing test cases under different working conditions, and complete the reading, analysis and comparison of the related rotating speed, oil injection, fault and other signals of the ECU in the test process, and the automatic test software automatically generates a test report after the test execution is completed.
More specifically, the TEST sequence is executed in the TEST system through the ECU-TEST, the ECU-TEST records the TEST result, analyzes the TEST data, verifies the TEST missing tooth condition in step S104, and records the TEST result, wherein the specific TEST result correspondence includes the following:
(1) If the tooth-missing working condition is P-gear idle running, 2 teeth are continuously missing after every rotation of the crankshaft, and the tooth-missing injection is executed 5 times, the test result is that the engine speed is stable and completely synchronous.
(2) If the tooth-missing working condition is P-gear idle running, 3 teeth are continuously missing after every revolution of the crankshaft is set, the tooth-missing injection is executed 5 times, the test result is that the engine speed is stable, the engine is completely synchronous, and the engine is immediately recovered after short oil cut-off.
(3) If the tooth-missing working condition is P-gear idle running, 6 continuous teeth are missing after every rotation of the crankshaft, and the tooth-missing injection is executed 5 times, the test result is that the engine speed shakes, and the engine is immediately recovered after short oil cut.
(4) If the tooth-missing working condition is P-gear idle running, 1 tooth missing is injected every turn of the crankshaft, the tooth missing injection is executed 5 times, and the test result is that the engine is stopped and a fault code is reported.
(5) If the tooth-missing working condition is P-gear idle running, setting that discontinuous 2-tooth missing is injected every revolution of a crankshaft, and executing the tooth-missing injection for 3 times, wherein the test result is that the engine is stopped and a fault code is reported.
(6) If the tooth-missing working condition is P-gear idle running, setting that discontinuous 3-tooth missing is injected every revolution of a crankshaft, and executing 2 times of tooth missing injection, wherein the test result is that the engine is stopped and a fault code is reported.
(7) If the tooth-missing working condition is P-gear idle running, the discontinuous 6-tooth missing is injected every turn of the crankshaft, the tooth-missing injection is executed for 1 time, and the test result is that the engine is stopped and a fault code is reported.
(8) If the tooth-missing working condition is that the rotating speed of the crankshaft is lower than 400 revolutions per minute, the 7 th tooth and the 8 th tooth which are fixedly missing are arranged, the rotating speed is higher than 400 revolutions per minute, the injection of the missing teeth is canceled, and the test result is that the engine runs stably and no fault code is reported.
(9) If the tooth-missing working condition is that the rotating speed of the crankshaft is lower than 400 revolutions per minute, the 59 th tooth and the 60 th tooth which are fixedly missing are arranged, the rotating speed is higher than 400 revolutions per minute, the injection of the missing teeth is canceled, and the test result is that the engine runs stably and no fault code is reported.
And S106, outputting a verification result. In this embodiment, the ECU-TEST software runs the written TEST sequence to automatically generate the TEST result and TEST data. The test results include test reports, test process data, test sequences (test cases, test scripts), etc.
The application is realized based on an HIL test system, a HIL engine board is clamped with a crankshaft signal channel to be externally connected with a crankshaft tooth-missing control board, a crankshaft signal tooth-missing application program is designed and compiled on a compiling platform, and a real-time crankshaft tooth-missing signal to be simulated is output through the crankshaft tooth-missing control board. The HIL test system is used for constructing a test environment project, and the crankshaft tooth-missing control board is configured in the upper computer test management software, so that different crankshaft tooth-missing signals can be simulated and output by operating the crankshaft tooth-missing control board in real time in the test management software, the crankshaft tooth-missing control board is responsible for outputting the crankshaft tooth-missing signals to be simulated, and the test management software is responsible for constructing the test environment project, writing an automatic test case, executing the test case and data analysis and generating a test report, so that the simulation test of different crankshaft tooth-missing working conditions is realized. The method and the system can realize real-time crankshaft tooth missing simulation under different working conditions, meet the tooth missing signal simulation of various extreme working conditions, ensure the signal response speed, the precision and the instantaneity, and perform crankshaft tooth missing function test verification by using the method and the system, thereby greatly improving the crankshaft phase test accuracy, reducing the development workload and shortening the test period.
Referring to fig. 4, another embodiment of the present application provides an engine crankshaft missing tooth test system capable of executing the test method described in any one of the foregoing, which may specifically include a HIL crankshaft signal simulation board 31, a crankshaft missing tooth control board 32, a signal conditioning circuit 33, an ECU34 to be tested, and the like.
The HIL crankshaft signal simulation board is connected to the crankshaft tooth-missing control board through a cable and is used for simulating a crankshaft signal.
The crankshaft tooth-missing control board is connected to the signal conditioning circuit through a cable to simulate and output a crankshaft tooth-missing signal. In some embodiments, the crankshaft tooth-missing control board uses an NI FPGA board PXI-7811R, and an NI IO board with programmable FPGA function is applicable, which is not limited by the present application.
And the signal conditioning circuit is connected between the crankshaft tooth-missing control board and the ECU to be tested through a lead for converting the signal voltage of the crankshaft.
And the ECU to be tested is used for running the software of the tested controller and verifying the functions.
The output crankshaft signal of the HIL crankshaft signal analog board and ground are respectively connected with the crankshaft tooth-missing control board pins 35 and 1.
The pin 28 of the crank throw control board is connected to the pin of the signal conditioning circuit 5V, and the pins 47 and 13 of the crank throw control board are connected to the signal conditioning circuit LV1 and GND pins, respectively.
The signal conditioning circuits HV1 and GND pins are connected to the crankshaft signal and ground pins, respectively, of the ECU under test.
The application can test based on different platform test environments, the controllers of different manufacturers with different test working conditions can be reused, and the test scripts can be reused on different platforms, thereby meeting the injection of various abnormal crankshaft tooth missing faults and ensuring the test accuracy and the coverage of the test range.
The application externally connects a crankshaft tooth-missing control board through a HIL bench engine board crankshaft clamping signal channel, the crankshaft tooth-missing control board is connected to a crankshaft signal pin of an ECU to be tested through a signal conditioning circuit, a LabVIEW platform is utilized for designing and compiling a crankshaft signal tooth-missing FPGA application program, a real-time crankshaft tooth-missing signal to be simulated is output through NI VERISTAND control of the crankshaft tooth-missing control board, and an automatic test software operates a test engineering in a unified mode to automatically execute a test task. By using the testing method and the testing system, the real-time crankshaft tooth missing simulation under different working conditions can be realized, the tooth missing signal simulation under various extreme working conditions can be met, the signal response speed, the signal response precision and the real-time performance can be ensured, the development workload can be greatly reduced, the testing period can be shortened, and the testing accuracy can be improved by using NI VERISTAND and LabVIEW template libraries.
Based on the same inventive concept, the embodiment of the application also provides electronic equipment. Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application. As shown in FIG. 5, an electronic device provided by an embodiment of the application includes one or more processors 101, memory 102, and one or more I/O interfaces 103. The memory 102 stores one or more programs that, when executed by the one or more processors, cause the one or more processors to implement an engine crankshaft teeth missing test method as in any of the embodiments described above, and one or more I/O interfaces 103 coupled between the processors and the memory configured to implement information interaction between the processors and the memory.
The processor 101 is a device with data processing capability, including but not limited to a Central Processing Unit (CPU), the memory 102 is a device with data storage capability, including but not limited to a random access memory (RAM, more specifically SDRAM, DDR, etc.), a Read Only Memory (ROM), a charged erasable programmable read only memory (EEPROM), a FLASH memory (FLASH), and an I/O interface (read/write interface) 103 is connected between the processor 101 and the memory 102, so that information interaction between the processor 101 and the memory 102 can be realized, including but not limited to a data Bus (Bus), etc.
In some embodiments, processor 101, memory 102, and I/O interface 103 are connected to each other via bus 104, and thus to other components of the computing device.
In some embodiments, the one or more processors 101 comprise a field programmable gate array.
The embodiment of the application also provides a computer readable medium. The computer readable medium has stored thereon a computer program, wherein the program when executed by a processor implements the steps of the method for testing missing teeth of an engine crankshaft as in any of the above embodiments. The computer readable storage medium may be a volatile or nonvolatile computer readable storage medium.
The embodiment of the application also provides a computer program product, which comprises computer readable codes or a nonvolatile computer readable storage medium carrying the computer readable codes, and when the computer readable codes run in a processor of electronic equipment, the processor in the electronic equipment executes the engine crankshaft tooth missing test method.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components, for example, one physical component may have a plurality of functions, or one function or step may be cooperatively performed by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer-readable storage media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable program instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, random Access Memory (RAM), read Only Memory (ROM), erasable Programmable Read Only Memory (EPROM), static Random Access Memory (SRAM), flash memory or other memory technology, portable compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical disc storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable program instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and may include any information delivery media.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for carrying out operations of the present application may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C ++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present application are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information for computer readable program instructions, which can execute the computer readable program instructions.
The computer program product described herein may be embodied in hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
Various aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purpose of limitation. In some embodiments, it will be apparent to one skilled in the art that features, characteristics, and/or elements described in connection with a particular embodiment may be used alone or in combination with other embodiments unless explicitly stated otherwise. It will therefore be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the scope of the present application as set forth in the following claims.

Claims (10)

1. The method for testing the missing teeth of the engine crankshaft is characterized by comprising the following steps of:
Simulating to obtain a normal crankshaft signal;
Identifying the normal crankshaft signal, and carrying out tooth missing injection to obtain a crankshaft tooth missing signal;
Performing crankshaft tooth missing signal simulation under different tooth missing working conditions, and constructing a test execution sequence;
and executing the test execution sequence to obtain test results corresponding to various tooth-missing working conditions.
2. The test method of claim 1, wherein the simulation of a normal crankshaft signal includes one or more of a crankshaft wavetable design, a crankshaft card configuration, and a crankshaft signal output setting;
the crankshaft wave table design comprises one or more of a signal type design, a sensor type design, a tooth number design and a tooth missing design;
The crank card configuration comprises one or more of basic engine information configuration and Hall sensor signal configuration;
the crankshaft signal output settings include one or more of a channel enable setting, a signal reference level setting, a signal output mode setting, a signal output initial phase setting, and an output wavetable setting.
3. The method of claim 1, wherein the identifying the normal crankshaft signal, performing a missing tooth injection, and obtaining a crankshaft missing tooth signal, comprises:
performing signal identification analysis on the normal crankshaft signal, converting the electric signal into a digital signal, and obtaining the number of teeth and the rotating speed of the input crankshaft signal;
Carrying out injection of a plurality of types of missing teeth on the normal crankshaft signal to finish different fault types expected to be injected;
and when the output control is not enabled, outputting a normal crankshaft signal.
4. The method of claim 3, wherein the plurality of types of missing teeth comprises one or more of continuous/discontinuous missing teeth, fixed/random missing teeth, number of missing teeth per time, and missing teeth at different rotational speeds.
5. The test method according to claim 1, wherein the executing the test execution sequence to obtain test results corresponding to various tooth-missing conditions includes:
if the tooth-missing working condition is P-gear idle running, 2 continuous missing teeth are injected for every revolution of the crankshaft, and the missing teeth injection is executed for 5 times, the test result is that the engine speed is stable and completely synchronous;
if the tooth-missing working condition is P-gear idle running, setting that 3 teeth are continuously missing after every revolution of the crankshaft, and executing the tooth-missing injection 5 times, wherein the test result is that the engine speed is stable, completely synchronous and immediately recovered after short oil cut-off;
If the tooth-missing working condition is P-gear idle running, 6 continuous teeth are injected every turn of the crankshaft, and the tooth-missing injection is executed 5 times, the test result is that the engine speed shakes, and the engine is immediately recovered after short oil cut;
If the tooth-missing working condition is P-gear idle running, setting that 1 tooth is missing in every rotation of the crankshaft, and executing the tooth-missing injection for 5 times, wherein the test result is that the engine is stopped and a fault code is reported;
if the tooth-missing working condition is P-gear idle running, setting that discontinuous 2-tooth missing is injected every turn of the crankshaft, and executing the tooth-missing injection for 3 times, wherein the test result is that the engine is stopped and a fault code is reported;
if the tooth-missing working condition is P-gear idle running, setting that discontinuous 3-tooth missing is injected every turn of the crankshaft, and executing the tooth missing injection for 2 times, wherein the test result is that the engine is stopped and a fault code is reported;
if the tooth-missing working condition is P-gear idle running, setting that discontinuous 6-tooth missing is injected every turn of the crankshaft, and executing the tooth-missing injection for 1 time, wherein the test result is that the engine is stopped and a fault code is reported;
If the tooth-missing working condition is that the rotating speed of the crankshaft is lower than 400 revolutions per minute, setting fixed 7 th and 8 th teeth missing, and the rotating speed is higher than 400 revolutions per minute, and canceling the injection of the missing teeth, the test result is that the engine runs stably and no fault code is reported;
And/or
If the tooth-missing working condition is that the rotating speed of the crankshaft is lower than 400 revolutions per minute, the 59 th tooth and the 60 th tooth which are fixedly missing are arranged, the rotating speed is higher than 400 revolutions per minute, the injection of the missing teeth is canceled, and the test result is that the engine runs stably and no fault code is reported.
6. The test method of claim 1, further comprising:
And automatically outputting the test result, wherein the test result comprises one or more of test process data, test cases, test scripts and test reports.
7. An engine crankshaft tooth missing test system capable of executing the test method of any one of claims 1-6, which is characterized by comprising a hardware-in-the-loop crankshaft signal simulation board, a crankshaft tooth missing control board, a signal conditioning circuit and an automobile electric control unit to be tested which are electrically connected in sequence;
the hardware-in-the-loop crankshaft signal simulation board is used for simulation to acquire a normal crankshaft signal;
the crankshaft tooth-missing control board is used for simulating and outputting crankshaft tooth-missing signals;
the signal conditioning circuit is used for converting the signal voltage of the crankshaft;
the automobile electric control unit to be tested is used for running the software of the tested controller and verifying functions.
8. The test system of claim 7, wherein the crankshaft tooth missing control board uses an IO board card with programmable FPGA functionality.
9. The test system of claim 7, further comprising:
and the test management module is used for configuring the crankshaft tooth-missing control board and writing automatic test cases and test scripts.
10. The test system of claim 9, further comprising:
And the automatic test module can call the test management module, the calibration tool and the bus communication tool, complete interface control of the crankshaft tooth-missing control board, read the signal description file and the bus database file, and automatically generate a test report.
CN202510890965.0A 2025-06-30 2025-06-30 Method and system for testing missing teeth of engine crankshaft Pending CN120721374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510890965.0A CN120721374A (en) 2025-06-30 2025-06-30 Method and system for testing missing teeth of engine crankshaft

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510890965.0A CN120721374A (en) 2025-06-30 2025-06-30 Method and system for testing missing teeth of engine crankshaft

Publications (1)

Publication Number Publication Date
CN120721374A true CN120721374A (en) 2025-09-30

Family

ID=97163794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510890965.0A Pending CN120721374A (en) 2025-06-30 2025-06-30 Method and system for testing missing teeth of engine crankshaft

Country Status (1)

Country Link
CN (1) CN120721374A (en)

Similar Documents

Publication Publication Date Title
US7275184B2 (en) Software verification method for control units and verification system
Boot et al. Automated test of ECUs in a hardware-in-the-loop simulation environment
US10156611B2 (en) Executing code on a test instrument in response to an event
CN104536303A (en) Fault injection method
CN104898647A (en) Automatic calibration simulation testing system for ECU stand
CN112084668B (en) Simulation test method and device and electronic equipment
JP2009014406A (en) Automatic inspection device for electronic control unit
US11801823B2 (en) Computer-based system for testing a server-based vehicle function
CN117597669A (en) Test method, system and device
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
US6002992A (en) Test system for verifying angle/time based systems and method therefor
CN104834591A (en) Method and system for testing AUTOSAR software component
Ham et al. A framework for simulation-based engine-control unit inspection in manufacturing phase
CN104863735B (en) Automatically controlled explosive motor timing signal trouble-shooter
CN120721374A (en) Method and system for testing missing teeth of engine crankshaft
CN213627717U (en) Timing signal generation and fault simulation system
Lauber et al. Virtual test method for complex and variant-rich automotive systems
CN116205091B (en) Motor noise optimization method and device, electronic equipment and storage medium
EP3076299B1 (en) Method to improve and extend the logics of a test rig for a vehicle component, in particular a battery or an alternator
Butts et al. 15 AUTOMOTIVE POWERTRAIN CONTROLLER DEVELOPMENT USING CACSD
CN113656283A (en) Project testing method and device, electronic equipment and computer readable storage medium
CN112783771A (en) Method, device, equipment and storage medium for automatically testing computer software
Nagaraj et al. HIL and RCP tools for embedded controller development in hybrid vehicles
CN112711245A (en) Calibration method and device for automobile diagnosis equipment and computing equipment
CN112181820A (en) Method for building vehicle simulation environment and method and device for positioning vehicle system problems

Legal Events

Date Code Title Description
PB01 Publication