Test parameter updating method and device, electronic equipment and storage medium

By automatically loading the test parameter set of the air conditioner system, it solves the problems of slow development progress and low update efficiency caused by software engineers frequently writing programs, realizes efficient parameter update of the air conditioner system, and improves development efficiency.

CN118733427APending Publication Date: 2024-10-01XIAOMI TECH (WUHAN) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310346954.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

During the development process of the air conditioner system, software engineers need to frequently write programs to verify and adjust system parameters, resulting in slow progress of the project, and low efficiency in updating the multi-working condition continuous test program, which affects development progress.

Method used

By monitoring the test parameter update instructions, automatically load the system test parameter set of the device under test, determine the source of the parameter update instruction, and determine the test parameter version number to be executed based on the source, and send it to the device under test to instruct it to execute the relevant test parameter set , to achieve automatic parameter upgrade.

Benefits of technology

It reduces the cost of manual parameter update testing, improves the efficiency of update testing, solves the problem of low update efficiency of multi-working condition continuous test programs, and improves the efficiency of air conditioner system development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733427A_ABST
    Figure CN118733427A_ABST
Patent Text Reader

Abstract

The invention provides a test parameter updating method and device, electronic equipment and a storage medium, and the method comprises the steps: determining a source of a parameter updating instruction under the condition that the test parameter updating instruction is monitored, determining a first version number of a to-be-executed test parameter according to the source of the parameter updating instruction, and sending the first version number to to-be-tested equipment, according to the method, the system test parameter set of the to-be-tested equipment can be automatically loaded when the test parameter updating instruction is monitored to upgrade the original parameters of the to-be-tested equipment, so that the updating test cost of manual parameter updating test is effectively reduced, and the test efficiency is improved. The updating test efficiency is improved, and the problem that the updating efficiency is low when the multi-working-condition continuous test program is executed on the to-be-tested equipment is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of air conditioning equipment, and in particular to a test parameter updating method, device, electronic equipment and storage medium. Background Art

[0002] Currently, the air-conditioning system includes two controllers, internal and external, and a variety of auxiliary equipment. During the development of a new project for the air-conditioning system, multiple experiments are usually required to verify and adjust system parameters to optimize the performance of the air-conditioning system.

[0003] In related technologies, software engineers usually conduct multiple experiments to verify system parameters. When parameter changes are involved, software engineers are required to write and output programs.

[0004] In this way, software engineers frequently write and output programs, which causes a large workload and slows down the project progress. When the air-conditioning system needs to be continuously tested under multiple working conditions, the program update efficiency will be low, which will affect the development progress and effect of the air-conditioning system. Summary of the invention

[0005] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0006] To this end, the purpose of the present invention is to propose a test parameter updating method, device, electronic device, storage medium and computer program product, which can automatically load the system test parameter set of the device under test when a test parameter update instruction is detected, so as to upgrade the original parameters of the device under test, effectively reduce the update test cost of manual parameter update testing, improve the update test efficiency, and solve the problem of low update efficiency when the device under test executes a multi-condition continuous test program.

[0007] The first aspect of the present disclosure proposes a test parameter updating method, comprising: determining the source of the parameter updating instruction when a test parameter updating instruction is detected; determining a first version number of the test parameter to be executed according to the source of the parameter updating instruction; and sending the first version number to the device under test to instruct the device under test to execute a first test parameter set associated with the first version number.

[0008] The second aspect embodiment of the present disclosure proposes a test parameter updating device, including: a first determination module, used to determine the source of the parameter update instruction when a test parameter update instruction is monitored; a second determination module, used to determine the first version number of the test parameter to be executed according to the source of the parameter update instruction; and a processing module, used to send the first version number to the device under test to instruct the device under test to execute a first test parameter set associated with the first version number.

[0009] The third aspect embodiment of the present disclosure proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the test parameter updating method proposed in the first aspect embodiment of the present disclosure is implemented.

[0010] The fourth aspect embodiment of the present disclosure proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the test parameter updating method proposed in the first aspect embodiment of the present disclosure.

[0011] The fifth aspect embodiment of the present disclosure proposes a computer program product. When the instructions in the computer program product are executed by a processor, the test parameter updating method proposed in the first aspect embodiment of the present disclosure is executed.

[0012] The test parameter updating method, device, electronic device, storage medium and computer program product provided by the present invention determine the source of the parameter updating instruction when the test parameter updating instruction is detected, determine the first version number of the test parameter to be executed according to the source of the parameter updating instruction, send the first version number to the device under test to instruct the device under test to execute the first test parameter set associated with the first version number, and can automatically load the system test parameter set of the device under test when the test parameter updating instruction is detected to upgrade the original parameters of the device under test, effectively reduce the update test cost of manually performing parameter update tests, improve the update test efficiency, and solve the problem of low update efficiency when the device under test executes a multi-condition continuous test program.

[0013] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0015] Figure 1 is a flowchart of a test parameter updating method proposed in an embodiment of the present disclosure;

[0016] Figure 2 is a flowchart of a test parameter updating method proposed in another embodiment of the present disclosure;

[0017] Figure 3 is a flowchart of a test parameter updating method proposed in another embodiment of the present disclosure;

[0018] Figure 4 is a schematic diagram of test parameters of a single test condition in an embodiment of the present disclosure;

[0019] Figure 5 is a schematic diagram of test parameters for continuous testing of multiple test conditions in an embodiment of the present disclosure;

[0020] Figure 6 is a schematic diagram of a test parameter update process in an embodiment of the present disclosure;

[0021] Figure 7 is a structural diagram of a test parameter updating device proposed in an embodiment of the present disclosure;

[0022] Figure 8 is a structural diagram of a test parameter updating device proposed in another embodiment of the present disclosure;

[0023] Fig. 9 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present disclosure, and are not to be construed as limitations of the present disclosure. On the contrary, the embodiments of the present disclosure include all changes, modifications, and equivalents that fall within the spirit and connotation of the appended claims.

[0025] Figure 1 It is a flowchart of a test parameter updating method proposed in an embodiment of the present disclosure.

[0026] It should be noted that the executor of the test parameter updating method of this embodiment is a test parameter updating device, which can be implemented by software and / or hardware, and can be configured in an electronic device, without limitation.

[0027] like Figure 1 As shown, the test parameter updating method includes:

[0028] S101: When a test parameter update instruction is detected, determine the source of the parameter update instruction.

[0029] The embodiments of the present disclosure can be applied to a device under test, wherein the device under test can be an air-conditioning system, wherein the air-conditioning system includes an indoor controller, an outdoor controller and a variety of auxiliary equipment, wherein the auxiliary equipment may include: a compressor, a fan, an electronic expansion valve, a sensor, etc., wherein the indoor controller has corresponding indoor system chip parameters and indoor fixed parameters, and the outdoor controller has corresponding outdoor system chip parameters and outdoor fixed parameters, wherein the system chip parameters refer to the dynamic variable parameters of the system, which are stored in the storage program code (Code Flash) of the controller system, and the fixed parameters refer to the constant parameters of the controller, which are stored in the data flash area (Data Flash) of the controller system or the static storage area of ​​the chip memory and other memories, wherein the location where the fixed parameters are stored is not limited.

[0030] The test parameter update instruction refers to an instruction used to trigger parameter update of the device under test.

[0031] Among them, the source of the parameter update instruction refers to the triggering method of the test parameter update instruction. The source of the parameter update instruction can be manually triggered and sent by the device under test monitoring tool corresponding to the device under test under a single test working condition, or it can be automatically triggered by the controller system of the device under test when the test working condition of the device under test changes.

[0032] In the implementation of the present disclosure, the test parameter update instruction can be monitored in real time based on the device monitoring tool of the device under test. The device monitoring tool can be an application test monitoring system. The test parameters of the binary test file stored in the controller chip of the device under test are updated based on the device monitoring tool, and the binary test file with updated parameters is sent to the device under test for execution.

[0033] In the embodiment of the present disclosure, the device monitoring tool based on the device under test monitors the test parameter update instruction in real time. When the test parameter update instruction is monitored, the source of the parameter update instruction is determined, and the test working condition environment of the device under test can be analyzed. If the test working condition environment has not changed, it indicates that the source of the test parameter update instruction is triggered by the device monitoring tool of the device under test in a single test working condition environment. If the test working condition environment changes, the source of the test parameter update instruction may be automatically triggered in a multi-condition continuous test environment.

[0034] S102: Determine a first version number of a test parameter to be executed according to a source of the parameter update instruction.

[0035] The test parameters to be executed refer to the test parameters to be executed by the device under test for parameter update.

[0036] The first version number refers to a version number used to identify the parameter version of the test parameter to be executed, and the first version number may include an internal parameter version number of the device under test and an external parameter version number of the device under test.

[0037] In the above-mentioned case where a test parameter update instruction is monitored, after determining the source of the parameter update instruction, the embodiment of the present disclosure can determine the first version number of the test parameter to be executed according to the source of the parameter update instruction.

[0038] In an embodiment of the present disclosure, a pre-set parameter table can be obtained, in which a plurality of pre-set test parameters for performing parameter update tests on a device under test are stored. The parameter test table contains a plurality of sets of internal system parameters and external system parameters, and each set of test parameters has a corresponding parameter version number. When determining the first version number of the test parameter to be executed according to the source of the parameter update instruction, when the parameter update instruction is automatically triggered by a change in the test working condition environment, the version number of the test parameter that the device under test should use under the test working condition environment is determined according to the current test working condition environment. The version number of the test parameter that the device under test should use can be obtained from the correspondence between the test working condition environment pre-set in the device under test system and the test parameter version number, and the version number of the test parameter that the device under test should use is used as the first version number. When the source of the parameter update instruction is manually triggered by a device monitoring tool, a parameter version number from the preset test parameter table that has not been processed for parameter testing can be selected as the first version number.

[0039] S103: Send the first version number to the device under test to instruct the device under test to execute a first test parameter set associated with the first version number.

[0040] The first test parameter set refers to a test parameter set associated with the first version number, and the first test parameter set may include internal test parameters and external test parameters to be executed by the device under test. The first test parameter set.

[0041] After determining the first version number of the test parameter to be executed according to the source of the parameter update instruction, the embodiment of the present disclosure may send the first version number to the device under test to instruct the device under test to execute the first test parameter set associated with the first version number.

[0042] In an embodiment of the present disclosure, when a first version number is sent to a device under test to instruct the device under test to execute a first test parameter set associated with the first version number, the first test parameter set associated with the first version number can be obtained from a preset parameter table, the first version number can be sent to the device under test, and based on a device monitoring tool, the first test parameter set associated with the first version number can be written into a test program file of the device under test, and the test program can be stored in a storage area corresponding to the device under test, so that the device under test can execute the first test parameter set associated with the first version number.

[0043] In other embodiments, the first test parameter set also includes parameter change information, which can be used to indicate some parameters that need to be updated in the original test program file of the device under test, so that test update processing can be performed based on the original test file of the test device system.

[0044] In this embodiment, by determining the source of the parameter update instruction when a test parameter update instruction is monitored, determining the first version number of the test parameter to be executed based on the source of the parameter update instruction, and sending the first version number to the device under test to instruct the device under test to execute the first test parameter set associated with the first version number, the system test parameter set of the device under test can be automatically loaded when the test parameter update instruction is monitored to upgrade the original parameters of the device under test, effectively reducing the update test cost of manual parameter update testing, improving the update test efficiency, and solving the problem of low update efficiency when the device under test executes a multi-condition continuous test program.

[0045] Figure 2 It is a flowchart of a test parameter updating method proposed in another embodiment of the present disclosure.

[0046] like Figure 2 As shown, the test parameter updating method includes:

[0047] S201: When a test parameter update instruction is detected, determine the source of the parameter update instruction.

[0048] S202: Determine a first version number of a test parameter to be executed according to a source of the parameter update instruction.

[0049] For the detailed description of S201 and S202 , please refer to the above embodiments, which will not be repeated here.

[0050] S203: When the first version number is different from the second version number associated with the second test parameter set included in the first test file stored in the device under test, obtain the first test parameter set associated with the first version number from a preset parameter list.

[0051] The first test file refers to a test file storing current unupdated test parameters of the device under test before the test parameters of the device under test are updated. The first test file may be a binary (bin) file.

[0052] The second test parameter set refers to a test parameter set stored in a test program file of the test device before the test parameters of the device under test are updated.

[0053] Among them, the preset parameter list refers to a parameter table that is pre-tested when performing parameter update test on the device under test. The preset parameter list can store multiple sets of system test parameter sets, and each set of system test parameter sets has a corresponding parameter version number for unique identification and association.

[0054] In an embodiment of the present disclosure, a second version number associated with a second test parameter set contained in a first test file stored in the device to be tested can be obtained, and the second version number can be compared with the first version number. If the first version number is different from the second version number, it indicates that the test parameters in the first test file have not been updated. In this way, the first test parameter set associated with the first version number can be obtained from a preset parameter list, so as to update the second test parameter set based on the first test parameter set to obtain an updated test file.

[0055] S204: Based on the first test parameter set, update the second test parameter set.

[0056] In the embodiment of the present disclosure, when the first version number is different from the second version number associated with the second test parameter set included in the first test file stored in the device to be tested, after obtaining the first test parameter set associated with the first version number from the preset parameter list, the second test parameter set can be updated based on the first test parameter set.

[0057] In an embodiment of the present disclosure, when the second test parameter set is updated based on the first test parameter set, parameter change information can be obtained from the first test parameter set, and the parameter change information can indicate partial parameter content that needs to be updated in the second test parameter set, and the storage address range of the partial parameter content that needs to be updated in the first test file is obtained according to the parameter change information, and the partial test parameters corresponding to the partial parameters that need to be updated in the second test parameter set in the first test parameter set are obtained, and the partial parameters that need to be updated in the second test parameter set are replaced with the corresponding partial test parameters in the first test parameter set, so as to update the second test parameter set based on the first test parameter set.

[0058] Optionally, in some embodiments, the first file header and the first check code in the first test file can be obtained, and the second check code and the second file header can be generated based on the test parameters in the first test parameter set. When the first file header matches the second file header and the first check code does not match the second check code, the corresponding test parameters in the second test parameter set are updated based on each test parameter in the first test parameter set. The parameters of each part of the test parameter set can be identified and distinguished based on the file header code, thereby ensuring the accuracy of the positioning identification update when the original parameters are updated, and ensuring the parameter update test effect of the device under test.

[0059] Among them, the first file header refers to a data identifier used to partition and identify the parameters in the first test file. The first test file stores the internal system parameters and the external system parameters of the device to be tested. The first file header may include an internal firmware header code and an external firmware header code, which are respectively used to identify the starting positions of the internal system parameters and the external system parameters in the first test file, so as to realize positioning processing of the test parameters in the first test file.

[0060] Among them, the first check code refers to a check parameter that can be used to characterize whether the test parameters need to be updated. The first check code can be calculated based on some data segments in the first test file. The first check code can be, for example, a cyclic redundancy check code (Cyclic Redundancy Check, CRC), or can also be any other form of check code, without limitation.

[0061] Among them, the second check code refers to a check parameter generated according to the first test parameter set for determining whether the test parameters of the device under test need to be updated. The second check code can be calculated based on a partial data segment in the second test parameter set. The second check code can be, for example, a cyclic redundancy check code CRC, or can also be any other form of check code, without limitation.

[0062] Among them, the second file header refers to a data identifier that can be used to partition the parameters in the first test parameter set. The first test parameter set can store internal system parameters and external system parameters that are to be updated for the test parameters of the device under test. The first test parameter set can include an internal firmware header code and an external firmware header code, which are respectively used to identify the starting positions of the internal system parameters and the external system parameters in the first test parameter set, so as to realize positioning processing of the test parameters in the first test parameter set.

[0063] In the disclosed embodiment, a first file header and a first check code in a first test file can be obtained, and a second check code and a second file header can be generated based on each test parameter in a first test parameter set. Then, the first file header and the second file header can be matched, and the first check code and the second check code can be compared and matched. When the first file header and the second file header match, and the first check code and the second check code do not match, the corresponding test parameter in the second test parameter set is updated based on each test parameter in the first test parameter set. Parameter content change information in the first test parameter set can be obtained, and partial parameter content that needs to be updated in the second test parameter set is obtained according to the parameter change information, and partial test parameters corresponding to the partial parameters that need to be updated in the second test parameter set in the first test parameter set are obtained, and partial parameters that need to be updated in the second test parameter set are replaced with partial test parameters corresponding to the first test parameter set. For parameters that do not need to be updated in the first test parameter data set, parameter retention filling is performed according to the address interval where the parameters that do not need to be updated are located, so as to update the second test parameter set based on the first test parameter set.

[0064] S205: Send the updated first test file to the device under test to instruct the device under test to store the updated first test file into a preset storage area.

[0065] The present disclosure is implemented by updating the second test parameter set based on the first test parameter set. After obtaining the updated first test file, the first test file can be sent to the device under test based on the device monitoring tool, and the device under test is instructed to store the updated first test file into a preset storage area.

[0066] In the disclosed embodiment, the test parameter type in the first test file is analyzed, the dynamic parameters are written into the storage program code Code Flash of the device under test, and the fixed parameters are stored in the data flash area Data Flash of the controller system or the static storage area of ​​the chip memory and other memories, wherein the location where the fixed parameters are stored is not limited, so as to realize storing the first test file in a preset storage area.

[0067] S206: Send the first version number to the device under test to instruct the device under test to execute a first test parameter set associated with the first version number.

[0068] For the detailed description of S206 , please refer to the above embodiment, which will not be repeated here.

[0069] In this embodiment, by determining the source of the parameter update instruction when a test parameter update instruction is detected, determining the first version number of the test parameter to be executed according to the source of the parameter update instruction, and sending the first version number to the device under test to instruct the device under test to execute the first test parameter set associated with the first version number, the system test parameter set of the device under test can be automatically loaded when the test parameter update instruction is detected to upgrade the original parameters of the device under test, effectively reducing the update test cost of manually performing parameter update tests, improving the update test efficiency, and solving the problem of low update efficiency when the device under test executes a multi-condition continuous test program. By obtaining the first file header and the first check code in the first test file, a second check code and a second file header are generated based on each test parameter in the first test parameter set. When the first file header matches the second file header and the first check code does not match the second check code, the corresponding test parameter in the second test parameter set is updated based on each test parameter in the first test parameter set, so that the parameters of each part of the test parameter set can be identified and distinguished based on the file header code, so that the accuracy of positioning, identification and updating when the original parameters are updated can be guaranteed, and the parameter update test effect of the device under test can be guaranteed.

[0070] Figure 3 It is a flowchart of a test parameter updating method proposed in another embodiment of the present disclosure.

[0071] like Figure 3 As shown, the test parameter updating method includes:

[0072] S301: When a test parameter update instruction is detected, determine the source of the parameter update instruction.

[0073] S302: When the parameter update instruction is triggered by a test environment parameter change, determine the current test environment parameters.

[0074] Among them, the test environment parameters refer to data parameters that can be used to characterize the test working environment in which the device under test is currently located. When the device under test is an air-conditioning controller, the test environment parameters can characterize that the device under test is currently in a cooling working environment, a heating working environment, a power outage, a restart, and other working environments, and there is no restriction on this.

[0075] In the embodiment of the present disclosure, if the operating environment of the device under test changes due to power failure or restart, the test environment parameters in the device under test will change accordingly to switch the function of the device under test. At this time, the current test environment parameters of the device under test can be obtained when the environment changes.

[0076] S303: Determine a first version number associated with the current test environment parameter based on the association relationship between the test parameter version number and the environment parameter.

[0077] The association relationship between the test parameter version number and the environmental parameter refers to data information describing the association relationship between the test parameter version number and the environmental parameter stored in the device under test system.

[0078] In an embodiment of the present disclosure, when determining the first version number associated with the current test environment parameters based on the association relationship between the test parameter version number and the environment parameters, the test parameter version number corresponding to the current test environment parameters can be matched in the data information describing the association relationship between the test parameter version number and the environment parameters stored in the device system under test to obtain the first version number associated with the current test environment parameters.

[0079] S304: When the parameter update instruction is input from the outside, determine the version number of at least one untested test parameter as the first version number.

[0080] In the embodiment of the present disclosure, if the source of the parameter update instruction is that the parameter update instruction is input externally, a version number of at least one untested test parameter may be selected from a preset parameter list and determined as the first version number.

[0081] Optionally, in some embodiments, the version number of at least one untested test parameter is determined as the first version number. When a test condition parameter is included in the parameter update instruction, the version number of the untested test parameter associated with the test condition parameter is determined as the first version number. Alternatively, when the parameter update instruction includes multiple test condition parameters, the version numbers of multiple untested test parameters respectively associated with the multiple test condition parameters are determined as the first version number.

[0082] In the implementation of the present disclosure, when a test condition parameter is included in the parameter update instruction, it indicates that the test scheme set for the device to be tested is a test under a single test condition, and a set of internal system parameters and external system parameters are stored in the device to be tested, without multiple sets of other auxiliary parameters. In this case, the version number of the test parameter associated with a test condition parameter that has not been tested in the parameter list can be determined as the first version number.

[0083] For example, Figure 4 As shown, Figure 4It is a test parameter schematic diagram of a single test condition in an embodiment of the present disclosure, wherein the indoor system EE_1 represents a set of indoor system test parameter sets, EE_1 is the test parameter set version number corresponding to the indoor system test parameter set, and an untested indoor test parameter version number associated with a currently set test condition parameter can be selected from the indoor system EE_1 to the indoor system EE_N in the indoor system test parameter set of the parameter table, and an untested outdoor test parameter version number associated with a currently set test condition parameter can be selected from the outdoor system EE_1 to the outdoor system EE_N, and the selected indoor test parameter version number and outdoor test parameter version number are used as the first version number.

[0084] In the implementation of the present disclosure, when a parameter update instruction includes multiple test condition parameters, it indicates that the test scheme set for the device to be tested is a continuous test under multiple test conditions, and the device to be tested stores multiple sets of internal system parameters and external system parameters, including multiple sets of auxiliary parameters. Then, the version numbers of multiple test parameters that have not been tested and are respectively associated with multiple test condition parameters can be determined as the first version number.

[0085] For example, Figure 5 As shown, Figure 5 It is a schematic diagram of test parameters for continuous testing of multiple test conditions in the embodiment of the present disclosure. At this time, if there are test parameters corresponding to multiple test conditions in the device to be tested, the internal unit test parameter version number and the external unit test parameter version number of multiple test parameters that have not been tested and are respectively associated with multiple test condition parameters are selected from the parameter table as the first version number based on the multiple test condition parameters included in the parameter update instruction.

[0086] Optionally, in some embodiments, any one of the version numbers of multiple test parameters can be determined as the main version number in the first version number, or a test parameter version number associated with a specified test condition parameter among the version numbers of multiple test parameters can be determined as the main version number in the first version number. This allows the version number of the test parameter to be executed to be selected in a targeted manner in the cases of single condition testing and multi-condition continuous testing. Since the parameter test program can be automatically updated and tested by the equipment monitoring tool and changes can be made based on the original test file of the equipment to be tested, the parameter test update efficiency can be effectively improved.

[0087] Among them, the main version number refers to the test parameter version number of the test parameter that runs by default when the device under test is powered on. The main version number can be any one of the multiple test parameter version numbers, or it can also be a test parameter version number associated with a specified test condition parameter among the multiple test parameter version numbers. The specified test condition parameter can be specified by the test engineer when specifying the test plan.

[0088] In the embodiment of the present disclosure, parameter update test processing can be performed on the device to be tested according to the number of test condition parameters contained in the parameter update instruction. For example, Figure 6 As shown, Figure 6 1 is a schematic diagram of the test parameter update process in the embodiment of the present disclosure. The internal and external machine program bin files of the device to be tested can be added to the device monitoring tool, and the system EE parameters can be updated or newly added in the system parameter table. Then, it can be determined whether both the internal and external machine EE parameters need to be updated. When any part of the parameters does not need to be updated, the part of the parameters that do not need to be updated is skipped. Then, it can be determined whether the fixed parameters of the system need to be updated. When the fixed parameters do not need to be updated and there is only one test condition parameter in the parameter update instruction, the internal and external machine EE parameter checksums are calculated to generate an updated EE parameter bin file in the format of "internal machine EE header code + internal machine EE change information + internal machine EE array + external machine EE header code + external machine EE change information + external machine EE array" (if part of the parameters do not need to be updated, the corresponding address interval of the bin file is filled by default). When the fixed parameters need to be updated and there is only one test condition parameter in the parameter update instruction, the calculation The EE parameter checksum of the indoor and outdoor machines generates an updated EE parameter bin file in the format of "indoor EE header code + indoor EE change information + indoor EE array + indoor fixed EE header code + indoor fixed EE parameter content + outdoor EE header code + outdoor EE change information + outdoor EE array + outdoor fixed EE header code + outdoor fixed EE parameter content" (if part of it does not need to be updated, the corresponding address interval of the bin file is filled by default), and then the current indoor and outdoor machine program bin files and the updated EE parameter bin files can be automatically loaded. After reading the indoor and outdoor machine firmware header code identifiers, the current indoor machine EE checksum is sequentially queried and read to determine whether it is consistent with the indoor machine EE checksum in the updated EE parameter bin file. If it is inconsistent, the new EE parameters are written into the indoor machine CodeFlash area. If the fixed parameter header code is detected, it is directly written into the DataFlash area; similarly, the outdoor machine parameter EE update is completed, and finally a new version of the indoor and outdoor machine program bin file is generated.

[0089] In the embodiment of the present disclosure, when the fixed parameters do not need to be updated and there are multiple test condition parameters in the parameter update instruction, the checksum of the internal and external machine EE parameters is calculated, and the updated EE parameter bin file of the format of "internal machine EE header code + internal machine EE change information + internal machine main parameter number Xz + internal machine EE array (1~N) + external machine EE header code + external machine EE change information + internal and external main parameter number Yz + external machine EE array (1~N)" is generated (if part of it does not need to be updated, the corresponding address interval of the bin file is filled by default. When the fixed parameters need to be updated and there are multiple test condition parameters in the parameter update instruction, the checksum of the internal and external machine EE parameters is calculated, and the format of "internal machine EE header code + internal machine EE change information + internal machine main parameter number Xz + internal machine EE array (1~N) + internal machine fixed EE header code + internal machine fixed EE parameter content + external machine E The updated EE parameter bin file of "E header code + outdoor unit EE change information + indoor and outdoor main parameter number Yz + outdoor unit EE array (1~N) + outdoor unit solidified EE header code + outdoor unit solidified EE parameter content" (if part of it does not need to be updated, the corresponding address interval of the bin file is filled by default), and then the current indoor and outdoor unit program bin files and the updated EE parameter bin files can be automatically loaded. After reading the indoor and outdoor unit firmware header code identifiers, the current indoor unit EE checksum is sequentially queried and read to determine whether it is consistent with the multiple sets of indoor unit EE parameter checksums in the updated EE parameter bin file. If they are inconsistent, the new multiple sets of EE parameters are written into the indoor unit CodeFlash area, and the main parameter number Xz is updated at the same time. When the solidified parameter header code is detected, it is directly written into the DataFlash area; similarly, the outdoor unit parameter EE update is completed, and finally a new version of the indoor and outdoor unit program bin file is generated.

[0090] After generating a new version of the bin file, the disclosed embodiment can back up the generated bin file, automatically update the internal and external machine programs by monitoring the serial port, and determine whether a multi-parameter switching test is required. If a multi-parameter switching test is required, the continuous working condition test mode can be entered to record the environmental parameters of the test working condition, and determine whether the device is started after power failure. If the device is started after power failure, the number of power failures is recorded, the current working condition environmental parameters are cyclically detected, and then it is determined whether the device meets the next test condition, and the parameter control flag is sent to the controller of the device to be tested to switch the test program parameters.

[0091] S305: Send the first version number to the device under test to instruct the device under test to execute a first test parameter set associated with the first version number.

[0092] For the specific description of S305, please refer to the above embodiment, which will not be repeated here.

[0093] In this embodiment, by determining the source of the parameter update instruction when a test parameter update instruction is detected, determining the first version number of the test parameter to be executed according to the source of the parameter update instruction, and sending the first version number to the device under test to instruct the device under test to execute the first test parameter set associated with the first version number, the system test parameter set of the device under test can be automatically loaded when the test parameter update instruction is detected to upgrade the original parameters of the device under test, effectively reducing the update test cost of manual parameter update testing, improving the update test efficiency, and solving the problem of low update efficiency when the device under test executes a multi-condition continuous test program. By determining any one of the version numbers of multiple test parameters as the main version number in the first version number, or determining a test parameter version number associated with a specified test condition parameter among the version numbers of multiple test parameters as the main version number in the first version number, the version number of the test parameter to be executed can be selected in a targeted manner in the case of a single condition test and a multi-condition continuous test. Since the parameter test program can be automatically updated by the device monitoring tool and modified based on the original test file of the device under test, the parameter test update efficiency is effectively improved.

[0094] Figure 7 It is a structural diagram of a test parameter updating device proposed in another embodiment of the present disclosure.

[0095] like Figure 7 As shown, the test parameter updating device 70 comprises:

[0096] A first determination module 701 is used to determine the source of the parameter update instruction when a test parameter update instruction is detected;

[0097] A second determination module 702, configured to determine a first version number of a test parameter to be executed according to a source of the parameter update instruction;

[0098] The processing module 703 is configured to send the first version number to the device under test to instruct the device under test to execute a first test parameter set associated with the first version number.

[0099] In some embodiments of the present disclosure, Figure 8 As shown, Figure 8 is a structural diagram of a test parameter updating device proposed in another embodiment of the present disclosure, and further includes:

[0100] an acquisition module 704, configured to acquire, before sending the first version number to the device controller under test, a first test parameter set associated with the first version number from a preset parameter list when the first version number is different from a second version number associated with a second test parameter set included in a first test file stored in the device under test;

[0101] The updating module 705 is configured to update the second test parameter set based on the first test parameter set.

[0102] In some embodiments of the present disclosure, the update module 705 is specifically used to:

[0103] Obtain a first file header and a first check code in a first test file;

[0104] Based on each test parameter in the first test parameter set, generate a second check code and a second file header;

[0105] When the first file header matches the second file header and the first verification code does not match the second verification code, the corresponding test parameter in the second test parameter set is updated based on each test parameter in the first test parameter set.

[0106] In some embodiments of the present disclosure, it further includes:

[0107] The storage module 706 is used to send the updated first test file to the device under test after updating the second test parameter set based on the first test parameter set, so as to instruct the device under test to store the updated first test file into a preset storage area.

[0108] In some embodiments of the present disclosure, the second determining module 702 is specifically configured to:

[0109] In the case where the parameter update instruction is triggered by a change in a test environment parameter, determining the current test environment parameter;

[0110] Based on the association relationship between the test parameter version number and the environment parameter, a first version number associated with the current test environment parameter is determined.

[0111] In some embodiments of the present disclosure, the second determining module 702 is further configured to:

[0112] In the case where the parameter update instruction is input from the outside, the version number of at least one test parameter that has not been tested is determined as the first version number.

[0113] In some embodiments of the present disclosure, the second determining module 702 is further configured to include:

[0114] In the case where a test condition parameter is included in the parameter update instruction, a version number of a test parameter associated with the test condition parameter that has not been tested is determined as the first version number; or

[0115] In the case where the parameter update instruction includes multiple test condition parameters, the version numbers of multiple test parameters that have not been tested and are respectively associated with the multiple test condition parameters are determined as the first version number.

[0116] In some embodiments of the present disclosure, the device is further used for:

[0117] Determine any one of the multiple test parameter version numbers as the main version number in the first version number; or,

[0118] A test parameter version number associated with the specified test condition parameter among the multiple test parameter version numbers is determined as the main version number in the first version number.

[0119] With the above Figures 1 to 6 Corresponding to the test parameter updating method provided in the embodiment, the present disclosure also provides a test parameter updating device. Figures 1 to 6 The test parameter updating method provided in the embodiment corresponds to the test parameter updating method, so the implementation of the test parameter updating method is also applicable to the test parameter updating device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.

[0120] In this embodiment, by determining the source of the parameter update instruction when a test parameter update instruction is monitored, determining the first version number of the test parameter to be executed based on the source of the parameter update instruction, and sending the first version number to the device under test to instruct the device under test to execute the first test parameter set associated with the first version number, the system test parameter set of the device under test can be automatically loaded when the test parameter update instruction is monitored to upgrade the original parameters of the device under test, effectively reducing the update test cost of manual parameter update testing, improving the update test efficiency, and solving the problem of low update efficiency when the device under test executes a multi-condition continuous test program.

[0121] In order to implement the above embodiments, the present disclosure further proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the test parameter updating method proposed in the above embodiments of the present disclosure is implemented.

[0122] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When an instruction processor in the computer program product is executed, the test parameter updating method proposed in the above embodiments of the present disclosure is executed.

[0123] Fig. 9 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown.

[0124] Fig. 9 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0125] like Fig. 9As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0126] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0127] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0128] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 Not shown, often called a "hard drive").

[0129] although Fig. 9Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (hereinafter referred to as: CD-ROM), a digital versatile disc read only memory (hereinafter referred to as: DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.

[0130] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0131] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a human body to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0132] The processing unit 16 executes various functional applications and parameter information determination by running the programs stored in the system memory 28, such as implementing the test parameter updating method mentioned in the above embodiment.

[0133] It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "plurality" is two or more.

[0134] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.

[0135] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0136] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0137] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0138] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0139] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0140] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.

Claims

1. A test parameter updating method, characterized in that: include: In case of detecting a test parameter update instruction, determining a source of the parameter update instruction; Determining a first version number of a test parameter to be executed according to a source of the parameter update instruction; The first version number is sent to the device under test to instruct the device under test to execute a first test parameter set associated with the first version number.

2. The method according to claim 1, characterized in that Before sending the first version number to the device to be tested, the method further includes: When the first version number is different from the second version number associated with the second test parameter set contained in the first test file stored in the device under test, obtaining the first test parameter set associated with the first version number from a preset parameter list; Based on the first test parameter set, the second test parameter set is updated.

3. The method according to claim 2, characterized in that The method further comprises: Obtain a first file header and a first check code from the first test file; Based on each test parameter in the first test parameter set, generate a second check code and a second file header; When the first file header matches the second file header and the first verification code does not match the second verification code, the corresponding test parameter in the first test parameter set is updated based on each test parameter in the first test parameter set.

4. The method according to claim 2, characterized in that After the second test parameter set is updated based on the first test parameter set, the method further includes: The updated first test file is sent to the device under test to instruct the device under test to store the updated first test file into a preset storage area.

5. The method according to any one of claims 1 to 4, characterized in that: The step of determining the first version number of the test parameter to be executed according to the source of the parameter update instruction includes: In a case where the parameter update instruction is triggered by a change in a test environment parameter, determining a current test environment parameter; Based on the association relationship between the test parameter version number and the environment parameter, a first version number associated with the current test environment parameter is determined.

6. The method according to any one of claims 1 to 4, characterized in that: The step of determining the first version number of the test parameter to be executed according to the source of the parameter update instruction includes: In a case where the parameter update instruction is input from the outside, the version number of at least one test parameter that has not been tested is determined as the first version number.

7. The method according to claim 6, characterized in that The step of determining the version number of at least one test parameter that has not been tested as the first version number includes: In the case where the parameter update instruction includes a test condition parameter, the version number of the untested test parameter associated with the test condition parameter is determined as the first version number; or In a case where the parameter update instruction includes a plurality of test condition parameters, the version numbers of a plurality of test parameters respectively associated with the plurality of test condition parameters that have not been tested are determined as the first version number.

8. The method according to claim 7, characterized in that The method further comprises: Determine any one of the plurality of test parameter version numbers as the main version number in the first version number; or, A test parameter version number associated with the specified test condition parameter among the multiple test parameter version numbers is determined as the main version number among the first version numbers.

9. A test parameter updating device, characterized in that: A first determination module is used to determine the source of the parameter update instruction when a test parameter update instruction is detected; A second determination module, configured to determine a first version number of a test parameter to be executed according to a source of the parameter update instruction; The processing module is used to send the first version number to the device under test to instruct the device under test to execute a first test parameter set associated with the first version number.

10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the test parameter updating method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: in, The computer instructions are used to enable the computer to execute the test parameter updating method according to any one of claims 1 to 8.

12. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the test parameter updating method according to any one of claims 1 to 8 when being executed by a processor.