CN108564985B - EMMC test method, device, mobile terminal and storage medium - Google Patents
EMMC test method, device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN108564985B CN108564985B CN201810220433.6A CN201810220433A CN108564985B CN 108564985 B CN108564985 B CN 108564985B CN 201810220433 A CN201810220433 A CN 201810220433A CN 108564985 B CN108564985 B CN 108564985B
- Authority
- CN
- China
- Prior art keywords
- test
- capacity
- emmc
- function
- value
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/56—External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
Landscapes
- Tests Of Electronic Circuits (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides an EMMC test method, an EMMC test device, a mobile terminal and a storage medium, wherein the method comprises the following steps: when an EMMC replacing signal is received, acquiring a local storage test program, and performing function test on the current EMMC according to the test program to obtain a test result; acquiring a fluctuation difference value between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference value is within a corresponding preset error range; if yes, judging that the test is passed; if not, the test is judged not to pass, the automation degree of the invention is higher, detection signals and EMMC detection operation by workers are not needed, the user experience is improved, the EMMC test method can simultaneously test the functions of a plurality of test function objects, and the stable function judgment is carried out by adopting a judgment mode of a fluctuation difference value and a corresponding preset error range, so that the test accuracy is improved.
Description
Technical Field
The invention relates to the technical field of EMMC, in particular to an EMMC testing method, an EMMC testing device, a mobile terminal and a storage medium.
Background
The EMMC is called an Embedded MultiMedia Card, and is an Embedded nonvolatile memory system which comprises a flash memory and a flash memory controller. One significant advantage of EMMC is the integration of a flash memory controller in a package that uses BGA packaging and manages flash memory using a unified flash memory interface. The current target application of EMMC is consumer electronics with higher requirements on storage capacity, and the standard of the EMMC is gradually developed from the EMMC4.3 generation to the EMMC4.5 generation, and EMMC5.0 is also published. The EMMC has a unified and high-speed data interface, thereby realizing front-back compatibility and high storage density. The EMMC is widely applied, when the EMMC is replaced in the using process of the EMMC, the EMMC after replacement needs to be tested for functional stability so as to judge whether the replaced EMMC can meet the requirements of users or not, and therefore the stability of the functions of the board card is guaranteed, and people pay more and more attention to the testing problem of the EMMC.
The existing EMMC test method adopts a manual test method to test the EMMC, namely after the position number of the EMMC is recorded after the EMMC is replaced, the EMMC is manually tested according to the recorded position number.
The existing EMMC test method adopts a manual test mode to detect the EMMC function, so that the operation of workers is too complicated, the test efficiency is reduced, the automation degree is low, and the personnel cost is increased.
Disclosure of Invention
Accordingly, an object of embodiments of the present invention is to provide an EMMC test method, an EMMC test apparatus, a mobile terminal, and a storage medium, which automatically test an EMMC function after replacement when the EMMC is replaced.
In a first aspect, the present invention provides an EMMC testing method, comprising:
when an EMMC replacing signal is received, acquiring a local storage test program, and performing function test on the current EMMC according to the test program to obtain a test result;
acquiring a fluctuation difference value between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference value is within a corresponding preset error range;
if yes, judging that the test is passed;
if not, the test is judged not to pass.
The EMMC test method has the advantages that through the receiving design of the EMMC replacing signal, whether the EMMC test method is started or not is judged, so that the EMMC test method has the function of automatic test, the personnel cost is further reduced, the test efficiency of the current EMMC is improved, through the acquisition design of the test program, the function of the test function object is tested in a targeted mode, the accuracy of the EMMC test method is further improved, through the fluctuation difference value between the maximum value and the minimum value in the test result, the judgment of the fluctuation difference value and the preset error range is facilitated, through the adoption of the judgment mode of the fluctuation difference value and the error range, whether the function of the test function object corresponding to the fluctuation difference value is stable or not can be accurately judged, and when the EMMC test method receives the EMMC replacing signal, the detection of the current EMMC function is automatically started, the EMMC testing method can simultaneously test the functions of a plurality of test function objects, and can judge the function stability by adopting the fluctuation difference value and the judging mode corresponding to the preset error range, so that the testing accuracy is improved.
Further, the step of performing a functional test on the current EMMC according to the test program includes:
acquiring the capacity of a locally stored test block, and sequentially acquiring a plurality of test capacities within a preset capacity range according to a preset acquisition rule;
and executing the test program for each test capacity according to the test block capacity in sequence.
Further, when the test function object of the test program is a function of writing to a new file, the step of executing the test program for each test capacity in order according to the test block capacity includes:
sequentially acquiring the value of each test capacity, and creating a plurality of new files corresponding to the same capacity according to the value of the test capacity;
filling data into each new file by taking the capacity of the test block as a filling unit until each new file is filled, so as to calculate the filling time corresponding to each new file;
and calculating to obtain a plurality of filling speeds according to the capacity of the new file and the corresponding filling time, and storing the corresponding relation between each filling speed and the corresponding capacity of the new file to obtain the test result corresponding to the function written into the new file.
Further, when the test function object of the test program is a function of reading an existing file, the step of executing the test program for each test capacity in sequence according to the test block capacity includes;
sequentially obtaining the value of each test capacity, and obtaining a plurality of old files corresponding to the same capacity according to the value of the test capacity;
respectively reading the data in each old file by taking the capacity of the test block as a filling unit until each old file is completely read, so as to calculate the corresponding reading time of each old file;
and calculating to obtain a plurality of reading speeds according to the capacity of the old file and the corresponding reading time, and storing the corresponding relation between each reading speed and the corresponding capacity of the old file to obtain the test result corresponding to the function of reading the existing file.
Further, the obtaining formula adopted in the preset obtaining rule is as follows:
W=Y×2n;
in the obtaining formula, the value of n is a natural number, the value of Y is the size of the basic test capacity of local storage, the value of W is the capacity of the target file, and the capacity of the target file is used for obtaining the test capacity.
Further, the step of sequentially acquiring a plurality of test capacities within a preset capacity range according to a preset acquisition rule includes:
acquiring the size of the locally stored basic test capacity, and acquiring a maximum threshold value within the preset capacity range;
setting W as the maximum threshold value according to the acquisition formula to calculate an n threshold value;
acquiring all natural numbers between 0 and the n threshold values, and substituting all the natural numbers into the acquisition formula respectively to calculate the capacity of the target files;
and sequentially obtaining the same size of capacity within the preset capacity range according to the capacity of the target files to obtain a plurality of test capacities.
In a second aspect, the present invention provides an EMMC testing apparatus, comprising:
the test module is used for acquiring a local storage test program when an EMMC (embedded multi-media card) replacement signal is received, and performing function test on the current EMMC according to the test program to obtain a test result;
the judging module is used for acquiring a fluctuation difference value between the maximum value and the minimum value in the test result and judging whether the fluctuation difference value is within a corresponding preset error range;
and the judging module is used for judging that the test is passed when the judging module judges that the fluctuation difference value is within the preset error range, and judging that the test is not passed when the judging module judges that the fluctuation difference value is not within the preset error range.
In the EMMC testing device, the EMMC replacing signal is received and designed by the testing module to judge whether the EMMC testing method is started or not, so that the EMMC testing method has an automatic testing function, the personnel cost is reduced, the testing efficiency of the current EMMC is improved, the functions of the testing function object are tested in a targeted manner by the acquisition and design of the testing program, the accuracy of the EMMC testing method is improved, the judgment of the fluctuation difference value and the preset error range is facilitated by the fluctuation difference value between the maximum value and the minimum value in the testing result of the judging module, and the judgment of the fluctuation difference value and the error range is adopted by the judging module to accurately judge whether the functions of the testing function object corresponding to the fluctuation difference value are stable or not, above-mentioned EMMC testing arrangement is when receiving automatic opening is right when EMMC changes the signal current EMMC function's detection, and degree of automation is higher need not the staff and sends the detected signal, has improved user experience, just EMMC testing arrangement can be simultaneously to a plurality of the function of test function object is tested, and through adopting fluctuation difference and corresponding the judgement mode of predetermineeing the error range carries out the judgement that the function is stable, has improved the accuracy of testing.
In a third aspect, the present invention provides a mobile terminal, including a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the mobile terminal execute the EMMC test method.
In a fourth aspect, the present invention provides a storage medium having stored thereon a computer program for use in the above-described mobile terminal.
Drawings
Fig. 1 is a flowchart of an EMMC testing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of an EMMC testing method according to a second embodiment of the present invention;
FIG. 3 is a detailed implementation of step S21 in FIG. 2;
fig. 4 is a schematic structural diagram of an EMMC testing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an EMMC testing apparatus according to a fourth embodiment of the present invention;
Detailed Description
In order to facilitate a better understanding of the invention, the invention will be further explained below with reference to the accompanying drawings of embodiments. Embodiments of the present invention are shown in the drawings, but the present invention is not limited to the preferred embodiments described above. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
When any EMMC on the board is replaced in the using process of the board, the functional stability of the replaced EMMC needs to be tested to judge whether the replaced EMMC can meet the requirements of users or not, thereby ensuring the stability of the functions of the board card, but because the prior testing mode adopts a manual testing mode to detect the EMMC, namely, after the EMMC is replaced and the position number of the EMMC is recorded, the corresponding test is manually carried out according to the recorded position number, thereby causing the work of the staff to be too complicated, reducing the testing efficiency and having lower automation degree, therefore, the invention provides an EMMC testing method, a device, a mobile terminal and a storage medium for automatically testing the functions of the replaced EMMC after the EMMC is replaced, the working steps of workers are reduced, the testing efficiency is improved, the cost of the workers is reduced, and the automation degree is higher.
Referring to fig. 1, a flowchart of an EMMC testing method according to a first embodiment of the invention includes steps S10 to S50.
Step S10, when receiving an EMMC replacing signal, acquiring a locally stored test program, and performing a function test on the current EMMC according to the test program to obtain a test result;
whether the EMMC is replaced or not is detected constantly in the embodiment, so that when the EMMC is detected to be replaced, namely the EMMC replacement signal is received, the current EMMC test flow is automatically started, whether the EMMC is replaced or not can be detected constantly, whether any pin of the EMMC and the board card are in an electric connection state or not is detected constantly, whether the EMMC is replaced or not is judged by detecting the voltage on the preset pin of the EMMC constantly, and the understandable embodiment is not limited to the judgment manner.
In this embodiment, whether the EMMC test method is started or not is determined by the receiving design of the EMMC replacement signal, so that the EMMC test method has an automatic test function, thereby reducing the personnel cost and improving the test efficiency of the current EMMC.
In this embodiment, through the design of obtaining the test program, the function of the test function object is tested in a targeted manner, so that the accuracy of the EMMC test method is improved, and the obtained test program is run to obtain the test result.
Specifically, the execution function of the test program may be any one of a function of testing writing to a new file, a function of writing to an existing file, a function of reading a recently read file, a function of reading a random offset in a file, a function of writing a random offset in a file, a function of calling a function to write a file, and a function of calling a function to read a file of the current EMMC, and it is understood that the number of the test programs stored locally may be plural.
Step S20, obtaining a fluctuation difference value between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference value is within a corresponding preset error range;
the fluctuation difference value between the maximum value and the minimum value in the test result is calculated, so that the judgment of the fluctuation difference value and the preset error range is facilitated;
specifically, the maximum value and the minimum value in the test results are both speed results, that is, the speed of writing data into a file or the speed of reading data from a file, and the preset error ranges corresponding to the test results of different test programs may be the same or different.
When the step S20 determines that the fluctuation difference corresponding to the test program is within the preset error range, execute step S30.
Step S30, judging that the function of the test function object of the test program in the current EMMC is stable;
wherein, the test functional object is judged to pass the test.
When the step S20 determines that the fluctuation difference corresponding to the test program is not within the preset error range, execute step S40.
Step S40, judging that the function of the test function object of the test program in the current EMMC is unstable;
wherein, the test function object is judged not to pass the test.
Step S50, obtaining the name and function determination result of the test function object, and displaying the corresponding relationship between the name and the corresponding determination result.
When the number of the locally stored test programs is multiple, the test results are obtained by respectively operating different test programs, the fluctuation difference values in different test results are judged to obtain the judgment results, and the names and the corresponding judgment results are correspondingly displayed, so that a user can conveniently check whether each function in the current EMMC is stable.
In this embodiment, the EMMC test method is designed to receive the EMMC replacement signal so as to determine whether to start the EMMC test method, so that the EMMC test method has an automatic test function, thereby reducing the personnel cost and improving the test efficiency of the current EMMC, the test program is designed to be obtained so as to test the function of the test function object in a targeted manner, so as to improve the accuracy of the EMMC test method, the determination of the fluctuation value and the preset error range is facilitated by the fluctuation value between the maximum value and the minimum value in the test result, and the determination of the function of the test function object corresponding to the fluctuation value is accurately determined by adopting the determination method of the fluctuation value and the error range, so that the EMMC test method automatically starts the detection of the current EMMC function when receiving the EMMC replacement signal, the EMMC testing method can simultaneously test the functions of a plurality of test function objects, and can judge the function stability by adopting the fluctuation difference value and the judging mode corresponding to the preset error range, so that the testing accuracy is improved.
Referring to fig. 2, a flowchart of an EMMC testing method according to a second embodiment of the present invention is shown, where the method includes steps S11 to S121.
Step S11, when receiving EMMC replacing signal, obtaining locally stored test program;
whether the EMMC is replaced or not is detected constantly in the embodiment, so that when the EMMC is detected to be replaced, namely the EMMC replacement signal is received, the current EMMC test flow is automatically started, whether the EMMC is replaced or not can be detected constantly, whether any pin of the EMMC and the board card are in an electric connection state or not is detected constantly, whether the EMMC is replaced or not is judged by detecting the voltage on the preset pin of the EMMC constantly, and the understandable embodiment is not limited to the judgment manner.
In this embodiment, whether the EMMC test method is started or not is determined by the receiving design of the EMMC replacement signal, so that the EMMC test method has an automatic test function, thereby reducing the personnel cost and improving the test efficiency of the current EMMC.
Step S21, acquiring the capacity of the locally stored test block, and sequentially acquiring a plurality of test capacities within a preset capacity range according to a preset acquisition rule;
the acquisition formula adopted in the preset acquisition rule is as follows:
W=Y×2n;
in the obtaining formula, the value of n is a natural number, the value of Y is the size of the basic test capacity of local storage, the value of W is the capacity of a target file, and the capacity of the target file is used for obtaining the test capacity;
specifically, when the preset capacity range is 4K to 1G and the basic test capacity is 4K, the capacity of the target file is calculated by setting different values of n, for example, when n is sequentially set to 0, 1, 2, 3, and 4, the capacities of the corresponding target files are 4K, 8K, 16K, 32K, and 64K, and capacities with the same size are obtained according to the calculated capacities of the target files, so as to obtain a plurality of test capacities, that is, the test capacities are 4K, 8K, 16K, 32K, and 64K in sequence.
Please refer to fig. 3, which is a specific implementation step of step S21 in fig. 2:
step S201, obtaining the size of the basic test capacity stored locally, and obtaining the maximum threshold value in the preset capacity range;
in this embodiment, the size of the basic test capacity is 4K, and the maximum threshold value in the preset capacity range is 1G;
step S202, according to the acquisition formula, setting W as the maximum threshold value to calculate n threshold value;
the n threshold obtained by calculation is 18, the value range of n is obtained by calculating the n threshold, and since the test capacity must be obtained within the preset capacity range and the maximum value of the test capacity is equal to the maximum size of the target file, the n threshold is calculated to prevent invalid calculation of the size of the target file and improve the test efficiency of EMMC test amplification;
step S203, acquiring all natural numbers between 0 and the n threshold values, and substituting all the natural numbers into the acquisition formula respectively to calculate the capacity of the target files;
acquiring all natural numbers between 0 and 18, namely 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 and 18, and substituting the natural numbers into n of the acquisition formula, so that the capacity of a plurality of target files, namely 4K, 8K, 16K, 32K, 64K, 128K, 256K, 512K, 1024K, 2048K, 4096K, 8192K, 16387K, 32768K, 65536K, 131072K, 262144K, 524288K and 1048576K can be calculated;
step S204, sequentially obtaining the same size of capacity within the preset capacity range according to the capacity of the target files to obtain a plurality of test capacities;
and acquiring the test capacity within the preset capacity range according to the calculated capacity of the target files.
When the test function object of the test program in the step S11 is a function of writing to a new file, a step S31 is performed.
Step S31, sequentially obtaining the value of each test capacity, and creating a plurality of new files corresponding to the same capacity according to the value of the test capacity;
specifically, the new file is created according to the obtained values of the test volumes, so that a basis is provided for data filling of the new file.
Step S41, filling data into each new file with the capacity of the test block as a filling unit until each new file is filled, so as to calculate a filling time corresponding to each new file;
specifically, when the value of the test capacity is 8K, performing data filling on the 8K new file by using 4K as the filling unit, and when the 8K new file is filled, obtaining the current filling time, it can be understood that the new files of other sizes all perform data filling and obtaining the filling time in the above manner, so as to obtain a plurality of filling times, preferably, the number of the filling times in this embodiment is equal to the number of values of n, that is, 18 in this embodiment.
Step S51, calculating a plurality of filling speeds according to the capacity of the new file and the corresponding filling time, and storing the corresponding relation between each filling speed and the corresponding capacity of the new file;
the filling speed is calculated, so that the test result corresponding to the function written into the new file is obtained, the test result comprises a plurality of different corresponding relations between the test capacity and the filling speed, and the corresponding relations are stored, so that a user can conveniently check the functional performance written into the new file of the current EMMC chip, and the user experience is improved.
When the test function object of the test program in the step S11 is a function of reading an existing file, a step S61 is performed.
Step S61, sequentially obtaining the value of each test capacity, and obtaining a plurality of old files corresponding to the same capacity according to the value of the test capacity;
step S71, reading the data in each old file with the capacity of the test block as a filling unit until each old file is read;
reading data in each old file to calculate the reading time corresponding to each old file;
step S81, calculating a plurality of reading speeds according to the capacity of the old file and the corresponding reading time, and storing the corresponding relation between each reading speed and the corresponding capacity of the old file;
the test result corresponding to the function of reading the existing file is obtained by calculating the design of the reading speed, the test result comprises a plurality of different corresponding relations between the test capacity and the reading speed, and the corresponding relations are stored, so that a user can conveniently check the function of reading the existing file of the current EMMC chip, and the user experience is improved.
Step S91, obtaining a fluctuation difference value between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference value is within a corresponding preset error range;
when the step S91 determines that the fluctuation difference value corresponding to the test program is within the preset error range, step S101 is executed.
Step S101, judging that the function of a test function object of the test program in the current EMMC is stable;
wherein, the test functional object is judged to pass the test.
When it is determined in the step S91 that the fluctuation difference corresponding to the test program is not within the preset error range, the step S111 is executed.
Step S111, judging that the function of the test function object of the test program in the current EMMC is unstable;
wherein, the test function object is judged not to pass the test.
Step S121, obtaining the name and function judgment result of the test function object, and displaying the corresponding relationship between the name and the corresponding judgment result.
When the number of the locally stored test programs is multiple, the test results are obtained by respectively operating different test programs, the fluctuation difference values in different test results are judged to obtain the judgment results, and the names and the corresponding judgment results are correspondingly displayed, so that a user can conveniently check whether each function in the current EMMC is stable.
Specifically, the execution function of the test program may be any one of a function of testing writing of the current EMMC into a new file, a function of writing into an existing file, a function of reading a recently read file, a function of reading a random offset in a file, a function of writing a random offset in a file, a function of calling a function to write a file, and a function of calling a function to read a file, when the test is performed sequentially through the above steps, names of all test function objects and corresponding determination results are displayed in a unified manner, and a display method thereof is displayed in a table manner or a coordinate image manner.
In this embodiment, the EMMC test method is designed to be activated or not by receiving the EMMC replacement signal, so that the EMMC test method has an automatic test function, thereby reducing the personnel cost and improving the test efficiency of the current EMMC, the test of the function of the test function object is performed in a targeted manner by the design of obtaining the test program, so that the accuracy of the EMMC test method is improved, the determination of the fluctuation difference value and the preset error range is facilitated by the fluctuation difference value between the maximum value and the minimum value in the test result, and the determination of the function of the test function object corresponding to the fluctuation difference value is stabilized or not by the adoption of the determination of the fluctuation difference value and the error range, so that the EMMC test method automatically activates the detection of the current EMMC function when the EMMC replacement signal is received, the EMMC testing method can simultaneously test the functions of a plurality of test function objects, and can judge the function stability by adopting the fluctuation difference value and the judging mode corresponding to the preset error range, so that the testing accuracy is improved.
Referring to fig. 4, a schematic structural diagram of an EMMC testing apparatus 100 according to a third embodiment of the present invention includes:
the test module 10 is configured to, when an EMMC replacement signal is received, obtain a locally stored test program, and perform a function test on the current EMMC according to the test program to obtain a test result, where the number of the locally stored test programs is at least one, and each test program is different;
the judging module 20 is configured to obtain a fluctuation difference value between a maximum value and a minimum value in the test result, and judge whether the fluctuation difference value is within a corresponding preset error range;
a determining module 30, configured to determine that a function of a test function object of the test program in the current EMMC is stable when the determining module 20 determines that the fluctuation difference value corresponding to the test program is within the preset error range, and determine that the function of the test function object of the test program in the current EMMC is unstable when the determining module 20 determines that the fluctuation difference value corresponding to the test program is not within the preset error range.
A display module 40, configured to obtain names and function determination results of the test function objects in the determination module 30, and display corresponding relationships between the names and the corresponding determination results, where when the number of the locally stored test programs is multiple, the test results are obtained by running different test programs respectively, and after the fluctuation differences in the different test results are determined to obtain the determination results, the names and the corresponding determination results are displayed correspondingly, so that a user can check whether each function in the current EMMC is stable or not.
The test module 10 includes:
the first obtaining module 11 is configured to obtain a locally stored test block capacity, and sequentially obtain a plurality of test capacities within a preset capacity range according to a preset obtaining rule, where an obtaining formula adopted in the preset obtaining rule is as follows:
W=Y×2n;
in the obtaining formula, the value of n is a natural number, the value of Y is the size of the basic test capacity of local storage, the value of W is the capacity of the target file, and the capacity of the target file is used for obtaining the test capacity.
An operation module 12, configured to execute the test program for each test capacity in sequence according to the obtaining result of the first obtaining module 11.
The operation module 12 includes:
a file creating module 121, configured to, when the test function object of the test program is a function of writing to a new file, sequentially obtain a value of each test capacity, and create a plurality of new files corresponding to the same capacity size according to the value of the test capacity;
a data filling module 122, configured to fill data into each new file with the capacity of the test block as a filling unit according to the creation result of the file creating module 121 until each new file is filled with the data, so as to calculate a filling time corresponding to each new file;
a first calculating module 123, configured to calculate, according to the filling result of the data filling module 122, a speed between the size of the capacity of each new file and the corresponding filling time to obtain a plurality of filling speeds, and store a corresponding relationship between each filling speed and the size of the capacity of the corresponding new file to obtain the test result corresponding to the function of writing into the new file.
The first obtaining module 11 includes:
the first sub-obtaining module 111 is configured to obtain the size of the locally stored basic test capacity, and obtain a maximum threshold value within the preset capacity range.
And a second calculating module 112, configured to set W as the maximum threshold according to the obtaining result of the first sub-obtaining module 111 and according to the obtaining formula, so as to calculate the n threshold.
A third calculating module 113, configured to obtain all natural numbers between 0 and the n threshold according to the calculation result of the second calculating module 112, and substitute all natural numbers into the obtaining formula, respectively, so as to calculate the capacity of the multiple target files.
A second sub-obtaining module 114, configured to sequentially obtain capacities with the same size in the preset capacity range according to the calculation result of the third calculating module 113, so as to obtain a plurality of test capacities.
In the above-mentioned EMMC testing apparatus 100, the receiving design of the testing module 10 for the EMMC replacement signal is used to determine whether to start the EMMC testing method, so that the EMMC testing method has an automatic testing function, thereby reducing the personnel cost and improving the testing efficiency of the current EMMC, the obtaining design of the testing program is used to test the function of the testing function object in a targeted manner, so as to improve the accuracy of the EMMC testing method, the determining module 20 is used to calculate the fluctuation difference between the maximum value and the minimum value in the testing result, so as to facilitate the determination of the fluctuation difference and the preset error range, and the determining module 30 is used to determine whether the function of the testing function object corresponding to the fluctuation difference is stable, above-mentioned EMMC testing arrangement 100 is when receiving automatic opening is right when EMMC changes the signal detection of current EMMC function, and degree of automation is higher and need not the staff and send the detected signal, has improved user experience, just EMMC testing arrangement 100 can be simultaneously to a plurality of the function of test function object is tested, and through adopting fluctuation difference value and corresponding the judgement mode of predetermineeing error range carries out the judgement that the function is stable, has improved the accuracy of testing.
Referring to fig. 5, a schematic structural diagram of an EMMC testing apparatus 100 according to a fourth embodiment of the present invention is shown, where the fourth embodiment is substantially the same as the third embodiment, and the difference is that the operating module 12 in this embodiment further includes:
the second obtaining module 124 is configured to, when the test function object of the test program is a function of reading an existing file, sequentially obtain a value of each test capacity, and obtain a plurality of old files corresponding to the same capacity size according to the value of the test capacity.
A data reading module 125, configured to respectively read data in each of the old files by using the capacity of the test block as a filling unit according to an acquisition result of the second acquiring module 124 until each of the old files is completely read, so as to calculate a reading time corresponding to each of the old files.
A fourth calculating module 126, configured to calculate, according to the reading result of the data reading module 125, a speed between the size of the old file and the corresponding reading time to obtain a plurality of reading speeds, and store a corresponding relationship between each reading speed and the size of the old file to obtain the test result corresponding to the function of reading the existing file.
In this embodiment, the design of the reading speed is calculated to obtain the test result corresponding to the function of reading the existing file, the test result includes a plurality of different corresponding relationships between the test capacity and the reading speed, and the corresponding relationships are stored, so that the user can conveniently check the function of reading the existing file of the current EMMC chip, and the user experience is improved.
The embodiment also provides a mobile terminal, which includes a memory and a processor, where the memory is used for storing a computer program, and the processor runs the computer program to make the mobile terminal execute the EMMC test method.
The present embodiment also provides a storage medium on which a computer program used in the above-mentioned mobile terminal is stored, which when executed, includes the steps of:
when an EMMC replacing signal is received, acquiring a local storage test program, and performing function test on the current EMMC according to the test program to obtain a test result;
acquiring a fluctuation difference value between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference value is within a corresponding preset error range;
if yes, judging that the test is passed;
if not, the test is judged not to pass. The storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above-described embodiments describe the technical principles of the present invention, and these descriptions are only for the purpose of explaining the principles of the present invention and are not to be construed as limiting the scope of the present invention in any way. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.
Claims (8)
1. An EMMC testing method, comprising:
when an EMMC replacing signal is received, acquiring a local storage test program, and performing function test on the current EMMC according to the test program to obtain a test result;
acquiring a fluctuation difference value between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference value is within a corresponding preset error range;
if yes, judging that the test is passed;
if not, judging that the test is not passed;
wherein, the step of performing the function test on the current EMMC according to the test program comprises the following steps:
acquiring the capacity of a locally stored test block, and sequentially acquiring a plurality of test capacities within a preset capacity range according to a preset acquisition rule;
and executing the test program for each test capacity according to the test block capacity in sequence.
2. The EMMC testing method of claim 1, wherein, when a test function object of the test program is a function of writing to a new file, the step of executing the test program for each of the test capacities in order according to the test block capacity comprises:
sequentially acquiring the value of each test capacity, and creating a plurality of new files corresponding to the same capacity according to the value of the test capacity;
filling data into each new file by taking the capacity of the test block as a filling unit until each new file is filled, so as to calculate the filling time corresponding to each new file;
and calculating to obtain a plurality of filling speeds according to the capacity of the new file and the corresponding filling time, and storing the corresponding relation between each filling speed and the corresponding capacity of the new file to obtain the test result corresponding to the function written into the new file.
3. The EMMC testing method of claim 1, wherein, when a test function object of the test program is a function of reading an existing file, the step of executing the test program for each of the test capacities in order according to the test block capacity includes;
sequentially obtaining the value of each test capacity, and obtaining a plurality of old files corresponding to the same capacity according to the value of the test capacity;
respectively reading the data in each old file by taking the capacity of the test block as a filling unit until each old file is completely read, so as to calculate the corresponding reading time of each old file;
and calculating to obtain a plurality of reading speeds according to the capacity of the old file and the corresponding reading time, and storing the corresponding relation between each reading speed and the corresponding capacity of the old file to obtain the test result corresponding to the function of reading the existing file.
4. The EMMC test method of claim 1, wherein the preset acquisition rule employs an acquisition formula:
W=Y×2n;
in the obtaining formula, the value of n is a natural number, the value of Y is the size of the basic test capacity of local storage, the value of W is the capacity of the target file, and the capacity of the target file is used for obtaining the test capacity.
5. The EMMC testing method of claim 4, wherein the step of sequentially obtaining a plurality of test capacities within a predetermined capacity range according to a predetermined obtaining rule comprises:
acquiring the size of the locally stored basic test capacity, and acquiring a maximum threshold value within the preset capacity range;
setting W as the maximum threshold value according to the acquisition formula to calculate an n threshold value;
acquiring all natural numbers between 0 and the n threshold values, and substituting all the natural numbers into the acquisition formula respectively to calculate the capacity of the target files;
and sequentially obtaining the same size of capacity within the preset capacity range according to the capacity of the target files to obtain a plurality of test capacities.
6. An EMMC testing device, comprising:
the test module is used for acquiring a local storage test program when an EMMC (embedded multi-media card) replacement signal is received, and performing function test on the current EMMC according to the test program to obtain a test result;
the judging module is used for acquiring a fluctuation difference value between the maximum value and the minimum value in the test result and judging whether the fluctuation difference value is within a corresponding preset error range;
the judging module is used for judging that the test is passed when the judging module judges that the fluctuation difference value is within the preset error range, and judging that the test is not passed when the judging module judges that the fluctuation difference value is not within the preset error range; wherein the test module comprises:
the first acquisition module is used for acquiring the capacity of the locally stored test block and sequentially acquiring a plurality of test capacities within a preset capacity range according to a preset acquisition rule;
and the running module is used for sequentially executing the test program on each test capacity according to the test block capacity according to the acquisition result of the first acquisition module.
7. A mobile terminal, comprising a memory for storing a computer program and a processor for executing the computer program to cause the mobile terminal to perform the EMMC testing method of any one of claims 1 to 5.
8. A storage medium characterized in that it stores a computer program for use in a mobile terminal according to claim 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810220433.6A CN108564985B (en) | 2018-03-16 | 2018-03-16 | EMMC test method, device, mobile terminal and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810220433.6A CN108564985B (en) | 2018-03-16 | 2018-03-16 | EMMC test method, device, mobile terminal and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108564985A CN108564985A (en) | 2018-09-21 |
| CN108564985B true CN108564985B (en) | 2021-06-25 |
Family
ID=63532945
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810220433.6A Active CN108564985B (en) | 2018-03-16 | 2018-03-16 | EMMC test method, device, mobile terminal and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108564985B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111294255B (en) * | 2020-01-22 | 2022-12-27 | 上海极熵数据科技有限公司 | Gateway testing method and storage medium |
| CN119669012A (en) * | 2024-11-25 | 2025-03-21 | 重庆朗奕迪实业有限公司 | Hard disk test data processing method and system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101419843A (en) * | 2008-12-04 | 2009-04-29 | 北京中星微电子有限公司 | Flash memory recognition method, recognition device and chip controller |
| CN103324560A (en) * | 2013-06-28 | 2013-09-25 | 深圳市江波龙电子有限公司 | Testing method and device of flash memory |
| CN106782668A (en) * | 2016-11-16 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of test memory reads and writes the method and device of limit velocity |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103120028A (en) * | 2010-09-28 | 2013-05-22 | 皇家飞利浦电子股份有限公司 | Apparatus and method for automatically detecting installed lamp type |
| TWI489474B (en) * | 2011-10-25 | 2015-06-21 | Silicon Motion Inc | Burn-in method for embedded multi media card, and test board using the same, and embedded multi media card tested by the same |
| CN105487977A (en) * | 2015-11-30 | 2016-04-13 | 北京锐安科技有限公司 | Agility-oriented automatic test management system and method |
| CN106814302A (en) * | 2015-12-02 | 2017-06-09 | 北京京存技术有限公司 | A kind of eMMC test circuits |
| CN106683709B (en) * | 2016-12-28 | 2019-08-09 | 西北工业大学 | NOR and NAND flash memory performance evaluation method |
| CN107632778B (en) * | 2017-08-07 | 2020-06-12 | 深圳芯邦科技股份有限公司 | Nand Flash scanning detection method and system |
| CN107632914B (en) * | 2017-09-22 | 2021-02-19 | 北京润科通用技术有限公司 | Fault positioning method and system for EMMC array |
-
2018
- 2018-03-16 CN CN201810220433.6A patent/CN108564985B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101419843A (en) * | 2008-12-04 | 2009-04-29 | 北京中星微电子有限公司 | Flash memory recognition method, recognition device and chip controller |
| CN103324560A (en) * | 2013-06-28 | 2013-09-25 | 深圳市江波龙电子有限公司 | Testing method and device of flash memory |
| CN106782668A (en) * | 2016-11-16 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of test memory reads and writes the method and device of limit velocity |
Non-Patent Citations (1)
| Title |
|---|
| 基于eMMC的高速大容量存储卡研制;刘宝文;《中国优秀硕士学位论文全文数据库信息科技辑》;20160215;第2016年卷(第2期);I137-55 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108564985A (en) | 2018-09-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100873943B1 (en) | System and method of reading non-volatile computer memory | |
| CN104461846B (en) | The method and apparatus for detecting application program power consumption | |
| CN108269606B (en) | Method and system for testing storage parameters of eMMC chip | |
| CN106997316B (en) | System and method for detecting abnormal increase of memory | |
| CN111145826B (en) | Memory built-in self-test method, circuit and computer storage medium | |
| CN110427289A (en) | The method and device that automatic test SSD power down influences data consistency | |
| CN111639018B (en) | Memory leakage detection method and device | |
| CN108564985B (en) | EMMC test method, device, mobile terminal and storage medium | |
| CN112185453A (en) | Read interference test method and device, computer readable storage medium and electronic equipment | |
| CN117033127A (en) | State monitoring method and device of storage device, electronic device and storage medium | |
| CN102486938B (en) | Method for rapid detection of memory and device | |
| CN114355208A (en) | A battery fault determination method, device, electronic device and storage medium | |
| CN113194161B (en) | Method and device for setting MMIO base address of server system | |
| CN119512846A (en) | Wear leveling function testing method, device, readable storage medium and electronic device | |
| CN110764960A (en) | A solid-state hard disk firmware testing method | |
| CN112289364B (en) | eMMC quality detection and repair method, device and storage medium thereof | |
| CN104461880A (en) | Method for automatically detecting heap corruption in embedded system | |
| CN115145791B (en) | Memory leak monitoring method, device, electronic device and storage medium | |
| CN109686397B (en) | Memory with self-checking function and its checking method | |
| CN102792383A (en) | Method for checking the functionality of a memory element | |
| CN108038035A (en) | A kind of detection method and relevant apparatus of flash reading and writing state | |
| CN118969056B (en) | Long-term performance testing method, device, readable storage medium and electronic device | |
| CN113806149B (en) | Memory read-write test method and device and storage medium | |
| CN111694700A (en) | Method, device, terminal and storage medium for monitoring DCPMM memory performance | |
| CN118708113B (en) | Memory card memory configuration method and device, computer equipment and storage medium |
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 |