CN110597225A - A kind of off-line detection equipment and test method based on CAN bus body controller product - Google Patents

A kind of off-line detection equipment and test method based on CAN bus body controller product Download PDF

Info

Publication number
CN110597225A
CN110597225A CN201910865643.5A CN201910865643A CN110597225A CN 110597225 A CN110597225 A CN 110597225A CN 201910865643 A CN201910865643 A CN 201910865643A CN 110597225 A CN110597225 A CN 110597225A
Authority
CN
China
Prior art keywords
test
bcm
pin
tested
output
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
CN201910865643.5A
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.)
China Automotive Technology and Research Center Co Ltd
CATARC Tianjin Automotive Engineering Research Institute Co Ltd
Original Assignee
China Automotive Technology and Research Center Co Ltd
CATARC Tianjin Automotive Engineering Research Institute 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 China Automotive Technology and Research Center Co Ltd, CATARC Tianjin Automotive Engineering Research Institute Co Ltd filed Critical China Automotive Technology and Research Center Co Ltd
Priority to CN201910865643.5A priority Critical patent/CN110597225A/en
Publication of CN110597225A publication Critical patent/CN110597225A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0256Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults injecting test signals and analyzing monitored process response, e.g. injecting the test signal while interrupting the normal operation of the monitored system; superimposing the test signal onto a control signal during normal operation of the monitored system

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention provides a CAN bus-based vehicle body controller product offline detection device and a CAN bus-based vehicle body controller product offline detection method. The invention has strong universality, the design of the PCB test board is adopted, a commercial test board card is not adopted, the equipment construction cost can be greatly reduced, the off-line detection equipment can be repeatedly utilized, testers do not need to participate in the operation in the test process, the upper computer test software programs and modifies the test sequence according to the product difference, the test time is reduced, the input and output signals of the tested BCM are automatically tested and judged by the test equipment, the human errors are reduced, and the test accuracy is improved.

Description

一种基于CAN总线车身控制器产品下线检测设备及测试方法A kind of off-line detection equipment and test method based on CAN bus body controller product

技术领域technical field

本发明属于汽车电子零部件车身控制器技术领域,尤其是涉及一种基于CAN总线车身控制器产品下线检测设备及测试方法The invention belongs to the technical field of body controllers for automotive electronic components, and in particular relates to a CAN bus-based body controller product off-line detection equipment and testing method

背景技术Background technique

车身控制器(BCM)已经成为汽车必不可少的零部件,可以减少车载继电器的使用,有效的控制汽车的车用电器,驾驶员根据外部环境控制汽车的内外部灯光系统、中控锁系统、前后雨刮系统、玻璃天窗系统、后视镜系统等,BCM集成了CAN/LIN总线网络控制。下线检测是保证装车前车身控制器质量的重要环节,目前市场上利用CAN数据通讯对车身控制器测试成为主要趋势,基于BCM产品的诊断服务,通过IO Control来控制车身控制器的输入输出是最为常见的测试方法,结合电脑进行自动化测试提高了下线检测的效率,目前辅助测试的有安捷伦的测试板卡、NI的板卡以及VT的测试板卡等一系列自动化测试的数字、通讯板卡,下线检测设备制作成本高。The body controller (BCM) has become an essential part of the car, which can reduce the use of on-board relays, effectively control the car's electrical appliances, and the driver can control the car's internal and external lighting systems, central locking system, Front and rear wiper systems, glass sunroof systems, rearview mirror systems, etc., BCM integrates CAN/LIN bus network control. Off-line inspection is an important link to ensure the quality of the body controller before loading. At present, the use of CAN data communication to test the body controller has become the main trend in the market. Based on the diagnostic service of BCM products, the input and output of the body controller are controlled through IO Control It is the most common test method. Combining computer automated testing improves the efficiency of offline testing. At present, Agilent’s test boards, NI’s boards and VT’s test boards are used as auxiliary tests for a series of digital and communication test boards. The production cost of boards and offline testing equipment is high.

发明内容Contents of the invention

有鉴于此,本发明旨在提出一种基于CAN总线车身控制器产品下线检测设备,以降低车身控制器的下线检测设备的制作成本,提高检测效率,简化测试流程,。In view of this, the present invention aims to propose a CAN bus-based vehicle body controller product off-line testing equipment to reduce the production cost of the off-line testing equipment for the vehicle body controller, improve detection efficiency, and simplify the testing process.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

一种基于CAN总线车身控制器产品下线检测设备,包括程控电源、PCB测试板、测试夹具及负载箱、CAN通讯工具、上位机电脑、以及负载模块;A product off-line detection equipment based on CAN bus body controller, including program-controlled power supply, PCB test board, test fixture and load box, CAN communication tool, upper computer, and load module;

所述程控电源用于为PCB测试板、测试夹具及负载箱供电,同时给被测试BCM进行电源控制;The program-controlled power supply is used to supply power to the PCB test board, test fixture and load box, and to control the power supply to the tested BCM at the same time;

所述PCB测试板用于对被测试的BCM进行相应数字输入信号的有效、BCM输出信号的采集、模拟信号输入有效、CAN总线通讯、PWM输入信号有效、电源输入;The PCB test board is used for validating corresponding digital input signals, collecting BCM output signals, valid analog signal input, CAN bus communication, valid PWM input signal, and power input for the tested BCM;

所述测试夹具及负载箱用于模拟整车用电器的状态,通过串接功率电阻实现被测试的BCM输出有效后的功率消耗;The test fixture and the load box are used to simulate the state of the electrical appliances of the vehicle, and the power consumption after the tested BCM output is effective is realized by connecting the power resistor in series;

所述CAN通讯工具用于进行CAN总线信号的传输以及信号命令的发送与接收;The CAN communication tool is used for the transmission of CAN bus signals and the sending and receiving of signal commands;

所述上位机通过CAN总线控制发送测试命令,等待测试反馈进行测试结果判断。The host computer sends test commands through CAN bus control, and waits for test feedback to judge test results.

进一步的,所述PCB测试板输出信号采用通用的四通道独立选择的开关驱动芯片,用于实现数字高低有效输出,提供给被测试的BCM高有效输入信号、低有效输入信号,同时在驱动芯片的开关端设计多种电阻电路,实现不同电阻阻值的串接到地,实现不同AD信号的输出,实现对被测试的BCM不同AD输入的测试,被测试BCM通过读取不同的AD值来判断输入通道是否正常,输入信号采用扩展输入采集151芯片,可以实现很多输入采集,对被测试BCM的输出进行高低有效的采集,扩展输入通道满足被测试BCM的通用性测试。Further, the output signal of the PCB test board adopts a general-purpose four-channel independently selected switch driver chip, which is used to realize the digital high and low effective output, and provides the high effective input signal and the low effective input signal of the BCM to be tested. A variety of resistance circuits are designed at the switch end to realize the serial connection of different resistance values to the ground, realize the output of different AD signals, and realize the test of different AD inputs of the BCM under test. The BCM under test reads different AD values. To judge whether the input channel is normal, the input signal adopts the extended input acquisition 151 chip, which can realize many input acquisitions, and the output of the tested BCM is collected with high and low efficiency, and the extended input channel meets the generality test of the tested BCM.

进一步的,所述PCB板电路包括开关电路、低有效开关量采集电路、以及高有效开关量采集电路。Further, the PCB board circuit includes a switch circuit, a low effective switch value acquisition circuit, and a high effective switch value acquisition circuit.

进一步的,所述开关电路包括通道多功能开关芯片U1,U1的IN1脚通过下拉电阻R1接地,并连接至MCU的控制输出脚CRT1,CRT1可把IN1拉为高电平,U1的S1A脚接VSS电源,D1脚接板卡输出引脚OUT1,S1B脚接地;U1的VSS引脚接系统电源VSS,GND脚接系统地GND;U1的S2B引脚接系统电源VSS,D2脚接板卡输出OUT2,IN2脚通过下拉电阻R2连接至地,并连接至MCU的控制输出脚CRT2,CRT2可把IN1拉为高电平;U1的IN3脚通过下拉电阻R3接地,并连接至MCU的控制输出脚CRT3,CRT3可把IN1拉为高电平;U1的S3A脚通过可变电阻R5接地,D3脚接板卡输出引脚OUT3,S3B脚悬空;U1的VDD脚接MCU电源VDD;U1的IN4脚通过下拉电阻R4接地,并连接至MCU的控制输出脚CRT4,CRT4可把IN1拉为高电平。U1的S4A脚通过可变电阻R6接地,D4脚接板卡输出引脚OUT4,S4B脚悬空。Further, the switch circuit includes a channel multifunctional switch chip U1, the IN1 pin of U1 is grounded through the pull-down resistor R1, and connected to the control output pin CRT1 of the MCU, CRT1 can pull IN1 to a high level, and the S1A pin of U1 is connected to VSS power supply, D1 pin is connected to board output pin OUT1, S1B pin is grounded; U1's VSS pin is connected to system power supply VSS, GND pin is connected to system ground GND; U1's S2B pin is connected to system power supply VSS, D2 pin is connected to board output OUT2 and IN2 pins are connected to the ground through the pull-down resistor R2, and connected to the control output pin CRT2 of the MCU, and CRT2 can pull IN1 to a high level; the IN3 pin of U1 is grounded through the pull-down resistor R3, and connected to the control output pin of the MCU CRT3, CRT3 can pull IN1 to a high level; U1’s S3A pin is grounded through a variable resistor R5, D3 pin is connected to the board output pin OUT3, and S3B pin is suspended; U1’s VDD pin is connected to MCU power supply VDD; U1’s IN4 pin The pull-down resistor R4 is grounded and connected to the control output pin CRT4 of the MCU, and CRT4 can pull IN1 to a high level. The S4A pin of U1 is grounded through the variable resistor R6, the D4 pin is connected to the board output pin OUT4, and the S4B pin is suspended.

进一步的,所述低有效开关量采集电路用于被测BCM低有效输出电路的测试,L-IN为低有效输入信号,对应于被测BCM的低有效输出信,L-IN信号通过上拉电阻R10连接至系统电源VSS,通过电容C1连接至地,C1用于作信号滤波和防静;经过串接电阻R11和对地并联电容C2连接至扩展芯片HC151的输入引脚HC151-DX。Further, the low effective switching quantity acquisition circuit is used for testing the low effective output circuit of the BCM under test, L-IN is an effective low input signal corresponding to the effective low output signal of the BCM under test, and the L-IN signal is pulled through Resistor R10 is connected to system power supply VSS, connected to ground through capacitor C1, C1 is used for signal filtering and anti-static; connected to the input pin HC151-DX of expansion chip HC151 through series resistor R11 and parallel capacitor C2 to ground.

进一步的,所述高有效开关量采集用于被测BCM高有效输出电路的测试,H-IN为高有效输入信号,对应于被测BCM的高有效输出信号,H-IN信号通过滤波电容C3和下拉电阻R12接地,C3用于作信号滤波和防静电,R12用于在BCM无输出时,把H-IN信号下拉至低电平;经过串接电阻R13和对地并联电容C2连接至扩展芯片HC151的输入引脚HC151-DX。Further, the high-effective switching value collection is used for testing the high-effective output circuit of the BCM under test, H-IN is a high-effective input signal corresponding to the high-effective output signal of the BCM under test, and the H-IN signal passes through the filter capacitor C3 and the pull-down resistor R12 are grounded, C3 is used for signal filtering and anti-static, and R12 is used to pull down the H-IN signal to a low level when the BCM has no output; it is connected to the extension through the series resistor R13 and the ground parallel capacitor C2 The input pin HC151-DX of the chip HC151.

进一步的,所述测试夹具采用继电器控制电磁阀的机械结构,现对被测试BCM的自动化连接测试,包括外部继电器、电磁阀、指示灯、金属接触开关、光电传感器。Further, the test fixture adopts the mechanical structure of the relay to control the solenoid valve, and the automatic connection test of the tested BCM includes external relays, solenoid valves, indicator lights, metal contact switches, and photoelectric sensors.

进一步的,所述上位机的界面采用可视化窗口设计,实现手动调试与自动化测试,手动测试分为数字输入、模拟输入、数字输出测试,通过开关按钮调用CAN发送函数进行被测试BCM的测试命令,控制被测试BCM以及测试PCB板卡。Further, the interface of the host computer adopts a visual window design to realize manual debugging and automatic testing. Manual testing is divided into digital input, analog input, and digital output testing. The CAN sending function is called by the switch button to perform the test command of the tested BCM. Control the BCM under test and test the PCB board.

本发明的另一目的在于提出一种基于CAN总线车身控制器产品下线检测设备的测试方法,具体实现过程如下:Another object of the present invention is to propose a kind of test method based on CAN bus vehicle body controller product off-line detection equipment, concrete realization process is as follows:

输入测试:通过PCB测试板给予被测试BCM输入端相应的有效方式,然后上位机通过CAN总线给被测试BCM发送读取相应的输入状态,相应的无效方式也需要测试;Input test: through the PCB test board, give the corresponding effective mode of the input terminal of the tested BCM, and then the host computer sends and reads the corresponding input status to the tested BCM through the CAN bus, and the corresponding invalid mode also needs to be tested;

输出测试:上位机通过CAN总线发送相应的报文指令控制被测试的BCM输出的有效输出,然后通过PCB测试板进行被测试的BCM输出电压测试;Output test: The upper computer sends corresponding message commands through the CAN bus to control the effective output of the tested BCM output, and then conducts the tested BCM output voltage test through the PCB test board;

电源:被测BCM的电源输入,通过程控电源提供,间接测试;Power supply: The power input of the BCM under test is provided by the program-controlled power supply for indirect testing;

地:通过程控电源给出,间接测试;Ground: given by the program-controlled power supply, indirect test;

CAN通信:间接测试;CAN communication: indirect test;

LIN通讯:基于故障码测试,板卡模拟LIN的从节点,上位机使能BCM的LIN信号,通过报文检测LIN的从节点是否丢失进行测试,丢失发送错误报文给上位机。LIN communication: Based on the fault code test, the board simulates the slave node of LIN, the host computer enables the LIN signal of BCM, and tests whether the slave node of LIN is lost through the message, and sends an error message to the host computer if it is lost.

相对于现有技术,本发明所述的一种基于CAN总线车身控制器产品下线检测设备及测试方法具有以下优势:Compared with the prior art, a kind of off-line detection equipment and testing method based on the CAN bus body controller product of the present invention has the following advantages:

本发明通用性强,采用PCB测试板的设计,没有采用商用测试板卡可以大大减少设备搭建成本,下线检测设备可以重复利用,测试过程中测试人员不需要参与操作,上位机测试软件将测试序列根据产品差异进行编程修改,测试时间减少,被测试的BCM的输入输出信号都由测试设备自动化测试判断,减少了人为失误,提高了测试准确率。The invention has strong versatility, adopts the design of PCB test board, does not use commercial test boards, can greatly reduce the cost of equipment construction, and the off-line testing equipment can be reused. During the testing process, testers do not need to participate in the operation. The sequence is programmed and modified according to product differences, and the test time is reduced. The input and output signals of the tested BCM are judged by the automatic test of the test equipment, which reduces human errors and improves the test accuracy.

附图说明Description of drawings

构成本发明的一部分的附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings constituting a part of the present invention are used to provide a further understanding of the present invention, and the schematic embodiments and descriptions of the present invention are used to explain the present invention, and do not constitute an improper limitation of the present invention. In the attached picture:

图1为本发明实施例所述的开关电路示意图;FIG. 1 is a schematic diagram of a switch circuit according to an embodiment of the present invention;

图2为本发明实施例所述的低有效开关量采集电路示意图;Fig. 2 is the schematic diagram of the acquisition circuit of the low effective switching quantity described in the embodiment of the present invention;

图3为本发明实施例所述的高有效开关量采集电路示意图;Fig. 3 is the schematic diagram of the highly effective switching quantity acquisition circuit described in the embodiment of the present invention;

图4为本发明实施例所述的测试夹具原理示意图;4 is a schematic diagram of the principle of the test fixture described in the embodiment of the present invention;

图5为本发明实施例所述的上位机软件具备可视化界面示意图;Fig. 5 is a schematic diagram showing a visual interface of the upper computer software described in the embodiment of the present invention;

图6为本发明实施例所述的夹具测试过程说明示意图;Fig. 6 is a schematic diagram illustrating the fixture testing process described in the embodiment of the present invention;

图7为本发明实施例所述的一种基于CAN总线车身控制器产品下线检测设备及测试方法示意图。Fig. 7 is a schematic diagram of a CAN-bus-based vehicle body controller product off-line detection device and testing method according to an embodiment of the present invention.

具体实施方式Detailed ways

需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

在本发明的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”等的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。In describing the present invention, it should be understood that the terms "center", "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", " The orientations or positional relationships indicated by "vertical", "horizontal", "top", "bottom", "inner" and "outer" are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and Simplified descriptions, rather than indicating or implying that the device or element referred to must have a particular orientation, be constructed and operate in a particular orientation, and thus should not be construed as limiting the invention. In addition, the terms "first", "second", etc. are used for descriptive purposes only, and should not be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, a feature defined as "first", "second", etc. may expressly or implicitly include one or more of that feature. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以通过具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection. Connected, or integrally connected; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediary, and it can be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention based on specific situations.

下面将参考附图并结合实施例来详细说明本发明。The present invention will be described in detail below with reference to the accompanying drawings and examples.

本发明提供一种基于CAN总线车身控制器产品下线检测设备包括以下组件:The invention provides a CAN bus body controller product off-line detection equipment including the following components:

程控电源、PCB测试板、测试夹具负载箱、CAN通讯硬件工具、上位机电脑、负载模块。Programmable power supply, PCB test board, test fixture load box, CAN communication hardware tools, host computer, load module.

程控电源主要是为PCB测试板、测试夹具以及负载供电,同时需要给被测试BCM进行电源控制。The programmable power supply is mainly for supplying power to PCB test boards, test fixtures and loads, and at the same time needs to control the power supply for the BCM under test.

PCB测试板采用跟BCM类似的产品设计,基于单片机功能,将PCB测试板划分数字输入信号、数字输出信号、CAN总线、LIN总线、PWM信号输出信号等,PCB测试板主要是对被测试的BCM进行相应数字输入信号的有效、BCM输出信号的采集、模拟信号输入有效、CAN总线通讯、PWM输入信号有效、电源输入等。The PCB test board adopts a product design similar to that of BCM. Based on the function of the single-chip microcomputer, the PCB test board is divided into digital input signal, digital output signal, CAN bus, LIN bus, PWM signal output signal, etc. The PCB test board is mainly for the tested BCM Validate the corresponding digital input signal, collect BCM output signal, enable analog signal input, CAN bus communication, enable PWM input signal, power input, etc.

PCB测试板电路设计,输出信号采用通用的四通道独立选择的开关驱动芯片,可以实现数字高低有效输出,提供给被测试的BCM高有效输入信号、低有效输入信号,同时在驱动芯片的开关端进行外围电路的设计,采用多种电阻电路的设计,可以实现不同电阻阻值的串接到地,实现不同AD信号的输出,可以实现对被测试的BCM不同AD输入的测试,被测试BCM通过读取不同的AD值来判断输入通道是否正常。输入信号采用扩展输入采集151芯片,可以实现很多输入采集,对被测试BCM的输出进行高低有效的采集,扩展输入通道可以满足被测试BCM的通用性测试。PCB test board circuit design, the output signal adopts a general-purpose four-channel independently selected switch drive chip, which can realize digital high and low effective output, and provide high effective input signal and low effective input signal to the tested BCM, and at the same time at the switch end of the drive chip For the design of the peripheral circuit, the design of a variety of resistance circuits can be used to realize the series connection of different resistance values to the ground, to realize the output of different AD signals, to realize the test of different AD inputs of the tested BCM, and the tested BCM passes Read different AD values to judge whether the input channel is normal. The input signal adopts the extended input acquisition 151 chip, which can realize many input acquisitions, high and low effective acquisition of the output of the tested BCM, and the extended input channel can meet the generality test of the tested BCM.

电路如图1所示,U1为四通道多功能开关芯片,型号是ADG1334,其工作原理为当某一通道的输入INX电平为高时,对应输出通道DX与SXA接通;当INX为低电平时,DX与SXB接通。The circuit is shown in Figure 1, U1 is a four-channel multi-function switch chip, the model is ADG1334, its working principle is that when the input INX level of a certain channel is high, the corresponding output channel DX and SXA are connected; when INX is low When level, DX and SXB are connected.

电路的连接关系为:U1的IN1脚通过下拉电阻R1接地,并连接至MCU的控制输出脚CRT1,CRT1可把IN1拉为高电平。U1的S1A脚接VSS电源,D1脚接板卡输出引脚OUT1,S1B脚接地;U1的VSS引脚接系统电源VSS,GND脚接系统地GND;U1的S2B引脚接系统电源VSS,D2脚接板卡输出OUT2,IN2脚通过下拉电阻R2连接至地,并连接至MCU的控制输出脚CRT2,CRT2可把IN1拉为高电平;U1的IN3脚通过下拉电阻R3接地,并连接至MCU的控制输出脚CRT3,CRT3可把IN1拉为高电平;U1的S3A脚通过可变电阻R5接地,D3脚接板卡输出引脚OUT3,S3B脚悬空;U1的VDD脚接MCU电源VDD;U1的IN4脚通过下拉电阻R4接地,并连接至MCU的控制输出脚CRT4,CRT4可把IN1拉为高电平。U1的S4A脚通过可变电阻R6接地,D4脚接板卡输出引脚OUT4,S4B脚悬空。The connection relationship of the circuit is: the IN1 pin of U1 is grounded through the pull-down resistor R1, and connected to the control output pin CRT1 of the MCU, and CRT1 can pull IN1 to a high level. The S1A pin of U1 is connected to the VSS power supply, the D1 pin is connected to the board output pin OUT1, and the S1B pin is grounded; the VSS pin of U1 is connected to the system power supply VSS, and the GND pin is connected to the system ground GND; the S2B pin of U1 is connected to the system power supply VSS, D2 The pin is connected to the board output OUT2, and the IN2 pin is connected to the ground through the pull-down resistor R2, and connected to the control output pin CRT2 of the MCU, and CRT2 can pull IN1 to a high level; the IN3 pin of U1 is grounded through the pull-down resistor R3, and connected to The control output pin CRT3 of the MCU, CRT3 can pull IN1 to a high level; the S3A pin of U1 is grounded through the variable resistor R5, the D3 pin is connected to the board output pin OUT3, and the S3B pin is suspended; the VDD pin of U1 is connected to the MCU power supply VDD ; The IN4 pin of U1 is grounded through the pull-down resistor R4, and connected to the control output pin CRT4 of the MCU, and CRT4 can pull IN1 to a high level. The S4A pin of U1 is grounded through the variable resistor R6, the D4 pin is connected to the board output pin OUT4, and the S4B pin is suspended.

工作过程为:OUT1和OUT2用于被测试BCM的高/低有效开关量采集通道;当CRT1(或CRT2)输出高电平时,OUT1(或OUT2)与S1A(或S2A)接通,输出高电平。当CRT1(或CRT2)输出低电平,或无输出时,IN1(或IN2)脚被下拉电阻R1(或R2)下拉至低电平;OUT1(或OUT2)与S1B(或S2B)导通,输出低电平。OUT3和OUT4用于测试被测BCM的模拟量采集通道。当CRT3(或CRT4)输出高电平时,OUT3(或OUT4)与S3A(或S4A)接通,通过可变电阻R5(或R6)接地,通过调节R5(或R6)的阻值可实现对被测BCM不同模拟量采集通道的测试;当CRT3(或CRT4)输出低电平,或无输出时,IN3(或IN4)脚被下拉电阻R3(或R4)下拉至低电平;OUT3(或OUT4)与S3B(或S4B)导通,此时OUT3(或OUT4)无输出,相当于通过无穷大电阻接地。被测BCM通过读取不同的AD值来判断是否正常。The working process is: OUT1 and OUT2 are used for the high/low effective switching value acquisition channel of the tested BCM; when CRT1 (or CRT2) outputs a high level, OUT1 (or OUT2) is connected to S1A (or S2A), and the output is high flat. When CRT1 (or CRT2) outputs low level or no output, IN1 (or IN2) pin is pulled down to low level by pull-down resistor R1 (or R2); OUT1 (or OUT2) and S1B (or S2B) are turned on, output low level. OUT3 and OUT4 are used to test the analog quantity acquisition channel of the BCM under test. When CRT3 (or CRT4) outputs a high level, OUT3 (or OUT4) is connected to S3A (or S4A), grounded through variable resistor R5 (or R6), and can be controlled by adjusting the resistance of R5 (or R6). Test of different analog acquisition channels of BCM; when CRT3 (or CRT4) outputs low level or no output, IN3 (or IN4) pin is pulled down to low level by pull-down resistor R3 (or R4); OUT3 (or OUT4) ) and S3B (or S4B) conduction, at this time OUT3 (or OUT4) has no output, which is equivalent to grounding through an infinite resistance. The tested BCM judges whether it is normal by reading different AD values.

低有效开关量采集电路如图2所示,可用于被测BCM低有效输出电路的测试。The low effective switching value acquisition circuit is shown in Figure 2, which can be used for testing the low effective output circuit of the BCM under test.

连接关系为:L-IN为低有效输入信号,对应于被测BCM的低有效输出信号。L-IN信号通过上拉电阻R10连接至系统电源VSS,通过电容C1连接至地,C1用于作信号滤波和防静;经过串接电阻R11和对地并联电容C2连接至扩展芯片HC151的输入引脚HC151-DX。The connection relationship is: L-IN is an effective low input signal, which corresponds to an effective low output signal of the BCM under test. The L-IN signal is connected to the system power supply VSS through the pull-up resistor R10, connected to the ground through the capacitor C1, C1 is used for signal filtering and anti-static; connected to the input of the expansion chip HC151 through the series resistor R11 and the parallel capacitor C2 to the ground pin HC151-DX.

工作过程为:当被测BCM的低有效输出信号无输出时,L-IN信号被上拉电阻R10上拉至电源电平VSS;当被测BCM的低有效输出信号有输出时,L-IN信号被下拉至低电平;MCU通过扩展芯片HC151读取输入信号电平状态,和BCM的输出状态对比来判断BCM工作是否正常。The working process is: when the low effective output signal of the BCM under test has no output, the L-IN signal is pulled up to the power supply level VSS by the pull-up resistor R10; when the low effective output signal of the BCM under test has output, the L-IN The signal is pulled down to low level; the MCU reads the input signal level status through the expansion chip HC151, and compares it with the output status of the BCM to judge whether the BCM is working normally.

高有效开关量采集电路如图3所示,可用于被测BCM高有效输出电路的测试。The high-effective switching value acquisition circuit is shown in Figure 3, which can be used for testing the high-effective output circuit of the BCM under test.

连接关系为:H-IN为高有效输入信号,对应于被测BCM的高有效输出信号。H-IN信号通过滤波电容C3和下拉电阻R12接地,C3用于作信号滤波和防静电,R12用于在BCM无输出时,把H-IN信号下拉至低电平;经过串接电阻R13和对地并联电容C2连接至扩展芯片HC151的输入引脚HC151-DX。The connection relationship is: H-IN is an effective high input signal, which corresponds to the effective high output signal of the BCM under test. The H-IN signal is grounded through the filter capacitor C3 and the pull-down resistor R12. C3 is used for signal filtering and anti-static, and R12 is used to pull the H-IN signal to a low level when the BCM has no output; through the series resistor R13 and The ground parallel capacitor C2 is connected to the input pin HC151-DX of the expansion chip HC151.

工作过程为:当被测BCM的高有效输出信号无输出时,H-IN信号被下拉电阻R12下拉至低电平;当被测BCM的高有效输出信号有输出时,H-IN信号被上拉至高电平;MCU通过扩展芯片HC151读取输入信号电平状态,和BCM的输出状态对比来判断BCM工作是否正常。The working process is: when the high effective output signal of the BCM under test has no output, the H-IN signal is pulled down to low level by the pull-down resistor R12; when the high effective output signal of the BCM under test has output, the H-IN signal is pulled up Pull it to high level; the MCU reads the input signal level status through the expansion chip HC151, and compares it with the output status of the BCM to judge whether the BCM is working normally.

测试夹具以及负载箱主要是用于模拟整车用电器的状态,通过串接功率电阻实现被测试的BCM输出有效后的功率消耗,夹具采用电磁阀控制的机械结构,用来固定被测试BCM,放置产品进行测试,这部分可以另做自动化设计,通过气缸电磁阀进行设计。The test fixture and load box are mainly used to simulate the state of the electrical appliances of the whole vehicle. The power consumption of the tested BCM after the output is effective is realized by connecting the power resistor in series. The fixture adopts a mechanical structure controlled by a solenoid valve to fix the tested BCM. Place the product for testing, and this part can be designed automatically through the cylinder solenoid valve.

测试夹具以及负载箱采用通用设计,负载箱用来显示相应将被测试BCM的输出用参数相同的功率电阻进行替代,在设计过程中负载箱设计成可以拆卸的插拔壳体,将所有的输出用橡胶插头引出来,这样可以外接实际的负载进行驱动进行验证;测试夹具采用电磁阀控制,气动连接,结合光电传感器以及金属接触开关的结构实现对被测试BCM的自动化连接测试,具体测试过程见图6。The test fixture and load box adopt a common design. The load box is used to display the output of the corresponding BCM to be tested and replace it with a power resistor with the same parameters. It is led out with a rubber plug, so that it can be driven by an external load for verification; the test fixture is controlled by a solenoid valve, connected pneumatically, and combined with the structure of a photoelectric sensor and a metal contact switch to realize an automatic connection test for the BCM under test. For the specific test process, see Image 6.

测试夹具的电路采用数字输入输出控制电磁阀的工作原理实现被测试BCM的上装测试,测试夹具包括外部继电器、电磁阀、指示灯、金属接触开关、光电传感器等部件。金属接触开关以及光电传感器检测被测试BCM放到测试夹具中,并且合上夹具上盖,将结果反馈给PCB测试板,PCB测试板输出信号外部继电器1闭合,上推气缸后闭锁,开始测试。测试成功后继电器2闭合,下推气缸解锁,继电器4闭合绿灯闪烁后,测试成功。测试过程中如果测试失败后,继电器3闭合红灯闪烁,此时需要将红色按钮按下后继电器4才能闭合,下推气缸解锁。原理图如图4所示。The circuit of the test fixture adopts the working principle of the digital input and output control solenoid valve to realize the bodywork test of the tested BCM. The test fixture includes external relays, solenoid valves, indicator lights, metal contact switches, photoelectric sensors and other components. The metal contact switch and the photoelectric sensor detect that the BCM under test is placed in the test fixture, and the upper cover of the fixture is closed, and the result is fed back to the PCB test board. The output signal of the PCB test board is closed, and the external relay 1 is closed. After pushing up the cylinder, it is locked and the test starts. After the test is successful, the relay 2 is closed, the push-down cylinder is unlocked, and the green light flashes after the relay 4 is closed, the test is successful. If the test fails during the test, the relay 3 closes and the red light flashes. At this time, the red button needs to be pressed before the relay 4 can be closed, and the cylinder can be unlocked by pushing down. The schematic diagram is shown in Figure 4.

测试夹具设计采用简单的继电器控制电磁阀的机械机构,实现对被测试BCM的上装、测试、下装过程,输入信号采集以及输出控制信号都可以由测试PCB进行提供,测试过程简单,控制方法可靠,成本低。The design of the test fixture adopts a simple relay to control the mechanical mechanism of the solenoid valve to realize the process of uploading, testing, and downloading the tested BCM. The input signal collection and output control signals can be provided by the test PCB. The test process is simple and the control method is reliable. ,low cost.

CAN通讯工具主要是进行CAN总线信号的传输以及信号命令的发送与接收。CAN communication tools are mainly for the transmission of CAN bus signals and the sending and receiving of signal commands.

上位机软件基于.NET Freamwork进行开发,运用C代码将被测试BCM的测试用例进行编写,上位机通过CAN总线控制发送测试命令,等待测试反馈进行测试结果判断,上位机软件与外部交互采用USB-CAN设备,具体硬件可以是周立功或者kvaser系列的CAN卡。The upper computer software is developed based on .NET Freamwork, and the test cases of the BCM to be tested are written using C code. The upper computer sends test commands through the CAN bus control, and waits for the test feedback to judge the test results. The upper computer software interacts with the outside using USB- CAN device, the specific hardware can be Zhou Ligong or kvaser series CAN card.

上位机界面采用可视化窗口设计,可以实现手动调试与自动化测试,手动测试分为数字输入、模拟输入、数字输出测试,通过开关按钮调用CAN发送函数进行被测试BCM的测试命令,控制被测试BCM以及测试PCB板卡。自动化测试主要是调用下位机代码编写的自动化测试脚本,自动运行测试程序,并且将测试结果显示在AutoTest messgae窗口中,测试结束后自动生成TXT格式的测试报告。The upper computer interface adopts a visual window design, which can realize manual debugging and automatic testing. Manual testing is divided into digital input, analog input, and digital output testing. The CAN sending function is called through the switch button to execute the test command of the BCM under test and control the BCM under test. Test the PCB board. The automated test is mainly to call the automated test script written by the lower computer code, automatically run the test program, and display the test result in the AutoTest messgae window, and automatically generate a test report in TXT format after the test is completed.

上位机软件具备可视化界面,可以根据被测试BCM的测试类型进行分类,为用户提供以下功能的接口:1、CAN通讯设备初始化及透传测试;2、BCM低有效及高有效数字输入测试;3、BCM模拟输入测试;4、BCM数字输出测试。The upper computer software has a visual interface, which can be classified according to the test type of the tested BCM, and provides the user with an interface for the following functions: 1. CAN communication device initialization and transparent transmission test; 2. BCM low effective and high effective digital input test; 3 , BCM analog input test; 4, BCM digital output test.

上位机在测试系统的主要作用为:1、通过CAN总线连接PCB测试板,经由CAN信息实现对PCB测试板、被测BCM的控制,从而对整个测试流程进行控制;2、能够实时显示总线上的CAN报文及测试细节,记录用户进行的每一次测试操作及结果,并将结果保存成TXT格式的测试日志文件以供查阅。The main functions of the upper computer in the test system are: 1. Connect the PCB test board through the CAN bus, and realize the control of the PCB test board and the tested BCM through the CAN information, thereby controlling the entire test process; 2. It can display the data on the bus in real time. CAN message and test details, record every test operation and result performed by the user, and save the result as a test log file in TXT format for reference.

被测试的BCM需要进行产品测试代码的填充,主要是涉及到输入信号有效后的总线信号发送、接收到输出有效的总线命令后输出有效、CAN接收发送信号处理等。这部分处理后续集成到产品代码当中,实现与上位机软件、测试板卡的信息交互测试,从而达到测试BCM的目的。The tested BCM needs to fill in the product test code, which mainly involves the bus signal transmission after the input signal is valid, the output is valid after receiving the valid output bus command, CAN receiving and sending signal processing, etc. This part of the processing is subsequently integrated into the product code to realize the information interaction test with the host computer software and the test board, so as to achieve the purpose of testing the BCM.

本发明的测试过程如下:The testing process of the present invention is as follows:

数字信号输入测试,分为被测试BCM输入有效和被测试BCM输入有效命令读取两部分,如图7所示,被测试BCM数字输入有效的流程是1-3-5,被测试BCM数字输入有效命令读取流程是1-7-6-2。测试过程中始终是通过CAN总线进行测试命令传输、判断,被测试的BCM数字有效命令通过测试板卡执行,被测试BCM的数字输入有效状态由被测试BCM进行发送,最终测试结果由上位机进行判断,实现了完整的测试流程。The digital signal input test is divided into two parts: the tested BCM input valid and the tested BCM input valid command reading, as shown in Figure 7, the tested BCM digital input valid process is 1-3-5, the tested BCM digital input The effective command read flow is 1-7-6-2. During the test process, the test command transmission and judgment are always carried out through the CAN bus. The digital effective command of the tested BCM is executed through the test board, the valid state of the digital input of the tested BCM is sent by the tested BCM, and the final test result is carried out by the host computer. Judgment, to achieve a complete testing process.

首先上位机通过CAN总线发送BCM输入测试命令给PCB测试板,PCB测试板接收到测试BCM输入命令后,相应的通道输出高低有效信号给被测试BCM,此时被测试BCM的数字输入有效;然后延时200ms,上位机通过CAN总线给被测试BCM发送相应硬件通道数字输入测试命令,此时被测试的BCM可以根据之前添加的代码,将BCM相应通道的输入状态通过CAN总线发送给上位机;最后上位机接收到被测试的BCM输入状态信号后进行判断,如果是有效命令,测试成功,如果是无效命令,测试失败。First, the host computer sends the BCM input test command to the PCB test board through the CAN bus. After the PCB test board receives the test BCM input command, the corresponding channel outputs a high-low valid signal to the tested BCM. At this time, the digital input of the tested BCM is valid; then After a delay of 200ms, the upper computer sends the corresponding hardware channel digital input test command to the tested BCM through the CAN bus. At this time, the tested BCM can send the input status of the corresponding channel of the BCM to the upper computer through the CAN bus according to the code added before; Finally, the upper computer judges after receiving the input status signal of the BCM under test. If it is a valid command, the test is successful, and if it is an invalid command, the test fails.

模拟输入信号测试,与数字输入信号测试类似,不同的是在测试板卡上进行硬件更改,相比于数字输入信号的12V高有效以及接地线的低有效,模拟输入信号是通过外接不同阻值的电阻与被测试BCM模拟输入电路的阻值进行分压后,被测试BCM单片机模拟输入采集到不同的AD值,实现模拟输入有效,测试流程是1-3-5,被测试BCM获取相应的模拟输入后的命令读取流程是1-7-6-2。The analog input signal test is similar to the digital input signal test. The difference is that the hardware is changed on the test board. Compared with the 12V high effective of the digital input signal and the low effective of the ground wire, the analog input signal is connected with different resistance values. After the resistance of the tested BCM analog input circuit is divided, the tested BCM single chip microcomputer analog input collects different AD values to realize that the analog input is valid. The test process is 1-3-5, and the tested BCM obtains the corresponding The command reading process after analog input is 1-7-6-2.

首先上位机通过CAN总线发送BCM模拟输入给PCB测试板,PCB测试板通过芯片控制不同阻值的电阻与被测试BCM接通后到地线,实现不同AD模拟信号有效;的然后延时200ms,上位机通过CAN总线给被测试BCM发送相应通道数的模拟输入测试命令,被测试BCM将测试采集到的模拟信号AD值通过总线发送给上位机;最后上位机根据被测试BCM发送的AD值进行判断,AD值在符合有效命令的范围,测试成功,如果反馈的AD值不在范围之内,则测试失败。First, the host computer sends the BCM analog input to the PCB test board through the CAN bus, and the PCB test board controls the resistors of different resistances through the chip to connect with the tested BCM to the ground wire, so that different AD analog signals are valid; then delay 200ms, The upper computer sends an analog input test command corresponding to the number of channels to the BCM under test through the CAN bus, and the BCM under test sends the AD value of the analog signal collected by the test to the upper computer through the bus; finally, the upper computer performs the test according to the AD value sent by the BCM under test. Judgment, if the AD value is within the range of the valid command, the test is successful, if the feedback AD value is not within the range, the test fails.

数字输出信号测试,分为被测试BCM输出有效和输出有效命令判读两个部分,如示意图1所示,被测试BCM输出有效流程1-7-8-9,被测试BCM输出检测命令流程1-3-4-2,测试过程中上位机首先发送测试命令使被测试BCM的输出有效,然后再通过总线发送给PCB测试板进行相应通道的BCM输出信号采集,最后上位机根据PCB测试板发送的CAN信号进行判断测试结果,完成BCM的输出测试流程。The digital output signal test is divided into two parts: the output valid of the tested BCM and the interpretation of the valid output command. As shown in the diagram 1, the tested BCM output valid process is 1-7-8-9, and the tested BCM output detection command process is 1- 3-4-2. During the test, the host computer first sends a test command to make the output of the tested BCM valid, and then sends it to the PCB test board through the bus to collect the BCM output signal of the corresponding channel. The CAN signal is used to judge the test result and complete the output test process of the BCM.

首先是上位机通过CAN总线给被测试BCM发送测试数字输出信号命令,被测试BCM接收到总线信号后,将相应输出通道有效,高有效输出12V,低有效输出接地,对于数字输出信号的测试需要外接夹具进行配合测试,被测试BCM输出端需要串接功率电阻;然后延时200ms,上位机给PCB测试板发送相应通道输出测试命令,PCB测试板内部输入采集电路将被测试BCM输出信号采集后,通过CAN总线信号发送给上位机;最后上位机根据测试板卡发送的CAN信号进行判断,被测试BCM输出有效测试成功,如果没有收到BCM输出有效命令,则测试失败。First, the host computer sends a test digital output signal command to the tested BCM through the CAN bus. After the tested BCM receives the bus signal, the corresponding output channel is enabled, the high effective output is 12V, and the low effective output is grounded. The test of the digital output signal requires The external fixture is used for the test, and the output of the BCM under test needs to be connected in series with a power resistor; then, after a delay of 200ms, the host computer sends the corresponding channel output test command to the PCB test board, and the internal input acquisition circuit of the PCB test board will be tested after the output signal of the BCM is collected. , and send it to the host computer through the CAN bus signal; finally, the host computer judges according to the CAN signal sent by the test board, and the tested BCM output valid test is successful. If the BCM output valid command is not received, the test fails.

PWM信号输入测试,PWM信号输入测试与数字输入类似,测试板卡中单片机特定的引脚做PWM输出口,设置软件时钟比较器,输出一定的频率PWM波形,满足被测试BCM的PWM信号有效方式;测试过程仍然是上位机发起,首先发送给测试板卡PWM输入信号测试命令,测试板卡收CAN总线命令后,相应的单片机引脚输出PWM波形给被测试BCM,然后被测试BCM接收到PWN波形后,将有效方式以CAN总线发送给上位机,上位机根据被测试BCM发送的总线信号进行判断,测试是否成功。PWM signal input test, the PWM signal input test is similar to the digital input, the specific pin of the microcontroller in the test board is used as the PWM output port, the software clock comparator is set, and a certain frequency PWM waveform is output to meet the effective mode of the PWM signal of the tested BCM ;The test process is still initiated by the host computer. First, it sends a PWM input signal test command to the test board. After the test board receives the CAN bus command, the corresponding microcontroller pin outputs the PWM waveform to the tested BCM, and then the tested BCM receives the PWM. After the waveform is generated, the effective method will be sent to the host computer via the CAN bus, and the host computer will judge whether the test is successful or not based on the bus signal sent by the tested BCM.

LIN总线信号测试,针对LIN总线信号的测试,在测试板卡中集成LIN模块,作为被测试BCM的从节点进行LIN信号的测试。首先上位机通过CAN总线给测试板卡发送测试LIN信号命令,测试板卡收到命令后相应的LIN发送信号使能;然后延时200ms后,上位机发送给被测试BCM测试LIN通讯命令,BCM主节点进行LIN信号请求,发送给测试板卡,BCM将LIN从节点是否丢失以CAN总线报文发送给上位机;最后上位机根据BCM发送的CAN总线信号进行判断,如果判断从节点没有丢失,则测试成功。LIN bus signal test, for the test of LIN bus signal, integrate the LIN module in the test board, as the slave node of the tested BCM to test the LIN signal. First, the upper computer sends a test LIN signal command to the test board through the CAN bus, and the corresponding LIN signal is enabled after the test board receives the command; then, after a delay of 200ms, the upper computer sends a test LIN communication command to the tested BCM, and the BCM The master node makes a LIN signal request and sends it to the test board, and the BCM sends a CAN bus message to the host computer whether the LIN slave node is lost; finally, the host computer judges according to the CAN bus signal sent by the BCM. If it is judged that the slave node is not lost, Then the test is successful.

整个BCM下线检测设备测试过程中,自动化测试序列根据BCM的硬件原理图以及PIN脚定义已经编写完成,在测试过程中上位机测试界面可以用CAPL进行编程,进行CAN信号指令的发送,发送规则可以根据零部件厂商自己的规则进行,CAN信号接收指令进行判断,测试过程中可以将某一条的测试序列的测试结果进行记录,最后测试完成后可以将测试结果以TXT格式进行保存,生成测试报告。测试结果可以通过PCB测试板进行反馈,测试成功控制夹具自动弹开被测试BCM,并且提示测试成功,测试失败需要手动将测试夹具打开,并且更换BCM进行下面的测试。During the entire testing process of BCM off-line testing equipment, the automated test sequence has been written according to the hardware schematic diagram of BCM and the definition of PIN pins. During the testing process, the upper computer test interface can be programmed with CAPL to send CAN signal instructions and send rules It can be carried out according to the rules of the component manufacturer, and the CAN signal receives the command to judge. During the test, the test result of a certain test sequence can be recorded. After the test is completed, the test result can be saved in TXT format to generate a test report. . The test result can be fed back through the PCB test board. If the test is successful, the control fixture will automatically pop open the tested BCM and prompt that the test is successful. If the test fails, you need to manually open the test fixture and replace the BCM for the following test.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (9)

1. The utility model provides a based on CAN bus automobile body controller product check out test set that rolls off production line which characterized in that: the test device comprises a program control power supply, a PCB test board, a test fixture, a load box, a CAN communication tool, an upper computer and a load module;
the program control power supply is used for supplying power to the PCB test board, the test fixture and the load box and controlling the power supply of the tested BCM;
the PCB test board is used for carrying out validation of corresponding digital input signals, collection of BCM output signals, validation of analog signal input, CAN bus communication, validation of PWM input signals and power supply input on a tested BCM;
the test fixture and the load box are used for simulating the state of the electric appliance of the whole vehicle and realizing the power consumption of the tested BCM after the output of the tested BCM is effective by connecting power resistors in series;
the CAN communication tool is used for transmitting CAN bus signals and sending and receiving signal commands;
and the upper computer sends a test command through the CAN bus control and waits for test feedback to judge a test result.
2. The CAN bus-based vehicle body controller product offline detection device of claim 1, wherein: the PCB test board output signal adopts a universal four-channel independently selected switch driving chip for realizing digital high-low effective output, and provides high-effective input signals and low-effective input signals for a tested BCM, meanwhile, a plurality of resistor circuits are designed at the switch end of the driving chip, so that different resistor values are connected to the ground in series, the output of different AD signals is realized, the test of different AD inputs of the tested BCM is realized, the tested BCM judges whether the input channel is normal by reading different AD values, the input signal adopts an extended input acquisition 151 chip, a plurality of input acquisitions can be realized, the high-low effective acquisition is carried out on the output of the tested BCM, and the extended input channel meets the universality test of the tested BCM.
3. The CAN bus-based vehicle body controller product offline detection device of claim 2, wherein: the PCB circuit comprises a switch circuit, a low effective switching value acquisition circuit and a high effective switching value acquisition circuit.
4. The CAN bus based vehicle body controller product offline detection device of claim 3, wherein: the switch circuit comprises a channel multifunctional switch chip U1, wherein an IN1 pin of U1 is grounded through a pull-down resistor R1 and is connected to a control output pin CRT1 of the MCU, the IN1 can be pulled to be at a high level by the CRT1, an S1A pin of U1 is connected with a VSS power supply, a D1 pin is connected with a card output pin OUT1, and an S1B pin is grounded; a VSS pin of the U1 is connected with a system power supply VSS, and a GND pin is connected with a system ground GND; the S2B pin of U1 is connected with system power VSS, the D2 pin is connected with a board card output OUT2, the IN2 pin is connected to the ground through a pull-down resistor R2 and is connected to a control output pin CRT2 of the MCU, and the CRT2 can pull the IN1 to a high level; an IN3 pin of U1 is grounded through a pull-down resistor R3 and is connected to a control output pin CRT3 of the MCU, and the CRT3 can pull IN1 to be high level; the pin S3A of the U1 is grounded through a variable resistor R5, the pin D3 is connected with a card output pin OUT3, and the pin S3B is suspended; the VDD pin of the U1 is connected with the MCU power supply VDD; an IN4 pin of the U1 is grounded through a pull-down resistor R4 and is connected to a control output pin CRT4 of the MCU, the CRT4 can pull an IN1 to be high level, an S4A pin of the U1 is grounded through a variable resistor R6, a D4 pin is connected with a card output pin OUT4, and an S4B pin is suspended.
5. The CAN bus based vehicle body controller product offline detection device of claim 3, wherein: the low effective switching value acquisition circuit is used for testing a low effective output circuit of the tested BCM, L-IN is a low effective input signal and corresponds to a low effective output signal of the tested BCM, the L-IN signal is connected to a system power supply VSS through a pull-up resistor R10 and is connected to the ground through a capacitor C1, and C1 is used for signal filtering and anti-static; is connected to the input pins HC151-DX of the expansion chip HC151 through the series resistor R11 and the ground parallel capacitor C2.
6. The CAN bus based vehicle body controller product offline detection device of claim 3, wherein: the high-effective switching value acquisition is used for testing a high-effective output circuit of a tested BCM, H-IN is a high-effective input signal and corresponds to the high-effective output signal of the tested BCM, the H-IN signal is grounded through a filter capacitor C3 and a pull-down resistor R12, C3 is used for signal filtering and static electricity prevention, and R12 is used for pulling down the H-IN signal to a low level when the BCM is not output; is connected to the input pins HC151-DX of the expansion chip HC151 through the series resistor R13 and the ground parallel capacitor C2.
7. The CAN bus-based vehicle body controller product offline detection device of claim 1, wherein: the test fixture adopts a mechanical structure of a relay control electromagnetic valve, and is used for automatically connecting and testing the tested BCM, and comprises an external relay, an electromagnetic valve, an indicator lamp, a metal contact switch and a photoelectric sensor.
8. The CAN bus-based vehicle body controller product offline detection device of claim 1, wherein: the interface of the upper computer adopts a visual window design, manual debugging and automatic testing are realized, manual testing is divided into digital input, analog input and digital output testing, a CAN sending function is called through a switch button to carry out a testing command of a BCM to be tested, and the BCM to be tested and a PCB board card to be tested are controlled.
9. The test method for the offline detection equipment based on the CAN bus automobile body controller product is characterized by comprising the following steps: the method comprises the following detection processes:
inputting and testing: a PCB test board gives a corresponding effective mode to the input end of the BCM to be tested, then the upper computer sends and reads a corresponding input state to the BCM to be tested through a CAN bus, and the corresponding ineffective mode also needs to be tested;
and (3) output test: the upper computer sends a corresponding message instruction through the CAN bus to control the effective output of the tested BCM, and then the tested BCM output voltage is tested through the PCB test board;
power supply: the power supply input of the BCM to be tested is provided by a program control power supply for indirect testing;
ground: the test is performed indirectly through the program control power supply;
CAN communication: indirect testing;
LIN communication: based on fault code testing, the board card simulates an LIN slave node, an upper computer enables an LIN signal of a BCM, whether the LIN slave node is lost or not is detected through a message, and the loss sends an error message to the upper computer.
CN201910865643.5A 2019-09-12 2019-09-12 A kind of off-line detection equipment and test method based on CAN bus body controller product Pending CN110597225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910865643.5A CN110597225A (en) 2019-09-12 2019-09-12 A kind of off-line detection equipment and test method based on CAN bus body controller product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910865643.5A CN110597225A (en) 2019-09-12 2019-09-12 A kind of off-line detection equipment and test method based on CAN bus body controller product

Publications (1)

Publication Number Publication Date
CN110597225A true CN110597225A (en) 2019-12-20

Family

ID=68859243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910865643.5A Pending CN110597225A (en) 2019-09-12 2019-09-12 A kind of off-line detection equipment and test method based on CAN bus body controller product

Country Status (1)

Country Link
CN (1) CN110597225A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947354A (en) * 2020-07-22 2021-06-11 青岛胶州海尔智控电子有限公司 Universal test system and test method
CN113295959A (en) * 2021-06-08 2021-08-24 江苏省精创电气股份有限公司 Automatic off-line detection system and method for air conditioner controller
CN113556335A (en) * 2021-07-19 2021-10-26 中国第一汽车股份有限公司 Vehicle-mounted bus safety testing method and system
CN113721589A (en) * 2021-08-30 2021-11-30 上汽通用五菱汽车股份有限公司 BCM automatic test system and method
CN113741386A (en) * 2021-07-29 2021-12-03 东风电驱动系统有限公司 Automatic program writing and function detection device and method for circuit board of vehicle control unit
CN113778765A (en) * 2021-08-05 2021-12-10 深圳市研控自动化科技有限公司 Product testing method, device, system and computer program product
CN113848864A (en) * 2021-10-22 2021-12-28 延锋伟世通汽车电子有限公司 Automatic test equipment of vehicle-mounted domain controller module
CN113848860A (en) * 2021-09-30 2021-12-28 无锡宽慧科技有限公司 Automatic test system for overhead vehicle controller
CN113848865A (en) * 2021-10-29 2021-12-28 上海沪工汽车电器有限公司 BCM analog quantity test system
CN114371681A (en) * 2020-10-15 2022-04-19 陕西万方汽车零部件有限公司 A test system and test method for BCM body controller
CN114489006A (en) * 2022-01-12 2022-05-13 中国重汽集团济南动力有限公司 TCU offline detection system for new energy commercial vehicle
US11374846B1 (en) 2021-02-17 2022-06-28 Aptiv Technologies Limited Lin master testing device
CN114859863A (en) * 2022-04-29 2022-08-05 东风电驱动系统有限公司 A device and system for testing body controller

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788621A (en) * 2010-03-19 2010-07-28 北京经纬恒润科技有限公司 Off-line detecting equipment for automobile electrical appliance system of automobile production line
CN102200777A (en) * 2011-03-25 2011-09-28 上海汽车集团股份有限公司 Performance monitoring method for new energy vehicle controller verification test
CN202120119U (en) * 2011-06-21 2012-01-18 上海中科深江电动车辆有限公司 Automatic fault detector for vehicle control unit of electric vehicle
US9075087B2 (en) * 2011-06-01 2015-07-07 Kabushiki Kaisha Toshiba Voltage detection circuit, ECU, automobile with ECU
CN108008716A (en) * 2017-10-24 2018-05-08 浙江飞碟汽车制造有限公司 Portable electric automobile entire car controller detection device and its detection method
CN208848086U (en) * 2018-09-20 2019-05-10 中汽动力(沈阳)有限公司 The test device of entire car controller
CN109799422A (en) * 2018-12-06 2019-05-24 力神动力电池系统有限公司 A kind of battery core positive-negative polarity detection device of cylindrical battery mould group

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788621A (en) * 2010-03-19 2010-07-28 北京经纬恒润科技有限公司 Off-line detecting equipment for automobile electrical appliance system of automobile production line
CN102200777A (en) * 2011-03-25 2011-09-28 上海汽车集团股份有限公司 Performance monitoring method for new energy vehicle controller verification test
US9075087B2 (en) * 2011-06-01 2015-07-07 Kabushiki Kaisha Toshiba Voltage detection circuit, ECU, automobile with ECU
CN202120119U (en) * 2011-06-21 2012-01-18 上海中科深江电动车辆有限公司 Automatic fault detector for vehicle control unit of electric vehicle
CN108008716A (en) * 2017-10-24 2018-05-08 浙江飞碟汽车制造有限公司 Portable electric automobile entire car controller detection device and its detection method
CN208848086U (en) * 2018-09-20 2019-05-10 中汽动力(沈阳)有限公司 The test device of entire car controller
CN109799422A (en) * 2018-12-06 2019-05-24 力神动力电池系统有限公司 A kind of battery core positive-negative polarity detection device of cylindrical battery mould group

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947354B (en) * 2020-07-22 2022-10-18 青岛胶州海尔智控电子有限公司 Universal test system and test method
CN112947354A (en) * 2020-07-22 2021-06-11 青岛胶州海尔智控电子有限公司 Universal test system and test method
CN114371681A (en) * 2020-10-15 2022-04-19 陕西万方汽车零部件有限公司 A test system and test method for BCM body controller
US11374846B1 (en) 2021-02-17 2022-06-28 Aptiv Technologies Limited Lin master testing device
CN114942866A (en) * 2021-02-17 2022-08-26 Aptiv技术有限公司 LIN main test set
EP4047485A1 (en) * 2021-02-17 2022-08-24 Aptiv Technologies Limited Lin master testing device
CN114942866B (en) * 2021-02-17 2023-05-16 Aptiv技术有限公司 LIN main testing device
CN113295959A (en) * 2021-06-08 2021-08-24 江苏省精创电气股份有限公司 Automatic off-line detection system and method for air conditioner controller
CN113556335A (en) * 2021-07-19 2021-10-26 中国第一汽车股份有限公司 Vehicle-mounted bus safety testing method and system
CN113741386A (en) * 2021-07-29 2021-12-03 东风电驱动系统有限公司 Automatic program writing and function detection device and method for circuit board of vehicle control unit
CN113778765A (en) * 2021-08-05 2021-12-10 深圳市研控自动化科技有限公司 Product testing method, device, system and computer program product
CN113721589A (en) * 2021-08-30 2021-11-30 上汽通用五菱汽车股份有限公司 BCM automatic test system and method
CN113848860A (en) * 2021-09-30 2021-12-28 无锡宽慧科技有限公司 Automatic test system for overhead vehicle controller
CN113848864A (en) * 2021-10-22 2021-12-28 延锋伟世通汽车电子有限公司 Automatic test equipment of vehicle-mounted domain controller module
CN113848865A (en) * 2021-10-29 2021-12-28 上海沪工汽车电器有限公司 BCM analog quantity test system
CN114489006A (en) * 2022-01-12 2022-05-13 中国重汽集团济南动力有限公司 TCU offline detection system for new energy commercial vehicle
CN114489006B (en) * 2022-01-12 2024-03-15 中国重汽集团济南动力有限公司 TCU off-line detection system for new energy commercial vehicle
CN114859863A (en) * 2022-04-29 2022-08-05 东风电驱动系统有限公司 A device and system for testing body controller

Similar Documents

Publication Publication Date Title
CN110597225A (en) A kind of off-line detection equipment and test method based on CAN bus body controller product
CN101034124B (en) Variable frequency air conditioner power module and detection method of driving module thereof
CN204595598U (en) Based on the vehicle body electric-control system test platform of hardware in loop
CN104076814A (en) Automobile ECU measurement system based on hardware-in-loop simulation
CN108762229B (en) Detection and debugging method for accelerator control system of automatic driving automobile
CN102565563B (en) For robotization integrated test system and the method for automotive electronics electric system
CN106444712A (en) CAN/LIN network interference automation test system
CN205720461U (en) Program-controlled electrical fault injection system
CN105259894B (en) The detection method of the detection test system of motor vehicle diagnostic equipment
CN210041853U (en) Automatic test system for automobile CAN/LIN bus
CN107562039A (en) Automotive window automated test device
CN210895122U (en) Control panel test fixture
CN205176650U (en) Automatic diagnostic test system for automobile
CN211603501U (en) Input/output signal fault simulation device of sensor or actuator
CN104331068A (en) Testing device based on electronic control unit
CN202306322U (en) State information display and detection device for automobile air conditioning unit
CN101763114B (en) Device for testing electric interfaces of vehicles
CN203232116U (en) Self-circulation testing device for electromagnetic compatibility test of automobile module
CN207424565U (en) Car OBD interface switching at runtime equipment
CN203397208U (en) Automatic detector for electric control unit (ECU) module of retired automobile body
CN207318605U (en) Automobile bus radiated immunity test system
CN201589707U (en) Automatic test platform for electronic aging of automobile
CN207541496U (en) A kind of automated diagnostic tester device based on vehicle body domain controller
CN112306764A (en) Multi-station test system and method
CN110333415A (en) Engine electronic static detection equipment and its electric detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220