CN107885185B - Method and system for simulating automatic operation of automobile air conditioner controller key knob - Google Patents
Method and system for simulating automatic operation of automobile air conditioner controller key knob Download PDFInfo
- Publication number
- CN107885185B CN107885185B CN201710915287.4A CN201710915287A CN107885185B CN 107885185 B CN107885185 B CN 107885185B CN 201710915287 A CN201710915287 A CN 201710915287A CN 107885185 B CN107885185 B CN 107885185B
- Authority
- CN
- China
- Prior art keywords
- test
- air conditioner
- knob
- key
- conditioner controller
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Air Conditioning Control Device (AREA)
- Air-Conditioning For Vehicles (AREA)
Abstract
The invention relates to the technical field of vehicle-mounted equipment, and particularly discloses a method and a system for simulating automatic operation of a key knob of an automobile air conditioner controller, which comprises the following steps: s1, constructing and analyzing a test case by a test end; s2, the test end sends a test instruction to test the keys or knobs of the automobile air conditioner controller; s3, outputting and recording the test result, the invention realizes the automatic test operation of the automobile air conditioner controller key or knob based on the CAPL program, replaces the manual and robot operation mode, improves the test efficiency, releases the human resource, achieves the effect of convenient and quick test, and saves the production test cost.
Description
Technical Field
The invention relates to the technical field of vehicle-mounted equipment, in particular to a method and a system for simulating automatic operation of a key knob of an automobile air conditioner controller.
Background
As a control center of an automobile air conditioner, in the research and development process of automatic software function testing of the automobile air conditioner, automatic control needs to be achieved on operation of a key or a knob of the automobile air conditioner, and then automatic testing is achieved. The traditional operation method is high in implementation cost, both in economic cost and technical cost, and in the process of testing the software of the automobile air conditioner controller, if a manipulator is not precise enough, the execution timeliness is low.
Disclosure of Invention
Aiming at the technical problems, the invention provides a method and a system for simulating the automatic operation of the automobile air conditioner controller key knob, which realize the automatic test operation of the automobile air conditioner controller key or knob based on a CAPL program, replace manual and robot operation modes, improve the test efficiency and release human resources.
In order to solve the technical problems, the invention provides the following specific scheme: a method for simulating automatic operation of a key knob of an automobile air conditioner controller comprises the following steps of S1, constructing and analyzing a test case by a test end; s2, the test end sends a test instruction to test the keys or knobs of the automobile air conditioner controller; and S3, the test end outputs and records the test result.
Preferably, the step S1 is preceded by the following steps: and S0, completing the system variable setting of the keys or knobs of the automobile air conditioner controller, wherein the system variable setting represents the 'keys' or 'knobs' of the automobile air conditioner controller which can be identified by the test program, and then carrying out corresponding instruction control.
Preferably, the step S2 specifically includes the following steps: s21, detecting the current state of the key or the knob; s22, simulating a human hand to operate a key or a knob; and S23, detecting the actual state of the operated key or knob by the test terminal, and completing the automatic test operation of the key or knob of the automobile air conditioner controller.
Preferably, the step S21 is preceded by the following steps: and S20, controlling the voltage value required by the test case output by the test end, and controlling the output voltage value and the maximum output current value by the programming of computer software to realize normal power supply.
Preferably, the step S22 specifically includes the following steps: the CAPL program instruction controls system variables corresponding to keys or knobs of the automobile air conditioner controller; the invention simulates the key or knob triggering logic through the CAPL program, controls the system variable corresponding to the key or knob, further outputs the corresponding hard wire pulse signal, triggers the key or knob contact on the automobile air conditioner controller, and realizes the automatic operation of the key or knob.
Preferably, the test case comprises a preset instruction and an expected state, and the test case of the invention mainly aims at the test operation of the keys or the knobs of the air conditioner controller, namely, the CAPL programming is used in advance to realize the trigger logic of the analog keys or the knobs and obtain the expected state of the keys or the knobs.
Preferably, the step S23 further includes the following steps: and the test end compares the actual state of the key or the knob with the expected state, so that the automatic test operation of the key or the knob of the automobile air conditioner controller and the output of the test result are realized.
The invention also provides a system for simulating the automatic operation of the automobile air conditioner controller key knob, which comprises a PC end, a tested air conditioner controller and a testing case which are connected with the PC end, and a power supply module connected with the testing case, wherein the tested air conditioner controller is connected with the testing case.
Preferably, the power module comprises a programmable power unit and a regulated power unit, the programmable power unit is used for realizing voltage change in the working process of the system and realizing normal power supply of the system, and the regulated power unit is used for supplying power to the test case.
Preferably, the test case comprises a plurality of board cards, and the board cards realize power supply and ignition signal simulation; measuring input and output voltage and measuring output current; control programmable power supplies, and the like.
Compared with the prior art, the invention has the beneficial effects that: based on a CAPL program, the CAPL program simulates key or knob triggering logic through preset system variables corresponding to keys or knobs of the automobile air conditioner controller, controls the system variables corresponding to the keys or the knobs, further outputs corresponding hard wire pulse signals, triggers key or knob contacts on the automobile air conditioner controller, and realizes automatic operation of the keys or the knobs; and the actual state of the operated key or knob is compared with the expected state, and the test result is output and stored, so that the test efficiency is improved, the human resources are released, and the production test cost of an enterprise is saved.
Drawings
FIG. 1 is a flowchart of method steps according to a first embodiment of the present invention;
FIG. 2 is a flowchart of method steps according to a second embodiment through a fifth embodiment of the present invention;
fig. 3 is a detailed process diagram of step S2 according to the third to fifth embodiments of the present invention;
fig. 4 is a block diagram of the overall system structure according to a seventh embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following further explains the technical solution of the present invention with reference to the drawings.
The first embodiment is as follows: as shown in fig. 1, a method for simulating automatic operation of a key knob of an air conditioner controller of an automobile comprises the following steps:
s1, constructing and analyzing a test case by a test end;
s2, the test end sends a test instruction to test the keys or knobs of the automobile air conditioner controller;
and S3, the test end outputs and records the test result.
In this embodiment, based on the CAPL program, the automatic test operation on the keys or the knobs of the vehicle air conditioner controller is completed through the preset test case, and the test result is output and recorded, so that the test efficiency is improved, the human resources are released, and the rapid and convenient test effect is realized.
Example two: as shown in fig. 2, a method for simulating automatic operation of a key knob of an air conditioner controller of a vehicle comprises the following steps:
s0, completing the system variable setting of the automobile air conditioner controller key or knob;
the system variable setting in this step of this embodiment represents a "key" or a "knob" of the vehicle air conditioner controller that can be identified by the test program, and then corresponding command control is performed.
S1, constructing and analyzing a test case by a test end;
s2, the test end sends a test instruction to test the keys or knobs of the automobile air conditioner controller;
and S3, the test end outputs and records the test result.
The system variable setting in this embodiment represents the keys or knobs of the air conditioner controller of the vehicle that can be identified by the test program, the automatic test operation of the keys or knobs of the air conditioner controller of the vehicle is completed through the preset test case, and the test result is output and recorded, so that the test efficiency is improved, the human resources are released, and the rapid and convenient test effect is realized.
Example three: as shown in fig. 2 and 3, a method for simulating automatic operation of a key knob of an air conditioner controller of a vehicle comprises the following steps:
s0, completing the system variable setting of the automobile air conditioner controller key or knob;
s1, constructing and analyzing a test case by a test end;
s2, the test end sends a test instruction to test the keys or knobs of the automobile air conditioner controller;
and S3, the test end outputs and records the test result.
In this embodiment, step S2 specifically includes the following steps: s21, detecting the current state of the key or the knob; s22, simulating a human hand to operate a key or a knob; and S23, detecting the actual state of the operated key or knob by the test terminal, and completing the automatic test operation of the key or knob of the automobile air conditioner controller.
Example four: as shown in fig. 2 and 3, a method for simulating automatic operation of a key knob of an air conditioner controller of a vehicle comprises the following steps:
s0, completing the system variable setting of the automobile air conditioner controller key or knob;
s1, constructing and analyzing a test case by a test end;
s21, detecting the current state of the key or the knob by the test terminal; s22, simulating a human hand to operate a key or a knob; s23, detecting the actual state of the operated key or knob by the test terminal;
and S3, the test end outputs and records the test result.
In this embodiment, before the step S21, the following process is further included: s20, the test end controls to output a voltage value required by the test case, and controls the output voltage value and the maximum output current value through computer software programming, so as to implement normal power supply.
Example five: as shown in fig. 2 and 3, a method for simulating automatic operation of a key knob of an air conditioner controller of a vehicle comprises the following steps:
s0, completing the system variable setting of the automobile air conditioner controller key or knob;
s1, constructing and analyzing a test case by a test end;
s21, detecting the current state of the key or the knob by the test terminal; s22, simulating a human hand to operate a key or a knob; s23, detecting the actual state of the operated key or knob by the test terminal;
and S3, the test end outputs and records the test result.
In this embodiment, the step S22 specifically includes the following steps: the CAPL program instruction controls system variables corresponding to keys or knobs of the automobile air conditioner controller; the invention simulates the key or knob triggering logic through the CAPL program, controls the system variable corresponding to the key or knob, further outputs the corresponding hard wire pulse signal, triggers the key or knob contact on the automobile air conditioner controller, and realizes the automatic operation of the key or knob.
Example six: the test case of the present invention is mainly directed to test operations performed on the keys or knobs of the air conditioner controller, that is, the test case realizes the simulation of the trigger logic of the keys or knobs through CAPL programming in advance, and obtains the expected states of the corresponding keys or knobs.
In this embodiment, the step S23 further includes the following steps: and the test end compares the actual state of the key or the knob with the expected state, so that the automatic test operation of the key or the knob of the automobile air conditioner controller and the output of the test result are realized.
Example seven: as shown in fig. 4, a system for automatically operating a key knob of an automotive air conditioning controller includes a PC terminal, a tested air conditioning controller and a testing case connected to the PC terminal, and a power module connected to the testing case, where the tested air conditioning controller is connected to the testing case.
In this embodiment, the power module includes a programmable power unit and a regulated power unit, the programmable power unit is used for realizing voltage change in the system working process and realizing normal power supply of the system, and the regulated power unit is used for supplying power to the test chassis; the test case comprises a plurality of board cards, and the board cards realize power supply and ignition signal simulation; measuring input and output voltage and measuring output current; control programmable power supplies, and the like.
It should be noted that the test chassis in this embodiment is a Vector VT test chassis of germany Vector company, and includes a VT7001 board card, a VT2516 board card, and a VT2848 board card, where the VT7001 board card realizes power supply and ignition signal simulation; measuring input and output voltage and measuring output current; controlling the programmable power supply.
The VT2516 board card realizes voltage measurement, instantaneous voltage and average voltage calculation; and testing the function of the PWM signal. The VT2848 board card realizes measurement or simulation of switching signals and PWM signals, such as: and measuring the on and off of the keys, the knobs, the LED fields and the indicator lamps. Of course, the present embodiment is not limited to be used for the Vector VT test chassis and the VT7001 board card, the VT2516 board card, and the VT2848 board card, and is naturally not limited to the functions implemented by the above board cards, and other hardware modules capable of implementing the above functions may also be adopted in the present embodiment.
In the specific implementation process of the embodiment, the PC end controls the test case to initialize, sends a test case to the test case to realize the operation of the keys or the knobs of the automobile air conditioner controller, the test case outputs a voltage value of programming control and detects the current state of the keys or the knobs, simulates the trigger logic of the keys or the knobs through a CAPL program, controls the system variables corresponding to the keys or the knobs, further outputs corresponding hard wire pulse signals, and the keys or the knob contacts on the tested air conditioner controller realize the automatic operation of the keys or the knobs. The tested air conditioner controller receives the hard wire pulse signal sent by the testing case through the CAN bus, detects whether the signal is correct or not, outputs the detection result to the PC end through the CAN bus, records and stores the detection result, and improves the testing efficiency.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
Claims (8)
1. A method for simulating automatic operation of a key knob of an automobile air conditioner controller is characterized by comprising the following steps:
s1, constructing and analyzing a test case by a test end;
s2, the test end sends a test instruction to test the keys or knobs of the automobile air conditioner controller;
s21, detecting the current state of the key or the knob;
s22, simulating a human hand to operate a key or a knob;
s23, detecting the actual state of the operated key or knob by the test terminal;
s3, before the test end outputs and records the test result in the step S1, the following processes are also included: s0, completing the system variable setting of the automobile air conditioner controller key or knob;
the step S22 specifically includes the following steps: the CAPL program instruction controls system variables corresponding to keys or knobs of the automobile air conditioner controller; the key or knob triggering logic is simulated through a CAPL program, the system variable corresponding to the key or knob is controlled, a corresponding hard wire pulse signal is output, a key or knob contact on an automobile air conditioner controller is triggered, and the automatic operation of the key or knob is realized.
2. The method for simulating automatic operation of a key knob of an air conditioner controller in a car as claimed in claim 1, wherein the step S21 is preceded by the following steps: and S20, the test end controls and outputs the voltage value required by the test case.
3. The method for simulating automatic operation of a key knob of an air conditioner controller in a vehicle as claimed in claim 1, wherein the step S22 specifically comprises the following steps: and the CAPL program command controls system variables corresponding to keys or knobs of the automobile air conditioner controller.
4. The method for simulating automatic operation of a key knob of an air conditioner controller of an automobile as claimed in claim 3, wherein: the test case includes preset instructions and a desired state.
5. The method for simulating automatic operation of a key knob of an air conditioner controller in a car as claimed in claim 4, wherein said step S23 further comprises the following process: the test end compares the actual state of the key or knob with the desired state.
6. The system for simulating the automatic operation of the automobile air conditioner controller key knob according to any one of claims 1 to 5, characterized in that: the device comprises a PC end, a tested air conditioner controller and a testing case which are connected with the PC end, and a power supply module connected with the testing case, wherein the tested air conditioner controller is connected with the testing case.
7. The system for simulating an automatic operation method of a key knob of an air conditioner controller of a vehicle according to claim 6, wherein: the power module comprises a programmable power unit and a stabilized voltage power unit.
8. The system for simulating an automatic operation method of a key knob of an air conditioner controller of a vehicle according to claim 6, wherein: the test case comprises a plurality of board cards.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710915287.4A CN107885185B (en) | 2017-09-30 | 2017-09-30 | Method and system for simulating automatic operation of automobile air conditioner controller key knob |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710915287.4A CN107885185B (en) | 2017-09-30 | 2017-09-30 | Method and system for simulating automatic operation of automobile air conditioner controller key knob |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107885185A CN107885185A (en) | 2018-04-06 |
CN107885185B true CN107885185B (en) | 2020-12-04 |
Family
ID=61781230
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710915287.4A Active CN107885185B (en) | 2017-09-30 | 2017-09-30 | Method and system for simulating automatic operation of automobile air conditioner controller key knob |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107885185B (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203502153U (en) * | 2013-09-09 | 2014-03-26 | 苏州凌创电子系统有限公司 | Rotary knob test system of automobile air conditioner controller |
CN106383465A (en) * | 2016-09-20 | 2017-02-08 | 青岛时创智能技术有限公司 | Program control voltage regulation circuit capable of replacing manual voltage regulation through rotary knob |
CN106774260B (en) * | 2016-12-22 | 2019-06-21 | 惠州华阳通用电子有限公司 | The automatic test approach and its system of on-board air conditioner controller |
-
2017
- 2017-09-30 CN CN201710915287.4A patent/CN107885185B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107885185A (en) | 2018-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108205308B (en) | Automatic diagnosis test system based on automobile body domain controller | |
KR101230902B1 (en) | System for evaluating electronic parts using vehicle simulator | |
CN111781910A (en) | Automatic testing arrangement based on automotive electronics shift system | |
CN108594792B (en) | Hardware-in-loop test system and test equipment for bidirectional vehicle-mounted charger | |
CN109507981B (en) | Vehicle testing method and device and machine-readable storage medium | |
CN107885186B (en) | Automatic testing method and system for man-machine interaction function of automobile air conditioner controller | |
CN108918991A (en) | A kind of car electrics power supply changes automatization test system and its test method | |
CN103558849B (en) | A kind of method of pure electric automobile control strategy debugging and network test | |
CN112697455A (en) | Automatic real vehicle testing system | |
CN107885185B (en) | Method and system for simulating automatic operation of automobile air conditioner controller key knob | |
CN103455024A (en) | System and method for testing ECU | |
CN114113859A (en) | Electrical function testing device and testing method for automobile combination instrument | |
CN113466579A (en) | High-temperature aging automatic test monitoring method and system for vehicle-mounted product | |
CN109507571B (en) | Testing device and testing system | |
CN116448158A (en) | Method and device for testing combination instrument in vehicle and electronic device | |
CN209764966U (en) | power supply simulation system | |
CN105425778A (en) | Test platform for train network control system based on CAN (Controller Area Network) bus | |
CN205015167U (en) | Pure electric vehicles semi -physical simulation test bench | |
CN114895649A (en) | Electric automobile thermal management system testing device, method and system and electronic equipment | |
CN114661021A (en) | Hardware-in-loop test method and device for controller | |
CN207556879U (en) | A kind of steering column test platform based on Vector tools | |
WO2014184949A1 (en) | Software testing device, software testing method, and program | |
CN104238378A (en) | Simulation testing method and system of electronic appliance architecture of integral car | |
CN216161011U (en) | Control panel, rack, controller functional test system | |
CN112882454B (en) | Road spectrum testing method, system and computer readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |