An automatic tester for detecting vehicle controller
By designing an automatic tester including a main control chip, a frequency input detection module and a frequency output detection module, the problem in the prior art is solved that the vehicle controller with frequency input and frequency output cannot be effectively tested without using an industrial control computer, and the frequency detection of the vehicle controller is realized, reducing costs and suitable for large-scale production.
Patent Information
- Application Number
- CN201911050693.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-31
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2039-10-31
AI Technical Summary
The prior art is difficult to effectively test the vehicle controller with frequency input and frequency output without using an industrial control computer, and cannot meet the needs of large-scale production.
An automatic tester is designed, including an automatic test circuit. The circuit consists of a main control chip, a frequency input detection module and a frequency output detection module. The embedded main control chip realizes the detection of the frequency input and frequency output of the vehicle controller.
It realizes the detection of the frequency input and frequency output of the vehicle controller, which reduces costs and is suitable for large-scale production without the need for industrial control computers.
Smart Images

Figure CN110632914B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy automobile electronic technology, and in particular to an automatic tester for detecting a whole vehicle controller. Background Art
[0002] In new energy vehicles, VCU (Vehicle Control Unit) is the core control component of new energy vehicles. As the commander-in-chief of the entire new energy vehicle electronic control network, the performance of VCU is crucial to the control of the entire new energy vehicle. The stable performance of VCU is an important prerequisite for the stable performance of new energy vehicles.
[0003] Therefore, the performance test of VCU is very important. Each VCU should be tested before installation to ensure that its performance is stable after installation and there are no quality problems during production and design. During design, a load box or an industrial computer and a digital board can be used to conduct a comprehensive test on the VCU, but the operation of load boxes and industrial computers is time-consuming and labor-intensive, and is not suitable for mass production needs.
[0004] The Chinese patent document with the authorization announcement number CN201757858.U discloses a vehicle controller test system that requires the use of an industrial computer, which is costly and not conducive to duplication and production. The Chinese patent document with the application announcement number CN105717911A discloses a test vehicle control system that does not mention an industrial computer but does not include frequency input and frequency output interfaces, making it impossible to test a vehicle controller with frequency input and frequency output. Summary of the invention
[0005] The embodiment of the present invention provides an automatic tester for detecting a vehicle controller, which can test a vehicle controller with frequency input and frequency output without using an industrial computer or a PC.
[0006] An embodiment of the present invention provides an automatic tester for detecting a vehicle controller, comprising: an automatic test circuit; the automatic test circuit comprises: a main control chip, a frequency input detection module and a frequency output detection module;
[0007] The frequency input detection module includes: a first resistor, a second resistor and a first transistor; the first end of the first resistor is connected to the main control chip, and the second end of the first resistor is grounded; the first end of the second resistor is connected to the first end of the first resistor, and the second end of the second resistor is connected to the base of the first transistor; the emitter of the first transistor is grounded, and the collector of the first transistor is used to connect to the vehicle controller;
[0008] The frequency output detection module includes: a third resistor, a fourth resistor, a fifth resistor and a first capacitor; the first end of the third resistor is used to be connected to the frequency output pin of the vehicle controller, and the second end of the third resistor is connected to the power supply end; the first end of the fourth resistor is connected to the first end of the third resistor, and the second end of the fourth resistor is connected to the first end of the fifth resistor; the first end of the fifth resistor is also connected to the first end of the first capacitor, and the second end of the fifth resistor is grounded; the first end of the first capacitor is connected to the main control chip, and the second end of the first capacitor is grounded;
[0009] The main control chip is used to generate a PWM signal by controlling the on and off of the first transistor, and send the PWM signal to the vehicle controller, so that the vehicle controller detects the frequency and duty cycle of the PWM signal, and feeds back the detection result to the main control chip, and then the main control chip verifies the detection result;
[0010] The main control chip is also used to receive the second PWM signal sent by the vehicle controller through the frequency input detection module, and detect the duty cycle and frequency of the second PWM signal.
[0011] Furthermore, the automatic test circuit further includes: an analog input detection module; the analog input detection module includes a first gating chip and a second gating chip;
[0012] The first gating chip and the second gating chip are respectively connected to the main control chip;
[0013] The common pin of the first gating chip is connected to the common pin of the second gating chip;
[0014] The second gating chip is also used to connect to the vehicle controller.
[0015] Furthermore, the first gating chip is a four-to-one gating chip; and the second gating chip is a sixteen-to-one gating chip.
[0016] Furthermore, the automatic detection circuit further includes: a dark current test module; the dark current test module includes: an ammeter, a first MOS tube, a second MOS tube, a sixth resistor, a seventh resistor, an eighth resistor and a ninth resistor;
[0017] The current output end of the ammeter is connected to the first end of the sixth resistor, and the current input end of the ammeter is connected to the positive electrode of the power supply;
[0018] The first end of the sixth resistor is also connected to the source of the first MOS transistor, and the second end of the sixth resistor is connected to the gate of the first MOS transistor;
[0019] The drain of the first MOS tube is connected to the HCU_POWER_SUPPLY pin of the main control chip, and the gate of the first MOS tube is also connected to the first end of the seventh resistor;
[0020] The second end of the seventh resistor is connected to the source of the second MOS tube;
[0021] The gate of the second MOS tube is connected to the first end of the eighth resistor, and the drain of the second MOS tube is grounded;
[0022] The first end of the eighth resistor is also connected to the first end of the ninth resistor, and the second end of the eighth resistor is grounded;
[0023] The second end of the ninth resistor is connected to the HCU_POWER_CTRO pin of the main control chip.
[0024] Furthermore, the first MOS tube is a P-channel MOS tube, and the second MOS tube is an N-channel MOS tube.
[0025] Furthermore, the automatic test circuit board also includes: a CAN communication detection module, a 5V reference output detection module, a low-side drive output detection module, a high-side output detection module and a digital input detection module; the CAN communication detection module, the 5V reference output detection module, the low-side drive output detection module, the high-side output detection module and the digital input detection module are all connected to the main control chip.
[0026] Furthermore, the automatic test circuit is mounted on a test circuit board, and the test circuit board is connected to a power supply and a terminal block for externally connecting the vehicle controller; the test circuit board, the power supply and the terminal block are all arranged in a box; a human-computer interaction interface is provided on the outer surface of the box, and a number of indicator lights, a buzzer and a start test button are provided on the human-computer interaction interface.
[0027] Furthermore, the indicator lights include: an automatic tester power indicator light, a vehicle controller power indicator light, a vehicle controller wake-up pin indicator light, a test pass indicator light, and a test fail indicator light.
[0028] The following beneficial effects are achieved by implementing the embodiments of the present invention:
[0029] The embodiment of the present invention provides an automatic tester for detecting a vehicle controller. The automatic tester includes an automatic test circuit. The automatic test circuit includes a main control chip, a frequency input detection module, and a frequency output module. The frequency input and frequency output of the vehicle controller can be detected through the embedded main control chip. The specific implementation method is as follows:
[0030] For the frequency input detection of the whole vehicle control, the main control chip is first connected to the first end of the first resistor, and the frequency input detection module is connected to control the conduction and shutdown of the first transistor, so as to generate a PWM signal with a specific frequency and duty cycle. Then, the PWM signal is transmitted to the whole vehicle controller through the collector of the first transistor. The whole vehicle controller detects the frequency and duty cycle of the received PWM signal, and then feeds back the detected duty cycle and frequency results to the main control chip for verification. If the duty cycle and frequency detected by the whole vehicle controller are inconsistent with the frequency and duty cycle of the generated PWM signal, it means that the frequency input detection function of the whole vehicle controller is unqualified. In the above process, the first resistor in the frequency input detection module is a pull-down resistor, which gives a low potential to the floating level, and the second resistor is a current limiting resistor to prevent excessive current from flowing into the base of the first transistor.
[0031] For the frequency output detection of the vehicle controller, the vehicle controller first generates a PWM signal and inputs it into the frequency output detection module. Then, the fourth resistor and the fifth resistor in the frequency output detection module divide the voltage to reduce the voltage entering the main control chip, and then input it into the main control chip. After receiving the PWM signal, the main control chip compares the frequency and duty cycle of the received PWM signal with the preset frequency and duty cycle, thereby obtaining the detection of the frequency output function of the vehicle controller. In the above process, the third resistor acts as the load of the circuit, and the first capacitor is a filter capacitor to filter out interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 The figure is a schematic diagram of the overall structure of an automatic tester for detecting a vehicle controller provided by an embodiment of the present invention.
[0033] Figure 2 The overall structure diagram of an automatic test circuit of an automatic tester for detecting a vehicle controller provided by an embodiment of the present invention is
[0034] Figure 3 This is a circuit structure diagram of a frequency input detection module of an automatic tester for detecting a vehicle controller provided by an embodiment of the present invention.
[0035] Figure 4 The circuit structure diagram of a frequency output detection module of an automatic tester for detecting a vehicle controller provided by an embodiment of the present invention is
[0036] Figure 5 The circuit structure diagram of an analog input detection module of an automatic tester for detecting a vehicle controller provided by an embodiment of the present invention is
[0037] Figure 6 This is the circuit structure intention of the dark current test module of an automatic tester for detecting a vehicle controller provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] As shown in Figure 1, it is a schematic diagram of the overall structure of an automatic tester for detecting a vehicle controller provided by an embodiment of the present invention, comprising: a box, an automatic test circuit board, a power supply, and a terminal block; an automatic test circuit is mounted on the automatic circuit test board, and the automatic test circuit board is connected to a power supply and a terminal block for externally connecting the vehicle controller; the automatic test circuit board, the power supply and the terminal block are all arranged in a box; a human-computer interaction interface is provided on the outer surface of the box, and a plurality of indicator lights, a buzzer and a start test button are provided on the human-computer interaction interface.
[0040] In a preferred embodiment, the indicator lights include: an automatic tester power indicator light, a vehicle controller power indicator light, a vehicle controller wake-up pin indicator light, a test pass indicator light, and a test fail indicator light.
[0041] Of course, the automatic tester also has an external power plug and a VCU (vehicle control unit) connection plug.
[0042] During the test, connect the automatic tester to the power supply, connect the VCU to be tested, and press the start test button on the human-computer interaction interface to test the VCU. The test results will be prompted by the lights and buzzers in the human-computer interaction interface. If passed, the green light will be on and the buzzer will beep for 1 second. If failed, the red light will be on and the buzzer will continue to beep.
[0043] The human-machine interface includes five lights, an automatic tester power indicator, a VCU power indicator, a VCU wake-up pin indicator, a test pass light (green light), and a test fail light (red light). The human-machine interface also includes a buzzer and a start test button.
[0044] After pressing the start test button, the power supply circuit on the automatic test circuit board starts working, the power indicator of the automatic tester lights up, the entire automatic test circuit board is powered, and the main chip program on the circuit board starts running. The main chip program will first perform the initialization and self-test procedures of its own peripherals. If there is no problem, the power supply part is controlled to power the VCU, and at the same time, a handshake signal is sent to the VCU through the CAN bus.
[0045] Specifically, the VCU is connected to the connector (plug-in AP1 and plug-in AP2 in the figure), and the start test button of the automatic tester is pressed to power on the automatic tester;
[0046] The automatic tester controls two switches to power on BAT+ and KEY_ON of the VCU respectively, and lights up the VCU power indicator and the VCU wake-up pin indicator. At the same time, the automatic tester sends a handshake request message ① to the VCU through CAN communication to put the VCU into test mode; the VCU receives the handshake request message ①, enters the test mode, and then sends a handshake success message ② to the automatic tester through CAN communication, indicating that it has entered the test mode.
[0047] After the handshake is successful, each module in the automatic test circuit will perform detection, such as Figure 2 As shown, Figure 2 This is a summary structure diagram of an automatic test circuit. The following is a detailed description of the circuit structure of the main modules:
[0048] like Figure 3 , Figure 4 As shown, in a preferred embodiment, an automatic test circuit; the automatic test circuit includes: a main control chip, a frequency input detection module and a frequency output detection module;
[0049] The frequency input detection module includes: a first resistor, a second resistor and a first transistor; the first end of the first resistor is connected to the main control chip, and the second end of the first resistor is grounded; the first end of the second resistor is connected to the first end of the first resistor, and the second end of the second resistor is connected to the base of the first transistor; the emitter of the first transistor is grounded, and the collector of the first transistor is used to connect to the vehicle controller, specifically, to the frequency input pin of the vehicle controller;
[0050] The frequency output detection module includes: a third resistor, a fourth resistor, a fifth resistor and a first capacitor; the first end of the third resistor is used to be connected to the frequency output pin of the vehicle controller, and the second end of the third resistor is connected to the power supply end; the first end of the fourth resistor is connected to the first end of the third resistor, and the second end of the fourth resistor is connected to the first end of the fifth resistor; the first end of the fifth resistor is also connected to the first end of the first capacitor, and the second end of the fifth resistor is grounded; the first end of the first capacitor is connected to the main control chip, and the second end of the first capacitor is grounded;
[0051] The main control chip is used to generate a PWM signal by controlling the on and off of the first transistor, and send the PWM signal to the vehicle controller, so that the vehicle controller detects the frequency and duty cycle of the PWM signal, and feeds back the detection result to the main control chip, and then the main control chip verifies the detection result;
[0052] The main control chip is also used to receive the second PWM signal sent by the vehicle controller through the frequency input detection module, and compare the duty cycle and frequency of the second PWM signal with the preset duty cycle and frequency to obtain a frequency input detection result.
[0053] The specific working principle of the frequency input and frequency output detection of the vehicle controller is as follows:
[0054] For the frequency input detection of the whole vehicle control, the main control chip is first connected to the first end of the first resistor, connected to the frequency input detection module, and then the first transistor is controlled to be turned on and off, thereby generating a PWM signal with a specific frequency and duty cycle. Then, this PWM signal is transmitted to the whole vehicle controller through the collector of the first transistor, and the whole vehicle controller detects the frequency and duty cycle of the received PWM signal, and then the detected duty cycle and frequency results are fed back to the main control chip, which is verified by the main control chip. If the duty cycle and frequency detected by the whole vehicle controller are inconsistent with the frequency and duty cycle of the generated PWM signal, it means that the frequency input detection function of the whole vehicle controller is unqualified; otherwise, it means that the frequency input detection function of the whole vehicle controller is qualified. In the above process, the first resistor in the frequency input detection module is a pull-down resistor, which gives a low potential to the floating level, and the second resistor is a current limiting resistor to prevent excessive current from flowing into the base of the first transistor.
[0055] For the frequency output detection of the vehicle controller, the vehicle controller will first generate a PWM signal, which will be input into the frequency output detection module. Then, the fourth resistor and the fifth resistor in the frequency output detection module will divide the voltage to reduce the level entering the main control chip, and then input it into the main control chip. After receiving the PWM signal, the main control chip will compare the frequency and duty cycle of the received PWM signal with the preset frequency and duty cycle. If the frequency and duty cycle of the received PWM signal are within the preset error range compared with the preset frequency and duty cycle, the detection is considered to be passed; otherwise, the detection is considered to be failed, thereby realizing the detection of the frequency output function of the vehicle controller. In the above process, the third resistor acts as the load of the circuit, and the first capacitor is a filter capacitor to filter out interference.
[0056] like Figure 5 As shown, the automatic test circuit further includes: an analog input detection module; the analog input detection module includes a first gating chip and a second gating chip;
[0057] The first gating chip and the second gating chip are connected to the main control chip respectively; specifically, in the figure, pins 1, 2, and 14 of the first gating chip are connected to the main control chip, and the combination of these pins is used to control the on and off of the gating chip. Pins 14, 15, 16, and 17 of the second gating chip are connected to the main control chip, and similarly, the combination of these pins is used to control the on and off of the gating chip.
[0058] The common pin of the first gating chip is connected to the common pin of the second gating chip;
[0059] The second gating chip is also connected to the vehicle controller.
[0060] Preferably, the first gating chip is a four-to-one gating chip; and the second gating chip is a sixteen-to-one gating chip.
[0061] Through the analog input detection module, the detection of the analog input of the normal controller can be realized. Specifically: the main control chip controls a four-to-one selection chip to select a precise reference voltage to the pin (that is, the common end pin of the first selection chip, which is the Al_COM pin of the first selection chip in the figure, that is, pin 6 of the first selection chip in the figure), and the Al_COM pin of the first selection chip is directly connected to the common pin of a sixteen-to-one selection chip (that is, the common end pin of the second selection chip, which is the Al_COM pin of the second selection chip in the figure, that is, pin 28 of the second selection chip in the figure), and then the main control chip controls the second selection chip to transmit the reference voltage to the vehicle controller.
[0062] Specifically, it is transmitted to a reference voltage input pin of the vehicle controller. Figure 5VCU_AI1, VCU_AI2…VCU_AI15 are all pins connected to the reference voltage input pin of the vehicle controller. The reference voltage is transmitted to the vehicle controller through one of the pins, such as VCU_AI1. Then the VCU (vehicle controller) measures the voltage value of the input quantity and feeds the test result back to the main control chip, which determines whether it is qualified.
[0063] like Figure 6 As shown, in a preferred embodiment, it also includes: a dark current test module; the dark current test module includes: an ammeter, a first MOS tube, a second MOS tube, a sixth resistor, a seventh resistor, an eighth resistor and a ninth resistor;
[0064] The current output end of the ammeter is connected to the first end of the sixth resistor, and the current input end of the ammeter is connected to the positive electrode of the power supply;
[0065] The first end of the sixth resistor is also connected to the source of the first MOS transistor, and the second end of the sixth resistor is connected to the gate of the first MOS transistor;
[0066] The drain of the first MOS tube is connected to the HCU_POWER_SUPPLY pin of the main control chip, and the gate of the first MOS tube is also connected to the first end of the seventh resistor;
[0067] The second end of the seventh resistor is connected to the source of the second MOS tube;
[0068] The gate of the second MOS tube is connected to the first end of the eighth resistor, and the drain of the second MOS tube is grounded;
[0069] The specific working principle of the dark current detection module is described below:
[0070] The main chip turns off the second MOS tube by controlling the HCU_POWER_CTRO pin, which causes the first MOS tube to turn off, that is, turns off the wake-up power (HCU_POWER_SUPPLY) of the VCU. After waiting for 5 seconds, use the ammeter (model: DW-81) connected in series between Ammeter+ and Ammeter- to measure the current value between Ammeter+ and Ammeter-. The main control chip reads the current value through RS485 communication and determines whether the dark current value meets the design expectations, thereby realizing the dark current detection of the dark current VCU;
[0071] In a preferred embodiment, the automatic test circuit board also includes: a CAN communication detection module, a 5V reference output detection module, a low-side drive output detection module, a high-side output detection module and a digital input detection module; the CAN communication detection module, the 5V reference output detection module, the low-side drive output detection module, the high-side output detection module and the digital input detection module are all connected to the main control chip.
[0072] To make it easier to understand the overall working principle of the above automatic tester, a further explanation is given below: It should be noted that the order of the following detection steps is only illustrative and is not intended to limit the detection steps of the automatic tester:
[0073] (1) Device installation and connection: Connect the VCU to the connector, press the start test button of the automatic tester, and power on the automatic tester;
[0074] (2) Initialization: The automatic tester controls two switches to power on the BAT+ and KEY_ON of the VCU respectively, and lights up the VCU power indicator and the VCU wake-up pin indicator. At the same time, the automatic tester sends a handshake request message to the VCU through CAN communication①, so that the VCU enters the test mode;
[0075] (3) Handshake: The VCU receives the handshake request message ① and enters the test mode, and then sends a handshake success message ② to the automatic tester through CAN communication, indicating that it has entered the test mode;
[0076] (4) CAN communication test: After the automatic tester receives the handshake success message ②, it knows that the VCU has entered the test mode. The automatic tester sends a CAN communication test message to the VCU and starts to detect CAN communication. The VCU sends a specific message, and the automatic tester detects whether the specific message is received. After testing the CAN communication, if all tests pass, the 5V reference output test begins.
[0077] (5) 5V reference output test: The automatic tester sends a 5V reference output test message to the VCU and starts to detect the 5V reference output to see if the 5V reference output voltage is within the design value range. If so, a test pass message is sent to the VCU.
[0078] (6) Digital input test: If the 5V reference voltage output test passes, the automatic tester sends a digital input (DI) test message to the VCU. After receiving the digital input test request message, the VCU starts to detect the digital input level and sends the result to the automatic tester via a CAN message. After receiving the DI test result message from the VCU, the automatic tester determines whether the results all meet the design expectations. If so, it means that the digital input test has passed, otherwise it has failed.
[0079] (7) Analog input test: After the digital input test passes, the automatic tester sends an analog input (AI) test message to the VCU, requesting the VCU to start testing its analog input. After receiving the message, the VCU detects the voltage value of the analog input and feeds back the result to the automatic tester via a CAN message. Specifically, the main control chip controls a four-to-one selection chip to select a precise reference voltage to the pin (i.e., the common pin of the first selection chip, which is the Al_COM pin of the first selection chip in the figure), and the Al_COM pin of the first selection chip is directly connected to the common pin of a sixteen-to-one selection chip (i.e., the common pin of the second selection chip, which is the Al_COM pin of the second selection chip in the figure), and then the main control chip controls the second selection chip to transmit the reference voltage of the common pin of the second selection chip to the reference voltage input pin of the vehicle controller, and then the VCU (vehicle controller) measures the voltage value of the input quantity and feeds it back to the automatic tester through a message; after the automatic tester receives the AI test result message from the VCU, it determines whether all the results meet the design expectations. If so, it means that the analog input detection has passed.
[0080] (8) Frequency input test: After the analog input test passes, the automatic tester sends a frequency input (FI) test message to the VCU, requesting the VCU to start testing its frequency input. After receiving the message, the VCU detects the frequency and duty cycle of its frequency input, and feeds back the result to the automatic tester through a CAN message. Specifically, the main control chip of the automatic tester is connected to the first end of the first resistor and connected to the frequency input detection module. Then an initial PWM signal is input to control the conduction and shutdown of the first transistor to generate a PWM signal with a specific frequency and duty cycle, and transmit it to the frequency input pin of the VCU. After receiving the message, the VCU detects the frequency and duty cycle of the PWM signal received by the frequency input pin of the VCU, and feeds back the message to the automatic tester; after receiving the FI test result message from the VCU, the automatic tester determines whether the results all meet the design expectations. If so, it means that the frequency input test has passed, otherwise, it means that the frequency input test has failed.
[0081] (9) Frequency output test: After the automatic tester receives the FI test result message from the VCU, it determines whether the results all meet the design expectations. If so, it sends a frequency output (FO) test message to the VCU, requesting the VCU to start testing its frequency output. After receiving the message, the VCU sets its frequency output according to the requested frequency and duty cycle. After the setting is completed, it sends a message to notify the automatic tester. Specifically, the automatic tester requests the VCU to send a PWM signal with a specific frequency and duty cycle through a CAN message. After receiving the test message, the VCU outputs a PWM signal through the frequency output detection module to the main control chip of the automatic tester. The main control chip detects the frequency and duty cycle of the PWM signal and compares it with the set frequency and duty cycle. If the test result is within the design range, the test is considered to have passed;
[0082] (10) Digital output: After receiving the setting completion message from the VCU, the automatic tester detects the frequency and duty cycle of the FO output by the VCU to determine whether the test results all meet the design expectations. If so, it sends a request digital output (DO) test message to request the VCU to start testing its digital output. After receiving the message, the VCU sets its digital output according to the requested status and sends a message to notify the automatic tester after the setting is completed;
[0083] (11) Dark current test: After the automatic tester receives the setting completion message from the VCU, it detects the state of the DO output by the VCU and determines whether the test results all meet the design expectations. If so, it turns off the wake-up power of the VCU and waits for the VCU to sleep for a period of time (5 seconds) before measuring the dark current of the VCU. The specific measurement method is that the main chip controls the HCU_POWER_CTRO pin to turn off the second MOS tube, thereby causing the first MOS tube to turn off, that is, turning off the wake-up power (HCU_POWER_SUPPLY) of the VCU. After waiting for 5 seconds, the current value between Ammeter+ and Ammeter- is measured with an ammeter (model: DW-81) connected in series between Ammeter+ and Ammeter-. The main control chip of the automatic tester reads the current value through the RS485 communication method and determines whether the dark current value meets the design expectations. If so, it sends a dark current test pass message;
[0084] (12) Test passed: If all the above tests are passed, the automatic tester lights up the test passed light and controls the buzzer to beep for 1 second;
[0085] (13) Test failed: If any of the tests fail during the above process, the test failed light will be turned on and the buzzer will continue to sound.
[0086] It should be noted that "whether it meets the design expectations" in the above statements can be understood as whether it is within the preset error range.
[0087] By implementing the embodiments of the present invention, it is possible to detect various functions of the vehicle controller through an embedded chip without using an industrial computer. The low cost is conducive to replication production and can be used on a large scale in the production line.
[0088] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. An automatic tester for detecting a vehicle controller, characterized in that: include: Automatic testing circuits; The automatic test circuit comprises: a main control chip, a frequency input detection module and a frequency output detection module; The frequency input detection module includes: a first resistor, a second resistor and a first transistor; the first end of the first resistor is connected to the main control chip, and the second end of the first resistor is grounded; the first end of the second resistor is connected to the first end of the first resistor, and the second end of the second resistor is connected to the base of the first transistor; the emitter of the first transistor is grounded, and the collector of the first transistor is used to connect to the vehicle controller; The frequency output detection module includes: a third resistor, a fourth resistor, a fifth resistor and a first capacitor; the first end of the third resistor is used to be connected to the frequency output pin of the vehicle controller, and the second end of the third resistor is connected to the power supply end; the first end of the fourth resistor is connected to the first end of the third resistor, and the second end of the fourth resistor is connected to the first end of the fifth resistor; the first end of the fifth resistor is also connected to the first end of the first capacitor, and the second end of the fifth resistor is grounded; the first end of the first capacitor is connected to the main control chip, and the second end of the first capacitor is grounded; The main control chip is used to generate a PWM signal by controlling the on and off of the first transistor, and send the PWM signal to the vehicle controller, so that the vehicle controller detects the frequency and duty cycle of the PWM signal, and feeds back the detection result to the main control chip, and then the main control chip verifies the detection result; The main control chip is also used to receive the second PWM signal sent by the vehicle controller through the frequency input detection module, and compare the duty cycle and frequency of the second PWM signal with the preset duty cycle and frequency to obtain a frequency input detection result.
2. The automatic tester for detecting a vehicle controller according to claim 1, characterized in that: The automatic test circuit further includes: an analog input detection module; the analog input detection module includes a first gating chip and a second gating chip; The first gating chip and the second gating chip are respectively connected to the main control chip; The common pin of the first gating chip is connected to the common pin of the second gating chip; The second gating chip is also used to connect to the vehicle controller.
3. The automatic tester for detecting a vehicle controller according to claim 2, characterized in that: The first gating chip is a four-to-one gating chip; the second gating chip is a sixteen-to-one gating chip.
4. The automatic tester for detecting a vehicle controller according to claim 1, characterized in that: The automatic test circuit further includes: a dark current test module; the dark current test module includes: an ammeter, a first MOS tube, a second MOS tube, a sixth resistor, a seventh resistor, an eighth resistor and a ninth resistor; The current output end of the ammeter is connected to the first end of the sixth resistor, and the current input end of the ammeter is connected to the positive electrode of the power supply; The first end of the sixth resistor is also connected to the source of the first MOS transistor, and the second end of the sixth resistor is connected to the gate of the first MOS transistor; The drain of the first MOS tube is connected to the HCU_POWER_SUPPLY pin of the main control chip, and the gate of the first MOS tube is also connected to the first end of the seventh resistor; The second end of the seventh resistor is connected to the source of the second MOS tube; The gate of the second MOS tube is connected to the first end of the eighth resistor, and the drain of the second MOS tube is grounded; The first end of the eighth resistor is also connected to the first end of the ninth resistor, and the second end of the eighth resistor is grounded; The second end of the ninth resistor is connected to the HCU_POWER_CTRO pin of the main control chip.
5. The automatic tester for detecting a vehicle controller according to claim 4, characterized in that: The first MOS tube is a P-channel MOS tube, and the second MOS tube is an N-channel MOS tube.
6. The automatic tester for detecting a vehicle controller according to claim 1, characterized in that: The automatic test circuit also includes: a CAN communication detection module, a 5V reference output detection module, a low-side drive output detection module, a high-side output detection module and a digital input detection module; the CAN communication detection module, the 5V reference output detection module, the low-side drive output detection module, the high-side output detection module and the digital input detection module are all connected to the main control chip.
7. The automatic tester for detecting a vehicle controller according to claim 1, characterized in that: The automatic test circuit is mounted on an automatic test circuit board, and the automatic test circuit board is connected to a power supply and a terminal block for externally connecting the vehicle controller; the automatic test circuit board, the power supply and the terminal block are all arranged in a box; a human-computer interaction interface is arranged on the outer surface of the box, and a plurality of indicator lights, a buzzer and a start test button are arranged on the human-computer interaction interface.
8. The automatic tester for detecting a vehicle controller according to claim 7, characterized in that: The indicator lights include: an automatic tester power indicator light, a vehicle controller power indicator light, a vehicle controller wake-up pin indicator light, a test pass indicator light, and a test fail indicator light.
Citation Information
Patent Citations
VCU (Vehicle Control Unit) testing system and method
CN105717911A
Automatic tester for detecting vehicle control unit
CN210666478U