A method, apparatus and system for testing an air conditioner controller
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2026-08-14
AI Technical Summary
[0042]在本实施例中,通过上位机操作空调器所需信号,经过转化成空调控制器所需电信号后发给空调控制器,空调控制器接收到信号后,按自身逻辑运行后输出响应信号,再转化成信号输入仿真模型中,驱动仿真模型工作并输出运行结果返回空调控制器以进行后续闭环随动控制,将测试过程中的所有信号上传至上机位中,上机位实时监测系统运行过程中各个信号的状态,以确认整个系统是否按测试用例期望结果进行工作,通过使用本方法可实现空调控制器软件功能测试,提高测试效率,提前发现问题点,减少后续实车调试整改周期。
Smart Images

Figure CN115542874B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of hardware-in-the-loop testing systems, and more particularly to a testing method, apparatus, and system for an air conditioner controller. Background Technology
[0002] In the current development process of automotive air conditioning controllers, apart from software-level testing during development, physical functional testing of the air conditioning controller can generally only be carried out on actual vehicles. However, the actual vehicle functional testing of the air conditioning controller can only be carried out after the air conditioning system is installed in the actual vehicle. This involves the development and installation of structural systems such as HVAC assemblies, air conditioning pipes, and compressor parts. In the development of a new platform, structural components such as HVAC assemblies, air conditioning pipes, and compressor parts are closely related to the vehicle's styling and layout. The development and installation progress of structural components such as HVAC assemblies, air conditioning pipes, and compressor parts has a significant impact on the progress of air conditioning controller functional testing. Summary of the Invention
[0003] This invention provides a testing method, apparatus, and system for air conditioner controllers. By designing a testing method and system for air conditioner controllers, the software functions of the air conditioner controllers can be physically tested, thereby improving testing efficiency.
[0004] To address the aforementioned technical problems, embodiments of the present invention provide a method for testing an air conditioner controller, comprising:
[0005] Receives the test signal sent by the host computer and outputs the test signal as the first action signal according to the preset method, wherein the test signal is generated according to the user's operation on the host computer;
[0006] The first action signal is sent to the air conditioning controller, so that the air conditioning controller outputs the second action signal according to the preset internal logic. The simulation model is driven to run and generate the running results according to the second action signal. The running results are then returned to the air conditioning controller so that the air conditioning controller can perform closed-loop follow-up control.
[0007] All signals during the testing process are collected and sent to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic.
[0008] In this embodiment, the signals required for operating the air conditioner via the host computer are converted into electrical signals required by the air conditioner controller and then sent to the air conditioner controller. After receiving the signals, the air conditioner controller operates according to its own logic and outputs a response signal, which is then converted into a signal input into the simulation model. This drives the simulation model to work and outputs the running results back to the air conditioner controller for subsequent closed-loop follow-up control. All signals during the test process are uploaded to the host computer, which monitors the status of each signal in real time during system operation to confirm whether the entire system works according to the expected results of the test cases. By using this method, the software function test of the air conditioner controller can be realized, improving the testing efficiency of the air conditioner controller.
[0009] As a preferred solution, the test signal sent by the host computer is received, and the test signal is output as a first action signal according to preset logic, specifically:
[0010] The test signal is converted to obtain the first message value;
[0011] The first message value is converted and the first action signal is output.
[0012] As a preferred solution, the simulation model is driven to run based on the second action signal, and the running results are generated. The running results are then returned to the air conditioning controller so that the air conditioning controller can perform closed-loop follow-up control. Specifically:
[0013] The second action signal is converted and the second message value is output.
[0014] The second message value is converted to obtain the second working signal. The simulation model is driven to run according to the second working signal, and the corresponding running result is converted into a voltage signal and returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control.
[0015] As a preferred solution, the simulation model is driven to run based on the control signal, and the corresponding running results are converted into voltage signals and returned to the air conditioning controller, so that the air conditioning controller can perform closed-loop follow-up control. Specifically:
[0016] Based on the controller principle, electrical characteristics, the peripheral principle of the air conditioning load, and the working signals and feedback signals of each load, a simulation model was developed and built. The simulation model includes a virtual controller model, a temperature sensor model, and an air conditioning load model.
[0017] Based on the virtual controller model, instructions are sent to the air conditioner controller to cause the air conditioner controller to execute the instructions;
[0018] The temperature sensor model outputs the corresponding resistance value, and then the simulation hardware board converts the corresponding resistance value into the corresponding physical quantity and outputs it to the air conditioner controller.
[0019] The operation results are obtained by inputting conditions into the air conditioner controller to control the corresponding actions of the air conditioner load model. The air conditioner load model includes a blower model, a water valve motor model, a blower motor model, an internal and external circulation motor model, and an air conditioner compressor model.
[0020] The results are sent to the air conditioning controller so that the air conditioning controller can perform closed-loop follow-up control.
[0021] As a preferred option, the simulation equipment includes I / O cards, bus simulation cards, programmable power supplies, and real-time processors;
[0022] The I / O board sends and receives the air conditioning controller electrical signal, and converts the vehicle controller electrical signal into a first variable through the board.
[0023] The bus simulation board provides a physical interface between the communication bus of the air conditioner controller and the simulation model, converts the first variable into a differential pressure signal for the air conditioner controller to recognize, and converts the CAN differential pressure signal output by the air conditioner controller into a second variable.
[0024] The programmable power supply provides power for the electrical signal conversion of the I / O module;
[0025] The real-time processor coordinates and controls the various modules of the simulation device.
[0026] As a preferred solution, the host computer monitors all signals in real time to determine whether the air conditioner controller conforms to the software design logic, specifically:
[0027] The status of all signals is displayed through the preset test management software, and it is determined whether the status is consistent with the expected status.
[0028] If they match, then the air conditioner controller conforms to the software design logic;
[0029] If they are inconsistent, the air conditioner controller does not conform to the software design logic.
[0030] As a preferred solution, in order to solve the above-mentioned technical problems, embodiments of the present invention also provide an air conditioner controller testing device, including: a signal receiving module, a testing module, and a monitoring module;
[0031] The signal receiving module is used to receive the test signal sent by the host computer and output the first action signal according to the preset logic. The test signal is generated according to the user's operation on the host computer.
[0032] The test module is used to send the first action signal to the air conditioner controller so that the air conditioner controller outputs the second action signal according to the preset internal logic, drives the simulation model to run according to the second action signal and generates the running results, and then returns the running results to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control.
[0033] The monitoring module is used to collect all signals during the test process and send all signals to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic.
[0034] As a preferred option, the test module includes a signal conversion unit and a message conversion unit;
[0035] The signal conversion unit is used to convert the test signal into the first message value.
[0036] The message conversion unit is used to convert the first message value and output the first action signal.
[0037] As a preferred solution, in order to solve the above-mentioned technical problems, the present invention also provides an air conditioner controller testing system, including: a host computer, an air conditioner controller testing device, and an air conditioner controller, wherein the air conditioner controller testing device is used to execute the air conditioner controller testing method described in the present invention.
[0038] The host computer is connected to the air conditioner controller testing device, and the air conditioner controller is connected to the air conditioner controller testing device.
[0039] As a preferred option, the host computer is used to monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic.
[0040] The air conditioner controller testing device is used to receive test signals sent by the host computer and output a first action signal according to a preset method. The test signal is generated based on the user's operation on the host computer. The first action signal is sent to the air conditioner controller so that the air conditioner controller outputs a second action signal according to the preset internal logic. The simulation model is driven to run and generate running results according to the second action signal. The running results are then returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control. All signals during the test process are collected and sent to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic.
[0041] The air conditioner controller is used to output a second action signal according to preset internal logic.
[0042] In this embodiment, the signals required for operating the air conditioner via the host computer are converted into electrical signals required by the air conditioner controller and then sent to the air conditioner controller. After receiving the signals, the air conditioner controller operates according to its own logic and outputs a response signal, which is then converted into a signal input into the simulation model. This drives the simulation model to work and outputs the running results back to the air conditioner controller for subsequent closed-loop follow-up control. All signals during the test process are uploaded to the host computer, which monitors the status of each signal in real time during system operation to confirm whether the entire system works according to the expected results of the test cases. By using this method, the software function test of the air conditioner controller can be realized, improving test efficiency, identifying problems in advance, and reducing the subsequent real vehicle debugging and rectification cycle. Attached Figure Description
[0043] Figure 1 : A flowchart illustrating an embodiment of an air conditioner controller testing method provided by the present invention;
[0044] Figure 2 This is a schematic diagram of the external structure of an air conditioner load, representing an embodiment of an air conditioner controller testing method provided by the present invention.
[0045] Figure 3 : A schematic diagram of another embodiment of the air conditioner controller testing method provided by the present invention. Detailed Implementation
[0046] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] Example 1
[0048] Please refer to Figure 1 This invention provides a method for testing an air conditioner controller, comprising steps 101 to 103, the specific details of which are as follows:
[0049] Step 101: Receive the test signal sent by the host computer, and output the test signal as a first action signal according to a preset method, wherein the test signal is generated according to the user's operation on the host computer.
[0050] In this embodiment, the signals required for operating the air conditioner on the HIL host computer, such as AC switch signals, fan speed adjustment signals, and temperature adjustment signals, are converted into the electrical signals required by the air conditioner controller after being processed by the simulation model and simulation equipment, and then sent to the air conditioner controller. After the HIL test project is developed and debugged, it will compile and generate a format that can be recognized by the host computer software. At the same time, the host computer software will also develop corresponding controls and associate them with model variables to control model parameters. Taking the virtual large screen controller inputting the "AC switch on" signal to the air conditioner controller, and the air conditioner controller driving the compressor to work according to its software design logic as an example, when the mathematical value of the host computer AC switch control changes, such as from 0 to 1, the model variable associated with the control, that is, the AC switch in the model, will also change from 0 to 1.
[0051] Optionally, the system receives a test signal sent by a host computer and outputs a first action signal based on preset logic, specifically:
[0052] The test signal is converted to obtain the first message value;
[0053] The first message value is converted and the first action signal is output.
[0054] Step 102: Send the first action signal to the air conditioner controller so that the air conditioner controller outputs a second action signal according to the preset internal logic, drives the simulation model to run and generates running results according to the second action signal, and then returns the running results to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control.
[0055] In this embodiment, after receiving the signal, the air conditioner controller operates according to its own logic and outputs a response signal. The output signal of the air conditioner controller is then converted by the simulation device and input into the simulation model to drive the simulation model to work. The simulation model then outputs the operating result back to the air conditioner controller for subsequent closed-loop follow-up control.
[0056] As an example of this embodiment, taking the virtual large screen controller inputting an "AC switch on" signal to the air conditioner controller, and the air conditioner controller driving the compressor to work according to its software design logic as an example, after the mathematical value of the AC switch control on the host computer changes (e.g., from 0 to 1), the model variable associated with this control, i.e., the AC switch in the model, will also change from 0 to 1. This variable AC switch (mathematical value) is converted into the corresponding AC switch message value (mathematical value) in the simulation model through the signal conversion unit, and then given to the CAN board through the interface module between the simulation model and the CAN board; then the CAN board converts the given AC switch message value (mathematical value) into a CAN differential voltage signal (electrical physical value), and inputs it to the air conditioner controller; after receiving the CAN differential voltage signal (electrical physical value), the air conditioner controller can calculate the current AC switch message definition; the electrical signal transmission link sent by the controller under test to the simulation model is the reverse of the above.
[0057] Optionally, the system receives a test signal sent by a host computer and outputs a first action signal based on preset logic, specifically:
[0058] The test signal is converted to obtain the first message value;
[0059] The first message value is converted and the first action signal is output.
[0060] Optionally, the simulation model is driven to run based on the second action signal, and the running results are generated. The running results are then returned to the air conditioning controller so that the air conditioning controller can perform closed-loop follow-up control. Specifically:
[0061] The second action signal is converted and the second message value is output.
[0062] The second message value is converted to obtain the second working signal. The simulation model is driven to run according to the second working signal, and the corresponding running result is converted into a voltage signal and returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control.
[0063] Optionally, the simulation model is driven to run according to the control signal, and the corresponding running results are converted into voltage signals and returned to the air conditioning controller, so that the air conditioning controller can perform closed-loop follow-up control, specifically:
[0064] A simulation model was developed and built based on the controller principle, electrical characteristics, the peripheral principle of the air conditioning load, and the working signals and feedback signals of each load. The simulation model includes a virtual controller model, a temperature sensor model, and an air conditioning load model.
[0065] Based on the virtual controller model, instructions are sent to the air conditioner controller to cause the air conditioner controller to execute the instructions;
[0066] The temperature sensor model outputs a corresponding resistance value, which is then converted into a corresponding physical quantity and output to the air conditioner controller via a simulation hardware board.
[0067] The operation result is obtained by controlling the air conditioner load model to output corresponding actions by inputting conditions in the air conditioner controller. The air conditioner load model includes a blower model, a water valve motor model, a blower motor model, an internal and external circulation motor model, and an air conditioner compressor model.
[0068] The operation results are sent to the air conditioning controller so that the air conditioning controller can perform closed-loop follow-up control.
[0069] In this embodiment, the virtual controller model of the test system includes a virtual engine controller model, a virtual large screen controller model, and a virtual terminal controller model. All three virtual controller models communicate with the air conditioning controller via CAN. The virtual engine controller model is mainly used to simulate the engine controller sending speed messages to the air conditioning controller to meet the prerequisite (speed ≥ 400 rpm) for the air conditioning controller to start the AC compressor. The virtual large screen controller is mainly used to simulate the vehicle's large screen system sending local air conditioning control switch messages to the air conditioning controller for execution. The virtual terminal controller is mainly used to simulate remote vehicle control commands sending remote air conditioning control switch messages to the air conditioning controller for execution.
[0070] The temperature sensor models include evaporator temperature sensor models, indoor temperature sensor models, and outdoor temperature sensor models. The electrical characteristic parameters of the evaporator temperature sensor, indoor temperature sensor, and outdoor temperature sensor are all resistance outputs. By building a temperature-resistance curve in the Simulink environment, the corresponding resistance value (mathematical quantity) output can be simulated. This can then be converted into the corresponding resistance value (physical quantity) by the simulation hardware board and output to the air conditioner controller. The temperature-resistance relationship table for the electrical characteristic parameters of the evaporator temperature sensor, indoor temperature sensor, and outdoor temperature sensor is as follows:
[0071]
[0072] The simulation model mainly consists of a virtual controller model, a temperature sensor model, and an air conditioning load model, such as... Figure 1 As shown, the virtual controller model includes a virtual engine controller model, a virtual large screen controller model, and a virtual terminal controller model. All three virtual controller models communicate with the air conditioning controller via CAN. The virtual engine controller model is mainly used to simulate the engine controller sending speed messages to the air conditioning controller to meet the prerequisite (speed ≥ 400 rpm) for the air conditioning controller to start the AC compressor. The virtual large screen controller is mainly used to simulate the vehicle's large screen system sending local air conditioning control switch messages to the air conditioning controller for execution. The virtual terminal controller is mainly used to simulate remote vehicle control commands sending remote air conditioning control switch messages to the air conditioning controller for execution. The temperature sensor models include an evaporator temperature sensor model, an indoor temperature sensor model, and an outdoor temperature sensor model. The electrical characteristic parameters of the evaporator temperature sensor, indoor temperature sensor, and outdoor temperature sensor are all resistance outputs. By building a temperature-resistance curve in the Simulink environment, the corresponding resistance value (mathematical quantity) output can be simulated. This can then be converted into the corresponding resistance value (physical quantity) by the simulation hardware board and output to the air conditioning controller. The temperature-resistance relationship table of the electrical characteristic parameters of the evaporator temperature sensor, indoor temperature sensor, and outdoor temperature sensor is as follows:
[0073]
[0074]
[0075]
[0076]
[0077]
[0078]
[0079] The air conditioning load model includes a blower model, a water valve motor model, a blower motor model, an internal / external circulation motor model, and an air conditioning compressor model. The model is developed and built based on the external principles of the air conditioning load and the operating signals and feedback signals of each load. The external principles of the air conditioning load are as follows: Figure 2 As shown.
[0080] The blower model is constructed by mapping the blower control output voltage, PWM duty cycle output, and fan speed settings of the air conditioner controller. During testing, the functionality of the air conditioner controller software is determined by checking whether the air conditioner controller controls the output fan speed according to the input conditions.
[0081] The air conditioner controller adjusts the control voltage, changes the opening degree of the speed control module, and ultimately regulates the terminal voltage of the blower to achieve speed regulation. The correspondence between fan speed levels and voltage is as follows:
[0082] windshield Blower terminal voltage (V) PWM duty cycle (%) 1 11±0.35 42.3 2 13±0.35 50 3 15±0.35 57.7 4 17±0.35 65.4 5 19±0.35 73.1 6 21±0.35 80.8 7 23±0.35 88.5 8 24±0.35 1
[0083] Wherein, UB+ is the blower input voltage (in commercial vehicles, it is generally 28V after the generator starts and generally 24V when it is not started); U output is the output voltage of the blower control output pin of the air conditioning controller.
[0084] Water valve motor model: A water valve model is built using the target temperature input via CAN message from a virtual large screen controller or terminal controller, along with the water valve motor feedback voltage. The feedback voltage signal corresponding to the set temperature is then returned to the air conditioning controller. During testing, the functionality of the air conditioning controller software is determined by checking whether it continuously outputs a 24V motor control signal before reaching the feedback voltage corresponding to the target set temperature (i.e., reaching the corresponding temperature) and stops outputting the signal after reaching the corresponding feedback voltage (i.e., reaching the corresponding temperature).
[0085] The air conditioner controller controls the water valve motor via five wires (+, -, VCC, GND, V). The "+" and "-" signals can be switched to control the motor's rotation direction. The relationship between temperature, feedback voltage, and water valve opening is set as follows:
[0086] Set temperature (°C) Feedback signal (voltage: V) Water valve angle (°) Opening degree (%) 17(full cold) 0.9±0.1 78±2 0 18 1.3±0.1 68±2 12.8 19 1.5±0.1 64.4±2 17.4 20 1.7±0.1 60.8±2 22.1 21 1.8±0.1 57.2±2 26.7 22 2.0±0.1 53.6±2 31.3 23 2.2±0.1 50±2 35.9 24 2.4±0.1 46.2±2 40.8 25 2.6±0.1 42.6±2 45.4 26 2.7±0.1 39±2 50 27 2.9±0.1 35.4±2 54.6 28 3.1±0.1 31.8±2 59.2 29 3.3±0.1 28±2 64.1 30 3.5±0.1 24.6±2 68.5 31 3.7±0.1 21±2 73.1 32 (Hottest) 4.8±0.1 0±2 100
[0087] Blowering Mode Motor Model: A water valve model is built using the target blowing mode and the feedback voltage of the blowing mode motor input via CAN message from a virtual large screen controller or terminal controller. The feedback voltage signal corresponding to the blowing mode is then returned to the air conditioner controller. During testing, the air conditioner controller is checked to see if it continuously outputs a 24V motor control signal before reaching the feedback voltage corresponding to the target blowing mode (i.e., reaching the corresponding blowing mode), and stops outputting after reaching the corresponding feedback voltage (i.e., reaching the corresponding blowing mode). This is to determine if the air conditioner controller software is functioning correctly. The air conditioner controller controls the mode motor's operation through five wires (+, -, VCC, GND, V). "+" and "-" can be switched to control the micromotor's rotation direction. VCC is the reference voltage, GND is ground, and V is the feedback signal. The relationship between the mode motor settings and voltages is as follows:
[0088] Blower mode Feedback signal (V) Motor rotation angle (°) blown face 0.5±0.1 0 blow on face and feet 1.53±0.1 21.2±2 blowing feet 2.55±0.1 42±2 Foot cream 3.57±0.1 63±2 defrosting 4.5±0.1 82±2
[0089] Internal and external circulation motor model: An internal and external circulation motor model is constructed by relating the positive and negative outputs of the internal and external circulation motors to the voltage. During testing, the functionality of the air conditioner controller software is determined by checking whether the air conditioner controller controls the internal and external circulation motors according to the input conditions.
[0090] Work status Internal and external circulation motor output + (V) Internal / external circulation motor output - (V) Internal circulation 24V 0 external circulation 0 24
[0091] Compressor Model: A compressor model is built by outputting voltage through the compressor control pins. During testing, the functionality of the air conditioner controller software is determined by checking whether the air conditioner controller operates the compressor according to the input conditions.
[0092] Compressor operating status Compressor control (V) Work 24V Not working 0
[0093] Compressor Model: A compressor model is built by controlling the output voltage of the electronic fan control pin. During testing, the functionality of the air conditioner controller software is determined by checking whether the air conditioner controller controls the electronic fan according to the input conditions.
[0094] Electric fan working status Electronic fan control (V) Work 24V Not working 0
[0095] Step 103: Collect all signals during the test process and upload all signals to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic.
[0096] In this embodiment, the host computer can also monitor the status of various signals (including all input and output signals of the air conditioner controller, all input and output signals of the I / O board and bus simulation board, external interface signals of the programmable power supply (such as voltage and current values, enable control signals, etc.), and all variables in the simulation model) during the system operation process to confirm whether the entire system works according to the expected results of the test cases.
[0097] Optionally, the host computer monitors all signals in real time to determine whether the air conditioner controller conforms to the software design logic, specifically:
[0098] The status of all signals is displayed through preset test management software, and it is determined whether the status is consistent with the expected status.
[0099] If they match, then the air conditioner controller conforms to the software design logic;
[0100] If they are inconsistent, the air conditioner controller does not conform to the software design logic.
[0101] Through the above steps, the signals required by the HIL host computer to operate the air conditioner, such as AC switch signals, fan speed adjustment signals, and temperature adjustment signals, are converted into the electrical signals required by the air conditioner controller through the simulation model and simulation equipment, and then sent to the air conditioner controller. After receiving the signals, the air conditioner controller operates according to its own logic and outputs a response signal. The output signal of the air conditioner controller is then converted by the simulation equipment and input into the simulation model to drive the simulation model to work, and then outputs the running result back to the air conditioner controller for subsequent closed-loop follow-up control. At the same time, the host computer monitors the status of each signal during the system operation to confirm whether the entire system works according to the expected results of the test cases. By using this method, the software functions of the air conditioner controller can be physically tested before vehicle installation, problems can be identified in advance, the subsequent vehicle debugging and rectification cycle can be reduced, the vehicle development cycle can be shortened, and the testing efficiency of the air conditioner controller can be improved.
[0102] Example 2
[0103] Accordingly, see Figure 3 , Figure 3 This is a schematic diagram of an air conditioner controller testing device provided by the present invention. As shown in the figure, the air conditioner controller testing device includes: a signal receiving module 301, a testing module 302, and a monitoring module 303;
[0104] The signal receiving module 301 is used to receive the test signal sent by the host computer and output the first action signal according to the preset logic. The test signal is generated according to the user's operation on the host computer.
[0105] The test module 302 is used to send the first action signal to the air conditioner controller so that the air conditioner controller outputs the second action signal according to the preset internal logic, drives the simulation model to run and generates the running result according to the second action signal, and then returns the running result to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control.
[0106] The monitoring module 303 is used to collect all signals during the test process and send all signals to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic.
[0107] In this embodiment, the test module 302 includes a signal conversion unit 3021 and a message conversion unit 3022;
[0108] The signal conversion unit 3021 is used to convert the test signal to obtain the first message value;
[0109] The message conversion unit 3022 is used to convert the first message value and output the first action signal.
[0110] The system uses a HIL host computer to control the air conditioner, transmitting signals such as AC switch signals, fan speed adjustment signals, and temperature adjustment signals. These signals are then converted into electrical signals required by the air conditioner controller via a simulation model and equipment. Upon receiving the signals, the air conditioner controller operates according to its own logic and outputs a response signal. This output signal is then converted by the simulation equipment and input into the simulation model to drive it. The simulation model then outputs the operating results back to the air conditioner controller for subsequent closed-loop follow-up control. Simultaneously, the host computer continuously monitors the status of each signal during system operation to confirm whether the entire system operates as expected by the test cases. By using this system, the software functionality of the air conditioner controller can be physically tested before vehicle installation, allowing for early detection of problems, reducing subsequent vehicle debugging and rectification cycles, shortening vehicle development cycles, and improving the testing efficiency of the air conditioner controller.
[0111] Example 3
[0112] Accordingly, the air conditioner controller testing system provided by the present invention includes: a host computer, an air conditioner controller testing device, and an air conditioner controller, wherein the air conditioner controller testing device is used to execute the air conditioner controller testing method shown in Embodiment 1;
[0113] The host computer is connected to the air conditioner controller testing device, and the air conditioner controller is connected to the air conditioner controller testing device.
[0114] In this embodiment, the host computer is used to monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic.
[0115] An air conditioner controller testing device is used to receive test signals sent by a host computer and output a first action signal according to a preset method. The test signal is generated based on the user's operation of the host computer. The first action signal is sent to the air conditioner controller so that the air conditioner controller outputs a second action signal according to preset internal logic. The simulation model is driven to run and generate running results according to the second action signal. The running results are then returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control. All signals during the test process are collected and uploaded to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic.
[0116] The air conditioner controller is used to output a second action signal according to preset internal logic.
[0117] Compared to existing technologies, the air conditioning controller testing method provided by this invention converts the signals required for operating the air conditioner by the HIL host computer into electrical signals required by the air conditioning controller after passing through a simulation model and simulation equipment. After receiving the signals, the air conditioning controller operates according to its own logic and outputs a response signal. The output signal of the air conditioning controller is then converted by the simulation equipment and input into the simulation model to drive the simulation model to work. The simulation model then outputs the running results back to the air conditioning controller for subsequent closed-loop follow-up control. At the same time, the host computer monitors the status of each signal during the system operation to confirm whether the entire system works according to the expected results of the test cases. By using this system, the software functions of the air conditioning controller can be physically tested before vehicle installation, problems can be identified in advance, the subsequent vehicle debugging and rectification cycle can be reduced, the vehicle development cycle can be shortened, and the testing efficiency of the air conditioning controller can be improved.
[0118] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A test method for an air conditioner controller, characterized in that, include: The system receives a test signal sent by a host computer and outputs a first action signal based on preset logic, wherein the test signal is generated according to the user's operation on the host computer. The first action signal is sent to the air conditioner controller, so that the air conditioner controller outputs a second action signal according to the preset internal logic. The simulation model is driven to run and generate running results according to the second action signal. The running results are then returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control. All signals during the test are collected and sent to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic. The process involves driving the simulation model to run based on the second action signal and generating running results, then returning the running results to the air conditioning controller so that the air conditioning controller can perform closed-loop follow-up control. Specifically: The second action signal is converted using a simulation device to output the second message value; The control signal is obtained by converting the second message value, and the simulation model is driven to run according to the control signal. The corresponding running result is converted into a voltage signal and returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control. The simulation model includes an air conditioning load model, which includes a blower model, a water valve motor model, a blower motor model, an internal and external circulation motor model, and an air conditioning compressor model. The simulation model also includes a temperature sensor model, which outputs a corresponding resistance value based on the temperature-resistance curve relationship, and then converts the corresponding resistance value into a corresponding physical quantity and outputs it to the air conditioner controller. The simulation model also includes a virtual controller model, which includes a virtual engine controller model. The virtual engine controller model is used to simulate the engine controller sending speed messages to the air conditioning controller to meet the speed conditions for the air conditioning controller to start the AC compressor. The simulation equipment includes an I / O board, a bus simulation board, a programmable power supply, and a real-time processor.
2. The air conditioner controller testing method as described in claim 1, characterized in that, The process of receiving a test signal sent by the host computer and outputting a first action signal based on preset logic is as follows: The test signal is converted to obtain the first message value; The first message value is converted and then the first action signal is output.
3. The air conditioner controller testing method as described in claim 1, characterized in that, The simulation model is driven to run according to the control signal, and the corresponding running results are converted into voltage signals and returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control. Specifically: A simulation model was developed and built based on the controller principle, electrical characteristics, the external principle of the air conditioning load, and the working signals and feedback signals of each load. Based on the virtual controller model, instructions are sent to the air conditioner controller to cause the air conditioner controller to execute the instructions; The corresponding resistance value is output based on the temperature sensor model, and then the corresponding resistance value is converted into a corresponding physical quantity and output to the air conditioner controller. The operating results are obtained by controlling the air conditioner load model to output corresponding actions by inputting conditions into the air conditioner controller. The operation results are sent to the air conditioning controller so that the air conditioning controller can perform closed-loop follow-up control.
4. The air conditioner controller testing method as described in claim 1, characterized in that, The I / O board sends the air conditioner controller electrical signal, receives the air conditioner controller electrical signal, and converts the air conditioner controller electrical signal into a first variable through the I / O board; The bus simulation board provides a physical interface between the communication bus of the air conditioner controller and the simulation model, converts the first variable into a differential pressure signal for the air conditioner controller to recognize, and converts the CAN differential pressure signal output by the air conditioner controller into a second variable. The programmable power supply provides power for the electrical signal conversion of the I / O card. The real-time processor coordinates and controls the various modules of the simulation device.
5. The air conditioner controller testing method as described in claim 1, characterized in that, The host computer monitors all the signals in real time to determine whether the air conditioner controller conforms to the software design logic, specifically: The status of all signals is displayed through preset test management software, and it is determined whether the status is consistent with the expected status. If they match, then the air conditioner controller conforms to the software design logic; If they are inconsistent, the air conditioner controller does not conform to the software design logic.
6. An air conditioner controller testing device, characterized in that, include: Signal receiving module, testing module, and monitoring module; The signal receiving module is used to receive test signals sent by the host computer and output a first action signal according to preset logic. The test signal is generated based on the user's operation on the host computer. The test module is used to send the first action signal to the air conditioner controller so that the air conditioner controller outputs a second action signal according to the preset internal logic, drives the simulation model to run and generates running results according to the second action signal, and then returns the running results to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control. The monitoring module is used to collect all signals during the test process and send all signals to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic. The process involves driving the simulation model to run based on the second action signal and generating running results, then returning the running results to the air conditioning controller so that the air conditioning controller can perform closed-loop follow-up control. Specifically: The second action signal is converted using a simulation device to output the second message value; The control signal is obtained by converting the second message value, and the simulation model is driven to run according to the control signal. The corresponding running result is converted into a voltage signal and returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control. The simulation model includes an air conditioning load model, which includes a blower model, a water valve motor model, a blower motor model, an internal and external circulation motor model, and an air conditioning compressor model. The simulation model also includes a virtual controller model, which includes a virtual engine controller model. The virtual engine controller model is used to simulate the engine controller sending speed messages to the air conditioning controller to meet the speed conditions for the air conditioning controller to start the AC compressor. The simulation model also includes a temperature sensor model, which outputs a corresponding resistance value based on the temperature-resistance curve relationship, and then converts the corresponding resistance value into a corresponding physical quantity and outputs it to the air conditioner controller. The simulation equipment includes an I / O board, a bus simulation board, a programmable power supply, and a real-time processor.
7. The air conditioner controller testing device as described in claim 6, characterized in that, The signal receiving module includes a signal conversion unit and a message conversion unit; The signal conversion unit is used to convert the test signal into a first message value. The message conversion unit is used to convert the first message value and output the first action signal.
8. An air conditioner controller testing system, characterized in that, include: The system includes a host computer, an air conditioner controller testing device, and an air conditioner controller, wherein the air conditioner controller testing device is used to perform the air conditioner controller testing method as described in any one of claims 1 to 5; The host computer is connected to the air conditioner controller testing device, and the air conditioner controller is connected to the air conditioner controller testing device.
9. The air conditioner controller testing system as described in claim 8, characterized in that, The host computer is used to monitor all the signals in real time and determine whether the air conditioner controller conforms to the software design logic. The air conditioner controller testing device is used to receive test signals sent by a host computer and output a first action signal according to preset logic. The test signal is generated based on the user's operation of the host computer. The first action signal is sent to the air conditioner controller so that the air conditioner controller outputs a second action signal according to preset internal logic. The simulation model is driven to run and generate running results according to the second action signal. The running results are then returned to the air conditioner controller so that the air conditioner controller can perform closed-loop follow-up control. All signals during the test process are collected and uploaded to the host computer so that the host computer can monitor all signals in real time and determine whether the air conditioner controller conforms to the software design logic. The air conditioner controller is used to output a second action signal according to preset internal logic.
Citation Information
Patent Citations
Semi-physical simulation test system for controller of air conditioner
CN103499966A
Locomotive semi-physical simulation test system and method
CN106444420A
Automatic test apparatus for automobile conditioner control units
CN107577218A
Method and system for testing remote air conditioner control function of whole vehicle domain controller
CN114756010A