CN115542874A - Air conditioner controller testing method, device and system - Google Patents

Air conditioner controller testing method, device and system Download PDF

Info

Publication number
CN115542874A
CN115542874A CN202211047479.5A CN202211047479A CN115542874A CN 115542874 A CN115542874 A CN 115542874A CN 202211047479 A CN202211047479 A CN 202211047479A CN 115542874 A CN115542874 A CN 115542874A
Authority
CN
China
Prior art keywords
air conditioner
conditioner controller
signal
model
upper computer
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
CN202211047479.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.)
Dongfeng Liuzhou Motor Co Ltd
Original Assignee
Dongfeng Liuzhou Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Liuzhou Motor Co Ltd filed Critical Dongfeng Liuzhou Motor Co Ltd
Priority to CN202211047479.5A priority Critical patent/CN115542874A/en
Publication of CN115542874A publication Critical patent/CN115542874A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The invention discloses a method, a device and a system for testing an air conditioner controller, wherein signals required by operating the air conditioner on an HIL upper computer are converted into electric signals required by the air conditioner controller through a simulation model and simulation equipment and then are sent to the air conditioner controller, the air conditioner controller outputs response signals after receiving the signals and operates according to self logic, the output signals of the air conditioner controller are converted through the simulation equipment and then are input into the simulation model to drive the simulation model to work, and then the operation results are output and returned to the air conditioner controller to carry out subsequent closed-loop follow-up control.

Description

Air conditioner controller testing method, device and system
Technical Field
The invention relates to the field of hardware-in-loop test systems, in particular to a method, a device and a system for testing an air conditioner controller.
Background
In the development process of the existing automobile air conditioner controller, except for the software level test during the development, the general physical function test can only be carried out by a real automobile, but the real automobile function test of the air conditioner controller can be carried out after the loading of a real automobile air conditioning system is finished, and the development and the loading of structural systems such as an HVAC assembly, an air conditioning pipeline, a compressor part and the like are related to the modeling and the arrangement of the automobile in the development process of a new platform, and the development and loading schedule of the structural components such as the HVAC assembly, the air conditioning pipeline, the compressor part and the like has great influence on the function test schedule of the air conditioner controller.
Disclosure of Invention
The invention provides a method, a device and a system for testing an air conditioner controller, which are used for physically testing the software function of the air conditioner controller by designing the method and the system for testing the air conditioner controller, so that the testing efficiency is improved.
In order to solve the technical problem, an embodiment of the present invention provides an air conditioner controller testing method, including:
receiving a test signal sent by an upper computer, and outputting the test signal to a first action signal according to a preset method, wherein the test signal is generated according to the operation of a user on the upper computer;
sending the first action signal to an air conditioner controller so that the air conditioner controller outputs a second action signal according to preset internal logic, driving a simulation model to operate according to the second action signal and generating an operation result, and returning the operation result to the air conditioner controller so that the air conditioner controller performs closed-loop follow-up control;
all signals in the testing process are collected and sent to the upper computer so that the upper computer can monitor all the signals in real time and judge whether the air conditioner controller accords with software design logic.
In the embodiment, signals required by the air conditioner operated by the upper computer are converted into electric signals required by the air conditioner controller and then sent to the air conditioner controller, the air conditioner controller outputs response signals after receiving the signals and operates according to self logic, the signals are converted into signals and input into the simulation model, the simulation model is driven to operate, operation results are output and returned to the air conditioner controller for subsequent closed-loop follow-up control, all signals in the test process are uploaded to the upper computer, the upper computer monitors the state of each signal in the system operation process in real time, so that whether the whole system operates according to expected results of test cases is confirmed, the software function test of the air conditioner controller can be realized by using the method, and the test efficiency of the air conditioner controller is improved.
As a preferred scheme, the method includes receiving a test signal sent by an upper computer, and enabling the test signal to output a first action signal according to a preset logic, specifically:
converting the test signal to obtain a first message value;
and outputting a first action signal after the first message value is converted.
As a preferred scheme, the simulation model is driven to operate according to the second action signal and generate an operation result, and then the operation result is returned to the air conditioner controller, so that the air conditioner controller performs closed-loop follow-up control, specifically:
converting the second action signal and outputting a second message value;
and converting according to the second message value to obtain a second working signal, driving the simulation model to operate according to the second working signal, converting a corresponding operation result into a voltage signal, and returning the voltage signal to the air conditioner controller so as to enable the air conditioner controller to perform closed-loop follow-up control.
As a preferred scheme, the simulation model is driven to operate according to the control signal, and the corresponding operation result is converted into a voltage signal and returned to the air conditioner controller, so that the air conditioner controller performs closed-loop follow-up control, specifically:
developing and constructing a simulation model according to a controller principle, electrical appliance characteristics, an air conditioner load peripheral principle, load working signals and feedback signals, wherein the simulation model comprises a virtual controller model, a temperature sensor model and an air conditioner load model;
sending an instruction to the air conditioner controller according to the virtual controller model so that the air conditioner controller executes the instruction;
outputting a corresponding resistance value according to the temperature sensor model, converting the corresponding resistance value into a corresponding physical quantity through a simulation hardware board card, and outputting the corresponding physical quantity to an air conditioner controller;
controlling an air conditioner load model to output corresponding actions by inputting conditions in an air conditioner controller to obtain an operation result, wherein the air conditioner load model comprises an air blower model, a water valve motor model, an air blower model motor model, an internal and external circulation motor model and an air conditioner compressor model;
and sending the operation result to the air conditioner controller to enable the air conditioner controller to carry out closed-loop follow-up control.
As the preferred scheme, the simulation equipment comprises an I/O card board, a bus simulation card board, a program-controlled power supply and a real-time processor;
the I/O card board sends the air conditioner controller electric signal, receives the air conditioner controller electric signal, and converts the vehicle controller electric signal into a first variable through the card board;
the bus simulation card board provides a physical interface between a communication bus of the air conditioner controller and the simulation model, converts a first variable into a pressure difference signal for the air conditioner controller to recognize, and converts a CAN pressure difference signal output by the air conditioner controller into a second variable;
the program-controlled power supply provides a power source for the electrical signal conversion of the I/O module;
and the real-time processor performs coordination control on each module of the simulation equipment.
As a preferred scheme, the upper computer monitors all signals in real time, and judges whether the air conditioner controller accords with software design logic, specifically:
displaying the states of all signals through preset test management software, and judging whether the states are consistent with expected states;
if the data are consistent, the air conditioner controller accords with the software design logic;
if not, the air conditioner controller does not accord with the software design logic.
As a preferable solution, in order to solve the above technical problem, an embodiment of the present invention further provides an air conditioner controller testing apparatus, including: the device comprises a signal receiving module, a testing module and a monitoring module;
the signal receiving module is used for receiving a test signal sent by the upper computer and enabling the test signal to output a first action signal according to preset logic, wherein the test signal is generated according to the operation of a user on the upper computer;
the test module is used for sending the first action signal to the air conditioner controller so that the air conditioner controller outputs a second action signal according to preset internal logic, drives the simulation model to operate according to the second action signal and generates an operation result, and then returns the operation result to the air conditioner controller so that the air conditioner controller performs closed-loop follow-up control;
the monitoring module is used for collecting all signals in the testing process, sending all the signals to the upper computer so that the upper computer can monitor all the signals in real time, and judging whether the air conditioner controller accords with software design logic.
As a preferred scheme, the test module comprises a signal conversion unit and a message conversion unit;
the signal conversion unit is used for converting the test signal to obtain a first message value;
the message conversion unit is used for converting the first message value and outputting a first action signal.
As a preferable solution, in order to solve the above technical problem, an embodiment of the present invention further provides an air conditioner controller testing system, including: the air conditioner controller testing device is used for executing the air conditioner controller testing method in the embodiment of the invention;
the upper computer is connected with the air conditioner controller testing device, and the air conditioner controller is connected with the air conditioner controller testing device.
As a preferred scheme, the upper computer is used for monitoring all signals in real time and judging whether the air conditioner controller accords with software design logic;
the air conditioner controller testing device is used for receiving a testing signal sent by an upper computer and outputting the testing signal to a first action signal according to a preset method, wherein the testing signal is generated according to the operation of a user on the upper 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, a simulation model is driven to run according to the second action signal and generate a running result, the running result is returned to the air conditioner controller, the air conditioner controller is subjected to closed-loop follow-up control, all signals in the testing process are collected, all signals are sent to the upper computer, the upper computer monitors all signals in real time, and whether the air conditioner controller accords with software design logic is judged;
the air conditioner controller is used for outputting a second action signal according to preset internal logic.
In the embodiment, signals required by the air conditioner operated by the upper computer are converted into electric signals required by the air conditioner controller and then sent to the air conditioner controller, the air conditioner controller outputs response signals after receiving the signals and operates according to self logic, the signals are converted into signals and input into the simulation model, the simulation model is driven to operate, operation results are output and returned to the air conditioner controller to perform follow-up closed-loop follow-up control, all signals in the test process are uploaded to the upper computer, the upper computer monitors the state of each signal in the system operation process in real time to confirm whether the whole system operates according to expected results of test cases, and by using the method, the function test of air conditioner controller software can be realized, the test efficiency is improved, problem points are found in advance, and the follow-up debugging and rectification cycle of the real vehicle is reduced.
Drawings
FIG. 1: the invention provides a flow chart diagram of an embodiment of an air conditioner controller testing method;
FIG. 2: the invention provides a schematic diagram of an air conditioner load peripheral structure of an embodiment of an air conditioner controller testing method.
FIG. 3: the invention provides a schematic structural diagram of another embodiment of an air conditioner controller testing method.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Example one
Referring to fig. 1, a method for testing an air conditioner controller according to an embodiment of the present invention includes steps 101 to 103, where the steps are as follows:
step 101: the method comprises the steps of receiving a test signal sent by an upper computer, and outputting the test signal to a first action signal according to a preset method, wherein the test signal is generated according to the operation of a user on the upper computer.
In the embodiment, signals required by the operation of the air conditioner on the HIL upper computer, such as an AC switching signal, a wind speed adjusting signal, a temperature adjusting signal and the like, are converted into electric signals required by the air conditioner controller through a simulation model and simulation equipment and then sent to the air conditioner controller, after the development and debugging of the HIL test project are completed, a format which can be recognized by upper computer software can be compiled and generated, and meanwhile, the upper computer software can also develop corresponding controls to be associated with model variables so as to control model parameters. The virtual large-screen controller inputs an 'AC switch on' signal to the air conditioner controller, the air conditioner controller drives a compressor to work according to software design logic of the air conditioner controller, and the mathematical value of an AC switch control of an upper computer changes, and if the mathematical value is adjusted from 0 to 1, a model variable related to the control, namely an AC switch in a model, also changes from 0 to 1.
Optionally, the method includes receiving a test signal sent by an upper computer, and enabling the test signal to output a first action signal according to a preset logic, specifically:
converting the test signal to obtain a first message value;
and outputting a first action signal after the first message value is converted.
Step 102: and sending the first action signal to an air conditioner controller so that the air conditioner controller outputs a second action signal according to preset internal logic, driving a simulation model to operate according to the second action signal and generating an operation result, and returning the operation result to the air conditioner controller so that the air conditioner controller performs closed-loop follow-up control.
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 converted by the simulation equipment and then input into the simulation model to drive the simulation model to work, and then the operation result is output and returned to the air conditioner controller to carry out follow-up control of the subsequent closed loop.
As an example of this embodiment, a virtual large-screen controller inputs an "AC switch on" signal to an air conditioner controller, and the air conditioner controller drives a compressor according to its software design logic as an example, after a mathematical value of an AC switch control of an upper computer changes (e.g., is adjusted from 0 to 1), a model variable associated with the control, that is, an AC switch in the model, also changes from 0 to 1, and the variable AC switch (mathematical value) is converted into a corresponding AC switch message value (mathematical value) in a simulation model through a signal conversion unit, and is sent to a CAN board through an interface module of the simulation model and the CAN board; then the CAN board card is converted into a CAN differential voltage signal (an electrical physical value) according to a given AC switch message value (a mathematical value), and the CAN differential voltage signal is input to an air conditioner controller; the air conditioner controller CAN calculate the current AC switch message definition after receiving the CAN differential voltage signal (the physical value of the electric appliance); the electric signal transmission link sent by the tested controller to the simulation model is opposite to the above.
Optionally, the method includes receiving a test signal sent by the upper computer, and enabling the test signal to output a first action signal according to a preset logic, specifically:
converting the test signal to obtain a first message value;
and outputting a first action signal after the first message value is converted.
Optionally, the simulation model is driven to operate according to the second action signal, an operation result is generated, and the operation result is returned to the air conditioner controller, so that the air conditioner controller performs closed-loop follow-up control, specifically:
converting the second action signal and outputting a second message value;
and converting according to the second message value to obtain a second working signal, driving the simulation model to operate according to the second working signal, converting a corresponding operation result into a voltage signal, and returning the voltage signal to the air conditioner controller so as to enable the air conditioner controller to perform closed-loop follow-up control.
Optionally, the simulation model is driven to operate according to the control signal, and a corresponding operation result is converted into a voltage signal and returned to the air conditioner controller, so that the air conditioner controller performs closed-loop follow-up control, specifically:
developing and constructing a simulation model according to a controller principle, electrical appliance characteristics, an air conditioner load peripheral principle, load working signals and feedback signals, wherein the simulation model comprises a virtual controller model, a temperature sensor model and an air conditioner load model;
sending an instruction to an air conditioner controller according to the virtual controller model so that the air conditioner controller executes the instruction;
outputting a corresponding resistance value according to the temperature sensor model, converting the corresponding resistance value into a corresponding physical quantity through a simulation hardware board card, and outputting the corresponding physical quantity to an air conditioner controller;
controlling the air conditioner load model to output corresponding actions by inputting conditions in an air conditioner controller to obtain an operation result, wherein the air conditioner load model comprises an air blower model, a water valve motor model, an air blower model motor model, an internal and external circulation motor model and an air conditioner compressor model;
and sending the operation result to an air conditioner controller to enable the air conditioner controller to carry out closed-loop follow-up control.
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, and the three virtual controller models and the air conditioner controller are all communicated through the CAN. The virtual engine controller model is mainly used for simulating an engine controller to send a rotating speed message to the air conditioner controller so as to meet the precondition that the air conditioner controller controls the AC compressor to start (the rotating speed is more than or equal to 400 rpm); the virtual large screen controller is mainly used for simulating the vehicle machine large screen system to send an air conditioner local control switch message to the air conditioner controller for execution; the virtual terminal controller is mainly used for simulating a far Cheng Kongche instruction to send an air conditioner remote control switch message to the air conditioner controller for execution.
The temperature sensor model comprises an evaporator temperature sensor model, an indoor temperature sensor model and an outdoor temperature sensor model; the characteristic parameters of the electric appliances of the evaporator temperature sensor, the indoor temperature sensor and the outdoor temperature sensor are all resistance value outputs, a temperature-resistance value curve relation is built in a simulink environment, the corresponding resistance value (mathematical quantity) output can be simulated, and the corresponding resistance value (physical quantity) can be converted through a simulation hardware board card and then output to the air conditioner controller; the relationship table of the electric appliance characteristic parameters temperature-resistance values of the evaporator temperature sensor, the indoor temperature sensor and the outdoor temperature sensor is as follows:
Figure BDA0003821441200000081
the simulation model mainly comprises a virtual controller model, a temperature sensor model, an air conditioner load model and the like, wherein the virtual controller model comprises a virtual engine controller model, a virtual large screen controller model and a virtual terminal controller model, and the three virtual controller models are communicated with the air conditioner controller through a Controller Area Network (CAN) as shown in figure 1. The virtual engine controller model is mainly used for simulating an engine controller to send a rotating speed message to the air conditioner controller so as to meet the precondition that the air conditioner controller controls the AC compressor to start (the rotating speed is more than or equal to 400 rpm); the virtual large screen controller is mainly used for simulating the vehicle machine large screen system to send an air conditioner local control switch message to the air conditioner controller for execution; the virtual terminal controller is mainly used for simulating a far Cheng Kongche instruction to send an air conditioner remote control switch message to the air conditioner controller for execution; the temperature sensor model comprises 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, the indoor temperature sensor and the outdoor temperature sensor are all resistance value outputs, a temperature-resistance value curve relation is established in a simulink environment, corresponding resistance value (mathematical quantity) outputs can be simulated, and then the corresponding resistance values (physical quantity) can be converted through a simulation hardware board card and output to the air conditioner controller; the relationship table of the electric appliance characteristic parameters temperature-resistance values of the evaporator temperature sensor, the indoor temperature sensor and the outdoor temperature sensor is as follows:
Figure BDA0003821441200000091
Figure BDA0003821441200000092
Figure BDA0003821441200000101
Figure BDA0003821441200000111
Figure BDA0003821441200000112
Figure BDA0003821441200000121
the air conditioner load model comprises a blower model, a water valve motor model, a blowing model motor model, an internal and external circulation motor model and an air conditioner compressor model. The model is developed and built according to the air conditioner load peripheral principle, each load working signal and each feedback signal, and the air conditioner load peripheral principle is shown in fig. 2.
The air blower model is built through the corresponding relation of the air conditioner controller air blower control output voltage, the PMW duty ratio output and the wind speed gear. During testing, judging whether the software function of the air conditioner controller is normal or not by checking whether the air conditioner controller controls the output of the corresponding wind gear control according to the input condition or not;
the air conditioner controller changes the opening degree of the speed regulating module by adjusting the control voltage, and finally regulates the terminal voltage of the air blower to achieve the purpose of speed regulation, wherein the corresponding relation of the wind speed gear and the voltage is as follows:
wind shield Blower terminal voltage (V) PWM duty ratio (%)
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
Wherein UB + is the input voltage of the blower (on a commercial vehicle, the voltage is generally 28V after the generator is started, and is generally 24V when the generator is not started); the U output is the output voltage of an air conditioner controller blower control output pin.
A water valve motor model: and establishing a water valve model through the target temperature input by the virtual large screen controller or the terminal controller through the CAN message and the feedback voltage of the water valve motor, and returning a feedback voltage signal corresponding to the set temperature to the air conditioner controller. During testing, whether the software function of the air conditioner controller is normal is judged by checking whether the air conditioner controller outputs a 24V motor control signal until the air conditioner controller reaches a feedback voltage corresponding to a target set temperature (namely, reaches the corresponding temperature) and stopping outputting after the air conditioner controller reaches the corresponding feedback voltage (namely, reaches the corresponding temperature);
the air conditioner controller controls the action of the water valve motor through five leads (+, -, VCC, GND and V). The + and-can be switched to control the rotation direction of the motor, and the relationship between the set temperature and the feedback voltage and the opening degree of the water valve is as follows:
set temperature (. Degree. C.) Feedback signal (Voltage: V) Water valve angle (°) Opening (%)
17 (full cooling) 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
Blowing mode motor model: and establishing a water valve model through a target blowing mode input by a virtual large screen controller or a terminal controller through a CAN message and the feedback voltage of a blowing mode motor, and returning a feedback voltage signal corresponding to the blowing mode to the air conditioner controller. During testing, whether the function of the software of the air conditioner controller is normal is judged by checking whether the air conditioner controller outputs a 24V motor control signal before reaching a feedback voltage corresponding to a target set blowing mode (namely reaching the corresponding blowing mode) and stopping outputting after reaching the corresponding feedback voltage (namely reaching the corresponding blowing mode), and the air conditioner controller controls the action of a mode motor through five leads (+, -, VCC, GND and V). The "+" and "-" can be switched to control the rotation direction of the micro-motor, VCC is reference voltage, GND is ground, V is feedback signal, and the corresponding relation of the gear and the voltage of the mode motor is as follows:
blowing mode Feedback signal (V) Rotation angle of motor (degree)
Blowing noodle 0.5±0.1 0
Face-blowing foot 1.53±0.1 21.2±2
Blow foot 2.55±0.1 42±2
Foot blowing defrosting 3.57±0.1 63±2
Defrosting 4.5±0.1 82±2
Internal and external circulation motor model: and constructing an internal and external circulation motor model according to the relation between the internal and external circulation motor output +, the internal and external circulation motor output-and the voltage. During testing, whether the software function of the air conditioner controller is normal is judged by checking whether the air conditioner controller controls the internal and external circulation motors according to input conditions;
working state Internal and external circulation motor output + (V) Internal and external circulation motor output- (V)
Internal circulation 24V 0
External circulation 0 24
A compressor model: and outputting voltage through a compressor control pin to build a compressor model. During testing, whether the air conditioner controller software functions normally is judged by checking whether the air conditioner controller controls the compressor to work according to the input conditions.
Operating state of compressor Compressor control (V)
Work by 24V
Not working 0
A compressor model: and (3) outputting voltage through the electronic fan control pin to build a compressor model. During testing, whether the air conditioner controller software functions normally is judged by checking whether the air conditioner controller controls the electronic fan to work according to the input conditions.
Working state of electronic fan Electronic fan control (V)
Work in 24V
Not working 0
Step 103: all signals in the testing process are collected and uploaded to the upper computer so that the upper computer can monitor all the signals in real time and judge whether the air conditioner controller accords with software design logic.
In this embodiment, the upper computer may also monitor the states of signals (including all input and output signals of the air conditioner controller, all input and output signals of the I/O board and the bus simulation board, all input and output signals of the programmable power supply external interface signal (such as a voltage current value, an enable control signal, and the like), and all variables in the simulation model) in the operation process of the system at any time, so as to determine whether the entire system operates according to the expected result of the test case.
Optionally, the upper computer monitors all signals in real time, and judges whether the air conditioner controller conforms to a software design logic, specifically:
displaying the states of all the signals through preset test management software, and judging whether the states are consistent with expected states;
if the two are consistent, the air conditioner controller accords with software design logic;
if not, the air conditioner controller does not accord with the software design logic.
After the steps, signals required by the air conditioner, such as an AC switching signal, a wind speed adjusting signal, a temperature adjusting signal and the like, operated by the HIL upper computer are converted into electric signals required by the air conditioner controller through the simulation model and the simulation equipment and then sent to the air conditioner controller, the air conditioner controller outputs response signals after receiving the signals and operates according to self logic, the signals output by the air conditioner controller are converted through the simulation equipment and then input into the simulation model to drive the simulation model to work, and then operation results are output and returned to the air conditioner controller to perform subsequent closed-loop follow-up control; meanwhile, the upper computer monitors the state of each signal in the running process of the system at any time so as to confirm whether the whole system works according to the expected result of the test case, and by using the method, the software function of the air conditioner controller can be tested in real objects before loading, so that the problem points can be found in advance, the subsequent debugging and rectifying period of the real vehicle can be reduced, the vehicle model development period can be shortened, and the testing efficiency of the air conditioner controller can be improved.
Example two
Correspondingly, referring to fig. 3, fig. 3 is a schematic structural diagram of an air conditioner controller testing device provided by the present invention. As shown in the figure, the air conditioner controller testing device comprises: a signal receiving module 301, a testing module 302 and a monitoring module 303;
the signal receiving module 301 is configured to receive a test signal sent by an upper computer, and enable the test signal to output a first action signal according to a preset logic, where the test signal is generated according to an operation of a user on the upper computer;
the test module 302 is configured to send the first action signal to the air conditioner controller, so that the air conditioner controller outputs a second action signal according to a preset internal logic, drives the simulation model to run according to the second action signal, generates a running result, and returns the running result to the air conditioner controller, so that the air conditioner controller performs closed-loop follow-up control;
the monitoring module 303 is used for acquiring all signals in the testing process, sending all the signals to the upper computer so that the upper computer monitors all the signals in real time, and judging whether the air conditioner controller accords with software design logic.
In this embodiment, the test module 302 includes a signal conversion unit 3021 and a message conversion unit 3022;
the signal conversion unit 3021 is configured to convert the test signal into a first message value;
the message conversion unit 3022 is configured to convert the first message value into the first action signal.
Signals required by the air conditioner, such as an AC (alternating current) switching signal, a wind speed adjusting signal, a temperature adjusting signal and the like, are operated by the HIL upper computer, are converted into electric signals required by the air conditioner controller through a simulation model and simulation equipment and then are sent to the air conditioner controller, the air conditioner controller outputs response signals after receiving the signals and operates according to self logic, the signals output by the air conditioner controller are converted through the simulation equipment and then are input into the simulation model to drive the simulation model to work, and then operation results are output and returned to the air conditioner controller for subsequent closed-loop follow-up control; meanwhile, the upper computer monitors the state of each signal in the running process of the system constantly to confirm whether the whole system works according to the expected result of the test case, the system can realize the software function of the air conditioner controller to carry out physical test before loading, the problem points are found in advance, the follow-up debugging and rectifying period of the real vehicle is reduced, the vehicle model development period is shortened, and the test efficiency of the air conditioner controller is improved.
EXAMPLE III
Correspondingly, the air conditioner controller test system provided by the invention comprises: the air conditioner controller testing device is used for executing the air conditioner controller testing method in the first embodiment;
the upper computer is connected with the air conditioner controller testing device, and the air conditioner controller is connected with the air conditioner controller testing device.
In this embodiment, the upper computer is configured to monitor all signals in real time, and determine whether the air conditioner controller conforms to a software design logic.
The air conditioner controller testing device is used for receiving a testing signal sent by an upper computer and outputting the testing signal to a first action signal according to a preset method, wherein the testing signal is generated according to the operation of a user on the upper 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, a simulation model is driven to run according to the second action signal and generate a running result, the running result is returned to the air conditioner controller, the air conditioner controller is controlled in a closed-loop follow-up mode, all signals in the testing process are collected and uploaded to the upper computer, the upper computer monitors all the signals in real time, and whether the air conditioner controller meets software design logic or not is judged.
The air conditioner controller is used for outputting a second action signal according to preset internal logic.
Compared with the prior art, the air conditioner controller testing method provided by the invention has the advantages that signals required by operating the air conditioner on the HIL upper computer are converted into electric signals required by the air conditioner controller through the simulation model and the simulation equipment and then are sent to the air conditioner controller, the air conditioner controller outputs response signals after receiving the signals and operates according to self logic, the output signals of the air conditioner controller are converted through the simulation equipment and then are input into the simulation model to drive the simulation model to work, the operation result is output and returned to the air conditioner controller to carry out subsequent closed-loop follow-up control, meanwhile, the upper computer monitors the state of each signal in the operation process of the system constantly to confirm whether the whole system operates according to the expected result of the test case, the system can carry out physical testing on the software function of the air conditioner controller before loading, the problem points are found in advance, the debugging and rectification cycle of the subsequent real vehicle is reduced, the vehicle model development cycle is shortened, and the testing efficiency of the air conditioner controller is improved.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that any modifications, equivalents, improvements and the like, which come within the spirit and principle of the invention, may occur to those skilled in the art and are intended to be included within the scope of the invention.

Claims (10)

1. An air conditioner controller testing method is characterized by comprising the following steps:
receiving a test signal sent by an upper computer, and outputting the test signal to a first action signal according to a preset method, wherein the test signal is generated according to the operation of a user on the upper computer;
sending the first action signal to an air conditioner controller so that the air conditioner controller outputs a second action signal according to preset internal logic, driving a simulation model to operate according to the second action signal and generating an operation result, and returning the operation result to the air conditioner controller so that the air conditioner controller performs closed-loop follow-up control;
all signals in the testing process are collected and sent to the upper computer so that the upper computer can monitor all the signals in real time and judge whether the air conditioner controller accords with software design logic.
2. The method for testing the air conditioner controller according to claim 1, wherein the receiving of the test signal sent by the upper computer and the enabling of the test signal to output the first action signal according to a preset logic specifically include:
converting the test signal to obtain a first message value;
and converting the first message value and outputting a first action signal.
3. The method for testing the air conditioner controller according to claim 1, wherein the driving of the simulation model according to the second action signal generates an operation result, and then the operation result is returned to the air conditioner controller, so that the air conditioner controller performs closed-loop follow-up control, specifically:
converting the second action signal through simulation equipment, and outputting a second message value;
and converting the second message value to obtain a control signal, driving a simulation model to operate according to the control signal, converting a corresponding operation result into a voltage signal, and returning the voltage signal to the air conditioner controller so as to enable the air conditioner controller to perform closed-loop follow-up control.
4. The method as claimed in claim 3, wherein the step of driving the simulation model to operate according to the control signal and converting the corresponding operation result into a voltage signal to be returned to the air conditioner controller, so that the air conditioner controller performs closed-loop follow-up control, specifically comprises:
developing and constructing a simulation model according to a controller principle, electrical appliance characteristics, an air conditioner load peripheral principle, load working signals and feedback signals, wherein the simulation model comprises a virtual controller model, a temperature sensor model and an air conditioner load model;
sending an instruction to an air conditioner controller according to the virtual controller model so that the air conditioner controller executes the instruction;
outputting a corresponding resistance value according to the temperature sensor model, converting the corresponding resistance value into a corresponding physical quantity through a simulation hardware board card, and outputting the corresponding physical quantity to an air conditioner controller;
controlling the air conditioner load model to output corresponding actions by inputting conditions in an air conditioner controller to obtain an operation result, wherein the air conditioner load model comprises an air blower model, a water valve motor model, an air blower model motor model, an internal and external circulation motor model and an air conditioner compressor model;
and sending the operation result to an air conditioner controller to enable the air conditioner controller to carry out closed-loop follow-up control.
5. The test method of the air conditioner controller according to claim 3, wherein the simulation device comprises an I/O card board, a bus simulation card board, a programmable power supply, a real-time processor;
the I/O card board sends the air conditioner controller electric signal, receives the air conditioner controller electric signal, and converts the vehicle controller electric signal into a first variable through the card board;
the bus simulation card board provides a physical interface between a communication bus of the air conditioner controller and the simulation model, converts a first variable into a pressure difference signal for the air conditioner controller to recognize, and converts a CAN pressure difference signal output by the air conditioner controller into a second variable;
the program-controlled power supply provides a power source for the electrical signal conversion of the I/O module;
and the real-time processor performs coordination control on each module of the simulation equipment.
6. The air conditioner controller testing method according to claim 1, wherein the upper computer monitors all the signals in real time and judges whether the air conditioner controller meets a software design logic, specifically comprising:
displaying the states of all the signals through preset test management software, and judging whether the states are consistent with expected states;
if the data are consistent, the air conditioner controller accords with the software design logic;
if not, the air conditioner controller does not accord with the software design logic.
7. An air conditioner controller testing device, characterized by comprising: the device comprises a signal receiving module, a testing module and a monitoring module;
the signal receiving module is used for receiving a test signal sent by an upper computer and enabling the test signal to output a first action signal according to a preset logic, wherein the test signal is generated according to the operation of a user on the upper computer;
the test module is used for sending the first action signal to the air conditioner controller so that the air conditioner controller outputs a second action signal according to preset internal logic, drives the simulation model to operate according to the second action signal and generates an operation result, and then returns the operation result to the air conditioner controller so that the air conditioner controller performs closed-loop follow-up control;
the monitoring module is used for collecting all signals in the testing process, sending all the signals to the upper computer so that the upper computer can monitor all the signals in real time, and judging whether the air conditioner controller accords with software design logic.
8. The air conditioner controller testing apparatus of claim 7, wherein the testing module comprises a signal conversion unit and a message conversion unit;
the signal conversion unit is used for converting the test signal to obtain a first message value;
the message conversion unit is used for converting the first message value and outputting a first action signal.
9. An air conditioner controller test system, comprising: the air conditioner controller testing device is used for executing the air conditioner controller testing method according to any one of claims 1 to 6;
the upper computer is connected with the air conditioner controller testing device, and the air conditioner controller is connected with the air conditioner controller testing device.
10. The air conditioner controller test system as set forth in claim 9,
the upper computer is used for monitoring all the signals in real time and judging whether the air conditioner controller accords with software design logic;
the air conditioner controller testing device is used for receiving a testing signal sent by an upper computer and outputting the testing signal to a first action signal according to a preset method, wherein the testing signal is generated according to the operation of a user on the upper 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, a simulation model is driven to run according to the second action signal and generate a running result, the running result is returned to the air conditioner controller so that the air conditioner controller performs closed-loop follow-up control, all signals in the testing process are collected and uploaded to the upper computer so that the upper computer monitors all the signals in real time, and whether the air conditioner controller meets software design logic is judged;
the air conditioner controller is used for outputting a second action signal according to preset internal logic.
CN202211047479.5A 2022-08-29 2022-08-29 Air conditioner controller testing method, device and system Pending CN115542874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211047479.5A CN115542874A (en) 2022-08-29 2022-08-29 Air conditioner controller testing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211047479.5A CN115542874A (en) 2022-08-29 2022-08-29 Air conditioner controller testing method, device and system

Publications (1)

Publication Number Publication Date
CN115542874A true CN115542874A (en) 2022-12-30

Family

ID=84724782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211047479.5A Pending CN115542874A (en) 2022-08-29 2022-08-29 Air conditioner controller testing method, device and system

Country Status (1)

Country Link
CN (1) CN115542874A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116185528A (en) * 2023-04-27 2023-05-30 深圳艾为电气技术有限公司 Flexible configuration method and device for driver software of electric compressor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116185528A (en) * 2023-04-27 2023-05-30 深圳艾为电气技术有限公司 Flexible configuration method and device for driver software of electric compressor
CN116185528B (en) * 2023-04-27 2023-07-21 深圳艾为电气技术有限公司 Flexible configuration method and device for driver software of electric compressor

Similar Documents

Publication Publication Date Title
CN103760809B (en) Simulation method and device for simulating operation of wind turbine generator and PLC system
CN113589787B (en) Hardware-in-loop test method, test device, test system and readable storage medium
CN115542874A (en) Air conditioner controller testing method, device and system
CN106853755B (en) Automobile air conditioning system testing device
CN103645645B (en) Electric locomotive Auxiliary Control Element semi-physical emulation platform
CN101655699A (en) Systems and methods for simulating plant operations
CN104832445A (en) Fan control system and method based on Internet of Things
WO2018218701A1 (en) Maintenance method for heating, ventilation or air conditioning system
CN111730593A (en) Model-based multi-axis robot control device and method
CN112799313A (en) Modeling method of excitation synchronous motor and hardware-in-loop test system
CN207264188U (en) A kind of air conditioning for automobiles control unit automated test device
CN212586737U (en) Automatic test system of automobile motor controller
Akroum et al. A dSPACE DSP control platform for V/F controlled induction motor drive and parameters identification
CN116680169A (en) Software testing method and device, storage medium and vehicle
CN101424435B (en) Rapid researching platform for frequency-change air conditioner
JP2021035097A (en) Power conversion device, motor control system, and motor control program
CN107762822B (en) A kind of self checking method of compressor and the controller of compressor
CN114754477B (en) Air conditioner control system, method, central air conditioner system, device and storage medium
JPH10267353A (en) Air conditioner equipped with system interconnection power generator
CN111338397B (en) Control system of variable working condition rotor test bed
CN106772046A (en) A kind of motor test complex under self-defined electric circumstance
He et al. Research on split type air-conditioner simulation software base on dynamic link library technology
CN113653666B (en) PG fan control device
EP4327228A1 (en) Methods and systems for operating industrial control loops
CN212845647U (en) Frequency converter test system

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