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

By performing multiple pre-starts and feature data comparisons on the host computer software of the test equipment, and using a string matching algorithm to search and modify parameters in the memory, the automatic modification of the test equipment parameters is realized and the problems of parameter modification in the existing technology are solved. Problems of high difficulty, low efficiency and poor stability.

CN114003491BActive Publication Date: 2024-10-29SAILUN GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111205588.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2024-10-29
Estimated Expiration
2041-10-15

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to modify the parameters of test equipment, with low efficiency and poor stability. It is limited by the equipment itself and the manufacturer, which makes it impossible to realize automatic and intelligent parameter modification.

Method used

By pre-starting the host computer software of the test equipment multiple times, the characteristic data is obtained, the comparison rules and string matching algorithms are used to find and determine the address of the test equipment parameters in the memory, and the parameters are modified directly in the memory.

Benefits of technology

It realizes the automatic modification of test equipment parameters, solves the problems of difficult parameter modification, low efficiency and poor stability, and avoids dependence on equipment manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114003491B_ABST
    Figure CN114003491B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and storage medium for modifying test equipment parameters, which pre-starts the host computer software of the test equipment multiple times, and obtains the characteristic data corresponding to the test equipment parameters after each pre-start from the memory; compares multiple groups of the characteristic data according to the preset comparison rules to obtain parameter characteristic codes; after officially starting the host computer software of the test equipment, uses a string matching algorithm to search for target data matching the parameter characteristic code in the memory, and determines the starting address of the target data in the memory; determines the memory address where the test equipment parameters are located according to the starting address and the data type of the test equipment parameters; calls a write function to modify the data stored in the memory address where the test equipment parameters are located to preset data. The scheme of the present invention solves the problems of difficulty, low efficiency and poor stability of parameter modification due to the limitations of the equipment itself and the equipment manufacturer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of test equipment control technology, and in particular to a test equipment parameter modification method, device, electronic equipment and storage medium. Background Art

[0002] With the development of automatic control technology, the control of test equipment is also developing towards automation and intelligence, such as tensile testing machines, carbon black dispersers, etc. Test equipment control is usually achieved by modifying the test equipment parameters through software. The test equipment runs according to the modified test equipment parameters to complete the corresponding test.

[0003] At present, there are several ways to modify test equipment parameters through software:

[0004] 1. Connect the test equipment through the OPC protocol to modify the test equipment parameters. This method requires the installation of necessary protocol gateway hardware to implement, and the equipment manufacturer needs to provide information such as the PLC address to achieve the purpose of modifying the test equipment parameters through software. Some test equipment does not support the OPC protocol, resulting in the inability to modify the test equipment parameters.

[0005] 2. Use the equipment standard interface provided by the manufacturer to modify the test equipment parameters. Some foreign equipment manufacturers charge high fees before providing equipment standard interface, which makes it impossible to modify the test equipment parameters through software for these devices.

[0006] 3. Use software programs to simulate manual operations to modify test equipment parameters. This method is slow and unstable, and can easily lead to parameter modification failures.

[0007] Therefore, how to design a stable and efficient method for modifying test equipment parameters that is not restricted by equipment manufacturers is an urgent problem to be solved. Summary of the invention

[0008] The present invention provides a method, device, electronic device and storage medium for modifying test equipment parameters. By accurately finding the memory address where the test equipment parameters are located, the equipment test parameters are directly modified in the memory, thereby realizing automatic modification of the equipment test parameters, and solving the problems of the prior art in that the parameter modification is difficult, inefficient and unstable due to the limitations of the equipment itself and the equipment manufacturer.

[0009] In a first aspect, the present invention provides a method for modifying test equipment parameters, comprising:

[0010] Pre-start the host computer software of the test equipment multiple times, and obtain characteristic data corresponding to the test equipment parameters after each pre-start from the memory space;

[0011] Comparing the plurality of sets of characteristic data according to a preset comparison rule to obtain a parameter characteristic code;

[0012] After the upper computer software of the test equipment is officially started, the target data matching the parameter feature code is searched in the memory by using a string matching algorithm, and the starting address of the target data in the memory is determined;

[0013] Determine the memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter;

[0014] The write function is called to modify the data stored in the memory address where the test equipment parameters are located into preset data.

[0015] In an optional embodiment, the pre-starting of the host computer software of the test equipment for multiple times and obtaining characteristic data corresponding to the test equipment parameters after each pre-start from the memory space include:

[0016] Start the host computer software of the test equipment, and use the debugging tool to load the started host computer software to obtain the memory base address of the test equipment parameters;

[0017] Determine the memory address of the characteristic data corresponding to the test equipment parameter according to the memory base address and the preset data length;

[0018] Acquire the characteristic data corresponding to the test equipment parameter stored in the memory space according to the memory address of the characteristic data corresponding to the test equipment parameter;

[0019] By repeatedly restarting the host computer software, characteristic data corresponding to multiple groups of test equipment parameters are obtained.

[0020] In an optional embodiment, the step of comparing the plurality of sets of feature data according to a preset comparison rule to obtain a parameter feature code includes:

[0021] Compare the values ​​of the same position of the plurality of sets of feature data in sequence, and if the values ​​of the i-th position of the plurality of sets of feature data are the same, set the value as the value of the i-th position in the parameter feature code;

[0022] Otherwise, the value of the i-th position in the parameter feature code is set to the preset symbol;

[0023] Until all positions of the plurality of sets of characteristic data are compared, a parameter characteristic code is obtained.

[0024] In an optional embodiment, the debugging tool includes at least one of Cheat Engine, X32dbg and OllyDBG decompilation tools.

[0025] In an optional embodiment, the string matching algorithm is a KMP algorithm.

[0026] In a second aspect, the present invention provides a test equipment parameter modification device, comprising:

[0027] An acquisition module is used to pre-start the host computer software of the test equipment multiple times, and obtain characteristic data corresponding to the test equipment parameters after each pre-start from the memory space;

[0028] A comparison module, used for comparing the plurality of sets of characteristic data according to a preset comparison rule to obtain a parameter characteristic code;

[0029] A matching module is used to search for target data matching the parameter feature code in the memory by using a string matching algorithm after the upper computer software of the test equipment is officially started, and determine the starting address of the target data in the memory;

[0030] A determination module, used to determine the memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter;

[0031] The modification module is used to call the write function to modify the data stored in the memory address where the test equipment parameters are located into preset data.

[0032] In an optional embodiment, the acquisition module is specifically used to start the host computer software of the test equipment, and use the debugging tool to load the started host computer software to obtain the memory base address of the test equipment parameters; determine the memory address of the characteristic data corresponding to the test equipment parameters according to the memory base address and the preset data length; obtain the characteristic data corresponding to the test equipment parameters stored in the memory space according to the memory address of the characteristic data corresponding to the test equipment parameters; and obtain multiple sets of characteristic data corresponding to the test equipment parameters by repeatedly restarting the host computer software.

[0033] In an optional embodiment, the comparison module is specifically used to compare the values ​​of the same position of multiple groups of feature data in sequence. If the values ​​of the i-th position of multiple groups of feature data are the same, then the value is set as the value of the i-th position in the parameter feature code; otherwise, the value of the i-th position in the parameter feature code is set to a preset symbol; until the comparison of all positions of the multiple groups of feature data is completed to obtain the parameter feature code.

[0034] In an optional embodiment, the debugging tool includes at least one of Cheat Engine, X32dbg and OllyDBG decompilation tools.

[0035] In an optional embodiment, the string matching algorithm is a KMP algorithm.

[0036] In a third aspect, the present invention provides an electronic device, comprising: at least one processor and a memory;

[0037] The memory stores computer-executable instructions;

[0038] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the test equipment parameter modification method as described in any one of the first aspects.

[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the test equipment parameter modification method as described in any one of the first aspects is implemented.

[0040] The present invention provides a method, device, electronic device and storage medium for modifying test equipment parameters, which pre-starts the host computer software of the test equipment multiple times, and obtains the characteristic data corresponding to the test equipment parameters after each pre-start from the memory space; compares multiple groups of the characteristic data according to the preset comparison rules to obtain parameter characteristic codes; after the host computer software of the test equipment is officially started, the target data matching the parameter characteristic code is searched in the memory by using the string matching algorithm, and the starting address of the target data in the memory is determined; the memory address where the test equipment parameter is located is determined according to the starting address and the data type of the test equipment parameter; and the write function is called to modify the data stored in the memory address where the test equipment parameter is located to the preset data. Compared with the prior art, the scheme provided by the present invention first obtains the characteristic data of multiple groups of test equipment parameters in the memory, then determines the characteristic code corresponding to the test equipment parameter according to the characteristic data, and accurately locates the memory address where the test equipment parameter is located according to the characteristic code, and finally directly modifies the equipment test parameters in the memory, thereby realizing the automatic modification of the equipment test parameters, and solving the problems of the prior art that the parameter modification is difficult, inefficient and poor in stability due to the limitations of the equipment itself and the equipment manufacturer. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0042] Figure 1 A flow chart of a method for modifying test equipment parameters provided in the first embodiment of the present disclosure;

[0043] Figure 2 A schematic diagram of a flow chart of another method for modifying test equipment parameters provided in the first embodiment of the present disclosure;

[0044] Figure 3 A flowchart of another method for modifying test equipment parameters provided in the first embodiment of the present disclosure;

[0045] Figure 4 A schematic diagram of the structure of a test equipment parameter modification device provided in the second embodiment of the present disclosure;

[0046] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0047] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present disclosure, rather than to limit the present disclosure. It should also be noted that, for ease of description, only parts related to the present disclosure are shown in the accompanying drawings, rather than all structures.

[0048] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0049] In the following embodiments, each embodiment provides both optional features and examples. The various features recorded in the embodiments can be combined to form multiple optional solutions. Each numbered embodiment should not be regarded as only one technical solution.

[0050] Embodiment 1

[0051] Figure 1 This is a flow chart of a method for modifying test equipment parameters provided in the first embodiment of the present disclosure. The execution subject of this embodiment is a test equipment parameter modification device, which can be implemented by software and / or hardware and can be integrated in a server or terminal, such as Figure 1 As shown, a method for modifying test equipment parameters provided by an embodiment of the present disclosure includes:

[0052] S1. Pre-start the host computer software of the test equipment multiple times, and obtain characteristic data corresponding to the test equipment parameters after each pre-start from the memory space.

[0053] Among them, the host computer software is the software loaded on the host computer that controls the operation of the test equipment, and the characteristic data is the data with specific format and content generated when the test equipment parameters are stored in the memory.

[0054] In this embodiment, each time the upper computer software is started, a memory space is applied for in the memory to store the test equipment parameters to ensure the normal operation of the program, and the address of the memory space applied for each time it is started is different. This results in the test equipment parameters being stored in the memory at a different address each time. However, each time the test equipment parameters are stored in the memory, a piece of data with a specific format and content is generated at the beginning. This piece of data with a specific format and content can be used as characteristic data corresponding to the test equipment parameters. The debugging tool can be used to determine the memory address of the characteristic data corresponding to the test equipment parameters, and the characteristic data corresponding to the test equipment parameters stored in the memory space can be obtained according to the memory address.

[0055] S2. Compare the plurality of sets of feature data according to a preset comparison rule to obtain a parameter feature code.

[0056] In this embodiment, since there are some differences between the multiple sets of feature data obtained, it is necessary to determine a unified feature code that can represent the test equipment parameters, which is used to find the location of the test equipment parameters in the memory later. The values ​​of the same positions of multiple sets of feature data can be compared, the same values ​​are retained, and different values ​​are replaced with specific symbols to generate a feature code containing values ​​and symbols.

[0057] S3. After officially starting the upper computer software of the test equipment, use a string matching algorithm to search the memory for target data that matches the parameter feature code, and determine the starting address of the target data in the memory.

[0058] In this embodiment, the target data matching the parameter feature code can be searched from the memory through a string matching algorithm. After the target data is found, the starting address of the target data is obtained, which is the first address of the test equipment parameter in the memory.

[0059] S4. Determine the memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter.

[0060] The memory address where the test equipment parameters are located includes the starting address and the occupied memory size.

[0061] In this embodiment, the memory size occupied by the test equipment parameters can be determined according to the data type of the test equipment parameters, and the location of the test equipment parameters in the memory can be accurately determined according to the starting address of the test equipment parameters and the occupied memory size to modify the data stored in the determined location.

[0062] S5. Calling a write function to modify the data stored in the memory address where the test equipment parameters are located into preset data.

[0063] The technical solution provided by the embodiment of the present disclosure performs multiple pre-starts on the host computer software of the test equipment, and obtains the characteristic data corresponding to the test equipment parameters after each pre-start from the memory space; compares multiple groups of the characteristic data according to the preset comparison rules to obtain parameter characteristic codes; after the host computer software of the test equipment is officially started, the string matching algorithm is used to search the target data matching the parameter characteristic code in the memory, and the starting address of the target data in the memory is determined; the memory address where the test equipment parameters are located is determined according to the starting address and the data type of the test equipment parameters; the write function is called to modify the data stored in the memory address where the test equipment parameters are located to the preset data. By adopting the technical solution provided by the present disclosure, the characteristic data of multiple groups of test equipment parameters in the memory are obtained, the characteristic codes corresponding to the test equipment parameters are determined according to the characteristic data, and the memory addresses where the test equipment parameters are located are accurately located according to the characteristic codes, and the equipment test parameters are directly modified in the memory according to the memory addresses where the test equipment parameters are located, so as to realize the automatic modification of the equipment test parameters, and solve the problems of the prior art that the parameter modification is difficult, inefficient and poor in stability due to the limitations of the equipment itself and the equipment manufacturer.

[0064] exist Figure 1 Based on the above embodiments, Figure 2 This is a flow chart of another method for modifying test equipment parameters provided in the first embodiment of the present disclosure. The method provided in the embodiment of the present disclosure is a further description of step S1 in the aforementioned embodiment. The method for modifying test equipment parameters includes:

[0065] S101, start the host computer software of the test equipment, and use the debugging tool to load the started host computer software to obtain the memory base address of the test equipment parameters.

[0066] In this embodiment, the debugging tool may include at least one of decompilation tools such as Cheat Engine, X32dbg, and OllyDBG, or may be other debugging tools that can obtain the memory base address of the test device parameters, which is not limited in this embodiment.

[0067] S102, determining the memory address of the characteristic data corresponding to the test equipment parameter according to the memory base address and the preset data length.

[0068] The preset data length is set according to the storage conditions of the actual test equipment parameters in the memory.

[0069] In this embodiment, the memory address of the characteristic data corresponding to the test equipment parameter can be obtained according to the memory base address of the test equipment parameter and the preset data length.

[0070] S103 . Acquire characteristic data corresponding to the test equipment parameters stored in the memory space according to the memory address of the characteristic data corresponding to the test equipment parameters.

[0071] In this embodiment, the characteristic data stored in the memory space corresponding to the memory address is obtained according to the memory address of the characteristic data corresponding to the test equipment parameter.

[0072] S104. Obtain characteristic data corresponding to multiple groups of test equipment parameters by repeatedly restarting the host computer software.

[0073] In this embodiment, the upper computer software is repeatedly restarted to obtain multiple groups of feature data according to the method described in S101-S103.

[0074] For example, the host computer software runs in the Windows system. When the host computer software is started for the first time, the memory base address of the test equipment parameters loaded by the decompilation tool is 00342000. Assuming that the data type corresponding to the test equipment parameters occupies 4 bytes in the memory, it is necessary to take out data larger than 4 bytes from the memory address starting from 00342000. It is preset to take out 24 bytes of data. The memory address of the characteristic data corresponding to the test equipment parameters is 00342000~00342017. Get 00342000~00342017. The data stored in the memory space is 61006E0069006D0061006C0073000000124F434600000080, and the first set of feature data is obtained. The host computer software is restarted twice, and the other two sets of feature data are obtained in the same way: 612C6E0069005C0022006C21730000001F4F434600000080 and 61006E2269006D002E006C1E730000002D4F434600000080.

[0075] Based on the above technical solutions, the present technical solution provides a specific method for obtaining characteristic data corresponding to test equipment parameters. The advantage of such a setting of the present embodiment is that characteristic data of data stored in the memory of multiple groups of test equipment parameters can be obtained by obtaining the memory address of the test equipment parameters, so that the characteristic code corresponding to the test equipment parameters can be determined according to the characteristic data, and the characteristic code can be used to automatically search for the test equipment parameters from the memory.

[0076] exist Figure 1 Based on the above embodiments, Figure 3This is a flow chart of another method for modifying test equipment parameters provided in the first embodiment of the present disclosure. The method provided in the embodiment of the present disclosure is a further description of step S2 in the aforementioned embodiment. The method for modifying test equipment parameters includes:

[0077] S201, sequentially comparing the values ​​of the same position of the plurality of sets of feature data, if the values ​​of the i-th position of the plurality of sets of feature data are the same, setting the value as the value of the i-th position in the parameter feature code;

[0078] S202, otherwise, setting the value of the i-th position in the parameter feature code to a preset symbol;

[0079] S203, until all positions of the plurality of groups of feature data are compared, and a parameter feature code is obtained.

[0080] For example, as shown in Table 1, three groups of characteristic data include: the first group of characteristic data 61006E0069006D0061006C0073000000124F434600000080, the second group of characteristic data 612C6E0069005C0022006C21730000001F4F434600000080 and the third group of characteristic data 61006E2269006D002E006C1E730000002D4F434600000080, and the values ​​stored in each address of the three groups of characteristic data are compared in turn, the values ​​of the addresses with the same values ​​are kept unchanged, and the values ​​of the addresses with different values ​​are set to "?", and the parameter characteristic code 61? ? 6E? ? 6900? ? 00? ? 006C? ? 73000000? ? 4F434600000080.

[0081] Table 1

[0082] address The first set of characteristic data The second set of characteristic data The third set of characteristic data Signature Code 00 61 61 61 61 01 00 2C 00 ?? 02 6E 6E 6E 6E 03 00 00 22 ?? 04 69 69 69 69 05 00 00 00 00 06 6D 5C 6D ?? 07 00 00 00 00 08 61 22 2E ?? 09 00 00 00 00 0A 6C 6C 6C 6C 0B 00 21 1E ?? 0C 73 73 73 73 0D 00 00 00 00 0E 00 00 00 00 0F 00 00 00 00 10 12 1F 2D ?? 11 4F 4F 4F 4F 12 43 43 43 43 13 46 46 46 46 14 00 00 00 00 15 00 00 00 00 16 00 00 00 00 17 80 80 80 80

[0083] Based on the above technical solutions, this technical solution provides a method for generating parameter characteristic codes. The advantage of this setting is that the characteristic data corresponding to the test equipment parameters can be used to generate parameter characteristic codes, thereby automatically finding the test equipment parameters according to the parameter characteristic codes.

[0084] Based on the parameter signature, a string matching algorithm can be used to search for target data matching the parameter signature in a large amount of data stored in the memory, thereby determining the starting address of the target data in the memory. The string matching algorithm used here can specifically be a KMP algorithm.

[0085] Embodiment 2

[0086] Figure 4This is a schematic diagram of the structure of a test equipment parameter modification device provided in the second embodiment of the present disclosure. For the convenience of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 4 , the test equipment parameter modification device comprises:

[0087] The acquisition module 41 is used to pre-start the host computer software of the test equipment multiple times, and obtain characteristic data corresponding to the test equipment parameters after each pre-start from the memory space;

[0088] A comparison module 42, used for comparing the plurality of sets of characteristic data according to a preset comparison rule to obtain a parameter characteristic code;

[0089] The matching module 43 is used to search the target data matching the parameter feature code in the memory by using a string matching algorithm after the upper computer software of the test equipment is officially started, and determine the starting address of the target data in the memory;

[0090] A determination module 44, configured to determine a memory address where the test equipment parameter is located according to the start address and a data type of the test equipment parameter;

[0091] The modification module 45 is used to call the write function to modify the data stored in the memory address where the test equipment parameters are located into preset data.

[0092] The technical solution provided by the embodiment of the present disclosure is to pre-start the host computer software of the test equipment multiple times through the acquisition module, and obtain the characteristic data corresponding to the test equipment parameters after each pre-start from the memory space; compare multiple groups of the characteristic data according to the preset comparison rules through the comparison module to obtain the parameter characteristic code; after the host computer software of the test equipment is officially started, the matching module uses the string matching algorithm to find the target data matching the parameter characteristic code in the memory, and determine the starting address of the target data in the memory; determine the memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter through the determination module; call the write function through the modification module to modify the data stored in the memory address where the test equipment parameter is located to the preset data. By adopting the technical solution provided by the present disclosure, the characteristic data of multiple groups of test equipment parameters in the memory are obtained, the characteristic code corresponding to the test equipment parameter is determined according to the characteristic data, and the memory address where the test equipment parameter is located is accurately located according to the characteristic code, and the equipment test parameters are directly modified in the memory according to the memory address where the test equipment parameter is located, so as to realize the automatic modification of the equipment test parameters, and solve the problems of difficulty, low efficiency and poor stability of parameter modification caused by the limitations of the equipment itself and the equipment manufacturer in the prior art.

[0093] Optionally, the acquisition module 41 is specifically used to start the host computer software of the test equipment, and use the debugging tool to load the started host computer software to obtain the memory base address of the test equipment parameters; determine the memory address of the characteristic data corresponding to the test equipment parameters according to the memory base address and the preset data length; obtain the characteristic data corresponding to the test equipment parameters stored in the memory space according to the memory address of the characteristic data corresponding to the test equipment parameters; and obtain multiple sets of characteristic data corresponding to the test equipment parameters by repeatedly restarting the host computer software.

[0094] Optionally, the comparison module 42 is specifically used to compare the values ​​of the same position of multiple groups of feature data in sequence. If the values ​​of the i-th position of multiple groups of feature data are the same, then the value is set as the value of the i-th position in the parameter feature code; otherwise, the value of the i-th position in the parameter feature code is set to a preset symbol; until the comparison of all positions of the multiple groups of feature data is completed to obtain the parameter feature code.

[0095] Optionally, the debugging tool includes at least one of decompilation tools such as Cheat Engine, X32dbg, and OllyDBG.

[0096] Optionally, the string matching algorithm is a KMP algorithm.

[0097] The above-mentioned product can execute the method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0098] Embodiment 3

[0099] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the electronic device 50 of this embodiment may include: a memory 51 and a processor 52.

[0100] A memory 51 is used to store computer programs (such as an application program, a functional module, etc. for implementing the above-mentioned test equipment parameter modification method), computer instructions, etc.;

[0101] The above-mentioned computer programs, computer instructions, etc. may be stored in partitions in one or more memories 51 . And the above-mentioned computer programs, computer instructions, data, etc. may be called by the processor 52 .

[0102] The processor 52 is used to execute the computer program stored in the memory 51 to implement the various steps in the method involved in the above embodiment.

[0103] For details, please refer to the relevant description in the previous method embodiment.

[0104] The memory 51 and the processor 52 may be independent structures or integrated structures. When the memory 51 and the processor 52 are independent structures, the memory 51 and the processor 52 may be coupled and connected via a bus 53 .

[0105] An electronic device of this embodiment can execute Figure 1-Figure 3 For the technical solution in the method shown, its specific implementation process and technical principles can be found in Figure 1-Figure 3 The relevant descriptions in the method shown will not be repeated here.

[0106] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When at least one processor of a user device executes the computer-executable instructions, the user device executes the above-mentioned various possible methods.

[0107] Among them, computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general or special-purpose computer. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a user device. Of course, the processor and the storage medium can also be present in a communication device as discrete components.

[0108] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for modifying test equipment parameters, characterized in that: include: Pre-start the host computer software of the test equipment multiple times, and obtain characteristic data corresponding to the test equipment parameters after each pre-start from the memory space; Comparing the plurality of sets of characteristic data according to a preset comparison rule to obtain a parameter characteristic code; After the upper computer software of the test equipment is officially started, the target data matching the parameter feature code is searched in the memory by using a string matching algorithm, and the starting address of the target data in the memory is determined; Determine the memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter; Calling a write function to modify the data stored in the memory address where the test equipment parameter is located into preset data; The step of comparing the plurality of sets of feature data according to a preset comparison rule to obtain a parameter feature code includes: Compare the values ​​of the same position of the plurality of sets of feature data in sequence, and if the values ​​of the i-th position of the plurality of sets of feature data are the same, set the value as the value of the i-th position in the parameter feature code; Otherwise, the value of the i-th position in the parameter feature code is set to the preset symbol; Until all positions of the plurality of sets of characteristic data are compared, a parameter characteristic code is obtained.

2. The test equipment parameter modification method according to claim 1, characterized in that: The method of pre-starting the host computer software of the test equipment for multiple times and obtaining characteristic data corresponding to the test equipment parameters after each pre-start from the memory space includes: Start the host computer software of the test equipment, and use the debugging tool to load the started host computer software to obtain the memory base address of the test equipment parameters; Determine the memory address of the characteristic data corresponding to the test equipment parameter according to the memory base address and the preset data length; Acquire the characteristic data corresponding to the test equipment parameter stored in the memory space according to the memory address of the characteristic data corresponding to the test equipment parameter; By repeatedly restarting the host computer software, characteristic data corresponding to multiple groups of test equipment parameters are obtained.

3. The test equipment parameter modification method according to claim 2, characterized in that: The debugging tool includes at least one of Cheat Engine, X32dbg and OllyDBG decompilation tools.

4. The method for modifying test equipment parameters according to any one of claims 1 to 3, characterized in that: The string matching algorithm is the KMP algorithm.

5. A test equipment parameter modification device, characterized in that: include: An acquisition module is used to pre-start the host computer software of the test equipment multiple times, and obtain characteristic data corresponding to the test equipment parameters after each pre-start from the memory space; A comparison module, used for comparing the plurality of sets of characteristic data according to a preset comparison rule to obtain a parameter characteristic code; A matching module is used to search for target data matching the parameter feature code in the memory by using a string matching algorithm after the upper computer software of the test equipment is officially started, and determine the starting address of the target data in the memory; A determination module, used to determine the memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter; A modification module, used for calling a write function to modify the data stored in the memory address where the test equipment parameter is located into preset data; The comparison module is specifically used to compare the values ​​of the same position of multiple groups of feature data in sequence. If the values ​​of the i-th position of multiple groups of feature data are the same, then the value is set as the value of the i-th position in the parameter feature code; otherwise, the value of the i-th position in the parameter feature code is set to a preset symbol; until the comparison of all positions of the multiple groups of feature data is completed to obtain the parameter feature code.

6. The test equipment parameter modification device according to claim 5, characterized in that: The acquisition module is specifically used to start the host computer software of the test equipment, and use the debugging tool to load the started host computer software to obtain the memory base address of the test equipment parameters; determine the memory address of the characteristic data corresponding to the test equipment parameters according to the memory base address and the preset data length; obtain the characteristic data corresponding to the test equipment parameters stored in the memory space according to the memory address of the characteristic data corresponding to the test equipment parameters; and obtain multiple sets of characteristic data corresponding to the test equipment parameters by repeatedly restarting the host computer software.

7. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the test equipment parameter modification method according to any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the test equipment parameter modification method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Maintenance method and system for failure indicator terminal

    CN102387041A

  • Parameter processing method and power terminal

    CN110489439A