CN106708010B - A test device and test system for an electric vehicle thermal management system - Google Patents
- ️Tue Oct 22 2019
技术领域technical field
本发明涉及汽车技术领域,更具体地,涉及一种电动汽车热管理系统的测试装置和测试系统。The invention relates to the technical field of automobiles, in particular to a test device and a test system for a thermal management system of an electric vehicle.
背景技术Background technique
能源短缺、石油危机和环境污染愈演愈烈,给人们的生活带来巨大影响,直接关系到国家经济和社会的可持续发展。世界各国都在积极开发新能源技术。电动汽车作为一种降低石油消耗、低污染、低噪声的新能源汽车,被认为是解决能源危机和环境恶化的重要途径。混合动力汽车同时兼顾纯电动汽车和传统内燃机汽车的优势,在满足汽车动力性要求和续驶里程要求的前提下,有效地提高了燃油经济性,降低了排放,被认为是当前节能和减排的有效路径之一。Energy shortages, oil crises and environmental pollution are intensifying, which have a huge impact on people's lives and are directly related to the sustainable development of the country's economy and society. All countries in the world are actively developing new energy technologies. As a new energy vehicle with reduced oil consumption, low pollution, and low noise, electric vehicles are considered to be an important way to solve the energy crisis and environmental degradation. Hybrid vehicles take into account the advantages of pure electric vehicles and traditional internal combustion engine vehicles at the same time. On the premise of meeting the requirements of vehicle power and mileage, it effectively improves fuel economy and reduces emissions. It is considered to be the current energy-saving and emission reduction one of the valid paths.
在电动汽车所使用的热管理系统中,热管理系统控制器根据温度传感器信号(包括环境温度,动力电池温度,驱动电机温度等)控制整车工作在不同的热管理工作模式下。在不同热管理工作模式下,工作的热管理系统执行件也不同。In the thermal management system used in electric vehicles, the thermal management system controller controls the vehicle to work in different thermal management modes according to the temperature sensor signal (including ambient temperature, power battery temperature, drive motor temperature, etc.). In different thermal management working modes, the working components of the thermal management system are also different.
为了验证所有热管理系统执行件在装车完成后都能正常工作,目前的方法主要包括:In order to verify that all thermal management system executives can work normally after loading, the current methods mainly include:
(1)、在装车前,各热管理系统执行件进行单独测试验证。(1) Before loading, the executive parts of each thermal management system shall be tested and verified individually.
(2)、在装车后,通过更改热管理控制器(也可以是整车控制器(Vehicle ControlUnit,VCU),等等)相关温度阈值,使得整车在不改变当前状态的情况下运行不同的热管理工作模式,以达到验证各热管理系统执行件是否能够正常工作的目的。(2) After loading the vehicle, by changing the relevant temperature threshold of the thermal management controller (or the Vehicle Control Unit (VCU), etc.), the vehicle can run differently without changing the current state. The working mode of thermal management in order to achieve the purpose of verifying whether the execution parts of each thermal management system can work normally.
第一种方法在装车前进行检验,无法保证热管理系统执行件在装车过程中不会损坏,而且可能因其控制线束错接而导致在装车完成后某些热管理系统执行件无法正常工作。第二种方法的缺点是需要反复修改控制器程序以使整车运行在不同的热管理模式下,才能检验所有热管理系统执行件是否都能正常运行,而且临时修改的测试程序并没经过严格的测试,无法保证修改后程序的正确性,从而无法保证对热管理系统执行件检测的正确性。The first method is to inspect before loading, which cannot guarantee that the thermal management system executive parts will not be damaged during the loading process, and may cause some thermal management system executive parts to fail after loading is completed due to the misconnection of the control harness. normal work. The disadvantage of the second method is that it is necessary to repeatedly modify the controller program so that the whole vehicle operates in different thermal management modes, in order to verify whether all the thermal management system executive parts can operate normally, and the temporarily modified test program has not been strictly tested. The correctness of the modified program cannot be guaranteed, so the correctness of the detection of the thermal management system executive parts cannot be guaranteed.
总之,在现有技术中,要么无法在装车后进行校验,要么需要反复修改控制器程序,都具有方便性不高的缺点。In short, in the prior art, either it is impossible to perform calibration after loading, or the controller program needs to be modified repeatedly, which has the disadvantage of low convenience.
发明内容Contents of the invention
本发明的目的是提出一种电动汽车热管理系统的测试装置和测试系统,从而提高测试的方便性。The purpose of the present invention is to propose a test device and a test system for a thermal management system of an electric vehicle, thereby improving the convenience of testing.
一种电动汽车热管理系统的测试装置,包括按键阵列、控制模块、控制器局域网(Control Area Network,CAN)通信模块和发光二极管阵列,其中:A test device for an electric vehicle thermal management system, comprising a key array, a control module, a controller area network (Control Area Network, CAN) communication module and a light emitting diode array, wherein:
按键阵列,用于接收用户触发的测试指令;Key array, used to receive user-triggered test instructions;
控制模块,用于将测试指令转换为相对应的热管理系统执行件操作命令;A control module, configured to convert the test instruction into a corresponding operation instruction of the thermal management system executive part;
CAN通信模块,与电动汽车的车载自诊断系统(On Board Diagnostics,OBD)接口连接,用于将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一CAN报文发送到电动汽车控制器,以由工作在测试模式下的电动汽车控制器从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;并用于经由OBD接口从电动汽车控制器接收由热管理系统执行件提供的反馈结果;The CAN communication module is connected with the on-board self-diagnostic system (On Board Diagnostics, OBD) interface of the electric vehicle, and is used for encapsulating the operation command of the executive part of the thermal management system into a first CAN message, and transmitting the first CAN message via the OBD interface Send it to the electric vehicle controller, so that the electric vehicle controller working in the test mode can parse out the operation command of the thermal management system execution part from the first CAN message and send the operation command of the thermal management system execution part to the thermal management system for execution components; and for receiving feedback results provided by the thermal management system executive components from the electric vehicle controller via the OBD interface;
发光二极管阵列,用于展示反馈结果。LED array for displaying feedback results.
在一个实施方式中,控制模块为微控制单元。In one embodiment, the control module is a microcontroller unit.
在一个实施方式中,还包括:In one embodiment, also include:
电源模块,用于为按键阵列、控制模块、控制器局域网通信模块和发光二极管阵列供电。The power supply module is used for supplying power to the key array, the control module, the controller area network communication module and the LED array.
在一个实施方式中,按键阵列,还用于接收用户触发的测试模式设置指令;In one embodiment, the key array is also used to receive a user-triggered test mode setting instruction;
控制模块,还用于将测试模式设置指令发送到控制器局域网通信模块;The control module is also used to send the test mode setting instruction to the controller LAN communication module;
CAN通信模块,还用于将测试模式设置指令封装为第二CAN报文,并经由OBD接口将第二CAN报文发送到电动汽车控制器,以由电动汽车控制器从第二CAN报文中解析出测试模式设置指令并基于测试模式设置指令进入测试模式。The CAN communication module is also used to encapsulate the test mode setting instruction into a second CAN message, and send the second CAN message to the electric vehicle controller via the OBD interface, so that the electric vehicle controller can obtain the second CAN message from the second CAN message. The test mode setting instruction is parsed out and the test mode is entered based on the test mode setting instruction.
在一个实施方式中,按键阵列,还用于接收用户触发的工作模式设置指令;In one embodiment, the key array is also used to receive a user-triggered working mode setting instruction;
控制模块,还用于将工作模式设置指令发送到控制器局域网通信模块;The control module is also used to send the working mode setting instruction to the controller LAN communication module;
控制器局域网通信模块,还用于将工作模式设置指令封装为第三CAN报文,并经由OBD接口将第三CAN报文发送到电动汽车控制器,以由电动汽车控制器从第三CAN报文中解析出工作模式设置指令并基于工作模式设置指令从测试模式进入工作模式。The controller area network communication module is also used to encapsulate the working mode setting instruction into a third CAN message, and send the third CAN message to the electric vehicle controller via the OBD interface, so that the electric vehicle controller can report from the third CAN message The paper analyzes the working mode setting instruction and enters the working mode from the test mode based on the working mode setting instruction.
一种电动汽车热管理系统的测试系统,包括:A test system for an electric vehicle thermal management system, comprising:
测试装置,与电动汽车的OBD接口连接,用于接收用户触发的测试指令,将测试指令转换为相对应的热管理系统执行件操作命令,将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一CAN报文发送到电动汽车控制器;The test device is connected with the OBD interface of the electric vehicle, and is used to receive the test command triggered by the user, convert the test command into the corresponding operation command of the thermal management system executive part, and encapsulate the operation command of the thermal management system executive part into the first CAN report text, and send the first CAN message to the electric vehicle controller via the OBD interface;
工作在测试模式下的电动汽车控制器,用于从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;The electric vehicle controller working in the test mode is used to parse out the operation command of the thermal management system execution part from the first CAN message and send the operation command of the thermal management system execution part to the thermal management system execution part;
热管理系统执行件,用于执行热管理系统执行件操作命令,并向电动汽车控制器发送反馈结果;The thermal management system execution part is used to execute the operation command of the thermal management system execution part and send the feedback result to the electric vehicle controller;
其中电动汽车控制器,还用于接收由热管理系统执行件提供的反馈结果,将反馈结果发送到测试装置;测试装置还用于展示反馈结果。Among them, the electric vehicle controller is also used to receive the feedback result provided by the executive part of the thermal management system, and send the feedback result to the test device; the test device is also used to display the feedback result.
在一个实施方式中,热管理系统执行件包括下列中的至少一个:In one embodiment, the thermal management system implement includes at least one of the following:
水泵;阀门;风扇;空调;冷凝器。Water pumps; valves; fans; air conditioners; condensers.
在一个实施方式中,In one embodiment,
测试装置,还用于接收用户触发的测试模式设置指令,将测试模式设置指令封装为第二CAN报文,并经由OBD接口将第二CAN报文发送到电动汽车控制器;The test device is also used to receive a test mode setting instruction triggered by a user, encapsulate the test mode setting instruction into a second CAN message, and send the second CAN message to the electric vehicle controller through the OBD interface;
电动汽车控制器,还用于从第二CAN报文中解析出测试模式设置指令,并基于测试模式设置指令进入测试模式。The electric vehicle controller is further configured to parse out the test mode setting instruction from the second CAN message, and enter the test mode based on the test mode setting instruction.
在一个实施方式中,测试装置,还用于接收用户触发的工作模式设置指令,将工作模式设置指令封装为第三CAN报文,并经由OBD接口将第三CAN报文发送到电动汽车控制器;In one embodiment, the test device is also used to receive the working mode setting command triggered by the user, encapsulate the working mode setting command into a third CAN message, and send the third CAN message to the electric vehicle controller via the OBD interface ;
电动汽车控制器,还用于从第三CAN报文中解析出工作模式设置指令并基于工作模式设置指令从测试模式进入工作模式。The electric vehicle controller is further configured to parse out the working mode setting instruction from the third CAN message and enter the working mode from the test mode based on the working mode setting instruction.
在一个实施方式中,测试装置包括按键阵列、控制模块、CAN通信模块和发光二极管阵列,其中:In one embodiment, the test device includes a button array, a control module, a CAN communication module and a light emitting diode array, wherein:
按键阵列,用于接收用户触发的测试指令;Key array, used to receive user-triggered test instructions;
控制模块,用于将测试指令转换为相对应的热管理系统执行件操作命令;A control module, configured to convert the test instruction into a corresponding operation instruction of the thermal management system executive part;
CAN通信模块,与电动汽车的OBD接口连接,用于将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一CAN报文发送到电动汽车控制器,以由工作在测试模式下的电动汽车控制器从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;并用于经由OBD接口从电动汽车控制器接收由热管理系统执行件提供的反馈结果;The CAN communication module is connected with the OBD interface of the electric vehicle, and is used to encapsulate the operation command of the thermal management system executive part into the first CAN message, and send the first CAN message to the electric vehicle controller via the OBD interface, so that the working The electric vehicle controller in the test mode parses out the thermal management system executive part operation command from the first CAN message and sends the thermal management system executive part operation command to the thermal management system executive part; The controller receives feedback results provided by the thermal management system executive;
发光二极管阵列,用于展示反馈结果。LED array for displaying feedback results.
从上述技术方案可以看出,在本发明实施方式的测试装置中,按键阵列接收用户触发的测试指令;控制模块将测试指令转换为相对应的热管理系统执行件操作命令;CAN通信模块将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一CAN报文发送到电动汽车控制器,以由工作在测试模式下的电动汽车控制器从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;CAN通信模块并经由OBD接口从电动汽车控制器接收由热管理系统执行件提供的反馈结果;发光二极管阵列展示反馈结果。因此,本发明实施方式既可以在装车后进行测试,而且不需要反复修改控制器程序,因此可以提高测试的方便性。It can be seen from the above technical solutions that in the test device in the embodiment of the present invention, the button array receives the test command triggered by the user; the control module converts the test command into a corresponding operation command of the thermal management system executive; The management system execution part operation command is encapsulated into the first CAN message, and the first CAN message is sent to the electric vehicle controller via the OBD interface, so that the electric vehicle controller working in the test mode can read the first CAN message from the first CAN message Parsing out the operation command of the executive part of the thermal management system and sending the operation command of the executive part of the thermal management system to the executive part of the thermal management system; the CAN communication module receives the feedback result provided by the executive part of the thermal management system from the electric vehicle controller through the OBD interface; An LED array displays the feedback results. Therefore, the embodiment of the present invention can be tested after loading, and does not need to modify the controller program repeatedly, so the convenience of the test can be improved.
而且,本发明实施方式的测试装置通过OBD接口连接到电动汽车控制器,非常便于拔插,尤其适用于测试场景。Moreover, the test device in the embodiment of the present invention is connected to the electric vehicle controller through the OBD interface, which is very convenient for plugging and unplugging, and is especially suitable for testing scenarios.
附图说明Description of drawings
以下附图仅对本发明做示意性说明和解释,并不限定本发明的范围。The following drawings only illustrate and explain the present invention schematically, and do not limit the scope of the present invention.
图1为根据本发明电动汽车热管理系统的测试装置的结构图。FIG. 1 is a structural diagram of a testing device for an electric vehicle thermal management system according to the present invention.
图2为根据本发明电动汽车热管理系统的测试系统的结构图。Fig. 2 is a structural diagram of a testing system for an electric vehicle thermal management system according to the present invention.
图3为根据本发明测试装置向执行件发送指令的示意图。Fig. 3 is a schematic diagram of the test device sending instructions to the execution part according to the present invention.
图4为根据本发明执行件向测试装置反馈工作状态的示意图。Fig. 4 is a schematic diagram of the actuator feeding back the working state to the testing device according to the present invention.
图5为根据本发明工作模式下的热管理系统的工作状态示意图。Fig. 5 is a schematic view of the working state of the thermal management system in the working mode according to the present invention.
具体实施方式Detailed ways
为了对发明的技术特征、目的和效果有更加清楚的理解,现对照附图说明本发明的具体实施方式,在各图中相同的标号表示相同的部分。In order to have a clearer understanding of the technical features, purposes and effects of the invention, the specific implementation manners of the present invention will now be described with reference to the accompanying drawings, in which the same reference numerals represent the same parts.
为了描述上的简洁和直观,下文通过描述若干代表性的实施方式来对本发明的方案进行阐述。实施方式中大量的细节仅用于帮助理解本发明的方案。但是很明显,本发明的技术方案实现时可以不局限于这些细节。为了避免不必要地模糊了本发明的方案,一些实施方式没有进行细致地描述,而是仅给出了框架。下文中,“包括”是指“包括但不限于”,“根据……”是指“至少根据……,但不限于仅根据……”。由于汉语的语言习惯,下文中没有特别指出一个成分的数量时,意味着该成分可以是一个也可以是多个,或可理解为至少一个。For the sake of brevity and intuition in description, the solution of the present invention is described below by describing several representative implementation manners. Numerous details in the embodiments are only used to help the understanding of the solutions of the present invention. But obviously, the technical solutions of the present invention may not be limited to these details when implemented. In order to avoid unnecessarily obscuring the solution of the present invention, some embodiments are not described in detail, but only a framework is given. Hereinafter, "including" means "including but not limited to", and "according to..." means "at least according to, but not limited to only based on...". Due to the language habits of Chinese, when the quantity of a component is not specifically indicated below, it means that the component can be one or more, or can be understood as at least one.
有鉴于上述现有技术所存在的缺陷,本发明实施方式提供一种可以快速检验热管理系统执行件的测试装置。本发明实施方式主要包括以下改进点:In view of the above-mentioned defects in the prior art, the embodiment of the present invention provides a testing device that can quickly test the executive parts of the thermal management system. The embodiments of the present invention mainly include the following improvements:
(1)、测试装置无需插拔热管理系统执行件的插接件,无需更改热管理系统执行件的控制线束,无需修改热管理控制器(也可以是VCU等)程序,直接通过OBD接口与热管理控制器(也可以是VCU等)进行通信,并控制热管理系统执行件工作;(1) The test device does not need to plug and unplug the connector of the thermal management system executive part, does not need to change the control harness of the thermal management system executive part, and does not need to modify the thermal management controller (or VCU, etc.) program, directly through the OBD interface and The thermal management controller (also can be VCU, etc.) communicates and controls the execution of the thermal management system;
(2)、测试装置可以根据接收到的执行件反馈信息显示该执行件是否工作,便于工程师快速观测执行件的检测结果。(2) The test device can display whether the actuator works according to the received feedback information of the actuator, which is convenient for engineers to quickly observe the detection results of the actuator.
图1为根据本发明电动汽车热管理系统的测试装置的结构图。FIG. 1 is a structural diagram of a testing device for an electric vehicle thermal management system according to the present invention.
如图1所示,测试装置100包括:按键阵列101、控制模块102、CAN通信模块103和发光二极管阵列104。As shown in FIG. 1 , the testing device 100 includes: a button array 101 , a control module 102 , a CAN communication module 103 and an LED array 104 .
其中:in:
按键阵列101,用于接收用户触发的测试指令;The button array 101 is used to receive the test instruction triggered by the user;
控制模块102,用于将测试指令转换为相对应的热管理系统执行件操作命令;A control module 102, configured to convert the test instruction into a corresponding operation instruction of the thermal management system actuator;
CAN通信模块103,与电动汽车的OBD接口连接,用于将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一CAN报文发送到电动汽车控制器,以由工作在测试模式下的电动汽车控制器从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;并用于经由OBD接口从电动汽车控制器接收由热管理系统执行件提供的反馈结果;The CAN communication module 103 is connected to the OBD interface of the electric vehicle, and is used to encapsulate the operation command of the thermal management system executive part into a first CAN message, and send the first CAN message to the electric vehicle controller via the OBD interface, so that the The electric vehicle controller working in the test mode parses out the operation command of the thermal management system execution part from the first CAN message and sends the operation command of the thermal management system execution part to the thermal management system execution part; The vehicle controller receives the feedback results provided by the thermal management system executive;
发光二极管阵列104,用于展示反馈结果。LED array 104 for displaying feedback results.
当电动汽车控制器工作在测试模式时,电动汽车控制器只对测试装置100提供的执行件操作命令执行响应,而忽略热管理系统的传感器提供的传感信息。具体地,在测试模式中,电动汽车控制器将测试装置100提供的热管理系统执行件操作命令发送到热管理系统执行件。热管理系统执行件执行该热管理系统执行件操作命令。而且,热管理系统执行件向电动汽车控制器发送执行该热管理系统执行件操作命令之后的反馈结果,电动汽车控制器经由OBD接口将该反馈结果发送到测试装置100的CAN通信模块103。发光二极管阵列104展示反馈结果,工程师通过观察发光二极管阵列104可以快速观测执行件的检测结果。When the electric vehicle controller is working in the test mode, the electric vehicle controller only executes the response to the actuator operation command provided by the test device 100 , while ignoring the sensing information provided by the sensor of the thermal management system. Specifically, in the test mode, the electric vehicle controller sends the thermal management system execution component operation command provided by the test device 100 to the thermal management system execution component. The thermal management system executive executes the thermal management system executive operation command. Moreover, the thermal management system execution part sends the feedback result after executing the operation command of the thermal management system execution part to the electric vehicle controller, and the electric vehicle controller sends the feedback result to the CAN communication module 103 of the test device 100 via the OBD interface. The light emitting diode array 104 displays the feedback result, and the engineer can quickly observe the detection result of the actuator by observing the light emitting diode array 104 .
在一个实施方式中,热管理系统执行件包括下列中的至少一个:水泵;阀门;风扇;空调;冷凝器。In one embodiment, the thermal management system actuator includes at least one of the following: a water pump; a valve; a fan; an air conditioner; a condenser.
以上示范性描述了热管理系统执行件的具体实例,本领域技术人员可以意识到,这种描述仅是示范性的,并不用于限定本发明实施方式的保护范围。The above exemplarily describes specific examples of the thermal management system executive components, and those skilled in the art can appreciate that this description is only exemplary and is not intended to limit the protection scope of the embodiments of the present invention.
在一个实施方式中,控制模块102可以具体实施为微控制单元。In one embodiment, the control module 102 may be embodied as a microcontroller unit.
在一个实施方式中,控制模块102还可以包括电源模块105。电源模块105用于为按键阵列101、控制模块102、CAN通信模块103和发光二极管阵列104供电。In one embodiment, the control module 102 may further include a power module 105 . The power supply module 105 is used to supply power to the key array 101 , the control module 102 , the CAN communication module 103 and the LED array 104 .
具体地,测试装置100的板上资源可以包含微控制单元芯片、电源芯片、CAN通信芯片、发光二极管指示灯阵列和按键阵列。微控制单元芯片为该测试装置的控制芯片,用于控制板上其他资源工作;电源芯片用于为该测试装置供电;CAN通信芯片为进行CAN通信的必备芯片;按键阵列用于控制热管理系统执行件工作;发光二极管阵列用于显示微控制单元芯片接收到的相关信号,便于工程师观测热管理系统执行件检测的结果。测试装置100连接汽车上的OBD接口,OBD接口与热管理控制器(或VCU等)的CAN接口相连,将测试装置的CAN通信接口与OBD接口相连,实现与热管理控制器(或VCU等)CAN通信的目的。Specifically, the on-board resources of the test device 100 may include a micro-control unit chip, a power chip, a CAN communication chip, an array of LED indicator lights, and an array of keys. The micro control unit chip is the control chip of the test device, which is used to control other resources on the board; the power supply chip is used to supply power to the test device; the CAN communication chip is a necessary chip for CAN communication; the key array is used to control thermal management The system executive works; the light-emitting diode array is used to display the relevant signals received by the micro-control unit chip, which is convenient for engineers to observe the detection results of the thermal management system executive. The test device 100 is connected to the OBD interface on the car, the OBD interface is connected to the CAN interface of the thermal management controller (or VCU, etc.), and the CAN communication interface of the test device is connected to the OBD interface to realize the connection with the thermal management controller (or VCU, etc.) Purpose of CAN communication.
在一个实施方式中,按键阵列101,还用于接收用户触发的测试模式设置指令;In one embodiment, the button array 101 is also used to receive a user-triggered test mode setting instruction;
控制模块102,还用于将测试模式设置指令发送到CAN通信模块103;The control module 102 is also used to send the test mode setting instruction to the CAN communication module 103;
CAN通信模块103,还用于将测试模式设置指令封装为第二CAN报文,并经由OBD接口将第二CAN报文发送到电动汽车控制器,以由电动汽车控制器从第二CAN报文中解析出测试模式设置指令并基于测试模式设置指令进入测试模式。The CAN communication module 103 is also used to encapsulate the test mode setting instruction into a second CAN message, and send the second CAN message to the electric vehicle controller via the OBD interface, so that the electric vehicle controller can read the second CAN message from the second CAN message. The test mode setting instruction is parsed from the test mode and the test mode is entered based on the test mode setting instruction.
在这里,当用户期望开始对执行件执行测试时,首先通过按键阵列101输入预定的测试模式设置指令。当控制模块102发现从按键阵列101传递来的信息为预定的测试模式设置指令时,将该测试模式设置指令发送到CAN通信模块103。CAN通信模块103将测试模式设置指令封装为第二CAN报文,并经由OBD接口将第二CAN报文发送到电动汽车控制器。电动汽车控制器接收到第二CAN报文后,从第二CAN报文中解析出测试模式设置指令,并基于测试模式设置指令进入测试模式。Here, when the user desires to start to execute the test on the executive component, he first inputs a predetermined test mode setting instruction through the key array 101 . When the control module 102 finds that the information transmitted from the key array 101 is a predetermined test mode setting command, it sends the test mode setting command to the CAN communication module 103 . The CAN communication module 103 encapsulates the test mode setting instruction into a second CAN message, and sends the second CAN message to the electric vehicle controller via the OBD interface. After receiving the second CAN message, the electric vehicle controller parses out the test mode setting instruction from the second CAN message, and enters the test mode based on the test mode setting instruction.
当电动汽车控制器进入测试模式之后,电动汽车控制器只对测试装置100发送的执行件操作命令执行响应,而忽略热管理系统的传感器提供的传感信息。然后,按键阵列101可以接收用户触发的测试指令;控制模块102将测试指令转换为相对应的热管理系统执行件操作命令;CAN通信模块103将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一CAN报文发送到电动汽车控制器,以由工作在测试模式下的电动汽车控制器从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;并用于经由OBD接口从电动汽车控制器接收由热管理系统执行件提供的反馈结果;发光二极管阵列104展示反馈结果。After the electric vehicle controller enters the test mode, the electric vehicle controller only responds to the actuator operation command sent by the testing device 100 , while ignoring the sensing information provided by the sensor of the thermal management system. Then, the key array 101 can receive the test instruction triggered by the user; the control module 102 converts the test instruction into a corresponding thermal management system executive component operation command; the CAN communication module 103 packages the thermal management system executive component operation command into a first CAN report text, and send the first CAN message to the electric vehicle controller via the OBD interface, so that the electric vehicle controller working in the test mode can parse out the operation command of the thermal management system actuator from the first CAN message and send the thermal The management system executive part sends operation commands to the thermal management system executive part; and is used to receive the feedback result provided by the thermal management system executive part from the electric vehicle controller via the OBD interface; the LED array 104 displays the feedback result.
当执行完针对执行件的测试工作之后,需要将电动汽车控制器从测试模式切换回工作模式。当电动汽车控制器工作在工作模式时,电动汽车控制器对热管理系统的传感器提供的传感信息执行响应,而忽略测试装置100提供的执行件操作命令(如果有的话)。此时,可以将测试装置100从OBD接口上拔下来。After the execution of the test work for the actuator, it is necessary to switch the electric vehicle controller from the test mode back to the work mode. When the electric vehicle controller works in the working mode, the electric vehicle controller responds to the sensing information provided by the sensors of the thermal management system, and ignores the actuator operation command (if any) provided by the testing device 100 . At this point, the test device 100 can be unplugged from the OBD interface.
在一个实施方式中,按键阵列101还可以接收用户触发的工作模式设置指令;控制模块102将工作模式设置指令发送到CAN通信模块103。CAN通信模块将工作模式设置指令封装为第三CAN报文,并经由OBD接口将第三CAN报文发送到电动汽车控制器,以由电动汽车控制器从第三CAN报文中解析出工作模式设置指令并基于工作模式设置指令从测试模式进入工作模式。In one embodiment, the key array 101 can also receive a working mode setting command triggered by a user; the control module 102 sends the working mode setting command to the CAN communication module 103 . The CAN communication module encapsulates the working mode setting instruction into a third CAN message, and sends the third CAN message to the electric vehicle controller via the OBD interface, so that the electric vehicle controller can analyze the working mode from the third CAN message A set instruction is set and the operating mode is entered from the test mode based on the operating mode setting instruction.
本发明实施方式还提出了一种电动汽车热管理系统的测试系统。The embodiment of the present invention also proposes a testing system for a thermal management system of an electric vehicle.
图2为根据本发明电动汽车热管理系统的测试系统的结构图。Fig. 2 is a structural diagram of a testing system for an electric vehicle thermal management system according to the present invention.
如图2所示,电动汽车热管理系统的测试系统,包括:As shown in Figure 2, the test system of the electric vehicle thermal management system includes:
测试装置,与电动汽车的OBD接口连接,用于接收用户触发的测试指令,将测试指令转换为相对应的热管理系统执行件操作命令,将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一控制器局域网报文发送到电动汽车控制器;The test device is connected with the OBD interface of the electric vehicle, and is used to receive the test command triggered by the user, convert the test command into the corresponding operation command of the thermal management system executive part, and encapsulate the operation command of the thermal management system executive part into the first CAN report text, and send the first controller LAN message to the electric vehicle controller via the OBD interface;
工作在测试模式下的电动汽车控制器(比如,热管理控制器或VCU),用于从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;The electric vehicle controller (for example, thermal management controller or VCU) working in the test mode is used to parse out the thermal management system execution part operation command from the first CAN message and send the thermal management system execution part operation command to Thermal management system executives;
热管理系统执行件,用于执行热管理系统执行件操作命令,并向电动汽车控制器发送反馈结果;其中电动汽车控制器,还用于接收由热管理系统执行件提供的反馈结果,将反馈结果发送到测试装置;测试装置还用于展示反馈结果。The executive part of the thermal management system is used to execute the operation command of the executive part of the thermal management system and send the feedback result to the electric vehicle controller; the electric vehicle controller is also used to receive the feedback result provided by the executive part of the thermal management system and send the feedback result The results are sent to the test device; the test device is also used to present the feedback results.
在一个实施方式中,测试装置,还用于接收用户触发的测试模式设置指令,将测试模式设置指令封装为第二CAN报文,并经由OBD接口将第二CAN报文发送到电动汽车控制器;In one embodiment, the test device is also used to receive a test mode setting instruction triggered by a user, encapsulate the test mode setting instruction into a second CAN message, and send the second CAN message to the electric vehicle controller via the OBD interface ;
电动汽车控制器,还用于从第二CAN报文中解析出测试模式设置指令,并基于测试模式设置指令进入测试模式。The electric vehicle controller is further configured to parse out the test mode setting instruction from the second CAN message, and enter the test mode based on the test mode setting instruction.
在一个实施方式中,测试装置,还用于接收用户触发的工作模式设置指令,将工作模式设置指令封装为第三CAN报文,并经由OBD接口将第三CAN报文发送到电动汽车控制器;In one embodiment, the test device is also used to receive the working mode setting command triggered by the user, encapsulate the working mode setting command into a third CAN message, and send the third CAN message to the electric vehicle controller via the OBD interface ;
电动汽车控制器,还用于从第三CAN报文中解析出工作模式设置指令并基于工作模式设置指令从测试模式进入工作模式。The electric vehicle controller is further configured to parse out the working mode setting instruction from the third CAN message and enter the working mode from the test mode based on the working mode setting instruction.
在一个实施方式中,测试装置包括按键阵列、控制模块、控制器局域网通信模块和发光二极管阵列,其中:按键阵列,用于接收用户触发的测试指令;控制模块,用于将测试指令转换为相对应的热管理系统执行件操作命令;控制器局域网通信模块,与电动汽车的OBD接口连接,用于将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一CAN报文发送到电动汽车控制器,以由工作在测试模式下的电动汽车控制器从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;并用于经由OBD接口从电动汽车控制器接收由热管理系统执行件提供的反馈结果;发光二极管阵列,用于展示反馈结果。In one embodiment, the test device includes a key array, a control module, a controller local area network communication module, and a light-emitting diode array, wherein: the key array is used to receive user-triggered test instructions; the control module is used to convert the test instructions into corresponding The corresponding thermal management system execution part operation command; the controller local area network communication module is connected with the OBD interface of the electric vehicle, and is used to encapsulate the thermal management system execution part operation command into the first CAN message, and transmit the first CAN message via the OBD interface. The message is sent to the electric vehicle controller, so that the electric vehicle controller working in the test mode can parse out the operation command of the thermal management system executive part from the first CAN message and send the operation command of the thermal management system executive part to the thermal management system. The system execution part; and for receiving the feedback result provided by the thermal management system execution part from the electric vehicle controller via the OBD interface; the light emitting diode array is used for displaying the feedback result.
图3为根据本发明测试装置向执行件发送指令的示意图。图4为根据本发明执行件向测试装置反馈工作状态的示意图。Fig. 3 is a schematic diagram of the test device sending instructions to the execution part according to the present invention. Fig. 4 is a schematic diagram of the actuator feeding back the working state to the testing device according to the present invention.
如图3所示(箭头表示信号走向),测试装置与电动汽车控制器进行CAN通信,双方软件握手成功后,电动汽车控制器进入测试模式。在测试模式中,电动汽车控制器忽略温度传感器等各种传感器的传感信号。测试装置通过按键发送不同的指令,电动汽车控制器接收测试装置发送的指令,控制相关热管理系统执行件工作。As shown in Figure 3 (the arrow indicates the direction of the signal), the test device and the electric vehicle controller perform CAN communication. After the software handshake of both parties succeeds, the electric vehicle controller enters the test mode. In test mode, the electric vehicle controller ignores the sensing signals of various sensors such as temperature sensors. The test device sends different commands through the buttons, and the electric vehicle controller receives the commands sent by the test device to control the work of the relevant thermal management system actuators.
如图4所示(线上箭头表示信号走向),热管理系统执行件将自身状态信号作为反馈结果反馈给电动汽车控制器。电动汽车控制器接收到反馈结果后发送给测试装置,测试装置将各执行件工作与否的状态通过板上发光二极管阵列显示出来。As shown in Figure 4 (the arrow on the line indicates the direction of the signal), the executive part of the thermal management system feeds back its own state signal to the electric vehicle controller as a feedback result. After the electric vehicle controller receives the feedback result, it sends it to the test device, and the test device displays the working status of each actuator through the LED array on the board.
图5为根据本发明工作模式下的热管理系统的工作状态示意图。Fig. 5 is a schematic view of the working state of the thermal management system in the working mode according to the present invention.
如图5所示,热管理系统执行件检测完毕后,测试装置通过板上按键发送退出测试模式指令,电动汽车控制器退出测试模式,回到正常的工作模式。在工作模式中,测试装置从OBD接口上被拔下来,而且电动汽车控制器基于传感器的传感信号控制热管理系统执行件。As shown in Figure 5, after the detection of the thermal management system executive parts is completed, the test device sends an exit test mode command through the buttons on the board, and the electric vehicle controller exits the test mode and returns to the normal working mode. In the working mode, the test device is unplugged from the OBD interface, and the electric vehicle controller controls the thermal management system actuator based on the sensing signal of the sensor.
综上所述,本发明实施方式的测试装置中,按键阵列接收用户触发的测试指令;控制模块将测试指令转换为相对应的热管理系统执行件操作命令;CAN通信模块将热管理系统执行件操作命令封装为第一CAN报文,并经由OBD接口将第一CAN报文发送到电动汽车控制器,以由工作在测试模式下的电动汽车控制器从第一CAN报文中解析出热管理系统执行件操作命令并将热管理系统执行件操作命令发送到热管理系统执行件;并用于经由OBD接口从电动汽车控制器接收由热管理系统执行件提供的反馈结果;发光二极管阵列,用于展示反馈结果。因此,本发明实施方式既可以在装车后进行测试,还不需要反复修改控制器程序,因此可以提高测试的方便性。To sum up, in the test device according to the embodiment of the present invention, the button array receives the test command triggered by the user; the control module converts the test command into the corresponding operation command of the thermal management system executive part; the CAN communication module converts the thermal management system executive part The operation command is encapsulated into the first CAN message, and the first CAN message is sent to the electric vehicle controller via the OBD interface, so that the electric vehicle controller working in the test mode can analyze the thermal management parameters from the first CAN message. The system implements the operation command and sends the thermal management system executive part operation command to the thermal management system executive part; and is used to receive the feedback result provided by the thermal management system executive part from the electric vehicle controller via the OBD interface; the light-emitting diode array is used for Show feedback results. Therefore, the embodiment of the present invention can be tested after being loaded into the vehicle without repeatedly modifying the controller program, so the convenience of the test can be improved.
而且,本发明实施方式的测试装置通过OBD接口连接到电动汽车控制器,非常便于拔插,尤其适用于测试场景。Moreover, the test device in the embodiment of the present invention is connected to the electric vehicle controller through the OBD interface, which is very convenient for plugging and unplugging, and is especially suitable for testing scenarios.
上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,而并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方案或变更,如特征的组合、分割或重复,均应包含在本发明的保护范围之内。The series of detailed descriptions listed above are only specific descriptions of the feasible implementation modes of the present invention, and are not intended to limit the protection scope of the present invention. Any equivalent implementation or Changes, such as combination, division or repetition of features, should be included in the protection scope of the present invention.