CN114003491A - Test equipment parameter modification method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114003491A
CN114003491A CN202111205588.0A CN202111205588A CN114003491A CN 114003491 A CN114003491 A CN 114003491A CN 202111205588 A CN202111205588 A CN 202111205588A CN 114003491 A CN114003491 A CN 114003491A
Authority
CN
China
Prior art keywords
test equipment
parameter
memory
parameters
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111205588.0A
Other languages
Chinese (zh)
Inventor
徐爽
马志伟
王会苓
杨光
杨同香
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sailun Jinyu Group Co Ltd
Original Assignee
Sailun Jinyu Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sailun Jinyu Group Co Ltd filed Critical Sailun Jinyu Group Co Ltd
Priority to CN202111205588.0A priority Critical patent/CN114003491A/en
Publication of CN114003491A publication Critical patent/CN114003491A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

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

Abstract

The invention provides a method and a device for modifying parameters of test equipment, electronic equipment and a storage medium, which are used for pre-starting upper computer software of the test equipment for multiple times and acquiring characteristic data corresponding to the parameters of the test equipment after each pre-starting from a memory; comparing the plurality of groups of feature data according to a preset comparison rule to obtain parameter feature codes; after upper computer software of the test equipment is formally started, searching target data matched with the parameter feature codes in a memory by using a character string matching algorithm, and determining an initial address of the target data in the memory; determining a memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter; and calling a write-in function to modify the data stored in the memory address where the test equipment parameter is located into preset data. The scheme of the invention solves the problems of high parameter modification difficulty, low efficiency and poor stability caused by the limitation of equipment and equipment manufacturers.

Description

Test equipment parameter modification method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of test equipment control, in particular to a method and a device for modifying parameters of test equipment, electronic equipment and a storage medium.
Background
With the development of automatic control technology, the control of test equipment is also developed towards automation and intellectualization, such as a tensile machine, a carbon black dispersion meter and the like. The test equipment control is usually realized by modifying the parameters of the test equipment through software, and the test equipment operates according to the modified parameters of the test equipment to complete corresponding tests.
At present, the following methods are used to modify the parameters of the testing equipment through software:
1. the method is realized by installing necessary protocol gateway hardware and providing information such as PLC addresses and the like by an equipment manufacturer, and can achieve the aim of modifying the parameters of the test equipment through software.
2. The standard interface of the equipment provided by the manufacturer is used for modifying the parameters of the test equipment, and the standard interface of the equipment can be provided only after a part of foreign equipment manufacturers need to charge high cost, so that the purpose of modifying the parameters of the test equipment through software cannot be realized by the part of equipment.
3. The software program is used for simulating manual operation to modify the parameters of the test equipment, and the mode is slow and unstable, so that the parameter modification is easy to fail.
Therefore, how to design a stable and efficient method for modifying the parameters of the test equipment, which is not limited by equipment manufacturers, is an urgent problem to be solved.
Disclosure of Invention
The invention provides a method and a device for modifying parameters of test equipment, electronic equipment and a storage medium, which directly modify the test parameters of the equipment in a memory by accurately searching the memory address of the parameter of the test equipment, realize the automatic modification of the test parameters of the equipment and solve the problems of high difficulty in modifying the parameters, low efficiency and poor stability caused by the limitation of equipment and equipment manufacturers in the prior art.
In a first aspect, the present invention provides a method for modifying parameters of a test apparatus, including:
pre-starting the upper computer software of the test equipment for multiple times, and acquiring characteristic data corresponding to the test equipment parameters after each pre-starting from a memory space;
comparing the plurality of groups of feature data according to a preset comparison rule to obtain parameter feature codes;
after upper computer software of the test equipment is formally started, searching target data matched with the parameter feature codes in a memory by using a character string matching algorithm, and determining an initial address of the target data in the memory;
determining a memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter;
and calling a write-in function to modify the data stored in the memory address where the test equipment parameter is located into preset data.
In an optional embodiment, the pre-starting the upper computer software of the test equipment for multiple times, and acquiring the characteristic data corresponding to the test equipment parameter after each pre-starting from the memory space includes:
starting upper computer software of the test equipment, and loading the started upper computer software by using a debugging tool to obtain a memory base address of the test equipment parameter;
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;
acquiring characteristic data corresponding to the test equipment parameters stored in a memory space according to the memory address of the characteristic data corresponding to the test equipment parameters;
and obtaining characteristic data corresponding to a plurality of groups of test equipment parameters in a mode of repeatedly restarting the upper computer software.
In an optional embodiment, the comparing the plurality of sets of feature data according to a preset comparison rule to obtain a parameter feature code includes:
sequentially comparing the numerical values of the same position of the multiple groups of characteristic data, and if the numerical values of the ith position of the multiple groups of characteristic data are the same, setting the numerical values as the numerical values of the ith position in the parameter characteristic code;
otherwise, setting the value of the ith position in the parameter feature code as a preset symbol;
and obtaining parameter feature codes until the comparison of all the positions of the plurality of groups of feature data is completed.
In an alternative embodiment, the debugging tool comprises at least one of a Cheat Engine, X32dbg, and OllyDBG decompilation tool.
In an alternative embodiment, the string matching algorithm is a KMP algorithm.
In a second aspect, the present invention provides a device for modifying parameters of a testing apparatus, including:
the acquisition module is used for pre-starting the upper computer software of the test equipment for multiple times and acquiring characteristic data corresponding to the test equipment parameters after each pre-starting from the memory space;
the comparison module is used for comparing a plurality of groups of the characteristic data according to a preset comparison rule to obtain a parameter characteristic code;
the matching module is used for searching target data matched with the parameter feature codes in the memory by using a character string matching algorithm after upper computer software of the test equipment is formally started, and determining the initial address of the target data in the memory;
the determining module is used for determining the memory address of the test equipment parameter according to the starting address and the data type of the test equipment parameter;
and the modification module is used for calling a write-in function to modify the data stored in the memory address where the test equipment parameter is located into preset data.
In an optional embodiment, the obtaining module is specifically configured to start upper computer software of the test equipment, and load the started upper computer software by using a debugging tool to obtain a memory base address of a parameter of the test equipment; 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; acquiring characteristic data corresponding to the test equipment parameters stored in a memory space according to the memory address of the characteristic data corresponding to the test equipment parameters; and obtaining characteristic data corresponding to a plurality of groups of test equipment parameters in a mode of repeatedly restarting the upper computer software.
In an optional embodiment, the comparison module is specifically configured to compare multiple sets of values at the same position of the feature data in sequence, and if the values at the ith position of the multiple sets of feature data are the same, set the value as the value at the ith position in the parameter feature code; otherwise, setting the value of the ith position in the parameter feature code as a preset symbol; and obtaining parameter feature codes until the comparison of all the positions of the plurality of groups of feature data is completed.
In an alternative embodiment, the debugging tool comprises at least one of a Cheat Engine, X32dbg, and OllyDBG decompilation tool.
In an alternative embodiment, the string matching algorithm is a KMP algorithm.
In a third aspect, the present invention provides an electronic device comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the test device parameter modification method of any of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for modifying parameters of a test device according to any one of the first aspect is implemented.
According to the method and the device for modifying the parameters of the test equipment, the electronic equipment and the storage medium, provided by the invention, the upper computer software of the test equipment is pre-started for multiple times, and the characteristic data corresponding to the parameters of the test equipment after each pre-start is obtained from the memory space; comparing the plurality of groups of feature data according to a preset comparison rule to obtain parameter feature codes; after upper computer software of the test equipment is formally started, searching target data matched with the parameter feature codes in a memory by using a character string matching algorithm, and determining an initial address of the target data in the memory; determining a memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter; and calling a write-in function to modify the data stored in the memory address where the test equipment parameter is located into preset data. Compared with the prior art, the scheme provided by the invention firstly obtains the characteristic data of a plurality of groups of test equipment parameters in the memory, then determines the characteristic code corresponding to the test equipment parameters according to the characteristic data, accurately positions the memory address of the test equipment parameters 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 large parameter modification difficulty, low efficiency and poor stability caused by the limitations of equipment and equipment manufacturers in the prior art.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for modifying parameters of a test device according to a first embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating another method for modifying parameters of a test device according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating a method for modifying parameters of a testing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a test apparatus parameter modification device provided in the second embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a schematic flow diagram of a test device parameter modification method according to an embodiment of the present disclosure, where an execution subject of the embodiment is a test device parameter modification apparatus, the apparatus may be implemented in a software and/or hardware manner, and may be integrated in a server or a terminal, as shown in fig. 1, a test device parameter modification method according to an embodiment of the present disclosure includes:
and S1, pre-starting the upper computer software of the test equipment for multiple times, and acquiring characteristic data corresponding to the test equipment parameters after each pre-starting from the memory space.
The upper computer software is software loaded on the upper computer and used for controlling the test equipment to run, and the characteristic data is data of a specific format and content generated when the test equipment parameters are stored in the memory.
In this embodiment, because the upper computer software is started each time, a section of memory space is applied in the memory for storing the test device parameters to ensure normal operation of the program, and addresses of the applied memory space are different each time, which results in that the addresses stored in the memory by the test device parameters each time are different, but the data of a section of specific format and content is generated at the initial part when the test device parameters are stored in the memory each time, the data of the section of specific format and content can be used as the feature data corresponding to the test device parameters, the memory address of the feature data corresponding to the test device parameters can be determined by using the debugging tool, and the feature data corresponding to the test device parameters stored in the memory space can be obtained according to the memory address.
And S2, comparing the plurality of groups of feature data according to a preset comparison rule to obtain parameter feature codes.
In this embodiment, because some differences exist between the obtained multiple sets of feature data, a uniform feature code capable of representing the parameters of the test equipment needs to be determined, so as to search the position of the parameters of the test equipment in the memory later, and the same value is retained compared with the value at the same position of the multiple sets of feature data, and different values are replaced with specific symbols, so as to generate a feature code including a value and a symbol.
S3, after upper computer software of the test equipment is formally started, searching target data matched with the parameter feature codes in the memory by using a character string matching algorithm, and determining the initial address of the target data in the memory.
In this embodiment, the target data matched with the parameter feature code may be searched from the memory by using a string matching algorithm, and after the target data is found, the start address of the target data is obtained, that is, the start address of the test device parameter in the memory.
And S4, determining the memory address of the test equipment parameter according to the starting address and the data type of the test equipment parameter.
The memory address where the test equipment parameter is located includes a start address and an occupied memory size.
In this embodiment, the size of the memory occupied by the test equipment parameter may be determined according to the data type of the test equipment parameter, and the position of the test equipment parameter in the memory may be accurately determined according to the start address of the test equipment parameter and the size of the memory occupied, so as to modify the data stored in the determined position.
And S5, calling a write-in function to modify the data stored in the memory address where the test equipment parameter is located into preset data.
According to the technical scheme provided by the embodiment of the disclosure, the upper computer software of the test equipment is pre-started for multiple times, and the characteristic data corresponding to the test equipment parameters after each pre-start is obtained from the memory space; comparing the plurality of groups of feature data according to a preset comparison rule to obtain parameter feature codes; after upper computer software of the test equipment is formally started, searching target data matched with the parameter feature codes in a memory by using a character string matching algorithm, and determining an initial address of the target data in the memory; determining a memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter; and calling a write-in function to modify the data stored in the memory address where the test equipment parameter is located into preset data. By adopting the technical scheme provided by the disclosure, the characteristic data of a plurality of groups of test equipment parameters in the memory is obtained, the characteristic code corresponding to the test equipment parameters is determined according to the characteristic data, the memory address where the test equipment parameters are located is accurately positioned according to the characteristic code, and the test parameters of the equipment are directly modified in the memory according to the memory address where the test equipment parameters are located, so that the automatic modification of the test parameters of the equipment is realized, and the problems of high difficulty, low efficiency and poor stability in parameter modification caused by the limitations of equipment and equipment manufacturers in the prior art are solved.
On the basis of the embodiment shown in fig. 1, fig. 2 is a schematic flow chart of another test equipment parameter modification method provided in the first embodiment of the present disclosure, and the method provided in the embodiment of the present disclosure is further described with respect to the step S1 in the foregoing embodiment, where the test equipment parameter modification method includes:
s101, starting upper computer software of the test equipment, and loading the started upper computer software by using a debugging tool to obtain a memory base address of the test equipment parameter.
In this embodiment, the debugging tool may include at least one of decompiling tools such as a heat Engine, an X32dbg, and an olydbg, and may also be other debugging tools capable of acquiring a base memory address of the test device parameter, which is not limited in this embodiment.
And 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.
The preset data length is set according to the storage condition of the actual test equipment parameters in the memory.
In this embodiment, the memory address of the feature data corresponding to the test device parameter may be obtained according to the memory base address of the test device parameter and the preset data length.
S103, acquiring 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.
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.
And S104, obtaining characteristic data corresponding to a plurality of groups of test equipment parameters in a mode of repeatedly restarting the upper computer software.
In this embodiment, the upper computer software is repeatedly restarted, and a plurality of sets of feature data are obtained according to the method described in S101 to S103.
For example, the upper computer software is run in a windows system, the upper computer software is started for the first time, a decompilation tool is used to load and acquire a memory base address of a test device parameter as 00342000, assuming that a data type corresponding to the test device parameter occupies 4 bytes in a memory, data larger than 4 bytes needs to be fetched from a memory address by taking 00342000 as a starting point, and data of 24 bytes is preset to be fetched, a memory address of feature data corresponding to the test device parameter is 00342000 to 00342017, data stored in a memory space pointed by 00342000 to 00342017 is 61006E0069006D0061006C0073000000124F434600000080, a first set of feature data is obtained, the upper computer software is restarted twice repeatedly, and another two sets of feature data are obtained in the same manner as 612C6E0069005C0022006C21730000001F4F 6104600000080 and 06E2269006D 006C1E730000002D4F 434600000080.
According to the technical scheme, a specific method for obtaining the characteristic data corresponding to the parameters of the test equipment is provided on the basis of the technical scheme, and the method has the advantages that the characteristic data of data stored in the memory by multiple groups of parameters of the test equipment can be obtained in a method for obtaining the memory address of the parameters of the test equipment, so that the characteristic code corresponding to the parameters of the test equipment can be determined according to the characteristic data, and the characteristic code can be used for automatically searching the parameters of the test equipment from the memory.
On the basis of the embodiment shown in fig. 1, fig. 3 is a schematic flow chart of another testing apparatus parameter modification method provided in the embodiment of the present disclosure, which is further described in the step S2 in the foregoing embodiment, and the testing apparatus parameter modification method includes:
s201, sequentially comparing numerical values of the same position of a plurality of groups of characteristic data, and if the numerical values of the ith position of the plurality of groups of characteristic data are the same, setting the numerical values as the numerical values of the ith position in the parameter characteristic code;
s202, otherwise, setting the value of the ith position in the parameter feature code as a preset symbol;
s203, until the comparison of all the positions of the plurality of groups of characteristic data is completed, obtaining parameter characteristic codes.
For example, as shown in table 1, 3 sets of feature data include: comparing the values stored in each address of the 3 sets of feature data in sequence, i.e., the 1 st set of feature data 61006E0069006D0061006C0073000000124F434600000080, the 2 nd set of feature data 612C6E0069005C0022006C21730000001F4F434600000080, and the 3 rd set of feature data 61006E2269006D002E006C1E730000002D4F434600000080, the values of the addresses having the same value are kept unchanged, and the values of the addresses having different values are set to "? ", get the parameter signature code 616E 690000006C 730000004F 434600000080.
TABLE 1
Address Set 1 of feature data Set 2 of feature data Set 3 of characteristic data Feature 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
The technical scheme provides a method for generating the parameter feature code on the basis of the technical schemes, and the method has the advantages that the parameter feature code can be generated by using feature data corresponding to the parameters of the test equipment, so that the parameters of the test equipment can be automatically searched according to the parameter feature code.
On the basis of obtaining the parameter feature code, target data matched with the parameter feature code can be searched in a large amount of data stored in the memory by using a character string matching algorithm, so that the initial address of the target data in the memory is determined, and the character string matching algorithm used here can be specifically a KMP algorithm.
Example two
Fig. 4 is a schematic structural diagram of a test apparatus parameter modification device provided in the second embodiment of the present disclosure. For ease of illustration, only portions that are relevant to embodiments of the present disclosure are shown. Referring to fig. 4, the test device parameter modifying apparatus includes:
the obtaining module 41 is configured to perform multiple pre-starting on upper computer software of the test equipment, and obtain feature data corresponding to a parameter of the test equipment after each pre-starting from a memory space;
a comparison module 42, configured to compare multiple sets of the feature data according to a preset comparison rule to obtain a parameter feature code;
the matching module 43 is configured to search target data matched with the parameter feature code in the memory by using a character string matching algorithm after formally starting the upper computer software of the test device, and determine an initial address of the target data in the memory;
a determining module 44, configured to determine, according to the start address and the data type of the test device parameter, a memory address where the test device parameter is located;
and a modifying module 45, configured to invoke a write-in function to modify the data stored in the memory address where the test device parameter is located into preset data.
According to the technical scheme provided by the embodiment of the disclosure, the upper computer software of the test equipment is pre-started for multiple times through the acquisition module, and the characteristic data corresponding to the test equipment parameters after each pre-start is acquired from the memory space; comparing the plurality of groups of feature data through a comparison module according to a preset comparison rule to obtain parameter feature codes; after upper computer software of the test equipment is formally started through a matching module, target data matched with the parameter feature codes are searched in a memory by utilizing a character string matching algorithm, and an initial address of the target data in the memory is determined; determining the memory address of the test equipment parameter according to the initial address and the data type of the test equipment parameter by a determining module; and calling a write-in function through a modification module to modify the data stored in the memory address where the test equipment parameter is located into preset data. By adopting the technical scheme provided by the disclosure, the characteristic data of a plurality of groups of test equipment parameters in the memory is obtained, the characteristic code corresponding to the test equipment parameters is determined according to the characteristic data, the memory address where the test equipment parameters are located is accurately positioned according to the characteristic code, and the test parameters of the equipment are directly modified in the memory according to the memory address where the test equipment parameters are located, so that the automatic modification of the test parameters of the equipment is realized, and the problems of high difficulty, low efficiency and poor stability in parameter modification caused by the limitations of equipment and equipment manufacturers in the prior art are solved.
Optionally, the obtaining module 41 is specifically configured to start upper computer software of the test equipment, and load the started upper computer software by using a debugging tool to obtain a memory base address of a parameter of the test equipment; 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; acquiring characteristic data corresponding to the test equipment parameters stored in a memory space according to the memory address of the characteristic data corresponding to the test equipment parameters; and obtaining characteristic data corresponding to a plurality of groups of test equipment parameters in a mode of repeatedly restarting the upper computer software.
Optionally, the comparing module 42 is specifically configured to sequentially compare multiple sets of numerical values at the same position of the feature data, and if the numerical values at the ith position of the multiple sets of feature data are the same, set the numerical value as the numerical value at the ith position in the parameter feature code; otherwise, setting the value of the ith position in the parameter feature code as a preset symbol; and obtaining parameter feature codes until the comparison of all the positions of the plurality of groups of feature data is completed.
Optionally, the debugging tool includes at least one of a decompilation tool such as a Cheat Engine, X32dbg, and OllyDBG.
Optionally, the string matching algorithm is a KMP algorithm.
The product can execute the method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, and as shown in fig. 5, the electronic device 50 according to this embodiment may include: memory 51, processor 52.
A memory 51 for storing a computer program (e.g., an application program, a functional module, etc. for implementing the parameter modification method of the test equipment described above), computer instructions, etc.;
the computer programs, computer instructions, etc. described above may be stored in one or more memories 51 in partitions. And the computer programs, computer instructions, data, etc. described above may be invoked by the processor 52.
A processor 52 for executing the computer program stored in the memory 51 to implement the steps of the method according to the above embodiments.
Reference may be made in particular to the description relating to the preceding method embodiment.
The memory 51 and the processor 52 may be separate structures or may be an integrated structure integrated together. When the memory 51 and the processor 52 are separate structures, the memory 51 and the processor 52 may be coupled by a bus 53.
The electronic device of this embodiment may execute the technical solutions in the methods shown in fig. 1 to fig. 3, and the specific implementation process and technical principle of the electronic device refer to the relevant descriptions in the methods shown in fig. 1 to fig. 3, which are not described herein again.
In addition, embodiments of the present application further provide a computer-readable storage medium, in which computer-executable instructions are stored, and when at least one processor of the user equipment executes the computer-executable instructions, the user equipment performs the above-mentioned various possible methods.
Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in user equipment. Of course, the processor and the storage medium may reside as discrete components in a communication device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for modifying parameters of a test device, comprising:
pre-starting the upper computer software of the test equipment for multiple times, and acquiring characteristic data corresponding to the test equipment parameters after each pre-starting from a memory space;
comparing the plurality of groups of feature data according to a preset comparison rule to obtain parameter feature codes;
after upper computer software of the test equipment is formally started, searching target data matched with the parameter feature codes in a memory by using a character string matching algorithm, and determining an initial address of the target data in the memory;
determining a memory address where the test equipment parameter is located according to the starting address and the data type of the test equipment parameter;
and calling a write-in function to modify the data stored in the memory address where the test equipment parameter is located into preset data.
2. The method for modifying the parameters of the test equipment according to claim 1, wherein the pre-starting the upper computer software of the test equipment for a plurality of times and acquiring the characteristic data corresponding to the parameters of the test equipment after each pre-starting from the memory space comprises:
starting upper computer software of the test equipment, and loading the started upper computer software by using a debugging tool to obtain a memory base address of the test equipment parameter;
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;
acquiring characteristic data corresponding to the test equipment parameters stored in a memory space according to the memory address of the characteristic data corresponding to the test equipment parameters;
and obtaining characteristic data corresponding to a plurality of groups of test equipment parameters in a mode of repeatedly restarting the upper computer software.
3. The method for modifying parameters of testing equipment according to claim 1, wherein comparing the plurality of sets of feature data according to a preset comparison rule to obtain a parameter feature code comprises:
sequentially comparing the numerical values of the same position of the multiple groups of characteristic data, and if the numerical values of the ith position of the multiple groups of characteristic data are the same, setting the numerical values as the numerical values of the ith position in the parameter characteristic code;
otherwise, setting the value of the ith position in the parameter feature code as a preset symbol;
and obtaining parameter feature codes until the comparison of all the positions of the plurality of groups of feature data is completed.
4. The test rig parameter modification method of claim 2, wherein the debugging tool comprises at least one of a Cheat Engine, X32dbg, and OllyDBG decompilation tool.
5. The test rig parameter modification method of any one of claims 1-4, wherein the string matching algorithm is a KMP algorithm.
6. A test equipment parameter modification device, comprising:
the acquisition module is used for pre-starting the upper computer software of the test equipment for multiple times and acquiring characteristic data corresponding to the test equipment parameters after each pre-starting from the memory space;
the comparison module is used for comparing a plurality of groups of the characteristic data according to a preset comparison rule to obtain a parameter characteristic code;
the matching module is used for searching target data matched with the parameter feature codes in the memory by using a character string matching algorithm after upper computer software of the test equipment is formally started, and determining the initial address of the target data in the memory;
the determining module is used for determining the memory address of the test equipment parameter according to the starting address and the data type of the test equipment parameter;
and the modification module is used for calling a write-in function to modify the data stored in the memory address where the test equipment parameter is located into preset data.
7. The device for modifying the parameters of the test equipment according to claim 6, wherein the obtaining module is specifically configured to start the upper computer software of the test equipment, and load the started upper computer software by using a debugging tool to obtain the base memory address of the parameters of the test equipment; 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; acquiring characteristic data corresponding to the test equipment parameters stored in a memory space according to the memory address of the characteristic data corresponding to the test equipment parameters; and obtaining characteristic data corresponding to a plurality of groups of test equipment parameters in a mode of repeatedly restarting the upper computer software.
8. The test equipment parameter modification device according to claim 6, wherein the comparison module is specifically configured to sequentially compare a plurality of sets of values at the same position of the feature data, and if the values at the ith position of the plurality of sets of feature data are the same, set the values as the values at the ith position in the parameter feature code; otherwise, setting the value of the ith position in the parameter feature code as a preset symbol; and obtaining parameter feature codes until the comparison of all the positions of the plurality of groups of feature data is completed.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the test device parameter modification method of any of claims 1-5.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the assay device parameter modification method of any one of claims 1-5.
CN202111205588.0A 2021-10-15 2021-10-15 Test equipment parameter modification method and device, electronic equipment and storage medium Pending CN114003491A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111205588.0A CN114003491A (en) 2021-10-15 2021-10-15 Test equipment parameter modification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111205588.0A CN114003491A (en) 2021-10-15 2021-10-15 Test equipment parameter modification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114003491A true CN114003491A (en) 2022-02-01

Family

ID=79923106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111205588.0A Pending CN114003491A (en) 2021-10-15 2021-10-15 Test equipment parameter modification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114003491A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815973A (en) * 2005-02-04 2006-08-09 华为技术有限公司 Data maintaining method and system
US20090111491A1 (en) * 2007-10-31 2009-04-30 Freescale Semiconductor, Inc. Remotely modifying data in memory in a mobile device
US20110258421A1 (en) * 2010-04-19 2011-10-20 International Business Machines Corporation Architecture Support for Debugging Multithreaded Code
CN102387041A (en) * 2011-11-17 2012-03-21 航天科工深圳(集团)有限公司 Maintenance method and system for failure indicator terminal
WO2016082559A1 (en) * 2014-11-28 2016-06-02 华为技术有限公司 Data writing method and storage device
WO2016101528A1 (en) * 2014-12-26 2016-06-30 中兴通讯股份有限公司 Method and device for processing data in memory database
US20180074956A1 (en) * 2016-09-09 2018-03-15 Alibaba Group Holding Limited Method, apparatus, and electronic device for modifying memory data of a virtual machine
CN109614139A (en) * 2018-12-13 2019-04-12 浪潮(北京)电子信息产业有限公司 A kind of system service configuration method, device, equipment and medium
CN110489439A (en) * 2019-09-12 2019-11-22 宁波三星医疗电气股份有限公司 A kind of parameter processing method and electric power terminal
US20200019348A1 (en) * 2019-09-27 2020-01-16 Intel Corporation Apparatuses, systems, and methods to store pre-read data associated with a modify-write operation
WO2020119434A1 (en) * 2018-12-15 2020-06-18 深圳壹账通智能科技有限公司 Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium
CN112131098A (en) * 2020-08-07 2020-12-25 国家电网有限公司 Method and system for testing electric energy meter software
CN112181799A (en) * 2019-07-05 2021-01-05 北京新能源汽车股份有限公司 Software configuration parameter testing method and device and automobile
CN113010121A (en) * 2021-05-25 2021-06-22 高拓讯达(北京)科技有限公司 Data modification method, device, equipment and storage medium
CN113495210A (en) * 2021-07-09 2021-10-12 武汉磐电科技股份有限公司 Low-voltage switch sampling inspection control method, device, equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815973A (en) * 2005-02-04 2006-08-09 华为技术有限公司 Data maintaining method and system
US20090111491A1 (en) * 2007-10-31 2009-04-30 Freescale Semiconductor, Inc. Remotely modifying data in memory in a mobile device
US20110258421A1 (en) * 2010-04-19 2011-10-20 International Business Machines Corporation Architecture Support for Debugging Multithreaded Code
CN102387041A (en) * 2011-11-17 2012-03-21 航天科工深圳(集团)有限公司 Maintenance method and system for failure indicator terminal
WO2016082559A1 (en) * 2014-11-28 2016-06-02 华为技术有限公司 Data writing method and storage device
WO2016101528A1 (en) * 2014-12-26 2016-06-30 中兴通讯股份有限公司 Method and device for processing data in memory database
US20180074956A1 (en) * 2016-09-09 2018-03-15 Alibaba Group Holding Limited Method, apparatus, and electronic device for modifying memory data of a virtual machine
CN109614139A (en) * 2018-12-13 2019-04-12 浪潮(北京)电子信息产业有限公司 A kind of system service configuration method, device, equipment and medium
WO2020119434A1 (en) * 2018-12-15 2020-06-18 深圳壹账通智能科技有限公司 Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium
CN112181799A (en) * 2019-07-05 2021-01-05 北京新能源汽车股份有限公司 Software configuration parameter testing method and device and automobile
CN110489439A (en) * 2019-09-12 2019-11-22 宁波三星医疗电气股份有限公司 A kind of parameter processing method and electric power terminal
US20200019348A1 (en) * 2019-09-27 2020-01-16 Intel Corporation Apparatuses, systems, and methods to store pre-read data associated with a modify-write operation
CN112131098A (en) * 2020-08-07 2020-12-25 国家电网有限公司 Method and system for testing electric energy meter software
CN113010121A (en) * 2021-05-25 2021-06-22 高拓讯达(北京)科技有限公司 Data modification method, device, equipment and storage medium
CN113495210A (en) * 2021-07-09 2021-10-12 武汉磐电科技股份有限公司 Low-voltage switch sampling inspection control method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
毕栋;周海鹰;王思山;: "基于CCP协议的PID参数自动标定系统设计", 湖北汽车工业学院学报, no. 04, 15 December 2016 (2016-12-15) *

Similar Documents

Publication Publication Date Title
CN109947482B (en) Loading method of USB (universal serial bus) equipment, storage medium and smart television
CN103559065B (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN108959067B (en) Method and device for testing search engine and computer readable storage medium
CN101924656A (en) Method and device for realizing network equipment CLI (Command Line Interface for batch scripti) based on dynamic configuration
CN108089985B (en) Method, device and equipment for verifying interface return parameters and readable storage medium
CN112052169A (en) Test management method, system, device and computer readable storage medium
CN105302722A (en) CTS automatic test method and apparatus
CN111008154B (en) Android application automatic test method and system based on reinforcement learning
CN113010190A (en) MAC address burning method, device, equipment and storage medium
CN108694049B (en) Method and equipment for updating software
CN112363736A (en) Method, device and storage medium for burning product serial number
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN116543828B (en) UFS protocol testing method and device, readable storage medium and electronic equipment
CN112685311A (en) Test script automatic generation method and device, computer equipment and storage medium
CN114327574A (en) Differential upgrading method, electronic device and storage medium
CN114003491A (en) Test equipment parameter modification method and device, electronic equipment and storage medium
CN112486811A (en) Interface test method, device, equipment and medium
CN106844186B (en) Offline test method of application and terminal equipment
CN114385493A (en) Performance test method and device, electronic equipment and storage medium
CN112597027B (en) Method and device suitable for APP to carry out environment switching debugging
CN114020278B (en) Data processing method, device, equipment and storage medium
CN112199294A (en) Automatic software testing method and device
CN111736858B (en) Upgrading method of terminal equipment, storage medium and terminal equipment
CN112395207A (en) Efficient verification method, device and storage medium for complex state machine
CN110928798A (en) Code testing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination