Air conditioning test system and air conditioning test method
Through the upper computer and the air conditioner to be tested in the air conditioner test system, the configuration files and rewrite instructions of the target sensor parameters are used to simulate different working conditions, which solves the problem that traditional air conditioner performance testing experiments are difficult to simulate extreme working conditions, and improves experimental efficiency and reliability.
Patent Information
- Application Number
- CN202210825947.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-13
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-07-13
AI Technical Summary
Traditional air conditioning performance testing experiments are difficult to simulate extreme working conditions, resulting in low experimental efficiency and poor reliability.
It provides an air conditioner testing system, including a host computer and an air conditioner to be tested. The host computer obtains the configuration file of the target sensor parameters, verifys its correctness, and generates rewrite instructions to rewrite the sensor parameter values in the air conditioner to be tested, thereby simulating the environment in different working conditions.
By simulating environments in different working conditions, the efficiency and reliability of air conditioning performance testing are improved, faults caused by parameter rewriting errors are avoided, and the workflow is simplified.
Smart Images

Figure CN115165423B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of air conditioning technology, and in particular to an air conditioning testing system and an air conditioning testing method. Background Art
[0002] With the development of science and technology, the functions of air conditioners are becoming more and more diverse. In the development process of air conditioners, testing the air conditioners to evaluate their performance is an essential link.
[0003] In traditional air conditioner performance test experiments, the parameters detected by the sensors in the air conditioner are changed by simulating the working environment of the air conditioner, so that the air conditioner adjusts its operating parameters according to the parameters detected by the sensors, thereby realizing the performance test of the air conditioner under different working conditions. However, some extreme working conditions are difficult to simulate through actual environments. In this case, the operating parameters of the air conditioner need to be changed to complete the experiment. When changing the operating parameters of the air conditioner, it is often necessary to stop and refresh the air conditioner continuously, which increases the probability of failure of the air conditioner during the experiment. The workflow is cumbersome and the experimental efficiency is low.
[0004] Therefore, how to improve the efficiency and reliability of air conditioning performance testing experiments is an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present application provide an air conditioning testing system and an air conditioning testing method, which are used to solve the problem that extreme working conditions cannot be simulated in air conditioning performance testing experiments.
[0006] In a first aspect, an air conditioning test system is provided, the system comprising:
[0007] The air conditioner to be tested includes a memory, and the memory is used to store parameter values of multiple sensor parameters;
[0008] The host computer is connected to the air conditioner to be tested and is configured as follows:
[0009] Obtaining a configuration file of a target sensor parameter, where the target sensor parameter is any one of a plurality of sensor parameters, and the configuration file of the target sensor parameter includes a set value of the target sensor parameter;
[0010] Verify that the configuration file of the target sensor parameters is correct;
[0011] When the target sensor parameter configuration file is correct, a rewrite instruction is generated according to the target sensor parameter configuration file, and the rewrite instruction is sent to the air conditioner to be tested; wherein the rewrite instruction includes the set value of the target sensor parameter, and the rewrite instruction is used to instruct the air conditioner to be tested to rewrite the parameter value of the target sensor parameter stored in the memory to the set value.
[0012] The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: the host computer first obtains the configuration file of the target sensor parameters, and confirms that the configuration file of the target sensor parameters is correct, so as to avoid rewriting errors in the parameters of the air conditioner to be tested in the subsequent process. When the configuration file of the target sensor parameters is correct, the host computer can generate a rewrite instruction according to the configuration file of the target sensor parameters and send the rewrite instruction to the air conditioner to be tested, so that the air conditioner to be tested can rewrite the parameter value of the target sensor parameter stored in the memory to the set value according to the rewrite instruction. In this way, the host computer generates a rewrite instruction according to the configuration file of the target sensor parameters, controls the air conditioner to be tested to rewrite the parameter value of the target sensor parameters, and simulates different working conditions, so that the air conditioner to be tested can operate according to the operating parameters corresponding to the rewritten target sensor parameters, thereby realizing the test of the air conditioner performance under different working conditions.
[0013] In some embodiments, the configuration file of the target sensor parameters also includes: parameter name, parameter type and parameter value range; the host computer is configured to verify whether the configuration file of the target sensor parameters is correct, and specifically performs the following steps: obtain the system file of the air conditioner to be tested, the system file is used to record the relevant information of each sensor parameter; extract the preset parameter name, preset parameter type and preset parameter value range of the target sensor parameters from the system file; determine whether the configuration file of the target sensor parameters meets the preset conditions, the preset conditions include that the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, the preset parameter value range is the same as the parameter value range, and the set value is within the parameter value range; when the configuration file of the target sensor parameters meets the preset conditions, it is determined that the configuration file of the target sensor parameters is correct. In this way, the upper computer can extract the preset parameter name, preset parameter type and parameter value range of the target sensor parameter by obtaining the system file stored in the air conditioner to be tested, and compare them with the parameter name, parameter type and parameter value range in the configuration file of the target sensor parameter. When the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, the preset parameter value range is the same as the parameter value range, and the set value is within the parameter value range, it means that the configuration file of the target sensor parameter is correct, avoiding the failure of rewriting the target sensor parameters in subsequent testing processes.
[0014] In some embodiments, the rewrite instruction also includes parameter flag information corresponding to the target sensor parameter, and the parameter flag information is used to indicate whether the air conditioner to be tested is allowed to rewrite the parameter value of the target sensor parameter stored in the memory into the sampled value of the target sensor. In this way, by configuring the parameter flag information in the rewrite instruction, the air conditioner to be tested can be controlled to rewrite the target sensor parameter, and the air conditioner to be tested can be prevented from rewriting the target sensor parameter according to the sampled value of the target sensor, so as to avoid the rewritten set value being overwritten by the sampled value of the target sensor, so that the air conditioner test experiment can be carried out more stably.
[0015] In some embodiments, the host computer is further configured to issue a prompt message if the configuration file of the target sensor parameter is incorrect, and the prompt message is used to prompt the user to check the configuration file of the target sensor parameter. In this way, by issuing the prompt message, the user can be prompted that there is an error in the configuration file of the target sensor parameter, so that the user can check the configuration file of the target sensor parameter to avoid failures in the subsequent air conditioning test process.
[0016] In some embodiments, the air conditioner test system further includes a protocol converter, through which the host computer is connected to the air conditioner to be tested; the protocol converter is responsible for converting and transmitting the interactive signaling between the host computer and the air conditioner to be tested. In this way, the host computer and the air conditioner to be tested are connected through the protocol converter, and the host computer and the air conditioner to be tested can exchange communication data, so as to complete the air conditioner test process more efficiently.
[0017] In some embodiments, the air conditioner to be tested is configured to: receive a rewrite instruction, and rewrite the parameter value of the target sensor parameter stored in the memory to a set value according to the rewrite instruction; determine the operating parameter according to the set value, and operate according to the operating parameter corresponding to the set value. In this way, the air conditioner to be tested receives the rewrite instruction, rewrites the parameter value of the target sensor parameter stored in the memory to the set value, and realizes the simulation of various working conditions, and then the air conditioner to be tested operates according to the operating parameters corresponding to the set value, realizing the test of the air conditioner performance under different working conditions.
[0018] In a second aspect, an air conditioner testing method is provided, the method comprising: a host computer obtains a configuration file of a target sensor parameter, the target sensor parameter being any one of a plurality of sensor parameters in the air conditioner to be tested, the configuration file of the target sensor parameter including a set value of the target sensor parameter; the host computer verifies whether the configuration file of the target sensor parameter is correct; when the configuration file of the target sensor parameter is correct, the host computer generates a rewrite instruction according to the configuration file of the target sensor parameter, and sends the rewrite instruction to the air conditioner to be tested; wherein the rewrite instruction includes the set value of the target sensor parameter, and the rewrite instruction is used to instruct the air conditioner to be tested to rewrite the parameter value of the target sensor parameter stored in the memory to the set value.
[0019] In some embodiments, the configuration file of the target sensor parameters also includes: parameter name, parameter type and parameter value range; verifying whether the configuration file of the target sensor parameters is correct specifically includes: the host computer obtains the system file of the air conditioner to be tested, and the system file is used to record the relevant information of each sensor parameter; the host computer extracts the preset parameter name, preset parameter type and preset parameter value range of the target sensor parameters from the system file; the host computer determines whether the configuration file of the target sensor parameters meets the preset conditions, and the preset conditions include that the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, the preset parameter value range is the same as the parameter value range, and the set value is within the parameter value range; when the configuration file of the target sensor parameters meets the preset conditions, the host computer determines that the configuration file of the target sensor parameters is correct.
[0020] In some embodiments, the rewrite instruction also includes parameter flag information corresponding to the target sensor parameter; the parameter flag information is used to indicate whether the air conditioner to be tested is allowed to rewrite the parameter value of the target sensor parameter stored in the memory into the sampled value of the target sensor.
[0021] In some embodiments, the air conditioning testing method further includes: if the configuration file of the target sensor parameters is incorrect, the host computer issues a prompt message, and the prompt message is used to prompt the user to check the configuration file of the target sensor parameters.
[0022] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on any of the above-mentioned devices, the device executes any of the above-mentioned air conditioning testing methods.
[0023] In a fourth aspect, an embodiment of the present application provides a chip, comprising: a processor and a memory; the memory is used to store computer execution instructions, the processor is connected to the memory, and when the chip is running, the processor executes the computer execution instructions stored in the memory so that the chip executes any one of the above-mentioned air conditioning testing methods.
[0024] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on any of the above-mentioned devices, enables the device to execute any of the above-mentioned air conditioning testing methods.
[0025] In addition, the technical effects brought about by any design method in the second to fifth aspects can refer to the technical effects brought about by the different design methods in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of the structure of an air conditioning test system provided in an embodiment of the present application;
[0027] Figure 2 A hardware configuration diagram of a host computer provided in an embodiment of the present application;
[0028] Figure 3 A hardware configuration diagram of an air conditioner to be tested provided in an embodiment of the present application;
[0029] Figure 4 A flowchart of an air conditioning testing method provided in an embodiment of the present application;
[0030] Figure 5 An example of an air conditioning test method provided in the present invention is shown in FIG. Figure 1 ;
[0031] Figure 6 An example of an air conditioning test method provided in the present invention is shown in FIG. Figure 2 ;
[0032] Figure 7 A flowchart of another air conditioning testing method provided in an embodiment of the present application;
[0033] Figure 8 A flowchart of another air conditioning testing method provided in an embodiment of the present application;
[0034] Fig. 9 A logical schematic diagram of parameter reading provided in an embodiment of the present application;
[0035] Fig.10 A logical schematic diagram of parameter rewriting provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0038] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, when describing a pipeline, the "connected" and "connection" used in this application have the meaning of conduction. The specific meaning needs to be understood in conjunction with the context.
[0039] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0040] As mentioned in the background technology, it is difficult to simulate extreme working conditions in traditional air conditioner performance test experiments, and it is impossible to achieve a comprehensive test of air conditioner performance. To address this problem, the current solution is to directly change the operating parameters of the air conditioner, but this requires constant shutdown to refresh the data, which increases the instability of the air conditioner testing process, the workflow is more cumbersome, and the experimental efficiency is also low.
[0041] In view of this, an embodiment of the present application provides an air conditioner testing system, including a host computer and an air conditioner to be tested connected to the host computer. After the host computer obtains a configuration file of a target sensor parameter and verifies that the configuration file of the target sensor parameter is correct, the host computer generates a rewrite instruction according to the configuration file of the target sensor parameter, and sends the rewrite instruction to the air conditioner to be tested, so that the air conditioner to be tested rewrites the parameter value of the target sensor parameter stored in the memory to a set value. The host computer controls the air conditioner to be tested to rewrite the parameters detected by the sensor, simulates different working conditions, and then changes the operating parameters of the air conditioner to be tested, so as to achieve the test of the air conditioner performance under the non-stop working conditions.
[0042] Figure 1 This is a schematic diagram of the structure of an air conditioning test system provided in an embodiment of the present application. Figure 1 As shown, the air conditioner testing system 1 includes: a host computer 10 and an air conditioner to be tested 20 .
[0043] In some embodiments, the host computer 10 refers to a computer that can directly issue control commands. For example, the host computer 10 can be a personal computer (PC), a master computer, etc., which is not limited in the embodiments of the present application.
[0044] In some embodiments, the air conditioner to be tested 20 refers to an air conditioner for which software functions need to be tested. In the embodiment of the present application, there can be one or more air conditioners to be tested 20, and there is no limitation on this.
[0045] In some embodiments, the air conditioning test system 1 further includes a protocol converter 30, through which the host computer 10 is connected to the air conditioning to be tested 20, and the protocol converter 30 is responsible for protocol conversion and transmission of interactive signaling between the host computer 10 and the air conditioning to be tested 20.
[0046] Exemplarily, the host computer 10 uses the form of Modbus nested Homebus data to encapsulate the data packet and send it to the protocol converter 30 , and the protocol converter parses the data packet and sends it to the air conditioner 20 to be tested.
[0047] In some embodiments, the host computer 10 can also be connected to the protocol converter 30 via a USB-RS485 converter in RS485 wiring mode.
[0048] Exemplarily, the host computer 10 first embeds the Homebus command into the Modbus command, and converts the data packet of the Modbus command nested in the Homebus command into an RS485 data packet via a USB-RS485 converter. The protocol converter 30 then parses the RS485 data packet into a Homebus command and sends it to the air conditioner 20 to be tested, so that the air conditioner 20 to be tested performs the corresponding operation.
[0049] In some embodiments, based on the communication connection between the host computer 10 and the air conditioner to be tested 20, the host computer 10 can send a control instruction to the air conditioner to be tested 20 to instruct the air conditioner to be tested 20 to perform a corresponding operation. For example, the host computer 10 can send a rewrite instruction to the air conditioner to be tested 20, thereby instructing the air conditioner to be tested 20 to rewrite the parameter value of the target sensor parameter stored in the memory to the set value.
[0050] Figure 2 The hardware configuration diagram of the host computer 10 is shown as an example. Figure 2 As shown, the host computer 10 includes: a human-machine interaction device 101, a display 102, a communicator 103 and a controller 104. The human-machine interaction device 101, the display 102 and the communicator 103 are all connected to the controller 104.
[0051] In some embodiments, the human-computer interaction device 101 is used to implement interaction between the user and the host computer 10. The human-computer interaction device 101 may include one or more of a display panel or physical buttons. For example, the user may set a configuration file of target sensor parameters through the human-computer interaction device 101.
[0052] In some embodiments, the display 102 is used to display a user interface generated in the host computer 10 and used to control the host computer 10. The display 102 may be a liquid crystal display, an organic light-emitting diode (OLED) display, etc. The specific type, size, and resolution of the display 102 are not limited.
[0053] In some embodiments, the communicator 103 is a component for communicating with an external device or an external server according to various communication protocol types. For example, the communicator 103 may include a Wi-Fi chip, a Bluetooth communication protocol chip, a wired Ethernet communication protocol chip, or other network communication protocol chips or near field communication protocol chips, and at least one of an infrared receiver. The host computer 10 can transmit data signals between the air conditioner 20 to be tested through the communicator 103. For example, the host computer 10 sends a rewrite instruction to the air conditioner 20 to be tested through the communicator 103, so that the air conditioner 20 to be tested rewrites the parameter value of the target sensor parameter stored in the memory to the set value.
[0054] In some embodiments, the controller 104 refers to a device that can generate an operation control signal according to the instruction operation code and the timing signal to instruct the host computer 10 to execute the control instruction. Exemplarily, the controller 104 can be a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD) or any combination thereof. The controller 104 can also be other devices with processing functions, such as circuits, devices or software modules, and the embodiments of the present application do not impose any restrictions on this.
[0055] Figure 3 The hardware configuration diagram of the air conditioner 20 to be tested is shown as an example. Figure 3 As shown, the air conditioner 20 to be tested includes: a plurality of sensors 201 , a communicator 202 , a memory 203 and a controller 204 . The sensors 201 , the communicator 202 and the memory 203 are all connected to the controller 204 .
[0056] In some embodiments, the sensor 201 is used to detect physical parameters such as temperature and pressure at different locations in the tested air conditioner 20. For example, the sensor 201 may include an ambient temperature sensor, a compressor exhaust temperature sensor, a compressor exhaust pressure sensor, a refrigerant temperature sensor, and the like.
[0057] In some embodiments, the communicator 202 is a component for communicating with an external device or an external server according to various communication protocol types. For example, the communicator 202 may include a Wi-Fi chip, a Bluetooth communication protocol chip, a wired Ethernet communication protocol chip, and other network communication protocol chips or near-field communication protocol chips, and at least one of an infrared receiver. The air conditioner 20 to be tested can transmit data signals between the host computer 10 or the mobile terminal device used by the user through the communicator 202. For example, the air conditioner 20 to be tested sends operating status information to the host computer 10 through the communicator 202, so that the host computer 10 obtains the operating status of the air conditioner 20 to be tested, thereby realizing a performance test experiment on the air conditioner 20 to be tested.
[0058] In some embodiments, the memory 203 is used to store parameter values of various sensor parameters. In the related art, the parameter values of the sensor parameters stored in the memory 203 are the sampled values of the sensors corresponding to the sensor parameters. In the present application, the parameter values of the sensor parameters stored in the memory 203 can be the sampled values of the sensors corresponding to the sensor parameters, or the set values from the host computer 10.
[0059] Among them, the memory 203 can be a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or it can be an electrically erasable programmable read-only memory (EEPROM) or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer. The embodiments of the present application do not impose any restrictions on this.
[0060] In some embodiments, the controller 204 refers to a device that can generate an operation control signal according to the instruction operation code and the timing signal to instruct the air conditioner 20 to execute the control instruction. Exemplarily, the controller 204 can be a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The controller 204 can also be other devices with processing functions, such as circuits, devices, or software modules, and the embodiments of the present application do not impose any restrictions on this.
[0061] In addition, the controller 204 can also be used to control the operation of various components in the air conditioner 20 to be tested, so that the various components of the air conditioner 20 to be tested operate to achieve various predetermined functions of the air conditioner 20 to be tested.
[0062] The specific scheme of the present application is described in detail below in conjunction with the accompanying drawings.
[0063] The present application embodiment provides an air conditioning testing method, such as Figure 4 As shown, the method comprises the following steps:
[0064] S101, the host computer obtains a configuration file of target sensor parameters.
[0065] The target sensor parameter is a parameter detected by any one of the multiple sensors in the air conditioner to be tested, and the configuration file of the target sensor parameter includes a set value.
[0066] In some embodiments, the configuration file of the target sensor parameter also includes one or more of the parameter name, parameter type, parameter value range, and parameter flag information. When the parameter flag information is a first value, it indicates that the air conditioner to be tested is allowed to rewrite the parameter value of the target sensor parameter stored in the memory to the sampled value of the target sensor; when the parameter flag information is a second value, it indicates that the air conditioner to be tested is not allowed to rewrite the parameter value of the target sensor parameter stored in the memory to the sampled value of the target sensor. Exemplarily, the first value may be 0 and the second value may be 1; or, the first value may be 1 and the second value may be 0.
[0067] In this way, by setting parameter flag information in the configuration file of the target sensor parameters, the air conditioner to be tested can be controlled to rewrite the target sensor parameters, preventing the air conditioner to be tested from rewriting the target sensor parameters according to the sampling values of the target sensor, and avoiding the rewritten set values from being overwritten by the sampling values of the target sensor, so that the air conditioning test experiment can be carried out more stably.
[0068] In some embodiments, the configuration file of the target sensor parameters may be in CVS format, which not only facilitates the host computer to read the configuration file of the target sensor parameters, but also facilitates the user to input or modify the parameter information in the configuration file of the target sensor parameters.
[0069] In some embodiments, after the host computer starts running, the storage path of the configuration file of the target sensor parameters is first set. In this way, after the user completes setting the configuration file of the target sensor parameters, the host computer can read the configuration file of the target sensor parameters more quickly under the corresponding storage path.
[0070] S102: The host computer verifies whether the configuration file of the target sensor parameters is correct.
[0071] It should be understood that the user may make an error when setting the configuration file of the target sensor parameters. If the host computer performs the air conditioning performance test experiment according to the wrong configuration file of the target sensor parameters, it may obtain an incorrect experimental result, causing the experiment to fail. Therefore, after obtaining the configuration file of the target sensor parameters, it is necessary to verify the configuration file of the target sensor parameters. Only when the verification is correct can the air conditioning performance test experiment be carried out normally.
[0072] S103: When the target sensor parameter configuration file is correct, the host computer generates a rewrite instruction according to the target sensor parameter configuration file, and sends the rewrite instruction to the air conditioner to be tested.
[0073] The rewrite instruction includes a set value of a target sensor parameter, and the rewrite instruction is used to instruct the air conditioner to be tested to rewrite the parameter value of the target sensor parameter stored in the memory into the set value.
[0074] For example, Figure 5 As shown in the figure, taking parameter PD as an example, when the host computer does not send a rewrite instruction, although the set value of parameter PD is 240, the current value of parameter PD is still the sampled value 262 of the sensor. After the host computer sends the rewrite instruction, the air conditioner to be tested rewrites the parameter value stored in the memory to the set value, as shown in FIG. Figure 6 As shown, the setting value of the parameter PD is 240, and the current value is also 240, so that the air conditioner to be tested can re-determine the operating parameters according to the rewritten sensor parameters.
[0075] In some embodiments, the rewrite instruction also includes parameter flag information corresponding to the target sensor parameter, and the parameter flag information is used to indicate whether the air conditioner to be tested is allowed to rewrite the parameter value of the target sensor parameter stored in the memory into the sampled value of the target sensor.
[0076] Figure 4 The technical solution shown brings at least the following beneficial effects: the host computer first obtains the configuration file of the target sensor parameters, and confirms that the configuration file of the target sensor parameters is correct, so as to avoid rewriting errors in the parameters of the air conditioner to be tested in the subsequent process. When the configuration file of the target sensor parameters is correct, the host computer can generate a rewrite instruction according to the configuration file of the target sensor parameters and send the rewrite instruction to the air conditioner to be tested, so that the air conditioner to be tested can rewrite the parameter value of the target sensor parameter stored in the memory to the set value according to the rewrite instruction. In this way, the host computer generates a rewrite instruction according to the configuration file of the target sensor parameters, controls the air conditioner to be tested to rewrite the parameter value of the target sensor parameters, and simulates different working conditions, so that the air conditioner to be tested can operate according to the operating parameters corresponding to the rewritten target sensor parameters, thereby realizing the test of the air conditioner performance under different working conditions.
[0077] In some embodiments, when the configuration file of the target sensor parameter is incorrect, the host computer issues a prompt message, and the prompt message is used to prompt the user to check the configuration file of the target sensor parameter. In this way, by issuing the prompt message, the user can be prompted that there is an error in the configuration file of the target sensor parameter, so that the user can check the configuration file of the target sensor parameter to avoid failures in the subsequent air conditioning test process.
[0078] In some embodiments, Figure 7 As shown, step S102 can be specifically implemented as follows:
[0079] S1021. The host computer obtains the system file of the air conditioner to be tested.
[0080] The system file is used to record the relevant information of each sensor parameter. Exemplarily, the system file may be a MAP file.
[0081] As a possible implementation manner, the host computer receives the system file from the air conditioner to be tested, thereby obtaining the system file of the air conditioner to be tested.
[0082] As another possible implementation, the host computer sets a storage path for the system files, and the host computer can read the system files for testing the air conditioner under the storage path.
[0083] S1022: The host computer extracts the preset parameter name, preset parameter type, and preset parameter value range of the target sensor parameter from the system file.
[0084] In some embodiments, after acquiring the system file, the host computer parses the system file. The host computer sequentially reads the contents of the first ten lines of the system file to determine the chip type used by the air conditioner to be tested. If the air conditioner to be tested uses a 2425 chip, the host computer directly reads the starting address and ending address of each area of the memory, as well as the preset parameter name, preset parameter type, and preset parameter value range of the target sensor parameter within each address range from the system file, and stores it in the CollectParams.txt file. If the air conditioner to be tested uses an R5F104PJ chip or an R5F104PK chip, the host computer directly reads the starting address and ending address of each area of the memory, as well as the preset parameter name and preset parameter value range of the target sensor parameter within each address range from the system file. It is also necessary to additionally parse the VFI file, import the preset parameter type, and then add the preset parameter type to the CollectParams.txt file.
[0085] S1023: The host computer determines whether the configuration file of the target sensor parameters meets the preset conditions.
[0086] Among them, the preset conditions include that the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, the preset parameter value range is the same as the parameter value range, and the set value is within the parameter value range.
[0087] In some embodiments, the host computer reads the information contained in the configuration file of the target sensor parameters, extracts the parameter name, parameter type and parameter value range therefrom, and matches it with the CollectParams.txt file parsed from the system file to verify whether the parameter name, parameter type and parameter value range are correct.
[0088] It should be understood that only when the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, and the preset parameter value range is the same as the parameter value range, it indicates that the configuration file of the target sensor parameter set by the user is correct and the target sensor parameter is the parameter that needs to be rewritten. If the set value is outside the parameter value range, it indicates that the set value is an invalid value and cannot correspond to the operating parameters of the air conditioner, and the test experiment of the air conditioner performance cannot be realized. Therefore, only when the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, the preset parameter value range is the same as the parameter value range, and the set value is within the parameter value range, it indicates that the configuration file of the target sensor parameter is correct and an effective test of the air conditioner performance can be realized.
[0089] S1024: When the configuration file of the target sensor parameters meets the preset conditions, the host computer determines that the configuration file of the target sensor parameters is correct.
[0090] Figure 7 The technical solution shown brings at least the following beneficial effects: the upper computer can extract the preset parameter name, preset parameter type and parameter value range of the target sensor parameter by obtaining the system file stored in the air conditioner to be tested, and compare them with the parameter name, parameter type and parameter value range in the configuration file of the target sensor parameter. When the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, the preset parameter value range is the same as the parameter value range, and the set value is within the parameter value range, it means that the configuration file of the target sensor parameter is correct, avoiding the failure of rewriting the target sensor parameters in subsequent testing processes.
[0091] In some embodiments, Figure 8 As shown, the embodiment of the present application also provides an air conditioning testing method, the method comprising the following steps:
[0092] S201. The air conditioner to be tested receives a rewrite instruction, and rewrites the parameter value of the target sensor parameter stored in the memory into a set value according to the rewrite instruction.
[0093] S202: The air conditioner to be tested determines operating parameters according to the set values, and operates according to the operating parameters corresponding to the set values.
[0094] Among them, the operating parameters include operating mode (such as cooling, heating, dehumidification, etc.), air outlet direction, air outlet speed and other parameters.
[0095] It should be understood that the operating parameters are used to represent the operating state of the air conditioner to be tested, while the sensor parameters are used to represent the working environment.
[0096] Figure 8 The technical solution shown brings at least the following beneficial effects: the air conditioner to be tested receives the rewrite instruction, rewrites the parameter value of the target sensor parameter stored in the memory to the set value, realizes the simulation of various working conditions, and then the air conditioner to be tested operates according to the operating parameters corresponding to the set value, realizes the test of the air conditioner performance under different working conditions.
[0097] In some embodiments, after the host computer starts running, the host computer sets a communication port with the air conditioner to be tested and reads the operating information of the air conditioner to be tested. Among them, the host computer reads the operating information of the air conditioner to be tested, which can be specifically implemented as follows: after the air conditioner is turned on, the protocol converter automatically monitors the working conditions of the indoor and outdoor units of the air conditioner, identifies the air conditioner that is working normally, and records the number of the air conditioner that is working normally. The host computer determines the air conditioner with the recorded number as the air conditioner to be tested, and traverses and reads the operating information of the air conditioner to be tested in the protocol converter through the Modbus command, and then feeds back the operating information of the air conditioner to be tested to the user through the display.
[0098] In some embodiments, the host computer can read the operation information of multiple air conditioners to be tested, without limitation. For example, the host computer can read the operation information of up to 64 air conditioners to be tested, and display the operation information of all the air conditioners to be tested on the display.
[0099] In some embodiments, the host computer sends read and write commands to the protocol converter to read the parameter data of the air-conditioning system through the protocol converter. The data is received by registering the serial port receiving event SerialDataReceivedEventHandler to monitor the receiving buffer and receive the read parameter data.
[0100] like Fig. 9 As shown, the working logic of the host computer reading the target sensor parameters stored in the memory of the air conditioner to be tested is as follows:
[0101] First, the host computer encapsulates the parameter name, set value, parameter flag information and other information in the successfully verified target sensor parameter configuration file into a Homebus command; then, according to the Modbus-RTU communication rules, with Homebus as the data bit, the Homebus command is encapsulated into a Modbus command according to the reserved points of the protocol converter.
[0102] After that, the host computer sends the twice-encapsulated Modbus read command message (the encapsulated message of Homebus and Modbus) to the protocol converter, which parses the Modbus read command message and sends it to the air conditioner to be tested, so that the air conditioner to be tested reads the parameter data of the target sensor. At this time, it is necessary to wait for a preset time (for example, 500ms) so that the protocol converter can cache the parameter data of the target sensor read by the air conditioner to be tested.
[0103] The host computer sends the Modbus read data message (or Modbus read message) to the protocol converter again to read the parameter data of the target sensor read by the air conditioner to be tested that is cached in the protocol converter. At this time, it is still necessary to wait for a preset time so that the protocol converter can report the parameter data of the target sensor read by the air conditioner to be tested to the host computer.
[0104] After the parameter reading is completed, the host computer will read the parameter update and display it.
[0105] In some embodiments, Fig.10 As shown, the working logic of the host computer controlling the air conditioner to be tested to rewrite the parameter values of the sensor parameters stored in the memory is as follows:
[0106] After obtaining the configuration file of the target sensor parameters, the host computer determines the target sensor parameters that need to be rewritten, and after confirming that the configuration files of each target sensor parameter are correct, the setting values of multiple target sensor parameters can be combined into a frame of Homebus command (for example, with 16 setting values of target sensor parameters), and then the Homebus command is encapsulated into a Modbus command, and the Modbus is sent to the protocol converter.
[0107] The protocol converter parses the Modbus command and sends it to the air conditioner to be tested. The air conditioner to be tested rewrites the parameter value of the target sensor parameter to the set value, and controls the rewriting state of the target sensor parameter according to the set value of the parameter flag information.
[0108] The host computer monitors whether the parameter rewriting process is completed. If the parameter rewriting is not completed, the above parameter rewriting process is repeated; if the parameter has been rewritten successfully, the host computer executes the parameter reading process to obtain relevant information of the rewritten target sensor parameters.
[0109] The host computer can also send the values of parameter flag information corresponding to each target sensor parameter to the air conditioning system to be tested. For example, the host computer can encapsulate the values of parameter flag information corresponding to 16 target sensor parameters into a 2-byte data, and then send the 2-byte data to the air conditioning coefficient to be tested.
[0110] The above mainly introduces the solution provided by the present application from the perspective of the method. It is understandable that in order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0111] An embodiment of the present application also provides a computer-readable storage medium, including computer-executable instructions, which, when executed on a computer, enable the computer to execute any one of the air-conditioning testing methods provided in the above embodiments.
[0112] An embodiment of the present application also provides a computer program product including computer-executable instructions, which, when executed on a computer, enables the computer to execute any one of the air-conditioning testing methods provided in the above embodiments.
[0113] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer-executable instructions. When the computer-executable instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer-executable instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer-executable instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0114] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0115] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0116] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An air conditioning test system, characterized in that: include: An air conditioner to be tested, wherein the air conditioner to be tested comprises a memory, wherein the memory is used to store parameter values of a plurality of sensor parameters; The host computer is connected to the air conditioner to be tested and is configured as follows: Obtaining a configuration file of a target sensor parameter, wherein the target sensor parameter is any one of the multiple sensor parameters, and the configuration file of the target sensor parameter includes a set value, a parameter name, a parameter type, and a parameter value range of the target sensor parameter; Obtaining a system file of the air conditioner to be tested, wherein the system file is used to record relevant information of various sensor parameters; Extracting the preset parameter name, preset parameter type and preset parameter value range of the target sensor parameter from the system file; Determine whether the configuration file of the target sensor parameter satisfies a preset condition, wherein the preset condition includes that the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, the preset parameter value range is the same as the parameter value range, and the set value is within the parameter value range; When the configuration file of the target sensor parameters meets the preset conditions, determining that the configuration file of the target sensor parameters is correct; When the target sensor parameter configuration file is correct, a rewrite instruction is generated according to the target sensor parameter configuration file, and the rewrite instruction is sent to the air conditioner to be tested; wherein the rewrite instruction includes the set value of the target sensor parameter and parameter flag information corresponding to the target sensor parameter, and the rewrite instruction is used to instruct the air conditioner to be tested to rewrite the parameter value of the target sensor parameter stored in the memory to the set value; the parameter flag information is used to indicate whether the air conditioner to be tested is allowed to rewrite the parameter value of the target sensor parameter stored in the memory to the sampling value of the target sensor.
2. The air conditioning test system according to claim 1, characterized in that: The host computer is also configured as follows: If the configuration file of the target sensor parameters is incorrect, a prompt message is issued, and the prompt message is used to prompt the user to check the configuration file of the target sensor parameters.
3. The air conditioning test system according to claim 1, characterized in that: The air conditioner testing system further comprises a protocol converter, and the host computer is connected to the air conditioner to be tested via the protocol converter; The protocol converter is used to convert and transmit the interactive signaling between the host computer and the air conditioner to be tested.
4. The air conditioning test system according to claim 1, characterized in that: The air conditioner to be tested is configured as follows: receiving the rewrite instruction, and rewriting the parameter value of the target sensor parameter stored in the memory to the set value according to the rewrite instruction; According to the set value, the operating parameters are determined, and the system is operated according to the operating parameters corresponding to the set value.
5. An air conditioning testing method, characterized in that: include: The host computer obtains a configuration file of a target sensor parameter, where the target sensor parameter is any one of a plurality of sensor parameters in the air conditioner to be tested, and the configuration file of the target sensor parameter includes a set value, a parameter name, a parameter type, and a parameter value range of the target sensor parameter; The host computer obtains a system file of the air conditioner to be tested, wherein the system file is used to record relevant information of each sensor parameter; The host computer extracts the preset parameter name, preset parameter type and preset parameter value range of the target sensor parameter from the system file; The host computer determines whether the configuration file of the target sensor parameter meets the preset conditions, wherein the preset conditions include that the preset parameter name is the same as the parameter name, the preset parameter type is the same as the parameter type, the preset parameter value range is the same as the parameter value range, and the set value is within the parameter value range; When the configuration file of the target sensor parameters meets the preset conditions, the host computer determines that the configuration file of the target sensor parameters is correct; When the target sensor parameter configuration file is correct, the host computer generates a rewrite instruction based on the target sensor parameter configuration file, and sends the rewrite instruction to the air conditioner to be tested; wherein the rewrite instruction includes the set value of the target sensor parameter and parameter flag information corresponding to the target sensor parameter, and the rewrite instruction is used to instruct the air conditioner to be tested to rewrite the parameter value of the target sensor parameter stored in the memory to the set value; the parameter flag information is used to indicate whether the air conditioner to be tested is allowed to rewrite the parameter value of the target sensor parameter stored in the memory to the sampling value of the target sensor.
6. The method according to claim 5, characterized in that The method further includes: if the configuration file of the target sensor parameters is incorrect, the host computer issues a prompt message, wherein the prompt message is used to prompt a user to check the configuration file of the target sensor parameters.
Citation Information
Patent Citations
Testing method, testing device and testing system of air conditioner
CN103091573A
SENT protocol test system and method thereof
CN113179192A