Air conditioner controller function test method, test system and related equipment

By performing layered testing on the embedded program of the air-conditioning controller and decoupling the application function and hardware function testing, the hardware cost is reduced, the testing time is shortened, and the testing efficiency is improved.

CN120802896APending Publication Date: 2025-10-17HANGZHOU LEADERWAY ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510754243.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

In existing air-conditioning controller embedded program testing methods, the cost of test supporting boards and software is high, and the functional test program is highly coupled, which affects the test process and results.

Method used

By layering the embedded program of the air-conditioning controller into an application function layer and an interface layer, the application function layer is tested separately using a simulated hardware module, thereby decoupling the application function test and the hardware function test.

Benefits of technology

It reduces the demand for the types and quantity of interface resources, reduces hardware costs, shortens testing time, and improves testing efficiency and development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120802896A_ABST
    Figure CN120802896A_ABST
Patent Text Reader

Abstract

The invention provides an air conditioner controller function test method, test system and related equipment, the method is applied to the test system, the test system comprises a test device and an air conditioner controller which are in communication connection, the test device can perform function test on an embedded program of the air conditioner controller, and the test device can perform function test on the embedded program of the air conditioner controller. The embedded program at least comprises an application function layer and an interface layer, the test equipment is provided with test software, and the test software at least comprises a simulation hardware module. The method comprises the steps that the simulation hardware module sends first test input information to the application function layer through the interface layer; the application function layer generates first test output information and returns the first test output information to the simulation hardware module through the interface layer, and the test equipment can perform application function test on the embedded program according to the first test output information. According to the method, the application function test is isolated from the embedded program, the application function test and the hardware function test are decoupled, the hardware cost of the test is reduced, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of testing, in particular to an air conditioner controller function testing method, a testing system, an air conditioner controller and a testing device. BACKGROUND

[0002] An air conditioner controller product usually includes a hardware part and a software part. The hardware part includes electronic elements, circuit boards, sensors, actuators, etc., and is the basis for realizing electric control functions. The software part includes control algorithms, drivers, user interfaces, etc., and is responsible for converting hardware resources into available control functions.

[0003] The software burned and solidified in the electric control product (air conditioner controller) is called an embedded program. Before product development and shipment, testers not only need to detect the functions of the hardware part of the product, but also need to test the functions of the embedded program to ensure the availability of the program. The test of the embedded program usually includes hardware function testing and application function testing. The hardware function testing mainly tests the physical index detection capability and hardware execution capability of the hardware, so as to reflect whether the physical components and circuits in the air conditioner controller realize the related functions; the application function testing mainly tests the internal logic of the embedded program and the control and processing method of the hardware. If manual testing is adopted, the experience and testing level of the tester are highly dependent, and the labor cost is high. Automatic testing speeds up the testing period and reduces the testing and labor costs, so it is an inevitable trend to replace manual testing with automatic testing.

[0004] To the best of the inventors' knowledge, most existing automatic tests can only be applied to pure software, and fewer can be applied to embedded program testing. The automatic test management software developed by Labview is currently known on the market for embedded program automatic testing, which needs a matching board for carrying the Labview test program. Because the test program and the matching board are provided by Labview company, a specific protocol is needed to realize the communication between the matching board and the device under test. Because the matching board is widely used in commercial applications, it has comprehensive integrated functions, and the cost of purchase is also high. In addition, the application cost of Labview software itself is also very high.

[0005] Moreover, the automatic test process of the embedded program by Labview includes: calling test cases through the matching board, using the output signals of the test cases as the output signals of the matching board and inputting the output signals into the input signals of the device under test. The device under test performs corresponding operation functions and outputs corresponding electrical signals after receiving the input signals. The matching board detects the electrical signals through the detection circuit to determine whether the electrical signals meet the expectations. In the whole test process, when the hardware of the device under test is tested, the input signals are processed by the device under test and the corresponding operation functions are performed before detection. Therefore, the coupling degree of the program is high, and the test process and test results are easily affected. SUMMARY

[0006] Therefore, the application provides an air conditioner controller function test method, a test system and related equipment to solve the problems of high cost of matching boards and test software of the test method, and high coupling degree of the function test program, which affects the test process and test results.

[0007] In a first aspect, the application provides an air conditioner controller function test method applied to a test system. The test system at least includes a test device and an air conditioner controller. The test device is in communication connection with the air conditioner controller. The test device can perform function test on the embedded program of the air conditioner controller. The embedded program includes an application function layer and an interface layer. The test device is installed with test software. The test software includes a simulation hardware module. The method at least includes application function test.

[0008] The simulation hardware module sends first test input information to the application function layer through the interface layer. The first test input information and corresponding first predicted output information are obtained from the test device.

[0009] The application function layer generates first test output information and returns the first test output information to the test device through the interface layer. The simulation hardware module performs application function test on the embedded program by using the first test output information and the first predicted output information. As can be seen from the above technical solution, the application has at least the following advantages:

[0010] The application separates the application function layer of the embedded program through the interface layer, so as to test the application function layer separately. In this way, on the one hand, the application function test and the hardware function test are decoupled, and there is no need to test the multiple output combinations of the application function and the hardware function, thereby reducing the types and quantities of interface resources required, reducing the demand for test master boards for auxiliary test, and reducing the hardware cost. On the other hand, the decoupling of the application function test and the hardware function test can reduce test restrictions and shorten test time.

[0011] In a second aspect, a method for testing a function of an air conditioner controller is applied to the air conditioner controller. An embedded program of the air conditioner controller includes an application function layer and an interface layer. The method includes testing the application function layer:

[0012] The application function layer receives first test input information through the interface layer;

[0013] The application function layer generates first test output information and sends the first test output information through the interface layer. The first test output information can be used for application function testing of the embedded program.

[0014] The application separates the application function layer of the embedded program through the interface layer, so that the application function layer of the embedded program can be tested separately. In this way, on the one hand, the application function testing and the hardware function testing are decoupled, and there is no need to test a plurality of output combinations of the application function and the hardware function, thereby reducing the types and quantity of interface resources required, reducing the demand for a test main control board for auxiliary testing, and reducing the hardware cost. On the other hand, the application function testing and the hardware function testing are decoupled, which can reduce testing restrictions and shorten testing time.

[0015] In a third aspect, a method for testing a function of an air conditioner controller is applied to a test device. The test device is in communication connection with the air conditioner controller. The test device is installed with test software. The test software includes at least a simulation hardware module. The method includes testing the application function layer:

[0016] The simulation hardware module sends first test input information to the air conditioner controller. The first test input information and corresponding first predicted output information are obtained from the test device;

[0017] The simulation hardware module receives first test output information;

[0018] The simulation hardware module uses the first test output information and the first predicted output information to test the application function of the embedded program. In a fourth aspect, an air conditioner controller test system includes a test device and an air conditioner controller. The test device is in communication connection with the air conditioner controller. The test device can test the function of the embedded program of the air conditioner controller. The embedded program includes an application function layer and an interface layer. The test device is installed with test software. The test software includes a simulation hardware module. The test method executed by the air conditioner controller test system includes at least application function testing:

[0019] The simulation hardware module sends first test input information to the application function layer through the interface layer. The first test input information and corresponding first predicted output information are obtained from the test device;

[0020] The application function layer generates first test output information and returns the first test output information to the test device through the interface layer; and the simulation hardware module uses the first test output information and the first predicted output information to perform application function testing on the embedded program. In a fifth aspect, the present application provides an air conditioner controller, and the embedded program of the air conditioner controller comprises an application function layer and an interface layer;

[0021] The application function layer is configured to receive first test input information through the interface layer; and generate first test output information.

[0022] The interface layer is configured to receive the first test input information; and send the first test output information generated by the application function layer, and the first test output information can be used to perform application function testing on the embedded program. BRIEF DESCRIPTION OF DRAWINGS

[0023] The drawings used in the description of the technical solutions or prior art needed in the following will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0024] Figure 1 A flow chart of an air conditioner controller function testing method disclosed by an embodiment of the present application;

[0025] Figure 2 A schematic diagram of a function testing method of an application function layer disclosed by an embodiment of the present application;

[0026] Figures 3A to 3C A function testing method schematic diagram of a hardware function layer disclosed by an embodiment of the present application;

[0027] Figure 4 A flow chart of a generation method of an interface layer disclosed by an embodiment of the present application;

[0028] Figure 5 A hardware block diagram of an air conditioner controller testing system disclosed by an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following technical solutions provided by the present application will be described in combination with the drawings in the present application.

[0030] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting to the present application. The terms "first", "second" in the technical solutions of the present application are only for the purpose of description and cannot be understood as indicating or implying relative importance, operation time sequence or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first", "second" can explicitly or implicitly include one or more of the features.

[0031] In order to facilitate the understanding of the technical solutions of the present application, first of all, some technical terms related to the present application are introduced.

[0032] Electric control products refer to devices and systems that control hardware systems through electronic or electrical equipment, and are widely used in many fields such as automobiles, industries, homes, robots, power, medical treatment, etc.

[0033] Electric control products usually use a combination of software and hardware to achieve efficient, reliable and intelligent control. For example, joint design, collaborative optimization of software and hardware, software and hardware development based on models or embedded systems, and hardware acceleration based on Application-Specific Integrated Circuit (ASIC) or Field Programmable Gate Array (FPGA) can be performed. The present application takes air conditioner controller as an example to illustrate that air conditioner controller products usually include hardware part and software part. The hardware part includes electronic components, circuit boards, sensors, actuators, etc., which is the basis for realizing electric control function. The software part includes control algorithm, driver program, user interface, etc., which is responsible for converting hardware resources into available control functions.

[0034] When developing the software of air conditioner controller, testers often need to test the developed embedded program (hereinafter referred to as program) to ensure the usability of the program. The test of embedded program usually includes hardware function test and application function test, wherein the hardware function test mainly tests physical indicators, such as temperature, voltage, current, etc., to reflect whether the physical components and circuits in the tested electric control product realize the related functions; the application function test mainly tests the internal logic of the embedded program, such as the conditions when the circuit realizes the function, etc.

[0035] However, the related test method often needs to test the hardware function and application function of air conditioner controller at the same time, not only needs to meet the hardware function and application function conditions at the same time during testing, but also the output mode has multiple combinations. This method needs to provide an interface through the test main board to connect with the tested hardware, and based on the test main board to detect the output of the tested product, so as to judge the function of the tested product through the output, therefore the interface resources required by the output mode of different combinations of application function and hardware function of different electric control products are different in type and quantity, so multiple test main boards are needed to assist the test, and the hardware cost is high.

[0036] In view of this, the application provides an air conditioner controller function test method. The method is applied to a test system. The test system includes a test device and an air conditioner controller. The test device can perform function test on a program of the air conditioner controller. The embedded program includes an application function layer and an interface layer. The test device is in communication connection with the electric control product under test. As an example, the communication interface can adopt, for example, a serial communication interface or a network port or a USB, etc. The test device is installed with test software. The test software includes a simulation hardware module. The method includes application function layer test.

[0037] The simulation hardware module sends first test input information to the application function layer through the interface layer. The first test input information and corresponding first predicted output information are obtained from the test device. The application function layer generates first test output information and returns the first test output information to the simulation hardware module through the interface layer. Then, the test device can perform application function test on the program according to the first test output information.

[0038] The embodiment of the application realizes separate test on the application function layer. On the one hand, the application function test and the hardware function test are decoupled. There is no need to test the multiple output combinations of the application function and the hardware function. Thus, the required interface resource types and quantity are reduced. The demand for the test main control board for auxiliary test is reduced. The hardware cost is reduced. On the other hand, the application function test and the hardware function test are decoupled. The test limitation is reduced. The test time is shortened. Thus, the test efficiency is improved. The development efficiency is improved. Next, the air conditioner controller function test method provided by the embodiment of the application will be introduced in combination with the drawings.

[0039] Referring to Figure 1 A flowchart of an air conditioner controller function test method disclosed by the embodiment of the application is shown. The method is applied to a test system. The test system includes an air conditioner controller and a test device. The test device can perform function test on an embedded program of the air conditioner controller.

[0040] The embedded program of the air conditioner controller includes an application function layer and a hardware function layer. The application function layer is used to realize multiple application functions of the air conditioner controller. The hardware function layer is used to realize multiple hardware functions of the air conditioner controller. The test device is installed with test software. The test software includes a simulation hardware module and a simulation application module. The test device is in communication connection with the air conditioner controller. As an example, the communication interface can adopt, for example, a serial communication interface or a network port or a USB, etc. to connect with the test device.

[0041] Figure 1 The method includes the following steps:

[0042] S102: The simulation hardware module sends first test input information to the application function layer through the interface layer.

[0043] The simulation hardware module in the test device is a simulation hardware module generated by the test device based on the embedded program of the electric control product under test, the protocol between the application function layer and the hardware function layer. The simulation hardware module is used to replace the actual hardware function layer in the application function test, so as to test the function of the application function layer of the embedded program.

[0044] The first test input information used for the application function layer test can be pre-stored in the test device. The corresponding first predicted output information can be pre-stored in the test device, or can be obtained by inputting the first test input information into the test case.

[0045] In some possible implementations, the test device can use a test case to automatically send the first test input information, such as control information, from the simulation hardware module to the application function layer through the interface layer. In this way, the test device can automatically test the application function layer of the program according to the test case, improve the coverage of the test, and improve the test speed. In addition, the automatic test can also reduce the operation difficulty caused by the test condition in manual test, and free the related technical personnel from the tedious test process.S104: The application function layer generates the first test output information and returns the first test output information to the test device (which can be the simulation hardware module or a storage address other than the test software on the test device) through the interface layer.

[0046] After the application function layer in the program of the air conditioner controller receives the first test input information sent by the simulation hardware module in the test system through the interface layer, the first test output information can be obtained in response, and the information is returned to the simulation hardware module through the interface layer. The first test output information can include related code in the application function layer, and the working state of the circuit module controlled by the code after running in response to the first test input information. For example, the first test input information indicates turning on a light bulb, and the first test output information can return the switch state of the light bulb.

[0047] S106: The simulation hardware module performs application function test on the embedded program according to the first test output information and the corresponding first predicted output information.

[0048] The test device can determine whether the embedded program of the air conditioner controller performs the related operation corresponding to the first test input information through the returned first test output information, and further determine the availability of the application function layer. For example, the first test input information indicates turning on a light bulb, and when the switch state of the light bulb returned by the first test output information is on, it can be determined that the application function layer accurately performs the related operation.

[0049] In some possible implementation manners, the corresponding first predicted output information is included in the test case of the test device. In this way, the test device can automatically determine the result of the application function test according to the prediction result and the actually returned first test output information. For example, when the difference between the prediction result and the first test output information is less than a threshold value, it can be determined that the application function of the air conditioner controller product is normally operated.

[0050] In this way, the automatic test of the application function layer can be implemented, and the test efficiency is significantly improved.

[0051] The above steps are the process of the application function test on the application function layer of the embedded program. Referring to Figure 2 As shown in the schematic diagram of the function test method of the application function layer, the simulation hardware module in the test device replaces the hardware function layer in the program, and is configured to provide input information to the application function layer and receive the output information returned by the application function layer through the interface layer. Then, the test device can test the application function according to the returned output information.

[0052] In some possible implementation manners, the test system can also test the hardware function of the air conditioner controller. Specifically, the simulation application module in the test device can send second test input information to the hardware function layer through the interface layer. The hardware function layer can generate second test output information according to the second test input information, and send the second test output information to the input and output component connected to the air conditioner controller. In this way, the result of the hardware function test can be observed on the input and output component. Alternatively, the hardware function layer receives third input information sent by the input and output component, and generates third output information, and then sends the third test output information to the simulation application module through the interface layer, where the third output information can test the hardware function of the program.

[0053] Figure 3A As shown in the schematic diagram of the function test method of the hardware function layer.

[0054] The simulation application module in the test device is a virtual application module generated based on the protocol between the application function layer and the hardware function layer in the embedded program of the air conditioner controller, and can include the application logic code or the business logic code of the program. The simulation application module is configured to replace the actual application function layer in the hardware function test, so as to test the hardware function layer of the embedded program.

[0055] The input and output components are connected to the air conditioner controller, and are used to provide input information to the air conditioner controller or receive output information, so as to simulate the actual operation scene of the air conditioner controller, analyze the input and output information of the system, and test the function of the product. For example, the input and output components can include a keyboard, a touch screen, a mouse, a sensor, a signal generator, an oscilloscope, a logic analyzer, a display, a multimeter, and the like. In some possible implementations, the input and output components can also not be specific physical elements, but can be replaced by equivalent circuits or elements. The input and output components can be manually configured by a test personnel according to the air conditioner controller, or can be pre-deployed.

[0056] In some possible implementations, as shown in Figure 3A , the simulation application module can send second test input information to the hardware function layer through the interface layer. The hardware function layer in the embedded program of the air conditioner controller receives the second test input information sent by the simulation application module in the test device through the input and output components, can generate second test output information, and sends the second test output information to the input and output components connected to the air conditioner controller.

[0057] The second test output information can be physical index data returned by the hardware function layer, such as temperature, voltage, current, and the like, or can be a signal including the above index information. The input and output components can convert the second test output information returned by the hardware function layer into visual information, to facilitate a test personnel to more intuitively observe the test result. For example, when the input and output components are an oscilloscope, a display, or the like, the input and output components can acquire the second test output information, and display a waveform corresponding to the second test output information. In this way, the characteristics of the second test output information can be more intuitively displayed, to more comprehensively test and analyze the hardware function layer.

[0058] In some possible implementations, as shown in Figure 3B , the simulation application module can receive third output information sent by the hardware function layer through the interface layer, where the third output information is response information generated by the hardware function layer after receiving third input information sent by the input and output components, and is used to perform hardware function testing on the program.

[0059] In some possible implementation manners, the test device can perform hardware function testing on the program according to the reference value of the third test output information. Specifically, the reference value of the third test output information is determined according to the third test input information and the mapping relationship, where the mapping relationship depends on the hardware function layer of the embedded program. The test device can perform hardware function testing on the program according to the received third test output data and the reference value. For example, the test device can determine whether the hardware function of the embedded program meets the expectation according to whether the difference between the third test output data and the reference value exceeds a threshold. In this way, the hardware function can be systematically tested, and accidental errors can be reduced and the testing efficiency can be improved.

[0060] It should be noted that the reference value of the third test output information can be stored in the test device in advance, can be obtained according to the third test input information and the mapping relationship sent by the hardware function layer, or can be obtained by inputting the test device from other external information sources, and the embodiments of the present application do not limit how to obtain the reference value of the third test output information.

[0061] In some possible implementation manners, the input and output component can be controlled by the test device. As shown by the dashed line in Figure 3C , the simulation application module can send input information to the hardware function layer through the input and output component. In this way, the test process can be performed under the control of the test device, and the influence of external factors on the test result can be reduced.

[0062] In a possible implementation manner, as shown by the solid line in Figure 3C , the hardware function layer in the embedded program of the air conditioner controller can return the test output information to the simulation application module through the input and output component. In this way, the simulation application module can obtain the test output information of the hardware function layer in response to the test input information, and store the test output information, which is beneficial to save and call the test information and avoids repeated operations in the future.

[0063] It should be noted that the above two processes need to be implemented based on the specific input or output function of the input and output component.

[0064] Figure 2 and Figure 3A , Figure 3B , Figure 3C respectively show the processes of the test system in testing the application function and the hardware function of the air conditioner controller. It should be noted that the processes of the above two function tests are independent of each other. That is, the test system can perform hardware function testing alone, can perform application function testing alone, can perform hardware function testing first and then perform application function testing, or vice versa, and the embodiments of the present application do not limit this.

[0065] In some possible implementation manners, the test system can perform parallel testing on multiple test physical indexes in the hardware function layer, or the test system can perform parallel testing on different application functions in the application function layer in parallel. In this way, the test time can be shortened, and the test speed can be improved.

[0066] In some possible implementation manners, the test system can further present a start test option to the user through the display interface, and then perform function testing on the embedded program in response to the start test option triggered by the user. For example, the start test option can include a start hardware function test option and a start application function test option, so that the user can select a corresponding function test mode according to requirements.

[0067] Through the above description, the embodiment of the present application provides an air conditioner controller function test method. The method decouples hardware function testing and application function testing. On the one hand, the method does not need to test multiple output combinations of application functions and hardware functions, thereby reducing the types and quantities of required interface resources, reducing the demand for a test main control board for auxiliary testing, and reducing hardware costs. On the other hand, the method can reduce test restrictions and shorten test time, thereby improving test efficiency and further improving development efficiency. The above embodiment mainly describes the process of the air conditioner controller function test method in detail.

[0068] It is necessary to describe the generation of the interface layer. Specifically, the generation of the interface layer includes the following steps.

[0069] Referring to Figure 4 FIG. 1 shows a flowchart of a method for generating an interface layer. The method includes the following steps.

[0070] S402: The test software generates an interface layer generation template according to a protocol between the application function layer and the hardware function layer in the embedded program.

[0071] The protocol between the application function layer and the hardware function layer is used to define the data interaction relationship between the application function layer and the hardware function layer, for example, a driver layer protocol, a middleware layer protocol, and other communication protocols. The driver layer protocol can convert the data of the hardware function layer into a format that can be processed by the application function layer. The middleware layer includes an operating system and can communicate with the application function layer of the embedded program through a specific application programming interface (API). The other communication protocols include a standard universal asynchronous receiver / transmitter (UART), a serial peripheral interface (SPI), an Inter-Integrated Circuit (I2C), and a protocol customized for a specific application function layer.

[0072] The interface layer generation template is generated through the protocol between the application function layer and the hardware function layer in the embedded program, so that the template can realize data interaction with the application function layer and the hardware function layer, respectively. In this way, the interface layer generated based on the first code can directly interact with the application function layer and the hardware function layer, respectively, so as to separate the application function layer and the hardware function layer at the data interaction level. In addition, the interface layer generation template is generated based on the standard protocol between the application function layer and the hardware function layer in the embedded program, so that the interface layer generation template can be used for different types of embedded programs of electronic control products.

[0073] S404: The test software generates the interface layer according to the interface layer generation template and the circuit control object controlled by the program.

[0074] The embedded program of the air conditioner controller controls a plurality of circuit control objects to realize a plurality of functions of the air conditioner controller. For example, the circuit control objects can be different circuit elements or circuit modules for realizing a certain function. When testing the physical indicators in different functions of the embedded program, the target circuit control object that realizes the target function needs to be determined, test information needs to be input to the target circuit control object, and the feedback output information needs to be obtained. The interface layer generation template can be used to realize data interaction between the application function layer or the hardware function layer in the embedded program. However, the interface layer generation template does not define the correspondence between the data objects in the template or the protocol and the circuit control objects actually controlled by the program, so it cannot complete the information interaction with the specific circuit control object. Therefore, the interface layer generation template needs to be improved according to the correspondence between the data objects in the template or the protocol and the specific circuit control object, and the interface layer needs to be generated.

[0075] After the correspondence is acquired, the test software can store the correspondence in various ways, including a table, a set, a tree structure, a configuration file, etc., and the embodiments of the present application do not limit the specific storage form. For example, the test software can acquire the correspondence between the data objects in the interface layer generation template or the protocol and the circuit control objects actually controlled by the embedded program, and store the correspondence in a table, and then generate the interface layer based on the table and the interface layer generation template.

[0076] The interface types of the plurality of circuit control objects are not necessarily the same, and therefore the interface needs to be generated according to the required interface type of the circuit control object. Thus, the above-mentioned correspondence can include at least one of the address of the data object in the template or the protocol, the name of the circuit control object, and the circuit control object in the selected virtual port of the interface layer.

[0077] It should be noted that the above-mentioned correspondence can also be directly acquired and stored by the test software from the external environment, and the embodiments of the present application do not limit how the above-mentioned correspondence is obtained.

[0078] Through the above description, the embodiments of the present application provide a method for generating an interface layer, which can generate a corresponding interface layer for an embedded program based on the protocol between the application function layer and the hardware function layer of the embedded program, and the correspondence between the data objects in the protocol and the circuit control objects controlled by the embedded program, so that the application function layer and the hardware function layer respectively interact with the outside world through the interface layer, and the application function layer and the hardware function layer are separated at the data interaction level, thereby realizing the decoupling of hardware function testing and application function testing.

[0079] Next, from the perspective of the air conditioner controller, the functional test method provided by the present application is introduced.

[0080] The present application provides an air conditioner controller functional test method, which is applied to an air conditioner controller, the embedded program of the air conditioner controller including an application function layer, a hardware function layer and an interface layer, the application function layer and the hardware function layer being connected with the interface layer respectively, and the method comprising:

[0081] The application function layer receives first test input information through the interface layer, and then generates first test output information and sends the first test output information through the interface layer, the first test output information being capable of performing application function testing on the program.

[0082] In some possible implementation manners, the method further comprises:

[0083] The hardware function layer receives the second test input information through the interface layer, generates the second test output information, and sends the second test output information to the input and output component connected with the air conditioner controller, and the second test output information can perform the hardware function test on the embedded program.

[0084] Alternatively, the hardware function layer receives the third input information sent by the input and output component, generates the third output information, and then sends the third test output information through the interface layer, and the third output information can perform the hardware function test on the embedded program.

[0085] The application further provides a function test method applied to a test device, the test device is installed with test software, the test software includes a simulation hardware module, the test device is in communication connection with an air conditioner controller, and the method includes application function layer test:

[0086] The simulation hardware module sends first test input information to the air conditioner controller, and the first test input information and corresponding first predicted output information are obtained from the test device;

[0087] The simulation hardware module receives the first test output information;

[0088] The simulation hardware module performs application function test on the embedded program by using the first test output information and the first predicted output information.

[0089] In some possible implementation manners, the test software further includes a simulation application module, and the method further includes hardware function layer test:

[0090] The simulation application module sends second test input information through the interface layer to perform the hardware function test on the embedded program, or the simulation application module receives third output information through the interface layer, and the third output information can perform the hardware function test on the embedded program.

[0091] In some possible implementation manners, the test software can further generate an interface layer of the embedded program, and the related method has been described in detail in the foregoing, and will not be described here.

[0092] The air conditioner controller function test method provided by the embodiments of the application is described in detail above, and next, the test system and the test device provided by the embodiments of the application will be introduced in combination with the drawings.

[0093] Referring to Figure 5 A structural schematic diagram of a test system 500 is shown. The test system 500 is used for performing function test on a program of an air conditioner controller. The test system 500 includes:

[0094] The test device 502 has a test software installed, which includes a simulation hardware module 5022, capable of sending first test input information to the application function layer through the interface layer.

[0095] The air conditioner controller 504 has an embedded program, which includes an application function layer 5042, a hardware function layer 5044 and an interface layer 5046. The application function layer 5042 is capable of generating first test output information and returning the first test output information to the test device (which can be the simulation hardware module 5022 or a storage address other than the test software on the test device) through the interface layer 5046, so as to perform application function test on the embedded program.

[0096] In some possible implementation manners, the test device 502 can further include a simulation application module 5024 for hardware function test of the program of the air conditioner controller 504. Specifically, the simulation application module 5024 can send second test input information to the hardware function layer 5044 through the interface layer 5046. The hardware function layer 5044 can generate second test output information according to the second test input information and send the second test output information to the input and output component connected to the air conditioner controller 504. In this way, the result of the hardware function test can be observed on the input and output component.

[0097] Alternatively, the hardware function layer 5044 receives third input information sent by the input and output component and generates third output information, and then sends the third test output information to the simulation application module 5024 through the interface layer 5046, wherein the third output information is capable of performing hardware function test on the embedded program.

[0098] In some possible implementation manners, the test device can further include a generation module for generating the interface layer for the program, and the generation module is specifically configured to:

[0099] generate an interface layer generation template according to the protocol between the application function layer and the hardware function layer in the embedded program, wherein the interface layer generation template is used to define the data interaction relationship between the application function layer and the hardware function layer; and generate the interface layer according to the interface layer generation template and the circuit control object controlled by the program.

[0100] In some possible implementation manners, when the interface layer is generated according to the interface layer generation template and the circuit control object controlled by the program, the generation module is specifically configured to:

[0101] obtain the correspondence between the data object in the interface layer generation template and the circuit control object controlled by the program, and then generate the interface layer according to the interface layer generation template and the correspondence.

[0102] The correspondence can include at least one of an address of the data object, a name of the circuit control object, and a selected virtual port of the circuit control object in the interface layer.

[0103] In some possible implementation manners, the test device can further include a user interaction module configured to present a start test option to a user through a display interface, so that the test system can perform the function test on the program in response to the start test option triggered by the user.

[0104] In the above embodiment, the application function layer test and the hardware function layer test are not limited in sequence.

[0105] In the technical solution, the air conditioner controller can be a master controller, a frequency converter, a line controller or the like. The test device can be a computer, an IPAD or a mobile phone or the like.

[0106] In the above technical solution, the software, hardware, firmware or any combination thereof can be used to realize the technical solution in whole or in part. When the software is used, the computer program product can be used to realize the technical solution in whole or in part.

[0107] If each air conditioner controller to be tested has a unique identification code, the physical port can be divided into sub-ports to realize the simultaneous test of multiple air conditioner controllers.

[0108] The above describes the principles and implementation manners of the present application by using specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea.

Claims

1. A method for testing the function of an air conditioner controller, characterized in that: Applied to a test system, the test system includes at least a test device and an air-conditioning controller, the test device is communicatively connected to the air-conditioning controller, the test device is capable of performing functional testing on an embedded program of the air-conditioning controller, the embedded program includes an application function layer and an interface layer, the test device is installed with test software, the test software includes a simulated hardware module, and the method includes at least application function testing: The simulation hardware module sends first test input information to the application function layer through the interface layer, where the first test input information and corresponding first prediction output information are obtained from the test device; The application function layer generates first test output information and returns the first test output information to the test device through the interface layer; the simulation hardware module uses the first test output information and the first prediction output information to perform application function testing on the embedded program.

2. The testing method according to claim 1, wherein: The test software further includes a simulation application module, the embedded program further includes a hardware function layer, and the method further includes at least a hardware function test: The simulation application module sends second test input information to the hardware function layer through the interface layer; The hardware function layer generates second test output information and sends the second test output information to the input and output components connected to the air conditioning controller, wherein the second test output information can be used to perform result testing on the input and output components connected to the air conditioning controller, so as to perform hardware function testing on the embedded program; Alternatively, the hardware function layer receives third input information sent by an input / output component connected to the air-conditioning controller, and the hardware function layer generates third output information; The hardware function layer sends the third test output information to the simulation application module through the interface layer; The simulation application module performs a hardware function test on the embedded program according to the third output information and a reference value, wherein the reference value is determined according to the third test input information and a hardware function layer of the embedded program.

3. The testing method according to claim 2, wherein: The test software generates an interface layer generation template according to the protocol between the application function layer and the hardware function layer, and the interface layer generation template is used to define the data interaction relationship between the application function layer and the hardware function layer; The test software generates the interface layer according to the interface layer generation template and the circuit control object controlled by the embedded program.

4. The testing method according to claim 3, wherein: The test software generates the interface layer according to the interface layer generation template and the program-controlled circuit control object, and at least includes: The test software obtains the corresponding relationship between the data objects in the interface layer generation template and the circuit control objects controlled by the embedded program; The test software generates the interface layer according to the interface layer generation template and the corresponding relationship.

5. The testing method according to claim 4, characterized in that: The corresponding relationship includes at least one of the address of the data object, the name of the circuit control object, and the virtual port selected by the circuit control object at the interface layer.

6. A method for testing the function of an air conditioner controller, characterized in that: Applied to an air-conditioning controller, the embedded program of the air-conditioning controller includes an application function layer and an interface layer, and the method includes the following steps in the application function layer: The application function layer receives first test input information through the interface layer; The application function layer generates first test output information and sends the first test output information through the interface layer. The first test output information can be used to perform application function testing on the embedded program.

7. The testing method according to claim 6, characterized in that: The embedded program further includes a hardware function layer, and the method further includes a hardware function layer test: The hardware function layer receives second test input information through the interface layer; The hardware function layer generates second test output information and sends the second test output information to the input and output components connected to the air conditioning controller, wherein the second test output information can be used to perform result testing on the input and output components connected to the air conditioning controller, thereby performing hardware function testing on the program; Alternatively, the hardware function layer receives third input information sent by the input / output component, and the hardware function layer generates third output information; The hardware function layer sends the third test output information through the interface layer, and the third output information can perform a hardware function test on the program.

8. A method for testing the function of an air conditioner controller, characterized in that: Applied to a test device, the test device being in communication with an air conditioning controller, the test device being installed with test software, the test software including at least a simulated hardware module, the method comprising applying a functional layer test: The simulation hardware module sends first test input information to the air conditioning controller, wherein the first test input information and the corresponding first prediction output information are obtained from the test device; The simulation hardware module receives first test output information; The simulation hardware module performs application function testing on the embedded program using the first test output information and the first prediction output information.

9. The testing method according to claim 8, characterized in that: The test device further includes a simulation application module, the embedded program further includes a hardware function layer, and the method further includes a hardware function layer test: The simulation application module sends second test input information for performing a hardware function test on the program; Alternatively, the simulation application module receives the third output information, and performs a hardware function test on the embedded program according to the third output information and a reference value, where the reference value is determined according to the third test input information and the hardware function layer of the embedded program.

10. The testing method according to claim 8 or 9, characterized in that: The test method at least further comprises: The test system presents a start test option to the user through a display interface, so as to perform a functional test on the embedded program in response to the start test option triggered by the user.

11. An air conditioning controller testing system, characterized in that: The air conditioning controller test system includes a test device and an air conditioning controller. The test device is communicatively connected to the air conditioning controller. The test device is capable of performing functional testing on an embedded program of the air conditioning controller. The embedded program includes an application function layer and an interface layer. The test device is installed with test software, and the test software includes a simulated hardware module. The test method performed by the air conditioning controller test system includes at least application function testing: The simulation hardware module sends first test input information to the application function layer through the interface layer, where the first test input information and corresponding first prediction output information are obtained from the test device; The application function layer generates first test output information and returns the first test output information to the test device through the interface layer; the simulation hardware module uses the first test output information and the first prediction output information to perform application function testing on the embedded program.

12. The test system according to claim 11, characterized in that: The test software further includes a simulation application module, the embedded program further includes a hardware function layer, and the method further includes at least a hardware function test: The simulation application module sends second test input information to the hardware function layer through the interface layer; The hardware function layer generates second test output information and sends the second test output information to the input and output components connected to the air conditioning controller, wherein the second test output information can be used to perform result testing on the input and output components connected to the air conditioning controller and perform hardware function testing on the embedded program; Alternatively, the hardware function layer receives third input information sent by an input / output component connected to the air-conditioning controller, and the hardware function layer generates third output information; The hardware function layer sends the third test output information to the simulation application module through the interface layer; The simulation application module performs a hardware function test on the embedded program according to the third output information and a reference value, wherein the reference value is determined according to the third test input information and a hardware function layer of the embedded program.

13. An air conditioning controller, characterized in that: The embedded program of the air-conditioning controller includes an application function layer and an interface layer; The application function layer is used to receive first test input information through the interface layer; and generate first test output information; The interface layer is used to receive first test input information; and send out first test output information generated by the application function layer, where the first test output information can be used to perform application function testing on the embedded program.

14. The air conditioning controller according to claim 13, characterized in that: The embedded program also includes a hardware function layer; The hardware function layer is used to receive second test input information through the interface layer; generate second test output information, and the second test output information can be used to perform result testing on input and output components connected to the air-conditioning controller to perform hardware function testing on the program; The interface layer is used to receive second test input information; Sending the second test output information generated by the hardware function layer to the input and output components connected to the air conditioning controller; or The hardware function layer is used to receive third input information sent by the input and output components; generating third output information; and sending the third test output information through the interface layer, wherein the third output information can perform a hardware function test on the program; The interface layer is used to receive the third input information sent by the input and output components; The third test output information generated by the hardware function layer is sent and outputted.