CN111104334A - Test method and device based on EEPROM module interface software and readable storage medium - Google Patents

Test method and device based on EEPROM module interface software and readable storage medium Download PDF

Info

Publication number
CN111104334A
CN111104334A CN201911343455.2A CN201911343455A CN111104334A CN 111104334 A CN111104334 A CN 111104334A CN 201911343455 A CN201911343455 A CN 201911343455A CN 111104334 A CN111104334 A CN 111104334A
Authority
CN
China
Prior art keywords
target signal
test
storage
signal
time
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.)
Granted
Application number
CN201911343455.2A
Other languages
Chinese (zh)
Other versions
CN111104334B (en
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.)
Deep Blue Automotive Technology Co ltd
Original Assignee
Chongqing Changan New Energy Automobile Technology 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 Chongqing Changan New Energy Automobile Technology Co Ltd filed Critical Chongqing Changan New Energy Automobile Technology Co Ltd
Priority to CN201911343455.2A priority Critical patent/CN111104334B/en
Publication of CN111104334A publication Critical patent/CN111104334A/en
Application granted granted Critical
Publication of CN111104334B publication Critical patent/CN111104334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a testing method and a device based on EEPROM module interface software and a readable storage medium, which relate to the technical field of testing of a memory, and comprise the steps of firstly obtaining a target signal, judging whether the target signal is the same as a preset signal or not, testing the target signal when judging that the target signal is the same as the preset signal, wherein functions to be tested comprise a storage initial value, storage time and reading time, a storage function and resource occupancy rate; and reporting the test result of each test function in the process of testing the target signal. The invention is used for solving the technical problems that the difficulty of manual testing is higher and higher, and the sufficiency of testing is lower and lower.

Description

Test method and device based on EEPROM module interface software and readable storage medium
Technical Field
The invention relates to the technical field of testing of memories, in particular to a testing method and a testing device based on EEPROM module interface software and a readable storage medium.
Background
With the continuous enhancement of environmental protection consciousness, the new energy automobile market in China shows a situation of getting hotter and hotter. Among them, the most critical part of a new energy automobile is the automobile controller assembly, which is generally called the "brain" in the industry, and has the core functions of energy management, torque control, human-computer interaction and the like of the automobile. The battery module, the battery management system and the electric drive system form three core components of the new energy automobile. And the automobile controller assembly performs corresponding calculation according to the huge data acquired by the system. Among these data, various types of historical data of the vehicle are often involved, and the storage of the historical data involves a very important module: an EEPROM memory module. In the development process of the controller software, a large amount of data needs to be stored, the change of the storage requirement cannot be avoided, the storage correctness of the large amount of data is guaranteed, and the rapid test of the storage function is realized, so that the problem needs to be solved by a software development engineer.
At present, the EEPROM storage module of automobile controller assembly is according to the storage demand, earlier stage, carries out manual test to the signal that needs to save in the signal list one by controller software development engineer, and along with controller function is more and more powerful, the data that need the storage also can be more and more, and too much data storage that brings from this will lead to manual test's the degree of difficulty more and more high, and the sufficiency of test is more and more low.
Disclosure of Invention
In view of the above, the present invention provides a testing method and device based on EEPROM module interface software, and a readable storage medium, so as to solve the technical problems that the difficulty of manual testing is higher and the test sufficiency is lower and lower.
In a first aspect, the present invention provides a testing method based on EEPROM module interface software, including the following steps: acquiring a target signal; judging whether the target signal is the same as a preset signal or not; when the target signal is judged to be the same as the preset signal, testing the target signal, wherein functions to be tested comprise a storage initial value, storage time and reading time, a storage function and resource occupancy rate; when a target signal is subjected to test operation of storing an initial value, obtaining a test result of the stored initial value, and judging whether the configuration of the target signal stored initial value is correct or not based on the test result of the stored initial value; when the target signal is subjected to the test operation of the storage time and the reading time, obtaining the test results of the storage time and the reading time; when the target signal is subjected to the test operation of the storage function, obtaining a test result of the storage function; and when the target signal is subjected to the resource occupancy rate test operation, obtaining a resource occupancy rate test result.
Further, when the test operation of storing the initial value is performed on the target signal, obtaining the test result of the stored initial value includes the following steps: loading a target signal into a test tool for running, and acquiring a variable value of a power-on storage space by setting a breakpoint; and comparing and analyzing the acquired variable value of the power-on storage space with standard data, and acquiring a test result of the storage initial value.
Further, when the target signal is subjected to the test operation of the storage time and the reading time, obtaining the test result of the storage time and the reading time comprises the following steps: adding test codes to the power-on function and the power-off function respectively, wherein the test codes are timer test codes; and loading the timer test code into a test tool for testing, and acquiring the storage time and the reading time, wherein the storage time is power-off storage time, and the reading time is power-on reading time.
Further, when the target signal is subjected to the test operation of the memory function, obtaining the test result of the memory function includes the following steps: loading a target signal into a test tool for running, and acquiring a variable value of a power-off storage space by setting a breakpoint; and comparing and analyzing the acquired power-off storage space variable value with standard data, and acquiring a test result of the storage function.
Further, when the target signal is subjected to the resource occupancy test operation, obtaining the resource occupancy test result includes the following steps: loading a target signal into a test tool for operation, and comparing the storage space variable value of the target signal; and calculating the memory sum of the storage variables of the target signal, and obtaining the test result of the resource occupancy rate.
Further, after the target signal is tested, the test method further includes: reading the content of the target signal, wherein the content of the target signal comprises at least one of: the name of the sheet table, the row number of the sheet table and the column number of the sheet table.
Further, after reading the content of the target signal, the test method further comprises: and identifying the content of the target signal through an upper computer, and generating a tool script file, wherein the upper computer is a Latotbach upper computer, and the tool script file is a Latotbach tool script file.
Further, when it is determined that the target signal is not the same as the preset storage signal, the test method further includes: and generating a first prompt signal and sending the first prompt signal to the upper computer, wherein the first prompt signal is used for prompting that the upper computer fails to acquire the target signal.
In a second aspect, the present invention provides a testing apparatus based on EEPROM module interface software, including: the device comprises a first acquisition unit, a first judgment unit, a second judgment unit and a test unit, wherein the first acquisition unit is used for acquiring a target signal; the first judging unit is used for judging whether the target signal is the same as a preset signal or not; the second judging unit is used for judging that the target signal is detected under the condition that the target signal is judged to be the same as the preset signal; the test unit is used for testing the target signal, carrying out test operation of storing an initial value on the target signal to obtain a test result of the stored initial value, and judging whether the configuration of the stored initial value of the target signal is correct or not based on the test result of the stored initial value; when the target signal is subjected to the test operation of the storage time and the reading time, obtaining the test results of the storage time and the reading time; when the target signal is subjected to the test operation of the storage function, obtaining a test result of the storage function; and when the target signal is subjected to the resource occupancy rate test operation, obtaining a resource occupancy rate test result.
In a third aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the steps of the test method based on the EEPROM module interface software according to any one of 1 to 8.
The invention has the following advantages:
the method is based on EEPROM module interface software, firstly, a target signal is obtained, whether the target signal is the same as a preset signal or not is judged, when the target signal is judged to be the same as the preset signal, the target signal is tested, and functions to be tested comprise an initial value storage, storage time and reading time, a storage function and resource occupancy rate; and reporting a test result in the process of automatically running the test on the target signal. The test of the controller EEPROM module is simpler and easier to operate, the test efficiency and the test sufficiency of the interface software of the controller EEPROM module are greatly improved, the whole vehicle controller assembly can efficiently and stably process each target signal of the EEPROM module, and the technical problems that the manual test difficulty is higher and higher, the time consumption is longer and longer, and the test sufficiency is lower and lower are solved.
Drawings
FIG. 1 is a flow chart of a test method based on EEPROM module interface software according to the present invention;
FIG. 2 is a schematic flow chart illustrating a method for testing the stored initial values of the EEPROM signals according to the present invention;
FIG. 3 is a schematic diagram illustrating a testing process of the power-on read time and the power-off storage time of the EEPROM signal according to the present invention;
FIG. 4 is a schematic diagram illustrating a testing process of the storage function of the EEPROM signal according to the present invention;
FIG. 5 is a schematic diagram illustrating a testing process of resource occupancy rate of EEPROM signals according to the present invention;
FIG. 6 is a schematic diagram illustrating a testing process of the storage function of the EEPROM signal according to the present invention;
FIG. 7 is a flow chart of the test device based on the EEPROM module interface software according to the present invention;
FIG. 8 is a schematic diagram illustrating an EEPROM signal file parsing and test case examination process according to the present invention;
FIG. 9 is a schematic view of a test result analysis process of EERPOM module interface software according to the present invention.
Detailed Description
When the automobile controller assembly correspondingly calculates huge data collected by the system, network delay may occur, and meanwhile, too much data storage will result in higher and higher difficulty of manual testing, longer and longer time consumption and lower testing sufficiency. To improve the efficiency of testing stored data and the sufficiency of testing. The embodiment provides a testing method and device based on EEPROM module interface software and a readable storage medium. The method and the device can be applied to the evaluation of the automobile controller assembly, and the embodiment of the invention is described in detail below.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
A testing method based on EEPROM module interface software, as shown in fig. 1, includes the following steps:
step 1, acquiring a target signal;
step 2, judging whether the target signal is the same as a preset signal or not;
step 3, when the target signal is judged to be the same as the preset signal, testing the target signal, wherein functions to be tested comprise a storage initial value, storage time and reading time, a storage function and resource occupancy rate;
step 4, when the test operation of storing the initial value is carried out on the target signal, obtaining the test result of the stored initial value, and judging whether the configuration of the stored initial value of the target signal is correct or not based on the test result of the stored initial value; when the target signal is subjected to the test operation of the storage time and the reading time, obtaining the test results of the storage time and the reading time; when the target signal is subjected to the test operation of the storage function, obtaining a test result of the storage function; and when the target signal is subjected to the resource occupancy rate test operation, obtaining a resource occupancy rate test result.
In the embodiment, a new energy automobile vehicle controller (hereinafter referred to simply as a controller) is an automatic test method based on EEPROM module interface software, and signals needing to be stored can be used for completing automatic tests of a storage function, an initial value, storage time, storage data reading time and resource occupancy rate.
The creation of the storage initial value needs to be explained by that before the initialization function of the EEPROM module runs, a variable condition breakpoint EE _ InitGet _ Break =1 is firstly set, then a temporary variable window is created, a variable NVM _ adminblockackbuf.nvm _ CheckCode is added to the window, then an eeread.cmm script file is run to acquire the values of all storage variables, when the controller runs to the breakpoint, the NVM _ adminblockackbuf.nvm _ CheckCode value is set to 0x 11111111111, so that the controller runs a program for assigning the initial value, at this time, the value in the eread window is read, and the value is output to a file eereadinit.txt, and the value at this time should be the EEPROM initial value.
As shown in fig. 1, when the target signal is determined to be different from the preset storage signal, the test method further includes the following steps:
and 5, generating a first prompt signal and sending the first prompt signal to the upper computer, wherein the first prompt signal is used for prompting that the upper computer fails to acquire the target signal.
In this embodiment, when the target signal is different from the preset signal, the target signal cannot be tested, and further, the correlation value of the target signal test result cannot be obtained.
In this embodiment, when a test operation for storing an initial value is performed on a target signal, obtaining a test result for storing the initial value, and determining whether the configuration of the target signal storage initial value is correct based on the test result for storing the initial value includes the following steps:
firstly, loading a target signal into a test tool for running, and acquiring a variable value of a storage space after power-on by setting a breakpoint;
and comparing and analyzing the acquired variable value of the storage space after being powered on with the standard data to acquire a test result of the storage initial value.
As shown in fig. 2, firstly, before the initialization function of the EEPROM module is run, a variable condition breakpoint EE _ InitGet _ Break =1 is set, then a temporary variable window is created, a variable NVM _ adminblockackbuf.nvm _ CheckCode is added to the window, then an eeread.cmm script file is run to obtain the values of all storage variables, when the controller runs to the breakpoint, the NVM _ adminblockackbuf.nvm _ CheckCode value is set to 0x 11111111111, so that the controller runs a program for assigning an initial value, at this time, the value in the eread window is read, and the value is output to a file eereadinit.txt, which is the storage initial value of the EEPROM.
In this embodiment, when the target signal is subjected to the test operation of the storage time and the reading time, obtaining the test result of the storage time and the reading time includes the following steps:
firstly, adding test codes to a power-on function and a power-off function respectively, wherein the test codes are timer test codes;
and loading the timer test code in the test tool for testing, and acquiring the storage time and the reading time, wherein the storage time is power-off storage time, and the reading time is power-on reading time.
The test method for reading the storage time by powering on and powering off the interface software of the EEPROM module includes adding a test code with a timer function to a power-on function and a power-off function, loading a generated test case into a test tool for execution, and acquiring the power-on and power-off reading and storage time by acquiring a timer value.
As shown in fig. 3, after the initial value storage test is completed, the controller is reset and powered on again, a variable window is created, and variables EEread _ time and EEwrite _ time are added for respectively acquiring power-on reading time and power-off storage time; then before the controller runs a power-off process, setting a conditional breakpoint GoDown _ Entey = 1; adding a controller power-off control variable in a temporary variable window and setting a value to be 1 to enable the controller to reach a condition of entering a power-off task; when the controller is operated, the controller stops at the breakpoint GoDown _ Entey =1, and then clears the breakpoint GoDown _ Entey = 1; then setting a variable breakpoint EEwrite _ time after the power-off program of the controller, setting the power-off control variable value of the controller to be 0, and enabling the controller to reach the condition of running the power-off storage program; when the controller is operated, the controller can operate the power-off stored program and stop at the breakpoint EEwrite _ time; then all breakpoints are cleared, and the content in the EE _ TIME window is output to the file EE _ TIME.
In this embodiment, when the test operation of the memory function is performed on the target signal, obtaining the test result of the memory function includes the following steps:
loading a target signal into a test tool for running, and acquiring a storage space variable value after power off by setting a breakpoint;
and comparing and analyzing the acquired storage space variable value stored in the power-off state with the standard data to acquire the test result of the storage function.
The method for testing the storage function of the EEPROM signal includes loading a generated test case file into a test tool to run, obtaining a value of a variable after power-off storage by setting a breakpoint, and obtaining a storage function test result of the EEPROM signal according to comparative analysis of the value of the storage variable and standard data.
As shown in fig. 4, after the power-on and power-off time test is completed, a breakpoint is set at the place of the power-off code, the program is stopped at this point, then the script file eewrite.
In this embodiment, when testing the target signal, the method for testing the resource occupancy includes the following steps:
loading a target signal into a test tool for operation, and comparing the storage space variable value of the target signal;
and calculating the sum of storage variable memories of the target signals to obtain the test result of the resource occupancy rate.
The method for testing the resource occupancy rate of the EEPROM signal loads a generated test case file into a test tool to run, and obtains the resource occupancy rate by checking the value of the storage space variable and calculating the memory sum of the storage variable.
As shown in fig. 5, after the storage function test is completed, a variable window named as BOLCKSIZE is created, then a variable related to the memory block is added to the variable window, the content in the window is output to the file blocksize.
In this embodiment, after testing the target signal, the testing method further includes:
reading the content of the target signal, wherein the content of the target signal comprises at least one of: the name of the sheet table, the row number of the sheet table and the column number of the sheet table.
It should be noted that, in the interface signal list testing method, after the interface signal list file is loaded, the information of all EEPROM signals is read by identifying the sheet table name, the row number, and the column number in the file.
In this embodiment, after reading the content of the target signal, the test method further includes:
and identifying the content of the target signal through the upper computer, and generating a tool script file, wherein the upper computer is a Latotbach upper computer, and the tool script file is a Latotbach tool script file.
The EEPROM stores the contents of the software test case in the recognized signal list, and then generates a lotterbach tool script file for storing a function test, a lotterbach tool script file for an initial value test, a lotterbach tool script file for a power-down storage time test, and a lotterbach tool script file for a resource occupancy rate test. The functional Lottabach tool script files are formed into respective tool script files based on the target signal.
After the target signal is acquired, the target signal and the preset storage signal can be judged through MATLAB software, and after the target signal is confirmed to be the same as the preset storage signal, test operation is carried out. As shown in fig. 6, a target signal (not shown in the figure) is transmitted to the lautbach host computer and the CANalyzer host computer through an API Interface (Application Programming Interface), Matlab software transmits data to the lautbach host computer and the CANalyzer host computer, the lautbach host computer and the CANalyzer host computer are transmitted to the lautbach hardware and the CANalyzer hardware through a USB (universal serial bus) Interface, and finally the lautbach hardware outputs a test object through a parallel line, and the CANalyzer hardware outputs the test object through a CAN bus.
It should be noted that the test tools and interfaces mentioned in the related test method include not only the above mentioned ones, but also TYPE-C and similar serial interfaces.
The present embodiment further provides a testing apparatus based on the EEPROM module interface software, where the testing apparatus is mainly used to execute the testing method of the EEPROM module interface software provided in the embodiments of the present invention, and the testing apparatus of the EEPROM chip provided in the embodiments of the present invention is described in detail below.
In this embodiment, as shown in fig. 7, a testing apparatus 700 for an EEPROM chip mainly includes: a first acquiring unit 701, a first determining unit 702, a second determining unit 703, and a testing unit 704, wherein,
a first obtaining unit 701, configured to obtain a target signal.
A first determining unit 702, configured to determine whether the target signal is the same as a preset signal.
The second determining unit 703 is configured to determine that the target signal is detected when it is determined that the target signal is the same as the preset signal.
The test unit 704 is configured to test the target signal, obtain a test result of a stored initial value when a test operation of storing the initial value is performed on the target signal, and determine whether the configuration of the stored initial value of the target signal is correct based on the test result of the stored initial value; when the target signal is subjected to the test operation of the storage time and the reading time, obtaining the test results of the storage time and the reading time; when the target signal is subjected to the test operation of the storage function, obtaining a test result of the storage function; and when the target signal is subjected to the resource occupancy rate test operation, obtaining a resource occupancy rate test result.
It should be noted that, in the actual operation of the upper computer, a part of the flow is as shown in fig. 8, and the mouse clicks the button "generate test case" to enter the code design of file selection, file analysis and test case file generation. Firstly, according to the definition in a test case list, acquiring the current system time and outputting the current system time to an operation record text box, setting a progress bar as an initial state, acquiring the file name and the storage path of a loading signal list and outputting the file name and the storage path to the operation record text box, wherein the serial number of a signal column to be stored is ASWto BSWSig =1, the serial number of the signal column to be read is BSWto ASWSig =2, and the serial number of a signal type column is Class = 4; then creating an interface file EE _ trace32.bat of MATLAB software and lotteria software and script files (eewrite. cmm, eeread. cmm, eeptest. cmm) for use in the lotteria test tool; setting corresponding values for signals to be stored according to different types of the signals, generating the signals into an EEwrite. And finally, setting the values of the progress bars and the states of the buttons to finish the generation of all test case files.
In order to more conveniently observe the generation condition of the test signal in the test operation, a progress bar is set to observe the generation condition of the test signal, and the storage signal type part is different from the size, and the storage signal type comprises: a storage signal pool, a storage signal unit8, a storage signal unit16, and a storage signal unit 32; wherein the set write values of the storage signals are also different.
In the embodiment of the present invention, as shown in fig. 9, when all the txt files related to the result are generated, the test result analysis process is performed. Firstly, analyzing an initial value test result, analyzing the content in an EEreadInit.txt file, respectively writing a signal name and a corresponding value into a matrix EEreadInit.signal and EEreadInit.data, analyzing a signal initial value in an interface list into a matrix Input _ InitV, then comparing the signal value in the EEreadInit.data with the signal value in the Input _ InitV, if the comparison is consistent, the signal test is successful, otherwise, the test fails and a failure flag bit Init _ failure =1, finally writing the test result into a test log file EEtestLog.txt, and if the comparison is consistent, finishing the analysis of the initial value test result and entering a storage function test result analysis process. Analyzing the storage function test result, firstly analyzing EEwrite.txt and ReadFromEE.txt files, respectively analyzing the variable name and value in EEwrite.signal/EEwrite.dataRead and FromEE.signal/ReadFromEE.data, then comparing the values of EEwrite.data (i) and ReadFromEE.data (i) according to the variable name and value, if the signal passes the test, otherwise, the test fails and tests the flag bit EE _ fail =1, finally writing the analysis result of ReadFromEE.signal (i) into the file EEtestLog.txt, and then, finishing the analysis of the storage function test result and entering the analysis flow of the up-down electrical test result. When the up-down test result is analyzed, firstly analyzing the content of an ee _ time.txt file, respectively analyzing the power-on reading time and the power-down storage time into a variable time _ EEread and a variable time _ EEwrite, then judging the value of the time _ EEwrite, if the value is smaller than T1, passing the test, otherwise failing the test, marking a failure bit time _ EEwrite _ failure =1, then judging the value of the time _ EEread, if the value is smaller than T2, passing the test, otherwise failing the test, marking a failure bit time _ EEread _ failure =1, finally outputting the actual power-on reading time and the power-down storage time into the file EEtestLog.txt, and then finishing the analysis of the up-down test result and entering a resource occupation test result analysis process. When analyzing the resource occupation test result, firstly analyzing the content of a blocksize.txt file, analyzing the size of the occupied content into a variable blocksize, then judging the value of the blocksize, if the value of the blocksize is smaller than 4096, the test is passed, otherwise, the test is failed, and a test failure flag bit blocksize _ failure =1, finally calculating the resource occupancy rate, outputting the size of the used byte and the resource occupancy rate information into the file EEtestLog.txt, and if so, ending the analysis of the resource occupation test result and entering a result prompt design flow. When result prompt design is carried out, the values of Init _ failure, EE _ failure, blocksize _ failure, time _ EEwrite _ failure and time _ EEread _ failure are judged according to the result, if any one of the values is 1, a corresponding prompt box is popped, and all function modules judge that the final prompt window is popped: test completion, test Log. txt! At this point, the whole EEPROM module software test is finished.
The testing method based on the EEPROM module interface software provided by the embodiment of the present invention further includes a computer readable storage medium storing a program code, and instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and will not be described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A test method based on EEPROM module interface software is characterized by comprising the following steps:
acquiring a target signal;
judging whether the target signal is the same as a preset signal or not;
when the target signal is judged to be the same as the preset signal, testing the target signal, wherein functions to be tested comprise a storage initial value, storage time and reading time, a storage function and resource occupancy rate;
when a target signal is subjected to test operation of storing an initial value, obtaining a test result of the stored initial value, and judging whether the configuration of the target signal stored initial value is correct or not based on the test result of the stored initial value;
when the target signal is subjected to the test operation of the storage time and the reading time, obtaining the test results of the storage time and the reading time;
when the target signal is subjected to the test operation of the storage function, obtaining a test result of the storage function;
and when the target signal is subjected to the resource occupancy rate test operation, obtaining a resource occupancy rate test result.
2. The method of claim 1, wherein the step of obtaining the test result of the stored initial value during the test operation of the stored initial value for the target signal comprises the steps of:
loading a target signal into a test tool for running, and acquiring a variable value of a power-on storage space by setting a breakpoint;
and comparing and analyzing the acquired variable value of the power-on storage space with standard data, and acquiring a test result of the storage initial value.
3. The test method based on the EEPROM module interface software according to claim 1 or 2, wherein the step of obtaining the test result of the storage time and the read time when the test operation of the storage time and the read time is performed on the target signal comprises the steps of:
adding test codes to the power-on function and the power-off function respectively, wherein the test codes are timer test codes;
and loading the timer test code in the test tool for testing, and acquiring the storage time and the reading time, wherein the storage time is power-off storage time, and the reading time is power-on reading time.
4. The test method based on the EEPROM module interface software according to claim 1 or 3, wherein the obtaining of the test result of the memory function when the test operation of the memory function is performed on the target signal comprises the steps of:
loading a target signal into a test tool for running, and acquiring a variable value of a power-off storage space by setting a breakpoint;
and comparing and analyzing the acquired power-off storage space variable value with standard data, and acquiring a test result of the storage function.
5. The method for testing EEPROM module interface software according to claim 1 or 4 wherein, in performing the resource occupancy test operation on the target signal, obtaining the resource occupancy test result comprises the steps of:
loading a target signal into a test tool for operation, and comparing the storage space variable value of the target signal;
and calculating the memory sum of the storage variables of the target signal, and obtaining the test result of the resource occupancy rate.
6. The EEPROM module interface software-based test method of claim 1, wherein after the target signal is tested, the test method further comprises:
reading the content of the target signal, wherein the content of the target signal comprises at least one of: the name of the sheet table, the row number of the sheet table and the column number of the sheet table.
7. The EEPROM module interface software based test method of claim 6, wherein after reading the content of the target signal, the test method further comprises:
and identifying the content of the target signal through an upper computer, and generating a tool script file, wherein the upper computer is a Latotbach upper computer, and the tool script file is a Latotbach tool script file.
8. The method of claim 1, wherein when the target signal is determined to be different from the predetermined stored signal, the method further comprises:
and generating a first prompt signal and sending the first prompt signal to the upper computer, wherein the first prompt signal is used for prompting that the upper computer fails to acquire the target signal.
9. A testing device based on EEPROM module interface software is characterized by comprising:
a first acquisition unit configured to acquire a target signal;
the first judgment unit is used for judging whether the target signal is the same as a preset signal or not;
the second judging unit is used for judging that the target signal is detected under the condition that the target signal is judged to be the same as the preset signal;
the test unit is used for testing the target signal, obtaining a test result of a stored initial value when the test operation of the stored initial value is carried out on the target signal, and judging whether the stored initial value of the target signal is configured correctly or not based on the test result of the stored initial value; when the target signal is subjected to the test operation of the storage time and the reading time, obtaining the test results of the storage time and the reading time; when the target signal is subjected to the test operation of the storage function, obtaining a test result of the storage function; and when the target signal is subjected to the resource occupancy rate test operation, obtaining a resource occupancy rate test result.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, performs the steps of the EEPROM module interface software-based test method of any one of the above claims 1 to 8.
CN201911343455.2A 2019-12-24 2019-12-24 Test method and device based on EEPROM module interface software and readable storage medium Active CN111104334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911343455.2A CN111104334B (en) 2019-12-24 2019-12-24 Test method and device based on EEPROM module interface software and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911343455.2A CN111104334B (en) 2019-12-24 2019-12-24 Test method and device based on EEPROM module interface software and readable storage medium

Publications (2)

Publication Number Publication Date
CN111104334A true CN111104334A (en) 2020-05-05
CN111104334B CN111104334B (en) 2023-04-07

Family

ID=70424202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911343455.2A Active CN111104334B (en) 2019-12-24 2019-12-24 Test method and device based on EEPROM module interface software and readable storage medium

Country Status (1)

Country Link
CN (1) CN111104334B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6453461B1 (en) * 1999-06-09 2002-09-17 Compaq Information Technologies Group, L.P. Method and apparatus for testing ASL plug and play code in an ACPI operating system
JP2006313090A (en) * 2005-05-06 2006-11-16 Nec Electronics Corp Semiconductor integrated circuit and its burn-in test method
CN101833498A (en) * 2009-07-31 2010-09-15 北京伟晨豪嘉科技有限责任公司 Automatic detection system of embedded type system based on testing script technique
CN101937386A (en) * 2009-07-03 2011-01-05 深圳市闪联信息技术有限公司 Method and device for automatically testing signals
CN105575437A (en) * 2014-10-10 2016-05-11 上海华虹集成电路有限责任公司 Smart card EEPROM test method
CN106777614A (en) * 2016-12-05 2017-05-31 上海理工大学 Standard cell lib sequence testing circuit layout structure and layout method
CN106850372A (en) * 2017-02-22 2017-06-13 重庆长安汽车股份有限公司 A kind of method of testing and system of controller CAN signal
CN107451064A (en) * 2017-08-16 2017-12-08 北京车和家信息技术有限责任公司 Automatic test approach, device, computer equipment and readable storage medium storing program for executing
CN110232018A (en) * 2019-05-17 2019-09-13 浙江数链科技有限公司 Interface test method, device, computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6453461B1 (en) * 1999-06-09 2002-09-17 Compaq Information Technologies Group, L.P. Method and apparatus for testing ASL plug and play code in an ACPI operating system
JP2006313090A (en) * 2005-05-06 2006-11-16 Nec Electronics Corp Semiconductor integrated circuit and its burn-in test method
CN101937386A (en) * 2009-07-03 2011-01-05 深圳市闪联信息技术有限公司 Method and device for automatically testing signals
CN101833498A (en) * 2009-07-31 2010-09-15 北京伟晨豪嘉科技有限责任公司 Automatic detection system of embedded type system based on testing script technique
CN105575437A (en) * 2014-10-10 2016-05-11 上海华虹集成电路有限责任公司 Smart card EEPROM test method
CN106777614A (en) * 2016-12-05 2017-05-31 上海理工大学 Standard cell lib sequence testing circuit layout structure and layout method
CN106850372A (en) * 2017-02-22 2017-06-13 重庆长安汽车股份有限公司 A kind of method of testing and system of controller CAN signal
CN107451064A (en) * 2017-08-16 2017-12-08 北京车和家信息技术有限责任公司 Automatic test approach, device, computer equipment and readable storage medium storing program for executing
CN110232018A (en) * 2019-05-17 2019-09-13 浙江数链科技有限公司 Interface test method, device, computer equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
P.CANETA 等: "Improvement of EEPROM cell reliability by optimization of signal programming", 《JOURNAL OF NON-CRYSTALLINE SOLIDS》 *
潘婧 等: "一种信号自适应的控制器设计与实现", 《制造业自动化》 *

Also Published As

Publication number Publication date
CN111104334B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US20120254662A1 (en) Automated test system and automated test method
CN112650676A (en) Software testing method, device, equipment and storage medium
CN110727597A (en) Method for completing use case based on log troubleshooting invalid codes
CN111104155A (en) Database script management platform and method, electronic equipment and storage medium
CN111552475B (en) Method, method and system for compiling work load test file for aging test of semiconductor memory
CN114817015A (en) Test case coverage rate statistical method and device, electronic equipment and storage medium
CN113744797A (en) NAND test analysis method and device based on solid state disk and computer equipment
CN107516546B (en) Online detection device and method for random access memory
CN107133137B (en) Method for conveniently acquiring RMT test information
CN108628734B (en) Functional program debugging method and terminal
CN111966551A (en) Method, system, terminal and storage medium for verifying remote command execution result
CN111459814A (en) Automatic test case generation method and device and electronic equipment
CN107832176A (en) Hard disk pressure automatic test approach and system under a kind of Windows
CN109086186B (en) Log detection method and device
CN111104334B (en) Test method and device based on EEPROM module interface software and readable storage medium
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN117421217A (en) Automatic software function test method, system, terminal and medium
CN110908903A (en) Test method based on editable YAML file
CN107562593A (en) A kind of automated testing method and system for verifying internal memory ECC functions
CN115757099A (en) Automatic test method and device for platform firmware protection recovery function
CN112463633B (en) Method, device, equipment and medium for checking address decoding of on-chip memory
CN112860587B (en) UI automatic test method and device
CN115391220A (en) Test case generation method, device and equipment
CN111857866B (en) Loading method and device of multiple dynamic cores and computer readable storage medium
KR102160379B1 (en) Testing method for decentralized application based on blockchain and testing apparatus

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 401133 room 208, 2 house, 39 Yonghe Road, Yu Zui Town, Jiangbei District, Chongqing

Patentee after: Deep Blue Automotive Technology Co.,Ltd.

Address before: 401133 room 208, 2 house, 39 Yonghe Road, Yu Zui Town, Jiangbei District, Chongqing

Patentee before: CHONGQING CHANGAN NEW ENERGY AUTOMOBILE TECHNOLOGY Co.,Ltd.