CN112945602A - Air conditioner self-learning software and hardware combined test system - Google Patents

Air conditioner self-learning software and hardware combined test system Download PDF

Info

Publication number
CN112945602A
CN112945602A CN202110287731.9A CN202110287731A CN112945602A CN 112945602 A CN112945602 A CN 112945602A CN 202110287731 A CN202110287731 A CN 202110287731A CN 112945602 A CN112945602 A CN 112945602A
Authority
CN
China
Prior art keywords
test
hardware
software
data
module
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
CN202110287731.9A
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.)
Midea Group Co Ltd
GD Midea Heating and Ventilating Equipment Co Ltd
Guangdong Midea HVAC Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Heating and Ventilating Equipment 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 Midea Group Co Ltd, GD Midea Heating and Ventilating Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN202110287731.9A priority Critical patent/CN112945602A/en
Publication of CN112945602A publication Critical patent/CN112945602A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/005Testing of complete machines, e.g. washing-machines or mobile phones
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses an air conditioner self-learning software and hardware combined test system, which comprises a data collection module and a simulation verification module; in the data collection module, a plurality of data collection terminals collect running state data of target equipment in different test stages in real time and upload the running state data to a cloud platform; the cloud platform performs data processing and optimization to generate a test case; downloading and storing the test cases by the test case library; in the simulation verification module, a control unit reads a test case of target equipment from a test case library and determines software data and hardware data in the test case; the software testing unit tests the software part of the target equipment according to the software data and generates a software testing report; and the hardware testing unit tests the hardware part of the target equipment according to the hardware data and generates a hardware testing report. Compared with the prior art, the test method and the test device can accelerate the test speed of the software and hardware of the air conditioner and improve the test coverage.

Description

Air conditioner self-learning software and hardware combined test system
Technical Field
The application belongs to the technical field of equipment testing, and particularly relates to an air conditioner self-learning software and hardware combined testing system.
Background
The traditional software and hardware testing and inspection is based on a single board, a simulator of equipment to be inspected is manufactured, manual adjustment is carried out, and experimental results are recorded. As a result, the efficiency is low, the recording accuracy is low, and the problem is difficult to reproduce again.
Taking air conditioning equipment as an example, the air conditioning equipment generally comprises two parts, namely software and hardware, the software and the hardware need to be tested in the design and experiment stages, and various working conditions and characteristics of a client and a complex system can not be covered by the test scheme of the design and experiment stages. Once a problem occurs at a client, the software and hardware defects are difficult to reproduce due to the fact that the field situation is unknown, and the reproduction period is long.
Disclosure of Invention
In view of this, the embodiment of the present application provides a self-learning software and hardware combined testing system for an air conditioner, so as to accelerate the testing speed of the software and hardware of the air conditioner and improve the testing coverage.
The embodiment of the application provides an air conditioner self-learning software and hardware combined test system, which comprises:
the system comprises a data collection module and a simulation verification module; wherein the content of the first and second substances,
the data collection module comprises a plurality of data collection terminals, a cloud platform and a test case library; the data collection terminals are in communication connection with a cloud platform, and the cloud platform is in communication connection with the test case library;
the simulation verification module comprises a control unit, a software test unit and a hardware test unit; the control unit is respectively in communication connection with the test case library, the software test unit and the hardware test unit;
the data collection terminals are used for collecting the running state data of the target equipment in different testing stages in real time and uploading the running state data to the cloud platform; the cloud platform is used for carrying out data processing and optimization on the running state data of the different test stages to generate test cases of the target equipment at the different test stages; the test case library is used for downloading and storing test cases of different test stages of the target equipment;
the control unit is used for reading the test case of the target equipment from the test case library and determining software data and hardware data in the test case; the software testing unit is used for testing the software part of the target equipment according to the software data and generating a software testing report; and the hardware testing unit is used for testing the hardware part of the target equipment according to the hardware data and generating a hardware testing report.
In some embodiments of the present application, the software testing unit includes a model output module and a result comparison module;
the model output module is used for calling a software model corresponding to the software part of the target equipment, and verifying the software data by using the software model to obtain a software verification result;
and the result comparison module is used for comparing the software verification result with the software test standard to obtain a software test result and outputting a software test report.
In some embodiments of the present application, the software test report includes software test criteria, software test results, and test coverage.
In some embodiments of the present application, the hardware test unit includes PCBA hardware, a signal output module, a signal feedback module, a power supply module, and a hardware reporting module;
the PCBA hardware is used for simulating a hardware part of the target equipment according to the hardware data and outputting a hardware test report;
the signal output module is used for outputting a digital/analog control signal to PCBA hardware;
the signal feedback module is used for outputting a feedback signal of the PCBA hardware to the signal output module;
and the power supply module is used for supplying power to the PCBA hardware, the signal output module and the signal feedback module.
In some embodiments of the present application, the hardware test report includes: hardware test standards and hardware test results.
In some embodiments of the present application, the data collection terminal uploads the collected operation state data to the cloud platform through 4G/5G, WIFI, bluetooth or USB.
In some embodiments of the present application, the operating state data is normal operating state data or abnormal operating state data.
In some embodiments of the present application, the software testing unit adopts a software-in-loop testing mode.
In some embodiments of the present application, the hardware testing unit adopts a hardware-in-loop testing manner.
In some embodiments of the present application, the target device comprises an air conditioning device.
The air conditioner self-learning software and hardware combined test system provided by the embodiment of the application comprises a data collection module and a simulation verification module; the data collection module comprises a plurality of data collection terminals, a cloud platform and a test case library; the simulation verification module comprises a control unit, a software test unit and a hardware test unit; the method comprises the following steps that a plurality of data collection terminals collect running state data of target equipment in different testing stages in real time and upload the running state data to a cloud platform; the cloud platform performs data processing and optimization on the running state data of the different test stages to generate test cases of the target equipment at the different test stages; the test case base downloads and stores test cases of different test stages of the target equipment; the control unit reads a test case of the target equipment from the test case library and determines software data and hardware data in the test case; the software testing unit tests the software part of the target equipment according to the software data and generates a software testing report; and the hardware testing unit tests the hardware part of the target equipment according to the hardware data and generates a hardware testing report. Compared with the prior art, the air conditioner self-learning software and hardware combined test system can accelerate the testing speed of the software and hardware of the air conditioner and improve the testing coverage.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram illustrating an air conditioner self-learning software and hardware combined test system provided by an embodiment of the application;
FIG. 2 is a schematic diagram of a software testing unit provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a hardware test unit provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a control unit provided in an embodiment of the present application;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "connected," "secured," and the like are to be construed broadly, and for example, "secured" may be a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In addition, the technical solutions in the embodiments of the present invention may be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should not be considered to exist, and is not within the protection scope of the present invention.
The application provides an air conditioner self-learning software and hardware combined test system which comprises a data collection module and a simulation verification module; the data collection module comprises a plurality of data collection terminals, a cloud platform and a test case library; the simulation verification module comprises a control unit, a software testing unit and a hardware testing unit; the method comprises the following steps that a plurality of data collection terminals collect running state data of target equipment in different testing stages in real time and upload the running state data to a cloud platform; the cloud platform performs data processing and optimization on the running state data of different testing stages to generate testing cases of the target equipment at different testing stages; the test case base downloads and stores test cases of different test stages of the target equipment; the control unit reads a test case of the target equipment from the test case library and determines software data and hardware data in the test case; the software testing unit tests the software part of the target equipment according to the software data and generates a software testing report; the hardware testing unit tests the hardware part of the target device according to the hardware data and generates a hardware testing report. Compared with the prior art, the air conditioner self-learning software and hardware combined test system can accelerate the software and hardware test speed of the air conditioner and improve the test coverage.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the present application are described in detail below.
Example one
Fig. 1 is a schematic diagram of an air conditioner self-learning software and hardware combined test system provided in an embodiment of the present application, and as shown in fig. 1, the test system 10 includes: a data collection module 100 and a simulation verification module 200; wherein the content of the first and second substances,
a data collection module 100 including a plurality of data collection terminals 110, a cloud platform 120, and a test case library 130; the data collection terminals 110 are in communication connection with the cloud platform 120, and the cloud platform 120 is in communication connection with the test case library 130;
according to some embodiments of the present application, the data collection terminal 110 may be communicatively connected to the cloud platform 120 through 4G/5G, WIFI, bluetooth, USB, or the like.
In practical applications, the data collection terminals 110 may be installed in different scenes where target devices (e.g., air-conditioning devices of different models) are located, such as a customer building (customer actual use), a laboratory (factory test), and a design room (design test), and are configured to collect operating state data of the target devices in different test phases, including a customer test phase corresponding to the customer building, an experimental test phase corresponding to the laboratory, and a design test phase corresponding to the design room.
In practical application, for a laboratory and a design room, a test interface program can be defined in a standard mode, and test input and test output are uploaded to a cloud platform through the test interface program.
Specifically, the data collection terminals 110 collect the running state data of the target device at different testing stages in real time, and upload the running state data to the cloud platform 120; the cloud platform 120 performs data processing and optimization on the running state data of different test stages to generate test cases of different test stages of the target device, and provides authority to enable the test case library to download test case data; the test case library 130 downloads and stores test cases of different test stages of the target device. And the test case library stores, arranges and plans the test database of each type of equipment.
As shown in fig. 1, the target device first goes through a design test stage, in which a design case is used; secondly, an experimental test stage adopts experimental cases; finally, a customer testing stage (a customer actual use stage) is carried out, and an actual case is adopted in the customer testing stage. Different test strategies are adopted in different test stages to generate operation state data of the different test stages, then test cases of the different test stages are generated according to the operation state data of the different test stages, and design cases, experimental cases and actual cases are the test cases of the different test stages.
For the operation state data, for example, the operation state data of the air conditioning equipment includes all the acquired software data and hardware data, such as an input control signal, output operation data, a switch voltage, whether a switch is turned on, and the like. According to some embodiments of the present application, the operation state data may be normal operation state data or abnormal operation state data.
In the application, the collection is from a design room, a laboratory, the collection is from the actual customer working condition, the data processing and optimization are carried out, the data enters a test case library, the test scheme is completely from the actual case, and the high-complexity requirement of the test can be met.
A simulation verification module 200 including a control unit 210, a software test unit 220, and a hardware test unit 230; the control unit 210 is respectively connected with the test case library 130, the software testing unit 220 and the hardware testing unit 230 in a communication way;
the control unit 210 reads the test case of the target device from the test case library 130, and determines software data and hardware data in the test case; the software testing unit 220 tests a software part of the target device according to the software data and generates a software test report; the hardware test unit 230 tests a hardware part of the target device according to the hardware data and generates a hardware test report. In the application, the control unit can extract various test cases and implement different test strategies in the stages of equipment design, verification and deployment.
In the past, in a client, once a problem occurs in equipment, the defect reproduction difficulty is high and the reproduction period is long because the field condition is unknown. In the future, as the data comes from the customer, once the field problem exists, the defect can be rapidly positioned according to the test case.
In the application, the test cases of each stage of the equipment are collected in the test case library, and the test case library is continuously updated and enriched through the data collection terminal and the cloud platform, so that the test cases in the test case library can cover various working conditions of users and complex systems, automatic tests can be performed according to user requirements, and the test coverage is high.
According to some embodiments of the present application, as shown in fig. 2, the software testing unit 220 includes a model output module 221 and a result comparison module 222;
the model output module 221 is configured to invoke a software model corresponding to the software part of the target device, and verify software data by using the software model to obtain a software verification result; wherein the software model may be a software control model formed using C, Matlab.
And the result comparison module 222 is used for comparing the software verification result with the software test standard to obtain a software test result and outputting a software test report. According to some embodiments of the present application, the software test report may include software test criteria, software test results, and test coverage.
According to the embodiment, the test case can cover various working conditions of the user and the complex system, so that the accuracy of software verification is greatly improved, the verification time is saved, the software development speed is greatly improved, and the user can be quickly responded.
According to some embodiments of the present application, as shown in fig. 3, the hardware testing unit 230 includes PCBA hardware 231, a signal output module 232, a signal feedback module 233, and a power supply module 234;
the PCBA hardware 231 is used for simulating a hardware part of the target equipment according to the hardware data and outputting a hardware test report; the PCBA is a PCB blank board which is subjected to SMT (surface mount technology) component feeding or whole manufacturing process of DIP (dual in-line package) components, and is called PCBA for short, wherein the SMT (surface mount technology) and the DIP (dual in-line package) components are integrated on the PCB. The hardware test report comprises: hardware test standards and hardware test results. The PCBA hardware is a universal hardware testing module, and can simulate the hardware of an internal unit and an external unit of various air-conditioning equipment.
A signal output module 232 for outputting digital/analog control signals to the PCBA hardware;
a signal feedback module 233, configured to output a feedback signal of the PCBA hardware to the signal output module, so that the signal output module adjusts output of the digital/analog control signal;
and a power module 234 for continuously supplying power to the PCBA hardware, the signal output module, and the signal feedback module.
In the application, due to the replaceability of the hardware and the software module, the hardware and the software module can be replaced to implement different tests according to the requirements of users.
According to some embodiments of the present application, the software test unit may employ a software-in-loop test (SIL) scheme. The hardware test unit may adopt a hardware-in-loop test (HIL) manner.
In the application, the traversal test of the memory unit and the logic of the target equipment is realized by using an SIL detection technology, and the functions of online automatic test, automatic recording and automatic judgment are realized by combining a database; by using the HIL technology, the functions of automatic output, automatic recording, automatic judgment and automatic reporting of the hardware in the ring are realized.
For ease of understanding, as shown in fig. 1, the present application also provides a specific embodiment:
1) and collecting the test cases of the customer buildings, uploading the test cases to the cloud platform, and updating the test case library.
2) And collecting test cases of the laboratory and the design room, uploading the test cases to a cloud platform, and updating a test case library.
3) The test cases are read by the server (the control unit) and the software and hardware tests are automatically performed.
4) And feeding back a test report to the user after the test is finished, wherein the test report is used for reporting defects and multiplexing tests.
According to the method and the device, the test cases generated by the air conditioning equipment in different stages such as a design stage, an experiment stage and a customer actual use stage are collected, the test cases under various use working conditions can meet the high complexity requirement of air conditioning equipment testing, and the test cases in the air conditioning test case library can cover various use working conditions of the air conditioner, so that when the air conditioner breaks down, a user can be helped to quickly and accurately position the fault position of the air conditioner, judge the fault reason, give a solution and the like.
The self-learning software and hardware combined test system provided by the embodiment of the application comprises a data collection module and a simulation verification module; the data collection module comprises a plurality of data collection terminals, a cloud platform and a test case library; the simulation verification module comprises a control unit, a software test unit and a hardware test unit; the method comprises the following steps that a plurality of data collection terminals collect running state data of target equipment in different testing stages in real time and upload the running state data to a cloud platform; the cloud platform performs data processing and optimization on the running state data of the different test stages to generate test cases of the target equipment at the different test stages; the test case base downloads and stores test cases of different test stages of the target equipment; the control unit reads a test case of the target equipment from the test case library and determines software data and hardware data in the test case; the software testing unit tests the software part of the target equipment according to the software data and generates a software testing report; and the hardware testing unit tests the hardware part of the target equipment according to the hardware data and generates a hardware testing report. Compared with the prior art, the air conditioner self-learning software and hardware combined test system can accelerate the testing speed of the software and hardware of the air conditioner and improve the testing coverage.
Example two
The embodiment of the application also provides an air conditioner self-learning software and hardware combined test method, which is based on the air conditioner self-learning software and hardware combined test system in the first embodiment and comprises the following steps:
the method comprises the following steps that a plurality of data collection terminals collect running state data of target equipment in different testing stages in real time and upload the running state data to a cloud platform;
the cloud platform performs data processing and optimization on the running state data of the different test stages to generate test cases of the target equipment at the different test stages;
the test case base downloads and stores test cases of different test stages of the target equipment;
the control unit reads a test case of the target equipment from the test case library and determines software data and hardware data in the test case;
the software testing unit tests the software part of the target equipment according to the software data and generates a software testing report; and the hardware testing unit tests the hardware part of the target equipment according to the hardware data and generates a hardware testing report.
According to some embodiments of the present application, the software testing unit includes a model output module and a result comparison module;
the model output module calls a software model corresponding to the software part of the target equipment, and the software model is used for verifying the software data to obtain a software verification result;
and the result comparison module compares the software verification result with the software test standard to obtain a software test result and outputs a software test report.
According to some embodiments of the present application, the software test report includes software test criteria, software test results, and test coverage.
According to some embodiments of the present application, a hardware test unit includes PCBA hardware, a signal output module, a signal feedback module, and a power module;
the PCBA hardware simulates a hardware part of the target equipment according to the hardware data and outputs a hardware test report;
the signal output module outputs a digital/analog control signal to PCBA hardware;
the signal feedback module outputs a feedback signal of the PCBA hardware;
the power supply module supplies power.
According to some embodiments of the present application, the hardware test report includes: hardware test standards and hardware test results.
According to some embodiments of the present application, the operation state data is normal operation state data or abnormal operation state data.
According to some embodiments of the present application, as shown in fig. 4, the control unit 210 in the above embodiments may be configured as a server, and the server includes: the self-learning software and hardware combined test system comprises a memory 211, a processor 212 and a computer program which is stored on the memory 211 and can run on the processor 212, wherein the processor 212 executes the computer program to realize the self-learning software and hardware combined test method in the second embodiment.
Specifically, the server may further include: the system comprises a processor, a memory, a bus and a communication interface, wherein the processor, the communication interface and the memory are connected through the bus; the memory is stored with a computer program capable of running on the processor, and the processor executes the self-learning software and hardware combined test method provided by any one of the foregoing embodiments when running the computer program.
The Memory may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network and the like can be used.
The bus may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory is used for storing a program, and the processor executes the program after receiving an execution instruction, and the self-learning software and hardware joint test method disclosed by any embodiment of the application can be applied to or implemented by the processor.
The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
Specifically, as shown in fig. 1, the test system 10 includes: a data collection module 100 and a simulation verification module 200; wherein the content of the first and second substances,
a data collection module 100 including a plurality of data collection terminals 110, a cloud platform 120, and a test case library 130; the data collection terminals 110 are in communication connection with the cloud platform 120, and the cloud platform 120 is in communication connection with the test case library 130;
according to some embodiments of the present application, the data collection terminal 110 may be communicatively connected to the cloud platform 120 through 4G/5G, WIFI, bluetooth, USB, or the like.
In practical applications, the data collection terminals 110 may be installed in different scenes where target devices (e.g., air-conditioning devices of different models) are located, such as a customer building (customer actual use), a laboratory (factory test), and a design room (design test), and are configured to collect operating state data of the target devices in different test phases, including a customer test phase corresponding to the customer building, an experimental test phase corresponding to the laboratory, and a design test phase corresponding to the design room.
In practical application, for a laboratory and a design room, a test interface program can be defined in a standard mode, and test input and test output are uploaded to a cloud platform through the test interface program.
Specifically, the data collection terminals 110 collect the running state data of the target device at different testing stages in real time, and upload the running state data to the cloud platform 120; the cloud platform 120 performs data processing and optimization on the running state data of different test stages to generate test cases of different test stages of the target device, and provides authority to enable the test case library to download test case data; the test case library 130 downloads and stores test cases of different test stages of the target device. And the test case library stores, arranges and plans the test database of each type of equipment.
As shown in fig. 1, the target device first goes through a design test stage, in which a design case is used; secondly, an experimental test stage adopts experimental cases; finally, a customer testing stage (a customer actual use stage) is carried out, and an actual case is adopted in the customer testing stage. Different test strategies are adopted in different test stages to generate operation state data of the different test stages, then test cases of the different test stages are generated according to the operation state data of the different test stages, and design cases, experimental cases and actual cases are the test cases of the different test stages.
For the operation state data, for example, the operation state data of the air conditioning equipment includes all the acquired software data and hardware data, such as an input control signal, output operation data, a switch voltage, whether a switch is turned on, and the like. According to some embodiments of the present application, the operation state data may be normal operation state data or abnormal operation state data.
In the application, the collection is from a design room, a laboratory, the collection is from the actual customer working condition, the data processing and optimization are carried out, the data enters a test case library, the test scheme is completely from the actual case, and the high-complexity requirement of the test can be met.
A simulation verification module 200 including a control unit 210, a software test unit 220, and a hardware test unit 230; the control unit 210 is respectively connected with the test case library 130, the software testing unit 220 and the hardware testing unit 230 in a communication way;
the control unit 210 reads the test case of the target device from the test case library 130, and determines software data and hardware data in the test case; the software testing unit 220 tests a software part of the target device according to the software data and generates a software test report; the hardware test unit 230 tests a hardware part of the target device according to the hardware data and generates a hardware test report. In the application, the control unit can extract various test cases and implement different test strategies in the stages of equipment design, verification and deployment.
In the past, in a client, once a problem occurs in equipment, the defect reproduction difficulty is high and the reproduction period is long because the field condition is unknown. In the future, as the data comes from the customer, once the field problem exists, the defect can be rapidly positioned according to the test case.
In the application, the test cases of each stage of the equipment are collected in the test case library, and the test case library is continuously updated and enriched through the data collection terminal and the cloud platform, so that the test cases in the test case library can cover various working conditions of users and complex systems, automatic tests can be performed according to user requirements, and the test coverage is high.
According to some embodiments of the present application, the software testing unit 220 includes a model output module 221 and a result comparison module 222;
the model output module 221 is configured to invoke a software model corresponding to the software part of the target device, and verify software data by using the software model to obtain a software verification result; wherein the software model may be a software control model formed using C, Matlab.
And the result comparison module 222 is used for comparing the software verification result with the software test standard to obtain a software test result and outputting a software test report. According to some embodiments of the present application, the software test report may include software test criteria, software test results, and test coverage.
According to the embodiment, the test case can cover various working conditions of the user and the complex system, so that the accuracy of software verification is greatly improved, the verification time is saved, the software development speed is greatly improved, and the user can be quickly responded.
According to some embodiments of the present application, as shown in fig. 1, the hardware testing unit 230 includes PCBA hardware 231, a signal output module 232, a signal feedback module 233, and a power supply module 234;
the PCBA hardware 231 is used for simulating a hardware part of the target equipment according to the hardware data and outputting a hardware test report; the PCBA is a PCB blank board which is subjected to SMT (surface mount technology) component feeding or whole manufacturing process of DIP (dual in-line package) components, and is called PCBA for short, wherein the SMT (surface mount technology) and the DIP (dual in-line package) components are integrated on the PCB. The hardware test report comprises: hardware test standards and hardware test results. The PCBA hardware is a universal hardware testing module, and can simulate the hardware of an internal unit and an external unit of various air-conditioning equipment.
A signal output module 232 for outputting digital/analog control signals to the PCBA hardware;
a signal feedback module 233, configured to output a feedback signal of the PCBA hardware;
and a power supply module 234 for supplying power.
In the application, due to the replaceability of the hardware and the software module, the hardware and the software module can be replaced to implement different tests according to the requirements of users.
According to some embodiments of the present application, the software test unit may employ a software-in-loop test (SIL) scheme. The hardware test unit may adopt a hardware-in-loop test (HIL) manner.
In the application, the traversal test of the memory unit and the logic of the target equipment is realized by using an SIL detection technology, and the functions of online automatic test, automatic recording and automatic judgment are realized by combining a database; by using the HIL technology, the functions of automatic output, automatic recording, automatic judgment and automatic reporting of the hardware in the ring are realized.
It should be noted that:
in the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the creation apparatus of a virtual machine according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The utility model provides an air conditioner is from learning software and hardware and is united test system which characterized in that includes: the system comprises a data collection module and a simulation verification module; wherein the content of the first and second substances,
the data collection module comprises a plurality of data collection terminals, a cloud platform and a test case library; the data collection terminals are in communication connection with a cloud platform, and the cloud platform is in communication connection with the test case library;
the simulation verification module comprises a control unit, a software test unit and a hardware test unit; the control unit is respectively in communication connection with the test case library, the software test unit and the hardware test unit; wherein the content of the first and second substances,
the data collection terminals are used for collecting the running state data of the target equipment in different testing stages in real time and uploading the running state data to the cloud platform; the cloud platform is used for carrying out data processing and optimization on the running state data of the different test stages to generate test cases of the target equipment at the different test stages; the test case library is used for downloading and storing test cases of different test stages of the target equipment;
the control unit is used for reading a test case of the target equipment from the test case library and determining software data and hardware data in the test case; the software testing unit is used for testing the software part of the target equipment according to the software data and generating a software testing report; and the hardware testing unit is used for testing the hardware part of the target equipment according to the hardware data and generating a hardware testing report.
2. The air conditioner self-learning software and hardware combined test system according to claim 1, wherein the software test unit comprises a model output module and a result comparison module; wherein the content of the first and second substances,
the model output module is used for calling a software model corresponding to the software part of the target equipment, and verifying the software data by using the software model to obtain a software verification result;
and the result comparison module is used for comparing the software verification result with the software test standard to obtain a software test result and outputting a software test report.
3. The air conditioner self-learning software and hardware combined test system according to claim 2, wherein the software test report includes software test standards, software test results and test coverage.
4. The air conditioner self-learning software and hardware combined test system according to claim 1, wherein the hardware test unit comprises PCBA hardware, a signal output module, a signal feedback module and a power supply module; wherein the content of the first and second substances,
the PCBA hardware is used for simulating a hardware part of the target equipment according to the hardware data and outputting a hardware test report;
the signal output module is used for outputting a digital/analog control signal to PCBA hardware;
the signal feedback module is used for outputting a feedback signal of the PCBA hardware to the signal output module;
and the power supply module is used for supplying power to the PCBA hardware, the signal output module and the signal feedback module.
5. The air conditioner self-learning software and hardware combined test system according to claim 4, wherein the hardware test report comprises: hardware test standards and hardware test results.
6. The air conditioner self-learning software and hardware combined test system according to claim 1, wherein the data collection terminal uploads the collected operation state data to the cloud platform through 4G/5G, WIFI, Bluetooth or USB.
7. The air conditioner self-learning software and hardware combined test system according to any one of claims 1 to 6, wherein the operation state data is normal operation state data or abnormal operation state data.
8. The air conditioner self-learning software and hardware combined test system according to claim 1, wherein the software test unit adopts a software-in-loop test mode.
9. The air conditioner self-learning software and hardware combined test system according to claim 1, wherein the hardware test unit adopts a hardware-in-loop test mode.
10. The air conditioner self-learning software and hardware combined test system as claimed in claim 1, wherein the target device comprises an air conditioner.
CN202110287731.9A 2021-03-17 2021-03-17 Air conditioner self-learning software and hardware combined test system Pending CN112945602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110287731.9A CN112945602A (en) 2021-03-17 2021-03-17 Air conditioner self-learning software and hardware combined test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110287731.9A CN112945602A (en) 2021-03-17 2021-03-17 Air conditioner self-learning software and hardware combined test system

Publications (1)

Publication Number Publication Date
CN112945602A true CN112945602A (en) 2021-06-11

Family

ID=76228843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110287731.9A Pending CN112945602A (en) 2021-03-17 2021-03-17 Air conditioner self-learning software and hardware combined test system

Country Status (1)

Country Link
CN (1) CN112945602A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089318A (en) * 2023-04-11 2023-05-09 北京集度科技有限公司 Computer control apparatus, system, method and computer program product

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147760A (en) * 2011-04-22 2011-08-10 中国电子科技集团公司第三十八研究所 Processor co-verification platform based on network transmission and testing method of processor co-verification platform
CN103984338A (en) * 2014-05-04 2014-08-13 广东美的集团芜湖制冷设备有限公司 Air conditioner controller automatic testing system and testing method thereof
US20150264590A1 (en) * 2012-10-04 2015-09-17 Rohde & Schwarz Gmbh & Co. Kg Method and a test system for automatically configuring a tester
CN105302950A (en) * 2015-10-19 2016-02-03 北京精密机电控制设备研究所 Software and hardware cooperation based cross-linking simulation test method for programmable logic device
CN106021038A (en) * 2015-03-26 2016-10-12 福特全球技术公司 Method and apparatus for in-vehicle hardware and software testing
CN106444708A (en) * 2016-10-11 2017-02-22 无锡恩吉威新能源有限公司 Software algorithm real-time reliability test platform and method based on historical working condition data
US20180113964A1 (en) * 2015-04-29 2018-04-26 Siemens Aktiengesellschaft Method for computer-supported development of an overall system consisting of subsystems
CN109634867A (en) * 2018-12-18 2019-04-16 宁夏隆基宁光仪表股份有限公司 Based on method for testing software, device and the storage medium under data analog system
CN109814517A (en) * 2017-11-21 2019-05-28 北京金风科创风电设备有限公司 Method and system for processing fan operation parameters and computer readable storage medium
CN110837035A (en) * 2018-08-15 2020-02-25 珠海恒途电子有限公司 Software and hardware testing system and method for air conditioning system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147760A (en) * 2011-04-22 2011-08-10 中国电子科技集团公司第三十八研究所 Processor co-verification platform based on network transmission and testing method of processor co-verification platform
US20150264590A1 (en) * 2012-10-04 2015-09-17 Rohde & Schwarz Gmbh & Co. Kg Method and a test system for automatically configuring a tester
CN103984338A (en) * 2014-05-04 2014-08-13 广东美的集团芜湖制冷设备有限公司 Air conditioner controller automatic testing system and testing method thereof
CN106021038A (en) * 2015-03-26 2016-10-12 福特全球技术公司 Method and apparatus for in-vehicle hardware and software testing
US20180113964A1 (en) * 2015-04-29 2018-04-26 Siemens Aktiengesellschaft Method for computer-supported development of an overall system consisting of subsystems
CN105302950A (en) * 2015-10-19 2016-02-03 北京精密机电控制设备研究所 Software and hardware cooperation based cross-linking simulation test method for programmable logic device
CN106444708A (en) * 2016-10-11 2017-02-22 无锡恩吉威新能源有限公司 Software algorithm real-time reliability test platform and method based on historical working condition data
CN109814517A (en) * 2017-11-21 2019-05-28 北京金风科创风电设备有限公司 Method and system for processing fan operation parameters and computer readable storage medium
CN110837035A (en) * 2018-08-15 2020-02-25 珠海恒途电子有限公司 Software and hardware testing system and method for air conditioning system
CN109634867A (en) * 2018-12-18 2019-04-16 宁夏隆基宁光仪表股份有限公司 Based on method for testing software, device and the storage medium under data analog system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张善文等: "《电气自动化技术及其应用研究》", 西安电子科技大学出版社, pages: 108 - 109 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089318A (en) * 2023-04-11 2023-05-09 北京集度科技有限公司 Computer control apparatus, system, method and computer program product

Similar Documents

Publication Publication Date Title
CN108802511B (en) Method and system for testing battery management unit
CN111737154A (en) Vehicle networking automatic test method and device based on UFT
CN110704323A (en) Data automatic testing method and device based on rail transit line data
CA3106379C (en) Device and method for testing the contents of a switch cabinet following installation according to a plan
CN112945602A (en) Air conditioner self-learning software and hardware combined test system
CN115952757A (en) Register testing method and device
CN115932476A (en) Fault positioning method and device based on digital twinning, electronic equipment and medium
CN104635141B (en) A kind of integrated circuit detection method, apparatus and system
CN113030753A (en) Test method, device and test system for battery management system BMS
CN109144874B (en) Method and device for monitoring test environment
CN114035545A (en) Automatic driving algorithm simulation test method and device and electronic equipment
CN116257437A (en) ADAS system defect verification method and device based on real vehicle data reinjection
CN110059390B (en) Device under test verification device and related product
JP6249803B2 (en) Inverter test system
CN109309748B (en) Cloud mobile phone hardware quality batch test method and system
CN112463478A (en) Interface test method and device of circuit board and test equipment
US10060976B1 (en) Method and apparatus for automatic diagnosis of mis-compares
CN111221737B (en) Coverage rate determining method, coverage rate determining device and storage medium
CN115589407B (en) File transmission verification method based on PLM-DNC integrated system
CN115914433A (en) Tbox message checking method and device, electronic equipment and storage medium
TW201122807A (en) System and method for guiding electronic product testing program
CN114090424A (en) Troubleshooting method, troubleshooting device, troubleshooting equipment and computer storage medium
JP3557784B2 (en) Inspection data generation method and apparatus
WO2023065438A1 (en) Virtual hardware test acceleration method and apparatus for software function of electricity meter
CN116701230A (en) Automatic test method, device, equipment and 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